browserstack-node-sdk 1.40.8 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/browserstack.pw.yml.sample +3 -3
- package/browserstack.yml.sample +3 -3
- 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/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x576bbb=a124_0x592e;function a124_0x592e(_0x1f90c0,_0x1702ae){const _0x38eb17=a124_0x38eb();return a124_0x592e=function(_0x592ec7,_0xeab093){_0x592ec7=_0x592ec7-0x10a;let _0x431bd5=_0x38eb17[_0x592ec7];return _0x431bd5;},a124_0x592e(_0x1f90c0,_0x1702ae);}(function(_0xb3df00,_0x33a72a){const _0x1e3b2d=a124_0x592e,_0x3be62d=_0xb3df00();while(!![]){try{const _0x13fe99=-parseInt(_0x1e3b2d(0x116))/0x1*(-parseInt(_0x1e3b2d(0x12a))/0x2)+-parseInt(_0x1e3b2d(0x12e))/0x3+-parseInt(_0x1e3b2d(0x10f))/0x4+parseInt(_0x1e3b2d(0x129))/0x5*(parseInt(_0x1e3b2d(0x130))/0x6)+parseInt(_0x1e3b2d(0x11a))/0x7*(parseInt(_0x1e3b2d(0x121))/0x8)+parseInt(_0x1e3b2d(0x137))/0x9+-parseInt(_0x1e3b2d(0x13f))/0xa*(-parseInt(_0x1e3b2d(0x136))/0xb);if(_0x13fe99===_0x33a72a)break;else _0x3be62d['push'](_0x3be62d['shift']());}catch(_0x2a9423){_0x3be62d['push'](_0x3be62d['shift']());}}}(a124_0x38eb,0xbc00a));const logger=require(a124_0x576bbb(0x11d))[a124_0x576bbb(0x124)],RequestUtils=require(a124_0x576bbb(0x145));function a124_0x38eb(){const _0x16c943=['splitTestsAPICallCount','[getOrderedTestFiles]\x20Response\x20from\x20result\x20URL:\x20',',\x20timeoutUrl:\x20','[processSplitTestsResponse]\x20timeout:\x20','10IHUomj','resultUrl','debug','stack','getSplitTestsAPICallCount','filePath','./requestUtils','defaultTimeout','timeout','processSplitTestsResponse','_getHostInfo','CqgRp',',\x20timeoutInterval:\x20','splitTests','BROWSERSTACK_TOTAL_NODE_COUNT','MAHMs','PbCss','1609136MNlFNm','JZovc','BROWSERSTACK_NODE_INDEX','YkpYc','totalmem','hostname','[getOrderedTestFiles]\x20Exception\x20in\x20fetching\x20ordered\x20test\x20files:\x20','65005hwXmSy','timeoutInterval','length','buildName','7sSRIjf','arch','tests','../logger','[getOrderedTestFiles]\x20Fetching\x20ordered\x20test\x20files','jqklT','SDzhC','1083736OHppsL','env','[splitTests]\x20Response\x20from\x20split\x20tests\x20API:\x20','winstonLogger','vYUei','map','projectName','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL:\x20','5uyCCPW','18NdSAHc','stringify','timeoutUrl','defaultTimeoutInterval','2592270dVbpjj','toString','3520974QcfEsz','lckWp','platform','\x20seconds.','[processSplitTestsResponse]\x20Processing\x20response:\x20','getSplitFiles','5771964CeGWSE','1839303Xgqhcu','body','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL\x20after\x20waiting\x20for\x20','config'];a124_0x38eb=function(){return _0x16c943;};return a124_0x38eb();}class TestOrderingServerHandler{constructor(_0x46bb49){const _0x3209ce=a124_0x576bbb;this[_0x3209ce(0x13a)]=_0x46bb49,this[_0x3209ce(0x13b)]=0x0,this[_0x3209ce(0x146)]=0x3c,this[_0x3209ce(0x12d)]=0x5;}[a124_0x576bbb(0x143)](){const _0x42f247=a124_0x576bbb;return this[_0x42f247(0x13b)];}[a124_0x576bbb(0x148)](_0x1d4b27){const _0x287910=a124_0x576bbb,_0x358a49={};_0x358a49[_0x287910(0x125)]='[processSplitTestsResponse]\x20Received\x20null\x20value(s)\x20for\x20some\x20attributes\x20in\x20split\x20tests\x20API\x20response';const _0x4cf5d2=_0x358a49;if(!_0x1d4b27)return null;const _0x2a6f52={};return _0x2a6f52['timeout']=_0x1d4b27[_0x287910(0x147)]||this[_0x287910(0x146)],_0x2a6f52['timeoutInterval']=_0x1d4b27['timeoutInterval']||this[_0x287910(0x12d)],_0x2a6f52[_0x287910(0x140)]=_0x1d4b27['resultUrl'],_0x2a6f52[_0x287910(0x12c)]=_0x1d4b27['timeoutUrl'],logger[_0x287910(0x141)](_0x287910(0x134)+JSON[_0x287910(0x12b)](_0x1d4b27)),logger[_0x287910(0x141)](_0x287910(0x13e)+_0x1d4b27[_0x287910(0x147)]+_0x287910(0x10a)+_0x1d4b27[_0x287910(0x117)]+',\x20resultUrl:\x20'+_0x1d4b27[_0x287910(0x140)]+_0x287910(0x13d)+_0x1d4b27['timeoutUrl']),(!_0x1d4b27[_0x287910(0x147)]||!_0x1d4b27[_0x287910(0x117)]||!_0x1d4b27[_0x287910(0x12c)]||!_0x1d4b27['resultUrl'])&&logger[_0x287910(0x141)](_0x4cf5d2[_0x287910(0x125)]),_0x2a6f52;}async[a124_0x576bbb(0x10b)](_0x1cd3a5,_0x45121a){const _0xd22306=a124_0x576bbb,_0x2b7594={'SDzhC':function(_0x329510,_0x439498){return _0x329510(_0x439498);}};try{const _0x7aa517=_0x2b7594[_0xd22306(0x120)](parseInt,process['env'][_0xd22306(0x111)]||'0'),_0x504b33=_0x2b7594[_0xd22306(0x120)](parseInt,process[_0xd22306(0x122)][_0xd22306(0x10c)]||'1'),_0x1fe9b3=process[_0xd22306(0x122)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],_0xc0d4d3={'nodeIndex':_0x7aa517,'totalNodes':_0x504b33,'projectName':this['config'][_0xd22306(0x127)],'buildName':this[_0xd22306(0x13a)][_0xd22306(0x119)],'buildRunIdentifier':_0x1fe9b3,'orchestrationStrategy':_0x45121a,'hostInfo':this[_0xd22306(0x149)](),'tests':_0x1cd3a5[_0xd22306(0x126)](_0x1e031c=>({'filePath':_0x1e031c}))},_0x4c541e=await RequestUtils['postSplitFiles'](_0xc0d4d3);return logger[_0xd22306(0x141)](_0xd22306(0x123)+JSON[_0xd22306(0x12b)](_0x4c541e)),this[_0xd22306(0x13b)]+=0x1,this[_0xd22306(0x148)](_0x4c541e[_0xd22306(0x138)]||{});}catch(_0x124960){return logger[_0xd22306(0x141)]('[splitTests]\x20Exception\x20in\x20sending\x20test\x20files:\x20'+(_0x124960[_0xd22306(0x142)]||_0x124960[_0xd22306(0x12f)]())),null;}}async['getOrderedTestFiles'](_0x2b1306){const _0x2004cd=a124_0x576bbb,_0x2ca512={};_0x2ca512[_0x2004cd(0x10d)]=_0x2004cd(0x11e),_0x2ca512['lckWp']=function(_0x336c95,_0x43bbd0){return _0x336c95*_0x43bbd0;},_0x2ca512[_0x2004cd(0x11f)]=function(_0x354507,_0x4171ce){return _0x354507&&_0x4171ce;},_0x2ca512[_0x2004cd(0x10e)]=function(_0x5f2b21,_0x4d40f8){return _0x5f2b21<_0x4d40f8;},_0x2ca512[_0x2004cd(0x14a)]=function(_0x39409c,_0x3c7012){return _0x39409c-_0x3c7012;},_0x2ca512[_0x2004cd(0x110)]='[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20timeout\x20URL',_0x2ca512['eQslk']=function(_0x395946,_0x22c9b1){return _0x395946>_0x22c9b1;};const _0x21c667=_0x2ca512;if(!_0x2b1306)return null;try{logger[_0x2004cd(0x141)](_0x21c667['MAHMs']);const _0x2b2fc9=_0x2b1306[_0x2004cd(0x117)]||this[_0x2004cd(0x12d)],_0x374b79=_0x21c667[_0x2004cd(0x131)](_0x2b1306['timeout']||this['defaultTimeout'],0x3e8),_0xf84956=_0x2b1306[_0x2004cd(0x12c)],_0x14a2f7=_0x2b1306[_0x2004cd(0x140)];if(_0x21c667['jqklT'](!_0x14a2f7,!_0xf84956))return null;let _0x3a7f7c=null;const _0x89c496=Date['now']();while(_0x14a2f7&&_0x21c667[_0x2004cd(0x10e)](_0x21c667[_0x2004cd(0x14a)](Date['now'](),_0x89c496),_0x374b79)){logger[_0x2004cd(0x141)](_0x2004cd(0x128)+_0x14a2f7);const _0x52c40b=await RequestUtils[_0x2004cd(0x135)](_0x14a2f7);logger[_0x2004cd(0x141)](_0x2004cd(0x13c)+JSON[_0x2004cd(0x12b)](_0x52c40b)),this[_0x2004cd(0x13b)]+=0x1;if(_0x52c40b&&_0x52c40b['tests']){_0x3a7f7c=_0x52c40b[_0x2004cd(0x11c)];break;}await new Promise(_0x3048d5=>setTimeout(_0x3048d5,_0x2b2fc9*0x3e8)),logger[_0x2004cd(0x141)](_0x2004cd(0x139)+_0x2b2fc9+_0x2004cd(0x133));}if(_0x21c667[_0x2004cd(0x11f)](!_0x3a7f7c,_0xf84956)){logger[_0x2004cd(0x141)](_0x21c667[_0x2004cd(0x110)]);const _0x4846d5=await RequestUtils['getSplitFiles'](_0xf84956);_0x4846d5&&_0x4846d5[_0x2004cd(0x11c)]&&(_0x3a7f7c=_0x4846d5['tests']);}if(_0x3a7f7c&&_0x21c667['eQslk'](_0x3a7f7c[_0x2004cd(0x118)],0x0))return _0x3a7f7c[_0x2004cd(0x126)](_0x359f5d=>_0x359f5d[_0x2004cd(0x144)]);return null;}catch(_0x3d9728){return logger['debug'](_0x2004cd(0x115)+(_0x3d9728[_0x2004cd(0x142)]||_0x3d9728[_0x2004cd(0x12f)]())),null;}}['_getHostInfo'](){const _0x3de91e=a124_0x576bbb,_0x1fe978={'YkpYc':function(_0x4db435,_0x4acf18){return _0x4db435(_0x4acf18);}},_0x3ef901=_0x1fe978[_0x3de91e(0x112)](require,'os');try{return{'hostname':_0x3ef901[_0x3de91e(0x114)](),'platform':_0x3ef901[_0x3de91e(0x132)](),'release':_0x3ef901['release'](),'arch':_0x3ef901[_0x3de91e(0x11b)](),'totalmem':_0x3ef901[_0x3de91e(0x113)](),'freemem':_0x3ef901['freemem']()};}catch(_0x372ef0){return{};}}}module['exports']=TestOrderingServerHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a125_0x300331=a125_0x39ac;(function(_0x2b733a,_0x140445){var _0x256f82=a125_0x39ac,_0x2c319d=_0x2b733a();while(!![]){try{var _0x1d6a97=-parseInt(_0x256f82(0x6c))/0x1+parseInt(_0x256f82(0x78))/0x2*(-parseInt(_0x256f82(0x75))/0x3)+-parseInt(_0x256f82(0x7a))/0x4+parseInt(_0x256f82(0x6f))/0x5*(-parseInt(_0x256f82(0x73))/0x6)+parseInt(_0x256f82(0x89))/0x7+parseInt(_0x256f82(0x70))/0x8+parseInt(_0x256f82(0x69))/0x9;if(_0x1d6a97===_0x140445)break;else _0x2c319d['push'](_0x2c319d['shift']());}catch(_0x2b612a){_0x2c319d['push'](_0x2c319d['shift']());}}}(a125_0x1a73,0x20318));function a125_0x39ac(_0x5cd12d,_0x44e344){var _0x1a733d=a125_0x1a73();return a125_0x39ac=function(_0x39acbc,_0x5ae4ed){_0x39acbc=_0x39acbc-0x68;var _0x9bae24=_0x1a733d[_0x39acbc];return _0x9bae24;},a125_0x39ac(_0x5cd12d,_0x44e344);}function a125_0x1a73(){var _0x2a22e8=['ACCESS_DENIED','api/v2/builds','5uomFYI','634376eJyexS','CBTSessionCreated','HookFinished','509244hjhvDP','TESTHUB_BUILD_API','3aaZLNe','HookRunFinished','BROWSERSTACK_TESTHUB_UUID','101254LViKcq','INVALID_CREDENTIALS','511788lyDyUh','TestRunSkipped','ERROR_ACCESS_DENIED','TestSkipped','ERROR','HookStarted','TestRunFinished','HookRunStarted','DEPRECATED','ERROR_SDK_DEPRECATED','observability','accessibility','ENV_VAR','LogCreated','ACCESSIBILITY','956326AeCnmn','OBSERVABILITY','2784501efJzZg','EVENT','BROWSERSTACK_TESTHUB_JWT','129992Jesoii'];a125_0x1a73=function(){return _0x2a22e8;};return a125_0x1a73();}var a125_0x559ad7={};a125_0x559ad7[a125_0x300331(0x79)]='ERROR_INVALID_CREDENTIALS',a125_0x559ad7[a125_0x300331(0x82)]=a125_0x300331(0x83),a125_0x559ad7[a125_0x300331(0x6d)]=a125_0x300331(0x7c);var a125_0x155d28={};a125_0x155d28['TestStarted']='TestRunStarted',a125_0x155d28['TestFinished']=a125_0x300331(0x80),a125_0x155d28[a125_0x300331(0x7d)]=a125_0x300331(0x7b),a125_0x155d28[a125_0x300331(0x87)]=a125_0x300331(0x87),a125_0x155d28[a125_0x300331(0x7f)]=a125_0x300331(0x81),a125_0x155d28[a125_0x300331(0x72)]=a125_0x300331(0x76),a125_0x155d28[a125_0x300331(0x71)]='CBTSessionCreated';var a125_0x141537={};a125_0x141537[a125_0x300331(0x77)]=a125_0x300331(0x77),a125_0x141537[a125_0x300331(0x6b)]=a125_0x300331(0x6b);var a125_0x1e96ed={};a125_0x1e96ed[a125_0x300331(0x74)]=a125_0x300331(0x6e),a125_0x1e96ed[a125_0x300331(0x88)]=a125_0x300331(0x85),a125_0x1e96ed[a125_0x300331(0x68)]=a125_0x300331(0x84),a125_0x1e96ed[a125_0x300331(0x7e)]=a125_0x559ad7,a125_0x1e96ed[a125_0x300331(0x6a)]=a125_0x155d28,a125_0x1e96ed[a125_0x300331(0x86)]=a125_0x141537,module['exports']=a125_0x1e96ed;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a126_0x51767c=a126_0x3485;(function(_0x38de65,_0x1216d8){const _0x11e4e1=a126_0x3485,_0x50d0e9=_0x38de65();while(!![]){try{const _0x4972f3=parseInt(_0x11e4e1(0x158))/0x1+parseInt(_0x11e4e1(0xc8))/0x2*(parseInt(_0x11e4e1(0x13e))/0x3)+parseInt(_0x11e4e1(0x11b))/0x4+parseInt(_0x11e4e1(0x12f))/0x5*(parseInt(_0x11e4e1(0xde))/0x6)+-parseInt(_0x11e4e1(0x11e))/0x7+-parseInt(_0x11e4e1(0x132))/0x8*(parseInt(_0x11e4e1(0x147))/0x9)+parseInt(_0x11e4e1(0xe1))/0xa*(-parseInt(_0x11e4e1(0xfc))/0xb);if(_0x4972f3===_0x1216d8)break;else _0x50d0e9['push'](_0x50d0e9['shift']());}catch(_0x4e5030){_0x50d0e9['push'](_0x50d0e9['shift']());}}}(a126_0x4947,0xca415));const bsSetupHelper=require(a126_0x51767c(0x168)),path=require(a126_0x51767c(0xc6)),util=require(a126_0x51767c(0x136)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a126_0x51767c(0xe3)),testhubUtils=require('./utils.js'),testHubConstants=require(a126_0x51767c(0xfe)),constants=require(a126_0x51767c(0xf2)),RequestQueueHandler=require(a126_0x51767c(0x121)),logger=require(a126_0x51767c(0xfd))[a126_0x51767c(0x12c)],SessionHandler=require(a126_0x51767c(0x13c)),PerformanceTester=require(a126_0x51767c(0x160)),{TESTHUB_EVENTS:PerformanceEvents}=require(a126_0x51767c(0x13a)),TestDetails=require('../../bin/playwright/reporter/test-details.js'),{uploadTraceZip}=require(a126_0x51767c(0x150)),{isTurboScaleSession}=require(a126_0x51767c(0x156)),BrowserstackCLI=require(a126_0x51767c(0x14f)),OngoingEvents=new Set();function a126_0x3485(_0x4b1139,_0x4de92d){const _0x49470e=a126_0x4947();return a126_0x3485=function(_0x3485dc,_0x32c3a0){_0x3485dc=_0x3485dc-0xc5;let _0x2220a4=_0x49470e[_0x3485dc];return _0x2220a4;},a126_0x3485(_0x4b1139,_0x4de92d);}function a126_0x4947(){const _0x5a6787=['xkeFf','isBrowserstackInfra','BROWSERSTACK_LINKED_BUILD_UUID','finished_metadata','../../bin/v2/browserstackCLI','../../bin/playwright/reporter/pwUtils.js','forEach','lkYZI','data','null','CIIxl','../helper.js','FsxAf','414630XRTLjI','All\x20trace\x20zip\x20send\x20events\x20complete','toISOString','assign','MlyrK','bEXoI','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','central_scanner','../performance/performance-tester.js','add','sOkYG','token','lcnc','stopBuildUpstream\x20event\x20successful!','BlfrI','getFrameworkDetails','../helper','PxqeZ','path','buildStopSent','20RONdBP','dbzOj','resolve','BROWSERSTACK_ACCESSIBILITY','VELeB','CDwkx','Percy\x20is\x20not\x20supported\x20for\x20','config','message','yLEQl','allowScreenshot','settings','TESTHUB_BUILD_API','VVYWW','getAccessibilityValueFromYml','success','SzYpT','exports','setTestHubCommonMetaInfo','response','gtWkX','projectName','24yxvpde','includeEncodedExtension','/stop','288790WbuZFA','isAccessibilityEnabled','../test-observability/utils','error','DRHJY','jIOcH','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','framework','password','true','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','BS_TESTOPS_BUILD_COMPLETED','cwd','stringify','includes','ENV_VAR','BROWSERSTACK_TESTHUB_UUID','../../bin/utils/constants.js','logBuildError','buildIdentifier','START','BROWSERSTACK_TEST_OBSERVABILITY','generateBuildUpstreamData','BROWSERSTACK_PRODUCT_MAP','BROWSERSTACK_CENTRAL_SCANNER_JWT','format','getCiInfo','297PYvRwS','../logger','./constants.js','iNqEm','job_id','ykiJJ','mONPG','extractDataFromResponse','BROWSERSTACK_BUILD_RUN_IDENTIFIER','buildName','BROWSERSTACK_TESTHUB_JWT','getProductMap','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','wEXfK','getConfig','qFhzl','processTraceZips','POST','user_killed','setTestObservabilityVariables','BROWSERSTACK_RERUN','Error\x20while\x20waiting\x20for\x20events:\x20','BROWSERSTACK_CENTRAL_SCANNER_JOBID','percy','PUT','statusText','vkeZR','getHostInfo','buildDescription','accessibility','checkAndSetupPercy','6044828zMvnnS','waitForBuildStatus','isRunning','10386369wmFkUP','getAccessibilityOptions','getInstance','../test-observability/requestQueueHandler.js','JmUXt','Generating\x20build\x20upstream\x20data\x20for\x20TestHub','stop','api/v1/builds/','push','ePdgF','buildHashedId','apFcA','username','measureWrapper','winstonLogger','launchBuild','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','1686730ReLQbp','getTestOrchestrationBuildStartData','setupPercy','656AFUNWx','status','getAccessKey','BGuKN','util','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','authToken','getGitMetaData','../performance/constants','DwWSm','../test-observability/sessionHandler.js','PERCY_SUPPORTED_FRAMEWORKS','36945GTAgmj','allSettled','env','MaXzE','EPsuq','basename','debug','false','jwt','33633MfAbyS','ACCESSIBILITY','SeAiS','OBSERVABILITY'];a126_0x4947=function(){return _0x5a6787;};return a126_0x4947();}let processedTraceZips=![];const addEvent=_0x491d63=>{const _0x29ab65=a126_0x51767c;OngoingEvents[_0x29ab65(0x161)](_0x491d63);},awaitAllEvents=async()=>{const _0x3d6565=a126_0x51767c;return Promise[_0x3d6565(0x13f)](OngoingEvents);};class TestHubHandler{static ['buildStopSent']=![];static async[a126_0x51767c(0x12d)](_0x5d60b1,_0x3e5394){const _0x1f6e2b=a126_0x51767c,_0x48dcf3={'bEXoI':function(_0x32cff6,_0x124b8c){return _0x32cff6||_0x124b8c;},'iNqEm':function(_0x278043,_0x362a7d){return _0x278043||_0x362a7d;},'mONPG':function(_0x410d19,_0x5c6886){return _0x410d19===_0x5c6886;},'BGuKN':function(_0x44b90b){return _0x44b90b();},'CIIxl':_0x1f6e2b(0x137),'jIOcH':_0x1f6e2b(0x145),'JmUXt':_0x1f6e2b(0xeb),'ykiJJ':function(_0x5ceb4a,_0x21259d,_0x4b507e,_0x456305,_0x4de1c2){return _0x5ceb4a(_0x21259d,_0x4b507e,_0x456305,_0x4de1c2);},'MaXzE':_0x1f6e2b(0x10d),'SeAiS':_0x1f6e2b(0x119),'aRCiU':_0x1f6e2b(0xea),'cpkjU':function(_0x3d094d,_0x2375fa){return _0x3d094d===_0x2375fa;}};await PerformanceTester['measureWrapper'](PerformanceEvents[_0x1f6e2b(0xf5)],async()=>{const _0x5d993b=_0x1f6e2b,_0x4cfac6=Object[_0x5d993b(0x15b)]({},_0x3e5394['config'],{'root_dir_path':'','framework':_0x3e5394[_0x5d993b(0xe8)]}),_0x3cfa0f=bsSetupHelper['getUserName'](_0x4cfac6),_0x3f04f0=bsSetupHelper[_0x5d993b(0x134)](_0x4cfac6),_0x2966a0=_0x48dcf3[_0x5d993b(0x15d)](_0x3cfa0f,'')+':'+_0x48dcf3[_0x5d993b(0xff)](_0x3f04f0,''),_0x11bc94=testhubUtils[_0x5d993b(0x107)](_0x4cfac6);process[_0x5d993b(0x140)][_0x5d993b(0xf8)]=JSON[_0x5d993b(0xee)](_0x11bc94);if(_0x48dcf3[_0x5d993b(0x102)](_0x2966a0,':'))return _0x48dcf3[_0x5d993b(0x135)](isTestObservabilitySession)&&(logger[_0x5d993b(0x144)](_0x48dcf3[_0x5d993b(0x155)]),process[_0x5d993b(0x140)][_0x5d993b(0xec)]=_0x48dcf3[_0x5d993b(0xe6)]),testhubUtils[_0x5d993b(0xe2)](_0x4cfac6)&&logger[_0x5d993b(0x144)](_0x48dcf3[_0x5d993b(0x122)]),[null,null];try{const _0x4b7c48=await this[_0x5d993b(0xf7)](_0x4cfac6,_0x5d60b1),_0x42ddeb=this[_0x5d993b(0x10a)](_0x3cfa0f,_0x3f04f0),_0x36d895=await _0x48dcf3[_0x5d993b(0x101)](nodeRequest,_0x48dcf3[_0x5d993b(0x141)],testHubConstants[_0x5d993b(0xd4)],_0x4b7c48,_0x42ddeb),_0x3b4e14=this[_0x5d993b(0x103)](_0x4cfac6,_0x36d895,_0x42ddeb);await this[_0x5d993b(0x11a)](_0x3e5394,_0x5d60b1);if(_0x48dcf3[_0x5d993b(0x102)](testhubUtils[_0x5d993b(0xd6)](_0x3e5394[_0x5d993b(0xcf)]),null)){const _0x4d0c58=_0x3b4e14[_0x48dcf3[_0x5d993b(0x149)]];_0x4d0c58&&_0x4d0c58[_0x5d993b(0x138)]&&_0x4d0c58[_0x5d993b(0x128)]&&(_0x3e5394[_0x5d993b(0xcf)][_0x5d993b(0x119)]=!![],process[_0x5d993b(0x140)][_0x5d993b(0x15e)]=_0x48dcf3['aRCiU']);}return _0x3b4e14;}catch(_0x597469){if(_0x48dcf3['cpkjU'](_0x597469[_0x5d993b(0xd7)],![])){testhubUtils[_0x5d993b(0xf3)](_0x597469);return;}}})();}static async[a126_0x51767c(0x10c)](){const _0xb5de3e=a126_0x51767c,_0x534976={'ePdgF':function(_0x776bc4,_0x320722,_0x1cc88d){return _0x776bc4(_0x320722,_0x1cc88d);},'SzYpT':function(_0x1c0ea3,_0x3eb04c){return _0x1c0ea3(_0x3eb04c);},'CDwkx':function(_0x387020){return _0x387020();},'NALDi':_0xb5de3e(0x159)};if(processedTraceZips)return;const _0x2da219=TestDetails['getTraceFilePaths']();_0x2da219[_0xb5de3e(0x151)](({testUId:_0x18958d,filePath:_0x31802a})=>{const _0x8af8de=_0xb5de3e;var _0x2f85ef=_0x534976[_0x8af8de(0x127)](uploadTraceZip,_0x31802a,_0x18958d);_0x534976[_0x8af8de(0xd8)](addEvent,_0x2f85ef);});try{await _0x534976[_0xb5de3e(0xcd)](awaitAllEvents),logger[_0xb5de3e(0x144)](_0x534976['NALDi']),processedTraceZips=!![];}catch(_0x435a76){logger[_0xb5de3e(0xe4)](_0xb5de3e(0x111)+util[_0xb5de3e(0xfa)](_0x435a76));}}static async[a126_0x51767c(0x11a)](_0x581afa,_0x45abf4){const _0x4a8533=a126_0x51767c;if(constants[_0x4a8533(0x13d)][_0x4a8533(0xef)](_0x45abf4)){await _0x581afa[_0x4a8533(0x131)]();return;}_0x581afa[_0x4a8533(0xcf)][_0x4a8533(0x113)]&&logger[_0x4a8533(0x144)](_0x4a8533(0xce)+_0x45abf4+'\x20framework');}static[a126_0x51767c(0x11f)](_0x147cff){const _0x5b14eb=a126_0x51767c,_0x1c5cff={'jFdqO':function(_0x580192,_0x3f7e67){return _0x580192(_0x3f7e67);},'VELeB':_0x5b14eb(0xea)};let _0x52e050;if(_0x147cff['accessibilityOptions']){const _0x556b0c={};_0x556b0c[_0x5b14eb(0xd3)]=_0x147cff['accessibilityOptions'],_0x52e050=_0x556b0c;}else{const _0x5d5d58={};_0x5d5d58[_0x5b14eb(0xd3)]={},_0x52e050=_0x5d5d58;}if((!bsSetupHelper[_0x5b14eb(0x14c)]()||_0x1c5cff['jFdqO'](isTurboScaleSession,_0x147cff))&&testhubUtils['isAccessibilityEnabled'](_0x147cff)){const _0x180de9={};_0x180de9[_0x5b14eb(0xdf)]=_0x1c5cff[_0x5b14eb(0xcc)],Object[_0x5b14eb(0x15b)](_0x52e050[_0x5b14eb(0xd3)],_0x180de9);}return _0x52e050;}static[a126_0x51767c(0x10a)](_0x37fd02,_0x2efe76){const _0x493369=a126_0x51767c,_0x39cd00={'EPsuq':function(_0x136099,_0x475ccf){return _0x136099(_0x475ccf);}},_0x1dfd7a={};return _0x1dfd7a[_0x493369(0x12a)]=_0x37fd02,_0x1dfd7a[_0x493369(0xe9)]=_0x2efe76,{'auth':_0x1dfd7a,'headers':_0x39cd00[_0x493369(0x142)](getDefaultHeaders,![])};}static async[a126_0x51767c(0xf7)](_0x192dfa,_0x296f4c){const _0x1af537=a126_0x51767c,_0x81407e={'FsxAf':_0x1af537(0x123),'lkYZI':function(_0x547dd4,_0x28f8fd){return _0x547dd4(_0x28f8fd);}};logger[_0x1af537(0x144)](_0x81407e[_0x1af537(0x157)]);const _0x24deb7={'project_name':_0x192dfa[_0x1af537(0xdd)]||'','name':_0x192dfa[_0x1af537(0x105)]||path[_0x1af537(0x143)](path[_0x1af537(0xca)](process[_0x1af537(0xed)]())),'build_identifier':_0x192dfa[_0x1af537(0xf4)],'description':_0x192dfa[_0x1af537(0x118)]||'','started_at':new Date()[_0x1af537(0x15a)](),'tags':_0x81407e[_0x1af537(0x152)](getCustomTags,_0x192dfa),'host_info':bsSetupHelper[_0x1af537(0x117)](),'ci_info':bsSetupHelper[_0x1af537(0xfb)](),'build_run_identifier':process['env'][_0x1af537(0x104)],'failed_tests_rerun':process[_0x1af537(0x140)][_0x1af537(0x110)]||![],'linked_build_uuid':process[_0x1af537(0x140)][_0x1af537(0x14d)]||'','version_control':await bsSetupHelper[_0x1af537(0x139)](),'accessibility':this[_0x1af537(0x11f)](_0x192dfa),'framework_details':testhubUtils[_0x1af537(0x167)](_0x192dfa,_0x296f4c),'product_map':testhubUtils['getProductMapForBuildStartCall'](_0x192dfa),'browserstackAutomation':bsSetupHelper[_0x1af537(0x14c)](),'grouping_identifier':process['env']['BROWSERSTACK_BUILD_GROUPING_IDENTIFIER'],'test_orchestration':testhubUtils[_0x1af537(0x130)](_0x192dfa)};if(bsSetupHelper['getCentralUser']()[_0x1af537(0x15f)]||bsSetupHelper['getCentralUser']()[_0x1af537(0x164)]){const _0x34ec84={};_0x34ec84[_0x1af537(0x100)]=process[_0x1af537(0x140)][_0x1af537(0x112)],_0x34ec84[_0x1af537(0x163)]=process[_0x1af537(0x140)][_0x1af537(0xf9)],_0x24deb7[_0x1af537(0x15f)]=_0x34ec84;}return _0x24deb7;}static[a126_0x51767c(0x103)](_0xcb0cb9,_0x3e0f4b,_0x1d4594){const _0x2ec27f=a126_0x51767c,_0x3b393b={'VVYWW':function(_0x2d7d50){return _0x2d7d50();},'gtWkX':function(_0x5dc7cc,_0x534cef){return _0x5dc7cc&&_0x534cef;},'MlyrK':_0x2ec27f(0xea),'xkeFf':_0x2ec27f(0x145),'PxqeZ':function(_0x43dd99,_0x496ac9){return _0x43dd99&&_0x496ac9;}},_0x17b898={};if(_0x3b393b[_0x2ec27f(0xd5)](isTestObservabilitySession)){const [_0xbf2ece,_0x12857f,_0x5cb1ea]=testhubUtils[_0x2ec27f(0x10f)](_0x3e0f4b[_0x2ec27f(0x153)],_0x1d4594['auth']);if(_0x3b393b[_0x2ec27f(0xdc)](_0xbf2ece,_0x12857f)){const _0x510458={};_0x510458[_0x2ec27f(0x146)]=_0xbf2ece,_0x510458[_0x2ec27f(0x128)]=_0x12857f,_0x510458[_0x2ec27f(0xd2)]=_0x5cb1ea,_0x17b898[testHubConstants[_0x2ec27f(0x14a)]]=_0x510458,process['env'][_0x2ec27f(0xf6)]=_0x3b393b['MlyrK'];}else _0x17b898[testHubConstants[_0x2ec27f(0x14a)]]={},process[_0x2ec27f(0x140)][_0x2ec27f(0xf6)]=_0x3b393b['xkeFf'];}else process[_0x2ec27f(0x140)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x3b393b[_0x2ec27f(0x14b)];const [_0x30e350,_0xf41423]=testhubUtils['setAccessibilityVariables'](_0x3e0f4b[_0x2ec27f(0x153)]);if(_0x3b393b[_0x2ec27f(0xc5)](_0x30e350,_0xf41423)){const _0x156611={};_0x156611[_0x2ec27f(0x138)]=_0x30e350,_0x156611[_0x2ec27f(0x128)]=_0xf41423,_0x17b898[testHubConstants['ACCESSIBILITY']]=_0x156611,process[_0x2ec27f(0x140)][_0x2ec27f(0xcb)]=_0x3b393b[_0x2ec27f(0x15c)];}else _0x17b898[testHubConstants[_0x2ec27f(0x148)]]={},process['env'][_0x2ec27f(0xcb)]=_0x3b393b[_0x2ec27f(0x14b)];return testhubUtils[_0x2ec27f(0xda)](_0x3e0f4b[_0x2ec27f(0x153)]),logger['info']('Testhub\x20started\x20with\x20id:\x20'+process[_0x2ec27f(0x140)][_0x2ec27f(0xf1)]),_0x17b898;}static async[a126_0x51767c(0x124)](_0x3300b8){const _0x2341be=a126_0x51767c,_0x5da6a2={'hmFAk':function(_0x303510,_0x49b374){return _0x303510===_0x49b374;},'vkeZR':_0x2341be(0x145),'apFcA':function(_0x36c239,_0x2bfe59){return _0x36c239===_0x2bfe59;},'wEXfK':_0x2341be(0x154),'yLEQl':function(_0x5fa4ae,_0x39fb0a){return _0x5fa4ae===_0x39fb0a;},'SmPnQ':_0x2341be(0x108),'DwWSm':'error','yriGp':_0x2341be(0xe7),'sOkYG':_0x2341be(0x14e),'hkgcR':_0x2341be(0x10e),'BlfrI':function(_0x450d1c){return _0x450d1c();},'dbzOj':function(_0x5bccbb,_0x4d4f72,_0x3b9f2e,_0x412431,_0x1c10ab,_0x399c10){return _0x5bccbb(_0x4d4f72,_0x3b9f2e,_0x412431,_0x1c10ab,_0x399c10);},'DRHJY':_0x2341be(0x114),'IGnhE':_0x2341be(0x165),'qFhzl':'success'};await PerformanceTester[_0x2341be(0x12b)](PerformanceEvents['STOP'],async()=>{const _0x13b3f3=_0x2341be;if(_0x5da6a2['hmFAk'](process['env']['BS_TESTOPS_BUILD_COMPLETED'],_0x5da6a2[_0x13b3f3(0x116)])||TestHubHandler[_0x13b3f3(0xc7)]||bsSetupHelper['isUndefined'](process[_0x13b3f3(0x140)][testHubConstants[_0x13b3f3(0xf0)][_0x13b3f3(0x106)]]))return;TestHubHandler[_0x13b3f3(0xc7)]=!![];if(BrowserstackCLI[_0x13b3f3(0x120)]()[_0x13b3f3(0x11d)]())return;await this[_0x13b3f3(0x10c)](),await RequestQueueHandler[_0x13b3f3(0x120)]()['uploadPending'](),await SessionHandler[_0x13b3f3(0x11c)]();if(_0x5da6a2[_0x13b3f3(0x129)](process[_0x13b3f3(0x140)][testHubConstants['ENV_VAR'][_0x13b3f3(0x106)]],_0x5da6a2[_0x13b3f3(0x109)])||_0x5da6a2[_0x13b3f3(0xd1)](process[_0x13b3f3(0x140)][testHubConstants[_0x13b3f3(0xf0)][_0x13b3f3(0xf1)]],_0x5da6a2[_0x13b3f3(0x109)])){logger[_0x13b3f3(0x144)](_0x5da6a2['SmPnQ']);const _0x3c8a34={};return _0x3c8a34[_0x13b3f3(0x133)]=_0x5da6a2['DwWSm'],_0x3c8a34[_0x13b3f3(0xd0)]=_0x5da6a2['yriGp'],_0x3c8a34;}const _0x30b4cb={'finished_at':new Date()[_0x13b3f3(0x15a)](),'finished_metadata':[]};!!_0x3300b8&&_0x30b4cb[_0x5da6a2[_0x13b3f3(0x162)]][_0x13b3f3(0x126)]({'reason':_0x5da6a2['hkgcR'],'signal':_0x3300b8,'failure_data':''});const _0x2e385c={'headers':_0x5da6a2[_0x13b3f3(0x166)](getDefaultHeaders)};try{const _0x27a6ef=await _0x5da6a2[_0x13b3f3(0xc9)](nodeRequest,_0x5da6a2[_0x13b3f3(0xe5)],_0x13b3f3(0x125)+process[_0x13b3f3(0x140)][testHubConstants[_0x13b3f3(0xf0)][_0x13b3f3(0xf1)]]+_0x13b3f3(0xe0),_0x30b4cb,_0x2e385c,![]);if(_0x27a6ef['data']&&_0x27a6ef['data']['error']){const _0x4dcb4c={};_0x4dcb4c[_0x13b3f3(0xd0)]=_0x27a6ef[_0x13b3f3(0x153)][_0x13b3f3(0xe4)];throw _0x4dcb4c;}else{logger[_0x13b3f3(0x144)](_0x5da6a2['IGnhE']);const _0x5157f2={};return _0x5157f2[_0x13b3f3(0x133)]=_0x5da6a2[_0x13b3f3(0x10b)],_0x5157f2[_0x13b3f3(0xd0)]='',_0x5157f2;}}catch(_0x4dca05){_0x4dca05[_0x13b3f3(0xdb)]?logger[_0x13b3f3(0x144)](_0x13b3f3(0x12e)+_0x4dca05[_0x13b3f3(0xdb)][_0x13b3f3(0x133)]+'\x20'+_0x4dca05[_0x13b3f3(0xdb)][_0x13b3f3(0x115)]+'\x20'+JSON['stringify'](_0x4dca05[_0x13b3f3(0xdb)]['data'])):logger[_0x13b3f3(0x144)](_0x13b3f3(0x12e)+(_0x4dca05['message']||_0x4dca05));const _0x20ecc6={};return _0x20ecc6[_0x13b3f3(0x133)]=_0x5da6a2[_0x13b3f3(0x13b)],_0x20ecc6['message']=_0x4dca05['message']||_0x4dca05[_0x13b3f3(0xdb)]?_0x4dca05[_0x13b3f3(0xdb)][_0x13b3f3(0x133)]+':'+_0x4dca05['response'][_0x13b3f3(0x115)]:_0x4dca05,_0x20ecc6;}})();}}module[a126_0x51767c(0xd9)]=TestHubHandler;
|
|
1
|
+
const a126_0x2d4b61=a126_0x4b5d;(function(_0x85cacb,_0x6ebe8b){const _0xad09fb=a126_0x4b5d,_0x24807a=_0x85cacb();while(!![]){try{const _0xd92c62=parseInt(_0xad09fb(0x1a2))/0x1+parseInt(_0xad09fb(0x178))/0x2*(parseInt(_0xad09fb(0x1b4))/0x3)+parseInt(_0xad09fb(0x1a1))/0x4*(-parseInt(_0xad09fb(0x1df))/0x5)+-parseInt(_0xad09fb(0x1b0))/0x6+parseInt(_0xad09fb(0x1ba))/0x7*(-parseInt(_0xad09fb(0x1f3))/0x8)+parseInt(_0xad09fb(0x1f6))/0x9+parseInt(_0xad09fb(0x1ad))/0xa;if(_0xd92c62===_0x6ebe8b)break;else _0x24807a['push'](_0x24807a['shift']());}catch(_0x3055b5){_0x24807a['push'](_0x24807a['shift']());}}}(a126_0xe17e,0x67735));const bsSetupHelper=require(a126_0x2d4b61(0x1a4)),path=require(a126_0x2d4b61(0x182)),util=require('util'),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a126_0x2d4b61(0x1e4)),testhubUtils=require(a126_0x2d4b61(0x18f)),testHubConstants=require(a126_0x2d4b61(0x180)),constants=require('../../bin/utils/constants.js'),RequestQueueHandler=require('../test-observability/requestQueueHandler.js'),logger=require(a126_0x2d4b61(0x190))[a126_0x2d4b61(0x1f8)],SessionHandler=require('../test-observability/sessionHandler.js'),PerformanceTester=require('../performance/performance-tester.js'),{TESTHUB_EVENTS:PerformanceEvents}=require(a126_0x2d4b61(0x1db)),TestDetails=require(a126_0x2d4b61(0x1fd)),{uploadTraceZip}=require('../../bin/playwright/reporter/pwUtils.js'),{isTurboScaleSession}=require(a126_0x2d4b61(0x1dc)),BrowserstackCLI=require(a126_0x2d4b61(0x175)),OngoingEvents=new Set();let processedTraceZips=![];const addEvent=_0x4fb9f9=>{const _0x155864=a126_0x2d4b61;OngoingEvents[_0x155864(0x1b9)](_0x4fb9f9);},awaitAllEvents=async()=>{const _0x443ffa=a126_0x2d4b61;return Promise[_0x443ffa(0x200)](OngoingEvents);};function a126_0x4b5d(_0x2fb7e8,_0x2a9280){const _0xe17ea6=a126_0xe17e();return a126_0x4b5d=function(_0x4b5de6,_0x17f6fa){_0x4b5de6=_0x4b5de6-0x174;let _0x5bd37c=_0xe17ea6[_0x4b5de6];return _0x5bd37c;},a126_0x4b5d(_0x2fb7e8,_0x2a9280);}class TestHubHandler{static ['buildStopSent']=![];static async['launchBuild'](_0x13a9a3,_0x135523){const _0x144361=a126_0x2d4b61,_0x40f552={'wtbQL':function(_0x4a9976,_0x4a00bc){return _0x4a9976||_0x4a00bc;},'ZIQqz':function(_0x106aed,_0x44738f){return _0x106aed||_0x44738f;},'bEioY':function(_0x5f0a76,_0x45149e){return _0x5f0a76===_0x45149e;},'JqHtj':function(_0x3383f5){return _0x3383f5();},'RdYfU':_0x144361(0x1c0),'sCZia':_0x144361(0x181),'IRguw':'Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','oBUUz':function(_0x42e284,_0xa3460d,_0x3ff8cf,_0x579d8c,_0x5c9a8){return _0x42e284(_0xa3460d,_0x3ff8cf,_0x579d8c,_0x5c9a8);},'sRCQO':_0x144361(0x1ed),'wJCNY':function(_0x55b969,_0x2cedab){return _0x55b969===_0x2cedab;},'zRGjZ':_0x144361(0x1cc),'YacqE':'true'};await PerformanceTester[_0x144361(0x1c3)](PerformanceEvents[_0x144361(0x19e)],async()=>{const _0x382e35=_0x144361,_0xe962ea=Object[_0x382e35(0x1f7)]({},_0x135523['config'],{'root_dir_path':'','framework':_0x135523[_0x382e35(0x174)]}),_0x1717b2=bsSetupHelper[_0x382e35(0x197)](_0xe962ea),_0x11f965=bsSetupHelper[_0x382e35(0x1af)](_0xe962ea),_0x31ccb1=_0x40f552[_0x382e35(0x1d7)](_0x1717b2,'')+':'+_0x40f552[_0x382e35(0x1b6)](_0x11f965,''),_0x15cf0f=testhubUtils['getProductMap'](_0xe962ea);process[_0x382e35(0x1b3)]['BROWSERSTACK_PRODUCT_MAP']=JSON[_0x382e35(0x176)](_0x15cf0f);if(_0x40f552['bEioY'](_0x31ccb1,':'))return _0x40f552[_0x382e35(0x1aa)](isTestObservabilitySession)&&(logger[_0x382e35(0x1bc)](_0x40f552[_0x382e35(0x177)]),process[_0x382e35(0x1b3)][_0x382e35(0x1ab)]=_0x40f552[_0x382e35(0x188)]),testhubUtils[_0x382e35(0x1f5)](_0xe962ea)&&logger[_0x382e35(0x1bc)](_0x40f552[_0x382e35(0x1ca)]),[null,null];try{const _0x1d9224=await this[_0x382e35(0x1fe)](_0xe962ea,_0x13a9a3),_0x18f375=this[_0x382e35(0x1fa)](_0x1717b2,_0x11f965),_0x3907c0=await _0x40f552[_0x382e35(0x1c5)](nodeRequest,_0x40f552['sRCQO'],testHubConstants['TESTHUB_BUILD_API'],_0x1d9224,_0x18f375),_0x1255c5=this[_0x382e35(0x1f0)](_0xe962ea,_0x3907c0,_0x18f375);await this[_0x382e35(0x1d9)](_0x135523,_0x13a9a3);if(_0x40f552[_0x382e35(0x191)](testhubUtils[_0x382e35(0x198)](_0x135523['config']),null)){const _0x13ecd3=_0x1255c5[_0x40f552[_0x382e35(0x1d5)]];_0x13ecd3&&_0x13ecd3[_0x382e35(0x193)]&&_0x13ecd3[_0x382e35(0x184)]&&(_0x135523[_0x382e35(0x19a)][_0x382e35(0x1cc)]=!![],process[_0x382e35(0x1b3)][_0x382e35(0x1fb)]=_0x40f552[_0x382e35(0x1a6)]);}return _0x1255c5;}catch(_0x458a77){if(_0x40f552[_0x382e35(0x191)](_0x458a77[_0x382e35(0x195)],![])){testhubUtils[_0x382e35(0x1c4)](_0x458a77);return;}}})();}static async[a126_0x2d4b61(0x17a)](){const _0x47b0a7=a126_0x2d4b61,_0x50e69d={'LydYi':function(_0x3439a1,_0x45f86c,_0x26c80f){return _0x3439a1(_0x45f86c,_0x26c80f);},'MoTlB':function(_0x414e83,_0x3b396a){return _0x414e83(_0x3b396a);},'XeHrV':function(_0x1f834d){return _0x1f834d();},'qAfKX':_0x47b0a7(0x1d8)};if(processedTraceZips)return;const _0xe9fd1a=TestDetails[_0x47b0a7(0x1be)]();_0xe9fd1a[_0x47b0a7(0x1f9)](({testUId:_0x358a41,filePath:_0x2b4c95})=>{const _0xda2aaa=_0x47b0a7;var _0x163062=_0x50e69d[_0xda2aaa(0x1bb)](uploadTraceZip,_0x2b4c95,_0x358a41);_0x50e69d['MoTlB'](addEvent,_0x163062);});try{await _0x50e69d['XeHrV'](awaitAllEvents),logger[_0x47b0a7(0x1bc)](_0x50e69d['qAfKX']),processedTraceZips=!![];}catch(_0x5eece9){logger[_0x47b0a7(0x179)]('Error\x20while\x20waiting\x20for\x20events:\x20'+util[_0x47b0a7(0x1e8)](_0x5eece9));}}static async['checkAndSetupPercy'](_0x2711ad,_0x34e7bb){const _0x2a8d22=a126_0x2d4b61;if(constants[_0x2a8d22(0x1e1)][_0x2a8d22(0x1cb)](_0x34e7bb)){await _0x2711ad[_0x2a8d22(0x1c9)]();return;}_0x2711ad['config'][_0x2a8d22(0x1b1)]&&logger[_0x2a8d22(0x1bc)](_0x2a8d22(0x1b7)+_0x34e7bb+'\x20framework');}static['getAccessibilityOptions'](_0x38caf8){const _0x3724fe=a126_0x2d4b61,_0x541a3f={'ErGNq':function(_0x154555,_0x107292){return _0x154555(_0x107292);},'PYXBV':'true'};let _0x3aec70;if(_0x38caf8['accessibilityOptions']){const _0x9cb3c1={};_0x9cb3c1['settings']=_0x38caf8[_0x3724fe(0x1ef)],_0x3aec70=_0x9cb3c1;}else{const _0x12ebb2={};_0x12ebb2['settings']={},_0x3aec70=_0x12ebb2;}if((!bsSetupHelper[_0x3724fe(0x189)]()||_0x541a3f[_0x3724fe(0x1d6)](isTurboScaleSession,_0x38caf8))&&testhubUtils[_0x3724fe(0x1f5)](_0x38caf8)){const _0x5f4c10={};_0x5f4c10[_0x3724fe(0x1eb)]=_0x541a3f['PYXBV'],Object[_0x3724fe(0x1f7)](_0x3aec70['settings'],_0x5f4c10);}return _0x3aec70;}static[a126_0x2d4b61(0x1fa)](_0x1bbcf1,_0x1908e3){const _0x840c23=a126_0x2d4b61,_0xfdd845={'JKdcg':function(_0x462f71,_0xdf7789){return _0x462f71(_0xdf7789);}},_0x41ac37={};return _0x41ac37['username']=_0x1bbcf1,_0x41ac37['password']=_0x1908e3,{'auth':_0x41ac37,'headers':_0xfdd845[_0x840c23(0x194)](getDefaultHeaders,![])};}static async['generateBuildUpstreamData'](_0x18db68,_0x2250a4){const _0x1c74bc=a126_0x2d4b61,_0x5740ea={'bcevU':'Generating\x20build\x20upstream\x20data\x20for\x20TestHub','JjOxm':function(_0x3e0484,_0x296e15){return _0x3e0484(_0x296e15);}};logger['debug'](_0x5740ea[_0x1c74bc(0x1da)]);const _0x535d16={'project_name':_0x18db68['projectName']||'','name':_0x18db68[_0x1c74bc(0x1d4)]||path['basename'](path[_0x1c74bc(0x1c2)](process[_0x1c74bc(0x1d3)]())),'build_identifier':_0x18db68[_0x1c74bc(0x1e2)],'description':_0x18db68[_0x1c74bc(0x1ae)]||'','started_at':new Date()['toISOString'](),'tags':_0x5740ea[_0x1c74bc(0x18e)](getCustomTags,_0x18db68),'host_info':bsSetupHelper[_0x1c74bc(0x18b)](),'ci_info':bsSetupHelper[_0x1c74bc(0x1dd)](),'build_run_identifier':process[_0x1c74bc(0x1b3)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process['env'][_0x1c74bc(0x1ea)]||![],'linked_build_uuid':process['env'][_0x1c74bc(0x1ff)]||'','version_control':await bsSetupHelper['getGitMetaData'](),'accessibility':this[_0x1c74bc(0x1d2)](_0x18db68),'framework_details':testhubUtils[_0x1c74bc(0x17e)](_0x18db68,_0x2250a4),'product_map':testhubUtils[_0x1c74bc(0x19f)](_0x18db68),'browserstackAutomation':bsSetupHelper[_0x1c74bc(0x189)](),'grouping_identifier':process[_0x1c74bc(0x1b3)][_0x1c74bc(0x19c)],'test_orchestration':testhubUtils[_0x1c74bc(0x1c6)](_0x18db68)};if(bsSetupHelper[_0x1c74bc(0x1e6)]()[_0x1c74bc(0x1b5)]||bsSetupHelper[_0x1c74bc(0x1e6)]()['lcnc']){const _0x426761={};_0x426761[_0x1c74bc(0x1a0)]=process[_0x1c74bc(0x1b3)][_0x1c74bc(0x17f)],_0x426761['token']=process['env'][_0x1c74bc(0x196)],_0x535d16['central_scanner']=_0x426761;}return _0x535d16;}static[a126_0x2d4b61(0x1f0)](_0x5b1300,_0x50895c,_0x5bd965){const _0x3f7960=a126_0x2d4b61,_0x421d3f={'LxAPj':function(_0x1f45b9){return _0x1f45b9();},'PHdYn':function(_0x22397d,_0x1778c2){return _0x22397d&&_0x1778c2;},'XwZPS':'true','jvfhW':_0x3f7960(0x181),'NQLEh':function(_0x862a4e,_0x4199e5){return _0x862a4e&&_0x4199e5;}},_0x738806={};if(_0x421d3f['LxAPj'](isTestObservabilitySession)){const [_0x5e0571,_0x88bb1c,_0x31f7af]=testhubUtils['setTestObservabilityVariables'](_0x50895c[_0x3f7960(0x1c1)],_0x5bd965[_0x3f7960(0x183)]);if(_0x421d3f[_0x3f7960(0x1e3)](_0x5e0571,_0x88bb1c)){const _0x4e8afb={};_0x4e8afb[_0x3f7960(0x1d1)]=_0x5e0571,_0x4e8afb[_0x3f7960(0x184)]=_0x88bb1c,_0x4e8afb[_0x3f7960(0x192)]=_0x31f7af,_0x738806[testHubConstants[_0x3f7960(0x185)]]=_0x4e8afb,process[_0x3f7960(0x1b3)][_0x3f7960(0x19d)]=_0x421d3f[_0x3f7960(0x1c8)];}else _0x738806[testHubConstants[_0x3f7960(0x185)]]={},process[_0x3f7960(0x1b3)][_0x3f7960(0x19d)]=_0x421d3f[_0x3f7960(0x1c7)];}else process['env'][_0x3f7960(0x19d)]=_0x421d3f[_0x3f7960(0x1c7)];const [_0x119d5b,_0x177934]=testhubUtils[_0x3f7960(0x1b8)](_0x50895c[_0x3f7960(0x1c1)]);if(_0x421d3f['NQLEh'](_0x119d5b,_0x177934)){const _0x331a35={};_0x331a35['authToken']=_0x119d5b,_0x331a35[_0x3f7960(0x184)]=_0x177934,_0x738806[testHubConstants[_0x3f7960(0x1a9)]]=_0x331a35,process['env'][_0x3f7960(0x18c)]=_0x421d3f[_0x3f7960(0x1c8)];}else _0x738806[testHubConstants[_0x3f7960(0x1a9)]]={},process['env'][_0x3f7960(0x18c)]=_0x421d3f[_0x3f7960(0x1c7)];return testhubUtils[_0x3f7960(0x1f1)](_0x50895c[_0x3f7960(0x1c1)]),logger['info'](_0x3f7960(0x1cd)+process[_0x3f7960(0x1b3)]['BROWSERSTACK_TESTHUB_UUID']),_0x738806;}static async[a126_0x2d4b61(0x1ec)](_0x54a51f){const _0x13612f=a126_0x2d4b61,_0x200af2={'AXKAa':function(_0x301d98,_0x851508){return _0x301d98===_0x851508;},'pbFLu':'false','GLeVl':function(_0x43528a,_0x4ae274){return _0x43528a===_0x4ae274;},'Mabtu':_0x13612f(0x18a),'YXciI':'EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','YdYVF':_0x13612f(0x179),'QEQqt':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','UaSud':'finished_metadata','dPZid':_0x13612f(0x1bf),'MPEQx':function(_0x10ded4){return _0x10ded4();},'gptgR':function(_0x1776bf,_0x213549,_0x1318fa,_0x35092b,_0x17f9d0,_0x21d421){return _0x1776bf(_0x213549,_0x1318fa,_0x35092b,_0x17f9d0,_0x21d421);},'eRCGC':_0x13612f(0x199),'WRKfI':'stopBuildUpstream\x20event\x20successful!','zZUVx':'success'};await PerformanceTester[_0x13612f(0x1c3)](PerformanceEvents['STOP'],async()=>{const _0x365df8=_0x13612f;if(_0x200af2['AXKAa'](process[_0x365df8(0x1b3)][_0x365df8(0x1ab)],_0x200af2['pbFLu'])||TestHubHandler['buildStopSent']||bsSetupHelper[_0x365df8(0x1d0)](process[_0x365df8(0x1b3)][testHubConstants['ENV_VAR'][_0x365df8(0x1e0)]]))return;TestHubHandler[_0x365df8(0x1a8)]=!![];if(BrowserstackCLI['getInstance']()[_0x365df8(0x1e9)]())return;await this[_0x365df8(0x17a)](),await RequestQueueHandler[_0x365df8(0x19b)]()[_0x365df8(0x1a7)](),await SessionHandler[_0x365df8(0x1ce)]();if(_0x200af2[_0x365df8(0x1f2)](process[_0x365df8(0x1b3)][testHubConstants[_0x365df8(0x17c)][_0x365df8(0x1e0)]],_0x200af2['Mabtu'])||_0x200af2[_0x365df8(0x187)](process[_0x365df8(0x1b3)][testHubConstants[_0x365df8(0x17c)][_0x365df8(0x1a5)]],_0x200af2[_0x365df8(0x1bd)])){logger[_0x365df8(0x1bc)](_0x200af2[_0x365df8(0x1a3)]);const _0x1da284={};return _0x1da284[_0x365df8(0x18d)]=_0x200af2['YdYVF'],_0x1da284[_0x365df8(0x17b)]=_0x200af2[_0x365df8(0x1e5)],_0x1da284;}const _0x115d10={'finished_at':new Date()[_0x365df8(0x186)](),'finished_metadata':[]};!!_0x54a51f&&_0x115d10[_0x200af2[_0x365df8(0x1e7)]][_0x365df8(0x1f4)]({'reason':_0x200af2['dPZid'],'signal':_0x54a51f,'failure_data':''});const _0x248c75={'headers':_0x200af2[_0x365df8(0x1ee)](getDefaultHeaders)};try{const _0x2e18a4=await _0x200af2[_0x365df8(0x17d)](nodeRequest,_0x200af2[_0x365df8(0x1de)],_0x365df8(0x1ac)+process['env'][testHubConstants[_0x365df8(0x17c)][_0x365df8(0x1a5)]]+'/stop',_0x115d10,_0x248c75,![]);if(_0x2e18a4[_0x365df8(0x1c1)]&&_0x2e18a4[_0x365df8(0x1c1)][_0x365df8(0x179)]){const _0x245b83={};_0x245b83[_0x365df8(0x17b)]=_0x2e18a4['data'][_0x365df8(0x179)];throw _0x245b83;}else{logger[_0x365df8(0x1bc)](_0x200af2['WRKfI']);const _0x44211d={};return _0x44211d['status']=_0x200af2['zZUVx'],_0x44211d['message']='',_0x44211d;}}catch(_0x38a559){_0x38a559[_0x365df8(0x1cf)]?logger[_0x365df8(0x1bc)](_0x365df8(0x1fc)+_0x38a559[_0x365df8(0x1cf)][_0x365df8(0x18d)]+'\x20'+_0x38a559['response']['statusText']+'\x20'+JSON[_0x365df8(0x176)](_0x38a559['response'][_0x365df8(0x1c1)])):logger[_0x365df8(0x1bc)](_0x365df8(0x1fc)+(_0x38a559[_0x365df8(0x17b)]||_0x38a559));const _0x2453e2={};return _0x2453e2[_0x365df8(0x18d)]=_0x200af2['YdYVF'],_0x2453e2[_0x365df8(0x17b)]=_0x38a559[_0x365df8(0x17b)]||_0x38a559[_0x365df8(0x1cf)]?_0x38a559[_0x365df8(0x1cf)][_0x365df8(0x18d)]+':'+_0x38a559[_0x365df8(0x1cf)]['statusText']:_0x38a559,_0x2453e2;}})();}}function a126_0xe17e(){const _0x5138ea=['getUserName','getAccessibilityValueFromYml','PUT','config','getInstance','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER','BROWSERSTACK_TEST_OBSERVABILITY','START','getProductMapForBuildStartCall','job_id','4UPxXbQ','507519moZSmW','YXciI','../helper','BROWSERSTACK_TESTHUB_UUID','YacqE','uploadPending','buildStopSent','ACCESSIBILITY','JqHtj','BS_TESTOPS_BUILD_COMPLETED','api/v1/builds/','12724430LlvJCo','buildDescription','getAccessKey','3970428DAmuQl','percy','exports','env','112374bplerC','central_scanner','ZIQqz','Percy\x20is\x20not\x20supported\x20for\x20','setAccessibilityVariables','add','2813671PTfEDD','LydYi','debug','Mabtu','getTraceFilePaths','user_killed','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','data','resolve','measureWrapper','logBuildError','oBUUz','getTestOrchestrationBuildStartData','jvfhW','XwZPS','setupPercy','IRguw','includes','accessibility','Testhub\x20started\x20with\x20id:\x20','waitForBuildStatus','response','isUndefined','jwt','getAccessibilityOptions','cwd','buildName','zRGjZ','ErGNq','wtbQL','All\x20trace\x20zip\x20send\x20events\x20complete','checkAndSetupPercy','bcevU','../performance/constants','../helper.js','getCiInfo','eRCGC','1938900rXgmVu','BROWSERSTACK_TESTHUB_JWT','PERCY_SUPPORTED_FRAMEWORKS','buildIdentifier','PHdYn','../test-observability/utils','QEQqt','getCentralUser','UaSud','format','isRunning','BROWSERSTACK_RERUN','includeEncodedExtension','stop','POST','MPEQx','accessibilityOptions','extractDataFromResponse','setTestHubCommonMetaInfo','GLeVl','8ezaLJM','push','isAccessibilityEnabled','520056Dmbvbc','assign','winstonLogger','forEach','getConfig','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','../../bin/playwright/reporter/test-details.js','generateBuildUpstreamData','BROWSERSTACK_LINKED_BUILD_UUID','allSettled','framework','../../bin/v2/browserstackCLI','stringify','RdYfU','2acfRxK','error','processTraceZips','message','ENV_VAR','gptgR','getFrameworkDetails','BROWSERSTACK_CENTRAL_SCANNER_JOBID','./constants.js','false','path','auth','buildHashedId','OBSERVABILITY','toISOString','AXKAa','sCZia','isBrowserstackInfra','null','getHostInfo','BROWSERSTACK_ACCESSIBILITY','status','JjOxm','./utils.js','../logger','wJCNY','allowScreenshot','authToken','JKdcg','success','BROWSERSTACK_CENTRAL_SCANNER_JWT'];a126_0xe17e=function(){return _0x5138ea;};return a126_0xe17e();}module[a126_0x2d4b61(0x1b2)]=TestHubHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a127_0x4b49c6=a127_0x1e76;(function(_0x19ba5a,_0x46d36a){const _0x85642c=a127_0x1e76,_0x524817=_0x19ba5a();while(!![]){try{const _0x5eae74=parseInt(_0x85642c(0x15b))/0x1+parseInt(_0x85642c(0x1a9))/0x2*(-parseInt(_0x85642c(0x178))/0x3)+-parseInt(_0x85642c(0x15e))/0x4*(parseInt(_0x85642c(0x160))/0x5)+parseInt(_0x85642c(0x194))/0x6+parseInt(_0x85642c(0x1cb))/0x7+parseInt(_0x85642c(0x180))/0x8+-parseInt(_0x85642c(0x156))/0x9*(-parseInt(_0x85642c(0x12a))/0xa);if(_0x5eae74===_0x46d36a)break;else _0x524817['push'](_0x524817['shift']());}catch(_0x1ddd1){_0x524817['push'](_0x524817['shift']());}}}(a127_0x16fc,0xdd270));const bsSetupHelper=require('../helper'),{isTestObservabilitySession,getFrameworkVersion}=require('../test-observability/utils'),accessibilityHelper=require(a127_0x4b49c6(0x1a7)),logger=require(a127_0x4b49c6(0x168))[a127_0x4b49c6(0x183)],{nestedKeyValue}=require(a127_0x4b49c6(0x11e)),scripts=require(a127_0x4b49c6(0x1bc)),globals=require(a127_0x4b49c6(0x127)),testHubConstants=require('./constants.js'),PWTestDetails=require('../../bin/playwright/reporter/test-details.js'),JestTestDetails=require('../../bin/jest/test-observability/test-details.js'),{FRAMEWORKS}=require('../test-observability/constants.js'),{isTurboScaleSession}=require(a127_0x4b49c6(0x1ad)),OrchestrationUtils=require(a127_0x4b49c6(0x1b9));function a127_0x16fc(){const _0x404f4c=['product_map','OBSERVABILITY','CREDENTIALS_FOR_CRASH_REPORTING','6949984uqqvBW','XlReQ','toUpperCase','winstonLogger','getTestFrameworkDetails','BROWSERSTACK_TEST_ACCESSIBILITY_YML','hcPTL','uuid','commands','jwt','accessibility','BROWSERSTACK_TESTHUB_JWT','isAccessibilityEnabled','HYkKk','assign','appendTesthubParams','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','env','getTestOrchestrationBuildStartData','AMLdf','8934042BYwyVU','\x20Build\x20creation\x20failed','0|3|1|4|6|5|2','qJSCi','setTestObservabilityVariables','1|3|4|2|0|5','bOVLu','shouldScanTestForAccessibility','platforms','MOCHA','join','zvCQV','info','ACCESS_DENIED','QtGvI','INVALID_CREDENTIALS','handleErrorForObservability','setCurrentTestData','titlePath','../accessibility-automation/helper','getAccessibilityValueFromYml','88myjhrf','build_hashed_id','mJdzi','capabilities','../ats/helper','tLMrq','xbWZI','keys','BS_TESTOPS_BUILD_COMPLETED','setTestHubCommonMetaInfo','VDMcH','ACCESSIBILITY','scopes','eRreu','qhbZL','config','../test-orchestration/orchestrationUtils.js','HjxlK','isTurboScaleSession','../accessibility-automation/scripts.js','lGlXo','percy','handleErrorForAccessibility','length','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','includes','scripts','TDPXM','tKtrZ','HookRunStarted','isBrowserstackInfra','BS_TESTOPS_ALLOW_SCREENSHOTS','nWbra','MvKWq','797895roADnJ','parse','javascript','XFFnQ','eOzAf','CBTSessionCreated','../helper.js','gKfCu','app','isTrue','xiTUa','HVnLC','NqdHO','allow_screenshots','password','../globals.js','ZRlcd','command','90GLqIjJ','TestRunStarted','oRrGu','LogCreated','username','BS_TESTOPS_BUILD_HASHED_ID','ERROR','shouldProcessEventForTesthub','logBuildError','success','setAccessibilityVariables','pAxzD','test_run','BS_TESTOPS_JWT','XZscx','stringify','CODECEPT','isRunning','value','gnDFY','name','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','toString','MMzOF','CRQKT','FcfQa','VKqWq','getCentralUser','debug','RMwDE','KvrZT','BROWSERSTACK_PERCY','isAccessibilityPlatform','true','rBYYK','commandsToWrap','options','znPcN','isUndefined','observability','uploadEventData','mgeQV','HQMQx','VToKn','1047069zivXtc','THvsB','fhdWB','getAccessibilityPlatformValidation','nonBStackInfraA11yChromeOptions','288816QEjHYh','goog:chromeOptions','cBRdJ','68UyIMmA','getFrameworkDetails','399865EShNWo','INUvt','BS_A11Y_JWT','BROWSERSTACK_TESTHUB_UUID','BROWSERSTACK_TESTHUB_UUID:\x20','lbxgt','foNrK','getCurrentTestData','../logger','getGlobal','null','toJson','split','OWlZH','scannerVersion','error','getBuildStartData','getAgentVersion','bstackA11yShouldScan','false','isPercyBuild','YllNP','DEPRECATED','adxgC','105153JTdvpP','RFZGC','kODxq','checkAccessibilityPlatformConfig','accessibilityPlatform'];a127_0x16fc=function(){return _0x404f4c;};return a127_0x16fc();}function a127_0x1e76(_0x176916,_0x5022ee){const _0x16fc85=a127_0x16fc();return a127_0x1e76=function(_0x1e760b,_0x5e7fe6){_0x1e760b=_0x1e760b-0x11a;let _0x2843da=_0x16fc85[_0x1e760b];return _0x2843da;},a127_0x1e76(_0x176916,_0x5022ee);}let testData={};exports['getProductMap']=_0x975365=>{const _0x26a2b1=a127_0x4b49c6,_0x41d3b4={'XlReQ':function(_0x5a0c0e){return _0x5a0c0e();}};let _0x1f4408=![],_0x35d865=![];if(bsSetupHelper[_0x26a2b1(0x1c7)]()&&_0x975365[_0x26a2b1(0x120)])_0x35d865=!![];else bsSetupHelper[_0x26a2b1(0x1c7)]()&&(_0x1f4408=!![]);return Object[_0x26a2b1(0x18e)]({'observability':_0x41d3b4[_0x26a2b1(0x181)](isTestObservabilitySession),'accessibility':exports[_0x26a2b1(0x18c)](_0x975365),'percy':_0x975365['percy']||![],'automate':_0x1f4408,'app_automate':_0x35d865,'turboscale':bsSetupHelper['isTurboScaleSession'](_0x975365)},bsSetupHelper['getCentralUser']());},exports[a127_0x4b49c6(0x15f)]=(_0x205d35,_0x4761f8)=>{const _0x3f92ff=a127_0x4b49c6,_0x162d20={'znPcN':function(_0x6db850,_0x146078){return _0x6db850(_0x146078);},'ASNmt':_0x3f92ff(0x11a)};return{'frameworkName':_0x4761f8,'frameworkVersion':_0x162d20[_0x3f92ff(0x14f)](getFrameworkVersion,_0x4761f8),'sdkVersion':bsSetupHelper[_0x3f92ff(0x171)](),'language':_0x162d20['ASNmt'],'testFramework':bsSetupHelper[_0x3f92ff(0x184)](_0x205d35,_0x4761f8)};},exports['setPercyFlag']=_0x58002f=>{const _0xa11bd6=a127_0x4b49c6,_0x27dd53={};_0x27dd53[_0xa11bd6(0x155)]='false',_0x27dd53[_0xa11bd6(0x18d)]=_0xa11bd6(0x14b);const _0x5e5c08=_0x27dd53;process[_0xa11bd6(0x191)][_0xa11bd6(0x149)]=_0x5e5c08[_0xa11bd6(0x155)],bsSetupHelper[_0xa11bd6(0x121)](_0x58002f[_0xa11bd6(0x1b8)]['percy'])&&(!_0x58002f[_0xa11bd6(0x1be)]||!_0x58002f['percy'][_0xa11bd6(0x13b)]())&&(process[_0xa11bd6(0x191)][_0xa11bd6(0x149)]=_0x5e5c08[_0xa11bd6(0x18d)]);},exports[a127_0x4b49c6(0x174)]=()=>{const _0x291b69=a127_0x4b49c6;return bsSetupHelper['isTrue'](process[_0x291b69(0x191)][_0x291b69(0x149)]);},exports[a127_0x4b49c6(0x18c)]=(_0x198185={})=>{const _0x4b03b3=a127_0x4b49c6,_0x4054d1={};_0x4054d1[_0x4b03b3(0x144)]=function(_0x45ca63,_0xcab6f6){return _0x45ca63!==_0xcab6f6;},_0x4054d1[_0x4b03b3(0x147)]=function(_0x325722,_0x17afe6){return _0x325722===_0x17afe6;},_0x4054d1[_0x4b03b3(0x128)]='true',_0x4054d1[_0x4b03b3(0x123)]=function(_0x31d72f,_0x13e65f){return _0x31d72f>_0x13e65f;},_0x4054d1['gKfCu']=function(_0x1d0630,_0x36a990){return _0x1d0630===_0x36a990;};const _0xca75b9=_0x4054d1;if(_0xca75b9['VKqWq'](process[_0x4b03b3(0x191)]['BROWSERSTACK_ACCESSIBILITY'],undefined))return bsSetupHelper[_0x4b03b3(0x121)](process[_0x4b03b3(0x191)]['BROWSERSTACK_ACCESSIBILITY']);let _0x516221=_0xca75b9[_0x4b03b3(0x147)](process[_0x4b03b3(0x191)][_0x4b03b3(0x185)],_0xca75b9[_0x4b03b3(0x128)]);return _0xca75b9[_0x4b03b3(0x123)](Object['keys'](_0x198185)[_0x4b03b3(0x1c0)],0x0)&&(process[_0x4b03b3(0x191)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=accessibilityHelper[_0x4b03b3(0x17b)](_0x198185)),_0x516221=_0x516221||_0xca75b9[_0x4b03b3(0x11f)](process[_0x4b03b3(0x191)][_0x4b03b3(0x13f)],_0xca75b9['ZRlcd']),_0x516221;},exports[a127_0x4b49c6(0x198)]=(_0x2158f1,_0x4d2ae1)=>{const _0x3c6152=a127_0x4b49c6,_0x476584={'wvOWd':function(_0x537185){return _0x537185();},'HjxlK':_0x3c6152(0x199),'gnDFY':'true','HdTxy':function(_0x3a8374,_0x21465d,_0x2b0046){return _0x3a8374(_0x21465d,_0x2b0046);},'qhbZL':'observability','rBYYK':'options'};if(!_0x2158f1||!_0x2158f1[_0x3c6152(0x151)])return exports[_0x3c6152(0x1a4)](),[null,null,null];if(!_0x2158f1[_0x3c6152(0x151)][_0x3c6152(0x133)])return exports['handleErrorForObservability'](_0x2158f1[_0x3c6152(0x151)]),[null,null,null];if(_0x476584['wvOWd'](isTestObservabilitySession)){const _0x3f609e=_0x476584[_0x3c6152(0x1ba)]['split']('|');let _0x5c4976=0x0;while(!![]){switch(_0x3f609e[_0x5c4976++]){case'0':logger[_0x3c6152(0x146)]('[OBSERVABILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20'+_0x2158f1[_0x3c6152(0x1aa)]);continue;case'1':process['env']['BS_TESTOPS_BUILD_COMPLETED']=_0x476584[_0x3c6152(0x13d)];continue;case'2':_0x476584['HdTxy'](nestedKeyValue,_0x2158f1,[_0x476584[_0x3c6152(0x1b7)],_0x476584[_0x3c6152(0x14c)]])&&(process[_0x3c6152(0x191)][_0x3c6152(0x1c8)]=_0x2158f1[_0x3c6152(0x151)]['options'][_0x3c6152(0x125)][_0x3c6152(0x140)]());continue;case'3':if(_0x2158f1[_0x3c6152(0x189)]){process['env'][_0x3c6152(0x137)]=_0x2158f1[_0x3c6152(0x189)];const _0x54b180={};_0x54b180[_0x3c6152(0x12e)]=_0x4d2ae1['username'],_0x54b180[_0x3c6152(0x126)]=_0x4d2ae1[_0x3c6152(0x126)],process[_0x3c6152(0x191)][_0x3c6152(0x17f)]=JSON[_0x3c6152(0x139)](_0x54b180);}continue;case'4':_0x2158f1['build_hashed_id']&&(process['env'][_0x3c6152(0x12f)]=_0x2158f1[_0x3c6152(0x1aa)]);continue;case'5':return[_0x2158f1[_0x3c6152(0x189)],_0x2158f1['build_hashed_id'],process['env'][_0x3c6152(0x1c8)]];}break;}}return[null,null,null];},exports[a127_0x4b49c6(0x134)]=_0x127c48=>{const _0x14b3c4=a127_0x4b49c6,_0x51a138={'YllNP':function(_0x2ff122,_0x748621,_0x151119){return _0x2ff122(_0x748621,_0x151119);},'CRQKT':_0x14b3c4(0x18a),'XZscx':'options','MvKWq':function(_0xfda0da,_0x312cc2,_0x11ae40,_0x5c488d){return _0xfda0da(_0x312cc2,_0x11ae40,_0x5c488d);},'KvrZT':_0x14b3c4(0x13e),'adxgC':_0x14b3c4(0x13c),'XFFnQ':_0x14b3c4(0x129),'OWlZH':'commands','ufiWR':_0x14b3c4(0x15a),'EQytY':_0x14b3c4(0x15c)};if(!_0x127c48[_0x14b3c4(0x18a)])return exports['handleErrorForAccessibility'](),[null,null];if(!_0x127c48['accessibility'][_0x14b3c4(0x133)])return exports[_0x14b3c4(0x1bf)](_0x127c48[_0x14b3c4(0x18a)]),[null,null];if(_0x51a138[_0x14b3c4(0x175)](nestedKeyValue,_0x127c48,[_0x51a138[_0x14b3c4(0x142)],_0x51a138[_0x14b3c4(0x138)]])){const {accessibilityToken:_0x3050fe,scannerVersion:_0x22438b}=_0x51a138[_0x14b3c4(0x1ca)](jsonifyAccessibilityArray,_0x127c48['accessibility'][_0x14b3c4(0x14e)][_0x14b3c4(0x1ac)],_0x51a138[_0x14b3c4(0x148)],_0x51a138[_0x14b3c4(0x177)]),_0x772af6={'scripts':_0x51a138[_0x14b3c4(0x1ca)](jsonifyAccessibilityArray,_0x127c48['accessibility'][_0x14b3c4(0x14e)][_0x14b3c4(0x1c3)],_0x51a138[_0x14b3c4(0x148)],_0x51a138[_0x14b3c4(0x11b)])};_0x772af6[_0x51a138[_0x14b3c4(0x16d)]]=_0x127c48[_0x14b3c4(0x18a)]['options'][_0x14b3c4(0x14d)][_0x14b3c4(0x188)];const _0x2992d9=_0x51a138['MvKWq'](jsonifyAccessibilityArray,_0x127c48[_0x14b3c4(0x18a)][_0x14b3c4(0x14e)][_0x14b3c4(0x1ac)],_0x51a138[_0x14b3c4(0x148)],_0x51a138[_0x14b3c4(0x177)]);_0x772af6[_0x51a138['ufiWR']]=_0x2992d9[_0x51a138['EQytY']],scripts['parseFromJson'](_0x772af6),scripts[_0x14b3c4(0x16b)]();let _0x2912f2=process[_0x14b3c4(0x191)][_0x14b3c4(0x1c1)];return _0x2912f2=!!_0x2912f2?JSON[_0x14b3c4(0x1cc)](_0x2912f2):{},_0x2912f2[_0x14b3c4(0x16e)]=_0x22438b,process['env'][_0x14b3c4(0x1c1)]=JSON[_0x14b3c4(0x139)](_0x2912f2),process[_0x14b3c4(0x191)][_0x14b3c4(0x162)]=_0x3050fe,logger['debug'](_0x14b3c4(0x190)+_0x127c48[_0x14b3c4(0x1aa)]),[_0x3050fe,_0x127c48[_0x14b3c4(0x1aa)]];}return[null,null];},exports[a127_0x4b49c6(0x1a4)]=_0x765e9d=>{const _0x519194=a127_0x4b49c6,_0x3214c8={};_0x3214c8[_0x519194(0x122)]=_0x519194(0x196),_0x3214c8[_0x519194(0x193)]=_0x519194(0x16a),_0x3214c8['QtGvI']=_0x519194(0x173);const _0x3163af=_0x3214c8,_0x1236c1=_0x3163af[_0x519194(0x122)][_0x519194(0x16c)]('|');let _0x366943=0x0;while(!![]){switch(_0x1236c1[_0x366943++]){case'0':process[_0x519194(0x191)][_0x519194(0x163)]=_0x3163af[_0x519194(0x193)];continue;case'1':process['env'][_0x519194(0x1b1)]=_0x3163af[_0x519194(0x1a2)];continue;case'2':exports['logBuildError'](_0x765e9d,testHubConstants[_0x519194(0x17e)]);continue;case'3':process[_0x519194(0x191)]['BROWSERSTACK_TESTHUB_JWT']=_0x3163af[_0x519194(0x193)];continue;case'4':process['env'][_0x519194(0x137)]=_0x3163af[_0x519194(0x193)];continue;case'5':process[_0x519194(0x191)][_0x519194(0x1c8)]=_0x3163af[_0x519194(0x193)];continue;case'6':process[_0x519194(0x191)][_0x519194(0x12f)]=_0x3163af[_0x519194(0x193)];continue;}break;}},exports[a127_0x4b49c6(0x1bf)]=_0x42a833=>{const _0x207e16=a127_0x4b49c6,_0x476ef6={};_0x476ef6[_0x207e16(0x157)]='2|1|3|0|4',_0x476ef6[_0x207e16(0x1b3)]='false',_0x476ef6[_0x207e16(0x17a)]=_0x207e16(0x16a);const _0x5eb5c7=_0x476ef6,_0x34b874=_0x5eb5c7[_0x207e16(0x157)][_0x207e16(0x16c)]('|');let _0x4598fb=0x0;while(!![]){switch(_0x34b874[_0x4598fb++]){case'0':process[_0x207e16(0x191)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=_0x5eb5c7['VDMcH'];continue;case'1':process[_0x207e16(0x191)]['BROWSERSTACK_TESTHUB_JWT']=_0x5eb5c7[_0x207e16(0x17a)];continue;case'2':process[_0x207e16(0x191)][_0x207e16(0x163)]=_0x5eb5c7[_0x207e16(0x17a)];continue;case'3':process[_0x207e16(0x191)][_0x207e16(0x185)]=_0x5eb5c7[_0x207e16(0x1b3)];continue;case'4':exports['logBuildError'](_0x42a833,testHubConstants[_0x207e16(0x1b4)]);continue;}break;}},exports[a127_0x4b49c6(0x132)]=(_0x1ce715,_0x5290ac='')=>{const _0x652322=a127_0x4b49c6,_0x4a57e7={};_0x4a57e7['eOzAf']=function(_0x525560,_0x3a5278){return _0x525560===_0x3a5278;};const _0x141fcf=_0x4a57e7;if(_0x141fcf[_0x652322(0x11c)](_0x1ce715,undefined)){logger[_0x652322(0x16f)](_0x5290ac[_0x652322(0x182)]()+_0x652322(0x195));return;}for(const _0x4a8bb0 of _0x1ce715['errors']){const _0x459044=_0x4a8bb0['key'],_0x2e4c57=_0x4a8bb0['message'];if(_0x2e4c57)switch(_0x459044){case testHubConstants[_0x652322(0x130)][_0x652322(0x1a3)]:logger[_0x652322(0x16f)](_0x2e4c57);break;case testHubConstants[_0x652322(0x130)][_0x652322(0x1a1)]:logger[_0x652322(0x1a0)](_0x2e4c57);break;case testHubConstants[_0x652322(0x130)][_0x652322(0x176)]:logger[_0x652322(0x16f)](_0x2e4c57);break;default:logger[_0x652322(0x16f)](_0x2e4c57);}}};const jsonifyAccessibilityArray=(_0x1ce0d9,_0x85b232,_0x38cdf6)=>{const _0x4f21b1={};return _0x1ce0d9['forEach'](_0x49f018=>{_0x4f21b1[_0x49f018[_0x85b232]]=_0x49f018[_0x38cdf6];}),_0x4f21b1;};exports[a127_0x4b49c6(0x1b2)]=_0xc4a58a=>{const _0x3516f3=a127_0x4b49c6;_0xc4a58a[_0x3516f3(0x189)]&&(process[_0x3516f3(0x191)][_0x3516f3(0x18b)]=_0xc4a58a[_0x3516f3(0x189)]);_0xc4a58a[_0x3516f3(0x1aa)]&&(process['env'][_0x3516f3(0x163)]=_0xc4a58a[_0x3516f3(0x1aa)],logger[_0x3516f3(0x146)](_0x3516f3(0x164)+_0xc4a58a[_0x3516f3(0x1aa)]));;},exports[a127_0x4b49c6(0x131)]=(_0x4284a1='',_0x211731='')=>{const _0x2b2c3d=a127_0x4b49c6,_0x533b8e={'QJBFN':function(_0x4c3818){return _0x4c3818();},'mjNMX':function(_0x1e7d50,_0x4a008e){return _0x1e7d50===_0x4a008e;},'NqdHO':_0x2b2c3d(0x152),'foNrK':_0x2b2c3d(0x12d),'qJSCi':_0x2b2c3d(0x11d),'mgeQV':function(_0x365704){return _0x365704();},'zvCQV':_0x2b2c3d(0x1c6),'mJdzi':'HookRunFinished','JzZpU':function(_0x4e1999){return _0x4e1999();}};if(exports[_0x2b2c3d(0x174)]()&&!exports[_0x2b2c3d(0x18c)]()&&!_0x533b8e['QJBFN'](isTestObservabilitySession)){if(_0x533b8e['mjNMX'](_0x211731,_0x533b8e[_0x2b2c3d(0x124)]))return![];if([_0x533b8e[_0x2b2c3d(0x166)],_0x533b8e[_0x2b2c3d(0x197)]][_0x2b2c3d(0x1c2)](_0x4284a1))return![];return!![];}if(exports[_0x2b2c3d(0x18c)]()&&!_0x533b8e[_0x2b2c3d(0x153)](isTestObservabilitySession)){if([_0x533b8e[_0x2b2c3d(0x19f)],_0x533b8e[_0x2b2c3d(0x1ab)],_0x533b8e[_0x2b2c3d(0x166)]][_0x2b2c3d(0x1c2)](_0x4284a1))return![];return!![];}return exports['isAccessibilityEnabled']()||_0x533b8e['JzZpU'](isTestObservabilitySession)||exports[_0x2b2c3d(0x174)]();},exports[a127_0x4b49c6(0x18f)]=(_0x478679,_0x198eb9,_0x2331a5='',_0x41739d)=>{const _0x38a270=a127_0x4b49c6,_0x56996a={};_0x56996a[_0x38a270(0x1b6)]=_0x38a270(0x1c6),_0x56996a[_0x38a270(0x186)]='HookRunFinished',_0x56996a[_0x38a270(0x1c9)]=function(_0x53e2a4,_0x15f159){return _0x53e2a4===_0x15f159;},_0x56996a['INUvt']=_0x38a270(0x172),_0x56996a[_0x38a270(0x143)]='isAccessibilityPlatform',_0x56996a['lbxgt']=_0x38a270(0x18a),_0x56996a[_0x38a270(0x12c)]=function(_0x1b9ad5,_0x1cb948){return _0x1b9ad5&&_0x1cb948;},_0x56996a['pAxzD']=function(_0x1894ad,_0x1544ab){return _0x1894ad+_0x1544ab;},_0x56996a[_0x38a270(0x179)]=function(_0x111cb4,_0x28fc47){return _0x111cb4+_0x28fc47;},_0x56996a[_0x38a270(0x154)]=_0x38a270(0x12b),_0x56996a['nXtIX']=function(_0x8d875d,_0x18c4d3){return _0x8d875d&&_0x18c4d3;},_0x56996a['tLMrq']=function(_0x61fc60,_0x2edede){return _0x61fc60===_0x2edede;},_0x56996a[_0x38a270(0x15d)]=function(_0x34803f,_0x3aad3d){return _0x34803f&&_0x3aad3d;},_0x56996a['tKtrZ']=_0x38a270(0x17d);const _0x2d3b7b=_0x56996a;if(![_0x2d3b7b['eRreu'],_0x2d3b7b[_0x38a270(0x186)]][_0x38a270(0x1c2)](_0x198eb9)&&exports['isAccessibilityEnabled']()){const _0x39c159={};if(_0x2d3b7b[_0x38a270(0x1c9)](_0x41739d,FRAMEWORKS[_0x38a270(0x19d)])){const _0x489957=globals[_0x38a270(0x169)](_0x2d3b7b['INUvt'])||accessibilityHelper[_0x38a270(0x19b)](_0x2331a5[_0x38a270(0x1a6)](),!![]),_0x3782d7=globals[_0x38a270(0x169)](_0x2d3b7b['FcfQa']);_0x39c159[_0x2d3b7b[_0x38a270(0x165)]]=_0x2d3b7b[_0x38a270(0x12c)](_0x3782d7,_0x489957);}if(_0x2d3b7b[_0x38a270(0x1c9)](_0x41739d,FRAMEWORKS['JEST'])){const _0x18a84b=_0x2d3b7b[_0x38a270(0x135)](_0x2d3b7b['RFZGC'](_0x478679[_0x38a270(0x1b5)][_0x38a270(0x19e)]('\x20'),'\x20'),_0x2331a5[_0x38a270(0x13e)]),_0x29adcd=globals[_0x38a270(0x169)](_0x2d3b7b[_0x38a270(0x161)])||accessibilityHelper[_0x38a270(0x19b)](_0x18a84b,![]),_0x449636=browserStackGlobals[_0x38a270(0x14a)];_0x39c159[_0x2d3b7b['lbxgt']]=_0x2d3b7b[_0x38a270(0x12c)](_0x449636,_0x29adcd);}if(_0x2d3b7b[_0x38a270(0x1c9)](_0x41739d,FRAMEWORKS['PLAYWRIGHT'])){if(_0x2d3b7b['nWbra'](_0x198eb9,_0x2d3b7b['HQMQx']))return;_0x39c159[_0x2d3b7b['lbxgt']]=PWTestDetails[_0x38a270(0x159)](_0x478679[_0x38a270(0x187)]);}if(_0x2d3b7b[_0x38a270(0x1c9)](_0x41739d,FRAMEWORKS[_0x38a270(0x13a)])){const _0x4a1fd9=accessibilityHelper[_0x38a270(0x19b)](_0x2331a5[_0x38a270(0x1a6)](),!![]),_0x2fab91=global[_0x38a270(0x17c)];_0x39c159[_0x2d3b7b[_0x38a270(0x165)]]=_0x2d3b7b['nXtIX'](_0x2fab91,_0x4a1fd9);}if(_0x2d3b7b[_0x38a270(0x1ae)](_0x41739d,FRAMEWORKS['CUCUMBER'])){const _0x3d534a=accessibilityHelper[_0x38a270(0x19b)](null,![],_0x478679['tags']),_0x5188be=globals[_0x38a270(0x169)](_0x2d3b7b['FcfQa']);_0x39c159[_0x2d3b7b[_0x38a270(0x165)]]=_0x2d3b7b[_0x38a270(0x15d)](_0x5188be,_0x3d534a);}_0x478679[_0x2d3b7b[_0x38a270(0x1c5)]]=_0x39c159;}},exports[a127_0x4b49c6(0x167)]=_0x28417c=>{const _0x1a4539=a127_0x4b49c6,_0x3c7377={};_0x3c7377[_0x1a4539(0x158)]=function(_0x40d903,_0x1bc747){return _0x40d903>_0x1bc747;},_0x3c7377[_0x1a4539(0x19a)]=function(_0x431835,_0x1dfda3){return _0x431835>_0x1dfda3;};const _0x55478d=_0x3c7377;let _0x1a84be={};if(_0x55478d[_0x1a4539(0x158)](Object[_0x1a4539(0x1b0)](testData)[_0x1a4539(0x1c0)],0x0))return testData;_0x1a84be=JestTestDetails['getTestData']();if(_0x55478d[_0x1a4539(0x19a)](Object[_0x1a4539(0x1b0)](_0x1a84be)[_0x1a4539(0x1c0)],0x0))return _0x1a84be;return _0x1a84be;},exports[a127_0x4b49c6(0x1a5)]=(_0x3410f0,_0x38f944={})=>{const _0x15b9ae=a127_0x4b49c6;if(bsSetupHelper[_0x15b9ae(0x150)](_0x38f944[_0x15b9ae(0x136)]))return;switch(_0x3410f0){case FRAMEWORKS['MOCHA']:testData=_0x38f944[_0x15b9ae(0x136)];break;case FRAMEWORKS['JEST']:JestTestDetails['setTestData'](_0x38f944[_0x15b9ae(0x136)]);break;default:break;}},exports[a127_0x4b49c6(0x1a8)]=_0x1dfb79=>{const _0x34149b=a127_0x4b49c6,_0x168ef2={};_0x168ef2[_0x34149b(0x1c4)]=function(_0x57cbd5,_0x310ac8){return _0x57cbd5!==_0x310ac8;},_0x168ef2[_0x34149b(0x1bd)]=function(_0x3b69c3,_0x5bfaae){return _0x3b69c3!==_0x5bfaae;},_0x168ef2[_0x34149b(0x141)]=function(_0x12baf2,_0x286f09){return _0x12baf2!==_0x286f09;};const _0x18a83e=_0x168ef2;if(_0x18a83e[_0x34149b(0x1c4)](_0x1dfb79[_0x34149b(0x18a)],null)&&_0x18a83e[_0x34149b(0x1bd)](_0x1dfb79['accessibility'],undefined))return _0x1dfb79[_0x34149b(0x18a)];let _0x237390=![],_0x2d25f3=![];if(_0x1dfb79['platforms'])for(const _0x5dad73 of _0x1dfb79[_0x34149b(0x19c)]){_0x18a83e[_0x34149b(0x141)](_0x5dad73[_0x34149b(0x18a)],null)&&_0x18a83e[_0x34149b(0x141)](_0x5dad73[_0x34149b(0x18a)],undefined)&&(_0x237390=_0x237390||bsSetupHelper['isTrue'](_0x5dad73[_0x34149b(0x18a)]),_0x2d25f3=!![]);}if(_0x2d25f3)return _0x237390;return null;},exports[a127_0x4b49c6(0x192)]=_0x3b2963=>{const _0x41f5b9=a127_0x4b49c6,_0x5a8853=new OrchestrationUtils(_0x3b2963);return _0x5a8853[_0x41f5b9(0x170)]();},exports['getProductMapForBuildStartCall']=_0x33640f=>{const _0x2e3740=a127_0x4b49c6,_0x585ae5={'xbWZI':function(_0x285c24){return _0x285c24();}};let _0x4285ef=![],_0x1ca8d8=![];if(bsSetupHelper[_0x2e3740(0x1c7)]()&&_0x33640f['app'])_0x1ca8d8=!![];else bsSetupHelper[_0x2e3740(0x1c7)]()&&(_0x4285ef=!![]);return Object[_0x2e3740(0x18e)]({'observability':_0x585ae5[_0x2e3740(0x1af)](isTestObservabilitySession),'accessibility':exports[_0x2e3740(0x1a8)](_0x33640f),'percy':_0x33640f[_0x2e3740(0x1be)]||![],'automate':_0x4285ef,'app_automate':_0x1ca8d8,'turboscale':bsSetupHelper[_0x2e3740(0x1bb)](_0x33640f)},bsSetupHelper[_0x2e3740(0x145)]());};
|
|
1
|
+
const a127_0x47dc78=a127_0x48db;(function(_0x34e2bb,_0x5a31c2){const _0x5d3b39=a127_0x48db,_0x515ff4=_0x34e2bb();while(!![]){try{const _0x33cbd7=-parseInt(_0x5d3b39(0xcd))/0x1+parseInt(_0x5d3b39(0x124))/0x2*(-parseInt(_0x5d3b39(0x139))/0x3)+parseInt(_0x5d3b39(0x138))/0x4*(parseInt(_0x5d3b39(0x10b))/0x5)+-parseInt(_0x5d3b39(0x113))/0x6+-parseInt(_0x5d3b39(0x117))/0x7*(parseInt(_0x5d3b39(0x108))/0x8)+parseInt(_0x5d3b39(0xbe))/0x9+parseInt(_0x5d3b39(0xf3))/0xa;if(_0x33cbd7===_0x5a31c2)break;else _0x515ff4['push'](_0x515ff4['shift']());}catch(_0x1e0287){_0x515ff4['push'](_0x515ff4['shift']());}}}(a127_0x2112,0x8b785));const bsSetupHelper=require(a127_0x47dc78(0xed)),{isTestObservabilitySession,getFrameworkVersion}=require(a127_0x47dc78(0xdc)),accessibilityHelper=require('../accessibility-automation/helper'),logger=require('../logger')[a127_0x47dc78(0x9e)],{nestedKeyValue}=require('../helper.js'),scripts=require(a127_0x47dc78(0x140)),globals=require('../globals.js'),testHubConstants=require(a127_0x47dc78(0xff)),PWTestDetails=require(a127_0x47dc78(0xe5)),JestTestDetails=require('../../bin/jest/test-observability/test-details.js'),{FRAMEWORKS}=require('../test-observability/constants.js'),{isTurboScaleSession}=require(a127_0x47dc78(0xcc)),OrchestrationUtils=require(a127_0x47dc78(0x10f)),constants=require(a127_0x47dc78(0x11c));let testData={};exports[a127_0x47dc78(0xcf)]=_0x4f3637=>{const _0x1e052d=a127_0x47dc78,_0x558d0f={'EkDOA':function(_0x581940){return _0x581940();}};let _0x4470e6=![],_0x442561=![];if(bsSetupHelper[_0x1e052d(0x128)]()&&_0x4f3637[_0x1e052d(0xae)])_0x442561=!![];else bsSetupHelper[_0x1e052d(0x128)]()&&(_0x4470e6=!![]);return Object['assign']({'observability':_0x558d0f[_0x1e052d(0xc7)](isTestObservabilitySession),'accessibility':exports[_0x1e052d(0x123)](_0x4f3637),'percy':_0x4f3637[_0x1e052d(0x122)]||![],'automate':_0x4470e6,'app_automate':_0x442561,'turboscale':bsSetupHelper['isTurboScaleSession'](_0x4f3637)},bsSetupHelper[_0x1e052d(0xd9)]());},exports[a127_0x47dc78(0xdf)]=(_0x28fca1,_0xc6a4b6)=>{const _0x283898=a127_0x47dc78,_0x2c306d={'hofJl':function(_0x539f6a,_0x137c61){return _0x539f6a(_0x137c61);},'nuVFb':_0x283898(0x12c)};return{'frameworkName':_0xc6a4b6,'frameworkVersion':_0x2c306d['hofJl'](getFrameworkVersion,_0xc6a4b6),'sdkVersion':bsSetupHelper[_0x283898(0xd6)](),'language':_0x2c306d['nuVFb'],'testFramework':bsSetupHelper[_0x283898(0xfd)](_0x28fca1,_0xc6a4b6)};},exports[a127_0x47dc78(0x137)]=_0x1da027=>{const _0x36071a=a127_0x47dc78,_0x26aa19={};_0x26aa19[_0x36071a(0x91)]=_0x36071a(0xa7),_0x26aa19['oPGqA']=_0x36071a(0x97);const _0x11b094=_0x26aa19;process['env']['BROWSERSTACK_PERCY']=_0x11b094[_0x36071a(0x91)],bsSetupHelper[_0x36071a(0xd0)](_0x1da027['config'][_0x36071a(0x122)])&&(!_0x1da027[_0x36071a(0x122)]||!_0x1da027[_0x36071a(0x122)][_0x36071a(0xf1)]())&&(process['env'][_0x36071a(0xb0)]=_0x11b094['oPGqA']);},exports[a127_0x47dc78(0x10c)]=()=>{const _0xb51f3=a127_0x47dc78;return bsSetupHelper[_0xb51f3(0xd0)](process[_0xb51f3(0x118)][_0xb51f3(0xb0)]);},exports[a127_0x47dc78(0x123)]=(_0x328c12={})=>{const _0x52bd27=a127_0x47dc78,_0x1bde1a={};_0x1bde1a['iwMbX']=function(_0x4fb5de,_0x1da8c4){return _0x4fb5de!==_0x1da8c4;},_0x1bde1a[_0x52bd27(0x133)]=function(_0x569409,_0x2f7be7){return _0x569409===_0x2f7be7;},_0x1bde1a[_0x52bd27(0x13d)]=_0x52bd27(0x97),_0x1bde1a[_0x52bd27(0x13e)]=function(_0x589fd6,_0x4a39d0){return _0x589fd6>_0x4a39d0;};const _0x2a758a=_0x1bde1a;if(_0x2a758a[_0x52bd27(0x134)](process[_0x52bd27(0x118)]['BROWSERSTACK_ACCESSIBILITY'],undefined))return bsSetupHelper[_0x52bd27(0xd0)](process[_0x52bd27(0x118)][_0x52bd27(0xb1)]);let _0x33ac21=_0x2a758a['yyRIe'](process[_0x52bd27(0x118)][_0x52bd27(0x9c)],_0x2a758a[_0x52bd27(0x13d)]);return _0x2a758a[_0x52bd27(0x13e)](Object[_0x52bd27(0xe9)](_0x328c12)[_0x52bd27(0xfc)],0x0)&&(process[_0x52bd27(0x118)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=accessibilityHelper['checkAccessibilityPlatformConfig'](_0x328c12)),_0x33ac21=_0x33ac21||_0x2a758a[_0x52bd27(0x133)](process[_0x52bd27(0x118)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM'],_0x2a758a[_0x52bd27(0x13d)]),_0x33ac21;},exports[a127_0x47dc78(0x92)]=(_0x436c54,_0x5dd336)=>{const _0x4bafe7=a127_0x47dc78,_0xbd1e21={'OKOEB':function(_0x4c5b1f){return _0x4c5b1f();},'sAZRZ':'4|5|1|2|3|0','ErzKM':function(_0x554b03,_0x2f9b02,_0x1b6628){return _0x554b03(_0x2f9b02,_0x1b6628);},'vQdWg':_0x4bafe7(0x11e),'eQLor':_0x4bafe7(0x144),'Ispyu':_0x4bafe7(0x97)};if(!_0x436c54||!_0x436c54[_0x4bafe7(0x11e)])return exports[_0x4bafe7(0x99)](),[null,null,null];if(!_0x436c54['observability']['success'])return exports[_0x4bafe7(0x99)](_0x436c54[_0x4bafe7(0x11e)]),[null,null,null];if(_0xbd1e21[_0x4bafe7(0x12d)](isTestObservabilitySession)){const _0x4736d8=_0xbd1e21[_0x4bafe7(0x103)][_0x4bafe7(0xe7)]('|');let _0x47cf4e=0x0;while(!![]){switch(_0x4736d8[_0x47cf4e++]){case'0':return[_0x436c54[_0x4bafe7(0xd4)],_0x436c54[_0x4bafe7(0x104)],process[_0x4bafe7(0x118)][_0x4bafe7(0xec)]];case'1':_0x436c54[_0x4bafe7(0x104)]&&(process[_0x4bafe7(0x118)][_0x4bafe7(0x135)]=_0x436c54['build_hashed_id']);continue;case'2':_0xbd1e21['ErzKM'](nestedKeyValue,_0x436c54,[_0xbd1e21[_0x4bafe7(0x105)],_0xbd1e21[_0x4bafe7(0xda)]])&&(process['env'][_0x4bafe7(0xec)]=_0x436c54[_0x4bafe7(0x11e)][_0x4bafe7(0x144)][_0x4bafe7(0x93)][_0x4bafe7(0x136)]());continue;case'3':logger[_0x4bafe7(0x13b)]('['+constants[_0x4bafe7(0xc4)]+_0x4bafe7(0x127)+_0x436c54[_0x4bafe7(0x104)]);continue;case'4':process[_0x4bafe7(0x118)][_0x4bafe7(0x101)]=_0xbd1e21[_0x4bafe7(0x8f)];continue;case'5':if(_0x436c54[_0x4bafe7(0xd4)]){process['env']['BS_TESTOPS_JWT']=_0x436c54[_0x4bafe7(0xd4)];const _0x4ea23b={};_0x4ea23b[_0x4bafe7(0x13c)]=_0x5dd336['username'],_0x4ea23b[_0x4bafe7(0x109)]=_0x5dd336[_0x4bafe7(0x109)],process[_0x4bafe7(0x118)][_0x4bafe7(0x10a)]=JSON[_0x4bafe7(0xd1)](_0x4ea23b);}continue;}break;}}return[null,null,null];},exports['setAccessibilityVariables']=_0x325163=>{const _0x3899e0=a127_0x47dc78,_0x2e8cb4={'IXzUI':function(_0x4f58e0,_0x40d26b,_0x502b27){return _0x4f58e0(_0x40d26b,_0x502b27);},'HNEEZ':_0x3899e0(0xe2),'dfkxu':'options','fyEql':function(_0x3aeaa7,_0x354156,_0xb2d1e4,_0x574c0c){return _0x3aeaa7(_0x354156,_0xb2d1e4,_0x574c0c);},'SktSq':_0x3899e0(0x110),'GhDEz':_0x3899e0(0x11b),'lAzwx':function(_0x137600,_0x20ffab,_0xe94a6,_0xd121a0){return _0x137600(_0x20ffab,_0xe94a6,_0xd121a0);},'XzEQO':_0x3899e0(0x11a),'OfBXi':_0x3899e0(0x12b),'IZsRh':_0x3899e0(0xee),'lpnbA':'goog:chromeOptions'};if(!_0x325163[_0x3899e0(0xe2)])return exports[_0x3899e0(0x145)](),[null,null];if(!_0x325163[_0x3899e0(0xe2)][_0x3899e0(0xe8)])return exports[_0x3899e0(0x145)](_0x325163[_0x3899e0(0xe2)]),[null,null];if(_0x2e8cb4[_0x3899e0(0xe1)](nestedKeyValue,_0x325163,[_0x2e8cb4[_0x3899e0(0xf5)],_0x2e8cb4['dfkxu']])){const {accessibilityToken:_0x5eb646,scannerVersion:_0x41f74e}=_0x2e8cb4[_0x3899e0(0xba)](jsonifyAccessibilityArray,_0x325163[_0x3899e0(0xe2)][_0x3899e0(0x144)]['capabilities'],_0x2e8cb4['SktSq'],_0x2e8cb4['GhDEz']),_0x76cef7={'scripts':_0x2e8cb4['lAzwx'](jsonifyAccessibilityArray,_0x325163[_0x3899e0(0xe2)][_0x3899e0(0x144)][_0x3899e0(0x9f)],_0x2e8cb4[_0x3899e0(0xa3)],_0x2e8cb4[_0x3899e0(0xfe)])};_0x76cef7[_0x2e8cb4[_0x3899e0(0xcb)]]=_0x325163[_0x3899e0(0xe2)][_0x3899e0(0x144)][_0x3899e0(0xc1)]['commands'];const _0x1248fa=_0x2e8cb4[_0x3899e0(0xba)](jsonifyAccessibilityArray,_0x325163[_0x3899e0(0xe2)][_0x3899e0(0x144)][_0x3899e0(0x10e)],_0x2e8cb4[_0x3899e0(0xa3)],_0x2e8cb4[_0x3899e0(0xf7)]);_0x76cef7[_0x2e8cb4[_0x3899e0(0x112)]]=_0x1248fa[_0x2e8cb4['lpnbA']],scripts[_0x3899e0(0xe0)](_0x76cef7),scripts[_0x3899e0(0xc3)]();let _0x10ea46=process['env'][_0x3899e0(0x121)];return _0x10ea46=!!_0x10ea46?JSON[_0x3899e0(0xf0)](_0x10ea46):{},_0x10ea46[_0x3899e0(0x116)]=_0x41f74e,process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x3899e0(0xd1)](_0x10ea46),process['env'][_0x3899e0(0xe3)]=_0x5eb646,logger[_0x3899e0(0x13b)](_0x3899e0(0xc0)+_0x325163[_0x3899e0(0x104)]),[_0x5eb646,_0x325163[_0x3899e0(0x104)]];}return[null,null];},exports[a127_0x47dc78(0x99)]=_0x3340ba=>{const _0x15cd7e=a127_0x47dc78,_0x310c11={};_0x310c11['zHuxP']=_0x15cd7e(0xb3),_0x310c11[_0x15cd7e(0xd5)]=_0x15cd7e(0x111),_0x310c11['ZiqtX']=_0x15cd7e(0xa7);const _0x40987e=_0x310c11,_0x3650b4=_0x40987e[_0x15cd7e(0xd2)][_0x15cd7e(0xe7)]('|');let _0x55f637=0x0;while(!![]){switch(_0x3650b4[_0x55f637++]){case'0':process[_0x15cd7e(0x118)][_0x15cd7e(0x135)]=_0x40987e[_0x15cd7e(0xd5)];continue;case'1':process[_0x15cd7e(0x118)][_0x15cd7e(0xac)]=_0x40987e[_0x15cd7e(0xd5)];continue;case'2':process[_0x15cd7e(0x118)][_0x15cd7e(0xf4)]=_0x40987e['IgvPf'];continue;case'3':exports['logBuildError'](_0x3340ba,testHubConstants[_0x15cd7e(0x119)]);continue;case'4':process[_0x15cd7e(0x118)][_0x15cd7e(0x101)]=_0x40987e[_0x15cd7e(0xc8)];continue;case'5':process[_0x15cd7e(0x118)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x40987e['IgvPf'];continue;case'6':process[_0x15cd7e(0x118)][_0x15cd7e(0xb9)]=_0x40987e['IgvPf'];continue;}break;}},exports[a127_0x47dc78(0x145)]=_0x4b5dd9=>{const _0x460d85=a127_0x47dc78,_0x12cd10={};_0x12cd10[_0x460d85(0x126)]=_0x460d85(0xaf),_0x12cd10['LTvqF']='false',_0x12cd10[_0x460d85(0x12f)]='null';const _0x5d42cd=_0x12cd10,_0x307e88=_0x5d42cd[_0x460d85(0x126)][_0x460d85(0xe7)]('|');let _0x2a029f=0x0;while(!![]){switch(_0x307e88[_0x2a029f++]){case'0':process[_0x460d85(0x118)][_0x460d85(0x90)]=_0x5d42cd[_0x460d85(0x100)];continue;case'1':exports[_0x460d85(0xc2)](_0x4b5dd9,testHubConstants[_0x460d85(0x9d)]);continue;case'2':process[_0x460d85(0x118)][_0x460d85(0xac)]=_0x5d42cd[_0x460d85(0x12f)];continue;case'3':process[_0x460d85(0x118)][_0x460d85(0x9c)]=_0x5d42cd[_0x460d85(0x100)];continue;case'4':process[_0x460d85(0x118)][_0x460d85(0xb9)]=_0x5d42cd[_0x460d85(0x12f)];continue;}break;}},exports[a127_0x47dc78(0xc2)]=(_0x48d2a2,_0xca7b12='')=>{const _0x223c43=a127_0x47dc78,_0x4aa73c={};_0x4aa73c[_0x223c43(0xc6)]=function(_0x2d5576,_0x1ea548){return _0x2d5576===_0x1ea548;};const _0x131ce3=_0x4aa73c;if(_0x131ce3['JqPWY'](_0x48d2a2,undefined)){logger[_0x223c43(0x131)](_0xca7b12[_0x223c43(0x12e)]()+_0x223c43(0xe6));return;}for(const _0x350261 of _0x48d2a2[_0x223c43(0xb5)]){const _0x4e16d2=_0x350261[_0x223c43(0x13f)],_0xd03f80=_0x350261['message'];if(_0xd03f80)switch(_0x4e16d2){case testHubConstants[_0x223c43(0x9a)][_0x223c43(0x125)]:logger['error'](_0xd03f80);break;case testHubConstants['ERROR'][_0x223c43(0xdd)]:logger[_0x223c43(0x10d)](_0xd03f80);break;case testHubConstants[_0x223c43(0x9a)][_0x223c43(0xfa)]:logger[_0x223c43(0x131)](_0xd03f80);break;default:logger[_0x223c43(0x131)](_0xd03f80);}}};function a127_0x48db(_0x46b6e8,_0x249597){const _0x21124e=a127_0x2112();return a127_0x48db=function(_0x48dbca,_0x4f2f7f){_0x48dbca=_0x48dbca-0x8f;let _0x512f37=_0x21124e[_0x48dbca];return _0x512f37;},a127_0x48db(_0x46b6e8,_0x249597);}const jsonifyAccessibilityArray=(_0x5f1ac6,_0x50e438,_0x189a97)=>{const _0x19ecff=a127_0x47dc78,_0x279eca={};return _0x5f1ac6[_0x19ecff(0xb6)](_0x369d03=>{_0x279eca[_0x369d03[_0x50e438]]=_0x369d03[_0x189a97];}),_0x279eca;};function a127_0x2112(){const _0x1ebfbe=['isAccessibilityEnabled','173266qURWGh','INVALID_CREDENTIALS','OHqoI',']\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','isBrowserstackInfra','FXmdj','titlePath','commands','javascript','OKOEB','toUpperCase','CUTjS','BROWSERSTACK_TESTHUB_UUID:\x20','error','zXMJF','yyRIe','iwMbX','BS_TESTOPS_BUILD_HASHED_ID','toString','setPercyFlag','20AlprHj','3XrvRkA','test_run','debug','username','uDCoo','wqUBU','key','../accessibility-automation/scripts.js','CODECEPT','ZEAwZ','product_map','options','handleErrorForAccessibility','Ispyu','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','Obwvl','setTestObservabilityVariables','allow_screenshots','mumTv','getGlobal','lJIiP','true','getProductMapForBuildStartCall','handleErrorForObservability','ERROR','fCfAW','BROWSERSTACK_TEST_ACCESSIBILITY_YML','ACCESSIBILITY','winstonLogger','scripts','BRAPn','CCowG','bstackA11yShouldScan','SktSq','uuid','FfeYU','zsFAF','false','cBRcb','ZjwEf','CUCUMBER','JEST','BROWSERSTACK_TESTHUB_UUID','shouldProcessEventForTesthub','app','2|4|3|0|1','BROWSERSTACK_PERCY','BROWSERSTACK_ACCESSIBILITY','VjnYB','1|6|4|2|0|5|3','shouldScanTestForAccessibility','errors','forEach','TauTz','Htsnl','BROWSERSTACK_TESTHUB_JWT','fyEql','getTestOrchestrationBuildStartData','getCurrentTestData','iFxSh','8468973iFHNyT','mzVoh','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','commandsToWrap','logBuildError','toJson','TEST_REPORTING_ANALYTICS','isTurboScaleSession','JqPWY','EkDOA','ZiqtX','HookRunStarted','MJeVi','OfBXi','../ats/helper','464199pMjkMd','includes','getProductMap','isTrue','stringify','zHuxP','uploadEventData','jwt','IgvPf','getAgentVersion','getTestData','tfhWM','getCentralUser','eQLor','ioxSW','../test-observability/utils','ACCESS_DENIED','MrZUZ','getFrameworkDetails','parseFromJson','IXzUI','accessibility','BS_A11Y_JWT','setCurrentTestData','../../bin/playwright/reporter/test-details.js','\x20Build\x20creation\x20failed','split','success','keys','Ptuzm','nedfi','BS_TESTOPS_ALLOW_SCREENSHOTS','../helper','nonBStackInfraA11yChromeOptions','getAccessibilityValueFromYml','parse','isRunning','platforms','3618310cdUvQd','BS_TESTOPS_JWT','HNEEZ','appendTesthubParams','GhDEz','scopes','isAccessibilityPlatform','DEPRECATED','kJWli','length','getTestFrameworkDetails','XzEQO','./constants.js','LTvqF','BS_TESTOPS_BUILD_COMPLETED','setTestData','sAZRZ','build_hashed_id','vQdWg','CBTSessionCreated','PLAYWRIGHT','32624qybQuR','password','CREDENTIALS_FOR_CRASH_REPORTING','905785FsxyMK','isPercyBuild','info','capabilities','../test-orchestration/orchestrationUtils.js','name','null','IZsRh','6176520cANbZm','HookRunFinished','MOCHA','scannerVersion','98PJkKxA','env','OBSERVABILITY','command','value','../../bin/utils/constants.js','GtQpj','observability','AFafz','vTodX','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','percy'];a127_0x2112=function(){return _0x1ebfbe;};return a127_0x2112();}exports['setTestHubCommonMetaInfo']=_0x375013=>{const _0x7c3086=a127_0x47dc78;_0x375013[_0x7c3086(0xd4)]&&(process[_0x7c3086(0x118)][_0x7c3086(0xb9)]=_0x375013[_0x7c3086(0xd4)]);_0x375013[_0x7c3086(0x104)]&&(process[_0x7c3086(0x118)][_0x7c3086(0xac)]=_0x375013[_0x7c3086(0x104)],logger['debug'](_0x7c3086(0x130)+_0x375013[_0x7c3086(0x104)]));;},exports[a127_0x47dc78(0xad)]=(_0x48b412='',_0x2ca04e='')=>{const _0x191d06=a127_0x47dc78,_0x5987ec={'FfeYU':function(_0x5b45a4){return _0x5b45a4();},'MrZUZ':function(_0xaca5a2,_0x4f227f){return _0xaca5a2===_0x4f227f;},'lJIiP':_0x191d06(0xd3),'mzVoh':'LogCreated','KHmYU':_0x191d06(0x106),'kJWli':function(_0x560b9b){return _0x560b9b();},'uCqOX':_0x191d06(0xc9),'AniRX':_0x191d06(0x114),'ioxSW':function(_0x578908){return _0x578908();}};if(exports[_0x191d06(0x10c)]()&&!exports[_0x191d06(0x123)]()&&!_0x5987ec[_0x191d06(0xa5)](isTestObservabilitySession)){if(_0x5987ec[_0x191d06(0xde)](_0x2ca04e,_0x5987ec[_0x191d06(0x96)]))return![];if([_0x5987ec['mzVoh'],_0x5987ec['KHmYU']][_0x191d06(0xce)](_0x48b412))return![];return!![];}if(exports[_0x191d06(0x123)]()&&!_0x5987ec[_0x191d06(0xfb)](isTestObservabilitySession)){if([_0x5987ec['uCqOX'],_0x5987ec['AniRX'],_0x5987ec[_0x191d06(0xbf)]][_0x191d06(0xce)](_0x48b412))return![];return!![];}return exports[_0x191d06(0x123)]()||_0x5987ec[_0x191d06(0xdb)](isTestObservabilitySession)||exports[_0x191d06(0x10c)]();},exports[a127_0x47dc78(0xf6)]=(_0x4f621c,_0x36b869,_0x106137='',_0x93e79b)=>{const _0x302d56=a127_0x47dc78,_0x3d9f04={};_0x3d9f04[_0x302d56(0xa6)]='HookRunStarted',_0x3d9f04[_0x302d56(0x132)]='HookRunFinished',_0x3d9f04[_0x302d56(0xa0)]=function(_0x9e7bbe,_0x2a4136){return _0x9e7bbe===_0x2a4136;},_0x3d9f04[_0x302d56(0xca)]=_0x302d56(0xa2),_0x3d9f04[_0x302d56(0xea)]=_0x302d56(0xf9),_0x3d9f04[_0x302d56(0x142)]=_0x302d56(0xe2),_0x3d9f04['iFxSh']=function(_0x44f396,_0x304c6a){return _0x44f396&&_0x304c6a;},_0x3d9f04['mumTv']=function(_0x5e2d1f,_0x35854a){return _0x5e2d1f===_0x35854a;},_0x3d9f04[_0x302d56(0xa8)]=function(_0x35ddc2,_0x6b3e6f){return _0x35ddc2+_0x6b3e6f;},_0x3d9f04[_0x302d56(0xb7)]=function(_0x2ec9de,_0x545346){return _0x2ec9de&&_0x545346;},_0x3d9f04[_0x302d56(0xb8)]=function(_0x402bf0,_0x3e7f18){return _0x402bf0===_0x3e7f18;},_0x3d9f04[_0x302d56(0x11f)]='TestRunStarted',_0x3d9f04[_0x302d56(0xeb)]=function(_0x442124,_0x368a0f){return _0x442124===_0x368a0f;},_0x3d9f04[_0x302d56(0xa1)]=function(_0x1e93b8,_0x48aef1){return _0x1e93b8===_0x48aef1;},_0x3d9f04[_0x302d56(0x129)]=_0x302d56(0x143);const _0x2d54a4=_0x3d9f04;if(![_0x2d54a4[_0x302d56(0xa6)],_0x2d54a4[_0x302d56(0x132)]][_0x302d56(0xce)](_0x36b869)&&exports[_0x302d56(0x123)]()){const _0x2ca694={};if(_0x2d54a4[_0x302d56(0xa0)](_0x93e79b,FRAMEWORKS[_0x302d56(0x115)])){const _0xba0dc3=globals[_0x302d56(0x95)](_0x2d54a4[_0x302d56(0xca)])||accessibilityHelper[_0x302d56(0xb4)](_0x106137[_0x302d56(0x12a)](),!![]),_0x12c37d=globals[_0x302d56(0x95)](_0x2d54a4['Ptuzm']);_0x2ca694[_0x2d54a4[_0x302d56(0x142)]]=_0x2d54a4[_0x302d56(0xbd)](_0x12c37d,_0xba0dc3);}if(_0x2d54a4[_0x302d56(0x94)](_0x93e79b,FRAMEWORKS[_0x302d56(0xab)])){const _0x1149c3=_0x2d54a4[_0x302d56(0xa8)](_0x2d54a4[_0x302d56(0xa8)](_0x4f621c[_0x302d56(0xf8)]['join']('\x20'),'\x20'),_0x106137[_0x302d56(0x110)]),_0x3cb702=globals['getGlobal'](_0x2d54a4[_0x302d56(0xca)])||accessibilityHelper[_0x302d56(0xb4)](_0x1149c3,![]),_0x29fb48=browserStackGlobals[_0x302d56(0xf9)];_0x2ca694[_0x2d54a4['ZEAwZ']]=_0x2d54a4['TauTz'](_0x29fb48,_0x3cb702);}if(_0x2d54a4[_0x302d56(0xb8)](_0x93e79b,FRAMEWORKS[_0x302d56(0x107)])){if(_0x2d54a4[_0x302d56(0x94)](_0x36b869,_0x2d54a4[_0x302d56(0x11f)]))return;_0x2ca694[_0x2d54a4[_0x302d56(0x142)]]=PWTestDetails['getAccessibilityPlatformValidation'](_0x4f621c[_0x302d56(0xa4)]);}if(_0x2d54a4['nedfi'](_0x93e79b,FRAMEWORKS[_0x302d56(0x141)])){const _0x3932f2=accessibilityHelper['shouldScanTestForAccessibility'](_0x106137[_0x302d56(0x12a)](),!![]),_0x51ffcc=global['accessibilityPlatform'];_0x2ca694[_0x2d54a4['ZEAwZ']]=_0x2d54a4[_0x302d56(0xbd)](_0x51ffcc,_0x3932f2);}if(_0x2d54a4[_0x302d56(0xa1)](_0x93e79b,FRAMEWORKS[_0x302d56(0xaa)])){const _0x3ac391=accessibilityHelper[_0x302d56(0xb4)](null,![],_0x4f621c['tags']),_0x1a95a7=globals[_0x302d56(0x95)](_0x2d54a4[_0x302d56(0xea)]);_0x2ca694[_0x2d54a4['ZEAwZ']]=_0x2d54a4[_0x302d56(0xb7)](_0x1a95a7,_0x3ac391);}_0x4f621c[_0x2d54a4['FXmdj']]=_0x2ca694;}},exports[a127_0x47dc78(0xbc)]=_0x2c4651=>{const _0xff13a5=a127_0x47dc78,_0x40732c={};_0x40732c[_0xff13a5(0x11d)]=function(_0x3bc60d,_0x50be82){return _0x3bc60d>_0x50be82;},_0x40732c[_0xff13a5(0x9b)]=function(_0xcbd662,_0x5852ad){return _0xcbd662>_0x5852ad;};const _0x34ce34=_0x40732c;let _0x3ccb55={};if(_0x34ce34[_0xff13a5(0x11d)](Object['keys'](testData)['length'],0x0))return testData;_0x3ccb55=JestTestDetails[_0xff13a5(0xd7)]();if(_0x34ce34[_0xff13a5(0x9b)](Object[_0xff13a5(0xe9)](_0x3ccb55)[_0xff13a5(0xfc)],0x0))return _0x3ccb55;return _0x3ccb55;},exports[a127_0x47dc78(0xe4)]=(_0x4bae5b,_0x1ff715={})=>{const _0x401181=a127_0x47dc78;if(bsSetupHelper['isUndefined'](_0x1ff715[_0x401181(0x13a)]))return;switch(_0x4bae5b){case FRAMEWORKS[_0x401181(0x115)]:testData=_0x1ff715[_0x401181(0x13a)];break;case FRAMEWORKS[_0x401181(0xab)]:JestTestDetails[_0x401181(0x102)](_0x1ff715[_0x401181(0x13a)]);break;default:break;}},exports[a127_0x47dc78(0xef)]=_0x459295=>{const _0x47ebcf=a127_0x47dc78,_0x1d6071={};_0x1d6071[_0x47ebcf(0xb2)]=function(_0x388434,_0x15cbdb){return _0x388434!==_0x15cbdb;},_0x1d6071['tfhWM']=function(_0x491de6,_0x35aaa5){return _0x491de6!==_0x35aaa5;},_0x1d6071['vTodX']=function(_0x554f8e,_0x3bbb61){return _0x554f8e!==_0x3bbb61;};const _0x1d54b6=_0x1d6071;if(_0x1d54b6['VjnYB'](_0x459295[_0x47ebcf(0xe2)],null)&&_0x1d54b6[_0x47ebcf(0xd8)](_0x459295[_0x47ebcf(0xe2)],undefined))return _0x459295['accessibility'];let _0x34acf0=![],_0x5909d4=![];if(_0x459295['platforms'])for(const _0x2b7855 of _0x459295[_0x47ebcf(0xf2)]){_0x1d54b6[_0x47ebcf(0x120)](_0x2b7855['accessibility'],null)&&_0x1d54b6['VjnYB'](_0x2b7855[_0x47ebcf(0xe2)],undefined)&&(_0x34acf0=_0x34acf0||bsSetupHelper[_0x47ebcf(0xd0)](_0x2b7855[_0x47ebcf(0xe2)]),_0x5909d4=!![]);}if(_0x5909d4)return _0x34acf0;return null;},exports[a127_0x47dc78(0xbb)]=_0x4beaee=>{const _0x27f119=new OrchestrationUtils(_0x4beaee);return _0x27f119['getBuildStartData']();},exports[a127_0x47dc78(0x98)]=_0x5e0f01=>{const _0x31604d=a127_0x47dc78,_0x96b74e={'ZjwEf':function(_0x4b8552){return _0x4b8552();}};let _0x2f1436=![],_0x5748a3=![];if(bsSetupHelper[_0x31604d(0x128)]()&&_0x5e0f01[_0x31604d(0xae)])_0x5748a3=!![];else bsSetupHelper[_0x31604d(0x128)]()&&(_0x2f1436=!![]);return Object['assign']({'observability':_0x96b74e[_0x31604d(0xa9)](isTestObservabilitySession),'accessibility':exports[_0x31604d(0xef)](_0x5e0f01),'percy':_0x5e0f01[_0x31604d(0x122)]||![],'automate':_0x2f1436,'app_automate':_0x5748a3,'turboscale':bsSetupHelper[_0x31604d(0xc5)](_0x5e0f01)},bsSetupHelper['getCentralUser']());};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a128_0x2e9a(){const _0x5068dd=['xreLf','7289430LmSOBe','3701736fGfiiE','EfATB','5306430nfUOCJ','16UZOcrx','2164715bniWUn','5091rdACdf','DWQwN','5786772fUtUsY','18wXlNSF','jvhuu','5eElDtG','6329004jFbKhM','fireFunnelTestEvent','VljOg','11ZdqyXj','18oQhzUS'];a128_0x2e9a=function(){return _0x5068dd;};return a128_0x2e9a();}(function(_0xde8947,_0x11c869){const _0x46c0ec=a128_0x590f,_0x404e6c=_0xde8947();while(!![]){try{const _0x3511ad=-parseInt(_0x46c0ec(0x17f))/0x1*(-parseInt(_0x46c0ec(0x177))/0x2)+-parseInt(_0x46c0ec(0x17a))/0x3+parseInt(_0x46c0ec(0x16f))/0x4+-parseInt(_0x46c0ec(0x172))/0x5*(parseInt(_0x46c0ec(0x17c))/0x6)+parseInt(_0x46c0ec(0x17e))/0x7*(-parseInt(_0x46c0ec(0x17d))/0x8)+-parseInt(_0x46c0ec(0x170))/0x9*(-parseInt(_0x46c0ec(0x179))/0xa)+parseInt(_0x46c0ec(0x176))/0xb*(parseInt(_0x46c0ec(0x173))/0xc);if(_0x3511ad===_0x11c869)break;else _0x404e6c['push'](_0x404e6c['shift']());}catch(_0x2cda6c){_0x404e6c['push'](_0x404e6c['shift']());}}}(a128_0x2e9a,0xb4e90));const utilities=require('./utilities');function a128_0x590f(_0x48328a,_0x9c1951){const _0x2e9a11=a128_0x2e9a();return a128_0x590f=function(_0x590f42,_0x5b50f9){_0x590f42=_0x590f42-0x16e;let _0x4d72cd=_0x2e9a11[_0x590f42];return _0x4d72cd;},a128_0x590f(_0x48328a,_0x9c1951);}module['exports']=(_0x354b91,_0x2f5545,_0xfcad0,_0x419022,_0x6186c4,_0x2e2455)=>{const _0x3afec7={'DWQwN':function(_0x1bd106,_0x23b158){return _0x1bd106-_0x23b158;},'jvhuu':function(_0x2ae320,_0x4165f8){return _0x2ae320(_0x4165f8);},'VljOg':function(_0xf0ccce,_0x38c6c4,_0x9a0c06){return _0xf0ccce(_0x38c6c4,_0x9a0c06);}};let _0x24696c,_0x3ba923=![];const _0x1043ec=new Promise((_0x58c3e9,_0xf7bda9)=>{const _0x29d606=a128_0x590f,_0x3a3128={'xreLf':function(_0xcdcda6,_0x450d4d){const _0x3c4e7f=a128_0x590f;return _0x3afec7[_0x3c4e7f(0x16e)](_0xcdcda6,_0x450d4d);},'EfATB':function(_0x5a01ad,_0x5e62a4){const _0x433ac8=a128_0x590f;return _0x3afec7[_0x433ac8(0x171)](_0x5a01ad,_0x5e62a4);}};_0x24696c=_0x3afec7[_0x29d606(0x175)](setTimeout,()=>{const _0x44f71c=_0x29d606;if(!_0x3ba923){const _0x1945d0={'status':''+_0x2f5545,'timeTaken':_0x3a3128[_0x44f71c(0x178)](new Date(),_0x419022)};utilities[_0x44f71c(0x174)](_0xfcad0,_0x1945d0,_0x6186c4,_0x2e2455),_0x3a3128[_0x44f71c(0x17b)](_0xf7bda9,new Error(_0x2f5545));}},_0x354b91);});return _0x1043ec['cancel']=()=>{_0x3ba923=!![],_0x3afec7['jvhuu'](clearTimeout,_0x24696c);},_0x1043ec;};
|
package/src/helpers/utilities.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a129_0x224d5c=a129_0x26e0;function a129_0x26e0(_0x3880fa,_0x2e8360){const _0x26ec32=a129_0x26ec();return a129_0x26e0=function(_0x26e0c2,_0x10b940){_0x26e0c2=_0x26e0c2-0xe8;let _0x208328=_0x26ec32[_0x26e0c2];return _0x208328;},a129_0x26e0(_0x3880fa,_0x2e8360);}(function(_0x3e3ea5,_0x4a646e){const _0x314d9b=a129_0x26e0,_0x31f03e=_0x3e3ea5();while(!![]){try{const _0x73b14b=parseInt(_0x314d9b(0x156))/0x1+parseInt(_0x314d9b(0x102))/0x2+parseInt(_0x314d9b(0x13a))/0x3+-parseInt(_0x314d9b(0x10b))/0x4*(-parseInt(_0x314d9b(0x16a))/0x5)+parseInt(_0x314d9b(0xfc))/0x6*(parseInt(_0x314d9b(0x132))/0x7)+parseInt(_0x314d9b(0x114))/0x8+-parseInt(_0x314d9b(0x11b))/0x9*(parseInt(_0x314d9b(0x14e))/0xa);if(_0x73b14b===_0x4a646e)break;else _0x31f03e['push'](_0x31f03e['shift']());}catch(_0x126904){_0x31f03e['push'](_0x31f03e['shift']());}}}(a129_0x26ec,0x25fdf));const os=require('os'),util=require(a129_0x224d5c(0x11e)),fs=require('fs'),{getProductMap}=require(a129_0x224d5c(0x126)),logger=require(a129_0x224d5c(0xee))['winstonLogger'],constants=require(a129_0x224d5c(0x141)),testHubConstants=require(a129_0x224d5c(0x11f)),{getTransformPath}=require('../bin/playwright/reporter/pwUtils'),{FUNNEL_INSTRUMENTATION_API_URL}=require(a129_0x224d5c(0x141)),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a129_0x224d5c(0xf8)),PerformanceTester=require('./performance/performance-tester'),globals=require('./globals'),helper=require(a129_0x224d5c(0xf8)),{isTestObservabilitySession}=require('./test-observability/utils');function a129_0x26ec(){const _0x5117c1=['seleniumVersion','browser','wRXND','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','name','../bin/utils/constants','BTuxM','assign','trim','getSessionsList','error','all','getUserName','version','\x20has\x20now\x20read/write/execute\x20permissions.','QRdQj','AUTOMATE_PRODUCTS','cedVb','1850slBRwY','app','type','yXdvQ','requirePWModule','codeceptjs','tests','buildIdentifier','171459yxqXmy','Playwright','stack','rTJDA','zwpMg','isNullOrEmpty','browserVersion','info','getBuildLink','nodejs','getOptimalHubUrl','gzIcf','EJQkh','QLGnC','every',',\x20testhub\x20id:\x20','keys','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','sdkRunId','IefnC','641930qeVBhB','nodeRequest','hRVCu','qsUHx','X_OK','toString','env','Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20','JWZsv','isModifiable','POST','event_properties','user_killed','./logger','constants','notifyUpdate','Failed\x20to\x20set\x20directory\x20access:\x20','osVersion','format','W_OK','mITRk','VqvCl','getNodeAgent','./helper','split','Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20','sendLogs','288IVZpkB','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','getTurboScaleSessionsList','framework','xkRTm','config','603604dogENV','jDdSn','deviceName','UBDsj','globalException','KZyYo','stringify','SDKTestSuccessful','SDK\x20run\x20ended\x20for\x20id:\x20','8MOqyZu','browserStackConfig','buildName','LhTvM','BwfvY','content-type','null','Error\x20in\x20firing\x20request\x20to\x20','isBrowserstackInfra','295064kmBVVc','dMicr','sanitizeBrowserStackConfig','body','replace','length','getTestFrameworkDetails','39573YRcXxv','getTurboScaleBuildLink','object','util','../helpers/testhub/constants','accessSync','debug','reduce','YMbOB','ADwbd','[REDACTED]','./testhub/utils','chmodSync','getAccessKey','rCzpe','APP_AUTOMATE_PRODUCTS','vVEXL','tcFHo','KhxTa','application/json','errorMessage','\x20:\x20','values','23982sNyGeM','killSignal','APP_AUTOMATE','forEach','playwrightVersion','BROWSERSTACK_TESTHUB_UUID','getStackTraceAsString','push','113088dLpXUf','AUTOMATE'];a129_0x26ec=function(){return _0x5117c1;};return a129_0x26ec();}let unhandledErrors='';exports['fireFunnelTestEvent']=async(_0x592c51,_0x2fd8d4={},_0x57512d,_0x3a317c)=>{const _0x4be46a=a129_0x224d5c,_0x56fad9={'YyhOh':function(_0x3a32af,_0x5803a6){return _0x3a32af===_0x5803a6;},'BTuxM':_0x4be46a(0x11d),'rTJDA':function(_0x35f535,_0x47ed89){return _0x35f535>_0x47ed89;},'gzIcf':_0x4be46a(0x154),'zwpMg':function(_0x570c37){return _0x570c37();},'dUzve':function(_0x518ed8,_0x5e12ea){return _0x518ed8==_0x5e12ea;},'lNpXp':_0x4be46a(0x111),'hRVCu':function(_0x494170,_0x275c31){return _0x494170===_0x275c31;},'KhxTa':'undefined','qsUHx':function(_0x9ae73e,_0x58ea10){return _0x9ae73e>_0x58ea10;},'jDdSn':_0x4be46a(0x153),'znfML':function(_0x3e00df,_0x25aa28){return _0x3e00df>_0x25aa28;},'ZvmNx':function(_0x53dd75,_0x5b663e){return _0x53dd75!==_0x5b663e;},'BwfvY':_0x4be46a(0x157),'EJQkh':function(_0x502dc0,_0x1d5fd2){return _0x502dc0===_0x1d5fd2;},'ADwbd':'error','YMbOB':function(_0x1ba070,_0xf9e73a){return _0x1ba070>_0xf9e73a;},'PWmAQ':function(_0x31177a,_0xc0a1ed){return _0x31177a+_0xc0a1ed;},'rCzpe':_0x4be46a(0x13f),'IefnC':'_buildHashedId','gDLIE':function(_0x310011,_0x21a54b){return _0x310011(_0x21a54b);},'KZyYo':'unknown','nIZXQ':_0x4be46a(0x15f),'QRdQj':_0x4be46a(0x109),'eRxGO':function(_0x3d161a,_0x1e36c4){return _0x3d161a===_0x1e36c4;},'vVEXL':function(_0x545af9){return _0x545af9();},'xkRTm':'selenium-webdriver','soNYc':_0x4be46a(0x12e),'dMicr':_0x4be46a(0x125),'qGsxd':_0x4be46a(0xeb)};let _0x460a66=[];if(helper[_0x4be46a(0x113)]()&&_0x56fad9[_0x4be46a(0x15a)](isTestObservabilitySession))_0x460a66=_0x57512d[_0x4be46a(0x14f)]?constants[_0x4be46a(0x12a)]:constants[_0x4be46a(0x14c)];else{if(_0x56fad9['zwpMg'](isTestObservabilitySession))_0x460a66=constants[_0x4be46a(0x167)];else helper[_0x4be46a(0x113)]()&&(_0x460a66=_0x57512d[_0x4be46a(0x14f)]?constants[_0x4be46a(0x134)]:constants[_0x4be46a(0x13b)]);}let _0x4aeed1=_0x57512d[_0x4be46a(0x155)];if(_0x56fad9['dUzve'](_0x4aeed1,null))_0x4aeed1=_0x56fad9['lNpXp'];else _0x56fad9[_0x4be46a(0x16c)](_0x4aeed1,undefined)&&(_0x4aeed1=_0x56fad9[_0x4be46a(0x12d)]);unhandledErrors&&_0x56fad9[_0x4be46a(0x16d)](unhandledErrors[_0x4be46a(0x119)],0x0)&&(_0x2fd8d4[_0x4be46a(0x106)]=unhandledErrors);global[_0x4be46a(0x168)]&&(_0x2fd8d4[_0x4be46a(0x168)]=global[_0x4be46a(0x168)]);try{if(_0x2fd8d4[_0x4be46a(0x146)]){if(_0x56fad9[_0x4be46a(0x16c)](_0x3a317c,_0x56fad9[_0x4be46a(0x103)])&&_0x56fad9['znfML'](_0x2fd8d4[_0x4be46a(0x146)][_0x4be46a(0x119)],0x0)){const _0xdd83a6={};_0xdd83a6['os']='',_0xdd83a6['osVersion']='',_0xdd83a6['browser']='',_0xdd83a6[_0x4be46a(0x15c)]='';const _0x1e5d84=_0xdd83a6;let _0x511efe={};const _0x4ad14c=_0x2fd8d4[_0x4be46a(0x146)];_0x511efe=_0x4ad14c[_0x4be46a(0x122)]((_0x1d5a14,_0x8ce4b4)=>{for(const _0x25c6df in _0x8ce4b4){_0x1d5a14[_0x25c6df]=_0x8ce4b4[_0x25c6df];}return _0x1d5a14;},{});const _0x41c106={};_0x41c106[_0x4be46a(0x154)]=_0x511efe,_0x2fd8d4[_0x4be46a(0x146)]=[Object[_0x4be46a(0x143)]({},_0x1e5d84,_0x41c106)];}else{let _0x54bb61=0x0;const _0xf8ffa7=_0x56fad9['ZvmNx'](_0x3a317c,_0x56fad9[_0x4be46a(0x10f)])?JSON['parse'](_0x2fd8d4[_0x4be46a(0x146)]):_0x2fd8d4[_0x4be46a(0x146)],_0x23abde=Object[_0x4be46a(0x131)](_0xf8ffa7);_0x23abde[_0x4be46a(0x135)](_0x155982=>{const _0x198c90=_0x4be46a;if(_0x56fad9['YyhOh'](typeof _0x155982,_0x56fad9[_0x198c90(0x142)])){const _0x5b31d4=Object[_0x198c90(0x131)](_0x155982);!_0x5b31d4[_0x198c90(0x164)](_0x162b20=>_0x162b20===null||_0x162b20===undefined||_0x162b20==='')&&(_0x54bb61+=0x1);}});if(_0x56fad9[_0x4be46a(0x162)](_0x54bb61,0x0))delete _0x2fd8d4[_0x56fad9[_0x4be46a(0x124)]];else{const _0x22774e=[];Object[_0x4be46a(0x166)](_0xf8ffa7)[_0x4be46a(0x135)](_0x5477f1=>{const _0x31e9d9=_0x4be46a,[_0x3ae8a9,_0x1b4b05,_0x43c553,_0xf3b74e]=_0x5477f1[_0x31e9d9(0xf9)](',\x20');let _0x57e15d={};if(!_0xf3b74e){const _0x43ed74={};_0x43ed74[_0x31e9d9(0x104)]=_0x3ae8a9,_0x43ed74[_0x31e9d9(0xf2)]=_0x1b4b05,_0x43ed74[_0x31e9d9(0x13d)]=_0x43c553,_0x57e15d=_0x43ed74;}else{const _0x2b5042={};_0x2b5042['os']=_0x3ae8a9,_0x2b5042[_0x31e9d9(0xf2)]=_0x1b4b05,_0x2b5042[_0x31e9d9(0x13d)]=_0x43c553,_0x2b5042['browserVersion']=_0xf3b74e,_0x57e15d=_0x2b5042;}const _0x36c21c={},_0x22fe74=_0xf8ffa7[_0x5477f1];Object['keys'](_0x22fe74)['forEach'](_0x346ee4=>{const _0x193421=_0x31e9d9;_0x56fad9[_0x193421(0x159)](_0x22fe74[_0x346ee4][_0x193421(0x119)],0x0)&&(_0x36c21c[_0x346ee4]=_0x22fe74[_0x346ee4]);}),_0x56fad9['rTJDA'](Object[_0x31e9d9(0x166)](_0x36c21c)[_0x31e9d9(0x119)],0x0)&&(_0x57e15d[_0x56fad9[_0x31e9d9(0x161)]]=_0x36c21c,_0x22774e[_0x31e9d9(0x139)](_0x57e15d));}),_0x56fad9[_0x4be46a(0x123)](_0x22774e[_0x4be46a(0x119)],0x0)?_0x2fd8d4['error']=_0x22774e:delete _0x2fd8d4[_0x56fad9[_0x4be46a(0x124)]];}}}}catch(_0x31b38f){delete _0x2fd8d4[_0x56fad9['ADwbd']],logger[_0x4be46a(0x121)](_0x56fad9['PWmAQ'](_0x56fad9[_0x4be46a(0x129)],_0x31b38f));}const _0x59f6f7=helper[_0x4be46a(0x11a)](_0x57512d,_0x57512d['framework']),_0x1cefea={'userName':helper[_0x4be46a(0x148)](_0x57512d),'accessKey':helper['getAccessKey'](_0x57512d),'event_type':_0x592c51,'detectedFramework':_0x3a317c,'buildHashedId':globals['getGlobal'](_0x56fad9[_0x4be46a(0x169)]),'optimalHubUrl':helper[_0x4be46a(0x160)](),'event_properties':{'testhub_uuid':process[_0x4be46a(0x170)][testHubConstants['ENV_VAR'][_0x4be46a(0x137)]]||'','sdkRunId':global['sdkRunId'],'product_map':_0x56fad9['gDLIE'](getProductMap,_0x57512d),'productMap':_0x56fad9['gDLIE'](getProductMap,_0x57512d),'language_framework':_0x57512d['source']||_0x56fad9[_0x4be46a(0x107)],'referrer':helper[_0x4be46a(0xf7)](_0x3a317c),'framework':_0x57512d[_0x4be46a(0xff)],'frameworkVersion':helper['getFrameworkVersion'](_0x3a317c),'automationFramework':_0x59f6f7[_0x4be46a(0x140)],'automationFrameworkVersion':_0x59f6f7[_0x4be46a(0x149)],'language':_0x56fad9['nIZXQ'],'languageVersion':process['version'],'product':_0x460a66,'buildName':_0x57512d[_0x4be46a(0x10d)]||_0x56fad9['KhxTa'],'buildIdentifier':_0x4aeed1,'os':os[_0x4be46a(0x150)]()||_0x56fad9[_0x4be46a(0x107)],'hostname':os['hostname']()||_0x56fad9[_0x4be46a(0x107)],..._0x2fd8d4}};try{_0x56fad9[_0x4be46a(0x162)](_0x592c51,_0x56fad9[_0x4be46a(0x14b)])&&(_0x1cefea['event_properties'][_0x4be46a(0x10c)]=helper[_0x4be46a(0x116)](_0x57512d)),_0x56fad9['eRxGO'](_0x3a317c,_0x56fad9[_0x4be46a(0x10f)])?_0x1cefea[_0x4be46a(0xec)][_0x4be46a(0x136)]=helper[_0x4be46a(0x152)]['apply'](null,_0x56fad9[_0x4be46a(0x12b)](getTransformPath),!![]):_0x1cefea[_0x4be46a(0xec)][_0x4be46a(0x13c)]=helper['getPackageVersion'](_0x56fad9[_0x4be46a(0x100)]);}catch(_0x5e0774){logger[_0x4be46a(0x121)](_0x4be46a(0xfa)+_0x5e0774);}const _0x4c1b0d={};_0x4c1b0d[_0x4be46a(0x110)]=_0x56fad9['soNYc'];const _0x2baaff={'headers':_0x4c1b0d,'body':_0x1cefea,'auth':{'user':helper['getUserName'](_0x57512d),'pass':helper['getAccessKey'](_0x57512d)},'json':!![]};logger[_0x4be46a(0x121)](_0x4be46a(0xfd)+JSON[_0x4be46a(0x108)](_0x2baaff[_0x4be46a(0x117)])['replace'](new RegExp(helper[_0x4be46a(0x148)](_0x57512d),'g'),_0x56fad9['dMicr'])[_0x4be46a(0x118)](new RegExp(helper[_0x4be46a(0x128)](_0x57512d),'g'),_0x56fad9[_0x4be46a(0x115)]));try{const _0x4cddf3=await helper[_0x4be46a(0x16b)](_0x56fad9['qGsxd'],constants['FUNNEL_INSTRUMENTATION_API_URL'],_0x2baaff,_0x57512d);logger[_0x4be46a(0x121)]('API\x20Event\x20'+_0x592c51+'\x20response\x20-\x20'+util[_0x4be46a(0xf3)]('%j',_0x4cddf3));}catch(_0x1e34de){logger['debug'](_0x4be46a(0x112)+FUNNEL_INSTRUMENTATION_API_URL+_0x4be46a(0x130)+util[_0x4be46a(0xf3)](_0x1e34de));}},exports['finalExecution']=async _0x2d28fb=>{const _0x44a609=a129_0x224d5c,_0x4ee71b={'QLGnC':function(_0x4b7313){return _0x4b7313();},'mITRk':'finishedMetadata','JWZsv':_0x44a609(0xed),'yXdvQ':_0x44a609(0x109),'cedVb':function(_0x3f0f7c,_0x5e8b27,_0x48d6d1){return _0x3f0f7c(_0x5e8b27,_0x48d6d1);},'tcFHo':function(_0x6ff6c,_0x4d28b9){return _0x6ff6c+_0x4d28b9;},'CqZGP':_0x44a609(0xe8)};try{await _0x2d28fb['stopPercy'](),_0x4ee71b[_0x44a609(0x163)](printNudgeLocalNotSetError);const _0x4d3ace={};_0x4d3ace[_0x44a609(0x146)]=_0x2d28fb[_0x44a609(0x12f)]?_0x2d28fb[_0x44a609(0x12f)]:'{}';const _0x5c4b05=_0x4d3ace,_0x26a3fa=Object[_0x44a609(0x143)]({},_0x5c4b05);!!_0x2d28fb[_0x44a609(0x133)]&&(_0x26a3fa[_0x4ee71b[_0x44a609(0xf5)]]={'reason':_0x4ee71b[_0x44a609(0xe9)],'signal':_0x2d28fb[_0x44a609(0x133)]});unhandledErrors=_0x2d28fb['unhandledErrors']['join']('\x0a');let _0x1321c2,_0x4d3f6c,_0x250ee2;helper['isTurboScaleSession'](_0x2d28fb['config'])?([_0x1321c2,_0x4d3f6c]=await helper[_0x44a609(0x11c)](_0x2d28fb[_0x44a609(0x101)]),[_0x250ee2]=await Promise[_0x44a609(0x147)]([helper[_0x44a609(0xfe)](_0x1321c2,_0x2d28fb[_0x44a609(0x101)]),exports['fireFunnelTestEvent'](_0x4ee71b[_0x44a609(0x151)],_0x26a3fa,_0x2d28fb[_0x44a609(0x101)],_0x2d28fb[_0x44a609(0xff)])])):([_0x1321c2,_0x4d3f6c]=await helper[_0x44a609(0x15e)](_0x2d28fb['config']),[_0x250ee2]=await Promise['all']([helper[_0x44a609(0x145)](_0x1321c2,_0x2d28fb['config']),exports['fireFunnelTestEvent'](_0x4ee71b[_0x44a609(0x151)],_0x26a3fa,_0x2d28fb['config'],_0x2d28fb[_0x44a609(0xff)])])),_0x250ee2&&await _0x4ee71b[_0x44a609(0x14d)](generateCIArtifacts,_0x250ee2,_0x4d3f6c),logger[_0x44a609(0x15d)](_0x44a609(0x10a)+_0x2d28fb[_0x44a609(0x168)]+_0x44a609(0x165)+process[_0x44a609(0x170)][_0x44a609(0x137)]),await helper[_0x44a609(0xfb)](_0x2d28fb['config']);}catch(_0x50036a){logger['debug'](_0x4ee71b[_0x44a609(0x12c)](_0x4ee71b['CqZGP'],_0x50036a));}helper[_0x44a609(0xf0)]();},exports[a129_0x224d5c(0x138)]=_0x5885de=>{const _0xa5f0c2=a129_0x224d5c,_0x3ca06f={'UBDsj':function(_0xa1fb73,_0x465c69){return _0xa1fb73 instanceof _0x465c69;},'wRXND':function(_0x18e4a3,_0x4945e4){return _0x18e4a3(_0x4945e4);}};try{if(_0x3ca06f[_0xa5f0c2(0x105)](_0x5885de,Error))return _0x5885de[_0xa5f0c2(0x158)]||_0x5885de[_0xa5f0c2(0x16f)]();return _0x3ca06f[_0xa5f0c2(0x13e)](String,_0x5885de);}catch(_0x57ed30){return _0x5885de?_0x5885de[_0xa5f0c2(0x16f)]():'';}},exports[a129_0x224d5c(0x15b)]=_0x210aeb=>{const _0x3bd426=a129_0x224d5c,_0x419d70={};_0x419d70[_0x3bd426(0xf6)]=function(_0x5a9078,_0x547b54){return _0x5a9078===_0x547b54;};const _0x3277f2=_0x419d70;return!_0x210aeb||_0x3277f2['VqvCl'](_0x210aeb[_0x3bd426(0x144)](),'');},exports[a129_0x224d5c(0xea)]=_0x155155=>{const _0x1bb227=a129_0x224d5c,_0x2154ee={};_0x2154ee['LhTvM']=function(_0x35cd7b,_0x183ef4){return _0x35cd7b|_0x183ef4;};const _0x5a8a9a=_0x2154ee;try{return fs[_0x1bb227(0x120)](_0x155155,_0x5a8a9a[_0x1bb227(0x10e)](fs[_0x1bb227(0xef)][_0x1bb227(0xf4)],fs[_0x1bb227(0xef)][_0x1bb227(0x16e)])),!![];}catch(_0x396df5){return![];}},exports['setReadWriteExecuteAccess']=_0x48f5b4=>{const _0x179abe=a129_0x224d5c;try{fs[_0x179abe(0x127)](_0x48f5b4,0x1ff),logger[_0x179abe(0x121)]('Directory\x20'+_0x48f5b4+_0x179abe(0x14a));}catch(_0x336d43){logger[_0x179abe(0x146)](_0x179abe(0xf1)+exports[_0x179abe(0x138)](_0x336d43));}};
|
|
1
|
+
const a129_0x77c689=a129_0x46d1;(function(_0x39c7c0,_0x414444){const _0x410acd=a129_0x46d1,_0x115eac=_0x39c7c0();while(!![]){try{const _0x5d9834=parseInt(_0x410acd(0x107))/0x1*(parseInt(_0x410acd(0x11b))/0x2)+-parseInt(_0x410acd(0x12c))/0x3+-parseInt(_0x410acd(0x158))/0x4*(-parseInt(_0x410acd(0x128))/0x5)+-parseInt(_0x410acd(0x139))/0x6+-parseInt(_0x410acd(0x12d))/0x7+parseInt(_0x410acd(0x10f))/0x8*(parseInt(_0x410acd(0x157))/0x9)+-parseInt(_0x410acd(0x117))/0xa*(parseInt(_0x410acd(0xe9))/0xb);if(_0x5d9834===_0x414444)break;else _0x115eac['push'](_0x115eac['shift']());}catch(_0x18f080){_0x115eac['push'](_0x115eac['shift']());}}}(a129_0x34aa,0x1f3f4));function a129_0x34aa(){const _0x397429=['./testhub/utils','fGECf','lbsaF','sHzSt','BtTgE','yVoLp','WIVNC','API\x20Event\x20','errorMessage','version','\x20:\x20','getFrameworkVersion','ZevTm','./helper','content-type','YLCAq','finalExecution','stopPercy','apply','framework','YMWWH','dnZmc','type','join','getNodeAgent','Error\x20in\x20firing\x20request\x20to\x20','chmodSync','FUNNEL_INSTRUMENTATION_API_URL','hostname','4092iOxntz','length','selenium-webdriver','APP_AUTOMATE','constants','ENV_VAR','sdkRunId','split','parse','Failed\x20to\x20set\x20directory\x20access:\x20','getAccessKey','unhandledErrors','AfqgF','\x20response\x20-\x20','isModifiable','tests','ybfMl','isTurboScaleSession','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','W_OK','getBuildLink','toString','trim','isNullOrEmpty','format','util','browser','hrpYg','keys','sanitizeBrowserStackConfig','69KgSzce','getSessionsList','body','AUTOMATE_PRODUCTS','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','accessSync','requirePWModule','SDKTestSuccessful','16kieivA','gJOmw','debug','config',',\x20testhub\x20id:\x20','assign','deviceName','object','4430qzGGIb','JAQNw','browserVersion','codeceptjs','7386GeFWTp','getUserName','name','setReadWriteExecuteAccess','AFChs','application/json','\x20has\x20now\x20read/write/execute\x20permissions.','./test-observability/utils','getTestFrameworkDetails','error','forEach','LNZBA','notifyUpdate','5geHSTC','xtEhq','source','osXVM','317775qjOaFY','434854AHxEme','NnEPB','HKIop','xjcMg','seleniumVersion','osVersion','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','browserStackConfig','buildIdentifier','hQaMz','values','stringify','794964yrUYrJ','Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20','fireFunnelTestEvent','./globals','QaOZJ','playwrightVersion','jzTWA','isBrowserstackInfra','env','gsTfq','null','POST','push','getPackageVersion','./logger','KuhVq','app','finishedMetadata','BIgJr','BROWSERSTACK_TESTHUB_UUID','NHrjT','Directory\x20','./performance/performance-tester','killSignal','getOptimalHubUrl','every','[REDACTED]','getTurboScaleBuildLink','miTeN','getTurboScaleSessionsList','810504XnFtbY','633584ZIdVjg','../helpers/testhub/constants','getStackTraceAsString','SxKba','wuwra','SDK\x20run\x20ended\x20for\x20id:\x20','QzZRu','../bin/utils/constants','unknown','reduce','winstonLogger','all','event_properties'];a129_0x34aa=function(){return _0x397429;};return a129_0x34aa();}const os=require('os'),util=require(a129_0x77c689(0x102)),fs=require('fs'),{getProductMap}=require(a129_0x77c689(0x165)),logger=require(a129_0x77c689(0x147))[a129_0x77c689(0x162)],constants=require('../bin/utils/constants'),testHubConstants=require(a129_0x77c689(0x159)),{getTransformPath}=require('../bin/playwright/reporter/pwUtils'),{FUNNEL_INSTRUMENTATION_API_URL}=require(a129_0x77c689(0x15f)),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a129_0x77c689(0xd9)),PerformanceTester=require(a129_0x77c689(0x14f)),globals=require(a129_0x77c689(0x13c)),helper=require(a129_0x77c689(0xd9)),{isTestObservabilitySession}=require(a129_0x77c689(0x122));function a129_0x46d1(_0x5f3fbb,_0x512c33){const _0x34aa78=a129_0x34aa();return a129_0x46d1=function(_0x46d19f,_0x35ed8a){_0x46d19f=_0x46d19f-0xcf;let _0x31a792=_0x34aa78[_0x46d19f];return _0x31a792;},a129_0x46d1(_0x5f3fbb,_0x512c33);}let unhandledErrors='';exports[a129_0x77c689(0x13b)]=async(_0x2a4c47,_0x3f4cf3={},_0x41fff5,_0x456bfe)=>{const _0x5061d1=a129_0x77c689,_0x8ada2e={'gJOmw':function(_0x3df366,_0x11b918){return _0x3df366===_0x11b918;},'aSSIA':_0x5061d1(0x116),'jzTWA':function(_0x2d1a9d,_0x3466f5){return _0x2d1a9d>_0x3466f5;},'HKIop':function(_0x40ee6f,_0x5c12eb){return _0x40ee6f>_0x5c12eb;},'NHrjT':_0x5061d1(0xf8),'fGECf':function(_0x5ac830){return _0x5ac830();},'YLCAq':function(_0x148011,_0x2eb2b9){return _0x148011==_0x2eb2b9;},'TSHKO':_0x5061d1(0x143),'QzZRu':function(_0x49de6c,_0x337fef){return _0x49de6c===_0x337fef;},'LEPMW':'undefined','ZevTm':function(_0x542e7c,_0x170a63){return _0x542e7c>_0x170a63;},'hQaMz':function(_0x49bd90,_0x55ba69){return _0x49bd90===_0x55ba69;},'sHzSt':_0x5061d1(0x11a),'uXkgY':function(_0x1e0d82,_0x8463d7){return _0x1e0d82>_0x8463d7;},'osXVM':function(_0x41307d,_0x1d9993){return _0x41307d!==_0x1d9993;},'xtEhq':'Playwright','BtTgE':_0x5061d1(0x124),'NnEPB':function(_0xd8668e,_0x369d99){return _0xd8668e+_0x369d99;},'AFChs':_0x5061d1(0xfb),'LNZBA':'_buildHashedId','CYDRE':function(_0x4e074c,_0x5ad73c){return _0x4e074c(_0x5ad73c);},'SxKba':_0x5061d1(0x160),'WIVNC':'nodejs','qvnkA':function(_0x741b16,_0x2e6212){return _0x741b16===_0x2e6212;},'gXaKd':_0x5061d1(0x10e),'lbsaF':function(_0x29d275,_0x1edc19){return _0x29d275===_0x1edc19;},'uQaZp':function(_0x37a932){return _0x37a932();},'wuwra':_0x5061d1(0xeb),'dnZmc':_0x5061d1(0x120),'JAQNw':_0x5061d1(0x153),'yVoLp':_0x5061d1(0x144)};let _0x348c98=[];if(helper[_0x5061d1(0x140)]()&&_0x8ada2e[_0x5061d1(0x166)](isTestObservabilitySession))_0x348c98=_0x41fff5[_0x5061d1(0x149)]?constants['APP_AUTOMATE_PRODUCTS']:constants[_0x5061d1(0x10a)];else{if(_0x8ada2e[_0x5061d1(0x166)](isTestObservabilitySession))_0x348c98=constants[_0x5061d1(0x133)];else helper[_0x5061d1(0x140)]()&&(_0x348c98=_0x41fff5['app']?constants[_0x5061d1(0xec)]:constants['AUTOMATE']);}let _0x441b2a=_0x41fff5[_0x5061d1(0x135)];if(_0x8ada2e[_0x5061d1(0xdb)](_0x441b2a,null))_0x441b2a=_0x8ada2e['TSHKO'];else _0x8ada2e[_0x5061d1(0x15e)](_0x441b2a,undefined)&&(_0x441b2a=_0x8ada2e['LEPMW']);unhandledErrors&&_0x8ada2e[_0x5061d1(0xd8)](unhandledErrors[_0x5061d1(0xea)],0x0)&&(_0x3f4cf3['globalException']=unhandledErrors);global['sdkRunId']&&(_0x3f4cf3[_0x5061d1(0xef)]=global['sdkRunId']);try{if(_0x3f4cf3['error']){if(_0x8ada2e[_0x5061d1(0x136)](_0x456bfe,_0x8ada2e[_0x5061d1(0xcf)])&&_0x8ada2e['uXkgY'](_0x3f4cf3[_0x5061d1(0x124)][_0x5061d1(0xea)],0x0)){const _0x34d465={};_0x34d465['os']='',_0x34d465[_0x5061d1(0x132)]='',_0x34d465[_0x5061d1(0x103)]='',_0x34d465[_0x5061d1(0x119)]='';const _0x4948a2=_0x34d465;let _0x2bf7d9={};const _0x3a732e=_0x3f4cf3['error'];_0x2bf7d9=_0x3a732e[_0x5061d1(0x161)]((_0x3390db,_0x58230b)=>{for(const _0x56d217 in _0x58230b){_0x3390db[_0x56d217]=_0x58230b[_0x56d217];}return _0x3390db;},{});const _0x10a755={};_0x10a755[_0x5061d1(0xf8)]=_0x2bf7d9,_0x3f4cf3[_0x5061d1(0x124)]=[Object[_0x5061d1(0x114)]({},_0x4948a2,_0x10a755)];}else{let _0x124ccf=0x0;const _0x4a0e92=_0x8ada2e[_0x5061d1(0x12b)](_0x456bfe,_0x8ada2e['xtEhq'])?JSON[_0x5061d1(0xf1)](_0x3f4cf3[_0x5061d1(0x124)]):_0x3f4cf3[_0x5061d1(0x124)],_0x38fd14=Object[_0x5061d1(0x137)](_0x4a0e92);_0x38fd14[_0x5061d1(0x125)](_0x152ad9=>{const _0x449b38=_0x5061d1;if(_0x8ada2e[_0x449b38(0x110)](typeof _0x152ad9,_0x8ada2e['aSSIA'])){const _0x230fc2=Object[_0x449b38(0x137)](_0x152ad9);!_0x230fc2[_0x449b38(0x152)](_0x11dad4=>_0x11dad4===null||_0x11dad4===undefined||_0x11dad4==='')&&(_0x124ccf+=0x1);}});if(_0x8ada2e['gJOmw'](_0x124ccf,0x0))delete _0x3f4cf3[_0x8ada2e[_0x5061d1(0xd0)]];else{const _0x56cf41=[];Object[_0x5061d1(0x105)](_0x4a0e92)[_0x5061d1(0x125)](_0x5941d3=>{const _0x3bc89c=_0x5061d1,[_0x333a6a,_0xc56695,_0x443ac8,_0x4e5ed]=_0x5941d3[_0x3bc89c(0xf0)](',\x20');let _0xfd907d={};if(!_0x4e5ed){const _0x42f698={};_0x42f698[_0x3bc89c(0x115)]=_0x333a6a,_0x42f698[_0x3bc89c(0x132)]=_0xc56695,_0x42f698[_0x3bc89c(0x103)]=_0x443ac8,_0xfd907d=_0x42f698;}else{const _0x31b78b={};_0x31b78b['os']=_0x333a6a,_0x31b78b['osVersion']=_0xc56695,_0x31b78b[_0x3bc89c(0x103)]=_0x443ac8,_0x31b78b[_0x3bc89c(0x119)]=_0x4e5ed,_0xfd907d=_0x31b78b;}const _0x455846={},_0x535baa=_0x4a0e92[_0x5941d3];Object['keys'](_0x535baa)[_0x3bc89c(0x125)](_0x11d6a5=>{const _0x338b27=_0x3bc89c;_0x8ada2e[_0x338b27(0x13f)](_0x535baa[_0x11d6a5][_0x338b27(0xea)],0x0)&&(_0x455846[_0x11d6a5]=_0x535baa[_0x11d6a5]);}),_0x8ada2e[_0x3bc89c(0x12f)](Object[_0x3bc89c(0x105)](_0x455846)[_0x3bc89c(0xea)],0x0)&&(_0xfd907d[_0x8ada2e[_0x3bc89c(0x14d)]]=_0x455846,_0x56cf41[_0x3bc89c(0x145)](_0xfd907d));}),_0x8ada2e['jzTWA'](_0x56cf41[_0x5061d1(0xea)],0x0)?_0x3f4cf3[_0x5061d1(0x124)]=_0x56cf41:delete _0x3f4cf3[_0x8ada2e['BtTgE']];}}}}catch(_0x4ca4ef){delete _0x3f4cf3[_0x8ada2e[_0x5061d1(0xd0)]],logger[_0x5061d1(0x111)](_0x8ada2e[_0x5061d1(0x12e)](_0x8ada2e[_0x5061d1(0x11f)],_0x4ca4ef));}const _0x25f90d=helper[_0x5061d1(0x123)](_0x41fff5,_0x41fff5['framework']),_0x63a16b={'userName':helper['getUserName'](_0x41fff5),'accessKey':helper[_0x5061d1(0xf3)](_0x41fff5),'event_type':_0x2a4c47,'detectedFramework':_0x456bfe,'buildHashedId':globals['getGlobal'](_0x8ada2e[_0x5061d1(0x126)]),'optimalHubUrl':helper[_0x5061d1(0x151)](),'event_properties':{'testhub_uuid':process[_0x5061d1(0x141)][testHubConstants[_0x5061d1(0xee)]['BROWSERSTACK_TESTHUB_UUID']]||'','sdkRunId':global[_0x5061d1(0xef)],'product_map':_0x8ada2e['CYDRE'](getProductMap,_0x41fff5),'productMap':_0x8ada2e['CYDRE'](getProductMap,_0x41fff5),'language_framework':_0x41fff5[_0x5061d1(0x12a)]||_0x8ada2e[_0x5061d1(0x15b)],'referrer':helper[_0x5061d1(0xe4)](_0x456bfe),'framework':_0x41fff5[_0x5061d1(0xdf)],'frameworkVersion':helper[_0x5061d1(0xd7)](_0x456bfe),'automationFramework':_0x25f90d[_0x5061d1(0x11d)],'automationFrameworkVersion':_0x25f90d[_0x5061d1(0xd5)],'language':_0x8ada2e[_0x5061d1(0xd2)],'languageVersion':process[_0x5061d1(0xd5)],'product':_0x348c98,'buildName':_0x41fff5['buildName']||_0x8ada2e['LEPMW'],'buildIdentifier':_0x441b2a,'os':os[_0x5061d1(0xe2)]()||_0x8ada2e['SxKba'],'hostname':os[_0x5061d1(0xe8)]()||_0x8ada2e[_0x5061d1(0x15b)],..._0x3f4cf3}};try{_0x8ada2e['qvnkA'](_0x2a4c47,_0x8ada2e['gXaKd'])&&(_0x63a16b[_0x5061d1(0x164)][_0x5061d1(0x134)]=helper[_0x5061d1(0x106)](_0x41fff5)),_0x8ada2e[_0x5061d1(0x167)](_0x456bfe,_0x8ada2e[_0x5061d1(0x129)])?_0x63a16b['event_properties'][_0x5061d1(0x13e)]=helper[_0x5061d1(0x10d)][_0x5061d1(0xde)](null,_0x8ada2e['uQaZp'](getTransformPath),!![]):_0x63a16b[_0x5061d1(0x164)][_0x5061d1(0x131)]=helper[_0x5061d1(0x146)](_0x8ada2e[_0x5061d1(0x15c)]);}catch(_0x579bae){logger[_0x5061d1(0x111)]('Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20'+_0x579bae);}const _0x4135c1={};_0x4135c1[_0x5061d1(0xda)]=_0x8ada2e[_0x5061d1(0xe1)];const _0x37806c={'headers':_0x4135c1,'body':_0x63a16b,'auth':{'user':helper[_0x5061d1(0x11c)](_0x41fff5),'pass':helper[_0x5061d1(0xf3)](_0x41fff5)},'json':!![]};logger[_0x5061d1(0x111)](_0x5061d1(0x10b)+JSON[_0x5061d1(0x138)](_0x37806c[_0x5061d1(0x109)])['replace'](new RegExp(helper['getUserName'](_0x41fff5),'g'),_0x8ada2e[_0x5061d1(0x118)])['replace'](new RegExp(helper[_0x5061d1(0xf3)](_0x41fff5),'g'),_0x8ada2e['JAQNw']));try{const _0x5b8dae=await helper['nodeRequest'](_0x8ada2e[_0x5061d1(0xd1)],constants[_0x5061d1(0xe7)],_0x37806c,_0x41fff5);logger[_0x5061d1(0x111)](_0x5061d1(0xd3)+_0x2a4c47+_0x5061d1(0xf6)+util[_0x5061d1(0x101)]('%j',_0x5b8dae));}catch(_0x39ebc8){logger[_0x5061d1(0x111)](_0x5061d1(0xe5)+FUNNEL_INSTRUMENTATION_API_URL+_0x5061d1(0xd6)+util[_0x5061d1(0x101)](_0x39ebc8));}},exports[a129_0x77c689(0xdc)]=async _0x54cc18=>{const _0x2d1c39=a129_0x77c689,_0x3582f0={'YMWWH':function(_0x2d4c82){return _0x2d4c82();},'miTeN':_0x2d1c39(0x14a),'ybfMl':'user_killed','AfqgF':_0x2d1c39(0x10e),'QaOZJ':function(_0x23496d,_0x533d9c,_0x1ce084){return _0x23496d(_0x533d9c,_0x1ce084);},'tYmcn':function(_0x4d9654,_0x5c44b3){return _0x4d9654+_0x5c44b3;},'KuhVq':_0x2d1c39(0x13a)};try{await _0x54cc18[_0x2d1c39(0xdd)](),_0x3582f0[_0x2d1c39(0xe0)](printNudgeLocalNotSetError);const _0x206c8f={};_0x206c8f[_0x2d1c39(0x124)]=_0x54cc18[_0x2d1c39(0xd4)]?_0x54cc18[_0x2d1c39(0xd4)]:'{}';const _0x238714=_0x206c8f,_0x5c3664=Object['assign']({},_0x238714);!!_0x54cc18[_0x2d1c39(0x150)]&&(_0x5c3664[_0x3582f0[_0x2d1c39(0x155)]]={'reason':_0x3582f0[_0x2d1c39(0xf9)],'signal':_0x54cc18['killSignal']});unhandledErrors=_0x54cc18[_0x2d1c39(0xf4)][_0x2d1c39(0xe3)]('\x0a');let _0x10b6f8,_0x1ec9c3,_0x4eee36;helper[_0x2d1c39(0xfa)](_0x54cc18['config'])?([_0x10b6f8,_0x1ec9c3]=await helper[_0x2d1c39(0x154)](_0x54cc18['config']),[_0x4eee36]=await Promise['all']([helper[_0x2d1c39(0x156)](_0x10b6f8,_0x54cc18[_0x2d1c39(0x112)]),exports['fireFunnelTestEvent'](_0x3582f0[_0x2d1c39(0xf5)],_0x5c3664,_0x54cc18['config'],_0x54cc18['framework'])])):([_0x10b6f8,_0x1ec9c3]=await helper[_0x2d1c39(0xfd)](_0x54cc18['config']),[_0x4eee36]=await Promise[_0x2d1c39(0x163)]([helper[_0x2d1c39(0x108)](_0x10b6f8,_0x54cc18[_0x2d1c39(0x112)]),exports['fireFunnelTestEvent'](_0x3582f0[_0x2d1c39(0xf5)],_0x5c3664,_0x54cc18['config'],_0x54cc18[_0x2d1c39(0xdf)])])),_0x4eee36&&await _0x3582f0[_0x2d1c39(0x13d)](generateCIArtifacts,_0x4eee36,_0x1ec9c3),logger['info'](_0x2d1c39(0x15d)+_0x54cc18[_0x2d1c39(0xef)]+_0x2d1c39(0x113)+process[_0x2d1c39(0x141)][_0x2d1c39(0x14c)]),await helper['sendLogs'](_0x54cc18[_0x2d1c39(0x112)]);}catch(_0x1ef479){logger[_0x2d1c39(0x111)](_0x3582f0['tYmcn'](_0x3582f0[_0x2d1c39(0x148)],_0x1ef479));}helper[_0x2d1c39(0x127)]();},exports[a129_0x77c689(0x15a)]=_0x2b892e=>{const _0x8ef143=a129_0x77c689,_0x1ccb42={'hrpYg':function(_0x4246d3,_0x2ea0ff){return _0x4246d3 instanceof _0x2ea0ff;},'xjcMg':function(_0x2f8d4c,_0x5a6efb){return _0x2f8d4c(_0x5a6efb);}};try{if(_0x1ccb42[_0x8ef143(0x104)](_0x2b892e,Error))return _0x2b892e['stack']||_0x2b892e[_0x8ef143(0xfe)]();return _0x1ccb42[_0x8ef143(0x130)](String,_0x2b892e);}catch(_0x2f739a){return _0x2b892e?_0x2b892e[_0x8ef143(0xfe)]():'';}},exports[a129_0x77c689(0x100)]=_0x2ebf7a=>{const _0x369168=a129_0x77c689,_0x44edbf={};_0x44edbf[_0x369168(0x14b)]=function(_0x56c913,_0x667cc6){return _0x56c913===_0x667cc6;};const _0x2be6c3=_0x44edbf;return!_0x2ebf7a||_0x2be6c3[_0x369168(0x14b)](_0x2ebf7a[_0x369168(0xff)](),'');},exports[a129_0x77c689(0xf7)]=_0x2e545e=>{const _0x3a62b7=a129_0x77c689,_0x214f74={};_0x214f74[_0x3a62b7(0x142)]=function(_0x21708e,_0x442f8d){return _0x21708e|_0x442f8d;};const _0x220668=_0x214f74;try{return fs[_0x3a62b7(0x10c)](_0x2e545e,_0x220668[_0x3a62b7(0x142)](fs[_0x3a62b7(0xed)][_0x3a62b7(0xfc)],fs[_0x3a62b7(0xed)]['X_OK'])),!![];}catch(_0x4df685){return![];}},exports[a129_0x77c689(0x11e)]=_0x4036ac=>{const _0x2ddf02=a129_0x77c689;try{fs[_0x2ddf02(0xe6)](_0x4036ac,0x1ff),logger[_0x2ddf02(0x111)](_0x2ddf02(0x14e)+_0x4036ac+_0x2ddf02(0x121));}catch(_0x28061c){logger[_0x2ddf02(0x124)](_0x2ddf02(0xf2)+exports[_0x2ddf02(0x15a)](_0x28061c));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a130_0x2d9d(_0x2f9a7b,_0x2cf95e){var _0x33e7a=a130_0x33e7();return a130_0x2d9d=function(_0x2d9d99,_0x265cd7){_0x2d9d99=_0x2d9d99-0x1b1;var _0x48b4b7=_0x33e7a[_0x2d9d99];return _0x48b4b7;},a130_0x2d9d(_0x2f9a7b,_0x2cf95e);}function a130_0x33e7(){var _0x34f20a=['1447658TXexBX','692651nabBGT','RSWmc','accessibility','build','localIdentifier','buildProductMap','browserstack.idleTimeout','SAkoQ','browserstack.testhubBuildUuid','geoLocation','KfZnv','aYUMQ','browserstackSDK','hrSNU','Anpfe','GQXhP','sessionName','vBEbo','GGtbz','seleniumLogs','FTJhN','deviceOrientation','browserstack.accessibilityOptions.includeIssueType.needsReview','hosts','browserstack.networkLogs','hGWef','XxJPR','bHKlO','5esAbIi','uploadMedia','dLuHK','simOptions','overridelocalInfo.localIdentifier','tWZdW','XsaaC','browserstack.autoWait','6440202OXIqrD','deviceName','tbWzP','browserstack.maskBasicAuth','wsLocalSupport','bPikg','browserstack.enableSim','project','bKbUV','useW3c','AVcBR','browserstack.key','pFZcZ','cSChn','accessKey','accessibilityOptions.scannerVersion','WTTvh','bfcache','browserstack.headerParams','browserstack.appium_version','buildIdentifier','browserstack.simOptions','114982WhHhXV','vRriK','HjjUm','os_version','browserstack.hosts','enableSim','testhubBuildUuid','LAYjR','playwrightVersion','browserstack.accessibilityOptions.wcagVersion','browserstack.buildProductMap','FqfVK','idASW','fYThR','maskCommands','EGyTX','projectName','appiumVersion','IkFVX','autoWait','QLyTn','browserstack.networkProfile','accessibilityOptions.authToken','312OhfaOF','XwhRB','egpTF','name','yAJzP','accessibilityOptions.includeIssueType.bestPractice','browserstack.buildIdentifier','browserstack.overridelocalInfo.localIdentifier','XQhHw','browserstack.performance','accessibilityOptions.includeIssueType.needsReview','browserstack.use_w3c','vmQvq','DsrVF','zHxaT','browserstack.geoLocation','disableCorsRestrictions','bxjCe','debug','browserstack.bfcache','browser','networkProfile','npmBq','browserstack.localIdentifier','XvFQY','browserstack.browserstackSDK','osVersion','browserstack.video','local','appiumLogs','PVZwp','3729736ZlFlQH','browserstack.user','telemetryLogs','browserstack.console','browserstack.selenium_version','headerParams','browserstack.customNetwork','KSGGL','browserstack.appiumLogs','browserstack.telemetryLogs','FWLEQ','1547871KeEIGc','browserstack.wsLocalSupport','VyvSm','tDALt','YpyVz','browserstack.timezone','resolution','consoleLogs','VfwpE','3297116KCKsTI','eMByw','jFfoQ','browserstack.accessibilityOptions.scannerVersion','Gdhyr','overridelocalInfo.userAuthToken'];a130_0x33e7=function(){return _0x34f20a;};return a130_0x33e7();}(function(_0x4b194a,_0x3e57ab){var _0x157e69=a130_0x2d9d,_0x215b66=_0x4b194a();while(!![]){try{var _0x211e6b=-parseInt(_0x157e69(0x229))/0x1+-parseInt(_0x157e69(0x228))/0x2+parseInt(_0x157e69(0x219))/0x3+parseInt(_0x157e69(0x222))/0x4*(parseInt(_0x157e69(0x1ba))/0x5)+parseInt(_0x157e69(0x1ef))/0x6*(parseInt(_0x157e69(0x1d8))/0x7)+parseInt(_0x157e69(0x20e))/0x8+-parseInt(_0x157e69(0x1c2))/0x9;if(_0x211e6b===_0x3e57ab)break;else _0x215b66['push'](_0x215b66['shift']());}catch(_0x1bc0c2){_0x215b66['push'](_0x215b66['shift']());}}}(a130_0x33e7,0x810a3),exports['W3CMapping']=()=>{var _0x5653a7=a130_0x2d9d,_0x3f120a={};_0x3f120a[_0x5653a7(0x1e3)]='userName',_0x3f120a[_0x5653a7(0x237)]=_0x5653a7(0x1d0),_0x3f120a[_0x5653a7(0x1e4)]=_0x5653a7(0x209),_0x3f120a['nXHwn']=_0x5653a7(0x203),_0x3f120a[_0x5653a7(0x215)]='browserVersion',_0x3f120a[_0x5653a7(0x1c7)]=_0x5653a7(0x1cb),_0x3f120a[_0x5653a7(0x1f1)]=_0x5653a7(0x1e8),_0x3f120a['dWeBS']='buildName',_0x3f120a[_0x5653a7(0x23a)]=_0x5653a7(0x239),_0x3f120a[_0x5653a7(0x205)]=_0x5653a7(0x20b),_0x3f120a['AVcBR']=_0x5653a7(0x22d),_0x3f120a[_0x5653a7(0x1f7)]=_0x5653a7(0x201),_0x3f120a['JXOEK']=_0x5653a7(0x220),_0x3f120a['XxJPR']='networkLogs',_0x3f120a[_0x5653a7(0x1fd)]='networkLogsOptions',_0x3f120a[_0x5653a7(0x1ec)]=_0x5653a7(0x20c),_0x3f120a[_0x5653a7(0x20d)]='video',_0x3f120a[_0x5653a7(0x1bc)]=_0x5653a7(0x1b1),_0x3f120a['XsaaC']=_0x5653a7(0x210),_0x3f120a['TzSpI']=_0x5653a7(0x232),_0x3f120a[_0x5653a7(0x238)]='timezone',_0x3f120a[_0x5653a7(0x1b7)]=_0x5653a7(0x21f),_0x3f120a[_0x5653a7(0x1d9)]='seleniumVersion',_0x3f120a[_0x5653a7(0x1fc)]=_0x5653a7(0x1e6),_0x3f120a[_0x5653a7(0x1da)]='idleTimeout',_0x3f120a[_0x5653a7(0x21c)]='maskBasicAuth',_0x3f120a[_0x5653a7(0x224)]=_0x5653a7(0x1eb),_0x3f120a[_0x5653a7(0x221)]=_0x5653a7(0x1b5),_0x3f120a[_0x5653a7(0x230)]=_0x5653a7(0x1d3),_0x3f120a[_0x5653a7(0x1bf)]=_0x5653a7(0x1c6),_0x3f120a[_0x5653a7(0x1d2)]=_0x5653a7(0x1ff),_0x3f120a[_0x5653a7(0x234)]=_0x5653a7(0x1c3),_0x3f120a['XwhRB']='realMobile',_0x3f120a[_0x5653a7(0x21b)]=_0x5653a7(0x1e9),_0x3f120a[_0x5653a7(0x1ea)]=_0x5653a7(0x1b3),_0x3f120a['KfZnv']='customNetwork',_0x3f120a[_0x5653a7(0x1e5)]=_0x5653a7(0x204),_0x3f120a['eMByw']=_0x5653a7(0x1d6),_0x3f120a[_0x5653a7(0x226)]=_0x5653a7(0x235),_0x3f120a[_0x5653a7(0x21d)]=_0x5653a7(0x22b),_0x3f120a['cSChn']=_0x5653a7(0x22e),_0x3f120a[_0x5653a7(0x1fb)]=_0x5653a7(0x1de),_0x3f120a[_0x5653a7(0x200)]='accessibilityOptions.wcagVersion',_0x3f120a[_0x5653a7(0x1f3)]=_0x5653a7(0x1d1),_0x3f120a['FTJhN']='accessibilityOptions.scannerProcessingTimeout',_0x3f120a[_0x5653a7(0x236)]=_0x5653a7(0x1f4),_0x3f120a[_0x5653a7(0x1e7)]=_0x5653a7(0x1f9),_0x3f120a['XvFQY']=_0x5653a7(0x1ee),_0x3f120a[_0x5653a7(0x1ca)]=_0x5653a7(0x1bb),_0x3f120a[_0x5653a7(0x218)]=_0x5653a7(0x1dd),_0x3f120a[_0x5653a7(0x23b)]=_0x5653a7(0x1bd),_0x3f120a[_0x5653a7(0x1b9)]=_0x5653a7(0x1e0),_0x3f120a[_0x5653a7(0x1df)]=_0x5653a7(0x227),_0x3f120a[_0x5653a7(0x22a)]=_0x5653a7(0x1be),_0x3f120a[_0x5653a7(0x1ce)]=_0x5653a7(0x213),_0x3f120a[_0x5653a7(0x1c4)]='performance';var _0x105c09=_0x3f120a,_0x1b7be1={};return _0x1b7be1[_0x5653a7(0x20f)]=_0x105c09[_0x5653a7(0x1e3)],_0x1b7be1[_0x5653a7(0x1cd)]=_0x105c09['Anpfe'],_0x1b7be1['os']='os',_0x1b7be1[_0x5653a7(0x1db)]=_0x105c09['idASW'],_0x1b7be1[_0x5653a7(0x203)]=_0x105c09['nXHwn'],_0x1b7be1['browser_version']=_0x105c09[_0x5653a7(0x215)],_0x1b7be1[_0x5653a7(0x1fa)]=_0x105c09[_0x5653a7(0x1c7)],_0x1b7be1[_0x5653a7(0x1c9)]=_0x105c09[_0x5653a7(0x1f1)],_0x1b7be1[_0x5653a7(0x22c)]=_0x105c09['dWeBS'],_0x1b7be1[_0x5653a7(0x1f2)]=_0x105c09[_0x5653a7(0x23a)],_0x1b7be1['browserstack.local']=_0x105c09[_0x5653a7(0x205)],_0x1b7be1[_0x5653a7(0x206)]=_0x105c09[_0x5653a7(0x1cc)],_0x1b7be1['browserstack.debug']=_0x105c09[_0x5653a7(0x1f7)],_0x1b7be1[_0x5653a7(0x211)]=_0x105c09['JXOEK'],_0x1b7be1[_0x5653a7(0x1b6)]=_0x105c09[_0x5653a7(0x1b8)],_0x1b7be1['browserstack.networkLogsOptions']=_0x105c09[_0x5653a7(0x1fd)],_0x1b7be1[_0x5653a7(0x216)]=_0x105c09[_0x5653a7(0x1ec)],_0x1b7be1[_0x5653a7(0x20a)]=_0x105c09[_0x5653a7(0x20d)],_0x1b7be1['browserstack.seleniumLogs']=_0x105c09[_0x5653a7(0x1bc)],_0x1b7be1[_0x5653a7(0x217)]=_0x105c09[_0x5653a7(0x1c0)],_0x1b7be1[_0x5653a7(0x1fe)]=_0x105c09['TzSpI'],_0x1b7be1[_0x5653a7(0x21e)]=_0x105c09[_0x5653a7(0x238)],_0x1b7be1[_0x5653a7(0x21f)]=_0x105c09['hGWef'],_0x1b7be1[_0x5653a7(0x212)]=_0x105c09[_0x5653a7(0x1d9)],_0x1b7be1['browserstack.maskCommands']=_0x105c09['DsrVF'],_0x1b7be1[_0x5653a7(0x22f)]=_0x105c09[_0x5653a7(0x1da)],_0x1b7be1[_0x5653a7(0x1c5)]=_0x105c09[_0x5653a7(0x21c)],_0x1b7be1[_0x5653a7(0x1c1)]=_0x105c09[_0x5653a7(0x224)],_0x1b7be1[_0x5653a7(0x1dc)]=_0x105c09['VfwpE'],_0x1b7be1[_0x5653a7(0x202)]=_0x105c09[_0x5653a7(0x230)],_0x1b7be1[_0x5653a7(0x21a)]=_0x105c09['tWZdW'],_0x1b7be1['browserstack.disableCorsRestrictions']=_0x105c09['WTTvh'],_0x1b7be1['device']=_0x105c09[_0x5653a7(0x234)],_0x1b7be1['realMobile']=_0x105c09[_0x5653a7(0x1f0)],_0x1b7be1[_0x5653a7(0x1d5)]=_0x105c09[_0x5653a7(0x21b)],_0x1b7be1[_0x5653a7(0x1b3)]=_0x105c09['IkFVX'],_0x1b7be1[_0x5653a7(0x214)]=_0x105c09[_0x5653a7(0x233)],_0x1b7be1[_0x5653a7(0x1ed)]=_0x105c09[_0x5653a7(0x1e5)],_0x1b7be1[_0x5653a7(0x1f5)]=_0x105c09[_0x5653a7(0x223)],_0x1b7be1[_0x5653a7(0x208)]=_0x105c09[_0x5653a7(0x226)],_0x1b7be1['browserstack.accessibility']=_0x105c09[_0x5653a7(0x21d)],_0x1b7be1[_0x5653a7(0x1e2)]=_0x105c09[_0x5653a7(0x1cf)],_0x1b7be1[_0x5653a7(0x231)]=_0x105c09[_0x5653a7(0x1fb)],_0x1b7be1[_0x5653a7(0x1e1)]=_0x105c09[_0x5653a7(0x200)],_0x1b7be1[_0x5653a7(0x225)]=_0x105c09[_0x5653a7(0x1f3)],_0x1b7be1['browserstack.accessibilityOptions.scannerProcessingTimeout']=_0x105c09[_0x5653a7(0x1b2)],_0x1b7be1['browserstack.accessibilityOptions.includeIssueType.bestPractice']=_0x105c09[_0x5653a7(0x236)],_0x1b7be1[_0x5653a7(0x1b4)]=_0x105c09[_0x5653a7(0x1e7)],_0x1b7be1['browserstack.accessibilityOptions.authToken']=_0x105c09[_0x5653a7(0x207)],_0x1b7be1['browserstack.uploadMedia']=_0x105c09[_0x5653a7(0x1ca)],_0x1b7be1[_0x5653a7(0x1c8)]=_0x105c09[_0x5653a7(0x218)],_0x1b7be1[_0x5653a7(0x1d7)]=_0x105c09[_0x5653a7(0x23b)],_0x1b7be1['browserstack.playwrightVersion']=_0x105c09['bHKlO'],_0x1b7be1['browserstack.overridelocalInfo.userAuthToken']=_0x105c09['LAYjR'],_0x1b7be1[_0x5653a7(0x1f6)]=_0x105c09[_0x5653a7(0x22a)],_0x1b7be1[_0x5653a7(0x1d4)]=_0x105c09[_0x5653a7(0x1ce)],_0x1b7be1[_0x5653a7(0x1f8)]=_0x105c09['tbWzP'],_0x1b7be1;});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a131_0x3e0f0b=a131_0x14d7;(function(_0x3a10bd,_0x4ac4b4){const _0x45b181=a131_0x14d7,_0x622ac5=_0x3a10bd();while(!![]){try{const _0x5a8f8a=-parseInt(_0x45b181(0x13c))/0x1*(parseInt(_0x45b181(0x142))/0x2)+parseInt(_0x45b181(0x11b))/0x3+parseInt(_0x45b181(0x135))/0x4+-parseInt(_0x45b181(0x157))/0x5*(parseInt(_0x45b181(0x11d))/0x6)+-parseInt(_0x45b181(0x151))/0x7*(-parseInt(_0x45b181(0x122))/0x8)+parseInt(_0x45b181(0x13b))/0x9+parseInt(_0x45b181(0x139))/0xa*(-parseInt(_0x45b181(0x13e))/0xb);if(_0x5a8f8a===_0x4ac4b4)break;else _0x622ac5['push'](_0x622ac5['shift']());}catch(_0x539159){_0x622ac5['push'](_0x622ac5['shift']());}}}(a131_0x1326,0x51835));const url=require(a131_0x3e0f0b(0x152)),util=require(a131_0x3e0f0b(0x15a)),helper=require(a131_0x3e0f0b(0x14e)),logger=require(a131_0x3e0f0b(0x12c))[a131_0x3e0f0b(0x162)],constants=require(a131_0x3e0f0b(0x156));function a131_0x14d7(_0x3f85a7,_0x50ad21){const _0x13263d=a131_0x1326();return a131_0x14d7=function(_0x14d70c,_0x5f4664){_0x14d70c=_0x14d70c-0x117;let _0x25a4ee=_0x13263d[_0x14d70c];return _0x25a4ee;},a131_0x14d7(_0x3f85a7,_0x50ad21);}global[a131_0x3e0f0b(0x137)]='',exports['getRequestOptions']=_0x13077b=>{const _0x48c335=a131_0x3e0f0b,_0x23cb18={};_0x23cb18[_0x48c335(0x14d)]=function(_0x41462f,_0x156c3a){return _0x41462f+_0x156c3a;},_0x23cb18['yoFbD']=_0x48c335(0x12d);const _0x206432=_0x23cb18,_0x417ebc=url[_0x48c335(0x155)](_0x13077b);if(!_0x417ebc[_0x48c335(0x13a)])throw new Error(_0x206432[_0x48c335(0x14d)](_0x206432[_0x48c335(0x164)],_0x13077b));return _0x417ebc[_0x48c335(0x145)]=null,_0x417ebc['hash']=null,_0x417ebc[_0x48c335(0x117)]=_0x417ebc[_0x48c335(0x13d)],_0x417ebc;},exports['updateHubUrl']=_0xf89f3b=>{const _0x326849=a131_0x3e0f0b;global[_0x326849(0x137)]=_0xf89f3b;},exports[a131_0x3e0f0b(0x125)]=_0x6bb7a4=>{const _0x47f81c=a131_0x3e0f0b,_0x215c94={'eUUSE':function(_0x476a02,_0x10c48b){return _0x476a02+_0x10c48b;},'MCkxE':_0x47f81c(0x11a),'jsJiQ':function(_0x271de2){return _0x271de2();},'rnlYI':function(_0x513927,_0x39bc5d){return _0x513927!=_0x39bc5d;},'RILbp':function(_0x32f2ef,_0x573026){return _0x32f2ef!==_0x573026;},'wWZTz':_0x47f81c(0x149),'JMLLA':function(_0x1a4b6a){return _0x1a4b6a();}};return new Promise(_0x4144f0=>{const _0x293759=_0x47f81c,_0x2d4ad9={'IYVgu':function(_0x4589f2,_0x3dabba){const _0x37e63c=a131_0x14d7;return _0x215c94[_0x37e63c(0x15e)](_0x4589f2,_0x3dabba);},'tIWSl':_0x215c94[_0x293759(0x124)],'XedtV':function(_0x5055e1){return _0x215c94['jsJiQ'](_0x5055e1);},'mYwtc':function(_0x1d5acb,_0x56d7de){const _0x547d5b=_0x293759;return _0x215c94[_0x547d5b(0x129)](_0x1d5acb,_0x56d7de);},'EqPQg':function(_0x30d087,_0x387732){const _0x169141=_0x293759;return _0x215c94[_0x169141(0x15c)](_0x30d087,_0x387732);},'qImjN':function(_0xfe868d,_0x4bd039){return _0x215c94['eUUSE'](_0xfe868d,_0x4bd039);},'crhyk':_0x215c94[_0x293759(0x159)],'BeBEC':function(_0x19fe3a){const _0x1a4770=_0x293759;return _0x215c94[_0x1a4770(0x160)](_0x19fe3a);},'IeHqe':function(_0x4b6feb){const _0xe7bf6c=_0x293759;return _0x215c94[_0xe7bf6c(0x131)](_0x4b6feb);}};Promise[_0x293759(0x133)](this[_0x293759(0x127)](_0x6bb7a4))[_0x293759(0x132)](_0xca71ed=>{const _0x56304a=_0x293759;logger['debug']('NEAREST\x20HUBS:\x20'+util['format']('%j',_0xca71ed));if(_0x2d4ad9['mYwtc'](_0xca71ed,null)&&_0x2d4ad9[_0x56304a(0x140)](_0xca71ed[_0x56304a(0x121)],0x0)){const _0x1f47fc=[];for(const _0x219477 of _0xca71ed){_0x1f47fc[_0x56304a(0x13f)](this[_0x56304a(0x153)](_0x6bb7a4,_0x2d4ad9[_0x56304a(0x138)](_0x2d4ad9[_0x56304a(0x154)],_0x219477)));}Promise[_0x56304a(0x118)](_0x1f47fc)[_0x56304a(0x132)](_0x2882a3=>{const _0x488163=_0x56304a,_0x5b66fe=Object[_0x488163(0x14c)](_0x2882a3[_0x488163(0x136)](_0x4bbd12=>[_0x4bbd12[_0x488163(0x146)],_0x4bbd12[_0x488163(0x143)]])),_0x55b829=Object[_0x488163(0x14c)](Object['entries'](_0x5b66fe)[_0x488163(0x141)](([,_0x28efae],[,_0x10f69c])=>_0x28efae-_0x10f69c)),_0x2d8dc0=Object[_0x488163(0x12f)](_0x55b829)[0x0];constants[_0x488163(0x146)]=_0x2d4ad9['IYVgu'](_0x2d8dc0,_0x2d4ad9[_0x488163(0x150)]),logger[_0x488163(0x148)]('HUB\x20URL\x20SET\x20TO\x20-\x20'+_0x2d8dc0),_0x2d4ad9[_0x488163(0x11f)](_0x4144f0);});}else _0x2d4ad9[_0x56304a(0x161)](_0x4144f0);})[_0x293759(0x12b)](_0x299e1f=>{const _0x1a9013=_0x293759;logger[_0x1a9013(0x148)]('CANNOT\x20ALLOCATE\x20NEAREST\x20HUB\x20-\x20'+_0x299e1f),_0x2d4ad9[_0x1a9013(0x12a)](_0x4144f0);});});},exports['findLatency']=async(_0x3df10e,_0x100324)=>{const _0x3030c6=a131_0x3e0f0b,_0x57aece={};_0x57aece['otmkH']=_0x3030c6(0x14f),_0x57aece[_0x3030c6(0x123)]='check',_0x57aece[_0x3030c6(0x134)]=function(_0x115aad,_0x13bf22){return _0x115aad-_0x13bf22;};const _0x501c96=_0x57aece;try{const _0xdd317b=new Date();await helper[_0x3030c6(0x15d)](_0x501c96[_0x3030c6(0x119)],_0x501c96[_0x3030c6(0x123)],{},_0x3df10e,_0x100324,0x1388);const _0x2666ef=_0x501c96[_0x3030c6(0x134)](new Date(),_0xdd317b);logger[_0x3030c6(0x148)](_0x3030c6(0x130)+_0x100324+_0x3030c6(0x11c)+_0x2666ef+'ms');const _0x2d0c37={};return _0x2d0c37['hubUrl']=_0x100324,_0x2d0c37[_0x3030c6(0x143)]=_0x2666ef,_0x2d0c37;}catch(_0x25afe2){return logger[_0x3030c6(0x148)](_0x3030c6(0x15f)+_0x100324+_0x3030c6(0x15b)+_0x25afe2),{};}},exports['nextHubs']=async _0x3eabc7=>{const _0x4e0fb2=a131_0x3e0f0b,_0x3b0d2c={'JHSaL':function(_0x16ed90,_0xeeffcc){return _0x16ed90(_0xeeffcc);},'jkgWc':'./bin/utils/constants','sJhqC':_0x4e0fb2(0x11a),'Zvhty':'GET','cgqAZ':_0x4e0fb2(0x11e)};try{const _0x3fcd58=_0x3b0d2c[_0x4e0fb2(0x144)](require,_0x3b0d2c[_0x4e0fb2(0x128)])['hubUrl'][_0x4e0fb2(0x158)](_0x3b0d2c[_0x4e0fb2(0x12e)],''),_0x1a4c7a=await helper[_0x4e0fb2(0x15d)](_0x3b0d2c[_0x4e0fb2(0x126)],_0x3b0d2c[_0x4e0fb2(0x163)],{},_0x3eabc7,_0x3fcd58,0x1388),_0x2396cc=_0x1a4c7a[_0x4e0fb2(0x120)];return logger[_0x4e0fb2(0x148)]('Response:\x20'+util[_0x4e0fb2(0x14a)]('%j',_0x2396cc)),_0x2396cc[_0x4e0fb2(0x14b)];}catch(_0x1c682a){logger['debug'](_0x4e0fb2(0x147)+_0x1c682a);}return null;};function a131_0x1326(){const _0x3627ca=['hubUrl','ERROR\x20IN\x20GETTING\x20RESPONSE\x20FROM\x20NEXT\x20HUBS:\x20','debug','https://','format','hubs','fromEntries','YaDvo','./helpers/helper','GET','tIWSl','7MRwgsz','url','findLatency','crhyk','parse','./bin/utils/constants','2695965dwjDKY','replace','wWZTz','util','\x20HUB\x20-\x20','RILbp','nodeRequest','eUUSE','ERROR\x20IN\x20FINDING\x20LATENCY\x20FOR\x20','jsJiQ','BeBEC','winstonLogger','cgqAZ','yoFbD','path','all','otmkH','/wd/hub','1066224zVOvvw','\x20is:\x20','6LxZKRS','next_hubs','XedtV','data','length','4825504aVWpbc','moaDv','MCkxE','allocateHub','Zvhty','nextHubs','jkgWc','rnlYI','IeHqe','catch','./helpers/logger','Invalid\x20new\x20HUB\x20URL:\x20','sJhqC','keys','Execution\x20time\x20for\x20','JMLLA','then','resolve','HYCPB','1072140zEaEcM','map','newHubUrl','qImjN','110KzBgqq','hostname','2706993XyQLDu','437099sTGoDg','pathname','217239kbEkTT','push','EqPQg','sort','2WEZEfM','latency','JHSaL','search'];a131_0x1326=function(){return _0x3627ca;};return a131_0x1326();}
|