browserstack-node-sdk 1.34.34 → 1.34.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/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 a87_0x533ef5=a87_0x844b;(function(_0x97b135,_0x139837){const _0x52b0dc=a87_0x844b,_0x5e725e=_0x97b135();while(!![]){try{const _0x7f9b07=-parseInt(_0x52b0dc(0x19e))/0x1+parseInt(_0x52b0dc(0xf6))/0x2+-parseInt(_0x52b0dc(0x1a1))/0x3+parseInt(_0x52b0dc(0x111))/0x4*(parseInt(_0x52b0dc(0xe9))/0x5)+parseInt(_0x52b0dc(0x116))/0x6*(parseInt(_0x52b0dc(0xf0))/0x7)+parseInt(_0x52b0dc(0x1b9))/0x8*(parseInt(_0x52b0dc(0xf1))/0x9)+-parseInt(_0x52b0dc(0x19d))/0xa;if(_0x7f9b07===_0x139837)break;else _0x5e725e['push'](_0x5e725e['shift']());}catch(_0x4e1cfb){_0x5e725e['push'](_0x5e725e['shift']());}}}(a87_0x2800,0x63bab));const fs=require('fs'),path=require(a87_0x533ef5(0x148)),gitLastCommit=require(a87_0x533ef5(0x102)),getRepoInfo=require(a87_0x533ef5(0x189)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,FRAMEWORKS}=require(a87_0x533ef5(0x15d)),http=require(a87_0x533ef5(0x124)),https=require(a87_0x533ef5(0x13b)),child_process=require('child_process'),getos=require(a87_0x533ef5(0x165)),os=require('os'),logger=require(a87_0x533ef5(0x190))['winstonLogger'],bsSetupHelper=require(a87_0x533ef5(0x18b)),requestSpy=require(a87_0x533ef5(0x100)),constants=require('../../bin/utils/constants'),logPatcher=require('../../bin/utils/logPatcher'),{fileLogger}=require('../logger'),PerformanceTester=require(a87_0x533ef5(0x1ab)),{isFunction}=require('lodash'),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a87_0x533ef5(0xed));exports[a87_0x533ef5(0xe4)]=_0x12107c=>{const _0x54b683=a87_0x533ef5;fileLogger[_0x54b683(0x118)]('['+new Date()['toISOString']()+_0x54b683(0x130)+_0x12107c);},exports[a87_0x533ef5(0x186)]=_0xd49b17=>{const _0x8e9e44=a87_0x533ef5,_0x132196={};_0x132196[_0x8e9e44(0x195)]=function(_0x335e5d,_0x2ca081){return _0x335e5d===_0x2ca081;},_0x132196[_0x8e9e44(0x110)]=_0x8e9e44(0x180);const _0x13e228=_0x132196;fileLogger['debug']('['+new Date()['toISOString']()+_0x8e9e44(0x130)+_0xd49b17),(_0x13e228[_0x8e9e44(0x195)](process[_0x8e9e44(0x194)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x13e228['iYtNM'])||_0x13e228[_0x8e9e44(0x195)](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder['log']('\x0a['+new Date()['toISOString']()+_0x8e9e44(0x130)+_0xd49b17+'\x0a');};const a87_0x271630={};a87_0x271630[a87_0x533ef5(0x10a)]=!![],a87_0x271630[a87_0x533ef5(0x129)]=0xea60,a87_0x271630['maxSockets']=0x2,a87_0x271630[a87_0x533ef5(0x13f)]=0x2;const httpKeepAliveAgent=new http[(a87_0x533ef5(0x101))](a87_0x271630),a87_0x649df3={};a87_0x649df3[a87_0x533ef5(0x10a)]=!![],a87_0x649df3[a87_0x533ef5(0x129)]=0xea60,a87_0x649df3[a87_0x533ef5(0x178)]=0x2,a87_0x649df3['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a87_0x533ef5(0x101))](a87_0x649df3),a87_0x26838={};a87_0x26838[a87_0x533ef5(0x10a)]=!![],a87_0x26838[a87_0x533ef5(0x129)]=0xea60,a87_0x26838[a87_0x533ef5(0x178)]=0x2,a87_0x26838[a87_0x533ef5(0x13f)]=0x2;function a87_0x844b(_0xfbaf46,_0x3d56b6){const _0x2800ab=a87_0x2800();return a87_0x844b=function(_0x844b91,_0x193335){_0x844b91=_0x844b91-0xe3;let _0x5ed6ad=_0x2800ab[_0x844b91];return _0x5ed6ad;},a87_0x844b(_0xfbaf46,_0x3d56b6);}const httpScreenshotsKeepAliveAgent=new http[(a87_0x533ef5(0x101))](a87_0x26838),a87_0x3be204={};function a87_0x2800(){const _0x452fef=['getObservabilityLinkedProductName','push','trim','prefix','../performance/performance-tester','ysHFI','IHSPp','awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27','rootDir','vmlze','shouldReRunObservabilityTests','getPackageVersion','getCustomTags','BROWSERSTACK_RERUN_TESTS','pcGRW','hostname','Linux','stack','8QBJccY','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','getPlatformDetails','IcxhI','qQSfL','browserstack','trace','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','getCapabilities','VhYzF','OS\x20X','5IQjsST','MCsYq','CODECEPT','jAmqd','../performance/constants','BROWSERSTACK_TESTHUB_JWT','BS_TESTOPS_BUILD_HASHED_ID','146888qZRyeK','675cHLshV','BROWSERSTACK_TEST_OBSERVABILITY','replace','Bearer\x20','toISOString','1568374lMkfbp','host','kZNgi','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','vEIJy','kxqFP','CAMch','test','SzKoY','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','../../helpers/request-spy','Agent','git-last-commit','getFailureType','AxgOi','kIIJa','extractValuesWithRegexKeyMatch','jest','turboscale','patchConsoleLogger','keepAlive','dist','Windows','__cloud_provider___','getUserCredentials','zHFyY','iYtNM','1210740wsQjJl','UJGCM','codeceptjs','ijhLn','getBrowserName','6XVrHNV','isTestObservabilitySession','silly','qTiHo','failureData','stringify','IUhEJ','measureWrapper','execSync','PEZXZ','map','getSyncScript','PathHelper','getPlatform','http','Error\x20in\x20importing\x20windows-release\x20','relative','CUCUMBER','^CUSTOM_TAG_\x5cd+$','timeout','jTvpO','HUB_URL_REGEX','NHqGU','DDRRC','cLnei','uErRA','][\x20OBSERVABILITY\x20]\x20','bs:addLog:','cZlwT','getPlatformVersion','LlIrv','wOMas','then','fLYZZ','map_','backtrace','Sgeod','https','qwHBn','now','WLaMC','maxTotalSockets','parseFileNames','ARsWR','pid','annotate','headers','fromEntries','isUndefined','pWwHA','path','edkUt','cwd','info','cMkak','length','mbcMD','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','KQiOn','spy','sleep','PLAYWRIGHT','RslQV','platform','emit','split','bs:addPlatformDetails:','bstack:options','BROWSERSTACK_CONFIG_FILE_PATH','message','zsmOT','./constants','BROWSERSTACK_TEST_OBSERVABILITY_YML','relativeTestFilePath','JEST','aWNQa','][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found','data','keys','getos','GvsBZ','object','UOFRt','sendPlatformDetails','includes','release','forEach','Visit\x20https://observability.browserstack.com/builds/','PRINT_BUILDLINK','OdXVh','txSJo','\x20:\x20','getFrameworkVersion','mshPL','removeAnsiColors','nodeRequest','YJFXT','darwin','maxSockets','automate','turboScaleGridDetails','nKzZR','undefined','mhkZe','AssertionError','tAwta','true','match','windows-release','@cucumber/cucumber','gITaA','Pszxx','debug','config','igDrf','git-repo-info','pnoIU','../helper','VTpVg','mocha','capabilities','xgOgy','../logger','Content-Type','jArwM','IFWLa','env','URNqH','MDqhr','null','lVQLy','application/json','MOCHA','X-BSTACK-TESTOPS','OxrZl','1122930QlsDjD','315248JqVMYA','FqHeG','ATS_HUB_URL_REGEX','815697MuNLXJ','JimjB','CUSTOM_TAG','toString','Error\x20in\x20getting\x20Linux\x20Details','app-automate'];a87_0x2800=function(){return _0x452fef;};return a87_0x2800();}a87_0x3be204[a87_0x533ef5(0x10a)]=!![],a87_0x3be204[a87_0x533ef5(0x129)]=0xea60,a87_0x3be204[a87_0x533ef5(0x178)]=0x2,a87_0x3be204[a87_0x533ef5(0x13f)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a87_0x533ef5(0x101))](a87_0x3be204);exports[a87_0x533ef5(0x1b1)]=()=>{const _0x44bd12=a87_0x533ef5,_0x3c1f99={};_0x3c1f99[_0x44bd12(0x14e)]=function(_0x4207c2,_0x4cb321){return _0x4207c2!==_0x4cb321;},_0x3c1f99[_0x44bd12(0x13a)]=_0x44bd12(0x197);const _0x19bb09=_0x3c1f99;return process[_0x44bd12(0x194)][_0x44bd12(0x1b4)]&&_0x19bb09[_0x44bd12(0x14e)](process[_0x44bd12(0x194)][_0x44bd12(0x1b4)],_0x19bb09[_0x44bd12(0x13a)])?!![]:![];},exports[a87_0x533ef5(0x117)]=()=>{const _0x28b6d9=a87_0x533ef5,_0x463592={};_0x463592[_0x28b6d9(0x119)]=function(_0x1370c6,_0x51725c){return _0x1370c6===_0x51725c;},_0x463592[_0x28b6d9(0x1b5)]=_0x28b6d9(0x180);const _0x3b491f=_0x463592;let _0x3c9276=!![];return process[_0x28b6d9(0x194)][_0x28b6d9(0x15e)]&&(_0x3c9276=_0x3b491f[_0x28b6d9(0x119)](process[_0x28b6d9(0x194)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x3b491f['pcGRW'])),process[_0x28b6d9(0x194)][_0x28b6d9(0xf2)]&&(_0x3c9276=_0x3b491f[_0x28b6d9(0x119)](process[_0x28b6d9(0x194)][_0x28b6d9(0xf2)],_0x3b491f[_0x28b6d9(0x1b5)])),_0x3c9276;},exports[a87_0x533ef5(0x140)]=_0x2f63e1=>{const _0x225a3b=a87_0x533ef5;if(bsSetupHelper[_0x225a3b(0x146)](_0x2f63e1))return undefined;try{return _0x2f63e1[_0x225a3b(0x1a9)]()[_0x225a3b(0x157)](',');}catch(_0x3fe6eb){return undefined;}},exports['printBuildLink']=()=>{const _0x3a2dda=a87_0x533ef5,_0x2837d3={};_0x2837d3[_0x3a2dda(0xfb)]=function(_0x4995e5,_0x130aa4){return _0x4995e5!==_0x130aa4;},_0x2837d3[_0x3a2dda(0xf8)]=_0x3a2dda(0x197),_0x2837d3['MCsYq']=function(_0x54fc82,_0x10c8b2){return _0x54fc82!==_0x10c8b2;},_0x2837d3[_0x3a2dda(0x1a2)]=_0x3a2dda(0x17c);const _0x271f6e=_0x2837d3;return PerformanceTester[_0x3a2dda(0x11d)](PerformanceO11yEvents[_0x3a2dda(0x16e)],async()=>{const _0x57933b=_0x3a2dda;try{process[_0x57933b(0x194)]['BS_TESTOPS_BUILD_HASHED_ID']&&_0x271f6e['kxqFP'](process[_0x57933b(0x194)][_0x57933b(0xef)],_0x271f6e[_0x57933b(0xf8)])&&_0x271f6e[_0x57933b(0xea)](process[_0x57933b(0x194)][_0x57933b(0xef)],_0x271f6e[_0x57933b(0x1a2)])&&logger[_0x57933b(0x14b)](_0x57933b(0x16d)+process['env'][_0x57933b(0xef)]+_0x57933b(0xe5));}catch(_0x465334){logger['error']('['+new Date()[_0x57933b(0xf5)]()+_0x57933b(0x162));}})();},exports[a87_0x533ef5(0x103)]=_0x5212fd=>{const _0x3c1783=a87_0x533ef5,_0x198cb2={};_0x198cb2['vEIJy']=_0x3c1783(0x17e),_0x198cb2[_0x3c1783(0x13c)]='UnhandledError';const _0x24208a=_0x198cb2;if(!_0x5212fd)return null;return _0x5212fd['toString']()[_0x3c1783(0x181)](/AssertionError/)?_0x24208a[_0x3c1783(0xfa)]:_0x24208a[_0x3c1783(0x13c)];},exports[a87_0x533ef5(0x172)]=_0x12a169=>{const _0x32f4c6=a87_0x533ef5,_0x5d2fc4={};_0x5d2fc4[_0x32f4c6(0x192)]=_0x32f4c6(0x18d),_0x5d2fc4[_0x32f4c6(0xe7)]='@playwright/test',_0x5d2fc4[_0x32f4c6(0x18a)]=_0x32f4c6(0x113),_0x5d2fc4[_0x32f4c6(0x193)]=_0x32f4c6(0x107),_0x5d2fc4[_0x32f4c6(0x170)]=_0x32f4c6(0x183);const _0x281587=_0x5d2fc4;let _0x5619d3=null;switch(_0x12a169){case FRAMEWORKS[_0x32f4c6(0x19a)]:_0x5619d3=bsSetupHelper[_0x32f4c6(0x1b2)](_0x281587['jArwM']);break;case FRAMEWORKS[_0x32f4c6(0x153)]:_0x5619d3=bsSetupHelper[_0x32f4c6(0x1b2)](_0x281587[_0x32f4c6(0xe7)]);break;case FRAMEWORKS[_0x32f4c6(0xeb)]:_0x5619d3=bsSetupHelper[_0x32f4c6(0x1b2)](_0x281587['pnoIU']);break;case FRAMEWORKS[_0x32f4c6(0x160)]:_0x5619d3=bsSetupHelper[_0x32f4c6(0x1b2)](_0x281587[_0x32f4c6(0x193)]);break;case FRAMEWORKS[_0x32f4c6(0x127)]:_0x5619d3=bsSetupHelper[_0x32f4c6(0x1b2)](_0x281587[_0x32f4c6(0x170)]);break;default:break;}return _0x5619d3;},exports['getBrowserStackConfig']=_0x4ee9da=>{const _0x25028b=a87_0x533ef5;let _0x3c8d3f=null;switch(_0x4ee9da){case FRAMEWORKS['PLAYWRIGHT']:_0x3c8d3f=process[_0x25028b(0x194)][_0x25028b(0x15a)];break;}if(!_0x3c8d3f)return;return bsSetupHelper['readConfig'](_0x3c8d3f,![]);},exports[a87_0x533ef5(0x10e)]=_0xb30159=>{return{'username':bsSetupHelper['getUserName'](_0xb30159),'accessKey':bsSetupHelper['getAccessKey'](_0xb30159)};},exports[a87_0x533ef5(0x175)]=(_0x353aba,_0x236f14,_0x2614e5,_0x39ec2f,_0x372092=!![])=>{const _0x542c85=a87_0x533ef5,_0x4ced36={'ARsWR':function(_0x5b9f84,_0x96843e){return _0x5b9f84!==_0x96843e;},'zHFyY':function(_0x153452,_0x37b769){return _0x153452(_0x37b769);},'LpRuE':_0x542c85(0x167),'OdXVh':_0x542c85(0x14f),'cMkak':function(_0x2266ae,_0x5c84ca){return _0x2266ae(_0x5c84ca);},'vmlze':function(_0x1a8973,_0xca036){return _0x1a8973===_0xca036;},'CAMch':'Content-Type','LLGYM':_0x542c85(0x199),'cZlwT':'https','hAJWw':function(_0x102b08,_0x4729f0){return _0x102b08===_0x4729f0;}};return new Promise((_0x1f819a,_0x4ae8c3)=>{const _0x244bea=_0x542c85,_0x42765b={..._0x39ec2f,...{'method':_0x353aba,'url':API_URL+'/'+_0x236f14,'body':_0x2614e5,'json':_0x4ced36[_0x244bea(0x1b0)](_0x39ec2f['headers'][_0x4ced36[_0x244bea(0xfc)]],_0x4ced36['LLGYM']),'agent':API_URL[_0x244bea(0x16a)](_0x4ced36[_0x244bea(0x132)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x4ced36['hAJWw'](_0x236f14,SCREENSHOT_ENDPOINT)&&(_0x42765b['agent']=API_URL[_0x244bea(0x16a)](_0x4ced36['cZlwT'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x244bea(0x175)](_0x353aba,_0x236f14,_0x42765b,_0x39ec2f,API_URL)[_0x244bea(0x136)](({statusCode:_0x5b2512,body:_0x229cf8})=>{const _0x5e01f5=_0x244bea;if(_0x4ced36[_0x5e01f5(0x141)](_0x5b2512,0xc8))_0x4ced36[_0x5e01f5(0x10f)](_0x4ae8c3,_0x229cf8?_0x229cf8:_0x5e01f5(0xf9)+_0x5b2512);else{if(_0x372092)try{_0x4ced36[_0x5e01f5(0x141)](typeof _0x229cf8,_0x4ced36['LpRuE'])&&(_0x229cf8=JSON['parse'](_0x229cf8));}catch(_0x1b0f38){_0x4ced36['zHFyY'](_0x4ae8c3,_0x4ced36[_0x5e01f5(0x16f)]);return;}const _0x322e88={};_0x322e88[_0x5e01f5(0x163)]=_0x229cf8,_0x4ced36[_0x5e01f5(0x14c)](_0x1f819a,_0x322e88);}})['catch'](_0x5baa87=>{const _0x147e8c=_0x244bea;_0x5baa87&&_0x4ced36[_0x147e8c(0x10f)](_0x4ae8c3,_0x5baa87);});});},exports['getBuildTags']=_0x5e4b9b=>{const _0x5efec8=a87_0x533ef5;if(process[_0x5efec8(0x194)]['TEST_OBSERVABILITY_BUILD_TAG'])return process[_0x5efec8(0x194)]['TEST_OBSERVABILITY_BUILD_TAG'][_0x5efec8(0x157)](',');if(_0x5e4b9b['buildTag'])return _0x5e4b9b['buildTag'];return[];},exports['getDefaultHeaders']=(_0x807ce3=!![])=>{const _0x1183c7=a87_0x533ef5,_0x107a78={};_0x107a78['qQSfL']='application/json',_0x107a78[_0x1183c7(0x105)]='true',_0x107a78[_0x1183c7(0x135)]='Authorization';const _0x14b60c=_0x107a78,_0x126ce7={};_0x126ce7[_0x1183c7(0x191)]=_0x14b60c[_0x1183c7(0x1bd)],_0x126ce7['X-BSTACK-TESTOPS']=_0x14b60c[_0x1183c7(0x105)];const _0x51b759=_0x126ce7;return _0x807ce3&&process[_0x1183c7(0x194)][_0x1183c7(0xee)]&&(_0x51b759[_0x14b60c['wOMas']]=_0x1183c7(0xf4)+process['env'][_0x1183c7(0xee)]),_0x51b759;},exports[a87_0x533ef5(0x106)]=_0x3bba5d=>{const _0x52b0ad=a87_0x533ef5,_0x1d5424={};_0x1d5424[_0x52b0ad(0x12a)]=_0x52b0ad(0x128);const _0x11ec57=_0x1d5424,_0x480280=[],_0x586161=new RegExp(_0x11ec57[_0x52b0ad(0x12a)],'i');return Object[_0x52b0ad(0x164)](_0x3bba5d)['filter'](_0x5c5fae=>_0x586161[_0x52b0ad(0xfd)](_0x5c5fae))[_0x52b0ad(0x16c)](_0xa16d38=>_0x480280[_0x52b0ad(0x1a8)](_0x3bba5d[_0xa16d38])),_0x480280;},exports[a87_0x533ef5(0x1b3)]=_0x459833=>{const _0x4a1cd8=a87_0x533ef5,_0x33d34c=[],_0x567bdd=_0x459833['customTag']||process[_0x4a1cd8(0x194)][_0x4a1cd8(0x1a3)];return _0x567bdd&&_0x33d34c['push'](_0x567bdd),_0x33d34c[_0x4a1cd8(0x1a8)](...exports['extractValuesWithRegexKeyMatch'](process[_0x4a1cd8(0x194)])),_0x33d34c[_0x4a1cd8(0x1a8)](...exports['extractValuesWithRegexKeyMatch'](_0x459833)),_0x33d34c;},exports['removeAnsiColors']=_0x29c5fe=>{const _0x7592aa=a87_0x533ef5;if(!_0x29c5fe)return'';return _0x29c5fe[_0x7592aa(0xf3)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a87_0x533ef5(0x152)]=(_0x59c201=0x64)=>new Promise(_0x50541b=>setTimeout(_0x50541b,_0x59c201));const getPlatformName=()=>{const _0x50e130=a87_0x533ef5,_0x2cd126={};_0x2cd126[_0x50e130(0x11c)]=function(_0x50570b,_0x1e0f0e){return _0x50570b===_0x1e0f0e;},_0x2cd126[_0x50e130(0x185)]='win32',_0x2cd126['lVQLy']='Windows',_0x2cd126[_0x50e130(0x112)]=_0x50e130(0x177),_0x2cd126[_0x50e130(0x17b)]=_0x50e130(0xe8),_0x2cd126['HZvqK']='linux',_0x2cd126['igDrf']=_0x50e130(0x1b7),_0x2cd126[_0x50e130(0x12c)]='Unknown';const _0x2ae870=_0x2cd126;if(_0x2ae870[_0x50e130(0x11c)](process[_0x50e130(0x155)],_0x2ae870[_0x50e130(0x185)]))return _0x2ae870[_0x50e130(0x198)];if(_0x2ae870['IUhEJ'](process[_0x50e130(0x155)],_0x2ae870[_0x50e130(0x112)]))return _0x2ae870[_0x50e130(0x17b)];if(_0x2ae870[_0x50e130(0x11c)](process['platform'],_0x2ae870['HZvqK']))return _0x2ae870[_0x50e130(0x188)];return _0x2ae870[_0x50e130(0x12c)];},getMacOSVersion=()=>{const _0x252474=a87_0x533ef5,_0x513581={};_0x513581[_0x252474(0x184)]=_0x252474(0x1ae);const _0x2a9399=_0x513581;return child_process[_0x252474(0x11e)](_0x2a9399[_0x252474(0x184)])['toString']()[_0x252474(0x1a9)]();},getLinuxDetails=()=>{const _0x7d333b={'pWwHA':function(_0x553d2f,_0x175e28){return _0x553d2f(_0x175e28);},'MDqhr':function(_0x2f0ee4,_0x539209){return _0x2f0ee4(_0x539209);},'YJFXT':function(_0x24b629,_0x2fa375){return _0x24b629(_0x2fa375);}};return new Promise((_0x374645,_0x1cfed4)=>{const _0x361898=a87_0x844b;_0x7d333b[_0x361898(0x176)](getos,(_0x7366f,_0x4a7ffe)=>{const _0x46b6fc=_0x361898;if(_0x7366f)return _0x7d333b[_0x46b6fc(0x147)](_0x1cfed4,_0x7366f);_0x7d333b[_0x46b6fc(0x196)](_0x374645,_0x4a7ffe);});});};exports[a87_0x533ef5(0x1bb)]=async()=>{const _0x5b166e=a87_0x533ef5,_0x3db0d0={'ijhLn':function(_0x35efa8){return _0x35efa8();},'mshPL':'OS\x20X','mhkZe':_0x5b166e(0x10c),'DXuEH':_0x5b166e(0x182),'FqHeG':_0x5b166e(0x1b7),'KQiOn':function(_0x533b8b){return _0x533b8b();},'IcxhI':_0x5b166e(0x1a5)};let _0x32a17c=_0x3db0d0[_0x5b166e(0x114)](getPlatformName),_0x30fe73=os[_0x5b166e(0x16b)]()[_0x5b166e(0x1a4)]();switch(_0x32a17c){case _0x3db0d0[_0x5b166e(0x173)]:_0x30fe73=_0x3db0d0[_0x5b166e(0x114)](getMacOSVersion);break;case _0x3db0d0[_0x5b166e(0x17d)]:try{const _0x22f8d3=(await import(_0x3db0d0['DXuEH']))['default'];_0x30fe73=_0x3db0d0[_0x5b166e(0x114)](_0x22f8d3);}catch(_0x24cb64){exports[_0x5b166e(0x186)](_0x5b166e(0x125)+_0x24cb64['toString']());}break;case _0x3db0d0[_0x5b166e(0x19f)]:try{const _0x3b6e1f=await _0x3db0d0[_0x5b166e(0x150)](getLinuxDetails);_0x3b6e1f['dist']&&(_0x32a17c=_0x3b6e1f[_0x5b166e(0x10b)]),_0x3b6e1f[_0x5b166e(0x16b)]&&(_0x30fe73=_0x3b6e1f[_0x5b166e(0x16b)][_0x5b166e(0x1a4)]());}catch(_0xd908ee){exports['debug'](_0x3db0d0[_0x5b166e(0x1bc)]);}break;default:break;}const _0x15809d={};return _0x15809d['platformName']=_0x32a17c,_0x15809d['platformVersion']=_0x30fe73,_0x15809d;},exports[a87_0x533ef5(0x11a)]=(_0xc655a7,_0x3dfab7)=>{const _0x4880f6=a87_0x533ef5,_0x54ef25={};_0x54ef25[_0x4880f6(0x12f)]=function(_0x1de410,_0x3897de){return _0x1de410===_0x3897de;},_0x54ef25[_0x4880f6(0x134)]=_0x4880f6(0xfd),_0x54ef25['fGOip']=function(_0x497a78,_0x34a3a1){return _0x497a78===_0x34a3a1;},_0x54ef25[_0x4880f6(0x17f)]='err';const _0x196bd3=_0x54ef25;if(!_0xc655a7)return[];try{if(_0x196bd3[_0x4880f6(0x12f)](_0x3dfab7,_0x196bd3[_0x4880f6(0x134)]))return _0xc655a7[_0x4880f6(0x120)](_0x3ff6d4=>{const _0x313f03=_0x4880f6,{stack:_0x4feab6,..._0xef8fa3}=_0x3ff6d4,_0x968480=Object[_0x313f03(0x164)](_0xef8fa3)[_0x313f03(0x120)](_0x580ad6=>{return _0x580ad6+':\x20'+_0xef8fa3[_0x580ad6];}),_0x43d911=_0x4feab6?exports[_0x313f03(0x174)](_0x4feab6)[_0x313f03(0x157)](/\r?\n/):[exports[_0x313f03(0x174)](_0x3ff6d4[_0x313f03(0x15b)])],_0x316e88={};return _0x316e88[_0x313f03(0x139)]=_0x43d911,_0x316e88['expanded']=_0x968480,_0x316e88;});else{if(_0x196bd3['fGOip'](_0x3dfab7,_0x196bd3[_0x4880f6(0x17f)])){const _0x30a502=[],_0x317ec4=[];return Object[_0x4880f6(0x164)](_0xc655a7)[_0x4880f6(0x16c)](_0x1b0654=>{const _0x3849c9=_0x4880f6;try{_0x317ec4[_0x3849c9(0x1a8)](_0x1b0654+':\x20'+_0xc655a7[_0x1b0654]);}catch(_0x38339f){exports[_0x3849c9(0x186)](_0x3849c9(0x1ba)+_0x38339f[_0x3849c9(0x15b)]+_0x3849c9(0x171)+_0x38339f[_0x3849c9(0x139)]);}}),_0x30a502[_0x4880f6(0x1a8)]({'backtrace':exports['removeAnsiColors'](_0xc655a7[_0x4880f6(0x1b8)])['split'](/\r?\n/),'expanded':_0x317ec4}),_0x30a502;}}return[];}catch(_0x275896){exports['debug'](_0x4880f6(0x1ba)+_0x275896[_0x4880f6(0x15b)]+_0x4880f6(0x171)+_0x275896[_0x4880f6(0x139)]);}return[];};class PathHelper{constructor(_0x100e84,_0x540d91){const _0x19067d=a87_0x533ef5;this[_0x19067d(0x187)]=_0x100e84,this[_0x19067d(0x1aa)]=_0x540d91;}[a87_0x533ef5(0x15f)](_0x111496){const _0x50692a=a87_0x533ef5,_0x18652a=this[_0x50692a(0x187)][_0x50692a(0x14a)]||this[_0x50692a(0x187)][_0x50692a(0x1af)];return path[_0x50692a(0x126)](_0x18652a,_0x111496);}['prefixTestPath'](_0xadbfa3){const _0x40e669=a87_0x533ef5,_0x491453=this['relativeTestFilePath'](_0xadbfa3);return this[_0x40e669(0x1aa)]?path['join'](this[_0x40e669(0x1aa)],_0x491453):_0x491453;}}exports[a87_0x533ef5(0x122)]=PathHelper,exports['addRequestSpy']=(_0xaa92c0=!![])=>{const _0x5665bc=a87_0x533ef5,_0x202830={};_0x202830[_0x5665bc(0xec)]=function(_0x207c09,_0x2c6aae){return _0x207c09===_0x2c6aae;},_0x202830['cLnei']=_0x5665bc(0x19b),_0x202830['IHSPp']='true',_0x202830[_0x5665bc(0x12d)]='HTTP',_0x202830[_0x5665bc(0x1ac)]='browserstack',_0x202830[_0x5665bc(0x104)]='local_grid';const _0x1dd48f=_0x202830;requestSpy[_0x5665bc(0x151)]((_0x598be7,_0x3dee89)=>{const _0x114db6=_0x5665bc;_0x3dee89&&!(_0x3dee89[_0x114db6(0x144)]&&_0x1dd48f[_0x114db6(0xec)](_0x3dee89[_0x114db6(0x144)][_0x1dd48f[_0x114db6(0x12e)]],_0x1dd48f[_0x114db6(0x1ad)]))&&(_0x3dee89[_0x114db6(0xf7)]=_0x3dee89[_0x114db6(0x1b6)],delete _0x3dee89[_0x114db6(0x1b6)],_0xaa92c0&&process['emit'](_0x114db6(0x131)+process[_0x114db6(0x142)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x1dd48f['DDRRC'],'http_response':_0x3dee89})),_0x3dee89&&(constants[_0x114db6(0x12b)][_0x114db6(0xfd)](_0x3dee89[_0x114db6(0xf7)])||constants[_0x114db6(0x1a0)][_0x114db6(0xfd)](_0x3dee89[_0x114db6(0xf7)]))?global[_0x114db6(0x10d)]=_0x1dd48f[_0x114db6(0x1ac)]:global[_0x114db6(0x10d)]=_0x1dd48f[_0x114db6(0x104)];});},exports[a87_0x533ef5(0x109)]=()=>{const _0x6ebee4=a87_0x533ef5,_0x3adc15={'xgOgy':function(_0x5cc407,_0x4afa5d){return _0x5cc407(_0x4afa5d);}};console={},Object[_0x6ebee4(0x164)](consoleHolder)[_0x6ebee4(0x16c)](_0x1f5c8a=>{const _0x5e952c=_0x6ebee4;_0x3adc15[_0x5e952c(0x18f)](isFunction,consoleHolder[_0x1f5c8a])?console[_0x1f5c8a]=(..._0xa15e81)=>{const _0x2fe8f8=_0x5e952c;try{!Object[_0x2fe8f8(0x164)](BSTestOpsPatcher)[_0x2fe8f8(0x16a)](_0x1f5c8a)?consoleHolder[_0x1f5c8a](..._0xa15e81):BSTestOpsPatcher[_0x1f5c8a](..._0xa15e81);}catch(_0x156921){consoleHolder[_0x1f5c8a](..._0xa15e81);}}:console[_0x1f5c8a]=consoleHolder[_0x1f5c8a];});},exports[a87_0x533ef5(0x121)]=()=>'browserstack_executor:\x20'+JSON[a87_0x533ef5(0x11b)]({'action':a87_0x533ef5(0x143),'arguments':{'data':'ObservabilitySync:'+Date[a87_0x533ef5(0x13d)](),'level':'debug'}}),exports[a87_0x533ef5(0x1a7)]=_0xec51bd=>{const _0x52c51a=a87_0x533ef5,_0x57f3f5={};_0x57f3f5['MOfiC']=function(_0x5c75d7,_0x5c0e17){return _0x5c75d7===_0x5c0e17;},_0x57f3f5[_0x52c51a(0x19c)]=_0x52c51a(0xe3),_0x57f3f5[_0x52c51a(0x11f)]='appium:app',_0x57f3f5['edkUt']='app',_0x57f3f5[_0x52c51a(0x18c)]=function(_0xd0b88a,_0x2b6668){return _0xd0b88a>_0x2b6668;},_0x57f3f5[_0x52c51a(0xfe)]=_0x52c51a(0x1a6),_0x57f3f5[_0x52c51a(0x13e)]=_0x52c51a(0x159),_0x57f3f5[_0x52c51a(0x137)]=_0x52c51a(0x17a),_0x57f3f5[_0x52c51a(0x154)]=_0x52c51a(0x108),_0x57f3f5['qZJja']=_0x52c51a(0x179);const _0x18a4e9=_0x57f3f5;let _0x248823=null;try{if(_0x18a4e9['MOfiC'](global['__cloud_provider___'],_0x18a4e9[_0x52c51a(0x19c)])){if(_0xec51bd[_0x18a4e9[_0x52c51a(0x11f)]]||_0xec51bd[_0x18a4e9[_0x52c51a(0x149)]]||!bsSetupHelper[_0x52c51a(0x146)](global['capabilities'])&&_0x18a4e9['VTpVg'](global[_0x52c51a(0x18e)][_0x52c51a(0x14d)],0x0)&&(global[_0x52c51a(0x18e)][0x0][_0x18a4e9['edkUt']]||global[_0x52c51a(0x18e)][0x0][_0x18a4e9[_0x52c51a(0x11f)]]))_0x248823=_0x18a4e9[_0x52c51a(0xfe)];else _0xec51bd[_0x18a4e9[_0x52c51a(0x13e)]]&&_0xec51bd[_0x18a4e9[_0x52c51a(0x13e)]][_0x18a4e9[_0x52c51a(0x137)]]?_0x248823=_0x18a4e9[_0x52c51a(0x154)]:_0x248823=_0x18a4e9['qZJja'];}}catch(_0x5628be){exports[_0x52c51a(0x186)]('Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20'+_0x5628be);}return _0x248823;},exports[a87_0x533ef5(0x169)]=async(_0x4f6283,_0x57a565,_0x18600b=![])=>{const _0x1155e2=a87_0x533ef5,_0xc97058={};_0xc97058['GvsBZ']=function(_0x2da012,_0x36c6e3){return _0x2da012===_0x36c6e3;},_0xc97058[_0x1155e2(0x168)]='browserstack',_0xc97058[_0x1155e2(0x15c)]='unknown_grid',_0xc97058[_0x1155e2(0x161)]='TEST_PLATFORM';const _0x18a16e=_0xc97058;try{const _0x26aa06=await _0x4f6283['getCapabilities'](),_0x2bf4e6=await _0x4f6283['getSession'](),_0x5375ae={},_0x374976=Object[_0x1155e2(0x145)](_0x2bf4e6[_0x1155e2(0xe6)]()[_0x1155e2(0x138)]),_0x431e25={'product':exports[_0x1155e2(0x1a7)](_0x374976),'capabilities':_0x374976,'platform':_0x26aa06[_0x1155e2(0x123)](),'platform_version':bsSetupHelper[_0x1155e2(0x133)](_0x18a16e[_0x1155e2(0x166)](global['__cloud_provider___'],_0x18a16e['UOFRt'])),'browser':_0x26aa06[_0x1155e2(0x115)](),'browser_version':_0x26aa06['getBrowserVersion'](),'session_id':_0x2bf4e6['toJSON']()};global[_0x1155e2(0x10d)]?_0x5375ae[global[_0x1155e2(0x10d)]]=_0x431e25:_0x5375ae[_0x18a16e['zsmOT']]=_0x431e25;if(_0x18600b)return _0x5375ae;process[_0x1155e2(0x156)](_0x1155e2(0x158)+process[_0x1155e2(0x142)],{'timestamp':new Date()[_0x1155e2(0xf5)](),'level':null,'message':null,'kind':_0x18a16e['aWNQa'],'http_response':_0x5375ae,'uuid':_0x57a565});}catch(_0x5b15cc){exports['debug'](_0x1155e2(0xff)+_0x5b15cc);}},exports['isInternalHook']=_0x2fc777=>{const _0x261b65=a87_0x533ef5;return _0x2fc777&&_0x2fc777['toString']()[_0x261b65(0x181)](/browserstack internal helper hook/);};
|
|
1
|
+
const a87_0x47a57b=a87_0x117b;(function(_0xf3d07b,_0x4c75ed){const _0x129730=a87_0x117b,_0xef64a3=_0xf3d07b();while(!![]){try{const _0x546ff4=-parseInt(_0x129730(0x19b))/0x1+-parseInt(_0x129730(0x1dd))/0x2+-parseInt(_0x129730(0x1d0))/0x3*(parseInt(_0x129730(0x11d))/0x4)+parseInt(_0x129730(0x178))/0x5*(-parseInt(_0x129730(0x15f))/0x6)+parseInt(_0x129730(0x11e))/0x7*(-parseInt(_0x129730(0x15c))/0x8)+-parseInt(_0x129730(0x166))/0x9*(parseInt(_0x129730(0x1a1))/0xa)+parseInt(_0x129730(0x1bb))/0xb*(parseInt(_0x129730(0x17d))/0xc);if(_0x546ff4===_0x4c75ed)break;else _0xef64a3['push'](_0xef64a3['shift']());}catch(_0xb4190f){_0xef64a3['push'](_0xef64a3['shift']());}}}(a87_0x2cdb,0xd739d));function a87_0x2cdb(){const _0x4c31c9=['Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','err','annotate','PRINT_BUILDLINK','WqZOI','getBuildTags','https','spy','now','getFailureType','885700jjaOiB','qBUTm','HIRcj','IhvDY','MOCHA','keepAlive','410iCuANE','PathHelper','awiBg','PQdJN','KDgvG','SqnDm','match','vUgrh','Tzasa','BROWSERSTACK_RERUN_TESTS','theld','getPackageVersion','trim','nodeRequest','undefined','mocha','Agent','readConfig','CCJlT','toString','turboscale','null','BROWSERSTACK_OBSERVABILITY_DEBUG','platformName','capabilities','ObservabilitySync:','374vLXFbC','MyFra','rapYd','ZBaRT','config','trace','BMHFU','sTtXc','KyKVT','keys','BOERL','TEST_PLATFORM','GxCqK','__cloud_provider___','relative','BDjWR','getUserName','getBrowserVersion','HdPsE','platform','isUndefined','987006otUAyJ','getBrowserName','GsXMs','kKzAp','XAYJw','cscMx','app-automate','HlAqG','LIPlu','KHDvn','host','stack','@cucumber/cucumber','1798812daIkyW','./constants','Linux','tEnlJ','rxLJr','shouldReRunObservabilityTests','../../bin/utils/constants','hostname','toJSON','FtPxF','lDceF','includes','bs:addLog:','JvBgk','emit','browserstack','KBbrR','][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found','MfkGl','relativeTestFilePath','hcvqS','Authorization','backtrace','error','maxTotalSockets','TEST_OBSERVABILITY_BUILD_TAG','win32','buildTag','uPFnq','getCustomTags','dist','map_','URAHl','BROWSERSTACK_CONFIG_FILE_PATH','../../helpers/request-spy','jvZlX','prefix','catch','fromEntries','ZVrOr','WJOww','LRRDd','8vDRUOf','14xtixAX','smDKR','CUCUMBER','FljTV','HTTP','bstack:options','removeAnsiColors','PLAYWRIGHT','linux','yobUq','platformVersion','IqPHE','\x20:\x20','ghVSM','stringify','git-repo-info','push','agent','BofUT','forEach','PSPDo','uejKE','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','gPFWD','release','xNbfV','nTAbr','CODECEPT','IlbZv','HHtUX','Ygjgp','http','true','then','cwd','getFrameworkVersion','getCapabilities','ocKQm','getDefaultHeaders','X-BSTACK-TESTOPS','headers','default','env','yboFb','debug','toISOString','printBuildLink','getUserCredentials','appium:app','pid','awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27','codeceptjs','isInternalHook','parse','HUB_URL_REGEX','Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20','OaMqo','Visit\x20https://observability.browserstack.com/builds/','rbyWh','KENWU','dwRRg','timeout','3737464kZDsWg','Content-Type','test','515460JJYcSV','getObservabilityLinkedProductName','iBcKs','unknown_grid','RDtMl','application/json','../performance/constants','153261DHNxkE','IYmTX','darwin','failureData','automate','Windows','UrZjn','Qokmd','message','zNwkA','silly','sLLuR','OS\x20X','ljyly','BROWSERSTACK_TESTHUB_JWT','map','eqPWA','windows-release','40IhWxJX','path','app','rlaUb','sleep','1992180sSjLrT','data','customTag','../../bin/utils/logPatcher','hfDJO','extractValuesWithRegexKeyMatch','split','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','local_grid','BS_TESTOPS_BUILD_HASHED_ID','maxSockets','jest','getPlatformVersion','BROWSERSTACK_TEST_OBSERVABILITY','^CUSTOM_TAG_\x5cd+$','ziQfa','][\x20OBSERVABILITY\x20]\x20','join','../logger','isTestObservabilitySession'];a87_0x2cdb=function(){return _0x4c31c9;};return a87_0x2cdb();}const fs=require('fs'),path=require(a87_0x47a57b(0x179)),gitLastCommit=require('git-last-commit'),getRepoInfo=require(a87_0x47a57b(0x12d)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,FRAMEWORKS}=require(a87_0x47a57b(0x1de)),http=require(a87_0x47a57b(0x13d)),https=require(a87_0x47a57b(0x197)),child_process=require('child_process'),getos=require('getos'),os=require('os'),logger=require(a87_0x47a57b(0x18f))['winstonLogger'],bsSetupHelper=require('../helper'),requestSpy=require(a87_0x47a57b(0x115)),constants=require(a87_0x47a57b(0x1e3)),logPatcher=require(a87_0x47a57b(0x180)),{fileLogger}=require(a87_0x47a57b(0x18f)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require('lodash'),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a87_0x47a57b(0x165));exports[a87_0x47a57b(0x1c0)]=_0x5485c0=>{const _0x3cac41=a87_0x47a57b;fileLogger[_0x3cac41(0x170)]('['+new Date()[_0x3cac41(0x14b)]()+_0x3cac41(0x18d)+_0x5485c0);},exports['debug']=_0x18cccf=>{const _0x999edd=a87_0x47a57b,_0x5c0bcf={};_0x5c0bcf[_0x999edd(0x12b)]=function(_0x44551d,_0x51401c){return _0x44551d===_0x51401c;},_0x5c0bcf[_0x999edd(0x149)]=_0x999edd(0x13e);const _0x31e207=_0x5c0bcf;fileLogger['debug']('['+new Date()[_0x999edd(0x14b)]()+_0x999edd(0x18d)+_0x18cccf),(_0x31e207['ghVSM'](process[_0x999edd(0x148)][_0x999edd(0x1b7)],_0x31e207[_0x999edd(0x149)])||_0x31e207[_0x999edd(0x12b)](process[_0x999edd(0x148)][_0x999edd(0x1b7)],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x999edd(0x14b)]()+_0x999edd(0x18d)+_0x18cccf+'\x0a');};function a87_0x117b(_0x2871f8,_0x2e7afd){const _0x2cdb3c=a87_0x2cdb();return a87_0x117b=function(_0x117b56,_0x515dbb){_0x117b56=_0x117b56-0x111;let _0x5bf433=_0x2cdb3c[_0x117b56];return _0x5bf433;},a87_0x117b(_0x2871f8,_0x2e7afd);}const a87_0x3896fe={};a87_0x3896fe[a87_0x47a57b(0x1a0)]=!![],a87_0x3896fe[a87_0x47a57b(0x15b)]=0xea60,a87_0x3896fe[a87_0x47a57b(0x187)]=0x2,a87_0x3896fe[a87_0x47a57b(0x1f5)]=0x2;const httpKeepAliveAgent=new http[(a87_0x47a57b(0x1b1))](a87_0x3896fe),a87_0x41c2cb={};a87_0x41c2cb[a87_0x47a57b(0x1a0)]=!![],a87_0x41c2cb[a87_0x47a57b(0x15b)]=0xea60,a87_0x41c2cb[a87_0x47a57b(0x187)]=0x2,a87_0x41c2cb[a87_0x47a57b(0x1f5)]=0x2;const httpsKeepAliveAgent=new https[(a87_0x47a57b(0x1b1))](a87_0x41c2cb),a87_0x1fd338={};a87_0x1fd338[a87_0x47a57b(0x1a0)]=!![],a87_0x1fd338['timeout']=0xea60,a87_0x1fd338['maxSockets']=0x2,a87_0x1fd338[a87_0x47a57b(0x1f5)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a87_0x47a57b(0x1b1))](a87_0x1fd338),a87_0x5164ed={};a87_0x5164ed['keepAlive']=!![],a87_0x5164ed[a87_0x47a57b(0x15b)]=0xea60,a87_0x5164ed[a87_0x47a57b(0x187)]=0x2,a87_0x5164ed['maxTotalSockets']=0x2;const httpsScreenshotsKeepAliveAgent=new https['Agent'](a87_0x5164ed);exports[a87_0x47a57b(0x1e2)]=()=>{const _0x12918d=a87_0x47a57b,_0x4303a4={};_0x4303a4['ocKQm']=function(_0x522a2d,_0x3201f6){return _0x522a2d!==_0x3201f6;},_0x4303a4[_0x12918d(0x181)]='null';const _0x4e1a14=_0x4303a4;return process[_0x12918d(0x148)][_0x12918d(0x1aa)]&&_0x4e1a14[_0x12918d(0x143)](process['env'][_0x12918d(0x1aa)],_0x4e1a14[_0x12918d(0x181)])?!![]:![];},exports[a87_0x47a57b(0x190)]=()=>{const _0x376fd1=a87_0x47a57b,_0x44597d={};_0x44597d[_0x376fd1(0x176)]=function(_0x23b5c3,_0x3bddf9){return _0x23b5c3===_0x3bddf9;},_0x44597d[_0x376fd1(0x19e)]='true',_0x44597d[_0x376fd1(0x1d4)]=function(_0x50375d,_0x1f3e0d){return _0x50375d===_0x1f3e0d;};const _0x1dcdba=_0x44597d;let _0x3af2e5=!![];return process[_0x376fd1(0x148)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x3af2e5=_0x1dcdba['eqPWA'](process['env']['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x1dcdba[_0x376fd1(0x19e)])),process[_0x376fd1(0x148)][_0x376fd1(0x18a)]&&(_0x3af2e5=_0x1dcdba[_0x376fd1(0x1d4)](process[_0x376fd1(0x148)][_0x376fd1(0x18a)],_0x1dcdba[_0x376fd1(0x19e)])),_0x3af2e5;},exports['parseFileNames']=_0xeb9349=>{const _0x1fbb47=a87_0x47a57b;if(bsSetupHelper[_0x1fbb47(0x1cf)](_0xeb9349))return undefined;try{return _0xeb9349[_0x1fbb47(0x1ad)]()[_0x1fbb47(0x183)](',');}catch(_0x4510be){return undefined;}},exports[a87_0x47a57b(0x14c)]=()=>{const _0x31fe99=a87_0x47a57b,_0x12c7c1={};_0x12c7c1[_0x31fe99(0x173)]=function(_0x58d686,_0x1adb76){return _0x58d686!==_0x1adb76;},_0x12c7c1[_0x31fe99(0x167)]=_0x31fe99(0x1b6),_0x12c7c1[_0x31fe99(0x1f9)]=function(_0x1d52dd,_0x24dcbe){return _0x1d52dd!==_0x24dcbe;},_0x12c7c1[_0x31fe99(0x16d)]=_0x31fe99(0x1af);const _0xf86518=_0x12c7c1;return PerformanceTester['measureWrapper'](PerformanceO11yEvents[_0x31fe99(0x194)],async()=>{const _0x283447=_0x31fe99;try{process[_0x283447(0x148)]['BS_TESTOPS_BUILD_HASHED_ID']&&_0xf86518['ljyly'](process['env']['BS_TESTOPS_BUILD_HASHED_ID'],_0xf86518['IYmTX'])&&_0xf86518[_0x283447(0x1f9)](process[_0x283447(0x148)][_0x283447(0x186)],_0xf86518[_0x283447(0x16d)])&&logger['info'](_0x283447(0x157)+process['env'][_0x283447(0x186)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a');}catch(_0x32321f){logger[_0x283447(0x1f4)]('['+new Date()[_0x283447(0x14b)]()+_0x283447(0x1ee));}})();},exports[a87_0x47a57b(0x19a)]=_0xe38ac0=>{const _0x4e3662=a87_0x47a57b,_0x8d1849={};_0x8d1849[_0x4e3662(0x1be)]='AssertionError',_0x8d1849[_0x4e3662(0x13a)]='UnhandledError';const _0x7809f7=_0x8d1849;if(!_0xe38ac0)return null;return _0xe38ac0[_0x4e3662(0x1b4)]()[_0x4e3662(0x1a7)](/AssertionError/)?_0x7809f7[_0x4e3662(0x1be)]:_0x7809f7['IlbZv'];},exports[a87_0x47a57b(0x141)]=_0x9115cb=>{const _0x5a8425=a87_0x47a57b,_0x32e22f={};_0x32e22f[_0x5a8425(0x1ef)]=_0x5a8425(0x1b0),_0x32e22f[_0x5a8425(0x163)]='@playwright/test',_0x32e22f[_0x5a8425(0x121)]=_0x5a8425(0x151),_0x32e22f[_0x5a8425(0x1e6)]=_0x5a8425(0x188),_0x32e22f[_0x5a8425(0x16c)]=_0x5a8425(0x1dc);const _0x152b92=_0x32e22f;let _0x493d0e=null;switch(_0x9115cb){case FRAMEWORKS[_0x5a8425(0x19f)]:_0x493d0e=bsSetupHelper['getPackageVersion'](_0x152b92[_0x5a8425(0x1ef)]);break;case FRAMEWORKS['PLAYWRIGHT']:_0x493d0e=bsSetupHelper[_0x5a8425(0x1ac)](_0x152b92['RDtMl']);break;case FRAMEWORKS[_0x5a8425(0x139)]:_0x493d0e=bsSetupHelper[_0x5a8425(0x1ac)](_0x152b92[_0x5a8425(0x121)]);break;case FRAMEWORKS['JEST']:_0x493d0e=bsSetupHelper['getPackageVersion'](_0x152b92[_0x5a8425(0x1e6)]);break;case FRAMEWORKS[_0x5a8425(0x120)]:_0x493d0e=bsSetupHelper[_0x5a8425(0x1ac)](_0x152b92[_0x5a8425(0x16c)]);break;default:break;}return _0x493d0e;},exports['getBrowserStackConfig']=_0x366895=>{const _0x4ddb08=a87_0x47a57b;let _0x543b76=null;switch(_0x366895){case FRAMEWORKS[_0x4ddb08(0x125)]:_0x543b76=process[_0x4ddb08(0x148)][_0x4ddb08(0x114)];break;}if(!_0x543b76)return;return bsSetupHelper[_0x4ddb08(0x1b2)](_0x543b76,![]);},exports[a87_0x47a57b(0x14d)]=_0x211ef6=>{const _0x51fe61=a87_0x47a57b;return{'username':bsSetupHelper[_0x51fe61(0x1cb)](_0x211ef6),'accessKey':bsSetupHelper['getAccessKey'](_0x211ef6)};},exports['nodeRequest']=(_0x43e27c,_0x4a9915,_0x5d8152,_0x25e947,_0x2db120=!![])=>{const _0x55ce0d=a87_0x47a57b,_0x4fdca2={'lDceF':function(_0x4b06e9,_0x482066){return _0x4b06e9(_0x482066);},'CCJlT':function(_0x4e11e7,_0x4bb992){return _0x4e11e7!==_0x4bb992;},'Vbeew':'object','xfWCk':_0x55ce0d(0x191),'jvyWd':function(_0x451c33,_0x12b6b6){return _0x451c33===_0x12b6b6;},'awiBg':_0x55ce0d(0x15d),'WJOww':_0x55ce0d(0x164),'vUgrh':'https','PSPDo':function(_0x4de2ac,_0xa3bb10){return _0x4de2ac===_0xa3bb10;}};return new Promise((_0x450cd2,_0x30db13)=>{const _0x1ef980=_0x55ce0d,_0x51e6d8={'uejKE':function(_0x3a3c78,_0x2aec14){const _0x53bc62=a87_0x117b;return _0x4fdca2[_0x53bc62(0x1b3)](_0x3a3c78,_0x2aec14);},'dCJoI':function(_0x2a5f55,_0x30cb42){const _0xf96a5b=a87_0x117b;return _0x4fdca2[_0xf96a5b(0x1e7)](_0x2a5f55,_0x30cb42);},'xNbfV':function(_0x4208ba,_0x368d21){const _0x5eb3c2=a87_0x117b;return _0x4fdca2[_0x5eb3c2(0x1b3)](_0x4208ba,_0x368d21);},'nTAbr':_0x4fdca2['Vbeew'],'pahXQ':function(_0x35ef8b,_0x13d21f){return _0x4fdca2['lDceF'](_0x35ef8b,_0x13d21f);},'isDAD':_0x4fdca2['xfWCk'],'iBcKs':function(_0x373cb6,_0x38087a){return _0x4fdca2['lDceF'](_0x373cb6,_0x38087a);}},_0x4aef5d={..._0x25e947,...{'method':_0x43e27c,'url':API_URL+'/'+_0x4a9915,'body':_0x5d8152,'json':_0x4fdca2['jvyWd'](_0x25e947['headers'][_0x4fdca2[_0x1ef980(0x1a3)]],_0x4fdca2[_0x1ef980(0x11b)]),'agent':API_URL[_0x1ef980(0x1e8)](_0x4fdca2[_0x1ef980(0x1a8)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x4fdca2[_0x1ef980(0x132)](_0x4a9915,SCREENSHOT_ENDPOINT)&&(_0x4aef5d[_0x1ef980(0x12f)]=API_URL['includes'](_0x4fdca2[_0x1ef980(0x1a8)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x1ef980(0x1ae)](_0x43e27c,_0x4a9915,_0x4aef5d,_0x25e947,API_URL)[_0x1ef980(0x13f)](({statusCode:_0x9d06d6,body:_0x3474f8})=>{const _0xea4372=_0x1ef980;if(_0x51e6d8[_0xea4372(0x133)](_0x9d06d6,0xc8))_0x51e6d8['dCJoI'](_0x30db13,_0x3474f8?_0x3474f8:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x9d06d6);else{if(_0x2db120)try{_0x51e6d8[_0xea4372(0x137)](typeof _0x3474f8,_0x51e6d8[_0xea4372(0x138)])&&(_0x3474f8=JSON[_0xea4372(0x153)](_0x3474f8));}catch(_0x3e84f8){_0x51e6d8['pahXQ'](_0x30db13,_0x51e6d8['isDAD']);return;}const _0x5bb766={};_0x5bb766[_0xea4372(0x17e)]=_0x3474f8,_0x51e6d8[_0xea4372(0x161)](_0x450cd2,_0x5bb766);}})[_0x1ef980(0x118)](_0x2b4271=>{_0x2b4271&&_0x4fdca2['lDceF'](_0x30db13,_0x2b4271);});});},exports[a87_0x47a57b(0x196)]=_0x1bf0e4=>{const _0x5e67d5=a87_0x47a57b;if(process['env'][_0x5e67d5(0x1f6)])return process[_0x5e67d5(0x148)][_0x5e67d5(0x1f6)][_0x5e67d5(0x183)](',');if(_0x1bf0e4[_0x5e67d5(0x1f8)])return _0x1bf0e4[_0x5e67d5(0x1f8)];return[];},exports[a87_0x47a57b(0x144)]=(_0x5cce06=!![])=>{const _0xda2ad3=a87_0x47a57b,_0x279c7f={};_0x279c7f[_0xda2ad3(0x195)]=_0xda2ad3(0x164),_0x279c7f[_0xda2ad3(0x158)]='true',_0x279c7f[_0xda2ad3(0x156)]=_0xda2ad3(0x1f2);const _0x3efb51=_0x279c7f,_0x13da0d={};_0x13da0d['Content-Type']=_0x3efb51[_0xda2ad3(0x195)],_0x13da0d[_0xda2ad3(0x145)]=_0x3efb51[_0xda2ad3(0x158)];const _0x515b9d=_0x13da0d;return _0x5cce06&&process[_0xda2ad3(0x148)][_0xda2ad3(0x174)]&&(_0x515b9d[_0x3efb51[_0xda2ad3(0x156)]]='Bearer\x20'+process[_0xda2ad3(0x148)][_0xda2ad3(0x174)]),_0x515b9d;},exports[a87_0x47a57b(0x182)]=_0xf9f5cb=>{const _0x4ba7c6=a87_0x47a57b,_0xbd985d={};_0xbd985d[_0x4ba7c6(0x13c)]=_0x4ba7c6(0x18b);const _0x2174b1=_0xbd985d,_0x133a43=[],_0x5c5b06=new RegExp(_0x2174b1[_0x4ba7c6(0x13c)],'i');return Object[_0x4ba7c6(0x1c4)](_0xf9f5cb)['filter'](_0x3cd6c2=>_0x5c5b06[_0x4ba7c6(0x15e)](_0x3cd6c2))[_0x4ba7c6(0x131)](_0x30b1d6=>_0x133a43[_0x4ba7c6(0x12e)](_0xf9f5cb[_0x30b1d6])),_0x133a43;},exports[a87_0x47a57b(0x1fa)]=_0x32a958=>{const _0x4e30c0=a87_0x47a57b,_0x2df8fe=[],_0x1cbc89=_0x32a958[_0x4e30c0(0x17f)]||process[_0x4e30c0(0x148)]['CUSTOM_TAG'];return _0x1cbc89&&_0x2df8fe[_0x4e30c0(0x12e)](_0x1cbc89),_0x2df8fe[_0x4e30c0(0x12e)](...exports[_0x4e30c0(0x182)](process[_0x4e30c0(0x148)])),_0x2df8fe[_0x4e30c0(0x12e)](...exports[_0x4e30c0(0x182)](_0x32a958)),_0x2df8fe;},exports['removeAnsiColors']=_0x29cf1=>{if(!_0x29cf1)return'';return _0x29cf1['replace'](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a87_0x47a57b(0x17c)]=(_0x52a0f9=0x64)=>new Promise(_0x46f971=>setTimeout(_0x46f971,_0x52a0f9));const getPlatformName=()=>{const _0x56855c=a87_0x47a57b,_0x5bc6a3={};_0x5bc6a3[_0x56855c(0x1a4)]=function(_0x4be6c0,_0x1f21bc){return _0x4be6c0===_0x1f21bc;},_0x5bc6a3[_0x56855c(0x19d)]=_0x56855c(0x1f7),_0x5bc6a3[_0x56855c(0x1e0)]='Windows',_0x5bc6a3[_0x56855c(0x18c)]=function(_0x92e9ca,_0x215e9a){return _0x92e9ca===_0x215e9a;},_0x5bc6a3[_0x56855c(0x1ea)]=_0x56855c(0x168),_0x5bc6a3[_0x56855c(0x1a5)]='OS\x20X',_0x5bc6a3[_0x56855c(0x116)]=function(_0x4fcf04,_0x20d9f8){return _0x4fcf04===_0x20d9f8;},_0x5bc6a3['mMiDn']=_0x56855c(0x126),_0x5bc6a3[_0x56855c(0x1ab)]=_0x56855c(0x1df),_0x5bc6a3[_0x56855c(0x1a6)]='Unknown';const _0x21eb57=_0x5bc6a3;if(_0x21eb57[_0x56855c(0x1a4)](process[_0x56855c(0x1ce)],_0x21eb57[_0x56855c(0x19d)]))return _0x21eb57[_0x56855c(0x1e0)];if(_0x21eb57['ziQfa'](process[_0x56855c(0x1ce)],_0x21eb57['JvBgk']))return _0x21eb57[_0x56855c(0x1a5)];if(_0x21eb57[_0x56855c(0x116)](process[_0x56855c(0x1ce)],_0x21eb57['mMiDn']))return _0x21eb57[_0x56855c(0x1ab)];return _0x21eb57['SqnDm'];},getMacOSVersion=()=>{const _0x125657=a87_0x47a57b,_0x4e7260={};_0x4e7260[_0x125657(0x171)]=_0x125657(0x150);const _0x201260=_0x4e7260;return child_process['execSync'](_0x201260[_0x125657(0x171)])['toString']()['trim']();},getLinuxDetails=()=>{const _0x85c2c3={'rapYd':function(_0x5beef2,_0x3ecaaa){return _0x5beef2(_0x3ecaaa);},'nTfWt':function(_0xbf40b2,_0x5a87ae){return _0xbf40b2(_0x5a87ae);},'smDKR':function(_0x52c0d8,_0x435845){return _0x52c0d8(_0x435845);}};return new Promise((_0x4a1402,_0xc81d46)=>{const _0x4fe4f4=a87_0x117b,_0x13e9e0={'MyFra':function(_0x42522a,_0x388c8f){const _0x9bf583=a87_0x117b;return _0x85c2c3[_0x9bf583(0x1bd)](_0x42522a,_0x388c8f);},'FUjDu':function(_0x1af88a,_0x5008ec){return _0x85c2c3['nTfWt'](_0x1af88a,_0x5008ec);}};_0x85c2c3[_0x4fe4f4(0x11f)](getos,(_0x17f567,_0x3a77be)=>{const _0xc25b1e=_0x4fe4f4;if(_0x17f567)return _0x13e9e0[_0xc25b1e(0x1bc)](_0xc81d46,_0x17f567);_0x13e9e0['FUjDu'](_0x4a1402,_0x3a77be);});});};exports['getPlatformDetails']=async()=>{const _0x3fded5=a87_0x47a57b,_0xfc5355={'IqPHE':function(_0xad8a0e){return _0xad8a0e();},'GsXMs':_0x3fded5(0x172),'URAHl':_0x3fded5(0x16b),'LIPlu':_0x3fded5(0x177),'cscMx':function(_0x2936cf){return _0x2936cf();},'rlaUb':_0x3fded5(0x1df),'eSbiK':'Error\x20in\x20getting\x20Linux\x20Details'};let _0xf06c5=_0xfc5355['IqPHE'](getPlatformName),_0x339f9b=os[_0x3fded5(0x136)]()[_0x3fded5(0x1b4)]();switch(_0xf06c5){case _0xfc5355[_0x3fded5(0x1d2)]:_0x339f9b=_0xfc5355[_0x3fded5(0x129)](getMacOSVersion);break;case _0xfc5355[_0x3fded5(0x113)]:try{const _0x23875d=(await import(_0xfc5355[_0x3fded5(0x1d8)]))[_0x3fded5(0x147)];_0x339f9b=_0xfc5355[_0x3fded5(0x1d5)](_0x23875d);}catch(_0x2fc573){exports[_0x3fded5(0x14a)]('Error\x20in\x20importing\x20windows-release\x20'+_0x2fc573[_0x3fded5(0x1b4)]());}break;case _0xfc5355[_0x3fded5(0x17b)]:try{const _0x2bd889=await _0xfc5355['cscMx'](getLinuxDetails);_0x2bd889[_0x3fded5(0x111)]&&(_0xf06c5=_0x2bd889[_0x3fded5(0x111)]),_0x2bd889[_0x3fded5(0x136)]&&(_0x339f9b=_0x2bd889[_0x3fded5(0x136)][_0x3fded5(0x1b4)]());}catch(_0x1acd5f){exports[_0x3fded5(0x14a)](_0xfc5355['eSbiK']);}break;default:break;}const _0x1bfc28={};return _0x1bfc28[_0x3fded5(0x1b8)]=_0xf06c5,_0x1bfc28[_0x3fded5(0x128)]=_0x339f9b,_0x1bfc28;},exports[a87_0x47a57b(0x169)]=(_0x1368d8,_0x28d8a0)=>{const _0x543944=a87_0x47a57b,_0x255239={};_0x255239['Mgqac']=function(_0x4f0c36,_0x50a1b5){return _0x4f0c36===_0x50a1b5;},_0x255239[_0x543944(0x1c7)]=_0x543944(0x15e),_0x255239[_0x543944(0x1c5)]=function(_0x27391d,_0x43886d){return _0x27391d===_0x43886d;},_0x255239[_0x543944(0x1f1)]=_0x543944(0x192);const _0x17a279=_0x255239;if(!_0x1368d8)return[];try{if(_0x17a279['Mgqac'](_0x28d8a0,_0x17a279[_0x543944(0x1c7)]))return _0x1368d8[_0x543944(0x175)](_0x50bba6=>{const _0x713361=_0x543944,{stack:_0x23fb64,..._0x495bd3}=_0x50bba6,_0x2a9fdc=Object[_0x713361(0x1c4)](_0x495bd3)[_0x713361(0x175)](_0x3dc39f=>{return _0x3dc39f+':\x20'+_0x495bd3[_0x3dc39f];}),_0x1cc4df=_0x23fb64?exports[_0x713361(0x124)](_0x23fb64)['split'](/\r?\n/):[exports[_0x713361(0x124)](_0x50bba6['message'])],_0x1dcfa8={};return _0x1dcfa8['backtrace']=_0x1cc4df,_0x1dcfa8['expanded']=_0x2a9fdc,_0x1dcfa8;});else{if(_0x17a279[_0x543944(0x1c5)](_0x28d8a0,_0x17a279[_0x543944(0x1f1)])){const _0x25f866=[],_0x583d60=[];return Object[_0x543944(0x1c4)](_0x1368d8)[_0x543944(0x131)](_0xc618be=>{const _0x5d2488=_0x543944;try{_0x583d60['push'](_0xc618be+':\x20'+_0x1368d8[_0xc618be]);}catch(_0x2a68ff){exports['debug'](_0x5d2488(0x134)+_0x2a68ff['message']+'\x20:\x20'+_0x2a68ff[_0x5d2488(0x1f3)]);}}),_0x25f866['push']({'backtrace':exports['removeAnsiColors'](_0x1368d8[_0x543944(0x1db)])[_0x543944(0x183)](/\r?\n/),'expanded':_0x583d60}),_0x25f866;}}return[];}catch(_0x42cfbd){exports[_0x543944(0x14a)](_0x543944(0x134)+_0x42cfbd[_0x543944(0x16e)]+_0x543944(0x12a)+_0x42cfbd['backtrace']);}return[];};class PathHelper{constructor(_0x3dec64,_0xc28c7c){const _0x4a1392=a87_0x47a57b;this['config']=_0x3dec64,this[_0x4a1392(0x117)]=_0xc28c7c;}[a87_0x47a57b(0x1f0)](_0x69c4c4){const _0x5e0d4f=a87_0x47a57b,_0x3aeca5=this[_0x5e0d4f(0x1bf)][_0x5e0d4f(0x140)]||this[_0x5e0d4f(0x1bf)]['rootDir'];return path[_0x5e0d4f(0x1c9)](_0x3aeca5,_0x69c4c4);}['prefixTestPath'](_0x3df103){const _0x284ddc=a87_0x47a57b,_0x546cdf=this['relativeTestFilePath'](_0x3df103);return this[_0x284ddc(0x117)]?path[_0x284ddc(0x18e)](this[_0x284ddc(0x117)],_0x546cdf):_0x546cdf;}}exports[a87_0x47a57b(0x1a2)]=PathHelper,exports['addRequestSpy']=(_0xbb2c4b=!![])=>{const _0x547839=a87_0x47a57b,_0xef7c6a={};_0xef7c6a[_0x547839(0x127)]=function(_0x35275a,_0x666349){return _0x35275a===_0x666349;},_0xef7c6a[_0x547839(0x1cd)]=_0x547839(0x145),_0xef7c6a[_0x547839(0x13b)]=_0x547839(0x13e),_0xef7c6a[_0x547839(0x1a9)]=_0x547839(0x122),_0xef7c6a[_0x547839(0x1c1)]=_0x547839(0x1ec),_0xef7c6a[_0x547839(0x135)]=_0x547839(0x185);const _0x199d20=_0xef7c6a;requestSpy[_0x547839(0x198)]((_0x2485f9,_0x3b6ea6)=>{const _0x412ecd=_0x547839;_0x3b6ea6&&!(_0x3b6ea6[_0x412ecd(0x146)]&&_0x199d20[_0x412ecd(0x127)](_0x3b6ea6[_0x412ecd(0x146)][_0x199d20['HdPsE']],_0x199d20['HHtUX']))&&(_0x3b6ea6[_0x412ecd(0x1da)]=_0x3b6ea6[_0x412ecd(0x1e4)],delete _0x3b6ea6['hostname'],_0xbb2c4b&&process[_0x412ecd(0x1eb)](_0x412ecd(0x1e9)+process['pid'],{'timestamp':new Date()[_0x412ecd(0x14b)](),'level':null,'message':null,'kind':_0x199d20['Tzasa'],'http_response':_0x3b6ea6})),_0x3b6ea6&&(constants[_0x412ecd(0x154)][_0x412ecd(0x15e)](_0x3b6ea6['host'])||constants['ATS_HUB_URL_REGEX'][_0x412ecd(0x15e)](_0x3b6ea6['host']))?global[_0x412ecd(0x1c8)]=_0x199d20[_0x412ecd(0x1c1)]:global[_0x412ecd(0x1c8)]=_0x199d20['gPFWD'];});},exports['patchConsoleLogger']=()=>{const _0x473adf=a87_0x47a57b,_0x2e8a21={'zNwkA':function(_0x2ab74b,_0x401699){return _0x2ab74b(_0x401699);}};console={},Object['keys'](consoleHolder)[_0x473adf(0x131)](_0x3ef6ea=>{const _0x4491be=_0x473adf;_0x2e8a21[_0x4491be(0x16f)](isFunction,consoleHolder[_0x3ef6ea])?console[_0x3ef6ea]=(..._0x298216)=>{const _0xc27142=_0x4491be;try{!Object[_0xc27142(0x1c4)](BSTestOpsPatcher)['includes'](_0x3ef6ea)?consoleHolder[_0x3ef6ea](..._0x298216):BSTestOpsPatcher[_0x3ef6ea](..._0x298216);}catch(_0x52314f){consoleHolder[_0x3ef6ea](..._0x298216);}}:console[_0x3ef6ea]=consoleHolder[_0x3ef6ea];});},exports['getSyncScript']=()=>'browserstack_executor:\x20'+JSON[a87_0x47a57b(0x12c)]({'action':a87_0x47a57b(0x193),'arguments':{'data':a87_0x47a57b(0x1ba)+Date[a87_0x47a57b(0x199)](),'level':a87_0x47a57b(0x14a)}}),exports[a87_0x47a57b(0x160)]=_0x38ef96=>{const _0x359055=a87_0x47a57b,_0x1a875b={};_0x1a875b[_0x359055(0x1c3)]=function(_0x2cc70f,_0x17e808){return _0x2cc70f===_0x17e808;},_0x1a875b[_0x359055(0x1c2)]='browserstack',_0x1a875b[_0x359055(0x1ed)]=_0x359055(0x14e),_0x1a875b[_0x359055(0x11c)]=_0x359055(0x17a),_0x1a875b[_0x359055(0x1d7)]=function(_0x556768,_0x2629ea){return _0x556768>_0x2629ea;},_0x1a875b['qBUTm']=_0x359055(0x1d6),_0x1a875b['kKzAp']=_0x359055(0x123),_0x1a875b[_0x359055(0x15a)]='turboScaleGridDetails',_0x1a875b[_0x359055(0x11a)]=_0x359055(0x1b5),_0x1a875b[_0x359055(0x159)]=_0x359055(0x16a);const _0x45e224=_0x1a875b;let _0x1154bb=null;try{if(_0x45e224[_0x359055(0x1c3)](global[_0x359055(0x1c8)],_0x45e224['sTtXc'])){if(_0x38ef96[_0x45e224[_0x359055(0x1ed)]]||_0x38ef96[_0x45e224[_0x359055(0x11c)]]||!bsSetupHelper[_0x359055(0x1cf)](global['capabilities'])&&_0x45e224['HlAqG'](global[_0x359055(0x1b9)]['length'],0x0)&&(global['capabilities'][0x0][_0x45e224[_0x359055(0x11c)]]||global[_0x359055(0x1b9)][0x0][_0x45e224[_0x359055(0x1ed)]]))_0x1154bb=_0x45e224[_0x359055(0x19c)];else _0x38ef96[_0x45e224[_0x359055(0x1d3)]]&&_0x38ef96[_0x45e224[_0x359055(0x1d3)]][_0x45e224[_0x359055(0x15a)]]?_0x1154bb=_0x45e224['ZVrOr']:_0x1154bb=_0x45e224[_0x359055(0x159)];}}catch(_0x4354f2){exports[_0x359055(0x14a)](_0x359055(0x155)+_0x4354f2);}return _0x1154bb;},exports['sendPlatformDetails']=async(_0x1f08df,_0x404f12,_0x235071=![])=>{const _0x2cc3ec=a87_0x47a57b,_0x546e29={};_0x546e29[_0x2cc3ec(0x130)]=function(_0x17c114,_0x1e1dab){return _0x17c114===_0x1e1dab;},_0x546e29[_0x2cc3ec(0x1e1)]=_0x2cc3ec(0x1ec),_0x546e29[_0x2cc3ec(0x1ca)]=_0x2cc3ec(0x162),_0x546e29[_0x2cc3ec(0x1d9)]=_0x2cc3ec(0x1c6);const _0x157c0a=_0x546e29;try{const _0x28a814=await _0x1f08df['getCapabilities'](),_0x9a0503=await _0x1f08df['getSession'](),_0x50221b={},_0x1c04c2=Object[_0x2cc3ec(0x119)](_0x9a0503[_0x2cc3ec(0x142)]()[_0x2cc3ec(0x112)]),_0x1bf3cf={'product':exports[_0x2cc3ec(0x160)](_0x1c04c2),'capabilities':_0x1c04c2,'platform':_0x28a814['getPlatform'](),'platform_version':bsSetupHelper[_0x2cc3ec(0x189)](_0x157c0a[_0x2cc3ec(0x130)](global[_0x2cc3ec(0x1c8)],_0x157c0a['rxLJr'])),'browser':_0x28a814[_0x2cc3ec(0x1d1)](),'browser_version':_0x28a814[_0x2cc3ec(0x1cc)](),'session_id':_0x9a0503[_0x2cc3ec(0x1e5)]()};global['__cloud_provider___']?_0x50221b[global['__cloud_provider___']]=_0x1bf3cf:_0x50221b[_0x157c0a[_0x2cc3ec(0x1ca)]]=_0x1bf3cf;if(_0x235071)return _0x50221b;process[_0x2cc3ec(0x1eb)]('bs:addPlatformDetails:'+process[_0x2cc3ec(0x14f)],{'timestamp':new Date()[_0x2cc3ec(0x14b)](),'level':null,'message':null,'kind':_0x157c0a[_0x2cc3ec(0x1d9)],'http_response':_0x50221b,'uuid':_0x404f12});}catch(_0x3cf5af){exports[_0x2cc3ec(0x14a)](_0x2cc3ec(0x184)+_0x3cf5af);}},exports[a87_0x47a57b(0x152)]=_0x24c15c=>{const _0x3d1437=a87_0x47a57b;return _0x24c15c&&_0x24c15c[_0x3d1437(0x1b4)]()[_0x3d1437(0x1a7)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a88_0x1f06fe=a88_0x48d1;(function(_0x55502f,_0x282fab){var _0x3379ba=a88_0x48d1,_0x4b58f3=_0x55502f();while(!![]){try{var _0x38736b=-parseInt(_0x3379ba(0x130))/0x1+-parseInt(_0x3379ba(0x136))/0x2+parseInt(_0x3379ba(0x137))/0x3+-parseInt(_0x3379ba(0x11c))/0x4*(parseInt(_0x3379ba(0x134))/0x5)+-parseInt(_0x3379ba(0x123))/0x6*(-parseInt(_0x3379ba(0x120))/0x7)+-parseInt(_0x3379ba(0x12a))/0x8+parseInt(_0x3379ba(0x121))/0x9*(parseInt(_0x3379ba(0x118))/0xa);if(_0x38736b===_0x282fab)break;else _0x4b58f3['push'](_0x4b58f3['shift']());}catch(_0x1445ba){_0x4b58f3['push'](_0x4b58f3['shift']());}}}(a88_0x4699,0xe422b));var a88_0xec5af2={};a88_0xec5af2[a88_0x1f06fe(0x13a)]=a88_0x1f06fe(0x13c),a88_0xec5af2['DEPRECATED']=a88_0x1f06fe(0x127),a88_0xec5af2[a88_0x1f06fe(0x11a)]=a88_0x1f06fe(0x133);var a88_0x8fcb59={};function a88_0x4699(){var _0x1ce0e0=['ENV_VAR','172yCaUJU','BROWSERSTACK_TESTHUB_UUID','TestRunSkipped','ERROR','6030787AXmwrz','270wCPcXs','api/v2/builds','6emkaaM','HookStarted','TestFinished','TestRunStarted','ERROR_SDK_DEPRECATED','observability','CBTSessionCreated','8302312EZZDzA','TESTHUB_BUILD_API','exports','BROWSERSTACK_TESTHUB_JWT','TestStarted','LogCreated','210776zbpQYq','HookRunFinished','HookRunStarted','ERROR_ACCESS_DENIED','88975jXcrLq','TestSkipped','3705914hswhnU','588447urSbuW','EVENT','OBSERVABILITY','INVALID_CREDENTIALS','accessibility','ERROR_INVALID_CREDENTIALS','ACCESSIBILITY','TestRunFinished','1247820KCFAKJ','HookFinished','ACCESS_DENIED'];a88_0x4699=function(){return _0x1ce0e0;};return a88_0x4699();}a88_0x8fcb59[a88_0x1f06fe(0x12e)]=a88_0x1f06fe(0x126),a88_0x8fcb59[a88_0x1f06fe(0x125)]=a88_0x1f06fe(0x117),a88_0x8fcb59[a88_0x1f06fe(0x135)]=a88_0x1f06fe(0x11e),a88_0x8fcb59[a88_0x1f06fe(0x12f)]=a88_0x1f06fe(0x12f),a88_0x8fcb59[a88_0x1f06fe(0x124)]=a88_0x1f06fe(0x132),a88_0x8fcb59[a88_0x1f06fe(0x119)]=a88_0x1f06fe(0x131),a88_0x8fcb59[a88_0x1f06fe(0x129)]=a88_0x1f06fe(0x129);var a88_0x2260ca={};a88_0x2260ca[a88_0x1f06fe(0x11d)]=a88_0x1f06fe(0x11d),a88_0x2260ca[a88_0x1f06fe(0x12d)]=a88_0x1f06fe(0x12d);var a88_0x2d3fb6={};function a88_0x48d1(_0x4f41fa,_0x24e732){var _0x469932=a88_0x4699();return a88_0x48d1=function(_0x48d1e3,_0x4c925a){_0x48d1e3=_0x48d1e3-0x116;var _0x6f13b8=_0x469932[_0x48d1e3];return _0x6f13b8;},a88_0x48d1(_0x4f41fa,_0x24e732);}a88_0x2d3fb6[a88_0x1f06fe(0x12b)]=a88_0x1f06fe(0x122),a88_0x2d3fb6[a88_0x1f06fe(0x116)]=a88_0x1f06fe(0x13b),a88_0x2d3fb6[a88_0x1f06fe(0x139)]=a88_0x1f06fe(0x128),a88_0x2d3fb6[a88_0x1f06fe(0x11f)]=a88_0xec5af2,a88_0x2d3fb6[a88_0x1f06fe(0x138)]=a88_0x8fcb59,a88_0x2d3fb6[a88_0x1f06fe(0x11b)]=a88_0x2260ca,module[a88_0x1f06fe(0x12c)]=a88_0x2d3fb6;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a89_0x2f3b1b=a89_0x1cd4;function a89_0x1a03(){const _0x4b21f1=['Doqvj','generateBuildUpstreamData','setupPercy','stop','../performance/constants','accessibilityOptions','message','../../bin/utils/constants.js','STOP','BS_TESTOPS_BUILD_COMPLETED','AoUkr','../logger','job_id','FjUSB','../helper','QVjby','auth','env','19586435cVeKWH','/stop','BROWSERSTACK_RERUN','hBGob','settings','../test-observability/sessionHandler.js','BROWSERSTACK_TESTHUB_UUID','success','dRPTP','status','YPzUq','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','getCiInfo','buildHashedId','config','START','OBSERVABILITY','IcouJ','includes','isAccessibilityEnabled','isUndefined','FDXMg','CuknT','getUserName','percy','HzYDT','BROWSERSTACK_TESTHUB_JWT','Percy\x20is\x20not\x20supported\x20for\x20','EoStw','false','measureWrapper','297ojcXit','response','setAccessibilityVariables','cwd','ENV_VAR','buildDescription','BROWSERSTACK_ACCESSIBILITY','api/v1/builds/','stringify','getAccessKey','PUT','getConfig','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','projectName','WEXEi','../test-observability/requestQueueHandler.js','jXvoD','LNeSp','stopBuildUpstream\x20event\x20successful!','jwt','toISOString','Wogib','206312tMPSlX','basename','qIWqy','root_dir_path','launchBuild','statusText','waitForBuildStatus','ACCESSIBILITY','token','getAccessibilityOptions','buildStopSent','user_killed','79280lIvckP','isBrowserstackInfra','finished_metadata','NDlHs','gytnW','logBuildError','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','password','resolve','getHostInfo','36ruKZOs','HdRrY','BROWSERSTACK_CENTRAL_SCANNER_JWT','username','YKbMZ','getProductMap','BROWSERSTACK_BUILD_RUN_IDENTIFIER','debug','../test-observability/utils','setTestHubCommonMetaInfo','1359bkBqlf','789432LLgEbb','183295XkydCl','getInstance','error','getGitMetaData','./utils.js','uploadPending','extractDataFromResponse','./constants.js','TESTHUB_BUILD_API','BROWSERSTACK_CENTRAL_USER','248UifGEY','data','222FyHQdG','checkAndSetupPercy','BROWSERSTACK_TEST_OBSERVABILITY','buildName','winstonLogger','push','294119JznBzB'];a89_0x1a03=function(){return _0x4b21f1;};return a89_0x1a03();}(function(_0x317036,_0xd359d8){const _0x58a329=a89_0x1cd4,_0x3d94d3=_0x317036();while(!![]){try{const _0x589ce4=-parseInt(_0x58a329(0x15e))/0x1*(-parseInt(_0x58a329(0x126))/0x2)+parseInt(_0x58a329(0x195))/0x3+-parseInt(_0x58a329(0x174))/0x4+-parseInt(_0x58a329(0x196))/0x5*(parseInt(_0x58a329(0x18a))/0x6)+parseInt(_0x58a329(0x12c))/0x7*(parseInt(_0x58a329(0x124))/0x8)+parseInt(_0x58a329(0x194))/0x9*(parseInt(_0x58a329(0x180))/0xa)+-parseInt(_0x58a329(0x13f))/0xb;if(_0x589ce4===_0xd359d8)break;else _0x3d94d3['push'](_0x3d94d3['shift']());}catch(_0x44c50b){_0x3d94d3['push'](_0x3d94d3['shift']());}}}(a89_0x1a03,0xb58e1));const bsSetupHelper=require(a89_0x2f3b1b(0x13b)),path=require('path'),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a89_0x2f3b1b(0x192)),testhubUtils=require(a89_0x2f3b1b(0x19a)),testHubConstants=require(a89_0x2f3b1b(0x121)),constants=require(a89_0x2f3b1b(0x134)),RequestQueueHandler=require(a89_0x2f3b1b(0x16d)),logger=require(a89_0x2f3b1b(0x138))[a89_0x2f3b1b(0x12a)],SessionHandler=require(a89_0x2f3b1b(0x144)),PerformanceTester=require('../performance/performance-tester.js'),{TESTHUB_EVENTS:PerformanceEvents}=require(a89_0x2f3b1b(0x131));class TestHubHandler{static ['buildStopSent']=![];static async[a89_0x2f3b1b(0x178)](_0x479ab9,_0x18977d){const _0x163cd7=a89_0x2f3b1b,_0x5538b6={'NDlHs':function(_0x534e0c,_0x4e0a4b){return _0x534e0c||_0x4e0a4b;},'IcouJ':function(_0x4434e0,_0x32d38c){return _0x4434e0===_0x32d38c;},'Doqvj':function(_0x481b49){return _0x481b49();},'ojshD':_0x163cd7(0x14a),'ZEMfG':'false','EoStw':'Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','HdRrY':function(_0xb339c9,_0x14182a,_0x4da7f7,_0x3f45a9,_0x4d503a){return _0xb339c9(_0x14182a,_0x4da7f7,_0x3f45a9,_0x4d503a);},'slwKV':'POST'};await PerformanceTester['measureWrapper'](PerformanceEvents[_0x163cd7(0x14e)],async()=>{const _0x3b761d=_0x163cd7,_0x300d35={};_0x300d35[_0x3b761d(0x177)]='';const _0x5b258d=Object['assign']({},_0x18977d[_0x3b761d(0x14d)],_0x300d35),_0xa0328c=bsSetupHelper[_0x3b761d(0x156)](_0x5b258d),_0x1b0ee4=bsSetupHelper[_0x3b761d(0x167)](_0x5b258d),_0x29681c=_0x5538b6[_0x3b761d(0x183)](_0xa0328c,'')+':'+_0x5538b6['NDlHs'](_0x1b0ee4,''),_0x59ceb9=testhubUtils[_0x3b761d(0x18f)](_0x5b258d);process[_0x3b761d(0x13e)]['BROWSERSTACK_PRODUCT_MAP']=JSON[_0x3b761d(0x166)](_0x59ceb9);if(_0x5538b6[_0x3b761d(0x150)](_0x29681c,':'))return _0x5538b6[_0x3b761d(0x12d)](isTestObservabilitySession)&&(logger[_0x3b761d(0x191)](_0x5538b6['ojshD']),process[_0x3b761d(0x13e)][_0x3b761d(0x136)]=_0x5538b6['ZEMfG']),testhubUtils[_0x3b761d(0x152)](_0x5b258d)&&logger[_0x3b761d(0x191)](_0x5538b6[_0x3b761d(0x15b)]),[null,null];try{const _0x469eee=await this[_0x3b761d(0x12e)](_0x5b258d,_0x479ab9),_0x5c4f31=this[_0x3b761d(0x169)](_0xa0328c,_0x1b0ee4),_0x2b4d82=await _0x5538b6[_0x3b761d(0x18b)](nodeRequest,_0x5538b6['slwKV'],testHubConstants[_0x3b761d(0x122)],_0x469eee,_0x5c4f31);await this[_0x3b761d(0x127)](_0x18977d,_0x479ab9);const _0x2484cf=this[_0x3b761d(0x120)](_0x5b258d,_0x2b4d82,_0x5c4f31);return _0x2484cf;}catch(_0x1de4b5){if(_0x5538b6[_0x3b761d(0x150)](_0x1de4b5['success'],![])){testhubUtils[_0x3b761d(0x185)](_0x1de4b5);return;}}})();}static async[a89_0x2f3b1b(0x127)](_0x48c394,_0x6e3de4){const _0x55fa55=a89_0x2f3b1b;if(constants['PERCY_SUPPORTED_FRAMEWORKS'][_0x55fa55(0x151)](_0x6e3de4)){await _0x48c394[_0x55fa55(0x12f)]();return;}_0x48c394['config'][_0x55fa55(0x157)]&&logger[_0x55fa55(0x191)](_0x55fa55(0x15a)+_0x6e3de4+'\x20framework');}static[a89_0x2f3b1b(0x17d)](_0x3a68f0){const _0x1fe194=a89_0x2f3b1b,_0x5e1479={};_0x5e1479[_0x1fe194(0x143)]=_0x3a68f0[_0x1fe194(0x132)];const _0x1a3756=_0x5e1479;return _0x1a3756;}static[a89_0x2f3b1b(0x169)](_0x3af1fa,_0x4d8230){const _0x36161b=a89_0x2f3b1b,_0x5cc1db={'Wogib':function(_0x2f3bb2,_0x10a741){return _0x2f3bb2(_0x10a741);}},_0x1e7468={};return _0x1e7468[_0x36161b(0x18d)]=_0x3af1fa,_0x1e7468[_0x36161b(0x187)]=_0x4d8230,{'auth':_0x1e7468,'headers':_0x5cc1db[_0x36161b(0x173)](getDefaultHeaders,![])};}static async[a89_0x2f3b1b(0x12e)](_0x5c1823,_0x2c71db){const _0xd6b006=a89_0x2f3b1b,_0x571df5={'QVjby':function(_0x476f29,_0xe8ed01){return _0x476f29(_0xe8ed01);}},_0x4b671f={'project_name':_0x5c1823[_0xd6b006(0x16b)]||'','name':_0x5c1823[_0xd6b006(0x129)]||path[_0xd6b006(0x175)](path[_0xd6b006(0x188)](process[_0xd6b006(0x161)]())),'build_identifier':_0x5c1823['buildIdentifier'],'description':_0x5c1823[_0xd6b006(0x163)]||'','started_at':new Date()[_0xd6b006(0x172)](),'tags':_0x571df5[_0xd6b006(0x13c)](getCustomTags,_0x5c1823),'host_info':bsSetupHelper[_0xd6b006(0x189)](),'ci_info':bsSetupHelper[_0xd6b006(0x14b)](),'build_run_identifier':process[_0xd6b006(0x13e)][_0xd6b006(0x190)],'failed_tests_rerun':process[_0xd6b006(0x13e)][_0xd6b006(0x141)]||![],'version_control':await bsSetupHelper[_0xd6b006(0x199)](),'accessibility':this[_0xd6b006(0x17d)](_0x5c1823),'framework_details':testhubUtils['getFrameworkDetails'](_0x5c1823,_0x2c71db),'product_map':testhubUtils[_0xd6b006(0x18f)](_0x5c1823),'browserstackAutomation':bsSetupHelper[_0xd6b006(0x181)]()};if(process[_0xd6b006(0x13e)][_0xd6b006(0x123)]){const _0x4a7fb1={};_0x4a7fb1[_0xd6b006(0x139)]=process[_0xd6b006(0x13e)]['BROWSERSTACK_CENTRAL_SCANNER_JOBID'],_0x4a7fb1[_0xd6b006(0x17c)]=process['env'][_0xd6b006(0x18c)],_0x4b671f['central_scanner']=_0x4a7fb1;}return _0x4b671f;}static[a89_0x2f3b1b(0x120)](_0xd39809,_0x4f8f13,_0x33bb48){const _0x4c8db7=a89_0x2f3b1b,_0x1870d8={'jXvoD':function(_0x5a013f){return _0x5a013f();},'dRPTP':function(_0x675484,_0x45ae90){return _0x675484&&_0x45ae90;},'WEXEi':'true','HzYDT':_0x4c8db7(0x15c),'qIWqy':function(_0x57517d,_0x23e03a){return _0x57517d&&_0x23e03a;}},_0x37d53a={};if(_0x1870d8[_0x4c8db7(0x16e)](isTestObservabilitySession)){const [_0x49b6af,_0x2f1d53,_0x1d2e45]=testhubUtils['setTestObservabilityVariables'](_0x4f8f13[_0x4c8db7(0x125)],_0x33bb48[_0x4c8db7(0x13d)]);if(_0x1870d8[_0x4c8db7(0x147)](_0x49b6af,_0x2f1d53)){const _0x1ff2d8={};_0x1ff2d8[_0x4c8db7(0x171)]=_0x49b6af,_0x1ff2d8[_0x4c8db7(0x14c)]=_0x2f1d53,_0x1ff2d8['allowScreenshot']=_0x1d2e45,_0x37d53a[testHubConstants[_0x4c8db7(0x14f)]]=_0x1ff2d8,process[_0x4c8db7(0x13e)][_0x4c8db7(0x128)]=_0x1870d8[_0x4c8db7(0x16c)];}else _0x37d53a[testHubConstants['OBSERVABILITY']]={},process[_0x4c8db7(0x13e)][_0x4c8db7(0x128)]=_0x1870d8[_0x4c8db7(0x158)];}else process[_0x4c8db7(0x13e)][_0x4c8db7(0x128)]=_0x1870d8[_0x4c8db7(0x158)];if(testhubUtils['isAccessibilityEnabled'](_0xd39809)){const [_0x45d326,_0x2dc5cd]=testhubUtils[_0x4c8db7(0x160)](_0x4f8f13[_0x4c8db7(0x125)]);if(_0x1870d8[_0x4c8db7(0x176)](_0x45d326,_0x2dc5cd)){const _0x45db52={};_0x45db52['authToken']=_0x45d326,_0x45db52[_0x4c8db7(0x14c)]=_0x2dc5cd,_0x37d53a[testHubConstants['ACCESSIBILITY']]=_0x45db52,process['env'][_0x4c8db7(0x164)]=_0x1870d8['WEXEi'];}else _0x37d53a[testHubConstants[_0x4c8db7(0x17b)]]={},process['env'][_0x4c8db7(0x164)]=_0x1870d8[_0x4c8db7(0x158)];}else process[_0x4c8db7(0x13e)][_0x4c8db7(0x164)]=_0x1870d8['HzYDT'];return testhubUtils[_0x4c8db7(0x193)](_0x4f8f13[_0x4c8db7(0x125)]),_0x37d53a;}static async[a89_0x2f3b1b(0x130)](_0x341c8c){const _0xd6adfb=a89_0x2f3b1b,_0x12adce={'FjUSB':function(_0x4470d3,_0x580d4c){return _0x4470d3===_0x580d4c;},'XuTtw':'false','gytnW':'null','YPzUq':function(_0x129568,_0x42c247){return _0x129568===_0x42c247;},'LNeSp':'EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','FDXMg':_0xd6adfb(0x198),'AoUkr':_0xd6adfb(0x186),'CuknT':_0xd6adfb(0x182),'cqyWK':_0xd6adfb(0x17f),'tGIcm':function(_0x52c1c4){return _0x52c1c4();},'Thwzy':function(_0x3e86a5,_0x3bdf7f,_0x32ca1b,_0x28724e,_0x3cd6ae,_0x352629){return _0x3e86a5(_0x3bdf7f,_0x32ca1b,_0x28724e,_0x3cd6ae,_0x352629);},'hBGob':_0xd6adfb(0x168),'NbIrZ':_0xd6adfb(0x170),'YKbMZ':_0xd6adfb(0x146)};await PerformanceTester[_0xd6adfb(0x15d)](PerformanceEvents[_0xd6adfb(0x135)],async()=>{const _0x26bd5d=_0xd6adfb;if(_0x12adce[_0x26bd5d(0x13a)](process[_0x26bd5d(0x13e)][_0x26bd5d(0x136)],_0x12adce['XuTtw'])||TestHubHandler[_0x26bd5d(0x17e)]||bsSetupHelper[_0x26bd5d(0x153)](process[_0x26bd5d(0x13e)][testHubConstants[_0x26bd5d(0x162)][_0x26bd5d(0x159)]]))return;TestHubHandler['buildStopSent']=!![],await RequestQueueHandler[_0x26bd5d(0x197)]()[_0x26bd5d(0x19b)](),await SessionHandler[_0x26bd5d(0x17a)]();if(_0x12adce[_0x26bd5d(0x13a)](process[_0x26bd5d(0x13e)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_JWT']],_0x12adce['gytnW'])||_0x12adce[_0x26bd5d(0x149)](process[_0x26bd5d(0x13e)][testHubConstants[_0x26bd5d(0x162)][_0x26bd5d(0x145)]],_0x12adce[_0x26bd5d(0x184)])){logger[_0x26bd5d(0x191)](_0x12adce[_0x26bd5d(0x16f)]);const _0x4850f5={};return _0x4850f5['status']=_0x12adce['FDXMg'],_0x4850f5[_0x26bd5d(0x133)]=_0x12adce[_0x26bd5d(0x137)],_0x4850f5;}const _0x1eae60={'finished_at':new Date()[_0x26bd5d(0x172)](),'finished_metadata':[]};!!_0x341c8c&&_0x1eae60[_0x12adce[_0x26bd5d(0x155)]][_0x26bd5d(0x12b)]({'reason':_0x12adce['cqyWK'],'signal':_0x341c8c,'failure_data':''});const _0x54087e={'headers':_0x12adce['tGIcm'](getDefaultHeaders)};try{const _0x1f1449=await _0x12adce['Thwzy'](nodeRequest,_0x12adce[_0x26bd5d(0x142)],_0x26bd5d(0x165)+process[_0x26bd5d(0x13e)][testHubConstants[_0x26bd5d(0x162)]['BROWSERSTACK_TESTHUB_UUID']]+_0x26bd5d(0x140),_0x1eae60,_0x54087e,![]);if(_0x1f1449[_0x26bd5d(0x125)]&&_0x1f1449[_0x26bd5d(0x125)][_0x26bd5d(0x198)]){const _0x33c899={};_0x33c899[_0x26bd5d(0x133)]=_0x1f1449[_0x26bd5d(0x125)]['error'];throw _0x33c899;}else{logger[_0x26bd5d(0x191)](_0x12adce['NbIrZ']);const _0x3ac71={};return _0x3ac71[_0x26bd5d(0x148)]=_0x12adce[_0x26bd5d(0x18e)],_0x3ac71[_0x26bd5d(0x133)]='',_0x3ac71;}}catch(_0x3b2025){_0x3b2025[_0x26bd5d(0x15f)]?logger[_0x26bd5d(0x191)](_0x26bd5d(0x16a)+_0x3b2025[_0x26bd5d(0x15f)][_0x26bd5d(0x148)]+'\x20'+_0x3b2025[_0x26bd5d(0x15f)][_0x26bd5d(0x179)]+'\x20'+JSON['stringify'](_0x3b2025[_0x26bd5d(0x15f)][_0x26bd5d(0x125)])):logger[_0x26bd5d(0x191)](_0x26bd5d(0x16a)+(_0x3b2025[_0x26bd5d(0x133)]||_0x3b2025));const _0x5ca451={};return _0x5ca451[_0x26bd5d(0x148)]=_0x12adce[_0x26bd5d(0x154)],_0x5ca451[_0x26bd5d(0x133)]=_0x3b2025[_0x26bd5d(0x133)]||_0x3b2025[_0x26bd5d(0x15f)]?_0x3b2025[_0x26bd5d(0x15f)][_0x26bd5d(0x148)]+':'+_0x3b2025[_0x26bd5d(0x15f)][_0x26bd5d(0x179)]:_0x3b2025,_0x5ca451;}})();}}function a89_0x1cd4(_0x5a965c,_0x4be8c0){const _0x1a030e=a89_0x1a03();return a89_0x1cd4=function(_0x1cd4d1,_0x532128){_0x1cd4d1=_0x1cd4d1-0x120;let _0x38c389=_0x1a030e[_0x1cd4d1];return _0x38c389;},a89_0x1cd4(_0x5a965c,_0x4be8c0);}module['exports']=TestHubHandler;
|
|
1
|
+
const a89_0x4b614f=a89_0xe555;(function(_0x5aafa0,_0x32478d){const _0x44d3e6=a89_0xe555,_0x4b43df=_0x5aafa0();while(!![]){try{const _0x27cb8e=parseInt(_0x44d3e6(0x12b))/0x1*(parseInt(_0x44d3e6(0x120))/0x2)+parseInt(_0x44d3e6(0x152))/0x3+-parseInt(_0x44d3e6(0x10c))/0x4+-parseInt(_0x44d3e6(0x125))/0x5*(parseInt(_0x44d3e6(0x13b))/0x6)+-parseInt(_0x44d3e6(0x10a))/0x7+parseInt(_0x44d3e6(0x148))/0x8+-parseInt(_0x44d3e6(0x117))/0x9;if(_0x27cb8e===_0x32478d)break;else _0x4b43df['push'](_0x4b43df['shift']());}catch(_0x227d21){_0x4b43df['push'](_0x4b43df['shift']());}}}(a89_0x3410,0xc9863));function a89_0x3410(){const _0x5d9e0f=['setAccessibilityVariables','BROWSERSTACK_TEST_OBSERVABILITY','BROWSERSTACK_BUILD_RUN_IDENTIFIER','config','status','ACCESSIBILITY','vVmRs','resolve','env','POST','isBrowserstackInfra','\x20framework','buildStopSent','extractDataFromResponse','/stop','allowScreenshot','error','auth','getConfig','1549009QskhCh','CPBrP','2467748gfeLtF','generateBuildUpstreamData','logBuildError','wJTvx','../performance/constants','isUndefined','BROWSERSTACK_TESTHUB_UUID','getUserName','checkAndSetupPercy','stopBuildUpstream\x20event\x20successful!','getInstance','505638OKiSkA','eUlkt','zGPXL','basename','wcXgr','getFrameworkDetails','job_id','toISOString','../test-observability/utils','817860rgzGKO','vfbcn','../performance/performance-tester.js','ENV_VAR','includes','10590RATPBq','waitForBuildStatus','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','getGitMetaData','authToken','4fvWYUI','../logger','root_dir_path','uploadPending','WhPFS','UkASu','BsxqT','measureWrapper','BS_TESTOPS_BUILD_COMPLETED','./constants.js','RlZtf','user_killed','PUT','iExtD','getProductMap','TESTHUB_BUILD_API','4206kRQLnL','message','OBSERVABILITY','HDjnc','accessibilityOptions','response','WlsBO','BROWSERSTACK_PRODUCT_MAP','getAccessibilityOptions','path','evETz','BROWSERSTACK_ACCESSIBILITY','push','11806400PkTtxA','stringify','false','buildName','pGdXx','STOP','settings','null','nGfeQ','qfIeT','279141ExhqcX','BROWSERSTACK_TESTHUB_JWT','data','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','buildHashedId','projectName','stop','debug','success','setupPercy'];a89_0x3410=function(){return _0x5d9e0f;};return a89_0x3410();}const bsSetupHelper=require('../helper'),path=require(a89_0x4b614f(0x144)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a89_0x4b614f(0x11f)),testhubUtils=require('./utils.js'),testHubConstants=require(a89_0x4b614f(0x134)),constants=require('../../bin/utils/constants.js'),RequestQueueHandler=require('../test-observability/requestQueueHandler.js'),logger=require(a89_0x4b614f(0x12c))['winstonLogger'],SessionHandler=require('../test-observability/sessionHandler.js'),PerformanceTester=require(a89_0x4b614f(0x122)),{TESTHUB_EVENTS:PerformanceEvents}=require(a89_0x4b614f(0x110));class TestHubHandler{static [a89_0x4b614f(0x103)]=![];static async['launchBuild'](_0x251adf,_0x131e3a){const _0x88189d=a89_0x4b614f,_0xca4ea6={'wcXgr':function(_0x3eafa4,_0x45037c){return _0x3eafa4||_0x45037c;},'UkASu':function(_0xf6f0c5,_0x58e5a3){return _0xf6f0c5||_0x58e5a3;},'WsuOW':function(_0x3113cb,_0x554492){return _0x3113cb===_0x554492;},'WhPFS':function(_0x5bf679){return _0x5bf679();},'zGPXL':_0x88189d(0x127),'hClVX':_0x88189d(0x14a),'PNlBQ':_0x88189d(0x155),'WlsBO':function(_0x4c42f7,_0x43754f,_0x3c2960,_0x1f1383,_0x164716){return _0x4c42f7(_0x43754f,_0x3c2960,_0x1f1383,_0x164716);},'FlsjU':_0x88189d(0x100)};await PerformanceTester[_0x88189d(0x132)](PerformanceEvents['START'],async()=>{const _0x5a1ed5=_0x88189d,_0xb4f70a={};_0xb4f70a[_0x5a1ed5(0x12d)]='';const _0x4a1263=Object['assign']({},_0x131e3a[_0x5a1ed5(0xfa)],_0xb4f70a),_0x1141fd=bsSetupHelper[_0x5a1ed5(0x113)](_0x4a1263),_0x1093a3=bsSetupHelper['getAccessKey'](_0x4a1263),_0x4a1684=_0xca4ea6[_0x5a1ed5(0x11b)](_0x1141fd,'')+':'+_0xca4ea6[_0x5a1ed5(0x130)](_0x1093a3,''),_0x691bae=testhubUtils[_0x5a1ed5(0x139)](_0x4a1263);process[_0x5a1ed5(0xff)][_0x5a1ed5(0x142)]=JSON[_0x5a1ed5(0x149)](_0x691bae);if(_0xca4ea6['WsuOW'](_0x4a1684,':'))return _0xca4ea6[_0x5a1ed5(0x12f)](isTestObservabilitySession)&&(logger[_0x5a1ed5(0x159)](_0xca4ea6[_0x5a1ed5(0x119)]),process[_0x5a1ed5(0xff)][_0x5a1ed5(0x133)]=_0xca4ea6['hClVX']),testhubUtils['isAccessibilityEnabled'](_0x4a1263)&&logger[_0x5a1ed5(0x159)](_0xca4ea6['PNlBQ']),[null,null];try{const _0x361c0e=await this[_0x5a1ed5(0x10d)](_0x4a1263,_0x251adf),_0x51121b=this[_0x5a1ed5(0x109)](_0x1141fd,_0x1093a3),_0x3b9b7f=await _0xca4ea6[_0x5a1ed5(0x141)](nodeRequest,_0xca4ea6['FlsjU'],testHubConstants[_0x5a1ed5(0x13a)],_0x361c0e,_0x51121b);await this[_0x5a1ed5(0x114)](_0x131e3a,_0x251adf);const _0xf3ba2=this[_0x5a1ed5(0x104)](_0x4a1263,_0x3b9b7f,_0x51121b);return _0xf3ba2;}catch(_0x20cb7b){if(_0xca4ea6['WsuOW'](_0x20cb7b['success'],![])){testhubUtils[_0x5a1ed5(0x10e)](_0x20cb7b);return;}}})();}static async[a89_0x4b614f(0x114)](_0x2f21e6,_0x20eff7){const _0x20a0f4=a89_0x4b614f;if(constants['PERCY_SUPPORTED_FRAMEWORKS'][_0x20a0f4(0x124)](_0x20eff7)){await _0x2f21e6[_0x20a0f4(0x15b)]();return;}_0x2f21e6[_0x20a0f4(0xfa)]['percy']&&logger['debug']('Percy\x20is\x20not\x20supported\x20for\x20'+_0x20eff7+_0x20a0f4(0x102));}static[a89_0x4b614f(0x143)](_0x518c51){const _0x5d7974=a89_0x4b614f,_0x4c54bb={};_0x4c54bb[_0x5d7974(0x14e)]=_0x518c51[_0x5d7974(0x13f)];const _0x2e9dfe=_0x4c54bb;return _0x2e9dfe;}static[a89_0x4b614f(0x109)](_0x117b54,_0x3bbabf){const _0x4c533c={'lCWsT':function(_0x45b10c,_0x201939){return _0x45b10c(_0x201939);}},_0x43d13c={};return _0x43d13c['username']=_0x117b54,_0x43d13c['password']=_0x3bbabf,{'auth':_0x43d13c,'headers':_0x4c533c['lCWsT'](getDefaultHeaders,![])};}static async[a89_0x4b614f(0x10d)](_0x54feba,_0x1943dc){const _0x265d23=a89_0x4b614f,_0x3ce911={'cuRWS':function(_0x4ed610,_0x3a14f6){return _0x4ed610(_0x3a14f6);}},_0xc7a49b={'project_name':_0x54feba[_0x265d23(0x157)]||'','name':_0x54feba[_0x265d23(0x14b)]||path[_0x265d23(0x11a)](path[_0x265d23(0xfe)](process['cwd']())),'build_identifier':_0x54feba['buildIdentifier'],'description':_0x54feba['buildDescription']||'','started_at':new Date()[_0x265d23(0x11e)](),'tags':_0x3ce911['cuRWS'](getCustomTags,_0x54feba),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0x265d23(0xff)][_0x265d23(0xf9)],'failed_tests_rerun':process[_0x265d23(0xff)]['BROWSERSTACK_RERUN']||![],'version_control':await bsSetupHelper[_0x265d23(0x129)](),'accessibility':this[_0x265d23(0x143)](_0x54feba),'framework_details':testhubUtils[_0x265d23(0x11c)](_0x54feba,_0x1943dc),'product_map':testhubUtils[_0x265d23(0x139)](_0x54feba),'browserstackAutomation':bsSetupHelper[_0x265d23(0x101)]()};if(process[_0x265d23(0xff)]['BROWSERSTACK_CENTRAL_USER']){const _0x13212b={};_0x13212b[_0x265d23(0x11d)]=process[_0x265d23(0xff)]['BROWSERSTACK_CENTRAL_SCANNER_JOBID'],_0x13212b['token']=process[_0x265d23(0xff)]['BROWSERSTACK_CENTRAL_SCANNER_JWT'],_0xc7a49b['central_scanner']=_0x13212b;}return _0xc7a49b;}static[a89_0x4b614f(0x104)](_0x41559c,_0x1d2f1a,_0x1fa7ac){const _0x3107cd=a89_0x4b614f,_0xa6637d={'zinyW':function(_0x397379){return _0x397379();},'iExtD':function(_0x5f0c84,_0x1b98ef){return _0x5f0c84&&_0x1b98ef;},'HDjnc':'true','nGfeQ':_0x3107cd(0x14a),'evETz':function(_0x3f0fb1,_0x346eba){return _0x3f0fb1&&_0x346eba;}},_0x174aa6={};if(_0xa6637d['zinyW'](isTestObservabilitySession)){const [_0x53c0e2,_0x5e8565,_0x29377a]=testhubUtils['setTestObservabilityVariables'](_0x1d2f1a[_0x3107cd(0x154)],_0x1fa7ac[_0x3107cd(0x108)]);if(_0xa6637d[_0x3107cd(0x138)](_0x53c0e2,_0x5e8565)){const _0x534b2b={};_0x534b2b['jwt']=_0x53c0e2,_0x534b2b[_0x3107cd(0x156)]=_0x5e8565,_0x534b2b[_0x3107cd(0x106)]=_0x29377a,_0x174aa6[testHubConstants[_0x3107cd(0x13d)]]=_0x534b2b,process[_0x3107cd(0xff)][_0x3107cd(0xf8)]=_0xa6637d[_0x3107cd(0x13e)];}else _0x174aa6[testHubConstants['OBSERVABILITY']]={},process[_0x3107cd(0xff)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0xa6637d[_0x3107cd(0x150)];}else process[_0x3107cd(0xff)][_0x3107cd(0xf8)]=_0xa6637d[_0x3107cd(0x150)];if(testhubUtils['isAccessibilityEnabled'](_0x41559c)){const [_0x29868c,_0x86fb3e]=testhubUtils[_0x3107cd(0x15c)](_0x1d2f1a['data']);if(_0xa6637d[_0x3107cd(0x145)](_0x29868c,_0x86fb3e)){const _0x5322c4={};_0x5322c4[_0x3107cd(0x12a)]=_0x29868c,_0x5322c4[_0x3107cd(0x156)]=_0x86fb3e,_0x174aa6[testHubConstants[_0x3107cd(0xfc)]]=_0x5322c4,process['env'][_0x3107cd(0x146)]=_0xa6637d['HDjnc'];}else _0x174aa6[testHubConstants[_0x3107cd(0xfc)]]={},process['env']['BROWSERSTACK_ACCESSIBILITY']=_0xa6637d[_0x3107cd(0x150)];}else process[_0x3107cd(0xff)][_0x3107cd(0x146)]=_0xa6637d[_0x3107cd(0x150)];return testhubUtils['setTestHubCommonMetaInfo'](_0x1d2f1a[_0x3107cd(0x154)]),_0x174aa6;}static async[a89_0x4b614f(0x158)](_0x29bfd5){const _0xa29ce8=a89_0x4b614f,_0x203cd5={'pGdXx':function(_0x867c24,_0x14b0b9){return _0x867c24===_0x14b0b9;},'wYaCk':_0xa29ce8(0x14a),'eUlkt':_0xa29ce8(0x14f),'qfIeT':'EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','vfbcn':_0xa29ce8(0x107),'fgeDQ':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','BsxqT':'finished_metadata','QELDv':_0xa29ce8(0x136),'RlZtf':function(_0x242958){return _0x242958();},'vVmRs':function(_0x136e49,_0x13dcfa,_0x400319,_0x1ec2d7,_0x335c9e,_0x11a681){return _0x136e49(_0x13dcfa,_0x400319,_0x1ec2d7,_0x335c9e,_0x11a681);},'wJTvx':_0xa29ce8(0x137),'SAqKZ':_0xa29ce8(0x115),'CPBrP':_0xa29ce8(0x15a)};await PerformanceTester[_0xa29ce8(0x132)](PerformanceEvents[_0xa29ce8(0x14d)],async()=>{const _0x44869d=_0xa29ce8;if(_0x203cd5[_0x44869d(0x14c)](process[_0x44869d(0xff)][_0x44869d(0x133)],_0x203cd5['wYaCk'])||TestHubHandler[_0x44869d(0x103)]||bsSetupHelper[_0x44869d(0x111)](process[_0x44869d(0xff)][testHubConstants['ENV_VAR'][_0x44869d(0x153)]]))return;TestHubHandler[_0x44869d(0x103)]=!![],await RequestQueueHandler[_0x44869d(0x116)]()[_0x44869d(0x12e)](),await SessionHandler[_0x44869d(0x126)]();if(_0x203cd5[_0x44869d(0x14c)](process[_0x44869d(0xff)][testHubConstants[_0x44869d(0x123)][_0x44869d(0x153)]],_0x203cd5['eUlkt'])||_0x203cd5[_0x44869d(0x14c)](process['env'][testHubConstants['ENV_VAR'][_0x44869d(0x112)]],_0x203cd5[_0x44869d(0x118)])){logger[_0x44869d(0x159)](_0x203cd5[_0x44869d(0x151)]);const _0x1aa28f={};return _0x1aa28f['status']=_0x203cd5[_0x44869d(0x121)],_0x1aa28f[_0x44869d(0x13c)]=_0x203cd5['fgeDQ'],_0x1aa28f;}const _0x56d457={'finished_at':new Date()[_0x44869d(0x11e)](),'finished_metadata':[]};!!_0x29bfd5&&_0x56d457[_0x203cd5[_0x44869d(0x131)]][_0x44869d(0x147)]({'reason':_0x203cd5['QELDv'],'signal':_0x29bfd5,'failure_data':''});const _0x2885fd={'headers':_0x203cd5[_0x44869d(0x135)](getDefaultHeaders)};try{const _0x2e1af0=await _0x203cd5[_0x44869d(0xfd)](nodeRequest,_0x203cd5[_0x44869d(0x10f)],'api/v1/builds/'+process['env'][testHubConstants[_0x44869d(0x123)][_0x44869d(0x112)]]+_0x44869d(0x105),_0x56d457,_0x2885fd,![]);if(_0x2e1af0[_0x44869d(0x154)]&&_0x2e1af0[_0x44869d(0x154)][_0x44869d(0x107)]){const _0x5be509={};_0x5be509[_0x44869d(0x13c)]=_0x2e1af0[_0x44869d(0x154)][_0x44869d(0x107)];throw _0x5be509;}else{logger[_0x44869d(0x159)](_0x203cd5['SAqKZ']);const _0x503bbf={};return _0x503bbf[_0x44869d(0xfb)]=_0x203cd5[_0x44869d(0x10b)],_0x503bbf[_0x44869d(0x13c)]='',_0x503bbf;}}catch(_0x2f4b53){_0x2f4b53['response']?logger[_0x44869d(0x159)](_0x44869d(0x128)+_0x2f4b53[_0x44869d(0x140)][_0x44869d(0xfb)]+'\x20'+_0x2f4b53[_0x44869d(0x140)]['statusText']+'\x20'+JSON['stringify'](_0x2f4b53[_0x44869d(0x140)][_0x44869d(0x154)])):logger['debug'](_0x44869d(0x128)+(_0x2f4b53[_0x44869d(0x13c)]||_0x2f4b53));const _0x4b68fa={};return _0x4b68fa[_0x44869d(0xfb)]=_0x203cd5[_0x44869d(0x121)],_0x4b68fa[_0x44869d(0x13c)]=_0x2f4b53[_0x44869d(0x13c)]||_0x2f4b53['response']?_0x2f4b53[_0x44869d(0x140)]['status']+':'+_0x2f4b53[_0x44869d(0x140)]['statusText']:_0x2f4b53,_0x4b68fa;}})();}}function a89_0xe555(_0x2b71b8,_0x192fbe){const _0x341096=a89_0x3410();return a89_0xe555=function(_0xe555cc,_0x18e0a3){_0xe555cc=_0xe555cc-0xf8;let _0x5ca909=_0x341096[_0xe555cc];return _0x5ca909;},a89_0xe555(_0x2b71b8,_0x192fbe);}module['exports']=TestHubHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a90_0x18ebb7=a90_0x2ef3;(function(_0x560fd2,_0x3e994f){const _0x1b2bae=a90_0x2ef3,_0x33164b=_0x560fd2();while(!![]){try{const _0x13f67d=-parseInt(_0x1b2bae(0x1a2))/0x1*(parseInt(_0x1b2bae(0x1b7))/0x2)+parseInt(_0x1b2bae(0x170))/0x3+-parseInt(_0x1b2bae(0x1bd))/0x4+-parseInt(_0x1b2bae(0x1aa))/0x5+parseInt(_0x1b2bae(0x13d))/0x6+-parseInt(_0x1b2bae(0x1af))/0x7*(parseInt(_0x1b2bae(0x187))/0x8)+parseInt(_0x1b2bae(0x164))/0x9*(parseInt(_0x1b2bae(0x16b))/0xa);if(_0x13f67d===_0x3e994f)break;else _0x33164b['push'](_0x33164b['shift']());}catch(_0x42c15b){_0x33164b['push'](_0x33164b['shift']());}}}(a90_0x1fee,0x26b8f));const bsSetupHelper=require('../helper'),{isTestObservabilitySession,getFrameworkVersion}=require('../test-observability/utils'),accessibilityHelper=require('../accessibility-automation/helper'),logger=require(a90_0x18ebb7(0x148))['winstonLogger'],{nestedKeyValue}=require('../helper.js'),scripts=require(a90_0x18ebb7(0x1ad)),globals=require(a90_0x18ebb7(0x184)),testHubConstants=require(a90_0x18ebb7(0x1b2)),PWTestDetails=require(a90_0x18ebb7(0x1c7)),JestTestDetails=require(a90_0x18ebb7(0x1a5)),{FRAMEWORKS}=require(a90_0x18ebb7(0x1cc)),{isTurboScaleSession}=require('../ats/helper');function a90_0x1fee(){const _0x2d887d=['isAccessibilityEnabled','error','./constants.js','ERROR','CREDENTIALS_FOR_CRASH_REPORTING','appendTesthubParams','WUuSh','268258CmRjis','OBSERVABILITY','BS_TESTOPS_JWT','forEach','CODECEPT','yQvBo','584164ZtZVMZ','success','handleErrorForObservability','keys','app','OLsUA','false','isPercyBuild','qFVVN','oAfEA','../../bin/playwright/reporter/test-details.js','test_run','toJson','BROWSERSTACK_PERCY','getGlobal','../test-observability/constants.js','null','VTEfR','debug','MoFXq','message','bOpMl','uploadEventData','setTestData','BS_TESTOPS_ALLOW_SCREENSHOTS','handleErrorForAccessibility','NxJkW','QkiwF','BROWSERSTACK_TEST_ACCESSIBILITY_YML','wJaEF','CUCUMBER','USbZc','getProductMap','1026306uHeEqh','phRpi','accessibility','observability','DCjjU','getFrameworkDetails','key','getAccessibilityPlatformValidation','uuid','DBgmR','capabilities','../logger','PLAYWRIGHT','env','gVGRS','RhVlt','BS_TESTOPS_BUILD_COMPLETED','hnnaZ','HookRunFinished','percy','wwRKZ','JQtyE','product_map','DEPRECATED','includes','getTestData','logBuildError','scripts','ONDWm','gvMIZ','setPercyFlag','setTestHubCommonMetaInfo','BROWSERSTACK_TESTHUB_UUID:\x20','length','WBZmB','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','username','gqvVo','HookRunStarted','81uMWPlg','BS_TESTOPS_BUILD_HASHED_ID','INVALID_CREDENTIALS','getTestFrameworkDetails','commandsToWrap','utKRC','MsDxz','598830SxTeMn','bMWaB','mYJpc','jwt','build_hashed_id','117855tLHCYB','tags','info','sPCHj','scannerVersion','JuJGv','toUpperCase','nPwlc','stringify','hAijz','shouldScanTestForAccessibility','nvUnH','KCPlF','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','isAccessibilityPlatform','join','JEST','accessibilityPlatform','3|0|2|4|5|1|6','setTestObservabilityVariables','../globals.js','allow_screenshots','ryTRW','2032usCijj','BROWSERSTACK_ACCESSIBILITY','setCurrentTestData','BROWSERSTACK_CENTRAL_USER','LogCreated','ACCESS_DENIED','4|5|3|0|1|2','command','MOCHA','true','NxsJT','getCurrentTestData','rrdKa','MvSSU','isTrue','iQWuh','isRunning','bXtic','shouldProcessEventForTesthub','CBTSessionCreated','titlePath','toString','isBrowserstackInfra','oqMNY','JMMuK','BROWSERSTACK_TESTHUB_JWT','QyqYB','1TCDxID','split','options','../../bin/jest/test-observability/test-details.js','rRFGN','ILDvo','password','BROWSERSTACK_TESTHUB_UUID','575900ZVEImm','parseFromJson','RtYqY','../accessibility-automation/scripts.js','commands','5383UPyXeh'];a90_0x1fee=function(){return _0x2d887d;};return a90_0x1fee();}let testData={};function a90_0x2ef3(_0x25c090,_0x24a3e6){const _0x1feedb=a90_0x1fee();return a90_0x2ef3=function(_0x2ef3bc,_0x2bde88){_0x2ef3bc=_0x2ef3bc-0x13c;let _0x40bff0=_0x1feedb[_0x2ef3bc];return _0x40bff0;},a90_0x2ef3(_0x25c090,_0x24a3e6);}exports[a90_0x18ebb7(0x13c)]=_0x2e3dd2=>{const _0x1fcb77=a90_0x18ebb7,_0x4c4b67={'ZFsMB':function(_0x50c214){return _0x50c214();},'oAfEA':function(_0x16f97d,_0x1c6eb4){return _0x16f97d(_0x1c6eb4);},'gzDby':function(_0x2d3eb4,_0x5f69f2){return _0x2d3eb4===_0x5f69f2;},'qFVVN':'true'};let _0xcc3eba=![],_0x3e1812=![];if(bsSetupHelper['isBrowserstackInfra']()&&_0x2e3dd2[_0x1fcb77(0x1c1)])_0x3e1812=!![];else bsSetupHelper[_0x1fcb77(0x19d)]()&&(_0xcc3eba=!![]);return{'observability':_0x4c4b67['ZFsMB'](isTestObservabilitySession),'accessibility':exports[_0x1fcb77(0x1b0)](_0x2e3dd2),'percy':_0x2e3dd2['percy']||![],'automate':_0xcc3eba,'app_automate':_0x3e1812,'turboscale':_0x4c4b67[_0x1fcb77(0x1c6)](isTurboScaleSession,_0x2e3dd2),'central_scanner':_0x4c4b67['gzDby'](process[_0x1fcb77(0x14a)][_0x1fcb77(0x18a)],_0x4c4b67[_0x1fcb77(0x1c5)])};},exports[a90_0x18ebb7(0x142)]=(_0x586422,_0x10b1c3)=>{const _0x3f586a=a90_0x18ebb7,_0x2e66d8={'utKRC':function(_0x557175,_0x254022){return _0x557175(_0x254022);},'Kdlag':'javascript'};return{'frameworkName':_0x10b1c3,'frameworkVersion':_0x2e66d8[_0x3f586a(0x169)](getFrameworkVersion,_0x10b1c3),'sdkVersion':bsSetupHelper['getAgentVersion'](),'language':_0x2e66d8['Kdlag'],'testFramework':bsSetupHelper[_0x3f586a(0x167)](_0x586422,_0x10b1c3)};},exports[a90_0x18ebb7(0x15b)]=_0x161d77=>{const _0x35be40=a90_0x18ebb7,_0x4cdd44={};_0x4cdd44['qnQYO']=_0x35be40(0x1c3),_0x4cdd44[_0x35be40(0x14e)]=_0x35be40(0x190);const _0x5c54eb=_0x4cdd44;process[_0x35be40(0x14a)][_0x35be40(0x1ca)]=_0x5c54eb['qnQYO'],bsSetupHelper[_0x35be40(0x195)](_0x161d77['config'][_0x35be40(0x150)])&&(!_0x161d77[_0x35be40(0x150)]||!_0x161d77[_0x35be40(0x150)][_0x35be40(0x197)]())&&(process[_0x35be40(0x14a)][_0x35be40(0x1ca)]=_0x5c54eb['hnnaZ']);},exports[a90_0x18ebb7(0x1c4)]=()=>{const _0x5b6b57=a90_0x18ebb7;return bsSetupHelper[_0x5b6b57(0x195)](process[_0x5b6b57(0x14a)][_0x5b6b57(0x1ca)]);},exports['isAccessibilityEnabled']=(_0x37b6e5={})=>{const _0x555721=a90_0x18ebb7,_0x2ab40d={};_0x2ab40d[_0x555721(0x1d0)]=function(_0x35f8b8,_0x588773){return _0x35f8b8!==_0x588773;},_0x2ab40d['pCHRs']=function(_0x36558d,_0x2b3992){return _0x36558d===_0x2b3992;},_0x2ab40d['gvMIZ']=_0x555721(0x190),_0x2ab40d[_0x555721(0x1ce)]=function(_0x22e941,_0x2e1f34){return _0x22e941>_0x2e1f34;},_0x2ab40d[_0x555721(0x1dc)]=function(_0xee0d0,_0x424f5a){return _0xee0d0===_0x424f5a;};const _0x4dd1c0=_0x2ab40d;if(_0x4dd1c0[_0x555721(0x1d0)](process[_0x555721(0x14a)]['BROWSERSTACK_ACCESSIBILITY'],undefined))return bsSetupHelper[_0x555721(0x195)](process['env'][_0x555721(0x188)]);let _0x480526=_0x4dd1c0['pCHRs'](process[_0x555721(0x14a)][_0x555721(0x1d9)],_0x4dd1c0[_0x555721(0x15a)]);return _0x4dd1c0['VTEfR'](Object[_0x555721(0x1c0)](_0x37b6e5)[_0x555721(0x15e)],0x0)&&(process[_0x555721(0x14a)][_0x555721(0x17d)]=accessibilityHelper['checkAccessibilityPlatformConfig'](_0x37b6e5)),_0x480526=_0x480526||_0x4dd1c0['USbZc'](process[_0x555721(0x14a)][_0x555721(0x17d)],_0x4dd1c0[_0x555721(0x15a)]),_0x480526;},exports[a90_0x18ebb7(0x183)]=(_0x374098,_0xb1ad9b)=>{const _0xc9645c=a90_0x18ebb7,_0x2e73da={'phRpi':function(_0x10d213){return _0x10d213();},'JuJGv':_0xc9645c(0x18d),'RhVlt':function(_0x1602da,_0x4731f8,_0x4c393d){return _0x1602da(_0x4731f8,_0x4c393d);},'poYpW':_0xc9645c(0x140),'EGXOa':'options','mYJpc':_0xc9645c(0x190)};if(!_0x374098||!_0x374098['observability'])return exports[_0xc9645c(0x1bf)](),[null,null,null];if(!_0x374098[_0xc9645c(0x140)]['success'])return exports[_0xc9645c(0x1bf)](_0x374098[_0xc9645c(0x140)]),[null,null,null];if(_0x2e73da[_0xc9645c(0x13e)](isTestObservabilitySession)){const _0x28691c=_0x2e73da[_0xc9645c(0x175)][_0xc9645c(0x1a3)]('|');let _0x467315=0x0;while(!![]){switch(_0x28691c[_0x467315++]){case'0':_0x2e73da[_0xc9645c(0x14c)](nestedKeyValue,_0x374098,[_0x2e73da['poYpW'],_0x2e73da['EGXOa']])&&(process[_0xc9645c(0x14a)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x374098[_0xc9645c(0x140)][_0xc9645c(0x1a4)][_0xc9645c(0x185)][_0xc9645c(0x19c)]());continue;case'1':logger[_0xc9645c(0x1cf)]('[OBSERVABILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20'+_0x374098['build_hashed_id']);continue;case'2':return[_0x374098[_0xc9645c(0x16e)],_0x374098['build_hashed_id'],process[_0xc9645c(0x14a)][_0xc9645c(0x1d5)]];case'3':_0x374098['build_hashed_id']&&(process[_0xc9645c(0x14a)][_0xc9645c(0x165)]=_0x374098['build_hashed_id']);continue;case'4':process[_0xc9645c(0x14a)][_0xc9645c(0x14d)]=_0x2e73da[_0xc9645c(0x16d)];continue;case'5':if(_0x374098['jwt']){process['env'][_0xc9645c(0x1b9)]=_0x374098[_0xc9645c(0x16e)];const _0x452c93={};_0x452c93[_0xc9645c(0x161)]=_0xb1ad9b['username'],_0x452c93[_0xc9645c(0x1a8)]=_0xb1ad9b[_0xc9645c(0x1a8)],process[_0xc9645c(0x14a)][_0xc9645c(0x1b4)]=JSON[_0xc9645c(0x178)](_0x452c93);}continue;}break;}}return[null,null,null];},exports['setAccessibilityVariables']=_0x2cab63=>{const _0x3f216b=a90_0x18ebb7,_0x20876d={'bXtic':function(_0x266a46,_0x34141e,_0x2177da){return _0x266a46(_0x34141e,_0x2177da);},'wJaEF':'accessibility','FzfEq':_0x3f216b(0x1a4),'yQvBo':function(_0x577e0a,_0x30f90e,_0x575183,_0x3c7ebc){return _0x577e0a(_0x30f90e,_0x575183,_0x3c7ebc);},'ILDvo':'name','ryTRW':'value','GSWWt':_0x3f216b(0x18e),'rrdKa':_0x3f216b(0x1ae)};if(!_0x2cab63[_0x3f216b(0x13f)])return exports[_0x3f216b(0x1d6)](),[null,null];if(!_0x2cab63[_0x3f216b(0x13f)][_0x3f216b(0x1be)])return exports[_0x3f216b(0x1d6)](_0x2cab63[_0x3f216b(0x13f)]),[null,null];if(_0x20876d[_0x3f216b(0x198)](nestedKeyValue,_0x2cab63,[_0x20876d[_0x3f216b(0x1da)],_0x20876d['FzfEq']])){const {accessibilityToken:_0x3e1164,scannerVersion:_0x4f750c}=_0x20876d[_0x3f216b(0x1bc)](jsonifyAccessibilityArray,_0x2cab63[_0x3f216b(0x13f)][_0x3f216b(0x1a4)][_0x3f216b(0x147)],_0x20876d[_0x3f216b(0x1a7)],_0x20876d[_0x3f216b(0x186)]),_0x243803={'scripts':_0x20876d['yQvBo'](jsonifyAccessibilityArray,_0x2cab63['accessibility'][_0x3f216b(0x1a4)][_0x3f216b(0x158)],_0x20876d[_0x3f216b(0x1a7)],_0x20876d['GSWWt'])};_0x243803[_0x20876d[_0x3f216b(0x193)]]=_0x2cab63[_0x3f216b(0x13f)][_0x3f216b(0x1a4)][_0x3f216b(0x168)]['commands'],scripts[_0x3f216b(0x1ab)](_0x243803),scripts[_0x3f216b(0x1c9)]();let _0x1b4bf8=process['env'][_0x3f216b(0x160)];return _0x1b4bf8=!!_0x1b4bf8?JSON['parse'](_0x1b4bf8):{},_0x1b4bf8[_0x3f216b(0x174)]=_0x4f750c,process[_0x3f216b(0x14a)][_0x3f216b(0x160)]=JSON[_0x3f216b(0x178)](_0x1b4bf8),process['env']['BS_A11Y_JWT']=_0x3e1164,logger['debug']('[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20'+_0x2cab63[_0x3f216b(0x16f)]),[_0x3e1164,_0x2cab63[_0x3f216b(0x16f)]];}return[null,null];},exports[a90_0x18ebb7(0x1bf)]=_0x116cc5=>{const _0x28b50a=a90_0x18ebb7,_0x1aa13b={};_0x1aa13b[_0x28b50a(0x159)]=_0x28b50a(0x182),_0x1aa13b['rRFGN']=_0x28b50a(0x1cd),_0x1aa13b[_0x28b50a(0x1d7)]=_0x28b50a(0x1c3);const _0x55ce04=_0x1aa13b,_0xa506ff=_0x55ce04[_0x28b50a(0x159)]['split']('|');let _0x472f11=0x0;while(!![]){switch(_0xa506ff[_0x472f11++]){case'0':process['env'][_0x28b50a(0x1a0)]=_0x55ce04[_0x28b50a(0x1a6)];continue;case'1':process[_0x28b50a(0x14a)][_0x28b50a(0x1d5)]=_0x55ce04[_0x28b50a(0x1a6)];continue;case'2':process['env'][_0x28b50a(0x14d)]=_0x55ce04['NxJkW'];continue;case'3':process[_0x28b50a(0x14a)][_0x28b50a(0x1a9)]=_0x55ce04[_0x28b50a(0x1a6)];continue;case'4':process[_0x28b50a(0x14a)][_0x28b50a(0x1b9)]=_0x55ce04[_0x28b50a(0x1a6)];continue;case'5':process[_0x28b50a(0x14a)][_0x28b50a(0x165)]=_0x55ce04[_0x28b50a(0x1a6)];continue;case'6':exports[_0x28b50a(0x157)](_0x116cc5,testHubConstants[_0x28b50a(0x1b8)]);continue;}break;}},exports[a90_0x18ebb7(0x1d6)]=_0xc96b53=>{const _0x4e1742=a90_0x18ebb7,_0x39d126={};_0x39d126[_0x4e1742(0x152)]='0|4|3|1|2',_0x39d126['DBgmR']=_0x4e1742(0x1cd),_0x39d126[_0x4e1742(0x1ac)]=_0x4e1742(0x1c3);const _0x17caeb=_0x39d126,_0x223bb8=_0x17caeb[_0x4e1742(0x152)][_0x4e1742(0x1a3)]('|');let _0x555509=0x0;while(!![]){switch(_0x223bb8[_0x555509++]){case'0':process['env']['BROWSERSTACK_TESTHUB_UUID']=_0x17caeb[_0x4e1742(0x146)];continue;case'1':process[_0x4e1742(0x14a)][_0x4e1742(0x17d)]=_0x17caeb[_0x4e1742(0x1ac)];continue;case'2':exports['logBuildError'](_0xc96b53,testHubConstants['ACCESSIBILITY']);continue;case'3':process['env'][_0x4e1742(0x1d9)]=_0x17caeb[_0x4e1742(0x1ac)];continue;case'4':process[_0x4e1742(0x14a)][_0x4e1742(0x1a0)]=_0x17caeb[_0x4e1742(0x146)];continue;}break;}},exports['logBuildError']=(_0x33bc02,_0x1dea47='')=>{const _0x48414f=a90_0x18ebb7,_0x2d3502={};_0x2d3502[_0x48414f(0x17b)]=function(_0x4606c4,_0xb2cc29){return _0x4606c4===_0xb2cc29;};const _0x34bf24=_0x2d3502;if(_0x34bf24[_0x48414f(0x17b)](_0x33bc02,undefined)){logger[_0x48414f(0x1b1)](_0x1dea47[_0x48414f(0x176)]()+'\x20Build\x20creation\x20failed');return;}for(const _0x1d396a of _0x33bc02['errors']){const _0x32b7b7=_0x1d396a[_0x48414f(0x143)],_0x19ea50=_0x1d396a[_0x48414f(0x1d1)];if(_0x19ea50)switch(_0x32b7b7){case testHubConstants[_0x48414f(0x1b3)][_0x48414f(0x166)]:logger[_0x48414f(0x1b1)](_0x19ea50);break;case testHubConstants['ERROR'][_0x48414f(0x18c)]:logger[_0x48414f(0x172)](_0x19ea50);break;case testHubConstants[_0x48414f(0x1b3)][_0x48414f(0x154)]:logger[_0x48414f(0x1b1)](_0x19ea50);break;default:logger[_0x48414f(0x1b1)](_0x19ea50);}}};const jsonifyAccessibilityArray=(_0x4160cd,_0x2be376,_0x651706)=>{const _0x5454e5=a90_0x18ebb7,_0x1bb273={};return _0x4160cd[_0x5454e5(0x1ba)](_0x391668=>{_0x1bb273[_0x391668[_0x2be376]]=_0x391668[_0x651706];}),_0x1bb273;};exports[a90_0x18ebb7(0x15c)]=_0x14a314=>{const _0x542b47=a90_0x18ebb7;_0x14a314[_0x542b47(0x16e)]&&(process[_0x542b47(0x14a)][_0x542b47(0x1a0)]=_0x14a314[_0x542b47(0x16e)]);_0x14a314[_0x542b47(0x16f)]&&(process['env'][_0x542b47(0x1a9)]=_0x14a314[_0x542b47(0x16f)],logger[_0x542b47(0x1cf)](_0x542b47(0x15d)+_0x14a314[_0x542b47(0x16f)]));;},exports[a90_0x18ebb7(0x199)]=(_0x2a6554='',_0x3ad535='')=>{const _0x2518de=a90_0x18ebb7,_0x546b79={'NxsJT':function(_0x18bba5){return _0x18bba5();},'gVGRS':function(_0x4ee609,_0x39f1e7){return _0x4ee609===_0x39f1e7;},'oqMNY':_0x2518de(0x1d3),'DCjjU':_0x2518de(0x18b),'MsDxz':_0x2518de(0x19a),'WBZmB':_0x2518de(0x163),'sPCHj':_0x2518de(0x14f)};if(exports[_0x2518de(0x1c4)]()&&!exports[_0x2518de(0x1b0)]()&&!_0x546b79['NxsJT'](isTestObservabilitySession)){if(_0x546b79[_0x2518de(0x14b)](_0x3ad535,_0x546b79[_0x2518de(0x19e)]))return![];if([_0x546b79[_0x2518de(0x141)],_0x546b79[_0x2518de(0x16a)]][_0x2518de(0x155)](_0x2a6554))return![];return!![];}if(exports[_0x2518de(0x1b0)]()&&!_0x546b79[_0x2518de(0x191)](isTestObservabilitySession)){if([_0x546b79[_0x2518de(0x15f)],_0x546b79[_0x2518de(0x173)],_0x546b79[_0x2518de(0x141)]][_0x2518de(0x155)](_0x2a6554))return![];return!![];}return exports[_0x2518de(0x1b0)]()||_0x546b79['NxsJT'](isTestObservabilitySession)||exports[_0x2518de(0x1c4)]();},exports[a90_0x18ebb7(0x1b5)]=(_0x5822dc,_0xa6fc7c,_0x12e790='',_0x539e35)=>{const _0x58439e=a90_0x18ebb7,_0x1ee421={};_0x1ee421['VJaoL']=_0x58439e(0x163),_0x1ee421[_0x58439e(0x16c)]=_0x58439e(0x14f),_0x1ee421[_0x58439e(0x17c)]=function(_0x125ebe,_0x3d12a9){return _0x125ebe===_0x3d12a9;},_0x1ee421[_0x58439e(0x162)]='bstackA11yShouldScan',_0x1ee421[_0x58439e(0x1b6)]=_0x58439e(0x17e),_0x1ee421['bOpMl']='accessibility',_0x1ee421[_0x58439e(0x19f)]=function(_0xd53a25,_0x939b4f){return _0xd53a25&&_0x939b4f;},_0x1ee421['wwRKZ']=function(_0x1b73b5,_0x39fa2f){return _0x1b73b5+_0x39fa2f;},_0x1ee421[_0x58439e(0x1a1)]=function(_0x2a933c,_0x58d8e9){return _0x2a933c+_0x58d8e9;},_0x1ee421[_0x58439e(0x194)]=function(_0x3a42e4,_0x308a21){return _0x3a42e4===_0x308a21;},_0x1ee421['nPwlc']='TestRunStarted',_0x1ee421[_0x58439e(0x1c2)]=function(_0x3f9cc0,_0x570ffc){return _0x3f9cc0===_0x570ffc;},_0x1ee421['xngmo']=function(_0x14505e,_0x465afe){return _0x14505e===_0x465afe;},_0x1ee421[_0x58439e(0x196)]=function(_0x42b00f,_0x1163c8){return _0x42b00f&&_0x1163c8;},_0x1ee421[_0x58439e(0x1d8)]=_0x58439e(0x153);const _0x5c4555=_0x1ee421;if(![_0x5c4555['VJaoL'],_0x5c4555[_0x58439e(0x16c)]][_0x58439e(0x155)](_0xa6fc7c)&&exports[_0x58439e(0x1b0)]()){const _0x403055={};if(_0x5c4555[_0x58439e(0x17c)](_0x539e35,FRAMEWORKS['MOCHA'])){const _0x51d07d=globals[_0x58439e(0x1cb)](_0x5c4555[_0x58439e(0x162)])||accessibilityHelper[_0x58439e(0x17a)](_0x12e790[_0x58439e(0x19b)](),!![]),_0x2fae32=globals[_0x58439e(0x1cb)](_0x5c4555[_0x58439e(0x1b6)]);_0x403055[_0x5c4555[_0x58439e(0x1d2)]]=_0x5c4555[_0x58439e(0x19f)](_0x2fae32,_0x51d07d);}if(_0x5c4555[_0x58439e(0x17c)](_0x539e35,FRAMEWORKS[_0x58439e(0x180)])){const _0x5a7f60=_0x5c4555[_0x58439e(0x151)](_0x5c4555[_0x58439e(0x1a1)](_0x5822dc['scopes'][_0x58439e(0x17f)]('\x20'),'\x20'),_0x12e790['name']),_0x182e1f=globals[_0x58439e(0x1cb)](_0x5c4555['gqvVo'])||accessibilityHelper[_0x58439e(0x17a)](_0x5a7f60,![]),_0x570cfc=browserStackGlobals['isAccessibilityPlatform'];_0x403055[_0x5c4555[_0x58439e(0x1d2)]]=_0x5c4555[_0x58439e(0x19f)](_0x570cfc,_0x182e1f);}if(_0x5c4555[_0x58439e(0x17c)](_0x539e35,FRAMEWORKS[_0x58439e(0x149)])){if(_0x5c4555['MvSSU'](_0xa6fc7c,_0x5c4555[_0x58439e(0x177)]))return;_0x403055[_0x5c4555[_0x58439e(0x1d2)]]=PWTestDetails[_0x58439e(0x144)](_0x5822dc[_0x58439e(0x145)]);}if(_0x5c4555['OLsUA'](_0x539e35,FRAMEWORKS[_0x58439e(0x1bb)])){const _0x1f253a=accessibilityHelper[_0x58439e(0x17a)](_0x12e790[_0x58439e(0x19b)](),!![]),_0x1811c5=global[_0x58439e(0x181)]&&bsSetupHelper[_0x58439e(0x19d)]();_0x403055[_0x5c4555[_0x58439e(0x1d2)]]=_0x5c4555[_0x58439e(0x19f)](_0x1811c5,_0x1f253a);}if(_0x5c4555['xngmo'](_0x539e35,FRAMEWORKS[_0x58439e(0x1db)])){const _0xbd7e54=accessibilityHelper[_0x58439e(0x17a)](null,![],_0x5822dc[_0x58439e(0x171)]),_0x476790=globals[_0x58439e(0x1cb)](_0x5c4555[_0x58439e(0x1b6)]);_0x403055[_0x5c4555[_0x58439e(0x1d2)]]=_0x5c4555[_0x58439e(0x196)](_0x476790,_0xbd7e54);}_0x5822dc[_0x5c4555[_0x58439e(0x1d8)]]=_0x403055;}},exports[a90_0x18ebb7(0x192)]=_0x204479=>{const _0x452bab=a90_0x18ebb7,_0x25018e={};_0x25018e[_0x452bab(0x179)]=function(_0x3673b9,_0x590729){return _0x3673b9>_0x590729;};const _0x144468=_0x25018e;let _0x518994={};if(_0x144468['hAijz'](Object['keys'](testData)['length'],0x0))return testData;_0x518994=JestTestDetails[_0x452bab(0x156)]();if(_0x144468['hAijz'](Object[_0x452bab(0x1c0)](_0x518994)[_0x452bab(0x15e)],0x0))return _0x518994;return _0x518994;},exports[a90_0x18ebb7(0x189)]=(_0x32a5ac,_0x1639c2={})=>{const _0x906d6a=a90_0x18ebb7;if(bsSetupHelper['isUndefined'](_0x1639c2[_0x906d6a(0x1c8)]))return;switch(_0x32a5ac){case FRAMEWORKS[_0x906d6a(0x18f)]:testData=_0x1639c2[_0x906d6a(0x1c8)];break;case FRAMEWORKS[_0x906d6a(0x180)]:JestTestDetails[_0x906d6a(0x1d4)](_0x1639c2[_0x906d6a(0x1c8)]);break;default:break;}};
|
|
1
|
+
function a90_0x4c93(_0x37c67e,_0x56edf0){const _0x545a53=a90_0x545a();return a90_0x4c93=function(_0x4c93f7,_0x4f397b){_0x4c93f7=_0x4c93f7-0x160;let _0x68d892=_0x545a53[_0x4c93f7];return _0x68d892;},a90_0x4c93(_0x37c67e,_0x56edf0);}const a90_0x5519fc=a90_0x4c93;function a90_0x545a(){const _0x237c70=['isRunning','../accessibility-automation/scripts.js','SuLwB','BROWSERSTACK_PERCY','isAccessibilityEnabled','EizYX','MOCHA','parse','cDCYR','3459896DgNcwU','forEach','success','TestRunStarted','getCurrentTestData','WdUJQ','setTestHubCommonMetaInfo','dAdVI','1782hRLpYL','handleErrorForObservability','ZOpTO','yzuBF','jkqBX','keys','stringify','wNXXU','UBUmB','wQTtO','nvbgT','error','ERROR','zNkeT','Jpeqe','length','43784890kTgpDq','shouldProcessEventForTesthub','command','bstackA11yShouldScan','zysJq','BROWSERSTACK_TESTHUB_UUID','VrkIP','BS_TESTOPS_BUILD_COMPLETED','Lkyar','observability','tags','isBrowserstackInfra','ACCESSIBILITY','OBSERVABILITY','8208963dilFKZ','oEzmb','isTrue','ACCESS_DENIED','uploadEventData','LtdcH','jwt','fkLYj','HookRunStarted','ZqgPl','[OBSERVABILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','../../bin/playwright/reporter/test-details.js','password','../../bin/jest/test-observability/test-details.js','username','2|1|5|3|6|0|4','SxuRg','BywNU','name','BROWSERSTACK_ACCESSIBILITY','oytly','BROWSERSTACK_TEST_ACCESSIBILITY_YML','WYwxs','setCurrentTestData','getFrameworkDetails','RfWhF','xKMCa','Vwnuf','nZsYW','toJson','18625LnvuJK','PfsRw','KKpBt','sRLjm','eYJfJ','ajDBu','3|0|2|1|4','join','commands','key','percy','CUCUMBER','value','test_run','oqhDA','setTestObservabilityVariables','false','setTestData','handleErrorForAccessibility','ELRNK','shouldScanTestForAccessibility','message','VjHBN','CAfkz','JEST','BROWSERSTACK_CENTRAL_USER','setAccessibilityVariables','15968EvLVkA','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','okOIV','CBTSessionCreated','product_map','5|3|2|4|1|0','logBuildError','isUndefined','LogCreated','648KQfLmL','scripts','HookRunFinished','BS_TESTOPS_BUILD_HASHED_ID','../ats/helper','true','isPercyBuild','isAccessibilityPlatform','8rRnVZQ','cDVXj','888021cuGXHo','DEPRECATED','48474xqMvby','build_hashed_id','nynNH','includes','sRVWy','accessibility','DoToR','BS_TESTOPS_ALLOW_SCREENSHOTS','KvAWw','../accessibility-automation/helper','accessibilityPlatform','../helper.js','lNFkG','BS_A11Y_JWT','bQJKf','MtVaJ','CREDENTIALS_FOR_CRASH_REPORTING','YxDWF','getAccessibilityPlatformValidation','../test-observability/constants.js','ccaNO','app','scopes','debug','null','options','PHApI','EijOt','BS_TESTOPS_JWT','../globals.js','checkAccessibilityPlatformConfig','split','setPercyFlag','allow_screenshots','getGlobal','tqqAG','getAgentVersion','config','BROWSERSTACK_TESTHUB_JWT','DtOjQ','toString','parseFromJson','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','../logger','env','fOoFE'];a90_0x545a=function(){return _0x237c70;};return a90_0x545a();}(function(_0x66ad34,_0x46feb4){const _0x24d4d0=a90_0x4c93,_0x252068=_0x66ad34();while(!![]){try{const _0x37cc88=-parseInt(_0x24d4d0(0x186))/0x1*(parseInt(_0x24d4d0(0x182))/0x2)+-parseInt(_0x24d4d0(0x184))/0x3+-parseInt(_0x24d4d0(0x1bd))/0x4+parseInt(_0x24d4d0(0x201))/0x5*(-parseInt(_0x24d4d0(0x1c5))/0x6)+-parseInt(_0x24d4d0(0x1e3))/0x7+-parseInt(_0x24d4d0(0x171))/0x8*(parseInt(_0x24d4d0(0x17a))/0x9)+parseInt(_0x24d4d0(0x1d5))/0xa;if(_0x37cc88===_0x46feb4)break;else _0x252068['push'](_0x252068['shift']());}catch(_0x1418d0){_0x252068['push'](_0x252068['shift']());}}}(a90_0x545a,0x92b22));const bsSetupHelper=require('../helper'),{isTestObservabilitySession,getFrameworkVersion}=require('../test-observability/utils'),accessibilityHelper=require(a90_0x5519fc(0x18f)),logger=require(a90_0x5519fc(0x1b1))['winstonLogger'],{nestedKeyValue}=require(a90_0x5519fc(0x191)),scripts=require(a90_0x5519fc(0x1b5)),globals=require(a90_0x5519fc(0x1a3)),testHubConstants=require('./constants.js'),PWTestDetails=require(a90_0x5519fc(0x1ee)),JestTestDetails=require(a90_0x5519fc(0x1f0)),{FRAMEWORKS}=require(a90_0x5519fc(0x199)),{isTurboScaleSession}=require(a90_0x5519fc(0x17e));let testData={};exports['getProductMap']=_0xb26f62=>{const _0x11a932=a90_0x5519fc,_0x41a33e={'BywNU':function(_0x42d934){return _0x42d934();},'QZJtV':function(_0x266813,_0x40f6ea){return _0x266813(_0x40f6ea);},'VjHBN':function(_0x333f4b,_0x130a95){return _0x333f4b===_0x130a95;},'zysJq':_0x11a932(0x17f)};let _0xfa6958=![],_0x2781ce=![];if(bsSetupHelper[_0x11a932(0x1e0)]()&&_0xb26f62[_0x11a932(0x19b)])_0x2781ce=!![];else bsSetupHelper['isBrowserstackInfra']()&&(_0xfa6958=!![]);return{'observability':_0x41a33e[_0x11a932(0x1f4)](isTestObservabilitySession),'accessibility':exports[_0x11a932(0x1b8)](_0xb26f62),'percy':_0xb26f62[_0x11a932(0x160)]||![],'automate':_0xfa6958,'app_automate':_0x2781ce,'turboscale':_0x41a33e['QZJtV'](isTurboScaleSession,_0xb26f62),'central_scanner':_0x41a33e[_0x11a932(0x16c)](process[_0x11a932(0x1b2)][_0x11a932(0x16f)],_0x41a33e[_0x11a932(0x1d9)])};},exports[a90_0x5519fc(0x1fb)]=(_0xd06c68,_0x2243b9)=>{const _0x3d936d=a90_0x5519fc,_0x34158e={'nZsYW':function(_0x44dc22,_0x12f188){return _0x44dc22(_0x12f188);},'LtdcH':'javascript'};return{'frameworkName':_0x2243b9,'frameworkVersion':_0x34158e[_0x3d936d(0x1ff)](getFrameworkVersion,_0x2243b9),'sdkVersion':bsSetupHelper[_0x3d936d(0x1aa)](),'language':_0x34158e[_0x3d936d(0x1e8)],'testFramework':bsSetupHelper['getTestFrameworkDetails'](_0xd06c68,_0x2243b9)};},exports[a90_0x5519fc(0x1a6)]=_0x254a4b=>{const _0xad444c=a90_0x5519fc,_0xe797fe={};_0xe797fe[_0xad444c(0x1cf)]='false',_0xe797fe[_0xad444c(0x1c4)]=_0xad444c(0x17f);const _0x5f37e3=_0xe797fe;process[_0xad444c(0x1b2)][_0xad444c(0x1b7)]=_0x5f37e3['nvbgT'],bsSetupHelper[_0xad444c(0x1e5)](_0x254a4b[_0xad444c(0x1ab)]['percy'])&&(!_0x254a4b[_0xad444c(0x160)]||!_0x254a4b[_0xad444c(0x160)][_0xad444c(0x1b4)]())&&(process['env'][_0xad444c(0x1b7)]=_0x5f37e3[_0xad444c(0x1c4)]);},exports[a90_0x5519fc(0x180)]=()=>{const _0x512411=a90_0x5519fc;return bsSetupHelper[_0x512411(0x1e5)](process[_0x512411(0x1b2)][_0x512411(0x1b7)]);},exports['isAccessibilityEnabled']=(_0x451e01={})=>{const _0x74bc98=a90_0x5519fc,_0x1f1fa3={};_0x1f1fa3['Vwnuf']=function(_0x763715,_0x35c812){return _0x763715!==_0x35c812;},_0x1f1fa3['SxuRg']=function(_0x53a0b9,_0x1f08eb){return _0x53a0b9===_0x1f08eb;},_0x1f1fa3[_0x74bc98(0x1cd)]='true',_0x1f1fa3[_0x74bc98(0x1cc)]=function(_0x1d9121,_0x16314b){return _0x1d9121>_0x16314b;};const _0x28b42d=_0x1f1fa3;if(_0x28b42d[_0x74bc98(0x1fe)](process[_0x74bc98(0x1b2)][_0x74bc98(0x1f6)],undefined))return bsSetupHelper[_0x74bc98(0x1e5)](process['env'][_0x74bc98(0x1f6)]);let _0x265084=_0x28b42d[_0x74bc98(0x1f3)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x28b42d[_0x74bc98(0x1cd)]);return _0x28b42d['wNXXU'](Object[_0x74bc98(0x1ca)](_0x451e01)[_0x74bc98(0x1d4)],0x0)&&(process[_0x74bc98(0x1b2)][_0x74bc98(0x172)]=accessibilityHelper[_0x74bc98(0x1a4)](_0x451e01)),_0x265084=_0x265084||_0x28b42d['SxuRg'](process['env'][_0x74bc98(0x172)],_0x28b42d[_0x74bc98(0x1cd)]),_0x265084;},exports[a90_0x5519fc(0x165)]=(_0x12bd8b,_0x502024)=>{const _0x3e2173=a90_0x5519fc,_0x6f3e1b={'KvAWw':function(_0x2d261d){return _0x2d261d();},'puQlG':_0x3e2173(0x176),'cDVXj':function(_0x42dbb1,_0x249fbf,_0x91fc0f){return _0x42dbb1(_0x249fbf,_0x91fc0f);},'yzuBF':'observability','cDCYR':_0x3e2173(0x19f),'oqhDA':_0x3e2173(0x17f)};if(!_0x12bd8b||!_0x12bd8b[_0x3e2173(0x1de)])return exports[_0x3e2173(0x1c6)](),[null,null,null];if(!_0x12bd8b[_0x3e2173(0x1de)][_0x3e2173(0x1bf)])return exports['handleErrorForObservability'](_0x12bd8b['observability']),[null,null,null];if(_0x6f3e1b[_0x3e2173(0x18e)](isTestObservabilitySession)){const _0x10b5b3=_0x6f3e1b['puQlG'][_0x3e2173(0x1a5)]('|');let _0x40231b=0x0;while(!![]){switch(_0x10b5b3[_0x40231b++]){case'0':return[_0x12bd8b[_0x3e2173(0x1e9)],_0x12bd8b[_0x3e2173(0x187)],process[_0x3e2173(0x1b2)][_0x3e2173(0x18d)]];case'1':logger['debug'](_0x3e2173(0x1ed)+_0x12bd8b[_0x3e2173(0x187)]);continue;case'2':_0x12bd8b['build_hashed_id']&&(process[_0x3e2173(0x1b2)][_0x3e2173(0x17d)]=_0x12bd8b['build_hashed_id']);continue;case'3':if(_0x12bd8b[_0x3e2173(0x1e9)]){process['env'][_0x3e2173(0x1a2)]=_0x12bd8b['jwt'];const _0x574329={};_0x574329[_0x3e2173(0x1f1)]=_0x502024[_0x3e2173(0x1f1)],_0x574329[_0x3e2173(0x1ef)]=_0x502024[_0x3e2173(0x1ef)],process[_0x3e2173(0x1b2)][_0x3e2173(0x196)]=JSON[_0x3e2173(0x1cb)](_0x574329);}continue;case'4':_0x6f3e1b[_0x3e2173(0x183)](nestedKeyValue,_0x12bd8b,[_0x6f3e1b[_0x3e2173(0x1c8)],_0x6f3e1b[_0x3e2173(0x1bc)]])&&(process[_0x3e2173(0x1b2)][_0x3e2173(0x18d)]=_0x12bd8b[_0x3e2173(0x1de)][_0x3e2173(0x19f)][_0x3e2173(0x1a7)][_0x3e2173(0x1ae)]());continue;case'5':process[_0x3e2173(0x1b2)][_0x3e2173(0x1dc)]=_0x6f3e1b[_0x3e2173(0x164)];continue;}break;}}return[null,null,null];},exports[a90_0x5519fc(0x170)]=_0x3de199=>{const _0xf9007e=a90_0x5519fc,_0xbb19d5={'lNFkG':function(_0x450679,_0x4eda6d,_0x2234b7){return _0x450679(_0x4eda6d,_0x2234b7);},'qWgAo':'accessibility','oytly':'options','fkLYj':function(_0x387ed7,_0xcb23a2,_0x997de2,_0x4d87f0){return _0x387ed7(_0xcb23a2,_0x997de2,_0x4d87f0);},'WdUJQ':_0xf9007e(0x1f5),'Jpeqe':_0xf9007e(0x162),'EijOt':function(_0xbcd1eb,_0x503e29,_0x380cdf,_0x2a34f8){return _0xbcd1eb(_0x503e29,_0x380cdf,_0x2a34f8);},'YmUpo':_0xf9007e(0x1d7),'MtVaJ':_0xf9007e(0x209)};if(!_0x3de199[_0xf9007e(0x18b)])return exports['handleErrorForAccessibility'](),[null,null];if(!_0x3de199[_0xf9007e(0x18b)][_0xf9007e(0x1bf)])return exports[_0xf9007e(0x168)](_0x3de199[_0xf9007e(0x18b)]),[null,null];if(_0xbb19d5[_0xf9007e(0x192)](nestedKeyValue,_0x3de199,[_0xbb19d5['qWgAo'],_0xbb19d5[_0xf9007e(0x1f7)]])){const {accessibilityToken:_0x359012,scannerVersion:_0x4f4d92}=_0xbb19d5[_0xf9007e(0x1ea)](jsonifyAccessibilityArray,_0x3de199[_0xf9007e(0x18b)][_0xf9007e(0x19f)]['capabilities'],_0xbb19d5[_0xf9007e(0x1c2)],_0xbb19d5[_0xf9007e(0x1d3)]),_0x4cf8ad={'scripts':_0xbb19d5[_0xf9007e(0x1a1)](jsonifyAccessibilityArray,_0x3de199[_0xf9007e(0x18b)]['options'][_0xf9007e(0x17b)],_0xbb19d5['WdUJQ'],_0xbb19d5['YmUpo'])};_0x4cf8ad[_0xbb19d5[_0xf9007e(0x195)]]=_0x3de199[_0xf9007e(0x18b)]['options']['commandsToWrap'][_0xf9007e(0x209)],scripts[_0xf9007e(0x1af)](_0x4cf8ad),scripts[_0xf9007e(0x200)]();let _0x19cce9=process[_0xf9007e(0x1b2)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'];return _0x19cce9=!!_0x19cce9?JSON[_0xf9007e(0x1bb)](_0x19cce9):{},_0x19cce9['scannerVersion']=_0x4f4d92,process[_0xf9007e(0x1b2)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0xf9007e(0x1cb)](_0x19cce9),process['env'][_0xf9007e(0x193)]=_0x359012,logger[_0xf9007e(0x19d)](_0xf9007e(0x1b0)+_0x3de199[_0xf9007e(0x187)]),[_0x359012,_0x3de199[_0xf9007e(0x187)]];}return[null,null];},exports[a90_0x5519fc(0x1c6)]=_0x24ba6a=>{const _0x565c13=a90_0x5519fc,_0x8b261c={};_0x8b261c[_0x565c13(0x194)]=_0x565c13(0x1f2),_0x8b261c['KKpBt']=_0x565c13(0x19e),_0x8b261c[_0x565c13(0x1b6)]=_0x565c13(0x166);const _0x2a5ebf=_0x8b261c,_0x17928f=_0x2a5ebf['bQJKf'][_0x565c13(0x1a5)]('|');let _0x3c0092=0x0;while(!![]){switch(_0x17928f[_0x3c0092++]){case'0':process[_0x565c13(0x1b2)][_0x565c13(0x18d)]=_0x2a5ebf[_0x565c13(0x203)];continue;case'1':process[_0x565c13(0x1b2)]['BROWSERSTACK_TESTHUB_JWT']=_0x2a5ebf[_0x565c13(0x203)];continue;case'2':process[_0x565c13(0x1b2)]['BROWSERSTACK_TESTHUB_UUID']=_0x2a5ebf['KKpBt'];continue;case'3':process[_0x565c13(0x1b2)][_0x565c13(0x1a2)]=_0x2a5ebf['KKpBt'];continue;case'4':exports['logBuildError'](_0x24ba6a,testHubConstants[_0x565c13(0x1e2)]);continue;case'5':process[_0x565c13(0x1b2)]['BS_TESTOPS_BUILD_COMPLETED']=_0x2a5ebf[_0x565c13(0x1b6)];continue;case'6':process[_0x565c13(0x1b2)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x2a5ebf[_0x565c13(0x203)];continue;}break;}},exports['handleErrorForAccessibility']=_0x43ac22=>{const _0x52e413=a90_0x5519fc,_0xf1f53e={};_0xf1f53e[_0x52e413(0x202)]=_0x52e413(0x207),_0xf1f53e[_0x52e413(0x1ad)]='null',_0xf1f53e[_0x52e413(0x204)]=_0x52e413(0x166);const _0x8cbf44=_0xf1f53e,_0x3c53bd=_0x8cbf44[_0x52e413(0x202)][_0x52e413(0x1a5)]('|');let _0x23b98b=0x0;while(!![]){switch(_0x3c53bd[_0x23b98b++]){case'0':process[_0x52e413(0x1b2)]['BROWSERSTACK_TESTHUB_JWT']=_0x8cbf44[_0x52e413(0x1ad)];continue;case'1':process[_0x52e413(0x1b2)][_0x52e413(0x172)]=_0x8cbf44['sRLjm'];continue;case'2':process[_0x52e413(0x1b2)][_0x52e413(0x1f8)]=_0x8cbf44[_0x52e413(0x204)];continue;case'3':process[_0x52e413(0x1b2)][_0x52e413(0x1da)]=_0x8cbf44['DtOjQ'];continue;case'4':exports[_0x52e413(0x177)](_0x43ac22,testHubConstants[_0x52e413(0x1e1)]);continue;}break;}},exports[a90_0x5519fc(0x177)]=(_0x589311,_0xebf6e2='')=>{const _0x4b453f=a90_0x5519fc,_0x354fe3={};_0x354fe3[_0x4b453f(0x1fd)]=function(_0x25d0c8,_0x3df4f1){return _0x25d0c8===_0x3df4f1;};const _0x36bea9=_0x354fe3;if(_0x36bea9[_0x4b453f(0x1fd)](_0x589311,undefined)){logger['error'](_0xebf6e2['toUpperCase']()+'\x20Build\x20creation\x20failed');return;}for(const _0x3a087c of _0x589311['errors']){const _0x1560cb=_0x3a087c[_0x4b453f(0x20a)],_0x37bb5c=_0x3a087c[_0x4b453f(0x16b)];if(_0x37bb5c)switch(_0x1560cb){case testHubConstants['ERROR']['INVALID_CREDENTIALS']:logger[_0x4b453f(0x1d0)](_0x37bb5c);break;case testHubConstants[_0x4b453f(0x1d1)][_0x4b453f(0x1e6)]:logger['info'](_0x37bb5c);break;case testHubConstants[_0x4b453f(0x1d1)][_0x4b453f(0x185)]:logger[_0x4b453f(0x1d0)](_0x37bb5c);break;default:logger['error'](_0x37bb5c);}}};const jsonifyAccessibilityArray=(_0x64dd6c,_0x37494f,_0x3ac310)=>{const _0x1d2c09=a90_0x5519fc,_0x381d98={};return _0x64dd6c[_0x1d2c09(0x1be)](_0x50d99e=>{_0x381d98[_0x50d99e[_0x37494f]]=_0x50d99e[_0x3ac310];}),_0x381d98;};exports[a90_0x5519fc(0x1c3)]=_0x1d4f3f=>{const _0x1d491d=a90_0x5519fc;_0x1d4f3f[_0x1d491d(0x1e9)]&&(process['env'][_0x1d491d(0x1ac)]=_0x1d4f3f[_0x1d491d(0x1e9)]);_0x1d4f3f[_0x1d491d(0x187)]&&(process[_0x1d491d(0x1b2)][_0x1d491d(0x1da)]=_0x1d4f3f[_0x1d491d(0x187)],logger[_0x1d491d(0x19d)]('BROWSERSTACK_TESTHUB_UUID:\x20'+_0x1d4f3f[_0x1d491d(0x187)]));;},exports[a90_0x5519fc(0x1d6)]=(_0x3b5f5d='',_0x47eb55='')=>{const _0x38cf8d=a90_0x5519fc,_0x36f68d={'WYwxs':function(_0x1eb7e0){return _0x1eb7e0();},'wQTtO':function(_0x45bebc,_0x390659){return _0x45bebc===_0x390659;},'ZqgPl':_0x38cf8d(0x1e7),'ajDBu':_0x38cf8d(0x179),'YxDWF':_0x38cf8d(0x174),'DoToR':function(_0x311113){return _0x311113();},'ZOpTO':_0x38cf8d(0x1eb),'fOoFE':_0x38cf8d(0x17c)};if(exports[_0x38cf8d(0x180)]()&&!exports[_0x38cf8d(0x1b8)]()&&!_0x36f68d[_0x38cf8d(0x1f9)](isTestObservabilitySession)){if(_0x36f68d[_0x38cf8d(0x1ce)](_0x47eb55,_0x36f68d[_0x38cf8d(0x1ec)]))return![];if([_0x36f68d[_0x38cf8d(0x206)],_0x36f68d[_0x38cf8d(0x197)]][_0x38cf8d(0x189)](_0x3b5f5d))return![];return!![];}if(exports['isAccessibilityEnabled']()&&!_0x36f68d[_0x38cf8d(0x18c)](isTestObservabilitySession)){if([_0x36f68d[_0x38cf8d(0x1c7)],_0x36f68d[_0x38cf8d(0x1b3)],_0x36f68d[_0x38cf8d(0x206)]][_0x38cf8d(0x189)](_0x3b5f5d))return![];return!![];}return exports[_0x38cf8d(0x1b8)]()||_0x36f68d['WYwxs'](isTestObservabilitySession)||exports[_0x38cf8d(0x180)]();},exports['appendTesthubParams']=(_0x5060af,_0x512c81,_0x1750ac='',_0x1d6232)=>{const _0x4e3635=a90_0x5519fc,_0x717fef={};_0x717fef[_0x4e3635(0x1d2)]=_0x4e3635(0x1eb),_0x717fef[_0x4e3635(0x18a)]=_0x4e3635(0x17c),_0x717fef[_0x4e3635(0x16d)]=function(_0x27457c,_0x1e95b1){return _0x27457c===_0x1e95b1;},_0x717fef['jkqBX']=_0x4e3635(0x1d8),_0x717fef[_0x4e3635(0x19a)]=_0x4e3635(0x181),_0x717fef[_0x4e3635(0x1b9)]=_0x4e3635(0x18b),_0x717fef[_0x4e3635(0x169)]=function(_0x19295e,_0x3b957b){return _0x19295e&&_0x3b957b;},_0x717fef[_0x4e3635(0x1fc)]=function(_0x1e184a,_0x9f2517){return _0x1e184a+_0x9f2517;},_0x717fef['Csier']=function(_0x2c5822,_0x314efc){return _0x2c5822&&_0x314efc;},_0x717fef[_0x4e3635(0x188)]=function(_0x319688,_0x179d02){return _0x319688===_0x179d02;},_0x717fef[_0x4e3635(0x173)]=_0x4e3635(0x1c0),_0x717fef[_0x4e3635(0x1db)]=function(_0x265b4b,_0x181833){return _0x265b4b===_0x181833;},_0x717fef[_0x4e3635(0x1a0)]=function(_0xeeb5ca,_0x3efded){return _0xeeb5ca&&_0x3efded;},_0x717fef[_0x4e3635(0x205)]=function(_0x46d3f7,_0x460023){return _0x46d3f7===_0x460023;},_0x717fef[_0x4e3635(0x1dd)]=function(_0x1dd521,_0x43a660){return _0x1dd521&&_0x43a660;},_0x717fef[_0x4e3635(0x1a9)]=_0x4e3635(0x175);const _0x239271=_0x717fef;if(![_0x239271[_0x4e3635(0x1d2)],_0x239271[_0x4e3635(0x18a)]][_0x4e3635(0x189)](_0x512c81)&&exports[_0x4e3635(0x1b8)]()){const _0x48e9c9={};if(_0x239271[_0x4e3635(0x16d)](_0x1d6232,FRAMEWORKS[_0x4e3635(0x1ba)])){const _0x49a5fc=globals[_0x4e3635(0x1a8)](_0x239271[_0x4e3635(0x1c9)])||accessibilityHelper[_0x4e3635(0x16a)](_0x1750ac['titlePath'](),!![]),_0xcdbe61=globals[_0x4e3635(0x1a8)](_0x239271[_0x4e3635(0x19a)]);_0x48e9c9[_0x239271[_0x4e3635(0x1b9)]]=_0x239271[_0x4e3635(0x169)](_0xcdbe61,_0x49a5fc);}if(_0x239271[_0x4e3635(0x16d)](_0x1d6232,FRAMEWORKS[_0x4e3635(0x16e)])){const _0x4b69ba=_0x239271[_0x4e3635(0x1fc)](_0x239271[_0x4e3635(0x1fc)](_0x5060af[_0x4e3635(0x19c)][_0x4e3635(0x208)]('\x20'),'\x20'),_0x1750ac['name']),_0x3758f6=globals['getGlobal'](_0x239271[_0x4e3635(0x1c9)])||accessibilityHelper[_0x4e3635(0x16a)](_0x4b69ba,![]),_0x2576ed=browserStackGlobals[_0x4e3635(0x181)];_0x48e9c9[_0x239271[_0x4e3635(0x1b9)]]=_0x239271['Csier'](_0x2576ed,_0x3758f6);}if(_0x239271[_0x4e3635(0x188)](_0x1d6232,FRAMEWORKS['PLAYWRIGHT'])){if(_0x239271[_0x4e3635(0x16d)](_0x512c81,_0x239271[_0x4e3635(0x173)]))return;_0x48e9c9[_0x239271['EizYX']]=PWTestDetails[_0x4e3635(0x198)](_0x5060af['uuid']);}if(_0x239271['VrkIP'](_0x1d6232,FRAMEWORKS['CODECEPT'])){const _0x251192=accessibilityHelper['shouldScanTestForAccessibility'](_0x1750ac['titlePath'](),!![]),_0x195ea3=global[_0x4e3635(0x190)]&&bsSetupHelper[_0x4e3635(0x1e0)]();_0x48e9c9[_0x239271['EizYX']]=_0x239271[_0x4e3635(0x1a0)](_0x195ea3,_0x251192);}if(_0x239271[_0x4e3635(0x205)](_0x1d6232,FRAMEWORKS[_0x4e3635(0x161)])){const _0x7ef429=accessibilityHelper[_0x4e3635(0x16a)](null,![],_0x5060af[_0x4e3635(0x1df)]),_0x221116=globals[_0x4e3635(0x1a8)](_0x239271[_0x4e3635(0x19a)]);_0x48e9c9[_0x239271['EizYX']]=_0x239271[_0x4e3635(0x1dd)](_0x221116,_0x7ef429);}_0x5060af[_0x239271[_0x4e3635(0x1a9)]]=_0x48e9c9;}},exports[a90_0x5519fc(0x1c1)]=_0x25f3b5=>{const _0x15704b=a90_0x5519fc,_0x1c7826={};_0x1c7826[_0x15704b(0x1e4)]=function(_0x4a607c,_0xe50c26){return _0x4a607c>_0xe50c26;},_0x1c7826['bIIrS']=function(_0xec5615,_0x13d5ea){return _0xec5615>_0x13d5ea;};const _0x59bc71=_0x1c7826;let _0x139349={};if(_0x59bc71[_0x15704b(0x1e4)](Object[_0x15704b(0x1ca)](testData)[_0x15704b(0x1d4)],0x0))return testData;_0x139349=JestTestDetails['getTestData']();if(_0x59bc71['bIIrS'](Object[_0x15704b(0x1ca)](_0x139349)['length'],0x0))return _0x139349;return _0x139349;},exports[a90_0x5519fc(0x1fa)]=(_0x5a2a91,_0x2ce6de={})=>{const _0x208b1b=a90_0x5519fc;if(bsSetupHelper[_0x208b1b(0x178)](_0x2ce6de[_0x208b1b(0x163)]))return;switch(_0x5a2a91){case FRAMEWORKS[_0x208b1b(0x1ba)]:testData=_0x2ce6de[_0x208b1b(0x163)];break;case FRAMEWORKS['JEST']:JestTestDetails[_0x208b1b(0x167)](_0x2ce6de[_0x208b1b(0x163)]);break;default:break;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a91_0x9fdc(){const _0x277318=['exports','80nxXLfc','./utilities','1079118SWrDbM','440166ceDBGw','5358256KBtMEv','gqKkm','cancel','899990jeVQMg','xKvfo','SmBZc','37394660XKQFqg','1213110weplyx','4799445IYuJyY','6bPebMs','fireFunnelTestEvent','2YtyOcN'];a91_0x9fdc=function(){return _0x277318;};return a91_0x9fdc();}const a91_0x24a5a7=a91_0x2626;(function(_0x3d835b,_0x5032ae){const _0x413e13=a91_0x2626,_0x44037=_0x3d835b();while(!![]){try{const _0x3f0110=-parseInt(_0x413e13(0x176))/0x1+parseInt(_0x413e13(0x17a))/0x2*(-parseInt(_0x413e13(0x16e))/0x3)+-parseInt(_0x413e13(0x16f))/0x4+parseInt(_0x413e13(0x172))/0x5*(parseInt(_0x413e13(0x178))/0x6)+parseInt(_0x413e13(0x177))/0x7+-parseInt(_0x413e13(0x17c))/0x8*(parseInt(_0x413e13(0x16d))/0x9)+parseInt(_0x413e13(0x175))/0xa;if(_0x3f0110===_0x5032ae)break;else _0x44037['push'](_0x44037['shift']());}catch(_0x5bbbbc){_0x44037['push'](_0x44037['shift']());}}}(a91_0x9fdc,0xac87b));function a91_0x2626(_0x10bc53,_0x36a578){const _0x9fdc45=a91_0x9fdc();return a91_0x2626=function(_0x262661,_0x2592c6){_0x262661=_0x262661-0x16d;let _0x53058b=_0x9fdc45[_0x262661];return _0x53058b;},a91_0x2626(_0x10bc53,_0x36a578);}const utilities=require(a91_0x24a5a7(0x17d));module[a91_0x24a5a7(0x17b)]=(_0x42599d,_0xb1548b,_0x292f42,_0x22eb03,_0x13f912,_0x312b13)=>{const _0x1dfec2=a91_0x24a5a7,_0x22af5a={'pFmvK':function(_0x51c928,_0x4ccdad){return _0x51c928-_0x4ccdad;},'SmBZc':function(_0x938de,_0x1de0d3){return _0x938de(_0x1de0d3);},'iGOFz':function(_0x50a5e5,_0x4b6f32,_0x402014){return _0x50a5e5(_0x4b6f32,_0x402014);}};let _0x242d04,_0x1a1c9a=![];const _0x4cd3d0=new Promise((_0x5a1cdd,_0x2d9ccd)=>{const _0x34d900={'gqKkm':function(_0x1bca9f,_0x4db46b){return _0x22af5a['pFmvK'](_0x1bca9f,_0x4db46b);},'xKvfo':function(_0x1c1868,_0x6c8320){const _0x42f061=a91_0x2626;return _0x22af5a[_0x42f061(0x174)](_0x1c1868,_0x6c8320);}};_0x242d04=_0x22af5a['iGOFz'](setTimeout,()=>{const _0x4e8e06=a91_0x2626;if(!_0x1a1c9a){const _0x3b02b4={'status':''+_0xb1548b,'timeTaken':_0x34d900[_0x4e8e06(0x170)](new Date(),_0x22eb03)};utilities[_0x4e8e06(0x179)](_0x292f42,_0x3b02b4,_0x13f912,_0x312b13),_0x34d900[_0x4e8e06(0x173)](_0x2d9ccd,new Error(_0xb1548b));}},_0x42599d);});return _0x4cd3d0[_0x1dfec2(0x171)]=()=>{const _0x12de0a=_0x1dfec2;_0x1a1c9a=!![],_0x22af5a[_0x12de0a(0x174)](clearTimeout,_0x242d04);},_0x4cd3d0;};
|
package/src/helpers/utilities.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a92_0x10b230=a92_0xd129;function a92_0x2232(){const _0x5cf44b=['sendLogs','env','finalExecution','getAccessKey','null','../bin/playwright/reporter/pwUtils','22182HORVIn','WjSTA','7VDLKrU','sdkRunId','DkWzx','tvUwN','zqBnB','sanitizeBrowserStackConfig','559055QNArFF','format','4LRkKsg','uVHMN','finishedMetadata','app','getGlobal','body','tests','uRxHW','requirePWModule','unhandledErrors','assign','user_killed','getNodeAgent','isBrowserstackInfra','notifyUpdate','APP_AUTOMATE_PRODUCTS','debug','./globals','AUTOMATE_PRODUCTS','657uQzZgU','osVersion','262ooYABq','POST','application/json','AUTOMATE','ENV_VAR','errorMessage','_buildHashedId','content-type','wGuCk','playwrightVersion','unknown','SDKTestSuccessful','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','getTurboScaleSessionsList','WapAR','QUMCY','Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20','getBuildLink','./ats/helper','./logger','getFrameworkVersion','QJiDU','framework','split','getUserName','killSignal','vUsXG','cExSI','IyTfV','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','eSGUf','buildName','fireFunnelTestEvent','push','cREnV','apply','Playwright','every','event_properties','2041776OiNZFu','nodeRequest','\x20response\x20-\x20','getPackageVersion','error','uWDXO','deviceName','source','version','browser','64840aRiQQy','\x20:\x20','24aKalpW','FUNNEL_INSTRUMENTATION_API_URL','../helpers/testhub/constants','./helper','util','object','keys','3736458gdsZab','API\x20Event\x20','VXDDi','forEach','4501590YlFddQ','getSessionsList','all','../bin/utils/constants','2144920BhAeBi','codeceptjs','length','LKcsD','undefined','dQQuC','getOptimalHubUrl','nodejs','AkYMO','config','browserVersion','aGRzg','globalException','zexJg','values','cXJZp'];a92_0x2232=function(){return _0x5cf44b;};return a92_0x2232();}(function(_0x3f850e,_0x40ae4d){const _0x14021b=a92_0xd129,_0x159707=_0x3f850e();while(!![]){try{const _0x3dffc1=parseInt(_0x14021b(0xbb))/0x1+-parseInt(_0x14021b(0xd2))/0x2*(-parseInt(_0x14021b(0xb3))/0x3)+-parseInt(_0x14021b(0xbd))/0x4*(parseInt(_0x14021b(0x99))/0x5)+parseInt(_0x14021b(0x82))/0x6+parseInt(_0x14021b(0xb5))/0x7*(-parseInt(_0x14021b(0x9d))/0x8)+-parseInt(_0x14021b(0xd0))/0x9*(-parseInt(_0x14021b(0x8c))/0xa)+parseInt(_0x14021b(0x95))/0xb*(-parseInt(_0x14021b(0x8e))/0xc);if(_0x3dffc1===_0x40ae4d)break;else _0x159707['push'](_0x159707['shift']());}catch(_0x1cfe58){_0x159707['push'](_0x159707['shift']());}}}(a92_0x2232,0x787c4));function a92_0xd129(_0x1858b6,_0x4ebded){const _0x22322d=a92_0x2232();return a92_0xd129=function(_0xd129c2,_0x5aeabd){_0xd129c2=_0xd129c2-0x70;let _0x52690f=_0x22322d[_0xd129c2];return _0x52690f;},a92_0xd129(_0x1858b6,_0x4ebded);}const os=require('os'),util=require(a92_0x10b230(0x92)),{getProductMap}=require('./testhub/utils'),logger=require(a92_0x10b230(0xe5))['winstonLogger'],constants=require(a92_0x10b230(0x9c)),testHubConstants=require(a92_0x10b230(0x90)),{getTransformPath}=require(a92_0x10b230(0xb2)),{FUNNEL_INSTRUMENTATION_API_URL}=require(a92_0x10b230(0x9c)),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a92_0x10b230(0x91)),PerformanceTester=require('./performance/performance-tester'),globals=require(a92_0x10b230(0xce)),{isTurboScaleSession}=require(a92_0x10b230(0xe4)),helper=require('./helper'),{isTestObservabilitySession}=require('./test-observability/utils');let unhandledErrors='';exports[a92_0x10b230(0x7b)]=async(_0x1531b1,_0x26b15d={},_0x324dab,_0x1314ce)=>{const _0x1adf16=a92_0x10b230,_0x4375fc={'IyTfV':function(_0x1f659c,_0x1dd17e){return _0x1f659c===_0x1dd17e;},'YAjPx':_0x1adf16(0x93),'ICZwo':function(_0x12f3aa,_0x4cc958){return _0x12f3aa>_0x4cc958;},'AkYMO':function(_0x41f358,_0xee06d1){return _0x41f358>_0xee06d1;},'uVHMN':_0x1adf16(0xc3),'zqBnB':function(_0x40c69d){return _0x40c69d();},'xtoOe':function(_0x2f01b9,_0x247fde){return _0x2f01b9==_0x247fde;},'QJiDU':_0x1adf16(0xb1),'wGuCk':_0x1adf16(0xa1),'ZThAg':function(_0x2660eb,_0x5a5c7c){return _0x2660eb===_0x5a5c7c;},'QUMCY':_0x1adf16(0x9e),'DkWzx':function(_0x1f6745,_0x5b1741){return _0x1f6745>_0x5b1741;},'qcXqx':function(_0x293549,_0x135d99){return _0x293549!==_0x135d99;},'cExSI':_0x1adf16(0x7f),'gXygx':function(_0x5b8287,_0x3fd183){return _0x5b8287===_0x3fd183;},'vUsXG':_0x1adf16(0x86),'LKcsD':function(_0x4a86ea,_0x5c0e78){return _0x4a86ea>_0x5c0e78;},'AxEhR':function(_0x28e821,_0x434fdb){return _0x28e821+_0x434fdb;},'VXDDi':_0x1adf16(0xde),'szGYi':_0x1adf16(0xd8),'cXJZp':function(_0x378a87,_0x58a4c1){return _0x378a87(_0x58a4c1);},'uRxHW':_0x1adf16(0xdc),'aGRzg':_0x1adf16(0xa4),'dQQuC':function(_0x45e311,_0x2ede0c){return _0x45e311===_0x2ede0c;},'WjSTA':_0x1adf16(0xdd),'tvUwN':'selenium-webdriver','eSGUf':_0x1adf16(0xd4),'uWDXO':_0x1adf16(0xd3)};let _0x41e58c=[];if(helper[_0x1adf16(0xca)]()&&_0x4375fc[_0x1adf16(0xb9)](isTestObservabilitySession))_0x41e58c=_0x324dab[_0x1adf16(0xc0)]?constants[_0x1adf16(0xcc)]:constants[_0x1adf16(0xcf)];else{if(_0x4375fc[_0x1adf16(0xb9)](isTestObservabilitySession))_0x41e58c=constants[_0x1adf16(0x78)];else helper[_0x1adf16(0xca)]()&&(_0x41e58c=_0x324dab[_0x1adf16(0xc0)]?constants['APP_AUTOMATE']:constants[_0x1adf16(0xd5)]);}let _0xd35053=_0x324dab['buildIdentifier'];if(_0x4375fc['xtoOe'](_0xd35053,null))_0xd35053=_0x4375fc[_0x1adf16(0x70)];else _0x4375fc[_0x1adf16(0x77)](_0xd35053,undefined)&&(_0xd35053=_0x4375fc[_0x1adf16(0xda)]);unhandledErrors&&_0x4375fc[_0x1adf16(0xa5)](unhandledErrors[_0x1adf16(0x9f)],0x0)&&(_0x26b15d[_0x1adf16(0xa9)]=unhandledErrors);global[_0x1adf16(0xb6)]&&(_0x26b15d[_0x1adf16(0xb6)]=global['sdkRunId']);try{if(_0x26b15d[_0x1adf16(0x86)]){if(_0x4375fc['ZThAg'](_0x1314ce,_0x4375fc[_0x1adf16(0xe1)])&&_0x4375fc[_0x1adf16(0xb7)](_0x26b15d[_0x1adf16(0x86)][_0x1adf16(0x9f)],0x0)){const _0x50e25a={};_0x50e25a['os']='',_0x50e25a['osVersion']='',_0x50e25a[_0x1adf16(0x8b)]='',_0x50e25a[_0x1adf16(0xa7)]='';const _0x3e1470=_0x50e25a;let _0x4e799b={};const _0x386144=_0x26b15d[_0x1adf16(0x86)];_0x4e799b=_0x386144['reduce']((_0xe483ee,_0x15e0ce)=>{for(const _0x22bf42 in _0x15e0ce){_0xe483ee[_0x22bf42]=_0x15e0ce[_0x22bf42];}return _0xe483ee;},{});const _0x916da6={};_0x916da6[_0x1adf16(0xc3)]=_0x4e799b,_0x26b15d[_0x1adf16(0x86)]=[Object[_0x1adf16(0xc7)]({},_0x3e1470,_0x916da6)];}else{let _0x2613ea=0x0;const _0x36edd3=_0x4375fc['qcXqx'](_0x1314ce,_0x4375fc[_0x1adf16(0x76)])?JSON['parse'](_0x26b15d[_0x1adf16(0x86)]):_0x26b15d[_0x1adf16(0x86)],_0xdac0e9=Object[_0x1adf16(0xab)](_0x36edd3);_0xdac0e9[_0x1adf16(0x98)](_0x525de4=>{const _0x9539bc=_0x1adf16;if(_0x4375fc[_0x9539bc(0x77)](typeof _0x525de4,_0x4375fc['YAjPx'])){const _0x55cffc=Object[_0x9539bc(0xab)](_0x525de4);!_0x55cffc[_0x9539bc(0x80)](_0x22090c=>_0x22090c===null||_0x22090c===undefined||_0x22090c==='')&&(_0x2613ea+=0x1);}});if(_0x4375fc['gXygx'](_0x2613ea,0x0))delete _0x26b15d[_0x4375fc['vUsXG']];else{const _0xfc490c=[];Object[_0x1adf16(0x94)](_0x36edd3)[_0x1adf16(0x98)](_0x4433e1=>{const _0x4bae6d=_0x1adf16,[_0x5795b7,_0x497ada,_0x744d62,_0x5c396a]=_0x4433e1[_0x4bae6d(0x72)](',\x20');let _0x53d853={};if(!_0x5c396a){const _0x948c19={};_0x948c19[_0x4bae6d(0x88)]=_0x5795b7,_0x948c19[_0x4bae6d(0xd1)]=_0x497ada,_0x948c19[_0x4bae6d(0x8b)]=_0x744d62,_0x53d853=_0x948c19;}else{const _0x5c663d={};_0x5c663d['os']=_0x5795b7,_0x5c663d[_0x4bae6d(0xd1)]=_0x497ada,_0x5c663d['browser']=_0x744d62,_0x5c663d[_0x4bae6d(0xa7)]=_0x5c396a,_0x53d853=_0x5c663d;}const _0x5576c3={},_0x38de85=_0x36edd3[_0x4433e1];Object[_0x4bae6d(0x94)](_0x38de85)[_0x4bae6d(0x98)](_0x4a2805=>{const _0x3b9047=_0x4bae6d;_0x4375fc['ICZwo'](_0x38de85[_0x4a2805][_0x3b9047(0x9f)],0x0)&&(_0x5576c3[_0x4a2805]=_0x38de85[_0x4a2805]);}),_0x4375fc[_0x4bae6d(0xa5)](Object[_0x4bae6d(0x94)](_0x5576c3)[_0x4bae6d(0x9f)],0x0)&&(_0x53d853[_0x4375fc[_0x4bae6d(0xbe)]]=_0x5576c3,_0xfc490c[_0x4bae6d(0x7c)](_0x53d853));}),_0x4375fc[_0x1adf16(0xa0)](_0xfc490c[_0x1adf16(0x9f)],0x0)?_0x26b15d[_0x1adf16(0x86)]=_0xfc490c:delete _0x26b15d[_0x4375fc['vUsXG']];}}}}catch(_0x1ea1d3){delete _0x26b15d[_0x4375fc[_0x1adf16(0x75)]],logger[_0x1adf16(0xcd)](_0x4375fc['AxEhR'](_0x4375fc[_0x1adf16(0x97)],_0x1ea1d3));}const _0x4b91c5={'userName':helper[_0x1adf16(0x73)](_0x324dab),'accessKey':helper[_0x1adf16(0xb0)](_0x324dab),'event_type':_0x1531b1,'detectedFramework':_0x1314ce,'buildHashedId':globals[_0x1adf16(0xc1)](_0x4375fc['szGYi']),'optimalHubUrl':helper[_0x1adf16(0xa3)](),'event_properties':{'testhub_uuid':process[_0x1adf16(0xae)][testHubConstants[_0x1adf16(0xd6)]['BROWSERSTACK_TESTHUB_UUID']]||'','product_map':_0x4375fc['cXJZp'](getProductMap,_0x324dab),'productMap':_0x4375fc[_0x1adf16(0xac)](getProductMap,_0x324dab),'language_framework':_0x324dab[_0x1adf16(0x89)]||_0x4375fc[_0x1adf16(0xc4)],'referrer':helper[_0x1adf16(0xc9)](_0x1314ce),'frameworkVersion':helper[_0x1adf16(0xe6)](_0x1314ce),'language':_0x4375fc[_0x1adf16(0xa8)],'product':_0x41e58c,'languageVersion':process[_0x1adf16(0x8a)],'buildName':_0x324dab[_0x1adf16(0x7a)]||_0x4375fc[_0x1adf16(0xda)],'buildIdentifier':_0xd35053,'os':os['type']()||_0x4375fc[_0x1adf16(0xc4)],'hostname':os['hostname']()||_0x4375fc[_0x1adf16(0xc4)],..._0x26b15d}};try{_0x4375fc[_0x1adf16(0xa2)](_0x1531b1,_0x4375fc[_0x1adf16(0xb4)])&&(_0x4b91c5[_0x1adf16(0x81)]['browserStackConfig']=helper[_0x1adf16(0xba)](_0x324dab)),_0x4375fc[_0x1adf16(0x77)](_0x1314ce,_0x4375fc[_0x1adf16(0x76)])?_0x4b91c5[_0x1adf16(0x81)][_0x1adf16(0xdb)]=helper[_0x1adf16(0xc5)][_0x1adf16(0x7e)](null,_0x4375fc[_0x1adf16(0xb9)](getTransformPath),!![]):_0x4b91c5[_0x1adf16(0x81)]['seleniumVersion']=helper[_0x1adf16(0x85)](_0x4375fc[_0x1adf16(0xb8)]);}catch(_0x5b27ca){logger[_0x1adf16(0xcd)]('Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20'+_0x5b27ca);}const _0x322662={};_0x322662[_0x1adf16(0xd9)]=_0x4375fc[_0x1adf16(0x79)];const _0x4f44e4={'headers':_0x322662,'body':_0x4b91c5,'auth':{'user':helper['getUserName'](_0x324dab),'pass':helper[_0x1adf16(0xb0)](_0x324dab)},'json':!![]};logger['debug']('Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20'+JSON['stringify'](_0x4f44e4[_0x1adf16(0xc2)]));try{const _0x1239e9=await helper[_0x1adf16(0x83)](_0x4375fc[_0x1adf16(0x87)],constants[_0x1adf16(0x8f)],_0x4f44e4,_0x324dab);logger[_0x1adf16(0xcd)](_0x1adf16(0x96)+_0x1531b1+_0x1adf16(0x84)+util[_0x1adf16(0xbc)]('%j',_0x1239e9));}catch(_0x88d295){logger['debug']('Error\x20in\x20firing\x20request\x20to\x20'+FUNNEL_INSTRUMENTATION_API_URL+_0x1adf16(0x8d)+util[_0x1adf16(0xbc)](_0x88d295));}},exports[a92_0x10b230(0xaf)]=async _0x1259ed=>{const _0x13b1f7=a92_0x10b230,_0x3a18ae={'WapAR':function(_0x260607){return _0x260607();},'QRQxI':_0x13b1f7(0xbf),'cREnV':_0x13b1f7(0xc8),'zexJg':function(_0xc82675,_0x1cda59){return _0xc82675(_0x1cda59);},'WTwGn':_0x13b1f7(0xdd),'anPwu':function(_0x128553,_0x2522af,_0x179d45){return _0x128553(_0x2522af,_0x179d45);},'JDhtZ':function(_0x356342,_0x20e054){return _0x356342+_0x20e054;},'YwgOA':_0x13b1f7(0xe2)};try{await _0x1259ed['stopPercy'](),_0x3a18ae[_0x13b1f7(0xe0)](printNudgeLocalNotSetError);const _0x27b855={};_0x27b855[_0x13b1f7(0x86)]=_0x1259ed[_0x13b1f7(0xd7)]?_0x1259ed['errorMessage']:'{}';const _0x314c9f=_0x27b855,_0x26d844=Object['assign']({},_0x314c9f);!!_0x1259ed[_0x13b1f7(0x74)]&&(_0x26d844[_0x3a18ae['QRQxI']]={'reason':_0x3a18ae[_0x13b1f7(0x7d)],'signal':_0x1259ed[_0x13b1f7(0x74)]});unhandledErrors=_0x1259ed[_0x13b1f7(0xc6)]['join']('\x0a');let _0x31e6ed,_0x5d4c44,_0x150fe2;_0x3a18ae[_0x13b1f7(0xaa)](isTurboScaleSession,_0x1259ed[_0x13b1f7(0xa6)])?([_0x31e6ed,_0x5d4c44]=await helper['getTurboScaleBuildLink'](_0x1259ed[_0x13b1f7(0xa6)]),[_0x150fe2]=await Promise[_0x13b1f7(0x9b)]([helper[_0x13b1f7(0xdf)](_0x31e6ed,_0x1259ed[_0x13b1f7(0xa6)]),exports['fireFunnelTestEvent'](_0x3a18ae['WTwGn'],_0x26d844,_0x1259ed[_0x13b1f7(0xa6)],_0x1259ed['framework'])])):([_0x31e6ed,_0x5d4c44]=await helper[_0x13b1f7(0xe3)](_0x1259ed[_0x13b1f7(0xa6)]),[_0x150fe2]=await Promise['all']([helper[_0x13b1f7(0x9a)](_0x31e6ed,_0x1259ed['config']),exports[_0x13b1f7(0x7b)](_0x3a18ae['WTwGn'],_0x26d844,_0x1259ed[_0x13b1f7(0xa6)],_0x1259ed[_0x13b1f7(0x71)])])),_0x150fe2&&await _0x3a18ae['anPwu'](generateCIArtifacts,_0x150fe2,_0x5d4c44),await helper[_0x13b1f7(0xad)](_0x1259ed['config']);}catch(_0xae549){logger[_0x13b1f7(0xcd)](_0x3a18ae['JDhtZ'](_0x3a18ae['YwgOA'],_0xae549));}helper[_0x13b1f7(0xcb)]();};
|
|
1
|
+
function a92_0x5f3c(_0x18b9b9,_0x140b0b){const _0x44e47b=a92_0x44e4();return a92_0x5f3c=function(_0x5f3c51,_0x57249b){_0x5f3c51=_0x5f3c51-0x9f;let _0x3f6486=_0x44e47b[_0x5f3c51];return _0x3f6486;},a92_0x5f3c(_0x18b9b9,_0x140b0b);}function a92_0x44e4(){const _0x262b6e=['debug','dprpJ','xRxgQ','KwuSx','keys','APP_AUTOMATE','buildName','isBrowserstackInfra','Htoyb','OWjxU','unknown','null','errorMessage','JyCjT','getSessionsList','../bin/playwright/reporter/pwUtils','1219946DQqcqp','getOptimalHubUrl','NfmZW','stringify','mwJPd','SDKTestSuccessful','application/json','./globals','app','version','./testhub/utils','getTurboScaleSessionsList','getNodeAgent','sanitizeBrowserStackConfig','browserStackConfig','./test-observability/utils','POST','1688328leZWFr','body','browser','event_properties','globalException','JDgvX','getPackageVersion','FBsFP','osVersion','nodejs','getBuildLink','user_killed','./performance/performance-tester','apply','nWwdX','11610OhmeLG','./helper','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','push','dpqws','OTwYV','getAccessKey','length','742590NkFmeK','vfelU','Error\x20in\x20firing\x20request\x20to\x20','object','DasqG','rBtTp','\x20:\x20','UjyWn','aRvYP','uRGVw','sdkRunId','all','ErVWC','mlOGM','2573444PJIiLk','../helpers/testhub/constants','forEach','format','assign','AUTOMATE_PRODUCTS','801744kRdkZN','getGlobal','getUserName','stopPercy','3grTgiI','ZaAgW','tUXGs','iKsqv','env','qVTkP','content-type','tests','586766FcPxbD','framework','requirePWModule','qBQNM','getTurboScaleBuildLink','error','join','nodeRequest','FUNNEL_INSTRUMENTATION_API_URL','./ats/helper','fireFunnelTestEvent','_buildHashedId','API\x20Event\x20','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','AUTOMATE','\x20response\x20-\x20','sendLogs','PUZWo','values','browserVersion','Playwright','selenium-webdriver','source','./logger','unhandledErrors','../bin/utils/constants','lRWKV','config','getFrameworkVersion','undefined','bDZTj','1180rQKjZn'];a92_0x44e4=function(){return _0x262b6e;};return a92_0x44e4();}const a92_0x22514a=a92_0x5f3c;(function(_0x14a6bc,_0x303a1e){const _0x40e5e9=a92_0x5f3c,_0x2fccd0=_0x14a6bc();while(!![]){try{const _0x474334=-parseInt(_0x40e5e9(0xdb))/0x1+parseInt(_0x40e5e9(0xcf))/0x2+-parseInt(_0x40e5e9(0xd3))/0x3*(-parseInt(_0x40e5e9(0xc9))/0x4)+parseInt(_0x40e5e9(0xfa))/0x5*(parseInt(_0x40e5e9(0xb3))/0x6)+-parseInt(_0x40e5e9(0x10b))/0x7+-parseInt(_0x40e5e9(0xa4))/0x8+-parseInt(_0x40e5e9(0xbb))/0x9;if(_0x474334===_0x303a1e)break;else _0x2fccd0['push'](_0x2fccd0['shift']());}catch(_0x1406a1){_0x2fccd0['push'](_0x2fccd0['shift']());}}}(a92_0x44e4,0x6cf5a));const os=require('os'),util=require('util'),{getProductMap}=require(a92_0x22514a(0x115)),logger=require(a92_0x22514a(0xf2))['winstonLogger'],constants=require(a92_0x22514a(0xf4)),testHubConstants=require(a92_0x22514a(0xca)),{getTransformPath}=require(a92_0x22514a(0x10a)),{FUNNEL_INSTRUMENTATION_API_URL}=require(a92_0x22514a(0xf4)),{generateCIArtifacts,printNudgeLocalNotSetError}=require('./helper'),PerformanceTester=require(a92_0x22514a(0xb0)),globals=require(a92_0x22514a(0x112)),{isTurboScaleSession}=require(a92_0x22514a(0xe4)),helper=require(a92_0x22514a(0xb4)),{isTestObservabilitySession}=require(a92_0x22514a(0xa2));let unhandledErrors='';exports[a92_0x22514a(0xe5)]=async(_0x4911a6,_0x1bb0aa={},_0x5dd700,_0x827db8)=>{const _0xf98b2d=a92_0x22514a,_0x41717e={'JDgvX':function(_0xb8afbb,_0x236a48){return _0xb8afbb===_0x236a48;},'xRxgQ':_0xf98b2d(0xbe),'vfelU':function(_0x439ff5,_0x370de9){return _0x439ff5>_0x370de9;},'ErVWC':_0xf98b2d(0xda),'aRvYP':function(_0x34bbc9){return _0x34bbc9();},'OTwYV':function(_0x554d21,_0x49441a){return _0x554d21==_0x49441a;},'Htoyb':_0xf98b2d(0x106),'NfmZW':_0xf98b2d(0xf8),'eSuDJ':function(_0x36e987,_0x2589ae){return _0x36e987>_0x2589ae;},'qBQNM':'codeceptjs','mlOGM':function(_0xc31228,_0x47db5c){return _0xc31228!==_0x47db5c;},'uRGVw':_0xf98b2d(0xef),'ZaAgW':_0xf98b2d(0xe0),'DasqG':function(_0x4a4091,_0xa3ff38){return _0x4a4091>_0xa3ff38;},'bDZTj':function(_0x496a8b,_0x2644c4){return _0x496a8b+_0x2644c4;},'qgQkY':_0xf98b2d(0xe8),'EBdaK':_0xf98b2d(0xe6),'UjyWn':function(_0x38ec64,_0x534742){return _0x38ec64(_0x534742);},'mwJPd':function(_0x2e536b,_0x118327){return _0x2e536b(_0x118327);},'dprpJ':_0xf98b2d(0x105),'tUXGs':_0xf98b2d(0xad),'lRWKV':function(_0x38e814,_0x2ca956){return _0x38e814===_0x2ca956;},'iKsqv':_0xf98b2d(0x110),'nWwdX':function(_0x1d0d7c,_0x4b5637){return _0x1d0d7c===_0x4b5637;},'PUZWo':function(_0x22fb58){return _0x22fb58();},'rBtTp':_0xf98b2d(0xf0),'OWjxU':_0xf98b2d(0x111),'JkqQi':_0xf98b2d(0xa3)};let _0x536f2e=[];if(helper['isBrowserstackInfra']()&&_0x41717e[_0xf98b2d(0xc3)](isTestObservabilitySession))_0x536f2e=_0x5dd700[_0xf98b2d(0x113)]?constants['APP_AUTOMATE_PRODUCTS']:constants[_0xf98b2d(0xce)];else{if(_0x41717e[_0xf98b2d(0xc3)](isTestObservabilitySession))_0x536f2e=constants['PRODUCT_IF_NOT_BROWSERSTACK_INFRA'];else helper[_0xf98b2d(0x102)]()&&(_0x536f2e=_0x5dd700['app']?constants[_0xf98b2d(0x100)]:constants[_0xf98b2d(0xe9)]);}let _0x27216b=_0x5dd700['buildIdentifier'];if(_0x41717e[_0xf98b2d(0xb8)](_0x27216b,null))_0x27216b=_0x41717e[_0xf98b2d(0x103)];else _0x41717e[_0xf98b2d(0xa9)](_0x27216b,undefined)&&(_0x27216b=_0x41717e[_0xf98b2d(0x10d)]);unhandledErrors&&_0x41717e['eSuDJ'](unhandledErrors[_0xf98b2d(0xba)],0x0)&&(_0x1bb0aa[_0xf98b2d(0xa8)]=unhandledErrors);global[_0xf98b2d(0xc5)]&&(_0x1bb0aa[_0xf98b2d(0xc5)]=global[_0xf98b2d(0xc5)]);try{if(_0x1bb0aa[_0xf98b2d(0xe0)]){if(_0x41717e[_0xf98b2d(0xa9)](_0x827db8,_0x41717e[_0xf98b2d(0xde)])&&_0x41717e[_0xf98b2d(0xbc)](_0x1bb0aa[_0xf98b2d(0xe0)]['length'],0x0)){const _0x2cbb2b={};_0x2cbb2b['os']='',_0x2cbb2b['osVersion']='',_0x2cbb2b[_0xf98b2d(0xa6)]='',_0x2cbb2b[_0xf98b2d(0xee)]='';const _0x5b147b=_0x2cbb2b;let _0x34b52d={};const _0x4cd351=_0x1bb0aa[_0xf98b2d(0xe0)];_0x34b52d=_0x4cd351['reduce']((_0x375215,_0xaba7be)=>{for(const _0x505ccd in _0xaba7be){_0x375215[_0x505ccd]=_0xaba7be[_0x505ccd];}return _0x375215;},{});const _0x52284c={};_0x52284c[_0xf98b2d(0xda)]=_0x34b52d,_0x1bb0aa[_0xf98b2d(0xe0)]=[Object[_0xf98b2d(0xcd)]({},_0x5b147b,_0x52284c)];}else{let _0x22b379=0x0;const _0x3ded9b=_0x41717e[_0xf98b2d(0xc8)](_0x827db8,_0x41717e[_0xf98b2d(0xc4)])?JSON['parse'](_0x1bb0aa[_0xf98b2d(0xe0)]):_0x1bb0aa[_0xf98b2d(0xe0)],_0x204434=Object[_0xf98b2d(0xed)](_0x3ded9b);_0x204434[_0xf98b2d(0xcb)](_0x4c7b82=>{const _0x444873=_0xf98b2d;if(_0x41717e[_0x444873(0xa9)](typeof _0x4c7b82,_0x41717e[_0x444873(0xfd)])){const _0x57e735=Object[_0x444873(0xed)](_0x4c7b82);!_0x57e735['every'](_0x264467=>_0x264467===null||_0x264467===undefined||_0x264467==='')&&(_0x22b379+=0x1);}});if(_0x41717e[_0xf98b2d(0xa9)](_0x22b379,0x0))delete _0x1bb0aa[_0x41717e['ZaAgW']];else{const _0x39e586=[];Object[_0xf98b2d(0xff)](_0x3ded9b)['forEach'](_0x591bbe=>{const _0x383677=_0xf98b2d,_0xb876c9={'dpqws':function(_0x102357,_0x18e585){const _0x27f632=a92_0x5f3c;return _0x41717e[_0x27f632(0xbc)](_0x102357,_0x18e585);}},[_0xc1f8ad,_0x11b768,_0x31f7f5,_0x32d80e]=_0x591bbe['split'](',\x20');let _0x177df3={};if(!_0x32d80e){const _0x549499={};_0x549499['deviceName']=_0xc1f8ad,_0x549499[_0x383677(0xac)]=_0x11b768,_0x549499['browser']=_0x31f7f5,_0x177df3=_0x549499;}else{const _0x3c4616={};_0x3c4616['os']=_0xc1f8ad,_0x3c4616[_0x383677(0xac)]=_0x11b768,_0x3c4616[_0x383677(0xa6)]=_0x31f7f5,_0x3c4616['browserVersion']=_0x32d80e,_0x177df3=_0x3c4616;}const _0x121393={},_0x4d5b15=_0x3ded9b[_0x591bbe];Object['keys'](_0x4d5b15)['forEach'](_0x48bcad=>{const _0x5e80ac=_0x383677;_0xb876c9[_0x5e80ac(0xb7)](_0x4d5b15[_0x48bcad][_0x5e80ac(0xba)],0x0)&&(_0x121393[_0x48bcad]=_0x4d5b15[_0x48bcad]);}),_0x41717e[_0x383677(0xbc)](Object[_0x383677(0xff)](_0x121393)[_0x383677(0xba)],0x0)&&(_0x177df3[_0x41717e[_0x383677(0xc7)]]=_0x121393,_0x39e586[_0x383677(0xb6)](_0x177df3));}),_0x41717e[_0xf98b2d(0xbf)](_0x39e586['length'],0x0)?_0x1bb0aa[_0xf98b2d(0xe0)]=_0x39e586:delete _0x1bb0aa[_0x41717e[_0xf98b2d(0xd4)]];}}}}catch(_0x539146){delete _0x1bb0aa[_0x41717e[_0xf98b2d(0xd4)]],logger['debug'](_0x41717e[_0xf98b2d(0xf9)](_0x41717e['qgQkY'],_0x539146));}const _0x4f6fef={'userName':helper[_0xf98b2d(0xd1)](_0x5dd700),'accessKey':helper[_0xf98b2d(0xb9)](_0x5dd700),'event_type':_0x4911a6,'detectedFramework':_0x827db8,'buildHashedId':globals[_0xf98b2d(0xd0)](_0x41717e['EBdaK']),'optimalHubUrl':helper[_0xf98b2d(0x10c)](),'event_properties':{'testhub_uuid':process[_0xf98b2d(0xd7)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']]||'','product_map':_0x41717e[_0xf98b2d(0xc2)](getProductMap,_0x5dd700),'productMap':_0x41717e[_0xf98b2d(0x10f)](getProductMap,_0x5dd700),'language_framework':_0x5dd700[_0xf98b2d(0xf1)]||_0x41717e[_0xf98b2d(0xfc)],'referrer':helper[_0xf98b2d(0x9f)](_0x827db8),'frameworkVersion':helper[_0xf98b2d(0xf7)](_0x827db8),'language':_0x41717e[_0xf98b2d(0xd5)],'product':_0x536f2e,'languageVersion':process[_0xf98b2d(0x114)],'buildName':_0x5dd700[_0xf98b2d(0x101)]||_0x41717e[_0xf98b2d(0x10d)],'buildIdentifier':_0x27216b,'os':os['type']()||_0x41717e[_0xf98b2d(0xfc)],'hostname':os['hostname']()||_0x41717e[_0xf98b2d(0xfc)],..._0x1bb0aa}};try{_0x41717e[_0xf98b2d(0xf5)](_0x4911a6,_0x41717e[_0xf98b2d(0xd6)])&&(_0x4f6fef[_0xf98b2d(0xa7)][_0xf98b2d(0xa1)]=helper[_0xf98b2d(0xa0)](_0x5dd700)),_0x41717e[_0xf98b2d(0xb2)](_0x827db8,_0x41717e['uRGVw'])?_0x4f6fef[_0xf98b2d(0xa7)]['playwrightVersion']=helper[_0xf98b2d(0xdd)][_0xf98b2d(0xb1)](null,_0x41717e[_0xf98b2d(0xec)](getTransformPath),!![]):_0x4f6fef['event_properties']['seleniumVersion']=helper[_0xf98b2d(0xaa)](_0x41717e[_0xf98b2d(0xc0)]);}catch(_0x43525b){logger[_0xf98b2d(0xfb)]('Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20'+_0x43525b);}const _0x5570d8={};_0x5570d8[_0xf98b2d(0xd9)]=_0x41717e[_0xf98b2d(0x104)];const _0x48819a={'headers':_0x5570d8,'body':_0x4f6fef,'auth':{'user':helper['getUserName'](_0x5dd700),'pass':helper[_0xf98b2d(0xb9)](_0x5dd700)},'json':!![]};logger['debug'](_0xf98b2d(0xb5)+JSON[_0xf98b2d(0x10e)](_0x48819a[_0xf98b2d(0xa5)]));try{const _0x146b0b=await helper[_0xf98b2d(0xe2)](_0x41717e['JkqQi'],constants[_0xf98b2d(0xe3)],_0x48819a,_0x5dd700);logger[_0xf98b2d(0xfb)](_0xf98b2d(0xe7)+_0x4911a6+_0xf98b2d(0xea)+util[_0xf98b2d(0xcc)]('%j',_0x146b0b));}catch(_0x4db076){logger[_0xf98b2d(0xfb)](_0xf98b2d(0xbd)+FUNNEL_INSTRUMENTATION_API_URL+_0xf98b2d(0xc1)+util[_0xf98b2d(0xcc)](_0x4db076));}},exports['finalExecution']=async _0x376318=>{const _0x2df807=a92_0x22514a,_0x5bc3de={'FBsFP':function(_0x309c17){return _0x309c17();},'lidWY':'finishedMetadata','bbDZA':_0x2df807(0xaf),'PYxqg':function(_0x57768f,_0x3d9b04){return _0x57768f(_0x3d9b04);},'qVTkP':_0x2df807(0x110),'kTtmd':function(_0x1ba404,_0x1b2921,_0x55cf92){return _0x1ba404(_0x1b2921,_0x55cf92);},'JyCjT':function(_0x107286,_0x490fe9){return _0x107286+_0x490fe9;},'KwuSx':'Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20'};try{await _0x376318[_0x2df807(0xd2)](),_0x5bc3de[_0x2df807(0xab)](printNudgeLocalNotSetError);const _0x551c2a={};_0x551c2a['error']=_0x376318[_0x2df807(0x107)]?_0x376318[_0x2df807(0x107)]:'{}';const _0x592d7d=_0x551c2a,_0x13875b=Object[_0x2df807(0xcd)]({},_0x592d7d);!!_0x376318['killSignal']&&(_0x13875b[_0x5bc3de['lidWY']]={'reason':_0x5bc3de['bbDZA'],'signal':_0x376318['killSignal']});unhandledErrors=_0x376318[_0x2df807(0xf3)][_0x2df807(0xe1)]('\x0a');let _0x5641a2,_0xab111e,_0x27b08d;_0x5bc3de['PYxqg'](isTurboScaleSession,_0x376318[_0x2df807(0xf6)])?([_0x5641a2,_0xab111e]=await helper[_0x2df807(0xdf)](_0x376318[_0x2df807(0xf6)]),[_0x27b08d]=await Promise['all']([helper[_0x2df807(0x116)](_0x5641a2,_0x376318[_0x2df807(0xf6)]),exports[_0x2df807(0xe5)](_0x5bc3de['qVTkP'],_0x13875b,_0x376318['config'],_0x376318['framework'])])):([_0x5641a2,_0xab111e]=await helper[_0x2df807(0xae)](_0x376318['config']),[_0x27b08d]=await Promise[_0x2df807(0xc6)]([helper[_0x2df807(0x109)](_0x5641a2,_0x376318[_0x2df807(0xf6)]),exports[_0x2df807(0xe5)](_0x5bc3de[_0x2df807(0xd8)],_0x13875b,_0x376318[_0x2df807(0xf6)],_0x376318[_0x2df807(0xdc)])])),_0x27b08d&&await _0x5bc3de['kTtmd'](generateCIArtifacts,_0x27b08d,_0xab111e),await helper[_0x2df807(0xeb)](_0x376318['config']);}catch(_0x428146){logger[_0x2df807(0xfb)](_0x5bc3de[_0x2df807(0x108)](_0x5bc3de[_0x2df807(0xfe)],_0x428146));}helper['notifyUpdate']();};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a93_0x283166=a93_0xf2c1;function a93_0xf2c1(_0xbf07ce,_0x5d7f6b){var _0x2d98ee=a93_0x2d98();return a93_0xf2c1=function(_0xf2c1cb,_0x29fa6f){_0xf2c1cb=_0xf2c1cb-0x1f4;var _0xe6fa7e=_0x2d98ee[_0xf2c1cb];return _0xe6fa7e;},a93_0xf2c1(_0xbf07ce,_0x5d7f6b);}function a93_0x2d98(){var _0x2a1ffb=['tuKTS','IWjGI','timezone','ZzqwG','browserstack.overridelocalInfo.localIdentifier','SIxZr','BuZzE','nDBAs','playwrightVersion','XItdx','XgTKb','overridelocalInfo.localIdentifier','sYJVh','TVIlW','consoleLogs','vPXak','3064344EtRFvW','browserstack.telemetryLogs','QJrlv','browserstack.networkProfile','realMobile','browserstack.appium_version','deviceOrientation','testhubBuildUuid','accessibility','EsGRZ','accessibilityOptions.scannerProcessingTimeout','useW3c','SmvKy','MUtux','accessKey','browserstack.appiumLogs','browserstack.accessibilityOptions.includeIssueType.needsReview','mfTFA','wsLocalSupport','device','3tOTBuy','BpMFV','Krsht','browserstack.accessibility','xuLmP','localIdentifier','deviceName','W3CMapping','browserstackSDK','2650365DanysV','browserstack.testhubBuildUuid','browserstack.customNetwork','1484dOpAGK','accessibilityOptions.includeIssueType.bestPractice','bfcache','enableSim','project','xEmEz','browserstack.user','UtZvL','MiYYO','VrTtr','resolution','Uipsa','aRpQm','browserstack.video','browserstack.browserstackSDK','name','browserstack.key','buildProductMap','browserstack.accessibilityOptions.authToken','YHIMh','projectName','7sahvlf','browserstack.accessibilityOptions.scannerVersion','browserstack.console','MtRwC','userName','browserVersion','browserstack.maskCommands','networkLogs','vpEGV','XyJOb','local','KsvQJ','browserstack.wsLocalSupport','browserstack.overridelocalInfo.userAuthToken','dhTCT','mzWpx','tkYIE','qlwgR','browserstack.maskBasicAuth','sessionName','browserstack.timezone','browserstack.uploadMedia','aFKqR','bxdEX','browser_version','3241326UPrprq','debug','browserstack.playwrightVersion','cXsMA','build','KufIv','ZavmQ','osVZJ','appiumLogs','Nyqdz','ZHNnF','browserstack.enableSim','browserstack.autoWait','networkLogsOptions','8744NqrNtv','disableCorsRestrictions','BtKkH','geoLocation','86974iCosWP','browserstack.networkLogsOptions','accessibilityOptions.wcagVersion','IvLGI','accessibilityOptions.scannerVersion','30DIJQJl','browserstack.disableCorsRestrictions','browserstack.hosts','browserstack.networkLogs','browserstack.accessibilityOptions.scannerProcessingTimeout','browser','QjnXU','uploadMedia','appiumVersion','os_version','customNetwork','zyidF','3540FmkQZj','IdZvq','788760OhmpRg','idleTimeout','tpEZy','osVersion','hosts','UBhtd','NyYWw','trmYQ'];a93_0x2d98=function(){return _0x2a1ffb;};return a93_0x2d98();}(function(_0x1348bc,_0x3a094f){var _0x57c8d1=a93_0xf2c1,_0x530b02=_0x1348bc();while(!![]){try{var _0x27b3ac=parseInt(_0x57c8d1(0x25b))/0x1*(parseInt(_0x57c8d1(0x1fb))/0x2)+-parseInt(_0x57c8d1(0x23a))/0x3*(parseInt(_0x57c8d1(0x226))/0x4)+parseInt(_0x57c8d1(0x200))/0x5*(parseInt(_0x57c8d1(0x20c))/0x6)+parseInt(_0x57c8d1(0x246))/0x7*(parseInt(_0x57c8d1(0x1f7))/0x8)+parseInt(_0x57c8d1(0x243))/0x9+parseInt(_0x57c8d1(0x20e))/0xa+parseInt(_0x57c8d1(0x274))/0xb;if(_0x27b3ac===_0x3a094f)break;else _0x530b02['push'](_0x530b02['shift']());}catch(_0xf317dd){_0x530b02['push'](_0x530b02['shift']());}}}(a93_0x2d98,0x6bd06),exports[a93_0x283166(0x241)]=()=>{var _0x379232=a93_0x283166,_0x3da320={};_0x3da320[_0x379232(0x23e)]=_0x379232(0x25f),_0x3da320[_0x379232(0x251)]=_0x379232(0x234),_0x3da320[_0x379232(0x215)]=_0x379232(0x211),_0x3da320['MdVCS']=_0x379232(0x205),_0x3da320[_0x379232(0x263)]=_0x379232(0x260),_0x3da320[_0x379232(0x24e)]=_0x379232(0x231),_0x3da320[_0x379232(0x216)]=_0x379232(0x25a),_0x3da320[_0x379232(0x217)]='buildName',_0x3da320[_0x379232(0x20b)]=_0x379232(0x26e),_0x3da320['YHIMh']=_0x379232(0x265),_0x3da320['TVIlW']=_0x379232(0x23f),_0x3da320['BuZzE']=_0x379232(0x275),_0x3da320['UBhtd']=_0x379232(0x224),_0x3da320[_0x379232(0x237)]=_0x379232(0x262),_0x3da320[_0x379232(0x21d)]=_0x379232(0x1f6),_0x3da320[_0x379232(0x206)]=_0x379232(0x27c),_0x3da320[_0x379232(0x264)]='video',_0x3da320['IvLGI']='seleniumLogs',_0x3da320[_0x379232(0x271)]='telemetryLogs',_0x3da320[_0x379232(0x222)]=_0x379232(0x1fa),_0x3da320[_0x379232(0x225)]=_0x379232(0x218),_0x3da320['aRpQm']=_0x379232(0x250),_0x3da320['fTtYZ']='seleniumVersion',_0x3da320[_0x379232(0x22f)]='maskCommands',_0x3da320['qlwgR']=_0x379232(0x20f),_0x3da320[_0x379232(0x277)]='maskBasicAuth',_0x3da320[_0x379232(0x27b)]='autoWait',_0x3da320['xEmEz']=_0x379232(0x212),_0x3da320[_0x379232(0x210)]=_0x379232(0x248),_0x3da320[_0x379232(0x27e)]=_0x379232(0x238),_0x3da320[_0x379232(0x21b)]=_0x379232(0x1f8),_0x3da320[_0x379232(0x26b)]=_0x379232(0x240),_0x3da320[_0x379232(0x228)]=_0x379232(0x22a),_0x3da320[_0x379232(0x27a)]=_0x379232(0x208),_0x3da320[_0x379232(0x232)]='deviceOrientation',_0x3da320[_0x379232(0x26a)]=_0x379232(0x20a),_0x3da320['XgTKb']='networkProfile',_0x3da320[_0x379232(0x219)]='buildIdentifier',_0x3da320['XItdx']=_0x379232(0x242),_0x3da320[_0x379232(0x272)]=_0x379232(0x22e),_0x3da320[_0x379232(0x214)]=_0x379232(0x257),_0x3da320[_0x379232(0x25e)]=_0x379232(0x22d),_0x3da320[_0x379232(0x20d)]=_0x379232(0x1fd),_0x3da320[_0x379232(0x23c)]=_0x379232(0x1ff),_0x3da320[_0x379232(0x279)]=_0x379232(0x230),_0x3da320[_0x379232(0x27d)]=_0x379232(0x247),_0x3da320['sgyhP']='accessibilityOptions.includeIssueType.needsReview',_0x3da320[_0x379232(0x1f9)]='accessibilityOptions.authToken',_0x3da320[_0x379232(0x24d)]=_0x379232(0x207),_0x3da320[_0x379232(0x23b)]=_0x379232(0x249),_0x3da320[_0x379232(0x24f)]='simOptions',_0x3da320[_0x379232(0x266)]=_0x379232(0x21e),_0x3da320[_0x379232(0x269)]='overridelocalInfo.userAuthToken',_0x3da320[_0x379232(0x233)]=_0x379232(0x221);var _0x2c5b30=_0x3da320,_0x461e4a={};return _0x461e4a[_0x379232(0x24c)]=_0x2c5b30[_0x379232(0x23e)],_0x461e4a[_0x379232(0x256)]=_0x2c5b30[_0x379232(0x251)],_0x461e4a['os']='os',_0x461e4a[_0x379232(0x209)]=_0x2c5b30[_0x379232(0x215)],_0x461e4a[_0x379232(0x205)]=_0x2c5b30['MdVCS'],_0x461e4a[_0x379232(0x273)]=_0x2c5b30[_0x379232(0x263)],_0x461e4a['browserstack.use_w3c']=_0x2c5b30[_0x379232(0x24e)],_0x461e4a[_0x379232(0x24a)]=_0x2c5b30[_0x379232(0x216)],_0x461e4a[_0x379232(0x278)]=_0x2c5b30[_0x379232(0x217)],_0x461e4a[_0x379232(0x255)]=_0x2c5b30['zyidF'],_0x461e4a['browserstack.local']=_0x2c5b30[_0x379232(0x259)],_0x461e4a['browserstack.localIdentifier']=_0x2c5b30[_0x379232(0x223)],_0x461e4a['browserstack.debug']=_0x2c5b30[_0x379232(0x21c)],_0x461e4a[_0x379232(0x25d)]=_0x2c5b30[_0x379232(0x213)],_0x461e4a[_0x379232(0x203)]=_0x2c5b30[_0x379232(0x237)],_0x461e4a[_0x379232(0x1fc)]=_0x2c5b30[_0x379232(0x21d)],_0x461e4a[_0x379232(0x235)]=_0x2c5b30[_0x379232(0x206)],_0x461e4a[_0x379232(0x253)]=_0x2c5b30[_0x379232(0x264)],_0x461e4a['browserstack.seleniumLogs']=_0x2c5b30[_0x379232(0x1fe)],_0x461e4a[_0x379232(0x227)]=_0x2c5b30['aFKqR'],_0x461e4a['browserstack.geoLocation']=_0x2c5b30['sYJVh'],_0x461e4a[_0x379232(0x26f)]=_0x2c5b30['vPXak'],_0x461e4a['resolution']=_0x2c5b30[_0x379232(0x252)],_0x461e4a['browserstack.selenium_version']=_0x2c5b30['fTtYZ'],_0x461e4a[_0x379232(0x261)]=_0x2c5b30[_0x379232(0x22f)],_0x461e4a['browserstack.idleTimeout']=_0x2c5b30[_0x379232(0x26c)],_0x461e4a[_0x379232(0x26d)]=_0x2c5b30[_0x379232(0x277)],_0x461e4a[_0x379232(0x1f5)]=_0x2c5b30[_0x379232(0x27b)],_0x461e4a[_0x379232(0x202)]=_0x2c5b30[_0x379232(0x24b)],_0x461e4a['browserstack.bfcache']=_0x2c5b30[_0x379232(0x210)],_0x461e4a[_0x379232(0x267)]=_0x2c5b30[_0x379232(0x27e)],_0x461e4a[_0x379232(0x201)]=_0x2c5b30[_0x379232(0x21b)],_0x461e4a[_0x379232(0x239)]=_0x2c5b30[_0x379232(0x26b)],_0x461e4a[_0x379232(0x22a)]=_0x2c5b30[_0x379232(0x228)],_0x461e4a[_0x379232(0x22b)]=_0x2c5b30[_0x379232(0x27a)],_0x461e4a[_0x379232(0x22c)]=_0x2c5b30[_0x379232(0x232)],_0x461e4a[_0x379232(0x245)]=_0x2c5b30[_0x379232(0x26a)],_0x461e4a[_0x379232(0x229)]=_0x2c5b30[_0x379232(0x220)],_0x461e4a['browserstack.buildIdentifier']=_0x2c5b30[_0x379232(0x219)],_0x461e4a[_0x379232(0x254)]=_0x2c5b30[_0x379232(0x21f)],_0x461e4a[_0x379232(0x23d)]=_0x2c5b30['bxdEX'],_0x461e4a['browserstack.buildProductMap']=_0x2c5b30[_0x379232(0x214)],_0x461e4a[_0x379232(0x244)]=_0x2c5b30[_0x379232(0x25e)],_0x461e4a['browserstack.accessibilityOptions.wcagVersion']=_0x2c5b30[_0x379232(0x20d)],_0x461e4a[_0x379232(0x25c)]=_0x2c5b30[_0x379232(0x23c)],_0x461e4a[_0x379232(0x204)]=_0x2c5b30[_0x379232(0x279)],_0x461e4a['browserstack.accessibilityOptions.includeIssueType.bestPractice']=_0x2c5b30[_0x379232(0x27d)],_0x461e4a[_0x379232(0x236)]=_0x2c5b30['sgyhP'],_0x461e4a[_0x379232(0x258)]=_0x2c5b30[_0x379232(0x1f9)],_0x461e4a[_0x379232(0x270)]=_0x2c5b30[_0x379232(0x24d)],_0x461e4a[_0x379232(0x1f4)]=_0x2c5b30[_0x379232(0x23b)],_0x461e4a['browserstack.simOptions']=_0x2c5b30[_0x379232(0x24f)],_0x461e4a[_0x379232(0x276)]=_0x2c5b30['KsvQJ'],_0x461e4a[_0x379232(0x268)]=_0x2c5b30[_0x379232(0x269)],_0x461e4a[_0x379232(0x21a)]=_0x2c5b30[_0x379232(0x233)],_0x461e4a;});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a94_0x23ae26=a94_0x6897;(function(_0x491be0,_0x8c2eca){const _0x3c1318=a94_0x6897,_0x4e8956=_0x491be0();while(!![]){try{const _0x4d8c8d=-parseInt(_0x3c1318(0xcb))/0x1+-parseInt(_0x3c1318(0xba))/0x2+parseInt(_0x3c1318(0xde))/0x3+parseInt(_0x3c1318(0xca))/0x4*(parseInt(_0x3c1318(0xe7))/0x5)+parseInt(_0x3c1318(0xdd))/0x6*(parseInt(_0x3c1318(0xd2))/0x7)+parseInt(_0x3c1318(0xcd))/0x8+parseInt(_0x3c1318(0xf9))/0x9*(-parseInt(_0x3c1318(0xc2))/0xa);if(_0x4d8c8d===_0x8c2eca)break;else _0x4e8956['push'](_0x4e8956['shift']());}catch(_0x6d9c62){_0x4e8956['push'](_0x4e8956['shift']());}}}(a94_0x458d,0xa6e20));function a94_0x6897(_0x1f1b58,_0x1bd242){const _0x458d4c=a94_0x458d();return a94_0x6897=function(_0x68978,_0x2bc9f5){_0x68978=_0x68978-0xb8;let _0x22d578=_0x458d4c[_0x68978];return _0x22d578;},a94_0x6897(_0x1f1b58,_0x1bd242);}const url=require(a94_0x23ae26(0xc1)),util=require(a94_0x23ae26(0xd3)),helper=require(a94_0x23ae26(0xc6)),logger=require('./helpers/logger')[a94_0x23ae26(0xdb)],constants=require('./bin/utils/constants');function a94_0x458d(){const _0x59f87b=['fromEntries','jMUOT','hubs','433066RzyQEG','sort','latency','path','iQnQC','Qodud','/wd/hub','url','4056290ONchSj','YqJhZ','ZizJG','format','./helpers/helper','https://','HUB\x20URL\x20SET\x20TO\x20-\x20','all','68yQwMTO','932498RiRQhs','Execution\x20time\x20for\x20','9688mjzpew','WXLCy','nextHubs','xSJiA','\x20HUB\x20-\x20','3352916FCYMMw','util','hostname','parse','https://hub.browserstack.com','KuSuW','GET','findLatency','CgkCm','winstonLogger','epARe','12yRuYFT','2712297tjKxBG','CANNOT\x20ALLOCATE\x20NEAREST\x20HUB\x20-\x20','tJvMD','rxhcb','hubUrl','nodeRequest','newHubUrl','keys','debug','229575cpTUbe','HWewl','zwAex','getRequestOptions','ERROR\x20IN\x20FINDING\x20LATENCY\x20FOR\x20','FKGvo','ERROR\x20IN\x20GETTING\x20RESPONSE\x20FROM\x20NEXT\x20HUBS:\x20','then','catch','DxbLC','pathname','push','allocateHub','resolve','IzvVx','LDbTw','SkXdj','sVaOR','18NPmAVk','check','next_hubs'];a94_0x458d=function(){return _0x59f87b;};return a94_0x458d();}global[a94_0x23ae26(0xe4)]='',exports[a94_0x23ae26(0xea)]=_0x550dbb=>{const _0x40e58=a94_0x23ae26,_0x3cb25c={};_0x3cb25c['ZGanE']=function(_0x40b3cc,_0x35f3c4){return _0x40b3cc+_0x35f3c4;},_0x3cb25c[_0x40e58(0xd7)]='Invalid\x20new\x20HUB\x20URL:\x20';const _0xf63bef=_0x3cb25c,_0x2c56f4=url[_0x40e58(0xd5)](_0x550dbb);if(!_0x2c56f4[_0x40e58(0xd4)])throw new Error(_0xf63bef['ZGanE'](_0xf63bef[_0x40e58(0xd7)],_0x550dbb));return _0x2c56f4['search']=null,_0x2c56f4['hash']=null,_0x2c56f4[_0x40e58(0xbd)]=_0x2c56f4[_0x40e58(0xf1)],_0x2c56f4;},exports['updateHubUrl']=_0x48786d=>{const _0x3038ad=a94_0x23ae26;global[_0x3038ad(0xe4)]=_0x48786d;},exports[a94_0x23ae26(0xf3)]=_0x260001=>{const _0x1613ac=a94_0x23ae26,_0x13a26b={'epARe':function(_0x1b9342,_0x559392){return _0x1b9342+_0x559392;},'FKGvo':_0x1613ac(0xc0),'LDbTw':function(_0x4815a9){return _0x4815a9();},'ZizJG':function(_0x1bb298,_0x5b9e15){return _0x1bb298!=_0x5b9e15;},'xSJiA':function(_0x55c01c,_0x59ab10){return _0x55c01c!==_0x59ab10;},'YqJhZ':function(_0x44f296,_0x980d65){return _0x44f296+_0x980d65;},'DxbLC':_0x1613ac(0xc7),'xWzZs':function(_0x199e79){return _0x199e79();}};return new Promise(_0x54959d=>{const _0x1dc4af=_0x1613ac,_0x309c3b={'HWewl':function(_0x2cd65d,_0x399919){const _0x292d92=a94_0x6897;return _0x13a26b[_0x292d92(0xdc)](_0x2cd65d,_0x399919);},'SkXdj':_0x13a26b[_0x1dc4af(0xec)],'sVaOR':function(_0xd760d){const _0x9d6d49=_0x1dc4af;return _0x13a26b[_0x9d6d49(0xf6)](_0xd760d);},'zwAex':function(_0x4e6907,_0x48b8b7){const _0xc79ed8=_0x1dc4af;return _0x13a26b[_0xc79ed8(0xc4)](_0x4e6907,_0x48b8b7);},'WXLCy':function(_0x3645d7,_0x1015bc){const _0x523705=_0x1dc4af;return _0x13a26b[_0x523705(0xd0)](_0x3645d7,_0x1015bc);},'FdDSS':function(_0x2f98ce,_0x569e5e){const _0x322a7d=_0x1dc4af;return _0x13a26b[_0x322a7d(0xc3)](_0x2f98ce,_0x569e5e);},'RlYTW':_0x13a26b[_0x1dc4af(0xf0)],'tJvMD':function(_0x3b1b10){return _0x13a26b['xWzZs'](_0x3b1b10);}};Promise[_0x1dc4af(0xf4)](this[_0x1dc4af(0xcf)](_0x260001))['then'](_0x23f1fe=>{const _0x22c1f0=_0x1dc4af;logger[_0x22c1f0(0xe6)]('NEAREST\x20HUBS:\x20'+util[_0x22c1f0(0xc5)]('%j',_0x23f1fe));if(_0x309c3b[_0x22c1f0(0xe9)](_0x23f1fe,null)&&_0x309c3b[_0x22c1f0(0xce)](_0x23f1fe['length'],0x0)){const _0x266a96=[];for(const _0x41aee6 of _0x23f1fe){_0x266a96[_0x22c1f0(0xf2)](this[_0x22c1f0(0xd9)](_0x260001,_0x309c3b['FdDSS'](_0x309c3b['RlYTW'],_0x41aee6)));}Promise[_0x22c1f0(0xc9)](_0x266a96)[_0x22c1f0(0xee)](_0x567cc9=>{const _0x3e21ae=_0x22c1f0,_0x1fca66=Object[_0x3e21ae(0xfc)](_0x567cc9['map'](_0x124f78=>[_0x124f78[_0x3e21ae(0xe2)],_0x124f78[_0x3e21ae(0xbc)]])),_0x5a747e=Object[_0x3e21ae(0xfc)](Object['entries'](_0x1fca66)[_0x3e21ae(0xbb)](([,_0x587026],[,_0x309691])=>_0x587026-_0x309691)),_0x1db4d8=Object[_0x3e21ae(0xe5)](_0x5a747e)[0x0];constants[_0x3e21ae(0xe2)]=_0x309c3b[_0x3e21ae(0xe8)](_0x1db4d8,_0x309c3b[_0x3e21ae(0xf7)]),logger[_0x3e21ae(0xe6)](_0x3e21ae(0xc8)+_0x1db4d8),_0x309c3b[_0x3e21ae(0xf8)](_0x54959d);});}else _0x309c3b[_0x22c1f0(0xe0)](_0x54959d);})[_0x1dc4af(0xef)](_0x625d11=>{const _0xc443e=_0x1dc4af;logger['debug'](_0xc443e(0xdf)+_0x625d11),_0x309c3b['tJvMD'](_0x54959d);});});},exports[a94_0x23ae26(0xd9)]=async(_0x19e4cd,_0x2a1316)=>{const _0x432930=a94_0x23ae26,_0x43fd61={};_0x43fd61[_0x432930(0xb8)]=_0x432930(0xd8),_0x43fd61['iQnQC']=_0x432930(0xfa),_0x43fd61[_0x432930(0xe1)]=function(_0x5304dd,_0x1c51cd){return _0x5304dd-_0x1c51cd;};const _0x18d71e=_0x43fd61;try{const _0x350cfb=new Date();await helper[_0x432930(0xe3)](_0x18d71e[_0x432930(0xb8)],_0x18d71e[_0x432930(0xbe)],{},_0x19e4cd,_0x2a1316,0x1388);const _0x5cb742=_0x18d71e[_0x432930(0xe1)](new Date(),_0x350cfb);logger['debug'](_0x432930(0xcc)+_0x2a1316+'\x20is:\x20'+_0x5cb742+'ms');const _0x2d8d4b={};return _0x2d8d4b[_0x432930(0xe2)]=_0x2a1316,_0x2d8d4b[_0x432930(0xbc)]=_0x5cb742,_0x2d8d4b;}catch(_0x4d8757){return logger[_0x432930(0xe6)](_0x432930(0xeb)+_0x2a1316+_0x432930(0xd1)+_0x4d8757),{};}},exports[a94_0x23ae26(0xcf)]=async _0x44cc25=>{const _0x3312c3=a94_0x23ae26,_0x430583={};_0x430583[_0x3312c3(0xf5)]=_0x3312c3(0xd8),_0x430583['Qodud']=_0x3312c3(0xfb),_0x430583[_0x3312c3(0xda)]=_0x3312c3(0xd6);const _0x10dbf1=_0x430583;try{const _0x5807b3=await helper[_0x3312c3(0xe3)](_0x10dbf1[_0x3312c3(0xf5)],_0x10dbf1[_0x3312c3(0xbf)],{},_0x44cc25,_0x10dbf1['CgkCm'],0x1388),_0x51eb43=_0x5807b3['data'];return logger[_0x3312c3(0xe6)]('Response:\x20'+util[_0x3312c3(0xc5)]('%j',_0x51eb43)),_0x51eb43[_0x3312c3(0xb9)];}catch(_0xf5e45c){logger[_0x3312c3(0xe6)](_0x3312c3(0xed)+_0xf5e45c);}return null;};
|