browserstack-node-sdk 1.41.0 → 1.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/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_0x4e7137=a124_0x41e3;function a124_0x9f01(){const _0x1651ed=['env','aQqBw','34ruhaOc','length','stack','[processSplitTestsResponse]\x20Processing\x20response:\x20','../logger','[processSplitTestsResponse]\x20timeout:\x20','TpUNP',',\x20timeoutInterval:\x20','hostname','4212184ldSXep','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20timeout\x20URL','[getOrderedTestFiles]\x20Response\x20from\x20result\x20URL:\x20','processSplitTestsResponse','timeout','[getOrderedTestFiles]\x20Exception\x20in\x20fetching\x20ordered\x20test\x20files:\x20','DdfDE','getSplitFiles','WhNCs','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL:\x20','timeoutInterval','mUAcx','resultUrl','postSplitFiles','defaultTimeout','stringify','8120799zmxAqf','18184banUwA','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL\x20after\x20waiting\x20for\x20','exports','timeoutUrl','splitTestsAPICallCount','map','now','wQxYN','_getHostInfo','BROWSERSTACK_TOTAL_NODE_COUNT','release','1480VdctmE','arch','8789368YiNLZJ','BPUDI','BROWSERSTACK_NODE_INDEX','body','winstonLogger','[splitTests]\x20Response\x20from\x20split\x20tests\x20API:\x20','458728GeZdcb','config',',\x20timeoutUrl:\x20','defaultTimeoutInterval','toString','\x20seconds.','gazDv','[getOrderedTestFiles]\x20Fetching\x20ordered\x20test\x20files','debug','239523NwepZQ','buildName','getSplitTestsAPICallCount','totalmem','loIux',',\x20resultUrl:\x20','filePath','7871094BRLAHD','aiZqs','lUFdN','tests'];a124_0x9f01=function(){return _0x1651ed;};return a124_0x9f01();}function a124_0x41e3(_0x3c0704,_0x58e6e7){const _0x9f014c=a124_0x9f01();return a124_0x41e3=function(_0x41e3ff,_0x915b2){_0x41e3ff=_0x41e3ff-0xb7;let _0x52c216=_0x9f014c[_0x41e3ff];return _0x52c216;},a124_0x41e3(_0x3c0704,_0x58e6e7);}(function(_0x4dfa6e,_0x53748c){const _0x542728=a124_0x41e3,_0x540d8a=_0x4dfa6e();while(!![]){try{const _0x4ada74=parseInt(_0x542728(0xf5))/0x1+parseInt(_0x542728(0xc8))/0x2*(-parseInt(_0x542728(0xbb))/0x3)+parseInt(_0x542728(0xe2))/0x4*(-parseInt(_0x542728(0xed))/0x5)+parseInt(_0x542728(0xc2))/0x6+parseInt(_0x542728(0xef))/0x7+-parseInt(_0x542728(0xd1))/0x8+parseInt(_0x542728(0xe1))/0x9;if(_0x4ada74===_0x53748c)break;else _0x540d8a['push'](_0x540d8a['shift']());}catch(_0x44b660){_0x540d8a['push'](_0x540d8a['shift']());}}}(a124_0x9f01,0xaaac4));const logger=require(a124_0x4e7137(0xcc))[a124_0x4e7137(0xf3)],RequestUtils=require('./requestUtils');class TestOrderingServerHandler{constructor(_0x30a9c5){const _0x2518b1=a124_0x4e7137;this[_0x2518b1(0xf6)]=_0x30a9c5,this[_0x2518b1(0xe6)]=0x0,this['defaultTimeout']=0x3c,this[_0x2518b1(0xf8)]=0x5;}[a124_0x4e7137(0xbd)](){return this['splitTestsAPICallCount'];}[a124_0x4e7137(0xd4)](_0x158b84){const _0x4e7d34=a124_0x4e7137,_0x57f391={};_0x57f391['aQqBw']='[processSplitTestsResponse]\x20Received\x20null\x20value(s)\x20for\x20some\x20attributes\x20in\x20split\x20tests\x20API\x20response';const _0x31fbf0=_0x57f391;if(!_0x158b84)return null;const _0x646764={};return _0x646764['timeout']=_0x158b84['timeout']||this[_0x4e7d34(0xdf)],_0x646764['timeoutInterval']=_0x158b84[_0x4e7d34(0xdb)]||this[_0x4e7d34(0xf8)],_0x646764[_0x4e7d34(0xdd)]=_0x158b84[_0x4e7d34(0xdd)],_0x646764[_0x4e7d34(0xe5)]=_0x158b84[_0x4e7d34(0xe5)],logger[_0x4e7d34(0xba)](_0x4e7d34(0xcb)+JSON[_0x4e7d34(0xe0)](_0x158b84)),logger['debug'](_0x4e7d34(0xcd)+_0x158b84[_0x4e7d34(0xd5)]+_0x4e7d34(0xcf)+_0x158b84['timeoutInterval']+_0x4e7d34(0xc0)+_0x158b84['resultUrl']+_0x4e7d34(0xf7)+_0x158b84[_0x4e7d34(0xe5)]),(!_0x158b84[_0x4e7d34(0xd5)]||!_0x158b84[_0x4e7d34(0xdb)]||!_0x158b84[_0x4e7d34(0xe5)]||!_0x158b84[_0x4e7d34(0xdd)])&&logger[_0x4e7d34(0xba)](_0x31fbf0[_0x4e7d34(0xc7)]),_0x646764;}async['splitTests'](_0x16ebaf,_0x378b97){const _0x596a58=a124_0x4e7137,_0x34e006={'aiZqs':function(_0x37a0fa,_0x175c98){return _0x37a0fa(_0x175c98);}};try{const _0x3e48d1=_0x34e006[_0x596a58(0xc3)](parseInt,process['env'][_0x596a58(0xf1)]||'0'),_0x5878b4=_0x34e006[_0x596a58(0xc3)](parseInt,process['env'][_0x596a58(0xeb)]||'1'),_0x1ea5be=process[_0x596a58(0xc6)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],_0x52da4c={'nodeIndex':_0x3e48d1,'totalNodes':_0x5878b4,'projectName':this[_0x596a58(0xf6)]['projectName'],'buildName':this['config'][_0x596a58(0xbc)],'buildRunIdentifier':_0x1ea5be,'orchestrationStrategy':_0x378b97,'hostInfo':this[_0x596a58(0xea)](),'tests':_0x16ebaf[_0x596a58(0xe7)](_0x13590e=>({'filePath':_0x13590e}))},_0x5006b4=await RequestUtils[_0x596a58(0xde)](_0x52da4c);return logger['debug'](_0x596a58(0xf4)+JSON[_0x596a58(0xe0)](_0x5006b4)),this[_0x596a58(0xe6)]+=0x1,this[_0x596a58(0xd4)](_0x5006b4[_0x596a58(0xf2)]||{});}catch(_0x3f201c){return logger[_0x596a58(0xba)]('[splitTests]\x20Exception\x20in\x20sending\x20test\x20files:\x20'+(_0x3f201c[_0x596a58(0xca)]||_0x3f201c[_0x596a58(0xf9)]())),null;}}async['getOrderedTestFiles'](_0x18c743){const _0x26fa7e=a124_0x4e7137,_0x452d9a={};_0x452d9a[_0x26fa7e(0xd7)]=_0x26fa7e(0xb9),_0x452d9a[_0x26fa7e(0xe9)]=function(_0x142095,_0x594a49){return _0x142095*_0x594a49;},_0x452d9a[_0x26fa7e(0xdc)]=function(_0x656257,_0x5a0a37){return _0x656257&&_0x5a0a37;},_0x452d9a['TpUNP']=function(_0xa0b360,_0x1f5ee5){return _0xa0b360<_0x1f5ee5;},_0x452d9a[_0x26fa7e(0xd9)]=function(_0x1aff96,_0x5acc76){return _0x1aff96-_0x5acc76;},_0x452d9a['gazDv']=function(_0x148833,_0x3f3c1e){return _0x148833&&_0x3f3c1e;},_0x452d9a['lUFdN']=_0x26fa7e(0xd2),_0x452d9a[_0x26fa7e(0xbf)]=function(_0x525db3,_0x481a72){return _0x525db3>_0x481a72;};const _0x60d6fa=_0x452d9a;if(!_0x18c743)return null;try{logger[_0x26fa7e(0xba)](_0x60d6fa[_0x26fa7e(0xd7)]);const _0x139858=_0x18c743['timeoutInterval']||this[_0x26fa7e(0xf8)],_0x169766=_0x60d6fa[_0x26fa7e(0xe9)](_0x18c743[_0x26fa7e(0xd5)]||this[_0x26fa7e(0xdf)],0x3e8),_0x44b0fe=_0x18c743[_0x26fa7e(0xe5)],_0x2e4b3=_0x18c743[_0x26fa7e(0xdd)];if(_0x60d6fa[_0x26fa7e(0xdc)](!_0x2e4b3,!_0x44b0fe))return null;let _0x5a0d7c=null;const _0xbdab65=Date[_0x26fa7e(0xe8)]();while(_0x2e4b3&&_0x60d6fa[_0x26fa7e(0xce)](_0x60d6fa['WhNCs'](Date[_0x26fa7e(0xe8)](),_0xbdab65),_0x169766)){logger[_0x26fa7e(0xba)](_0x26fa7e(0xda)+_0x2e4b3);const _0x3adfb3=await RequestUtils['getSplitFiles'](_0x2e4b3);logger[_0x26fa7e(0xba)](_0x26fa7e(0xd3)+JSON[_0x26fa7e(0xe0)](_0x3adfb3)),this[_0x26fa7e(0xe6)]+=0x1;if(_0x3adfb3&&_0x3adfb3[_0x26fa7e(0xc5)]){_0x5a0d7c=_0x3adfb3[_0x26fa7e(0xc5)];break;}await new Promise(_0x33bbfb=>setTimeout(_0x33bbfb,_0x139858*0x3e8)),logger[_0x26fa7e(0xba)](_0x26fa7e(0xe3)+_0x139858+_0x26fa7e(0xb7));}if(_0x60d6fa[_0x26fa7e(0xb8)](!_0x5a0d7c,_0x44b0fe)){logger[_0x26fa7e(0xba)](_0x60d6fa[_0x26fa7e(0xc4)]);const _0x11fabe=await RequestUtils[_0x26fa7e(0xd8)](_0x44b0fe);_0x11fabe&&_0x11fabe[_0x26fa7e(0xc5)]&&(_0x5a0d7c=_0x11fabe['tests']);}if(_0x5a0d7c&&_0x60d6fa['loIux'](_0x5a0d7c[_0x26fa7e(0xc9)],0x0))return _0x5a0d7c['map'](_0x470fe6=>_0x470fe6[_0x26fa7e(0xc1)]);return null;}catch(_0x535974){return logger[_0x26fa7e(0xba)](_0x26fa7e(0xd6)+(_0x535974[_0x26fa7e(0xca)]||_0x535974[_0x26fa7e(0xf9)]())),null;}}[a124_0x4e7137(0xea)](){const _0x28bc83=a124_0x4e7137,_0x306634={'BPUDI':function(_0x519e88,_0x1e396b){return _0x519e88(_0x1e396b);}},_0x21cb2c=_0x306634[_0x28bc83(0xf0)](require,'os');try{return{'hostname':_0x21cb2c[_0x28bc83(0xd0)](),'platform':_0x21cb2c['platform'](),'release':_0x21cb2c[_0x28bc83(0xec)](),'arch':_0x21cb2c[_0x28bc83(0xee)](),'totalmem':_0x21cb2c[_0x28bc83(0xbe)](),'freemem':_0x21cb2c['freemem']()};}catch(_0x1a89ea){return{};}}}module[a124_0x4e7137(0xe4)]=TestOrderingServerHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a125_0x1302(){var _0x476080=['627216DbOANB','HookFinished','HookRunStarted','ERROR_INVALID_CREDENTIALS','TestRunSkipped','ERROR','TestFinished','TestRunStarted','TestSkipped','exports','24nXoAfl','TestStarted','INVALID_CREDENTIALS','581608TPCRZv','HookStarted','observability','OBSERVABILITY','5436590MgPaKn','22xVyOrl','ACCESSIBILITY','ERROR_ACCESS_DENIED','ENV_VAR','TestRunFinished','186351wxxdxi','LogCreated','5389950zimCAH','3621200mftxxy','DEPRECATED','CBTSessionCreated','BROWSERSTACK_TESTHUB_UUID','ACCESS_DENIED','BROWSERSTACK_TESTHUB_JWT','HookRunFinished','TESTHUB_BUILD_API','997255OhcIVN','36ajXukp'];a125_0x1302=function(){return _0x476080;};return a125_0x1302();}var a125_0x384a2b=a125_0x51bb;(function(_0xbab197,_0x1d32ea){var _0x2aff56=a125_0x51bb,_0x341d63=_0xbab197();while(!![]){try{var _0x3e8a8c=parseInt(_0x2aff56(0x1bc))/0x1+-parseInt(_0x2aff56(0x1aa))/0x2*(-parseInt(_0x2aff56(0x1af))/0x3)+parseInt(_0x2aff56(0x1a5))/0x4+parseInt(_0x2aff56(0x1b2))/0x5+parseInt(_0x2aff56(0x1b1))/0x6+parseInt(_0x2aff56(0x1ba))/0x7*(-parseInt(_0x2aff56(0x1a2))/0x8)+-parseInt(_0x2aff56(0x1bb))/0x9*(parseInt(_0x2aff56(0x1a9))/0xa);if(_0x3e8a8c===_0x1d32ea)break;else _0x341d63['push'](_0x341d63['shift']());}catch(_0x25a802){_0x341d63['push'](_0x341d63['shift']());}}}(a125_0x1302,0x74517));var a125_0x3743a4={};a125_0x3743a4[a125_0x384a2b(0x1a4)]=a125_0x384a2b(0x1bf),a125_0x3743a4[a125_0x384a2b(0x1b3)]='ERROR_SDK_DEPRECATED',a125_0x3743a4[a125_0x384a2b(0x1b6)]=a125_0x384a2b(0x1ac);var a125_0x29675b={};a125_0x29675b[a125_0x384a2b(0x1a3)]=a125_0x384a2b(0x19f),a125_0x29675b[a125_0x384a2b(0x19e)]=a125_0x384a2b(0x1ae),a125_0x29675b[a125_0x384a2b(0x1a0)]=a125_0x384a2b(0x19c),a125_0x29675b[a125_0x384a2b(0x1b0)]=a125_0x384a2b(0x1b0),a125_0x29675b[a125_0x384a2b(0x1a6)]=a125_0x384a2b(0x1be),a125_0x29675b[a125_0x384a2b(0x1bd)]=a125_0x384a2b(0x1b8),a125_0x29675b[a125_0x384a2b(0x1b4)]=a125_0x384a2b(0x1b4);var a125_0x4b073a={};function a125_0x51bb(_0x5f020e,_0x42add7){var _0x130232=a125_0x1302();return a125_0x51bb=function(_0x51bb3d,_0x3165ea){_0x51bb3d=_0x51bb3d-0x19c;var _0x2ed355=_0x130232[_0x51bb3d];return _0x2ed355;},a125_0x51bb(_0x5f020e,_0x42add7);}a125_0x4b073a[a125_0x384a2b(0x1b5)]=a125_0x384a2b(0x1b5),a125_0x4b073a[a125_0x384a2b(0x1b7)]=a125_0x384a2b(0x1b7);var a125_0x37be8d={};a125_0x37be8d[a125_0x384a2b(0x1b9)]='api/v2/builds',a125_0x37be8d[a125_0x384a2b(0x1ab)]='accessibility',a125_0x37be8d[a125_0x384a2b(0x1a8)]=a125_0x384a2b(0x1a7),a125_0x37be8d[a125_0x384a2b(0x19d)]=a125_0x3743a4,a125_0x37be8d['EVENT']=a125_0x29675b,a125_0x37be8d[a125_0x384a2b(0x1ad)]=a125_0x4b073a,module[a125_0x384a2b(0x1a1)]=a125_0x37be8d;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a126_0x4af2c8=a126_0x5ac8;(function(_0xf88e07,_0x53c5ad){const _0x190b80=a126_0x5ac8,_0x10901a=_0xf88e07();while(!![]){try{const _0x54fe1d=-parseInt(_0x190b80(0x106))/0x1+parseInt(_0x190b80(0xfc))/0x2*(parseInt(_0x190b80(0x132))/0x3)+-parseInt(_0x190b80(0x11c))/0x4+parseInt(_0x190b80(0x14e))/0x5*(-parseInt(_0x190b80(0x127))/0x6)+-parseInt(_0x190b80(0x14c))/0x7+parseInt(_0x190b80(0x160))/0x8*(parseInt(_0x190b80(0x14d))/0x9)+parseInt(_0x190b80(0x100))/0xa;if(_0x54fe1d===_0x53c5ad)break;else _0x10901a['push'](_0x10901a['shift']());}catch(_0x265742){_0x10901a['push'](_0x10901a['shift']());}}}(a126_0x268e,0xe3ef4));const bsSetupHelper=require(a126_0x4af2c8(0xf3)),path=require(a126_0x4af2c8(0x11b)),util=require(a126_0x4af2c8(0x120)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a126_0x4af2c8(0x16d)),testhubUtils=require(a126_0x4af2c8(0x138)),testHubConstants=require(a126_0x4af2c8(0x15f)),constants=require(a126_0x4af2c8(0x109)),RequestQueueHandler=require(a126_0x4af2c8(0x165)),logger=require(a126_0x4af2c8(0x146))[a126_0x4af2c8(0x11d)],SessionHandler=require(a126_0x4af2c8(0x185)),PerformanceTester=require(a126_0x4af2c8(0x13d)),{TESTHUB_EVENTS:PerformanceEvents}=require(a126_0x4af2c8(0x163)),TestDetails=require(a126_0x4af2c8(0x182)),{uploadTraceZip}=require(a126_0x4af2c8(0x10d)),{isTurboScaleSession}=require(a126_0x4af2c8(0x102)),BrowserstackCLI=require(a126_0x4af2c8(0x151)),OngoingEvents=new Set();let processedTraceZips=![];function a126_0x268e(){const _0x51397a=['yzdzD','basename','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','message','Error\x20while\x20waiting\x20for\x20events:\x20','isRunning','ENV_VAR','WdDbx','true','BROWSERSTACK_LINKED_BUILD_UUID','stringify','finished_metadata','../../bin/playwright/reporter/test-details.js','assign','uJhYy','../test-observability/sessionHandler.js','FVAlm','null','GteiY','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','data','pqTzu','extractDataFromResponse','TvVaS','forEach','cwd','SslwQ','START','getTestOrchestrationBuildStartData','wOHbh','../helper','measureWrapper','env','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','checkAndSetupPercy','debug','buildIdentifier','DdvFj','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER','56AYvZXO','buildStopSent','BROWSERSTACK_TESTHUB_UUID','hcQDd','20269680vaCZrF','JBlae','../helper.js','All\x20trace\x20zip\x20send\x20events\x20complete','ozEFj','Bwrxv','911804UCmTdW','CJiFC','jwt','../../bin/utils/constants.js','getAccessibilityOptions','add','auth','../../bin/playwright/reporter/pwUtils.js','includeEncodedExtension','processTraceZips','BROWSERSTACK_TESTHUB_JWT','OBSERVABILITY','settings','HVgJH','accessibility','ZVTSV','\x20framework','getProductMapForBuildStartCall','stopBuildUpstream\x20event\x20successful!','getCentralUser','getConfig','path','3427772bzsIDe','winstonLogger','POST','DthuH','util','BROWSERSTACK_CENTRAL_SCANNER_JOBID','waitForBuildStatus','buildDescription','buildName','statusText','ImomK','108198vSLQrf','STOP','BiXFN','resolve','jWCcJ','generateBuildUpstreamData','getInstance','BROWSERSTACK_PRODUCT_MAP','lcnc','oAhNg','framework','96645sJiTna','getAccessibilityValueFromYml','getFrameworkDetails','stop','BROWSERSTACK_RERUN','/stop','./utils.js','includes','getUserName','response','uploadPending','../performance/performance-tester.js','user_killed','getHostInfo','getGitMetaData','authToken','RYmkp','setAccessibilityVariables','Percy\x20is\x20not\x20supported\x20for\x20','username','../logger','setTestObservabilityVariables','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','isAccessibilityEnabled','BROWSERSTACK_TEST_OBSERVABILITY','eZymi','1111166YTFFvj','3508506ghVFKo','235vSjEIh','JEUzl','api/v1/builds/','../../bin/v2/browserstackCLI','mLJDH','Generating\x20build\x20upstream\x20data\x20for\x20TestHub','toISOString','config','setupPercy','BROWSERSTACK_BUILD_RUN_IDENTIFIER','success','ZTTjf','cMcnm','PERCY_SUPPORTED_FRAMEWORKS','setTestHubCommonMetaInfo','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','BROWSERSTACK_ACCESSIBILITY','./constants.js','16EiiupA','buildHashedId','projectName','../performance/constants','accessibilityOptions','../test-observability/requestQueueHandler.js','password','AsTlq','ACCESSIBILITY','TnmWB','central_scanner','getTraceFilePaths','SYXwT','../test-observability/utils','Testhub\x20started\x20with\x20id:\x20','push','token','WKATJ','RIYiT','error','status','false'];a126_0x268e=function(){return _0x51397a;};return a126_0x268e();}const addEvent=_0x146085=>{const _0x2587e4=a126_0x4af2c8;OngoingEvents[_0x2587e4(0x10b)](_0x146085);},awaitAllEvents=async()=>{return Promise['allSettled'](OngoingEvents);};function a126_0x5ac8(_0x430c6e,_0x3ac17b){const _0x268e51=a126_0x268e();return a126_0x5ac8=function(_0x5ac8f7,_0x583248){_0x5ac8f7=_0x5ac8f7-0xea;let _0x2430bc=_0x268e51[_0x5ac8f7];return _0x2430bc;},a126_0x5ac8(_0x430c6e,_0x3ac17b);}class TestHubHandler{static ['buildStopSent']=![];static async['launchBuild'](_0x7df1ad,_0x29d8c3){const _0x1d106d=a126_0x4af2c8,_0x4a31f7={'mLJDH':function(_0x121b29,_0x1aa945){return _0x121b29||_0x1aa945;},'BiXFN':function(_0x4a9396,_0x18f709){return _0x4a9396||_0x18f709;},'uJhYy':function(_0x1c06ce,_0x2b5d62){return _0x1c06ce===_0x2b5d62;},'Bwrxv':function(_0x3aada3){return _0x3aada3();},'hcQDd':_0x1d106d(0xf6),'JBlae':_0x1d106d(0x175),'eZymi':_0x1d106d(0x189),'DthuH':function(_0x1901d8,_0x5b5eb5,_0x2abbda,_0x58833a,_0x1fc023){return _0x1901d8(_0x5b5eb5,_0x2abbda,_0x58833a,_0x1fc023);},'ONdTQ':_0x1d106d(0x11e),'TvVaS':_0x1d106d(0x114),'CJiFC':_0x1d106d(0x17e),'ZTTjf':function(_0x1fe99f,_0x3e7135){return _0x1fe99f===_0x3e7135;}};await PerformanceTester[_0x1d106d(0xf4)](PerformanceEvents[_0x1d106d(0xf0)],async()=>{const _0x1d4317=_0x1d106d,_0x544ecb=Object[_0x1d4317(0x183)]({},_0x29d8c3[_0x1d4317(0x155)],{'root_dir_path':'','framework':_0x29d8c3[_0x1d4317(0x131)]}),_0x3f9b65=bsSetupHelper[_0x1d4317(0x13a)](_0x544ecb),_0x501e7a=bsSetupHelper['getAccessKey'](_0x544ecb),_0x21a929=_0x4a31f7[_0x1d4317(0x152)](_0x3f9b65,'')+':'+_0x4a31f7[_0x1d4317(0x129)](_0x501e7a,''),_0x307ea8=testhubUtils['getProductMap'](_0x544ecb);process[_0x1d4317(0xf5)][_0x1d4317(0x12e)]=JSON[_0x1d4317(0x180)](_0x307ea8);if(_0x4a31f7[_0x1d4317(0x184)](_0x21a929,':'))return _0x4a31f7[_0x1d4317(0x105)](isTestObservabilitySession)&&(logger[_0x1d4317(0xf8)](_0x4a31f7[_0x1d4317(0xff)]),process[_0x1d4317(0xf5)]['BS_TESTOPS_BUILD_COMPLETED']=_0x4a31f7[_0x1d4317(0x101)]),testhubUtils[_0x1d4317(0x149)](_0x544ecb)&&logger['debug'](_0x4a31f7[_0x1d4317(0x14b)]),[null,null];try{const _0x42cb39=await this[_0x1d4317(0x12c)](_0x544ecb,_0x7df1ad),_0x546654=this[_0x1d4317(0x11a)](_0x3f9b65,_0x501e7a),_0x488d91=await _0x4a31f7[_0x1d4317(0x11f)](nodeRequest,_0x4a31f7['ONdTQ'],testHubConstants['TESTHUB_BUILD_API'],_0x42cb39,_0x546654),_0x128b04=this[_0x1d4317(0xeb)](_0x544ecb,_0x488d91,_0x546654);await this[_0x1d4317(0xf7)](_0x29d8c3,_0x7df1ad);if(_0x4a31f7[_0x1d4317(0x184)](testhubUtils[_0x1d4317(0x133)](_0x29d8c3[_0x1d4317(0x155)]),null)){const _0x252d19=_0x128b04[_0x4a31f7[_0x1d4317(0xec)]];_0x252d19&&_0x252d19[_0x1d4317(0x141)]&&_0x252d19[_0x1d4317(0x161)]&&(_0x29d8c3[_0x1d4317(0x155)][_0x1d4317(0x114)]=!![],process[_0x1d4317(0xf5)][_0x1d4317(0x15d)]=_0x4a31f7[_0x1d4317(0x107)]);}return _0x128b04;}catch(_0x3b7fca){if(_0x4a31f7[_0x1d4317(0x159)](_0x3b7fca[_0x1d4317(0x158)],![])){testhubUtils['logBuildError'](_0x3b7fca);return;}}})();}static async[a126_0x4af2c8(0x10f)](){const _0x255095=a126_0x4af2c8,_0x5ededb={'SslwQ':function(_0x30aff7,_0x54a0fb,_0x31e547){return _0x30aff7(_0x54a0fb,_0x31e547);},'XZfdM':function(_0x3bb5dd,_0x4abfc2){return _0x3bb5dd(_0x4abfc2);},'AsTlq':function(_0x3c073d){return _0x3c073d();},'TnmWB':_0x255095(0x103)};if(processedTraceZips)return;const _0xe06ffb=TestDetails[_0x255095(0x16b)]();_0xe06ffb[_0x255095(0xed)](({testUId:_0x4a8328,filePath:_0x2b1600})=>{const _0xaca0eb=_0x255095;var _0x22e76b=_0x5ededb[_0xaca0eb(0xef)](uploadTraceZip,_0x2b1600,_0x4a8328);_0x5ededb['XZfdM'](addEvent,_0x22e76b);});try{await _0x5ededb[_0x255095(0x167)](awaitAllEvents),logger[_0x255095(0xf8)](_0x5ededb[_0x255095(0x169)]),processedTraceZips=!![];}catch(_0x335b1c){logger['error'](_0x255095(0x17a)+util['format'](_0x335b1c));}}static async[a126_0x4af2c8(0xf7)](_0x27d793,_0x4f5409){const _0x19d598=a126_0x4af2c8;if(constants[_0x19d598(0x15b)][_0x19d598(0x139)](_0x4f5409)){await _0x27d793[_0x19d598(0x156)]();return;}_0x27d793[_0x19d598(0x155)]['percy']&&logger['debug'](_0x19d598(0x144)+_0x4f5409+_0x19d598(0x116));}static[a126_0x4af2c8(0x10a)](_0x1e2e0d){const _0x34c360=a126_0x4af2c8,_0x4be50e={'JEUzl':function(_0x15661d,_0x99313f){return _0x15661d(_0x99313f);},'jWCcJ':'true'};let _0x44360f;if(_0x1e2e0d[_0x34c360(0x164)]){const _0x31c909={};_0x31c909[_0x34c360(0x112)]=_0x1e2e0d[_0x34c360(0x164)],_0x44360f=_0x31c909;}else{const _0xdf4a37={};_0xdf4a37[_0x34c360(0x112)]={},_0x44360f=_0xdf4a37;}if((!bsSetupHelper['isBrowserstackInfra']()||_0x4be50e[_0x34c360(0x14f)](isTurboScaleSession,_0x1e2e0d))&&testhubUtils[_0x34c360(0x149)](_0x1e2e0d)){const _0x1358a1={};_0x1358a1[_0x34c360(0x10e)]=_0x4be50e[_0x34c360(0x12b)],Object[_0x34c360(0x183)](_0x44360f[_0x34c360(0x112)],_0x1358a1);}return _0x44360f;}static[a126_0x4af2c8(0x11a)](_0x53644e,_0x4c0d26){const _0x38d4d2=a126_0x4af2c8,_0x28ea94={'wOHbh':function(_0x247fcd,_0x5dfd55){return _0x247fcd(_0x5dfd55);}},_0x330260={};return _0x330260[_0x38d4d2(0x145)]=_0x53644e,_0x330260[_0x38d4d2(0x166)]=_0x4c0d26,{'auth':_0x330260,'headers':_0x28ea94[_0x38d4d2(0xf2)](getDefaultHeaders,![])};}static async[a126_0x4af2c8(0x12c)](_0x5e3ebe,_0x268441){const _0x12c444=a126_0x4af2c8,_0x392e22={'WdDbx':_0x12c444(0x153),'AqfVb':function(_0x24a9c6,_0x20b00f){return _0x24a9c6(_0x20b00f);}};logger['debug'](_0x392e22[_0x12c444(0x17d)]);const _0x798c2a={'project_name':_0x5e3ebe[_0x12c444(0x162)]||'','name':_0x5e3ebe[_0x12c444(0x124)]||path[_0x12c444(0x177)](path[_0x12c444(0x12a)](process[_0x12c444(0xee)]())),'build_identifier':_0x5e3ebe[_0x12c444(0xf9)],'description':_0x5e3ebe[_0x12c444(0x123)]||'','started_at':new Date()[_0x12c444(0x154)](),'tags':_0x392e22['AqfVb'](getCustomTags,_0x5e3ebe),'host_info':bsSetupHelper[_0x12c444(0x13f)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process['env'][_0x12c444(0x157)],'failed_tests_rerun':process['env'][_0x12c444(0x136)]||![],'linked_build_uuid':process['env'][_0x12c444(0x17f)]||'','version_control':await bsSetupHelper[_0x12c444(0x140)](),'accessibility':this[_0x12c444(0x10a)](_0x5e3ebe),'framework_details':testhubUtils[_0x12c444(0x134)](_0x5e3ebe,_0x268441),'product_map':testhubUtils[_0x12c444(0x117)](_0x5e3ebe),'browserstackAutomation':bsSetupHelper['isBrowserstackInfra'](),'grouping_identifier':process[_0x12c444(0xf5)][_0x12c444(0xfb)],'test_orchestration':testhubUtils[_0x12c444(0xf1)](_0x5e3ebe)};if(bsSetupHelper[_0x12c444(0x119)]()[_0x12c444(0x16a)]||bsSetupHelper['getCentralUser']()[_0x12c444(0x12f)]){const _0x353a26={};_0x353a26['job_id']=process['env'][_0x12c444(0x121)],_0x353a26[_0x12c444(0x170)]=process[_0x12c444(0xf5)]['BROWSERSTACK_CENTRAL_SCANNER_JWT'],_0x798c2a['central_scanner']=_0x353a26;}return _0x798c2a;}static['extractDataFromResponse'](_0x3a2f3a,_0x20c11e,_0x4cfd60){const _0x3bebad=a126_0x4af2c8,_0x47b071={'noWTI':function(_0x47af50){return _0x47af50();},'ImomK':function(_0x58723b,_0x4c6c6a){return _0x58723b&&_0x4c6c6a;},'oAhNg':'true','FVAlm':_0x3bebad(0x175)},_0xdcb364={};if(_0x47b071['noWTI'](isTestObservabilitySession)){const [_0x3aa173,_0x32cfa2,_0x181f81]=testhubUtils[_0x3bebad(0x147)](_0x20c11e['data'],_0x4cfd60[_0x3bebad(0x10c)]);if(_0x47b071[_0x3bebad(0x126)](_0x3aa173,_0x32cfa2)){const _0x271f67={};_0x271f67[_0x3bebad(0x108)]=_0x3aa173,_0x271f67[_0x3bebad(0x161)]=_0x32cfa2,_0x271f67['allowScreenshot']=_0x181f81,_0xdcb364[testHubConstants[_0x3bebad(0x111)]]=_0x271f67,process['env'][_0x3bebad(0x14a)]=_0x47b071[_0x3bebad(0x130)];}else _0xdcb364[testHubConstants['OBSERVABILITY']]={},process[_0x3bebad(0xf5)][_0x3bebad(0x14a)]=_0x47b071[_0x3bebad(0x186)];}else process[_0x3bebad(0xf5)][_0x3bebad(0x14a)]=_0x47b071[_0x3bebad(0x186)];const [_0x4a1edf,_0x14be5d]=testhubUtils[_0x3bebad(0x143)](_0x20c11e['data']);if(_0x47b071[_0x3bebad(0x126)](_0x4a1edf,_0x14be5d)){const _0x50801c={};_0x50801c['authToken']=_0x4a1edf,_0x50801c[_0x3bebad(0x161)]=_0x14be5d,_0xdcb364[testHubConstants[_0x3bebad(0x168)]]=_0x50801c,process[_0x3bebad(0xf5)][_0x3bebad(0x15e)]=_0x47b071[_0x3bebad(0x130)];}else _0xdcb364[testHubConstants[_0x3bebad(0x168)]]={},process[_0x3bebad(0xf5)][_0x3bebad(0x15e)]=_0x47b071[_0x3bebad(0x186)];return testhubUtils[_0x3bebad(0x15c)](_0x20c11e[_0x3bebad(0x18a)]),logger['info'](_0x3bebad(0x16e)+process['env'][_0x3bebad(0xfe)]),_0xdcb364;}static async[a126_0x4af2c8(0x135)](_0x26d48d){const _0x1c6b19=a126_0x4af2c8,_0x2ccf9f={'RIYiT':function(_0x427495,_0x485f38){return _0x427495===_0x485f38;},'ZVTSV':_0x1c6b19(0x175),'DdvFj':function(_0xc57fca,_0x11552a){return _0xc57fca===_0x11552a;},'SYXwT':_0x1c6b19(0x187),'gndgY':function(_0x1f4fd8,_0x13a8f0){return _0x1f4fd8===_0x13a8f0;},'YKaEI':'EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','WKATJ':_0x1c6b19(0x173),'kIdzO':_0x1c6b19(0x148),'RYmkp':_0x1c6b19(0x181),'cMcnm':_0x1c6b19(0x13e),'pqTzu':function(_0x17d838){return _0x17d838();},'yzdzD':function(_0x2865a0,_0x14440e,_0x38af30,_0x259364,_0x5847c9,_0x58dfaf){return _0x2865a0(_0x14440e,_0x38af30,_0x259364,_0x5847c9,_0x58dfaf);},'GteiY':'PUT','ozEFj':_0x1c6b19(0x118),'HVgJH':_0x1c6b19(0x158)};await PerformanceTester[_0x1c6b19(0xf4)](PerformanceEvents[_0x1c6b19(0x128)],async()=>{const _0x492151=_0x1c6b19;if(_0x2ccf9f[_0x492151(0x172)](process[_0x492151(0xf5)]['BS_TESTOPS_BUILD_COMPLETED'],_0x2ccf9f[_0x492151(0x115)])||TestHubHandler['buildStopSent']||bsSetupHelper['isUndefined'](process[_0x492151(0xf5)][testHubConstants[_0x492151(0x17c)][_0x492151(0x110)]]))return;TestHubHandler[_0x492151(0xfd)]=!![];if(BrowserstackCLI[_0x492151(0x12d)]()[_0x492151(0x17b)]())return;await this[_0x492151(0x10f)](),await RequestQueueHandler[_0x492151(0x12d)]()[_0x492151(0x13c)](),await SessionHandler[_0x492151(0x122)]();if(_0x2ccf9f[_0x492151(0xfa)](process[_0x492151(0xf5)][testHubConstants['ENV_VAR'][_0x492151(0x110)]],_0x2ccf9f[_0x492151(0x16c)])||_0x2ccf9f['gndgY'](process[_0x492151(0xf5)][testHubConstants[_0x492151(0x17c)]['BROWSERSTACK_TESTHUB_UUID']],_0x2ccf9f['SYXwT'])){logger[_0x492151(0xf8)](_0x2ccf9f['YKaEI']);const _0x59e515={};return _0x59e515['status']=_0x2ccf9f['WKATJ'],_0x59e515[_0x492151(0x179)]=_0x2ccf9f['kIdzO'],_0x59e515;}const _0x29a32e={'finished_at':new Date()[_0x492151(0x154)](),'finished_metadata':[]};!!_0x26d48d&&_0x29a32e[_0x2ccf9f[_0x492151(0x142)]][_0x492151(0x16f)]({'reason':_0x2ccf9f[_0x492151(0x15a)],'signal':_0x26d48d,'failure_data':''});const _0x35539b={'headers':_0x2ccf9f[_0x492151(0xea)](getDefaultHeaders)};try{const _0x2e5cb5=await _0x2ccf9f[_0x492151(0x176)](nodeRequest,_0x2ccf9f[_0x492151(0x188)],_0x492151(0x150)+process['env'][testHubConstants['ENV_VAR'][_0x492151(0xfe)]]+_0x492151(0x137),_0x29a32e,_0x35539b,![]);if(_0x2e5cb5[_0x492151(0x18a)]&&_0x2e5cb5[_0x492151(0x18a)]['error']){const _0x5e07a7={};_0x5e07a7['message']=_0x2e5cb5[_0x492151(0x18a)][_0x492151(0x173)];throw _0x5e07a7;}else{logger[_0x492151(0xf8)](_0x2ccf9f[_0x492151(0x104)]);const _0x69b36e={};return _0x69b36e['status']=_0x2ccf9f[_0x492151(0x113)],_0x69b36e[_0x492151(0x179)]='',_0x69b36e;}}catch(_0x570398){_0x570398[_0x492151(0x13b)]?logger['debug'](_0x492151(0x178)+_0x570398['response'][_0x492151(0x174)]+'\x20'+_0x570398[_0x492151(0x13b)][_0x492151(0x125)]+'\x20'+JSON[_0x492151(0x180)](_0x570398['response'][_0x492151(0x18a)])):logger[_0x492151(0xf8)](_0x492151(0x178)+(_0x570398[_0x492151(0x179)]||_0x570398));const _0x5cd943={};return _0x5cd943[_0x492151(0x174)]=_0x2ccf9f[_0x492151(0x171)],_0x5cd943[_0x492151(0x179)]=_0x570398[_0x492151(0x179)]||_0x570398['response']?_0x570398[_0x492151(0x13b)][_0x492151(0x174)]+':'+_0x570398[_0x492151(0x13b)][_0x492151(0x125)]:_0x570398,_0x5cd943;}})();}}module['exports']=TestHubHandler;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a127_0x2062bc=a127_0x21a2;(function(_0x2603e9,_0x36daff){const _0x555ad4=a127_0x21a2,_0x2e8f75=_0x2603e9();while(!![]){try{const _0x2805b5=parseInt(_0x555ad4(0x138))/0x1*(parseInt(_0x555ad4(0x160))/0x2)+parseInt(_0x555ad4(0xdc))/0x3+-parseInt(_0x555ad4(0x106))/0x4+-parseInt(_0x555ad4(0xfd))/0x5+parseInt(_0x555ad4(0x165))/0x6*(parseInt(_0x555ad4(0x12d))/0x7)+parseInt(_0x555ad4(0xf5))/0x8*(parseInt(_0x555ad4(0x12f))/0x9)+-parseInt(_0x555ad4(0x105))/0xa;if(_0x2805b5===_0x36daff)break;else _0x2e8f75['push'](_0x2e8f75['shift']());}catch(_0x27f0dd){_0x2e8f75['push'](_0x2e8f75['shift']());}}}(a127_0x22b3,0xe7194));const bsSetupHelper=require(a127_0x2062bc(0x11d)),{isTestObservabilitySession,getFrameworkVersion}=require(a127_0x2062bc(0x132)),accessibilityHelper=require(a127_0x2062bc(0x154)),logger=require(a127_0x2062bc(0xd4))[a127_0x2062bc(0x13f)],{nestedKeyValue}=require(a127_0x2062bc(0x109)),scripts=require('../accessibility-automation/scripts.js'),globals=require(a127_0x2062bc(0x15d)),testHubConstants=require(a127_0x2062bc(0xbc)),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('../ats/helper'),OrchestrationUtils=require('../test-orchestration/orchestrationUtils.js'),constants=require(a127_0x2062bc(0xfb));let testData={};function a127_0x22b3(){const _0x1120d9=['MPXJH','product_map','URslQ','114QmTPFy','commands','znFBK',']\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','getGlobal','getBuildStartData','getAccessibilityValueFromYml','./constants.js','getTestFrameworkDetails','ZDNiV','setAccessibilityVariables','percy','platforms','xsDJV','BS_TESTOPS_BUILD_HASHED_ID','IBWGS','commandsToWrap','ZInmp','ZWaHV','javascript','tags','JEST','RyzjU','CUCUMBER','null','shouldProcessEventForTesthub','sjTBQ','mmNxJ','LogCreated','split','ACCESS_DENIED','../logger','eTUza','true','getTestData','ppiVG','getAccessibilityPlatformValidation','imuYM','ZWRzr','1907019juOwHL','BVyMM','BS_TESTOPS_JWT','BROWSERSTACK_ACCESSIBILITY','BROWSERSTACK_TESTHUB_UUID:\x20','RuZnv','BROWSERSTACK_PERCY','RbqsC','success','scannerVersion','pnDvQ','accessibilityPlatform','QWkws','setTestObservabilityVariables','risbP','titlePath','BzXZV','BROWSERSTACK_TESTHUB_UUID','HookRunStarted','xcKpC','DEPRECATED','message','app','yvkJR','key','7177088GmyUxm','HVBeb','password','isPercyBuild','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','ERROR','../../bin/utils/constants.js','Xvfhj','7722570vgNgsP','goog:chromeOptions','ACCESSIBILITY','isTrue','BS_A11Y_JWT','debug','wPSSw','BROWSERSTACK_TESTHUB_JWT','31956070fegApD','967860cLVpYN','EXwSW','handleErrorForAccessibility','../helper.js','isBrowserstackInfra','VwqOf','isAccessibilityEnabled','toString','isTurboScaleSession','BS_TESTOPS_BUILD_COMPLETED','4|1|3|0|2','PLAYWRIGHT','LEEWv','nonBStackInfraA11yChromeOptions','false','IxxWd','ItCfZ','logBuildError','error','HASWz','isUndefined','username','vgQqQ','../helper','toUpperCase','keys','TestRunStarted','vCWKX','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','EHefQ','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','scripts','OkoPA','isRunning','bstackA11yShouldScan','config','cFEFf','TLWbM','getAgentVersion','668927iYCvQZ','getTestOrchestrationBuildStartData','18VGyhbZ','shouldScanTestForAccessibility','stringify','../test-observability/utils','TEST_REPORTING_ANALYTICS','build_hashed_id','XgdrV','ENBsG','Kfjbl','1BafhtN','OBSERVABILITY','jwt','observability','join','env','value','winstonLogger','SfMvl','test_run','forEach','MOCHA','info','BROWSERSTACK_TEST_ACCESSIBILITY_YML','yaSMF','BS_TESTOPS_ALLOW_SCREENSHOTS','nlzJG','uuid','ZerHp','handleErrorForObservability','oqwAs','jcNWz','reJSe','options','includes','MCUuN','HookRunFinished','getCentralUser','../accessibility-automation/helper','ATMKu','capabilities','length','appendTesthubParams','CODECEPT','accessibility','MWlTZ','CBTSessionCreated','../globals.js','isAccessibilityPlatform','oRBOh','3366124QdondF','uploadEventData'];a127_0x22b3=function(){return _0x1120d9;};return a127_0x22b3();}function a127_0x21a2(_0xc31630,_0x2eaa43){const _0x22b3e3=a127_0x22b3();return a127_0x21a2=function(_0x21a243,_0x2f5fdc){_0x21a243=_0x21a243-0xbc;let _0x4656e0=_0x22b3e3[_0x21a243];return _0x4656e0;},a127_0x21a2(_0xc31630,_0x2eaa43);}exports['getProductMap']=_0x14bfb0=>{const _0x10725d=a127_0x2062bc,_0x566e64={'ppiVG':function(_0x21766e){return _0x21766e();}};let _0x4f5b16=![],_0x43f45a=![];if(bsSetupHelper['isBrowserstackInfra']()&&_0x14bfb0[_0x10725d(0xf2)])_0x43f45a=!![];else bsSetupHelper[_0x10725d(0x10a)]()&&(_0x4f5b16=!![]);return Object['assign']({'observability':_0x566e64[_0x10725d(0xd8)](isTestObservabilitySession),'accessibility':exports[_0x10725d(0x10c)](_0x14bfb0),'percy':_0x14bfb0[_0x10725d(0xc0)]||![],'automate':_0x4f5b16,'app_automate':_0x43f45a,'turboscale':bsSetupHelper[_0x10725d(0x10e)](_0x14bfb0)},bsSetupHelper[_0x10725d(0x153)]());},exports['getFrameworkDetails']=(_0x4281b3,_0x4508f0)=>{const _0x441f33=a127_0x2062bc,_0x12155b={'xcKpC':function(_0x9cec57,_0x3350bc){return _0x9cec57(_0x3350bc);},'LuJIg':_0x441f33(0xc8)};return{'frameworkName':_0x4508f0,'frameworkVersion':_0x12155b[_0x441f33(0xef)](getFrameworkVersion,_0x4508f0),'sdkVersion':bsSetupHelper[_0x441f33(0x12c)](),'language':_0x12155b['LuJIg'],'testFramework':bsSetupHelper[_0x441f33(0xbd)](_0x4281b3,_0x4508f0)};},exports['setPercyFlag']=_0x25769b=>{const _0x3a6024=a127_0x2062bc,_0xfa6c2={};_0xfa6c2['ZSOqn']='false',_0xfa6c2['NGviO']=_0x3a6024(0xd6);const _0x5e163e=_0xfa6c2;process[_0x3a6024(0x13d)][_0x3a6024(0xe2)]=_0x5e163e['ZSOqn'],bsSetupHelper['isTrue'](_0x25769b[_0x3a6024(0x129)]['percy'])&&(!_0x25769b[_0x3a6024(0xc0)]||!_0x25769b[_0x3a6024(0xc0)][_0x3a6024(0x127)]())&&(process[_0x3a6024(0x13d)][_0x3a6024(0xe2)]=_0x5e163e['NGviO']);},exports[a127_0x2062bc(0xf8)]=()=>{const _0x5c829b=a127_0x2062bc;return bsSetupHelper[_0x5c829b(0x100)](process[_0x5c829b(0x13d)][_0x5c829b(0xe2)]);},exports[a127_0x2062bc(0x10c)]=(_0x57b338={})=>{const _0xdfff92=a127_0x2062bc,_0x1509e1={};_0x1509e1[_0xdfff92(0xda)]=function(_0x32ecab,_0x299b26){return _0x32ecab!==_0x299b26;},_0x1509e1['QWkws']=function(_0xeffe0e,_0x34a558){return _0xeffe0e===_0x34a558;},_0x1509e1[_0xdfff92(0x10b)]=_0xdfff92(0xd6),_0x1509e1['Kfjbl']=function(_0x16240b,_0x80a280){return _0x16240b>_0x80a280;};const _0x100263=_0x1509e1;if(_0x100263[_0xdfff92(0xda)](process[_0xdfff92(0x13d)][_0xdfff92(0xdf)],undefined))return bsSetupHelper['isTrue'](process['env'][_0xdfff92(0xdf)]);let _0x4b368c=_0x100263[_0xdfff92(0xe8)](process[_0xdfff92(0x13d)][_0xdfff92(0x145)],_0x100263[_0xdfff92(0x10b)]);return _0x100263[_0xdfff92(0x137)](Object[_0xdfff92(0x11f)](_0x57b338)[_0xdfff92(0x157)],0x0)&&(process[_0xdfff92(0x13d)][_0xdfff92(0x122)]=accessibilityHelper['checkAccessibilityPlatformConfig'](_0x57b338)),_0x4b368c=_0x4b368c||_0x100263[_0xdfff92(0xe8)](process[_0xdfff92(0x13d)][_0xdfff92(0x122)],_0x100263[_0xdfff92(0x10b)]),_0x4b368c;},exports[a127_0x2062bc(0xe9)]=(_0x158fe4,_0x52f3f8)=>{const _0x46165f=a127_0x2062bc,_0x4a30ad={'EHefQ':function(_0x328213){return _0x328213();},'oRBOh':'4|1|0|5|3|2','cFEFf':_0x46165f(0xd6),'ZInmp':function(_0x2768db,_0x154ddd,_0x282b32){return _0x2768db(_0x154ddd,_0x282b32);},'RuZnv':_0x46165f(0x13b),'eTUza':_0x46165f(0x14f)};if(!_0x158fe4||!_0x158fe4[_0x46165f(0x13b)])return exports['handleErrorForObservability'](),[null,null,null];if(!_0x158fe4['observability'][_0x46165f(0xe4)])return exports['handleErrorForObservability'](_0x158fe4[_0x46165f(0x13b)]),[null,null,null];if(_0x4a30ad[_0x46165f(0x123)](isTestObservabilitySession)){const _0x49cbd5=_0x4a30ad[_0x46165f(0x15f)]['split']('|');let _0x424c53=0x0;while(!![]){switch(_0x49cbd5[_0x424c53++]){case'0':_0x158fe4[_0x46165f(0x134)]&&(process['env'][_0x46165f(0xc3)]=_0x158fe4[_0x46165f(0x134)]);continue;case'1':if(_0x158fe4[_0x46165f(0x13a)]){process[_0x46165f(0x13d)]['BS_TESTOPS_JWT']=_0x158fe4[_0x46165f(0x13a)];const _0x2f66ed={};_0x2f66ed[_0x46165f(0x11b)]=_0x52f3f8[_0x46165f(0x11b)],_0x2f66ed[_0x46165f(0xf7)]=_0x52f3f8['password'],process[_0x46165f(0x13d)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x46165f(0x131)](_0x2f66ed);}continue;case'2':return[_0x158fe4[_0x46165f(0x13a)],_0x158fe4[_0x46165f(0x134)],process[_0x46165f(0x13d)]['BS_TESTOPS_ALLOW_SCREENSHOTS']];case'3':logger[_0x46165f(0x102)]('['+constants[_0x46165f(0x133)]+_0x46165f(0x168)+_0x158fe4[_0x46165f(0x134)]);continue;case'4':process[_0x46165f(0x13d)][_0x46165f(0x10f)]=_0x4a30ad[_0x46165f(0x12a)];continue;case'5':_0x4a30ad[_0x46165f(0xc6)](nestedKeyValue,_0x158fe4,[_0x4a30ad[_0x46165f(0xe1)],_0x4a30ad[_0x46165f(0xd5)]])&&(process[_0x46165f(0x13d)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x158fe4[_0x46165f(0x13b)][_0x46165f(0x14f)]['allow_screenshots'][_0x46165f(0x10d)]());continue;}break;}}return[null,null,null];},exports[a127_0x2062bc(0xbf)]=_0x139bcf=>{const _0x414fc9=a127_0x2062bc,_0x5beb32={'sjTBQ':function(_0x47954a,_0x2e52b4,_0x3901e5){return _0x47954a(_0x2e52b4,_0x3901e5);},'RbqsC':_0x414fc9(0x15a),'jcNWz':_0x414fc9(0x14f),'risbP':function(_0x5c8d18,_0x56378a,_0x542763,_0x2b7ba4){return _0x5c8d18(_0x56378a,_0x542763,_0x2b7ba4);},'MPXJH':'name','MCUuN':_0x414fc9(0x13e),'nlzJG':'command','ZWRzr':_0x414fc9(0x166),'BzXZV':_0x414fc9(0x113),'XgdrV':_0x414fc9(0xfe)};if(!_0x139bcf['accessibility'])return exports[_0x414fc9(0x108)](),[null,null];if(!_0x139bcf[_0x414fc9(0x15a)][_0x414fc9(0xe4)])return exports[_0x414fc9(0x108)](_0x139bcf[_0x414fc9(0x15a)]),[null,null];if(_0x5beb32[_0x414fc9(0xcf)](nestedKeyValue,_0x139bcf,[_0x5beb32[_0x414fc9(0xe3)],_0x5beb32[_0x414fc9(0x14d)]])){const {accessibilityToken:_0x3c3e86,scannerVersion:_0x7f9411}=_0x5beb32[_0x414fc9(0xea)](jsonifyAccessibilityArray,_0x139bcf['accessibility'][_0x414fc9(0x14f)]['capabilities'],_0x5beb32[_0x414fc9(0x162)],_0x5beb32[_0x414fc9(0x151)]),_0x1800ad={'scripts':_0x5beb32[_0x414fc9(0xea)](jsonifyAccessibilityArray,_0x139bcf[_0x414fc9(0x15a)][_0x414fc9(0x14f)][_0x414fc9(0x125)],_0x5beb32['MPXJH'],_0x5beb32[_0x414fc9(0x148)])};_0x1800ad[_0x5beb32[_0x414fc9(0xdb)]]=_0x139bcf[_0x414fc9(0x15a)][_0x414fc9(0x14f)][_0x414fc9(0xc5)][_0x414fc9(0x166)];const _0x4e8113=_0x5beb32[_0x414fc9(0xea)](jsonifyAccessibilityArray,_0x139bcf[_0x414fc9(0x15a)][_0x414fc9(0x14f)][_0x414fc9(0x156)],_0x5beb32[_0x414fc9(0x162)],_0x5beb32[_0x414fc9(0x151)]);_0x1800ad[_0x5beb32[_0x414fc9(0xec)]]=_0x4e8113[_0x5beb32[_0x414fc9(0x135)]],scripts['parseFromJson'](_0x1800ad),scripts['toJson']();let _0x2c9a4e=process[_0x414fc9(0x13d)][_0x414fc9(0x124)];return _0x2c9a4e=!!_0x2c9a4e?JSON['parse'](_0x2c9a4e):{},_0x2c9a4e[_0x414fc9(0xe5)]=_0x7f9411,process[_0x414fc9(0x13d)][_0x414fc9(0x124)]=JSON[_0x414fc9(0x131)](_0x2c9a4e),process[_0x414fc9(0x13d)][_0x414fc9(0x101)]=_0x3c3e86,logger[_0x414fc9(0x102)](_0x414fc9(0xf9)+_0x139bcf[_0x414fc9(0x134)]),[_0x3c3e86,_0x139bcf[_0x414fc9(0x134)]];}return[null,null];},exports[a127_0x2062bc(0x14b)]=_0x5759d3=>{const _0x28345d=a127_0x2062bc,_0x43b1d7={};_0x43b1d7[_0x28345d(0x14e)]='0|4|6|3|5|1|2',_0x43b1d7[_0x28345d(0x115)]='null',_0x43b1d7[_0x28345d(0x121)]=_0x28345d(0x114);const _0x27d3b2=_0x43b1d7,_0x313b2a=_0x27d3b2[_0x28345d(0x14e)][_0x28345d(0xd2)]('|');let _0x47a57b=0x0;while(!![]){switch(_0x313b2a[_0x47a57b++]){case'0':process[_0x28345d(0x13d)]['BROWSERSTACK_TESTHUB_UUID']=_0x27d3b2[_0x28345d(0x115)];continue;case'1':process[_0x28345d(0x13d)][_0x28345d(0x147)]=_0x27d3b2[_0x28345d(0x115)];continue;case'2':exports[_0x28345d(0x117)](_0x5759d3,testHubConstants[_0x28345d(0x139)]);continue;case'3':process[_0x28345d(0x13d)][_0x28345d(0xde)]=_0x27d3b2[_0x28345d(0x115)];continue;case'4':process[_0x28345d(0x13d)]['BROWSERSTACK_TESTHUB_JWT']=_0x27d3b2['IxxWd'];continue;case'5':process[_0x28345d(0x13d)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x27d3b2[_0x28345d(0x115)];continue;case'6':process[_0x28345d(0x13d)][_0x28345d(0x10f)]=_0x27d3b2[_0x28345d(0x121)];continue;}break;}},exports[a127_0x2062bc(0x108)]=_0x5de71c=>{const _0x25cfb9=a127_0x2062bc,_0x74f41c={};_0x74f41c[_0x25cfb9(0x136)]=_0x25cfb9(0x110),_0x74f41c['ItCfZ']='false',_0x74f41c[_0x25cfb9(0xc2)]=_0x25cfb9(0xcd);const _0x513784=_0x74f41c,_0x54b129=_0x513784[_0x25cfb9(0x136)]['split']('|');let _0x4f5be5=0x0;while(!![]){switch(_0x54b129[_0x4f5be5++]){case'0':process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=_0x513784['ItCfZ'];continue;case'1':process[_0x25cfb9(0x13d)][_0x25cfb9(0x104)]=_0x513784[_0x25cfb9(0xc2)];continue;case'2':exports[_0x25cfb9(0x117)](_0x5de71c,testHubConstants[_0x25cfb9(0xff)]);continue;case'3':process['env'][_0x25cfb9(0x145)]=_0x513784[_0x25cfb9(0x116)];continue;case'4':process[_0x25cfb9(0x13d)][_0x25cfb9(0xed)]=_0x513784[_0x25cfb9(0xc2)];continue;}break;}},exports['logBuildError']=(_0x40d6ab,_0x45534d='')=>{const _0x2f999e=a127_0x2062bc,_0x49cd8e={};_0x49cd8e[_0x2f999e(0x11c)]=function(_0x8f25e7,_0x4d9c06){return _0x8f25e7===_0x4d9c06;};const _0x28a8c1=_0x49cd8e;if(_0x28a8c1['vgQqQ'](_0x40d6ab,undefined)){logger[_0x2f999e(0x118)](_0x45534d[_0x2f999e(0x11e)]()+'\x20Build\x20creation\x20failed');return;}for(const _0x3c5f36 of _0x40d6ab['errors']){const _0x4d00aa=_0x3c5f36[_0x2f999e(0xf4)],_0x7adebc=_0x3c5f36[_0x2f999e(0xf1)];if(_0x7adebc)switch(_0x4d00aa){case testHubConstants[_0x2f999e(0xfa)]['INVALID_CREDENTIALS']:logger[_0x2f999e(0x118)](_0x7adebc);break;case testHubConstants[_0x2f999e(0xfa)][_0x2f999e(0xd3)]:logger[_0x2f999e(0x144)](_0x7adebc);break;case testHubConstants[_0x2f999e(0xfa)][_0x2f999e(0xf0)]:logger[_0x2f999e(0x118)](_0x7adebc);break;default:logger[_0x2f999e(0x118)](_0x7adebc);}}};const jsonifyAccessibilityArray=(_0x5d03a5,_0x16f967,_0x5c4362)=>{const _0x450738=a127_0x2062bc,_0x2dfcb8={};return _0x5d03a5[_0x450738(0x142)](_0x4dde66=>{_0x2dfcb8[_0x4dde66[_0x16f967]]=_0x4dde66[_0x5c4362];}),_0x2dfcb8;};exports['setTestHubCommonMetaInfo']=_0x4825d2=>{const _0x2bcd09=a127_0x2062bc;_0x4825d2[_0x2bcd09(0x13a)]&&(process[_0x2bcd09(0x13d)][_0x2bcd09(0x104)]=_0x4825d2['jwt']);_0x4825d2[_0x2bcd09(0x134)]&&(process[_0x2bcd09(0x13d)]['BROWSERSTACK_TESTHUB_UUID']=_0x4825d2[_0x2bcd09(0x134)],logger[_0x2bcd09(0x102)](_0x2bcd09(0xe0)+_0x4825d2[_0x2bcd09(0x134)]));;},exports[a127_0x2062bc(0xce)]=(_0x5f3d35='',_0x58aa5d='')=>{const _0x775524=a127_0x2062bc,_0x348343={'IBWGS':function(_0x2352f5){return _0x2352f5();},'LEEWv':function(_0x3f4adf,_0x16b151){return _0x3f4adf===_0x16b151;},'EXwSW':_0x775524(0x161),'SfMvl':_0x775524(0xd1),'ZWaHV':_0x775524(0x15c),'znFBK':_0x775524(0xee),'URslQ':_0x775524(0x152)};if(exports[_0x775524(0xf8)]()&&!exports['isAccessibilityEnabled']()&&!_0x348343[_0x775524(0xc4)](isTestObservabilitySession)){if(_0x348343[_0x775524(0x112)](_0x58aa5d,_0x348343[_0x775524(0x107)]))return![];if([_0x348343[_0x775524(0x140)],_0x348343[_0x775524(0xc7)]][_0x775524(0x150)](_0x5f3d35))return![];return!![];}if(exports[_0x775524(0x10c)]()&&!_0x348343['IBWGS'](isTestObservabilitySession)){if([_0x348343[_0x775524(0x167)],_0x348343[_0x775524(0x164)],_0x348343[_0x775524(0x140)]][_0x775524(0x150)](_0x5f3d35))return![];return!![];}return exports[_0x775524(0x10c)]()||_0x348343['IBWGS'](isTestObservabilitySession)||exports[_0x775524(0xf8)]();},exports[a127_0x2062bc(0x158)]=(_0x48590c,_0x17b253,_0x25284d='',_0x455204)=>{const _0x2b17cf=a127_0x2062bc,_0x15eac6={};_0x15eac6[_0x2b17cf(0xcb)]=_0x2b17cf(0xee),_0x15eac6[_0x2b17cf(0x155)]=_0x2b17cf(0x152),_0x15eac6['pnDvQ']=function(_0x141bee,_0x21c2b7){return _0x141bee===_0x21c2b7;},_0x15eac6['jOwTf']=_0x2b17cf(0x128),_0x15eac6[_0x2b17cf(0x146)]=_0x2b17cf(0x15e),_0x15eac6['ZerHp']='accessibility',_0x15eac6[_0x2b17cf(0xbe)]=function(_0x586b14,_0xcca5a3){return _0x586b14&&_0xcca5a3;},_0x15eac6[_0x2b17cf(0xdd)]=function(_0x5396f0,_0x4698aa){return _0x5396f0+_0x4698aa;},_0x15eac6['OkoPA']=function(_0x475b93,_0x559b55){return _0x475b93===_0x559b55;},_0x15eac6[_0x2b17cf(0x15b)]=_0x2b17cf(0x120),_0x15eac6[_0x2b17cf(0x119)]=_0x2b17cf(0x163);const _0x5f2465=_0x15eac6;if(![_0x5f2465['RyzjU'],_0x5f2465[_0x2b17cf(0x155)]][_0x2b17cf(0x150)](_0x17b253)&&exports[_0x2b17cf(0x10c)]()){const _0x139b57={};if(_0x5f2465[_0x2b17cf(0xe6)](_0x455204,FRAMEWORKS[_0x2b17cf(0x143)])){const _0x21d5e6=globals[_0x2b17cf(0x169)](_0x5f2465['jOwTf'])||accessibilityHelper[_0x2b17cf(0x130)](_0x25284d[_0x2b17cf(0xeb)](),!![]),_0x50ebbc=globals[_0x2b17cf(0x169)](_0x5f2465[_0x2b17cf(0x146)]);_0x139b57[_0x5f2465[_0x2b17cf(0x14a)]]=_0x5f2465['ZDNiV'](_0x50ebbc,_0x21d5e6);}if(_0x5f2465[_0x2b17cf(0xe6)](_0x455204,FRAMEWORKS[_0x2b17cf(0xca)])){const _0x38dd58=_0x5f2465[_0x2b17cf(0xdd)](_0x5f2465[_0x2b17cf(0xdd)](_0x48590c['scopes'][_0x2b17cf(0x13c)]('\x20'),'\x20'),_0x25284d['name']),_0x34563f=globals[_0x2b17cf(0x169)](_0x5f2465['jOwTf'])||accessibilityHelper[_0x2b17cf(0x130)](_0x38dd58,![]),_0x2e530c=browserStackGlobals['isAccessibilityPlatform'];_0x139b57[_0x5f2465[_0x2b17cf(0x14a)]]=_0x5f2465[_0x2b17cf(0xbe)](_0x2e530c,_0x34563f);}if(_0x5f2465[_0x2b17cf(0x126)](_0x455204,FRAMEWORKS[_0x2b17cf(0x111)])){if(_0x5f2465['pnDvQ'](_0x17b253,_0x5f2465[_0x2b17cf(0x15b)]))return;_0x139b57[_0x5f2465[_0x2b17cf(0x14a)]]=PWTestDetails[_0x2b17cf(0xd9)](_0x48590c[_0x2b17cf(0x149)]);}if(_0x5f2465[_0x2b17cf(0x126)](_0x455204,FRAMEWORKS[_0x2b17cf(0x159)])){const _0x4dbc24=accessibilityHelper[_0x2b17cf(0x130)](_0x25284d[_0x2b17cf(0xeb)](),!![]),_0x59d210=global[_0x2b17cf(0xe7)];_0x139b57[_0x5f2465[_0x2b17cf(0x14a)]]=_0x5f2465[_0x2b17cf(0xbe)](_0x59d210,_0x4dbc24);}if(_0x5f2465[_0x2b17cf(0xe6)](_0x455204,FRAMEWORKS[_0x2b17cf(0xcc)])){const _0x14be27=accessibilityHelper[_0x2b17cf(0x130)](null,![],_0x48590c[_0x2b17cf(0xc9)]),_0x2c49d4=globals[_0x2b17cf(0x169)](_0x5f2465[_0x2b17cf(0x146)]);_0x139b57[_0x5f2465[_0x2b17cf(0x14a)]]=_0x5f2465[_0x2b17cf(0xbe)](_0x2c49d4,_0x14be27);}_0x48590c[_0x5f2465[_0x2b17cf(0x119)]]=_0x139b57;}},exports['getCurrentTestData']=_0x468cd2=>{const _0x47d3ea=a127_0x2062bc,_0x575618={};_0x575618['mmNxJ']=function(_0xdfdb64,_0x329f86){return _0xdfdb64>_0x329f86;},_0x575618['yvkJR']=function(_0x376338,_0x2aac2e){return _0x376338>_0x2aac2e;};const _0x172cce=_0x575618;let _0x5ec078={};if(_0x172cce[_0x47d3ea(0xd0)](Object[_0x47d3ea(0x11f)](testData)[_0x47d3ea(0x157)],0x0))return testData;_0x5ec078=JestTestDetails[_0x47d3ea(0xd7)]();if(_0x172cce[_0x47d3ea(0xf3)](Object[_0x47d3ea(0x11f)](_0x5ec078)[_0x47d3ea(0x157)],0x0))return _0x5ec078;return _0x5ec078;},exports['setCurrentTestData']=(_0x12c9af,_0xb0e741={})=>{const _0x3f1d51=a127_0x2062bc;if(bsSetupHelper[_0x3f1d51(0x11a)](_0xb0e741[_0x3f1d51(0x141)]))return;switch(_0x12c9af){case FRAMEWORKS[_0x3f1d51(0x143)]:testData=_0xb0e741[_0x3f1d51(0x141)];break;case FRAMEWORKS[_0x3f1d51(0xca)]:JestTestDetails['setTestData'](_0xb0e741[_0x3f1d51(0x141)]);break;default:break;}},exports['getAccessibilityValueFromYml']=_0xd1555f=>{const _0x49fe9f=a127_0x2062bc,_0x2f7fb8={};_0x2f7fb8['TLWbM']=function(_0xc62f16,_0x2b52e1){return _0xc62f16!==_0x2b52e1;},_0x2f7fb8[_0x49fe9f(0xfc)]=function(_0x34d5ef,_0x210106){return _0x34d5ef!==_0x210106;},_0x2f7fb8['oqwAs']=function(_0x22053c,_0x576485){return _0x22053c!==_0x576485;},_0x2f7fb8[_0x49fe9f(0xf6)]=function(_0x46d1e1,_0x3e9c5d){return _0x46d1e1!==_0x3e9c5d;};const _0x27a952=_0x2f7fb8;if(_0x27a952[_0x49fe9f(0x12b)](_0xd1555f['accessibility'],null)&&_0x27a952[_0x49fe9f(0xfc)](_0xd1555f[_0x49fe9f(0x15a)],undefined))return _0xd1555f[_0x49fe9f(0x15a)];let _0x5cf7e0=![],_0xad9704=![];if(_0xd1555f['platforms'])for(const _0x35e5be of _0xd1555f[_0x49fe9f(0xc1)]){_0x27a952[_0x49fe9f(0x14c)](_0x35e5be[_0x49fe9f(0x15a)],null)&&_0x27a952[_0x49fe9f(0xf6)](_0x35e5be[_0x49fe9f(0x15a)],undefined)&&(_0x5cf7e0=_0x5cf7e0||bsSetupHelper[_0x49fe9f(0x100)](_0x35e5be[_0x49fe9f(0x15a)]),_0xad9704=!![]);}if(_0xad9704)return _0x5cf7e0;return null;},exports[a127_0x2062bc(0x12e)]=_0x514eb1=>{const _0x361e5a=a127_0x2062bc,_0x14cd0b=new OrchestrationUtils(_0x514eb1);return _0x14cd0b[_0x361e5a(0x16a)]();},exports['getProductMapForBuildStartCall']=_0x38c663=>{const _0x31694c=a127_0x2062bc,_0x136d20={'wPSSw':function(_0x5d99cc){return _0x5d99cc();}};let _0x21471f=![],_0x1ecdb9=![];if(bsSetupHelper['isBrowserstackInfra']()&&_0x38c663['app'])_0x1ecdb9=!![];else bsSetupHelper['isBrowserstackInfra']()&&(_0x21471f=!![]);return Object['assign']({'observability':_0x136d20[_0x31694c(0x103)](isTestObservabilitySession),'accessibility':exports[_0x31694c(0x16b)](_0x38c663),'percy':_0x38c663['percy']||![],'automate':_0x21471f,'app_automate':_0x1ecdb9,'turboscale':bsSetupHelper[_0x31694c(0x10e)](_0x38c663)},bsSetupHelper[_0x31694c(0x153)]());};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a128_0x476707=a128_0x9e84;(function(_0x33f2b3,_0xbf0f71){const _0x5f4a86=a128_0x9e84,_0xf901f4=_0x33f2b3();while(!![]){try{const _0x1268c1=parseInt(_0x5f4a86(0x1e5))/0x1*(-parseInt(_0x5f4a86(0x1de))/0x2)+-parseInt(_0x5f4a86(0x1df))/0x3*(parseInt(_0x5f4a86(0x1e6))/0x4)+-parseInt(_0x5f4a86(0x1e2))/0x5+parseInt(_0x5f4a86(0x1da))/0x6+parseInt(_0x5f4a86(0x1db))/0x7+-parseInt(_0x5f4a86(0x1e7))/0x8+parseInt(_0x5f4a86(0x1dd))/0x9*(parseInt(_0x5f4a86(0x1e4))/0xa);if(_0x1268c1===_0xbf0f71)break;else _0xf901f4['push'](_0xf901f4['shift']());}catch(_0x9f5472){_0xf901f4['push'](_0xf901f4['shift']());}}}(a128_0x7876,0xf2941));const utilities=require(a128_0x476707(0x1d9));function a128_0x7876(){const _0x598c8e=['1148787pCXqeJ','2188NgMVDc','4803771EupYBV','fireFunnelTestEvent','exports','5129580EDinWI','pzukw','410YfllMP','1501hApiAV','4njTjfT','14988688CNhksd','cancel','./utilities','5266182yUVlyf','7177758HeYrrO','zCvzg'];a128_0x7876=function(){return _0x598c8e;};return a128_0x7876();}function a128_0x9e84(_0x3f3f42,_0x1d969d){const _0x787673=a128_0x7876();return a128_0x9e84=function(_0x9e843d,_0x168466){_0x9e843d=_0x9e843d-0x1d8;let _0x954dfb=_0x787673[_0x9e843d];return _0x954dfb;},a128_0x9e84(_0x3f3f42,_0x1d969d);}module[a128_0x476707(0x1e1)]=(_0xfff697,_0x5a2c39,_0x4f65c0,_0x5b991c,_0x58af42,_0x59f177)=>{const _0x12340b=a128_0x476707,_0x1fe909={'zCvzg':function(_0x1632f9,_0x15ab3a){return _0x1632f9-_0x15ab3a;},'pzukw':function(_0x38f94f,_0x4e6ec0){return _0x38f94f(_0x4e6ec0);},'KxLzb':function(_0x1c98a0,_0x7bdbcd,_0xfe608c){return _0x1c98a0(_0x7bdbcd,_0xfe608c);}};let _0xbd76c9,_0x1828de=![];const _0x21a3e8=new Promise((_0x2fca55,_0x283801)=>{_0xbd76c9=_0x1fe909['KxLzb'](setTimeout,()=>{const _0x45072e=a128_0x9e84;if(!_0x1828de){const _0x24089b={'status':''+_0x5a2c39,'timeTaken':_0x1fe909[_0x45072e(0x1dc)](new Date(),_0x5b991c)};utilities[_0x45072e(0x1e0)](_0x4f65c0,_0x24089b,_0x58af42,_0x59f177),_0x1fe909['pzukw'](_0x283801,new Error(_0x5a2c39));}},_0xfff697);});return _0x21a3e8[_0x12340b(0x1d8)]=()=>{const _0x46731b=_0x12340b;_0x1828de=!![],_0x1fe909[_0x46731b(0x1e3)](clearTimeout,_0xbd76c9);},_0x21a3e8;};
|
package/src/helpers/utilities.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
const a129_0x425fa8=a129_0x3563;(function(_0x35070b,_0x10ddd2){const _0x29b655=a129_0x3563,_0x42f4f7=_0x35070b();while(!![]){try{const _0x2774c8=parseInt(_0x29b655(0x1cd))/0x1*(-parseInt(_0x29b655(0x1a8))/0x2)+-parseInt(_0x29b655(0x19b))/0x3+-parseInt(_0x29b655(0x1b2))/0x4+parseInt(_0x29b655(0x1b8))/0x5*(-parseInt(_0x29b655(0x1e4))/0x6)+parseInt(_0x29b655(0x1c6))/0x7+parseInt(_0x29b655(0x1e6))/0x8*(parseInt(_0x29b655(0x18f))/0x9)+-parseInt(_0x29b655(0x190))/0xa*(-parseInt(_0x29b655(0x1f7))/0xb);if(_0x2774c8===_0x10ddd2)break;else _0x42f4f7['push'](_0x42f4f7['shift']());}catch(_0xec52d8){_0x42f4f7['push'](_0x42f4f7['shift']());}}}(a129_0x3f8b,0xc49b8));const os=require('os'),util=require(a129_0x425fa8(0x1fb)),fs=require('fs'),{getProductMap}=require(a129_0x425fa8(0x187)),logger=require(a129_0x425fa8(0x1be))[a129_0x425fa8(0x185)],constants=require(a129_0x425fa8(0x1e9)),testHubConstants=require('../helpers/testhub/constants'),{getTransformPath}=require(a129_0x425fa8(0x1a9)),{FUNNEL_INSTRUMENTATION_API_URL}=require(a129_0x425fa8(0x1e9)),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a129_0x425fa8(0x1d7)),PerformanceTester=require(a129_0x425fa8(0x1fa)),globals=require(a129_0x425fa8(0x1a4)),helper=require(a129_0x425fa8(0x1d7)),{isTestObservabilitySession}=require(a129_0x425fa8(0x1bb));function a129_0x3563(_0x66e0d6,_0x317f41){const _0x3f8bf8=a129_0x3f8b();return a129_0x3563=function(_0x356316,_0x5bc6f8){_0x356316=_0x356316-0x16c;let _0x55e556=_0x3f8bf8[_0x356316];return _0x55e556;},a129_0x3563(_0x66e0d6,_0x317f41);}let unhandledErrors='';exports[a129_0x425fa8(0x1e1)]=async(_0x29cdf1,_0x412511={},_0x5d3ac6,_0x34b3ba)=>{const _0x14fce6=a129_0x425fa8,_0x1ff3ef={'YlPec':function(_0x5aeb04,_0x18e64a){return _0x5aeb04===_0x18e64a;},'dgTHA':'object','EIEIn':function(_0x4b4c87,_0x13bc3e){return _0x4b4c87>_0x13bc3e;},'JQKcS':function(_0x1c58f5,_0x399ade){return _0x1c58f5>_0x399ade;},'yXGbZ':_0x14fce6(0x1a0),'LeYUY':function(_0x4ce232){return _0x4ce232();},'yTTyA':function(_0x259a55){return _0x259a55();},'tISth':function(_0x5d8101,_0x3c512f){return _0x5d8101==_0x3c512f;},'CHRnO':_0x14fce6(0x202),'APqse':function(_0x5f1815,_0x3c1f89){return _0x5f1815===_0x3c1f89;},'KAwsi':_0x14fce6(0x198),'LVhXC':_0x14fce6(0x1f2),'yBqda':function(_0x191601,_0x4e99a6){return _0x191601!==_0x4e99a6;},'CdwIo':'Playwright','OrbFG':_0x14fce6(0x1a3),'Xwwpo':function(_0x1a8a3e,_0x85b87d){return _0x1a8a3e>_0x85b87d;},'GUdDH':function(_0x4faae7,_0x3c2c9b){return _0x4faae7+_0x3c2c9b;},'wlLGG':_0x14fce6(0x1fc),'LgnPN':_0x14fce6(0x1db),'Krxdw':function(_0x10f3f7,_0x2226b0){return _0x10f3f7(_0x2226b0);},'wiVyk':_0x14fce6(0x1aa),'qZCuh':_0x14fce6(0x1fd),'PLouR':function(_0x58a78f,_0x17d5ef){return _0x58a78f===_0x17d5ef;},'yStCX':_0x14fce6(0x1e8),'qXCgB':function(_0x53c3e5,_0x3abae8){return _0x53c3e5===_0x3abae8;},'DPHZD':_0x14fce6(0x173),'hXjwm':_0x14fce6(0x191),'qujCj':'[REDACTED]','tuJhD':'POST'};let _0x39cf19=[];if(helper[_0x14fce6(0x1cc)]()&&_0x1ff3ef[_0x14fce6(0x1a6)](isTestObservabilitySession))_0x39cf19=_0x5d3ac6[_0x14fce6(0x177)]?constants['APP_AUTOMATE_PRODUCTS']:constants[_0x14fce6(0x1b4)];else{if(_0x1ff3ef[_0x14fce6(0x16c)](isTestObservabilitySession))_0x39cf19=constants[_0x14fce6(0x1b7)];else helper[_0x14fce6(0x1cc)]()&&(_0x39cf19=_0x5d3ac6[_0x14fce6(0x177)]?constants[_0x14fce6(0x1f3)]:constants[_0x14fce6(0x197)]);}let _0x4123a2=_0x5d3ac6['buildIdentifier'];if(_0x1ff3ef['tISth'](_0x4123a2,null))_0x4123a2=_0x1ff3ef[_0x14fce6(0x1f4)];else _0x1ff3ef[_0x14fce6(0x1d9)](_0x4123a2,undefined)&&(_0x4123a2=_0x1ff3ef['KAwsi']);unhandledErrors&&_0x1ff3ef[_0x14fce6(0x1e7)](unhandledErrors[_0x14fce6(0x19e)],0x0)&&(_0x412511['globalException']=unhandledErrors);global[_0x14fce6(0x1e3)]&&(_0x412511[_0x14fce6(0x1e3)]=global[_0x14fce6(0x1e3)]);try{if(_0x412511[_0x14fce6(0x1a3)]){if(_0x1ff3ef[_0x14fce6(0x178)](_0x34b3ba,_0x1ff3ef[_0x14fce6(0x1c8)])&&_0x1ff3ef[_0x14fce6(0x1e7)](_0x412511['error']['length'],0x0)){const _0x213c20={};_0x213c20['os']='',_0x213c20[_0x14fce6(0x199)]='',_0x213c20[_0x14fce6(0x1ff)]='',_0x213c20[_0x14fce6(0x1b3)]='';const _0x56b90b=_0x213c20;let _0x3645a7={};const _0x43a05c=_0x412511['error'];_0x3645a7=_0x43a05c['reduce']((_0x5edcfb,_0x229b24)=>{for(const _0x3e80e1 in _0x229b24){_0x5edcfb[_0x3e80e1]=_0x229b24[_0x3e80e1];}return _0x5edcfb;},{});const _0x336ce8={};_0x336ce8[_0x14fce6(0x1a0)]=_0x3645a7,_0x412511[_0x14fce6(0x1a3)]=[Object[_0x14fce6(0x16f)]({},_0x56b90b,_0x336ce8)];}else{let _0x2f0162=0x0;const _0x31414e=_0x1ff3ef[_0x14fce6(0x1b6)](_0x34b3ba,_0x1ff3ef[_0x14fce6(0x18d)])?JSON[_0x14fce6(0x1bc)](_0x412511[_0x14fce6(0x1a3)]):_0x412511['error'],_0x92446=Object[_0x14fce6(0x188)](_0x31414e);_0x92446[_0x14fce6(0x200)](_0x3193f2=>{const _0x44e44c=_0x14fce6;if(_0x1ff3ef['YlPec'](typeof _0x3193f2,_0x1ff3ef[_0x44e44c(0x1e5)])){const _0x440421=Object[_0x44e44c(0x188)](_0x3193f2);!_0x440421[_0x44e44c(0x1e0)](_0x29915b=>_0x29915b===null||_0x29915b===undefined||_0x29915b==='')&&(_0x2f0162+=0x1);}});if(_0x1ff3ef['APqse'](_0x2f0162,0x0))delete _0x412511[_0x1ff3ef[_0x14fce6(0x180)]];else{const _0x55a8be=[];Object['keys'](_0x31414e)[_0x14fce6(0x200)](_0x41332b=>{const _0x5a895d=_0x14fce6,[_0xcfd6d0,_0xc45410,_0x38d785,_0x38d3a5]=_0x41332b[_0x5a895d(0x1ca)](',\x20');let _0x26c4fe={};if(!_0x38d3a5){const _0x34a050={};_0x34a050['deviceName']=_0xcfd6d0,_0x34a050[_0x5a895d(0x199)]=_0xc45410,_0x34a050[_0x5a895d(0x1ff)]=_0x38d785,_0x26c4fe=_0x34a050;}else{const _0x24031c={};_0x24031c['os']=_0xcfd6d0,_0x24031c[_0x5a895d(0x199)]=_0xc45410,_0x24031c['browser']=_0x38d785,_0x24031c[_0x5a895d(0x1b3)]=_0x38d3a5,_0x26c4fe=_0x24031c;}const _0x214181={},_0x55568c=_0x31414e[_0x41332b];Object[_0x5a895d(0x19c)](_0x55568c)['forEach'](_0x404c15=>{const _0x10f0b0=_0x5a895d;_0x1ff3ef[_0x10f0b0(0x1e7)](_0x55568c[_0x404c15]['length'],0x0)&&(_0x214181[_0x404c15]=_0x55568c[_0x404c15]);}),_0x1ff3ef[_0x5a895d(0x195)](Object[_0x5a895d(0x19c)](_0x214181)[_0x5a895d(0x19e)],0x0)&&(_0x26c4fe[_0x1ff3ef['yXGbZ']]=_0x214181,_0x55a8be['push'](_0x26c4fe));}),_0x1ff3ef[_0x14fce6(0x18a)](_0x55a8be[_0x14fce6(0x19e)],0x0)?_0x412511[_0x14fce6(0x1a3)]=_0x55a8be:delete _0x412511[_0x1ff3ef[_0x14fce6(0x180)]];}}}}catch(_0x526557){delete _0x412511[_0x1ff3ef[_0x14fce6(0x180)]],logger[_0x14fce6(0x1f1)](_0x1ff3ef[_0x14fce6(0x1f0)](_0x1ff3ef[_0x14fce6(0x1d3)],_0x526557));}const _0x4b0719=helper[_0x14fce6(0x1c2)](_0x5d3ac6,_0x5d3ac6[_0x14fce6(0x1d4)]),_0x25b1ff={'userName':helper['getUserName'](_0x5d3ac6),'accessKey':helper[_0x14fce6(0x1ea)](_0x5d3ac6),'event_type':_0x29cdf1,'detectedFramework':_0x34b3ba,'buildHashedId':globals[_0x14fce6(0x1dc)](_0x1ff3ef[_0x14fce6(0x1ae)]),'optimalHubUrl':helper[_0x14fce6(0x19d)](),'event_properties':{'testhub_uuid':process['env'][testHubConstants[_0x14fce6(0x1c4)][_0x14fce6(0x1b9)]]||'','sdkRunId':global[_0x14fce6(0x1e3)],'product_map':_0x1ff3ef[_0x14fce6(0x1a1)](getProductMap,_0x5d3ac6),'productMap':_0x1ff3ef[_0x14fce6(0x1a1)](getProductMap,_0x5d3ac6),'language_framework':_0x5d3ac6[_0x14fce6(0x1cf)]||_0x1ff3ef[_0x14fce6(0x1a7)],'referrer':helper[_0x14fce6(0x1dd)](_0x34b3ba),'framework':_0x5d3ac6[_0x14fce6(0x1d4)],'frameworkVersion':helper[_0x14fce6(0x16e)](_0x34b3ba),'automationFramework':_0x4b0719[_0x14fce6(0x1d5)],'automationFrameworkVersion':_0x4b0719['version'],'language':_0x1ff3ef[_0x14fce6(0x19f)],'languageVersion':process[_0x14fce6(0x1a5)],'product':_0x39cf19,'buildName':_0x5d3ac6[_0x14fce6(0x1c0)]||_0x1ff3ef[_0x14fce6(0x1bf)],'buildIdentifier':_0x4123a2,'os':os[_0x14fce6(0x1d2)]()||_0x1ff3ef['wiVyk'],'hostname':os[_0x14fce6(0x182)]()||_0x1ff3ef[_0x14fce6(0x1a7)],..._0x412511}};try{_0x1ff3ef[_0x14fce6(0x1da)](_0x29cdf1,_0x1ff3ef['yStCX'])&&(_0x25b1ff['event_properties'][_0x14fce6(0x203)]=helper[_0x14fce6(0x1ac)](_0x5d3ac6)),_0x1ff3ef[_0x14fce6(0x17f)](_0x34b3ba,_0x1ff3ef[_0x14fce6(0x18d)])?_0x25b1ff[_0x14fce6(0x1ce)][_0x14fce6(0x1cb)]=helper[_0x14fce6(0x16d)][_0x14fce6(0x194)](null,_0x1ff3ef[_0x14fce6(0x16c)](getTransformPath),!![]):_0x25b1ff['event_properties'][_0x14fce6(0x186)]=helper[_0x14fce6(0x1ee)](_0x1ff3ef[_0x14fce6(0x184)]);}catch(_0x11ab19){logger[_0x14fce6(0x1f1)]('Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20'+_0x11ab19);}const _0x4e7a8c={};_0x4e7a8c['content-type']=_0x1ff3ef[_0x14fce6(0x19a)];const _0x5a6866={'headers':_0x4e7a8c,'body':_0x25b1ff,'auth':{'user':helper[_0x14fce6(0x1a2)](_0x5d3ac6),'pass':helper['getAccessKey'](_0x5d3ac6)},'json':!![]};logger['debug'](_0x14fce6(0x18c)+JSON[_0x14fce6(0x189)](_0x5a6866[_0x14fce6(0x181)])[_0x14fce6(0x1ab)](new RegExp(helper['getUserName'](_0x5d3ac6),'g'),_0x1ff3ef[_0x14fce6(0x1d0)])['replace'](new RegExp(helper[_0x14fce6(0x1ea)](_0x5d3ac6),'g'),_0x1ff3ef[_0x14fce6(0x1d0)]));try{const _0x513190=await helper['nodeRequest'](_0x1ff3ef[_0x14fce6(0x170)],constants['FUNNEL_INSTRUMENTATION_API_URL'],_0x5a6866,_0x5d3ac6);logger[_0x14fce6(0x1f1)](_0x14fce6(0x201)+_0x29cdf1+_0x14fce6(0x1df)+util['format']('%j',_0x513190));}catch(_0x19b9d0){logger[_0x14fce6(0x1f1)]('Error\x20in\x20firing\x20request\x20to\x20'+FUNNEL_INSTRUMENTATION_API_URL+'\x20:\x20'+util[_0x14fce6(0x172)](_0x19b9d0));}},exports[a129_0x425fa8(0x18e)]=async _0x3fed3a=>{const _0xec2542=a129_0x425fa8,_0x19bb93={'XhleO':function(_0x40b82){return _0x40b82();},'gUpiz':_0xec2542(0x1ec),'fdFdt':_0xec2542(0x1f5),'UQbpY':'SDKTestSuccessful','YrDhy':function(_0x597570,_0x4463b7,_0x423c7a){return _0x597570(_0x4463b7,_0x423c7a);},'MwqYS':function(_0x15d049,_0x3ac849){return _0x15d049+_0x3ac849;},'gDtsv':_0xec2542(0x1f8)};try{await _0x3fed3a[_0xec2542(0x1d1)](),_0x19bb93[_0xec2542(0x17a)](printNudgeLocalNotSetError);const _0x1023fb={};_0x1023fb['error']=_0x3fed3a[_0xec2542(0x175)]?_0x3fed3a[_0xec2542(0x175)]:'{}';const _0x548458=_0x1023fb,_0xab39fc=Object[_0xec2542(0x16f)]({},_0x548458);!!_0x3fed3a[_0xec2542(0x1bd)]&&(_0xab39fc[_0x19bb93['gUpiz']]={'reason':_0x19bb93[_0xec2542(0x171)],'signal':_0x3fed3a['killSignal']});unhandledErrors=_0x3fed3a[_0xec2542(0x183)]['join']('\x0a');let _0x1b723a,_0x24055c,_0x315e2f;helper[_0xec2542(0x192)](_0x3fed3a[_0xec2542(0x1ad)])?([_0x1b723a,_0x24055c]=await helper[_0xec2542(0x1b5)](_0x3fed3a['config']),[_0x315e2f]=await Promise[_0xec2542(0x1d6)]([helper[_0xec2542(0x1ed)](_0x1b723a,_0x3fed3a[_0xec2542(0x1ad)]),exports[_0xec2542(0x1e1)](_0x19bb93['UQbpY'],_0xab39fc,_0x3fed3a[_0xec2542(0x1ad)],_0x3fed3a[_0xec2542(0x1d4)])])):([_0x1b723a,_0x24055c]=await helper[_0xec2542(0x1b1)](_0x3fed3a[_0xec2542(0x1ad)]),[_0x315e2f]=await Promise[_0xec2542(0x1d6)]([helper[_0xec2542(0x1c7)](_0x1b723a,_0x3fed3a['config']),exports['fireFunnelTestEvent'](_0x19bb93['UQbpY'],_0xab39fc,_0x3fed3a[_0xec2542(0x1ad)],_0x3fed3a[_0xec2542(0x1d4)])])),_0x315e2f&&await _0x19bb93[_0xec2542(0x1b0)](generateCIArtifacts,_0x315e2f,_0x24055c),logger[_0xec2542(0x18b)](_0xec2542(0x179)+_0x3fed3a[_0xec2542(0x1e3)]+_0xec2542(0x1e2)+process[_0xec2542(0x1c1)][_0xec2542(0x1b9)]),await helper[_0xec2542(0x17b)](_0x3fed3a[_0xec2542(0x1ad)]);}catch(_0x2e67ed){logger[_0xec2542(0x1f1)](_0x19bb93[_0xec2542(0x17e)](_0x19bb93[_0xec2542(0x196)],_0x2e67ed));}helper['notifyUpdate']();},exports[a129_0x425fa8(0x1eb)]=_0x375eed=>{const _0x185e1e=a129_0x425fa8,_0x1cd3c6={'sNHzQ':function(_0x531d7a,_0x5ed864){return _0x531d7a instanceof _0x5ed864;},'nuVWm':function(_0x48ce22,_0xd08e2d){return _0x48ce22(_0xd08e2d);}};try{if(_0x1cd3c6[_0x185e1e(0x1c9)](_0x375eed,Error))return _0x375eed[_0x185e1e(0x176)]||_0x375eed[_0x185e1e(0x193)]();return _0x1cd3c6[_0x185e1e(0x17c)](String,_0x375eed);}catch(_0xa9d867){return _0x375eed?_0x375eed[_0x185e1e(0x193)]():'';}},exports[a129_0x425fa8(0x1ba)]=_0x13420f=>{const _0x2f8dc4=a129_0x425fa8,_0x3fb99d={};_0x3fb99d[_0x2f8dc4(0x17d)]=function(_0x39090e,_0x54bea1){return _0x39090e===_0x54bea1;};const _0x4aa2ef=_0x3fb99d;return!_0x13420f||_0x4aa2ef[_0x2f8dc4(0x17d)](_0x13420f[_0x2f8dc4(0x1c5)](),'');},exports[a129_0x425fa8(0x1af)]=_0x360c5d=>{const _0x16b0b8=a129_0x425fa8,_0x57d5ce={};_0x57d5ce['AaGgq']=function(_0x4d2c6b,_0x4721dd){return _0x4d2c6b|_0x4721dd;};const _0x1cdd76=_0x57d5ce;try{return fs['accessSync'](_0x360c5d,_0x1cdd76[_0x16b0b8(0x174)](fs[_0x16b0b8(0x1f6)][_0x16b0b8(0x1ef)],fs['constants'][_0x16b0b8(0x1de)])),!![];}catch(_0x3ea019){return![];}},exports['setReadWriteExecuteAccess']=_0x3021f8=>{const _0x5efe75=a129_0x425fa8;try{fs[_0x5efe75(0x1c3)](_0x3021f8,0x1ff),logger[_0x5efe75(0x1f1)](_0x5efe75(0x1d8)+_0x3021f8+_0x5efe75(0x1f9));}catch(_0x35d008){logger[_0x5efe75(0x1a3)](_0x5efe75(0x1fe)+exports[_0x5efe75(0x1eb)](_0x35d008));}};function a129_0x3f8b(){const _0x594912=['forEach','API\x20Event\x20','null','browserStackConfig','yTTyA','requirePWModule','getFrameworkVersion','assign','tuJhD','fdFdt','format','selenium-webdriver','AaGgq','errorMessage','stack','app','YlPec','SDK\x20run\x20ended\x20for\x20id:\x20','XhleO','sendLogs','nuVWm','KdPJY','MwqYS','qXCgB','OrbFG','body','hostname','unhandledErrors','DPHZD','winstonLogger','seleniumVersion','./testhub/utils','values','stringify','Xwwpo','info','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','CdwIo','finalExecution','13976775wPHtmV','20aTsVFx','application/json','isTurboScaleSession','toString','apply','JQKcS','gDtsv','AUTOMATE','undefined','osVersion','hXjwm','733260ZDpdhX','keys','getOptimalHubUrl','length','qZCuh','tests','Krxdw','getUserName','error','./globals','version','LeYUY','wiVyk','536864pIGtRs','../bin/playwright/reporter/pwUtils','unknown','replace','sanitizeBrowserStackConfig','config','LgnPN','isModifiable','YrDhy','getBuildLink','2119132miQyUm','browserVersion','AUTOMATE_PRODUCTS','getTurboScaleBuildLink','yBqda','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','20Fzwwre','BROWSERSTACK_TESTHUB_UUID','isNullOrEmpty','./test-observability/utils','parse','killSignal','./logger','KAwsi','buildName','env','getTestFrameworkDetails','chmodSync','ENV_VAR','trim','7702450GFehzg','getSessionsList','LVhXC','sNHzQ','split','playwrightVersion','isBrowserstackInfra','3FNmlTe','event_properties','source','qujCj','stopPercy','type','wlLGG','framework','name','all','./helper','Directory\x20','APqse','PLouR','_buildHashedId','getGlobal','getNodeAgent','X_OK','\x20response\x20-\x20','every','fireFunnelTestEvent',',\x20testhub\x20id:\x20','sdkRunId','1138188bVxhhs','dgTHA','8lHIGzq','EIEIn','SDKTestSuccessful','../bin/utils/constants','getAccessKey','getStackTraceAsString','finishedMetadata','getTurboScaleSessionsList','getPackageVersion','W_OK','GUdDH','debug','codeceptjs','APP_AUTOMATE','CHRnO','user_killed','constants','2696485ajDDNJ','Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20','\x20has\x20now\x20read/write/execute\x20permissions.','./performance/performance-tester','util','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','nodejs','Failed\x20to\x20set\x20directory\x20access:\x20','browser'];a129_0x3f8b=function(){return _0x594912;};return a129_0x3f8b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a130_0x2dd0(){var _0x23d59a=['enFfh','GVVTt','cVqnU','localIdentifier','accessibilityOptions.authToken','appiumVersion','testhubBuildUuid','TauDd','accessKey','CIDrY','wAnCj','XgFPA','project','4jWXJNt','DUrtF','CFJEf','browserstack.playwrightVersion','browser','tWuVx','Ncapg','browserstack.performance','gzcdv','1570cRpuzL','accessibilityOptions.includeIssueType.needsReview','browserstackSDK','GsZbF','browserstack.telemetryLogs','906209oLRSyt','edrQo','projectName','seleniumLogs','headerParams','browserstack.accessibilityOptions.wcagVersion','os_version','browserstack.customNetwork','browserstack.seleniumLogs','playwrightVersion','osVersion','consoleLogs','idleTimeout','65mjtGjy','browserstack.idleTimeout','buildName','browserstack.networkProfile','browserstack.networkLogs','browserstack.timezone','365132siLXRF','3774DEHMcE','65LqcsQu','accessibilityOptions.includeIssueType.bestPractice','browserstack.overridelocalInfo.localIdentifier','YbHoc','98538BWLKVP','seleniumVersion','telemetryLogs','ubiXJ','wsLocalSupport','jHnSc','1322796YVtDmy','timezone','browserstack.accessibilityOptions.scannerProcessingTimeout','NjEAp','geoLocation','browserstack.localIdentifier','jNgiM','yPpIf','enableSim','browserstack.networkLogsOptions','xHbOl','mdDiT','accessibilityOptions.wcagVersion','browserstack.hosts','gMBMs','resolution','build','BzExh','GmUYN','browserstack.enableSim','sessionName','browserstack.simOptions','debug','realMobile','rXKdv','browserstack.browserstackSDK','browserstack.buildIdentifier','browserstack.testhubBuildUuid','ldKof','useW3c','browserstack.local','browserstack.accessibilityOptions.authToken','browserstack.use_w3c','browserstack.headerParams','NFhri','browserstack.accessibilityOptions.includeIssueType.needsReview','buildProductMap','browserstack.appiumLogs','browserstack.key','ZrjwF','VwXMP','Jwtaf','SKhhl','browserVersion','browserstack.console','2083167kXVTsw','networkLogs','DHMeE','browserstack.video','kqeXo','MtyLc','IGtYw','browser_version','PHkxK','sCndY','8123229RvNVil','EgImo','nlumA','fBkXU','maskBasicAuth','nkKsS','ZMONu','bfcache','disableCorsRestrictions','rZmWb','deviceOrientation','browserstack.maskBasicAuth','networkLogsOptions','browserstack.maskCommands','browserstack.appium_version','ebqie','userName','browserstack.selenium_version','8ApAkHX','overridelocalInfo.userAuthToken','browserstack.debug','name','performance','2331EQccFD','MlXJe','RtHIT','accessibilityOptions.scannerProcessingTimeout','device','deviceName','RFTlP','accessibilityOptions.scannerVersion','uploadMedia','mkwXv'];a130_0x2dd0=function(){return _0x23d59a;};return a130_0x2dd0();}function a130_0xea54(_0x75199e,_0x53915a){var _0x2dd036=a130_0x2dd0();return a130_0xea54=function(_0xea544e,_0x26565f){_0xea544e=_0xea544e-0x1f0;var _0x47aafe=_0x2dd036[_0xea544e];return _0x47aafe;},a130_0xea54(_0x75199e,_0x53915a);}(function(_0x2e55b6,_0x3ec1a5){var _0x35bbcf=a130_0xea54,_0x1b8c5c=_0x2e55b6();while(!![]){try{var _0x266ffe=-parseInt(_0x35bbcf(0x238))/0x1+parseInt(_0x35bbcf(0x22a))/0x2*(-parseInt(_0x35bbcf(0x1f2))/0x3)+parseInt(_0x35bbcf(0x24b))/0x4*(parseInt(_0x35bbcf(0x24d))/0x5)+parseInt(_0x35bbcf(0x24c))/0x6*(parseInt(_0x35bbcf(0x213))/0x7)+parseInt(_0x35bbcf(0x20e))/0x8*(parseInt(_0x35bbcf(0x1fc))/0x9)+parseInt(_0x35bbcf(0x233))/0xa*(parseInt(_0x35bbcf(0x251))/0xb)+-parseInt(_0x35bbcf(0x257))/0xc*(parseInt(_0x35bbcf(0x245))/0xd);if(_0x266ffe===_0x3ec1a5)break;else _0x1b8c5c['push'](_0x1b8c5c['shift']());}catch(_0x12505e){_0x1b8c5c['push'](_0x1b8c5c['shift']());}}}(a130_0x2dd0,0xd1b5b),exports['W3CMapping']=()=>{var _0xd3da37=a130_0xea54,_0x329f4b={};_0x329f4b[_0xd3da37(0x26f)]=_0xd3da37(0x20c),_0x329f4b[_0xd3da37(0x1fa)]=_0xd3da37(0x225),_0x329f4b['eeNei']=_0xd3da37(0x242),_0x329f4b[_0xd3da37(0x21c)]=_0xd3da37(0x22e),_0x329f4b[_0xd3da37(0x239)]=_0xd3da37(0x1f0),_0x329f4b['ZMONu']=_0xd3da37(0x274),_0x329f4b[_0xd3da37(0x236)]=_0xd3da37(0x23a),_0x329f4b[_0xd3da37(0x273)]=_0xd3da37(0x247),_0x329f4b[_0xd3da37(0x256)]=_0xd3da37(0x26b),_0x329f4b[_0xd3da37(0x269)]='local',_0x329f4b[_0xd3da37(0x25d)]=_0xd3da37(0x220),_0x329f4b[_0xd3da37(0x22b)]=_0xd3da37(0x26d),_0x329f4b['LkBHx']=_0xd3da37(0x243),_0x329f4b['iajmE']=_0xd3da37(0x1f3),_0x329f4b[_0xd3da37(0x22c)]=_0xd3da37(0x208),_0x329f4b[_0xd3da37(0x21d)]='appiumLogs',_0x329f4b['NFhri']='video',_0x329f4b['raeNa']=_0xd3da37(0x23b),_0x329f4b[_0xd3da37(0x230)]=_0xd3da37(0x253),_0x329f4b[_0xd3da37(0x205)]=_0xd3da37(0x25b),_0x329f4b[_0xd3da37(0x20b)]=_0xd3da37(0x258),_0x329f4b['XgFPA']=_0xd3da37(0x266),_0x329f4b[_0xd3da37(0x250)]=_0xd3da37(0x252),_0x329f4b[_0xd3da37(0x25a)]='maskCommands',_0x329f4b['wAnCj']=_0xd3da37(0x244),_0x329f4b[_0xd3da37(0x219)]=_0xd3da37(0x200),_0x329f4b['uCvbh']='autoWait',_0x329f4b[_0xd3da37(0x201)]='hosts',_0x329f4b[_0xd3da37(0x27e)]=_0xd3da37(0x203),_0x329f4b[_0xd3da37(0x1f8)]=_0xd3da37(0x255),_0x329f4b[_0xd3da37(0x215)]=_0xd3da37(0x204),_0x329f4b[_0xd3da37(0x268)]=_0xd3da37(0x218),_0x329f4b[_0xd3da37(0x1fd)]=_0xd3da37(0x26e),_0x329f4b['GVVTt']=_0xd3da37(0x222),_0x329f4b[_0xd3da37(0x1fb)]=_0xd3da37(0x206),_0x329f4b[_0xd3da37(0x1f6)]='customNetwork',_0x329f4b[_0xd3da37(0x1fe)]='networkProfile',_0x329f4b['gMBMs']='buildIdentifier',_0x329f4b['MlXJe']=_0xd3da37(0x235),_0x329f4b[_0xd3da37(0x27f)]='accessibility',_0x329f4b[_0xd3da37(0x1ff)]=_0xd3da37(0x27b),_0x329f4b[_0xd3da37(0x254)]=_0xd3da37(0x223),_0x329f4b[_0xd3da37(0x261)]=_0xd3da37(0x263),_0x329f4b['mdDiT']=_0xd3da37(0x21a),_0x329f4b['tHtBr']=_0xd3da37(0x216),_0x329f4b[_0xd3da37(0x232)]=_0xd3da37(0x24e),_0x329f4b['yPpIf']=_0xd3da37(0x234),_0x329f4b[_0xd3da37(0x280)]=_0xd3da37(0x221),_0x329f4b[_0xd3da37(0x1f4)]=_0xd3da37(0x21b),_0x329f4b[_0xd3da37(0x1f7)]=_0xd3da37(0x25f),_0x329f4b['CIDrY']='simOptions',_0x329f4b[_0xd3da37(0x281)]=_0xd3da37(0x241),_0x329f4b[_0xd3da37(0x21f)]=_0xd3da37(0x20f),_0x329f4b['GutvG']='overridelocalInfo.localIdentifier',_0x329f4b[_0xd3da37(0x224)]=_0xd3da37(0x23c),_0x329f4b[_0xd3da37(0x22f)]=_0xd3da37(0x212);var _0x1371ad=_0x329f4b,_0x334517={};return _0x334517['browserstack.user']=_0x1371ad[_0xd3da37(0x26f)],_0x334517[_0xd3da37(0x27d)]=_0x1371ad['PHkxK'],_0x334517['os']='os',_0x334517[_0xd3da37(0x23e)]=_0x1371ad['eeNei'],_0x334517[_0xd3da37(0x22e)]=_0x1371ad[_0xd3da37(0x21c)],_0x334517[_0xd3da37(0x1f9)]=_0x1371ad[_0xd3da37(0x239)],_0x334517[_0xd3da37(0x277)]=_0x1371ad[_0xd3da37(0x202)],_0x334517[_0xd3da37(0x229)]=_0x1371ad[_0xd3da37(0x236)],_0x334517[_0xd3da37(0x267)]=_0x1371ad['ldKof'],_0x334517[_0xd3da37(0x211)]=_0x1371ad[_0xd3da37(0x256)],_0x334517[_0xd3da37(0x275)]=_0x1371ad[_0xd3da37(0x269)],_0x334517[_0xd3da37(0x25c)]=_0x1371ad[_0xd3da37(0x25d)],_0x334517[_0xd3da37(0x210)]=_0x1371ad[_0xd3da37(0x22b)],_0x334517[_0xd3da37(0x1f1)]=_0x1371ad['LkBHx'],_0x334517[_0xd3da37(0x249)]=_0x1371ad['iajmE'],_0x334517[_0xd3da37(0x260)]=_0x1371ad['CFJEf'],_0x334517[_0xd3da37(0x27c)]=_0x1371ad[_0xd3da37(0x21d)],_0x334517[_0xd3da37(0x1f5)]=_0x1371ad[_0xd3da37(0x279)],_0x334517[_0xd3da37(0x240)]=_0x1371ad['raeNa'],_0x334517[_0xd3da37(0x237)]=_0x1371ad[_0xd3da37(0x230)],_0x334517['browserstack.geoLocation']=_0x1371ad[_0xd3da37(0x205)],_0x334517[_0xd3da37(0x24a)]=_0x1371ad['ebqie'],_0x334517[_0xd3da37(0x266)]=_0x1371ad[_0xd3da37(0x228)],_0x334517[_0xd3da37(0x20d)]=_0x1371ad[_0xd3da37(0x250)],_0x334517[_0xd3da37(0x209)]=_0x1371ad['NjEAp'],_0x334517[_0xd3da37(0x246)]=_0x1371ad[_0xd3da37(0x227)],_0x334517[_0xd3da37(0x207)]=_0x1371ad[_0xd3da37(0x219)],_0x334517['browserstack.autoWait']=_0x1371ad['uCvbh'],_0x334517[_0xd3da37(0x264)]=_0x1371ad['nkKsS'],_0x334517['browserstack.bfcache']=_0x1371ad[_0xd3da37(0x27e)],_0x334517['browserstack.wsLocalSupport']=_0x1371ad['IGtYw'],_0x334517['browserstack.disableCorsRestrictions']=_0x1371ad[_0xd3da37(0x215)],_0x334517[_0xd3da37(0x217)]=_0x1371ad[_0xd3da37(0x268)],_0x334517[_0xd3da37(0x26e)]=_0x1371ad[_0xd3da37(0x1fd)],_0x334517[_0xd3da37(0x20a)]=_0x1371ad[_0xd3da37(0x21e)],_0x334517[_0xd3da37(0x206)]=_0x1371ad[_0xd3da37(0x1fb)],_0x334517[_0xd3da37(0x23f)]=_0x1371ad[_0xd3da37(0x1f6)],_0x334517[_0xd3da37(0x248)]=_0x1371ad[_0xd3da37(0x1fe)],_0x334517[_0xd3da37(0x271)]=_0x1371ad[_0xd3da37(0x265)],_0x334517[_0xd3da37(0x270)]=_0x1371ad[_0xd3da37(0x214)],_0x334517['browserstack.accessibility']=_0x1371ad['VwXMP'],_0x334517['browserstack.buildProductMap']=_0x1371ad[_0xd3da37(0x1ff)],_0x334517[_0xd3da37(0x272)]=_0x1371ad[_0xd3da37(0x254)],_0x334517[_0xd3da37(0x23d)]=_0x1371ad[_0xd3da37(0x261)],_0x334517['browserstack.accessibilityOptions.scannerVersion']=_0x1371ad[_0xd3da37(0x262)],_0x334517[_0xd3da37(0x259)]=_0x1371ad['tHtBr'],_0x334517['browserstack.accessibilityOptions.includeIssueType.bestPractice']=_0x1371ad[_0xd3da37(0x232)],_0x334517[_0xd3da37(0x27a)]=_0x1371ad[_0xd3da37(0x25e)],_0x334517[_0xd3da37(0x276)]=_0x1371ad['Jwtaf'],_0x334517['browserstack.uploadMedia']=_0x1371ad[_0xd3da37(0x1f4)],_0x334517[_0xd3da37(0x26a)]=_0x1371ad[_0xd3da37(0x1f7)],_0x334517[_0xd3da37(0x26c)]=_0x1371ad[_0xd3da37(0x226)],_0x334517[_0xd3da37(0x22d)]=_0x1371ad[_0xd3da37(0x281)],_0x334517['browserstack.overridelocalInfo.userAuthToken']=_0x1371ad[_0xd3da37(0x21f)],_0x334517[_0xd3da37(0x24f)]=_0x1371ad['GutvG'],_0x334517[_0xd3da37(0x278)]=_0x1371ad['TauDd'],_0x334517[_0xd3da37(0x231)]=_0x1371ad['tWuVx'],_0x334517;});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a131_0x158f81=a131_0x3f52;function a131_0x3f52(_0x488b18,_0x4aa547){const _0x4756bc=a131_0x4756();return a131_0x3f52=function(_0x3f5200,_0x14cfe0){_0x3f5200=_0x3f5200-0x18b;let _0x2abef1=_0x4756bc[_0x3f5200];return _0x2abef1;},a131_0x3f52(_0x488b18,_0x4aa547);}(function(_0x28789a,_0xb5cbf2){const _0x59221d=a131_0x3f52,_0x4874ed=_0x28789a();while(!![]){try{const _0x7491d1=parseInt(_0x59221d(0x1ac))/0x1*(parseInt(_0x59221d(0x1ad))/0x2)+-parseInt(_0x59221d(0x19a))/0x3+parseInt(_0x59221d(0x1a0))/0x4+parseInt(_0x59221d(0x1b4))/0x5*(-parseInt(_0x59221d(0x1bf))/0x6)+parseInt(_0x59221d(0x1b7))/0x7*(parseInt(_0x59221d(0x19c))/0x8)+-parseInt(_0x59221d(0x1b5))/0x9+-parseInt(_0x59221d(0x1b6))/0xa*(-parseInt(_0x59221d(0x1c5))/0xb);if(_0x7491d1===_0xb5cbf2)break;else _0x4874ed['push'](_0x4874ed['shift']());}catch(_0x2d1f39){_0x4874ed['push'](_0x4874ed['shift']());}}}(a131_0x4756,0xae3c3));const url=require(a131_0x158f81(0x1ae)),util=require(a131_0x158f81(0x191)),helper=require(a131_0x158f81(0x195)),logger=require('./helpers/logger')['winstonLogger'],constants=require('./bin/utils/constants');global[a131_0x158f81(0x199)]='',exports[a131_0x158f81(0x1a9)]=_0xb85118=>{const _0x2f742a=a131_0x158f81,_0x9cbb06={};_0x9cbb06[_0x2f742a(0x1b3)]=function(_0x449cf5,_0x50fd05){return _0x449cf5+_0x50fd05;},_0x9cbb06[_0x2f742a(0x19d)]=_0x2f742a(0x1bb);const _0x36d36f=_0x9cbb06,_0x3bf170=url[_0x2f742a(0x18f)](_0xb85118);if(!_0x3bf170[_0x2f742a(0x1bd)])throw new Error(_0x36d36f[_0x2f742a(0x1b3)](_0x36d36f['nUtrw'],_0xb85118));return _0x3bf170['search']=null,_0x3bf170['hash']=null,_0x3bf170[_0x2f742a(0x1b2)]=_0x3bf170['pathname'],_0x3bf170;},exports['updateHubUrl']=_0x29d20a=>{const _0x48dcd7=a131_0x158f81;global[_0x48dcd7(0x199)]=_0x29d20a;},exports['allocateHub']=_0x5e223c=>{const _0x480c35=a131_0x158f81,_0x1ca934={'xBVaq':function(_0x171761,_0x1a85ba){return _0x171761+_0x1a85ba;},'THrII':'/wd/hub','VJjLQ':function(_0x124c36){return _0x124c36();},'AeTZt':function(_0x507738,_0x3f7369){return _0x507738!=_0x3f7369;},'rzXsd':function(_0x101aa8,_0xdb5b63){return _0x101aa8!==_0xdb5b63;},'vrbHu':_0x480c35(0x198),'zoeNe':function(_0x24a55a){return _0x24a55a();},'ZTYyo':function(_0x15c568){return _0x15c568();}};return new Promise(_0x1c6e7e=>{const _0x35d5b8=_0x480c35;Promise['resolve'](this['nextHubs'](_0x5e223c))[_0x35d5b8(0x18b)](_0x39460d=>{const _0x4ae52d=_0x35d5b8,_0x456f7e={'DYuLH':function(_0x2087b7,_0x3ddaa9){return _0x1ca934['xBVaq'](_0x2087b7,_0x3ddaa9);},'HSpFm':_0x1ca934['THrII'],'zQPIE':function(_0x5b5872){const _0x5b246c=a131_0x3f52;return _0x1ca934[_0x5b246c(0x1a5)](_0x5b5872);}};logger['debug']('NEAREST\x20HUBS:\x20'+util[_0x4ae52d(0x1ba)]('%j',_0x39460d));if(_0x1ca934[_0x4ae52d(0x1be)](_0x39460d,null)&&_0x1ca934[_0x4ae52d(0x1c2)](_0x39460d['length'],0x0)){const _0x50c2df=[];for(const _0x424db6 of _0x39460d){_0x50c2df[_0x4ae52d(0x18e)](this[_0x4ae52d(0x194)](_0x5e223c,_0x1ca934['xBVaq'](_0x1ca934['vrbHu'],_0x424db6)));}Promise[_0x4ae52d(0x19f)](_0x50c2df)['then'](_0x3427f2=>{const _0x415d9b=_0x4ae52d,_0x5f3e39=Object[_0x415d9b(0x1a8)](_0x3427f2[_0x415d9b(0x190)](_0x2ad326=>[_0x2ad326[_0x415d9b(0x1c4)],_0x2ad326[_0x415d9b(0x18c)]])),_0x34adb2=Object[_0x415d9b(0x1a8)](Object['entries'](_0x5f3e39)[_0x415d9b(0x1bc)](([,_0x1c2089],[,_0x4ad4c5])=>_0x1c2089-_0x4ad4c5)),_0x2241b0=Object[_0x415d9b(0x1c1)](_0x34adb2)[0x0];constants[_0x415d9b(0x1c4)]=_0x456f7e[_0x415d9b(0x1a4)](_0x2241b0,_0x456f7e[_0x415d9b(0x1a1)]),logger[_0x415d9b(0x1b1)]('HUB\x20URL\x20SET\x20TO\x20-\x20'+_0x2241b0),_0x456f7e['zQPIE'](_0x1c6e7e);});}else _0x1ca934['zoeNe'](_0x1c6e7e);})[_0x35d5b8(0x196)](_0x42de47=>{const _0x42d193=_0x35d5b8;logger[_0x42d193(0x1b1)](_0x42d193(0x1c0)+_0x42de47),_0x1ca934['ZTYyo'](_0x1c6e7e);});});},exports[a131_0x158f81(0x194)]=async(_0x5c090a,_0x16fac7)=>{const _0x1a5367=a131_0x158f81,_0x26c475={};_0x26c475[_0x1a5367(0x1c7)]=_0x1a5367(0x1b8),_0x26c475[_0x1a5367(0x1ab)]=_0x1a5367(0x1a2),_0x26c475[_0x1a5367(0x18d)]=function(_0x4349cb,_0x4aae8c){return _0x4349cb-_0x4aae8c;};const _0x8f3ba5=_0x26c475;try{const _0x4a58b7=new Date();await helper[_0x1a5367(0x1a3)](_0x8f3ba5['KkwWV'],_0x8f3ba5[_0x1a5367(0x1ab)],{},_0x5c090a,_0x16fac7,0x1388);const _0x325179=_0x8f3ba5[_0x1a5367(0x18d)](new Date(),_0x4a58b7);logger[_0x1a5367(0x1b1)](_0x1a5367(0x197)+_0x16fac7+_0x1a5367(0x1b0)+_0x325179+'ms');const _0x4638ea={};return _0x4638ea[_0x1a5367(0x1c4)]=_0x16fac7,_0x4638ea['latency']=_0x325179,_0x4638ea;}catch(_0x19d2ef){return logger[_0x1a5367(0x1b1)](_0x1a5367(0x193)+_0x16fac7+_0x1a5367(0x19b)+_0x19d2ef),{};}},exports[a131_0x158f81(0x1af)]=async _0x1c66fe=>{const _0x509ec5=a131_0x158f81,_0x54cf40={'MftoS':function(_0x215564,_0x4b89fd){return _0x215564(_0x4b89fd);},'QeKca':'./bin/utils/constants','EpCDJ':'/wd/hub','tKoLM':'GET','ngFbe':'next_hubs'};try{const _0x24d35c=_0x54cf40[_0x509ec5(0x1c6)](require,_0x54cf40['QeKca'])[_0x509ec5(0x1c4)][_0x509ec5(0x1a6)](_0x54cf40[_0x509ec5(0x1a7)],''),_0x3aa87f=await helper[_0x509ec5(0x1a3)](_0x54cf40[_0x509ec5(0x1c3)],_0x54cf40[_0x509ec5(0x19e)],{},_0x1c66fe,_0x24d35c,0x1388),_0x232e73=_0x3aa87f[_0x509ec5(0x1b9)];return logger[_0x509ec5(0x1b1)](_0x509ec5(0x1aa)+util[_0x509ec5(0x1ba)]('%j',_0x232e73)),_0x232e73['hubs'];}catch(_0x4dc510){logger[_0x509ec5(0x1b1)](_0x509ec5(0x192)+_0x4dc510);}return null;};function a131_0x4756(){const _0x233c56=['kqdGV','5725015PsVTUh','3731958CFXYeQ','14467870ZbXTRZ','708596suOZTL','GET','data','format','Invalid\x20new\x20HUB\x20URL:\x20','sort','hostname','AeTZt','6GJlERI','CANNOT\x20ALLOCATE\x20NEAREST\x20HUB\x20-\x20','keys','rzXsd','tKoLM','hubUrl','11pPzzZF','MftoS','KkwWV','then','latency','wJFXm','push','parse','map','util','ERROR\x20IN\x20GETTING\x20RESPONSE\x20FROM\x20NEXT\x20HUBS:\x20','ERROR\x20IN\x20FINDING\x20LATENCY\x20FOR\x20','findLatency','./helpers/helper','catch','Execution\x20time\x20for\x20','https://','newHubUrl','3869388TCCGUP','\x20HUB\x20-\x20','56WBgfxF','nUtrw','ngFbe','all','5387432SoToui','HSpFm','check','nodeRequest','DYuLH','VJjLQ','replace','EpCDJ','fromEntries','getRequestOptions','Response:\x20','UoOmA','1tYrAdT','121774KhGAdG','url','nextHubs','\x20is:\x20','debug','path'];a131_0x4756=function(){return _0x233c56;};return a131_0x4756();}
|