browserstack-node-sdk 1.40.4 → 1.40.6
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_0x4849e3=a124_0x3fff;function a124_0x3fff(_0x41193b,_0x1f9dc6){const _0x1caf6d=a124_0x1caf();return a124_0x3fff=function(_0x3fff84,_0x377c38){_0x3fff84=_0x3fff84-0xc6;let _0x42f475=_0x1caf6d[_0x3fff84];return _0x42f475;},a124_0x3fff(_0x41193b,_0x1f9dc6);}function a124_0x1caf(){const _0x426a43=['[splitTests]\x20Exception\x20in\x20sending\x20test\x20files:\x20','1306152WcrTBa','[processSplitTestsResponse]\x20Received\x20null\x20value(s)\x20for\x20some\x20attributes\x20in\x20split\x20tests\x20API\x20response','14307444mJHRxm','tests','[processSplitTestsResponse]\x20timeout:\x20','2320662gvKGwG','defaultTimeoutInterval','BrVXu','winstonLogger','defaultTimeout','processSplitTestsResponse','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL:\x20','DETxA','totalmem','DbNLA','vOBtx','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL\x20after\x20waiting\x20for\x20','[getOrderedTestFiles]\x20Exception\x20in\x20fetching\x20ordered\x20test\x20files:\x20','308444tMaiCa','projectName','timeout','ycuSE','NGVvC','GJCvJ','BROWSERSTACK_TOTAL_NODE_COUNT','[processSplitTestsResponse]\x20Processing\x20response:\x20','492324xWgfot','debug','[getOrderedTestFiles]\x20Fetching\x20ordered\x20test\x20files','_getHostInfo','285328myyTbZ','resultUrl','map','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20timeout\x20URL','45pGVTQI','timeoutUrl','stringify','../logger','ACLBM','splitTestsAPICallCount','\x20seconds.','timeoutInterval','getSplitFiles','length','IEYqu','platform','RfUaW','rgGDZ','exports','BROWSERSTACK_NODE_INDEX','getOrderedTestFiles','80ClSmXS','now','freemem','config',',\x20timeoutInterval:\x20','435976lekHKo','dQWkS','getSplitTestsAPICallCount','toString','./requestUtils','env','[getOrderedTestFiles]\x20Response\x20from\x20result\x20URL:\x20','splitTests'];a124_0x1caf=function(){return _0x426a43;};return a124_0x1caf();}(function(_0x2254a9,_0x19cde9){const _0x1f6e8a=a124_0x3fff,_0x550d9a=_0x2254a9();while(!![]){try{const _0x303323=parseInt(_0x1f6e8a(0x105))/0x1+-parseInt(_0x1f6e8a(0xde))/0x2+parseInt(_0x1f6e8a(0xec))/0x3+parseInt(_0x1f6e8a(0xf9))/0x4*(parseInt(_0x1f6e8a(0xc8))/0x5)+-parseInt(_0x1f6e8a(0xe7))/0x6+-parseInt(_0x1f6e8a(0x101))/0x7*(-parseInt(_0x1f6e8a(0xd9))/0x8)+-parseInt(_0x1f6e8a(0xe9))/0x9;if(_0x303323===_0x19cde9)break;else _0x550d9a['push'](_0x550d9a['shift']());}catch(_0x4771d5){_0x550d9a['push'](_0x550d9a['shift']());}}}(a124_0x1caf,0x692d5));const logger=require(a124_0x4849e3(0xcb))[a124_0x4849e3(0xef)],RequestUtils=require(a124_0x4849e3(0xe2));class TestOrderingServerHandler{constructor(_0x40fcda){const _0x4e5380=a124_0x4849e3;this[_0x4e5380(0xdc)]=_0x40fcda,this[_0x4e5380(0xcd)]=0x0,this[_0x4e5380(0xf0)]=0x3c,this['defaultTimeoutInterval']=0x5;}[a124_0x4849e3(0xe0)](){const _0x2f9a60=a124_0x4849e3;return this[_0x2f9a60(0xcd)];}[a124_0x4849e3(0xf1)](_0x3173cd){const _0x225175=a124_0x4849e3,_0x5963ff={};_0x5963ff[_0x225175(0xf6)]=_0x225175(0xe8);const _0x20d0df=_0x5963ff;if(!_0x3173cd)return null;const _0x4a78ed={};return _0x4a78ed['timeout']=_0x3173cd['timeout']||this[_0x225175(0xf0)],_0x4a78ed['timeoutInterval']=_0x3173cd[_0x225175(0xcf)]||this[_0x225175(0xed)],_0x4a78ed[_0x225175(0x106)]=_0x3173cd[_0x225175(0x106)],_0x4a78ed[_0x225175(0xc9)]=_0x3173cd['timeoutUrl'],logger[_0x225175(0x102)](_0x225175(0x100)+JSON[_0x225175(0xca)](_0x3173cd)),logger['debug'](_0x225175(0xeb)+_0x3173cd[_0x225175(0xfb)]+_0x225175(0xdd)+_0x3173cd['timeoutInterval']+',\x20resultUrl:\x20'+_0x3173cd[_0x225175(0x106)]+',\x20timeoutUrl:\x20'+_0x3173cd[_0x225175(0xc9)]),(!_0x3173cd[_0x225175(0xfb)]||!_0x3173cd['timeoutInterval']||!_0x3173cd['timeoutUrl']||!_0x3173cd[_0x225175(0x106)])&&logger[_0x225175(0x102)](_0x20d0df[_0x225175(0xf6)]),_0x4a78ed;}async[a124_0x4849e3(0xe5)](_0x249537,_0x30fdce){const _0x2c38d5=a124_0x4849e3,_0x2dbfee={'DbNLA':function(_0x52fa2c,_0x444d28){return _0x52fa2c(_0x444d28);},'rgGDZ':function(_0x515b62,_0x2b22c2){return _0x515b62(_0x2b22c2);}};try{const _0x43ffd3=_0x2dbfee[_0x2c38d5(0xf5)](parseInt,process[_0x2c38d5(0xe3)][_0x2c38d5(0xd7)]||'0'),_0x4b89bb=_0x2dbfee[_0x2c38d5(0xd5)](parseInt,process[_0x2c38d5(0xe3)][_0x2c38d5(0xff)]||'1'),_0x35bf3f=process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],_0x4ed131={'nodeIndex':_0x43ffd3,'totalNodes':_0x4b89bb,'projectName':this[_0x2c38d5(0xdc)][_0x2c38d5(0xfa)],'buildName':this[_0x2c38d5(0xdc)]['buildName'],'buildRunIdentifier':_0x35bf3f,'orchestrationStrategy':_0x30fdce,'hostInfo':this[_0x2c38d5(0x104)](),'tests':_0x249537[_0x2c38d5(0xc6)](_0x49afe8=>({'filePath':_0x49afe8}))},_0x5e2b99=await RequestUtils['postSplitFiles'](_0x4ed131);return logger[_0x2c38d5(0x102)]('[splitTests]\x20Response\x20from\x20split\x20tests\x20API:\x20'+JSON[_0x2c38d5(0xca)](_0x5e2b99)),this['splitTestsAPICallCount']+=0x1,this[_0x2c38d5(0xf1)](_0x5e2b99['body']||{});}catch(_0x3a8420){return logger[_0x2c38d5(0x102)](_0x2c38d5(0xe6)+(_0x3a8420['stack']||_0x3a8420[_0x2c38d5(0xe1)]())),null;}}async[a124_0x4849e3(0xd8)](_0xc4b368){const _0x169962=a124_0x4849e3,_0x591def={};_0x591def[_0x169962(0xfd)]=_0x169962(0x103),_0x591def[_0x169962(0xfe)]=function(_0x362022,_0x2f8438){return _0x362022*_0x2f8438;},_0x591def[_0x169962(0xd2)]=function(_0x2f96ae,_0x249417){return _0x2f96ae&&_0x249417;},_0x591def[_0x169962(0xcc)]=function(_0x588d0e,_0x2e9576){return _0x588d0e<_0x2e9576;},_0x591def[_0x169962(0xf3)]=function(_0x1eec41,_0x157f0e){return _0x1eec41-_0x157f0e;},_0x591def[_0x169962(0xdf)]=function(_0x3a37de,_0x254184){return _0x3a37de&&_0x254184;},_0x591def[_0x169962(0xee)]=_0x169962(0xc7),_0x591def[_0x169962(0xfc)]=function(_0x4d67bc,_0x2d6ca1){return _0x4d67bc>_0x2d6ca1;};const _0x219144=_0x591def;if(!_0xc4b368)return null;try{logger[_0x169962(0x102)](_0x219144['NGVvC']);const _0x2dfa6b=_0xc4b368[_0x169962(0xcf)]||this[_0x169962(0xed)],_0xc44dd3=_0x219144[_0x169962(0xfe)](_0xc4b368['timeout']||this[_0x169962(0xf0)],0x3e8),_0x17165c=_0xc4b368[_0x169962(0xc9)],_0x3cd0a4=_0xc4b368['resultUrl'];if(_0x219144[_0x169962(0xd2)](!_0x3cd0a4,!_0x17165c))return null;let _0x305423=null;const _0x1ab15f=Date[_0x169962(0xda)]();while(_0x3cd0a4&&_0x219144['ACLBM'](_0x219144[_0x169962(0xf3)](Date['now'](),_0x1ab15f),_0xc44dd3)){logger['debug'](_0x169962(0xf2)+_0x3cd0a4);const _0x14745a=await RequestUtils[_0x169962(0xd0)](_0x3cd0a4);logger[_0x169962(0x102)](_0x169962(0xe4)+JSON[_0x169962(0xca)](_0x14745a)),this[_0x169962(0xcd)]+=0x1;if(_0x14745a&&_0x14745a[_0x169962(0xea)]){_0x305423=_0x14745a[_0x169962(0xea)];break;}await new Promise(_0xad8efe=>setTimeout(_0xad8efe,_0x2dfa6b*0x3e8)),logger[_0x169962(0x102)](_0x169962(0xf7)+_0x2dfa6b+_0x169962(0xce));}if(_0x219144[_0x169962(0xdf)](!_0x305423,_0x17165c)){logger[_0x169962(0x102)](_0x219144['BrVXu']);const _0x5a432a=await RequestUtils[_0x169962(0xd0)](_0x17165c);_0x5a432a&&_0x5a432a[_0x169962(0xea)]&&(_0x305423=_0x5a432a[_0x169962(0xea)]);}if(_0x305423&&_0x219144['ycuSE'](_0x305423[_0x169962(0xd1)],0x0))return _0x305423[_0x169962(0xc6)](_0x2ebe94=>_0x2ebe94['filePath']);return null;}catch(_0x24d4b4){return logger['debug'](_0x169962(0xf8)+(_0x24d4b4['stack']||_0x24d4b4[_0x169962(0xe1)]())),null;}}[a124_0x4849e3(0x104)](){const _0x589c86=a124_0x4849e3,_0x25325f={'RfUaW':function(_0x247886,_0x3b82b5){return _0x247886(_0x3b82b5);}},_0x48fbac=_0x25325f[_0x589c86(0xd4)](require,'os');try{return{'hostname':_0x48fbac['hostname'](),'platform':_0x48fbac[_0x589c86(0xd3)](),'release':_0x48fbac['release'](),'arch':_0x48fbac['arch'](),'totalmem':_0x48fbac[_0x589c86(0xf4)](),'freemem':_0x48fbac[_0x589c86(0xdb)]()};}catch(_0x271eb0){return{};}}}module[a124_0x4849e3(0xd6)]=TestOrderingServerHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a125_0x187e7c=a125_0x5b43;(function(_0x4b7a85,_0x2f2f95){var _0x22283c=a125_0x5b43,_0x5b9f85=_0x4b7a85();while(!![]){try{var _0xabeb58=-parseInt(_0x22283c(0xc3))/0x1*(-parseInt(_0x22283c(0xd2))/0x2)+-parseInt(_0x22283c(0xd1))/0x3+parseInt(_0x22283c(0xbe))/0x4*(parseInt(_0x22283c(0xd0))/0x5)+parseInt(_0x22283c(0xcb))/0x6*(-parseInt(_0x22283c(0xe0))/0x7)+-parseInt(_0x22283c(0xc4))/0x8*(parseInt(_0x22283c(0xcc))/0x9)+-parseInt(_0x22283c(0xd7))/0xa+parseInt(_0x22283c(0xd4))/0xb*(parseInt(_0x22283c(0xda))/0xc);if(_0xabeb58===_0x2f2f95)break;else _0x5b9f85['push'](_0x5b9f85['shift']());}catch(_0x4acd73){_0x5b9f85['push'](_0x5b9f85['shift']());}}}(a125_0x2d0e,0x6ac6a));var a125_0x3a4935={};a125_0x3a4935[a125_0x187e7c(0xd6)]=a125_0x187e7c(0xbf),a125_0x3a4935[a125_0x187e7c(0xcf)]=a125_0x187e7c(0xcd),a125_0x3a4935['ACCESS_DENIED']=a125_0x187e7c(0xc1);var a125_0x590065={};a125_0x590065[a125_0x187e7c(0xd8)]=a125_0x187e7c(0xdb),a125_0x590065[a125_0x187e7c(0xca)]=a125_0x187e7c(0xdc),a125_0x590065[a125_0x187e7c(0xd9)]=a125_0x187e7c(0xdd),a125_0x590065['LogCreated']=a125_0x187e7c(0xd3),a125_0x590065[a125_0x187e7c(0xc8)]='HookRunStarted',a125_0x590065[a125_0x187e7c(0xc7)]=a125_0x187e7c(0xc9),a125_0x590065[a125_0x187e7c(0xce)]=a125_0x187e7c(0xce);var a125_0x13125b={};a125_0x13125b['BROWSERSTACK_TESTHUB_UUID']='BROWSERSTACK_TESTHUB_UUID',a125_0x13125b[a125_0x187e7c(0xc2)]=a125_0x187e7c(0xc2);var a125_0x4a460f={};function a125_0x5b43(_0x3c4d0b,_0x38b22f){var _0x2d0e09=a125_0x2d0e();return a125_0x5b43=function(_0x5b43f5,_0x1c82ae){_0x5b43f5=_0x5b43f5-0xbe;var _0x1ba4f9=_0x2d0e09[_0x5b43f5];return _0x1ba4f9;},a125_0x5b43(_0x3c4d0b,_0x38b22f);}a125_0x4a460f[a125_0x187e7c(0xc6)]=a125_0x187e7c(0xdf),a125_0x4a460f[a125_0x187e7c(0xde)]=a125_0x187e7c(0xc0),a125_0x4a460f[a125_0x187e7c(0xd5)]='observability',a125_0x4a460f['ERROR']=a125_0x3a4935,a125_0x4a460f['EVENT']=a125_0x590065,a125_0x4a460f[a125_0x187e7c(0xc5)]=a125_0x13125b,module[a125_0x187e7c(0xe1)]=a125_0x4a460f;function a125_0x2d0e(){var _0x3624f4=['99sSIQQB','OBSERVABILITY','INVALID_CREDENTIALS','5726080POuAnE','TestStarted','TestSkipped','3446136zROiVX','TestRunStarted','TestRunFinished','TestRunSkipped','ACCESSIBILITY','api/v2/builds','22043aQfGYf','exports','68120WmFiXv','ERROR_INVALID_CREDENTIALS','accessibility','ERROR_ACCESS_DENIED','BROWSERSTACK_TESTHUB_JWT','5qRmRis','2068648VAmqeX','ENV_VAR','TESTHUB_BUILD_API','HookFinished','HookStarted','HookRunFinished','TestFinished','1344gTkQlM','27IDEIJx','ERROR_SDK_DEPRECATED','CBTSessionCreated','DEPRECATED','75QVbosD','1898058ReQkaT','113486cZUXlZ','LogCreated'];a125_0x2d0e=function(){return _0x3624f4;};return a125_0x2d0e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a126_0xb83670=a126_0x5c2b;function a126_0x5c2b(_0x1358b6,_0x33416f){const _0x57c088=a126_0x57c0();return a126_0x5c2b=function(_0x5c2b3e,_0xa98c0f){_0x5c2b3e=_0x5c2b3e-0x93;let _0x4fefab=_0x57c088[_0x5c2b3e];return _0x4fefab;},a126_0x5c2b(_0x1358b6,_0x33416f);}function a126_0x57c0(){const _0x2a1261=['assign','getConfig','allowScreenshot','includeEncodedExtension','twJjD','VEqee','./utils.js','rTCmc','config','projectName','fdmAi','BROWSERSTACK_ACCESSIBILITY','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','BROWSERSTACK_TESTHUB_UUID','ACCESSIBILITY','BROWSERSTACK_LINKED_BUILD_UUID','GVLzj','PUT','stopBuildUpstream\x20event\x20successful!','362111PTZKMc','xOtNG','All\x20trace\x20zip\x20send\x20events\x20complete','isAccessibilityEnabled','generateBuildUpstreamData','getCentralUser','getProductMap','GbxIu','getHostInfo','3047356OYWuCo','accessibility','11AxdpFF','push','BROWSERSTACK_CENTRAL_SCANNER_JOBID','ISwDE','getInstance','../performance/constants','ENV_VAR','BROWSERSTACK_TESTHUB_JWT','BROWSERSTACK_PRODUCT_MAP','debug','ZKhVB','PERCY_SUPPORTED_FRAMEWORKS','data','true','error','allSettled','536394wpUApJ','getCiInfo','JEAuE','password','2KHkAlc','getUserName','response','status','setTestHubCommonMetaInfo','extractDataFromResponse','setTestObservabilityVariables','Testhub\x20started\x20with\x20id:\x20','authToken','cwd','Generating\x20build\x20upstream\x20data\x20for\x20TestHub','basename','BS_TESTOPS_BUILD_COMPLETED','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','GhAri','includes','getGitMetaData','24lDKTMJ','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','settings','add','3277827xpgRKU','xQvnG','success','WdcZm','toISOString','getAccessibilityOptions','SWOMI','../test-observability/utils','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','../logger','xgsLO','measureWrapper','percy','BROWSERSTACK_BUILD_RUN_IDENTIFIER','auth','WuaYl','false','getTestOrchestrationBuildStartData','getProductMapForBuildStartCall','buildHashedId','BROWSERSTACK_CENTRAL_SCANNER_JWT','stringify','resolve','/stop','Error\x20while\x20waiting\x20for\x20events:\x20','processTraceZips','token','1053336dRfQPe','../../bin/playwright/reporter/pwUtils.js','job_id','cOobx','isUndefined','STOP','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','OBSERVABILITY','forEach','accessibilityOptions','../performance/performance-tester.js','setAccessibilityVariables','central_scanner','zJPGY','../test-observability/requestQueueHandler.js','xtHAM','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','BROWSERSTACK_TEST_OBSERVABILITY','MJZpT','../../bin/utils/constants.js','Xawiv','lcnc','eertu','BROWSERSTACK_RERUN','15sgZNzr','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER','\x20framework','../test-observability/sessionHandler.js','statusText','env','19773650qVYCNa','EbDHK','getAccessibilityValueFromYml','user_killed','finished_metadata','811647WEBcXd','path','buildStopSent','format','isRunning','ciuKW','setupPercy','api/v1/builds/','Percy\x20is\x20not\x20supported\x20for\x20','util','message','isBrowserstackInfra','getAccessKey','VmfMI','uploadPending','FXeSC'];a126_0x57c0=function(){return _0x2a1261;};return a126_0x57c0();}(function(_0x3ee0a7,_0x23c1ca){const _0x5526ea=a126_0x5c2b,_0x4d64b9=_0x3ee0a7();while(!![]){try{const _0x4baa8d=-parseInt(_0x5526ea(0x104))/0x1*(-parseInt(_0x5526ea(0x123))/0x2)+parseInt(_0x5526ea(0x11f))/0x3+parseInt(_0x5526ea(0x10d))/0x4+parseInt(_0x5526ea(0xd6))/0x5*(parseInt(_0x5526ea(0xbe))/0x6)+parseInt(_0x5526ea(0xa3))/0x7+parseInt(_0x5526ea(0x9f))/0x8*(parseInt(_0x5526ea(0xe1))/0x9)+parseInt(_0x5526ea(0xdc))/0xa*(-parseInt(_0x5526ea(0x10f))/0xb);if(_0x4baa8d===_0x23c1ca)break;else _0x4d64b9['push'](_0x4d64b9['shift']());}catch(_0x5b84e7){_0x4d64b9['push'](_0x4d64b9['shift']());}}}(a126_0x57c0,0x9040d));const bsSetupHelper=require('../helper'),path=require(a126_0xb83670(0xe2)),util=require(a126_0xb83670(0xea)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a126_0xb83670(0xaa)),testhubUtils=require(a126_0xb83670(0xf7)),testHubConstants=require('./constants.js'),constants=require(a126_0xb83670(0xd1)),RequestQueueHandler=require(a126_0xb83670(0xcc)),logger=require(a126_0xb83670(0xac))['winstonLogger'],SessionHandler=require(a126_0xb83670(0xd9)),PerformanceTester=require(a126_0xb83670(0xc8)),{TESTHUB_EVENTS:PerformanceEvents}=require(a126_0xb83670(0x114)),TestDetails=require('../../bin/playwright/reporter/test-details.js'),{uploadTraceZip}=require(a126_0xb83670(0xbf)),{isTurboScaleSession}=require('../helper.js'),BrowserstackCLI=require('../../bin/v2/browserstackCLI'),OngoingEvents=new Set();let processedTraceZips=![];const addEvent=_0xf4fc34=>{const _0x3a37ba=a126_0xb83670;OngoingEvents[_0x3a37ba(0xa2)](_0xf4fc34);},awaitAllEvents=async()=>{const _0x5bbef9=a126_0xb83670;return Promise[_0x5bbef9(0x11e)](OngoingEvents);};class TestHubHandler{static ['buildStopSent']=![];static async['launchBuild'](_0x2e5141,_0x57959e){const _0x56f57c=a126_0xb83670,_0x362018={'WuaYl':function(_0x4e8697,_0x18359b){return _0x4e8697||_0x18359b;},'rTCmc':function(_0x993335,_0x46ccd1){return _0x993335===_0x46ccd1;},'cOobx':function(_0xd5944b){return _0xd5944b();},'xQvnG':_0x56f57c(0x9b),'ciuKW':'false','oHGzP':_0x56f57c(0xfd),'UsmvX':function(_0x15033b,_0x13b6f5,_0x385b19,_0x579fa7,_0x107d33){return _0x15033b(_0x13b6f5,_0x385b19,_0x579fa7,_0x107d33);},'ftnFG':'POST','xtHAM':function(_0x18398d,_0x46febe){return _0x18398d===_0x46febe;},'sZIbY':_0x56f57c(0x10e),'VmfMI':_0x56f57c(0x11c)};await PerformanceTester[_0x56f57c(0xae)](PerformanceEvents['START'],async()=>{const _0x16bf22=_0x56f57c,_0x365736=Object[_0x16bf22(0xf1)]({},_0x57959e[_0x16bf22(0xf9)],{'root_dir_path':'','framework':_0x57959e['framework']}),_0x1e6acb=bsSetupHelper[_0x16bf22(0x124)](_0x365736),_0x434450=bsSetupHelper[_0x16bf22(0xed)](_0x365736),_0x35bea3=_0x362018[_0x16bf22(0xb2)](_0x1e6acb,'')+':'+_0x362018['WuaYl'](_0x434450,''),_0x2d08a9=testhubUtils[_0x16bf22(0x10a)](_0x365736);process[_0x16bf22(0xdb)][_0x16bf22(0x117)]=JSON[_0x16bf22(0xb8)](_0x2d08a9);if(_0x362018[_0x16bf22(0xf8)](_0x35bea3,':'))return _0x362018[_0x16bf22(0xc1)](isTestObservabilitySession)&&(logger[_0x16bf22(0x118)](_0x362018[_0x16bf22(0xa4)]),process[_0x16bf22(0xdb)][_0x16bf22(0x9a)]=_0x362018[_0x16bf22(0xe6)]),testhubUtils[_0x16bf22(0x107)](_0x365736)&&logger[_0x16bf22(0x118)](_0x362018['oHGzP']),[null,null];try{const _0x217e04=await this[_0x16bf22(0x108)](_0x365736,_0x2e5141),_0x1a6715=this[_0x16bf22(0xf2)](_0x1e6acb,_0x434450),_0x1b58d8=await _0x362018['UsmvX'](nodeRequest,_0x362018['ftnFG'],testHubConstants['TESTHUB_BUILD_API'],_0x217e04,_0x1a6715),_0x4b1c7a=this[_0x16bf22(0x93)](_0x365736,_0x1b58d8,_0x1a6715);await this['checkAndSetupPercy'](_0x57959e,_0x2e5141);if(_0x362018[_0x16bf22(0xcd)](testhubUtils[_0x16bf22(0xde)](_0x57959e[_0x16bf22(0xf9)]),null)){const _0x1c5c54=_0x4b1c7a[_0x362018['sZIbY']];_0x1c5c54&&_0x1c5c54['authToken']&&_0x1c5c54[_0x16bf22(0xb6)]&&(_0x57959e[_0x16bf22(0xf9)][_0x16bf22(0x10e)]=!![],process[_0x16bf22(0xdb)][_0x16bf22(0xce)]=_0x362018[_0x16bf22(0xee)]);}return _0x4b1c7a;}catch(_0x20fa0a){if(_0x362018[_0x16bf22(0xcd)](_0x20fa0a[_0x16bf22(0xa5)],![])){testhubUtils['logBuildError'](_0x20fa0a);return;}}})();}static async['processTraceZips'](){const _0x29a5e1=a126_0xb83670,_0x32b0ad={'CQleC':function(_0x2bf8ee,_0xf71a9d,_0x374bfa){return _0x2bf8ee(_0xf71a9d,_0x374bfa);},'ADCBM':function(_0x7bf321,_0x12569f){return _0x7bf321(_0x12569f);},'GbxIu':function(_0xaecdbe){return _0xaecdbe();},'GhAri':_0x29a5e1(0x106)};if(processedTraceZips)return;const _0x4f776f=TestDetails['getTraceFilePaths']();_0x4f776f[_0x29a5e1(0xc6)](({testUId:_0x58496c,filePath:_0x34071f})=>{var _0x530ded=_0x32b0ad['CQleC'](uploadTraceZip,_0x34071f,_0x58496c);_0x32b0ad['ADCBM'](addEvent,_0x530ded);});try{await _0x32b0ad[_0x29a5e1(0x10b)](awaitAllEvents),logger['debug'](_0x32b0ad[_0x29a5e1(0x9c)]),processedTraceZips=!![];}catch(_0x3e4a14){logger['error'](_0x29a5e1(0xbb)+util[_0x29a5e1(0xe4)](_0x3e4a14));}}static async['checkAndSetupPercy'](_0x3fce9f,_0x4d059b){const _0x18f584=a126_0xb83670;if(constants[_0x18f584(0x11a)][_0x18f584(0x9d)](_0x4d059b)){await _0x3fce9f[_0x18f584(0xe7)]();return;}_0x3fce9f[_0x18f584(0xf9)][_0x18f584(0xaf)]&&logger[_0x18f584(0x118)](_0x18f584(0xe9)+_0x4d059b+_0x18f584(0xd8));}static[a126_0xb83670(0xa8)](_0x4996f3){const _0x10d25f=a126_0xb83670,_0x5e0588={'SWOMI':function(_0x1349d8,_0x3a7251){return _0x1349d8(_0x3a7251);},'Luqrx':'true'};let _0x4dccb4;if(_0x4996f3[_0x10d25f(0xc7)]){const _0x1cde5f={};_0x1cde5f[_0x10d25f(0xa1)]=_0x4996f3[_0x10d25f(0xc7)],_0x4dccb4=_0x1cde5f;}else{const _0x586d57={};_0x586d57[_0x10d25f(0xa1)]={},_0x4dccb4=_0x586d57;}if((!bsSetupHelper['isBrowserstackInfra']()||_0x5e0588[_0x10d25f(0xa9)](isTurboScaleSession,_0x4996f3))&&testhubUtils['isAccessibilityEnabled'](_0x4996f3)){const _0x1d0c60={};_0x1d0c60[_0x10d25f(0xf4)]=_0x5e0588['Luqrx'],Object[_0x10d25f(0xf1)](_0x4dccb4['settings'],_0x1d0c60);}return _0x4dccb4;}static[a126_0xb83670(0xf2)](_0x5bb236,_0x5e3293){const _0x4fc13d=a126_0xb83670,_0x475808={'xOtNG':function(_0x32b56d,_0x19408e){return _0x32b56d(_0x19408e);}},_0x2da9ec={};return _0x2da9ec['username']=_0x5bb236,_0x2da9ec[_0x4fc13d(0x122)]=_0x5e3293,{'auth':_0x2da9ec,'headers':_0x475808[_0x4fc13d(0x105)](getDefaultHeaders,![])};}static async[a126_0xb83670(0x108)](_0x15f153,_0xb7ffa3){const _0x37cba6=a126_0xb83670,_0x499a18={'EbDHK':_0x37cba6(0x98),'ZKhVB':function(_0x436fac,_0x272ac5){return _0x436fac(_0x272ac5);}};logger[_0x37cba6(0x118)](_0x499a18[_0x37cba6(0xdd)]);const _0x27e9c0={'project_name':_0x15f153[_0x37cba6(0xfa)]||'','name':_0x15f153['buildName']||path[_0x37cba6(0x99)](path[_0x37cba6(0xb9)](process[_0x37cba6(0x97)]())),'build_identifier':_0x15f153['buildIdentifier'],'description':_0x15f153['buildDescription']||'','started_at':new Date()[_0x37cba6(0xa7)](),'tags':_0x499a18[_0x37cba6(0x119)](getCustomTags,_0x15f153),'host_info':bsSetupHelper[_0x37cba6(0x10c)](),'ci_info':bsSetupHelper[_0x37cba6(0x120)](),'build_run_identifier':process['env'][_0x37cba6(0xb0)],'failed_tests_rerun':process[_0x37cba6(0xdb)][_0x37cba6(0xd5)]||![],'linked_build_uuid':process[_0x37cba6(0xdb)][_0x37cba6(0x100)]||'','version_control':await bsSetupHelper[_0x37cba6(0x9e)](),'accessibility':this[_0x37cba6(0xa8)](_0x15f153),'framework_details':testhubUtils['getFrameworkDetails'](_0x15f153,_0xb7ffa3),'product_map':testhubUtils[_0x37cba6(0xb5)](_0x15f153),'browserstackAutomation':bsSetupHelper[_0x37cba6(0xec)](),'grouping_identifier':process[_0x37cba6(0xdb)][_0x37cba6(0xd7)],'test_orchestration':testhubUtils[_0x37cba6(0xb4)](_0x15f153)};if(bsSetupHelper[_0x37cba6(0x109)]()[_0x37cba6(0xca)]||bsSetupHelper[_0x37cba6(0x109)]()[_0x37cba6(0xd3)]){const _0x3c0660={};_0x3c0660[_0x37cba6(0xc0)]=process['env'][_0x37cba6(0x111)],_0x3c0660[_0x37cba6(0xbd)]=process[_0x37cba6(0xdb)][_0x37cba6(0xb7)],_0x27e9c0['central_scanner']=_0x3c0660;}return _0x27e9c0;}static['extractDataFromResponse'](_0x23c529,_0x37f30c,_0x3cef20){const _0x319439=a126_0xb83670,_0x506bc0={'xgsLO':function(_0x4e50ae){return _0x4e50ae();},'FXeSC':function(_0x1fe321,_0x164758){return _0x1fe321&&_0x164758;},'JEAuE':_0x319439(0x11c),'MJZpT':'false'},_0x3dcb68={};if(_0x506bc0[_0x319439(0xad)](isTestObservabilitySession)){const [_0x597351,_0x858e8,_0x3d497c]=testhubUtils[_0x319439(0x94)](_0x37f30c[_0x319439(0x11b)],_0x3cef20[_0x319439(0xb1)]);if(_0x506bc0[_0x319439(0xf0)](_0x597351,_0x858e8)){const _0x2bfd7a={};_0x2bfd7a['jwt']=_0x597351,_0x2bfd7a[_0x319439(0xb6)]=_0x858e8,_0x2bfd7a[_0x319439(0xf3)]=_0x3d497c,_0x3dcb68[testHubConstants[_0x319439(0xc5)]]=_0x2bfd7a,process[_0x319439(0xdb)][_0x319439(0xcf)]=_0x506bc0[_0x319439(0x121)];}else _0x3dcb68[testHubConstants['OBSERVABILITY']]={},process[_0x319439(0xdb)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x506bc0['MJZpT'];}else process['env'][_0x319439(0xcf)]=_0x506bc0[_0x319439(0xd0)];const [_0x50f12e,_0x47d5ec]=testhubUtils[_0x319439(0xc9)](_0x37f30c[_0x319439(0x11b)]);if(_0x506bc0['FXeSC'](_0x50f12e,_0x47d5ec)){const _0x2f7ae1={};_0x2f7ae1[_0x319439(0x96)]=_0x50f12e,_0x2f7ae1[_0x319439(0xb6)]=_0x47d5ec,_0x3dcb68[testHubConstants['ACCESSIBILITY']]=_0x2f7ae1,process[_0x319439(0xdb)][_0x319439(0xfc)]=_0x506bc0[_0x319439(0x121)];}else _0x3dcb68[testHubConstants[_0x319439(0xff)]]={},process[_0x319439(0xdb)][_0x319439(0xfc)]=_0x506bc0[_0x319439(0xd0)];return testhubUtils[_0x319439(0x127)](_0x37f30c[_0x319439(0x11b)]),logger['info'](_0x319439(0x95)+process[_0x319439(0xdb)]['BROWSERSTACK_TESTHUB_UUID']),_0x3dcb68;}static async['stop'](_0x2c066c){const _0x2f9f9b=a126_0xb83670,_0x4fe881={'GVLzj':function(_0x2e14c3,_0x285411){return _0x2e14c3===_0x285411;},'JsYOo':_0x2f9f9b(0xb3),'ISwDE':'null','lBszS':function(_0x3ec542,_0x34efab){return _0x3ec542===_0x34efab;},'wPecc':_0x2f9f9b(0xc4),'BCigY':_0x2f9f9b(0x11d),'zJPGY':_0x2f9f9b(0xa0),'WdcZm':_0x2f9f9b(0xe0),'VEqee':_0x2f9f9b(0xdf),'jnaVC':function(_0x4f2ba8){return _0x4f2ba8();},'eertu':function(_0xc3402c,_0x57642e,_0xeec8ea,_0xaf8597,_0x4044e7,_0x4af56d){return _0xc3402c(_0x57642e,_0xeec8ea,_0xaf8597,_0x4044e7,_0x4af56d);},'Xawiv':_0x2f9f9b(0x102),'fdmAi':_0x2f9f9b(0x103),'twJjD':_0x2f9f9b(0xa5)};!BrowserstackCLI['getInstance']()[_0x2f9f9b(0xe5)]()&&await this[_0x2f9f9b(0xbc)](),await PerformanceTester[_0x2f9f9b(0xae)](PerformanceEvents[_0x2f9f9b(0xc3)],async()=>{const _0x2f2ac6=_0x2f9f9b;if(_0x4fe881[_0x2f2ac6(0x101)](process[_0x2f2ac6(0xdb)][_0x2f2ac6(0x9a)],_0x4fe881['JsYOo'])||TestHubHandler['buildStopSent']||bsSetupHelper[_0x2f2ac6(0xc2)](process[_0x2f2ac6(0xdb)][testHubConstants[_0x2f2ac6(0x115)][_0x2f2ac6(0x116)]]))return;TestHubHandler[_0x2f2ac6(0xe3)]=!![],await RequestQueueHandler[_0x2f2ac6(0x113)]()[_0x2f2ac6(0xef)](),await SessionHandler['waitForBuildStatus']();if(_0x4fe881[_0x2f2ac6(0x101)](process['env'][testHubConstants['ENV_VAR'][_0x2f2ac6(0x116)]],_0x4fe881[_0x2f2ac6(0x112)])||_0x4fe881['lBszS'](process[_0x2f2ac6(0xdb)][testHubConstants[_0x2f2ac6(0x115)][_0x2f2ac6(0xfe)]],_0x4fe881['ISwDE'])){logger['debug'](_0x4fe881['wPecc']);const _0x41dc3d={};return _0x41dc3d[_0x2f2ac6(0x126)]=_0x4fe881['BCigY'],_0x41dc3d[_0x2f2ac6(0xeb)]=_0x4fe881[_0x2f2ac6(0xcb)],_0x41dc3d;}const _0x13aaae={'finished_at':new Date()[_0x2f2ac6(0xa7)](),'finished_metadata':[]};!!_0x2c066c&&_0x13aaae[_0x4fe881[_0x2f2ac6(0xa6)]][_0x2f2ac6(0x110)]({'reason':_0x4fe881[_0x2f2ac6(0xf6)],'signal':_0x2c066c,'failure_data':''});const _0x3111e3={'headers':_0x4fe881['jnaVC'](getDefaultHeaders)};try{const _0x4bc7da=await _0x4fe881[_0x2f2ac6(0xd4)](nodeRequest,_0x4fe881[_0x2f2ac6(0xd2)],_0x2f2ac6(0xe8)+process[_0x2f2ac6(0xdb)][testHubConstants['ENV_VAR'][_0x2f2ac6(0xfe)]]+_0x2f2ac6(0xba),_0x13aaae,_0x3111e3,![]);if(_0x4bc7da[_0x2f2ac6(0x11b)]&&_0x4bc7da[_0x2f2ac6(0x11b)][_0x2f2ac6(0x11d)]){const _0x5880d8={};_0x5880d8['message']=_0x4bc7da[_0x2f2ac6(0x11b)]['error'];throw _0x5880d8;}else{logger['debug'](_0x4fe881[_0x2f2ac6(0xfb)]);const _0x6c8443={};return _0x6c8443[_0x2f2ac6(0x126)]=_0x4fe881[_0x2f2ac6(0xf5)],_0x6c8443[_0x2f2ac6(0xeb)]='',_0x6c8443;}}catch(_0x5348b8){_0x5348b8['response']?logger[_0x2f2ac6(0x118)](_0x2f2ac6(0xab)+_0x5348b8[_0x2f2ac6(0x125)][_0x2f2ac6(0x126)]+'\x20'+_0x5348b8[_0x2f2ac6(0x125)][_0x2f2ac6(0xda)]+'\x20'+JSON[_0x2f2ac6(0xb8)](_0x5348b8[_0x2f2ac6(0x125)]['data'])):logger[_0x2f2ac6(0x118)]('EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20'+(_0x5348b8[_0x2f2ac6(0xeb)]||_0x5348b8));const _0x3f117d={};return _0x3f117d[_0x2f2ac6(0x126)]=_0x4fe881['BCigY'],_0x3f117d['message']=_0x5348b8[_0x2f2ac6(0xeb)]||_0x5348b8['response']?_0x5348b8['response']['status']+':'+_0x5348b8[_0x2f2ac6(0x125)]['statusText']:_0x5348b8,_0x3f117d;}})();}}module['exports']=TestHubHandler;
|
|
1
|
+
const a126_0x3df9e7=a126_0x4bea;(function(_0x5cf4f7,_0x3791f0){const _0x3b2aa0=a126_0x4bea,_0x1f6a10=_0x5cf4f7();while(!![]){try{const _0x28b44a=-parseInt(_0x3b2aa0(0x19c))/0x1*(-parseInt(_0x3b2aa0(0x158))/0x2)+parseInt(_0x3b2aa0(0x150))/0x3*(parseInt(_0x3b2aa0(0x1a9))/0x4)+parseInt(_0x3b2aa0(0x14a))/0x5*(-parseInt(_0x3b2aa0(0x18d))/0x6)+-parseInt(_0x3b2aa0(0x169))/0x7*(-parseInt(_0x3b2aa0(0x181))/0x8)+parseInt(_0x3b2aa0(0x1b3))/0x9+parseInt(_0x3b2aa0(0x19e))/0xa*(-parseInt(_0x3b2aa0(0x157))/0xb)+-parseInt(_0x3b2aa0(0x174))/0xc*(-parseInt(_0x3b2aa0(0x152))/0xd);if(_0x28b44a===_0x3791f0)break;else _0x1f6a10['push'](_0x1f6a10['shift']());}catch(_0x1495dc){_0x1f6a10['push'](_0x1f6a10['shift']());}}}(a126_0x48e8,0xc2eb5));const bsSetupHelper=require(a126_0x3df9e7(0x13b)),path=require(a126_0x3df9e7(0x126)),util=require(a126_0x3df9e7(0x184)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require('../test-observability/utils'),testhubUtils=require(a126_0x3df9e7(0x12b)),testHubConstants=require(a126_0x3df9e7(0x18e)),constants=require('../../bin/utils/constants.js'),RequestQueueHandler=require(a126_0x3df9e7(0x13d)),logger=require('../logger')[a126_0x3df9e7(0x15b)],SessionHandler=require(a126_0x3df9e7(0x18b)),PerformanceTester=require(a126_0x3df9e7(0x166)),{TESTHUB_EVENTS:PerformanceEvents}=require('../performance/constants'),TestDetails=require(a126_0x3df9e7(0x143)),{uploadTraceZip}=require(a126_0x3df9e7(0x172)),{isTurboScaleSession}=require(a126_0x3df9e7(0x13a)),BrowserstackCLI=require(a126_0x3df9e7(0x1a5)),OngoingEvents=new Set();let processedTraceZips=![];const addEvent=_0x29fc8c=>{const _0x3ce859=a126_0x3df9e7;OngoingEvents[_0x3ce859(0x17e)](_0x29fc8c);},awaitAllEvents=async()=>{const _0x2fcc9a=a126_0x3df9e7;return Promise[_0x2fcc9a(0x1bb)](OngoingEvents);};class TestHubHandler{static ['buildStopSent']=![];static async[a126_0x3df9e7(0x1b7)](_0xe8f383,_0x23a143){const _0x25cc12=a126_0x3df9e7,_0x2dea16={'JKifC':function(_0x12e81b,_0x13aa81){return _0x12e81b||_0x13aa81;},'lGIuC':function(_0x47420d,_0x2ddbf0){return _0x47420d===_0x2ddbf0;},'UkQou':function(_0x5deec8){return _0x5deec8();},'qZISw':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','upKfe':_0x25cc12(0x140),'zJJJt':'Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','ugcaL':function(_0xe2903,_0x15d745,_0xa3a989,_0x46e6e0,_0x4ab938){return _0xe2903(_0x15d745,_0xa3a989,_0x46e6e0,_0x4ab938);},'gGKIP':_0x25cc12(0x1b6),'kRGan':function(_0x15b604,_0x373831){return _0x15b604===_0x373831;},'gyMgp':'accessibility','OVuSR':_0x25cc12(0x19f)};await PerformanceTester[_0x25cc12(0x1a7)](PerformanceEvents[_0x25cc12(0x17d)],async()=>{const _0x30ced5=_0x25cc12,_0x413cae=Object[_0x30ced5(0x1b8)]({},_0x23a143[_0x30ced5(0x142)],{'root_dir_path':'','framework':_0x23a143[_0x30ced5(0x139)]}),_0x1124b0=bsSetupHelper[_0x30ced5(0x147)](_0x413cae),_0x2a9a5c=bsSetupHelper[_0x30ced5(0x1ab)](_0x413cae),_0x366cbf=_0x2dea16[_0x30ced5(0x1b9)](_0x1124b0,'')+':'+_0x2dea16['JKifC'](_0x2a9a5c,''),_0x20cf86=testhubUtils[_0x30ced5(0x191)](_0x413cae);process[_0x30ced5(0x138)]['BROWSERSTACK_PRODUCT_MAP']=JSON[_0x30ced5(0x154)](_0x20cf86);if(_0x2dea16[_0x30ced5(0x146)](_0x366cbf,':'))return _0x2dea16[_0x30ced5(0x132)](isTestObservabilitySession)&&(logger[_0x30ced5(0x13f)](_0x2dea16['qZISw']),process['env'][_0x30ced5(0x198)]=_0x2dea16[_0x30ced5(0x167)]),testhubUtils[_0x30ced5(0x129)](_0x413cae)&&logger[_0x30ced5(0x13f)](_0x2dea16['zJJJt']),[null,null];try{const _0x11a9cf=await this[_0x30ced5(0x168)](_0x413cae,_0xe8f383),_0x33df8f=this[_0x30ced5(0x196)](_0x1124b0,_0x2a9a5c),_0x52f9c5=await _0x2dea16[_0x30ced5(0x197)](nodeRequest,_0x2dea16['gGKIP'],testHubConstants[_0x30ced5(0x12c)],_0x11a9cf,_0x33df8f),_0x3042f0=this['extractDataFromResponse'](_0x413cae,_0x52f9c5,_0x33df8f);await this[_0x30ced5(0x1b1)](_0x23a143,_0xe8f383);if(_0x2dea16[_0x30ced5(0x17a)](testhubUtils['getAccessibilityValueFromYml'](_0x23a143[_0x30ced5(0x142)]),null)){const _0x4e405d=_0x3042f0[_0x2dea16[_0x30ced5(0x182)]];_0x4e405d&&_0x4e405d[_0x30ced5(0x133)]&&_0x4e405d[_0x30ced5(0x176)]&&(_0x23a143[_0x30ced5(0x142)]['accessibility']=!![],process[_0x30ced5(0x138)][_0x30ced5(0x16b)]=_0x2dea16[_0x30ced5(0x16a)]);}return _0x3042f0;}catch(_0x310916){if(_0x2dea16[_0x30ced5(0x146)](_0x310916[_0x30ced5(0x17c)],![])){testhubUtils['logBuildError'](_0x310916);return;}}})();}static async[a126_0x3df9e7(0x193)](){const _0x2d20c6=a126_0x3df9e7,_0x45cb53={'SzmMO':function(_0x1cfc1a,_0x5ea72a,_0x1d0c57){return _0x1cfc1a(_0x5ea72a,_0x1d0c57);},'YMNpa':function(_0xb309a2,_0x2ce432){return _0xb309a2(_0x2ce432);},'ShRQU':function(_0x2a1241){return _0x2a1241();},'hViwJ':'All\x20trace\x20zip\x20send\x20events\x20complete'};if(processedTraceZips)return;const _0x4ab19e=TestDetails[_0x2d20c6(0x180)]();_0x4ab19e[_0x2d20c6(0x190)](({testUId:_0x1f2d37,filePath:_0x4f9149})=>{const _0x198967=_0x2d20c6;var _0x1e8476=_0x45cb53[_0x198967(0x1ba)](uploadTraceZip,_0x4f9149,_0x1f2d37);_0x45cb53[_0x198967(0x19b)](addEvent,_0x1e8476);});try{await _0x45cb53[_0x2d20c6(0x125)](awaitAllEvents),logger[_0x2d20c6(0x13f)](_0x45cb53[_0x2d20c6(0x131)]),processedTraceZips=!![];}catch(_0x4ca226){logger['error'](_0x2d20c6(0x17b)+util[_0x2d20c6(0x179)](_0x4ca226));}}static async[a126_0x3df9e7(0x1b1)](_0x431416,_0x23e47e){const _0x152127=a126_0x3df9e7;if(constants[_0x152127(0x155)][_0x152127(0x124)](_0x23e47e)){await _0x431416[_0x152127(0x16c)]();return;}_0x431416[_0x152127(0x142)]['percy']&&logger[_0x152127(0x13f)](_0x152127(0x19a)+_0x23e47e+_0x152127(0x1ad));}static[a126_0x3df9e7(0x1a0)](_0x4ced54){const _0x4f3d2d=a126_0x3df9e7,_0x394ade={'vAVzx':function(_0x73ce3c,_0x59237f){return _0x73ce3c(_0x59237f);},'EFKTN':'true'};let _0x166410;if(_0x4ced54[_0x4f3d2d(0x1af)]){const _0x79eb7a={};_0x79eb7a[_0x4f3d2d(0x16d)]=_0x4ced54[_0x4f3d2d(0x1af)],_0x166410=_0x79eb7a;}else{const _0xfd081e={};_0xfd081e['settings']={},_0x166410=_0xfd081e;}if((!bsSetupHelper[_0x4f3d2d(0x18c)]()||_0x394ade[_0x4f3d2d(0x163)](isTurboScaleSession,_0x4ced54))&&testhubUtils[_0x4f3d2d(0x129)](_0x4ced54)){const _0x2f7c6e={};_0x2f7c6e[_0x4f3d2d(0x16f)]=_0x394ade[_0x4f3d2d(0x12d)],Object[_0x4f3d2d(0x1b8)](_0x166410['settings'],_0x2f7c6e);}return _0x166410;}static[a126_0x3df9e7(0x196)](_0x17ec63,_0x4851ee){const _0x45cb45=a126_0x3df9e7,_0x4fd5ea={'aaKuS':function(_0x5302af,_0x1efbeb){return _0x5302af(_0x1efbeb);}},_0x38e73c={};return _0x38e73c[_0x45cb45(0x144)]=_0x17ec63,_0x38e73c[_0x45cb45(0x162)]=_0x4851ee,{'auth':_0x38e73c,'headers':_0x4fd5ea[_0x45cb45(0x127)](getDefaultHeaders,![])};}static async[a126_0x3df9e7(0x168)](_0x2f1aa4,_0x3b63e3){const _0x3b34bd=a126_0x3df9e7,_0x2e324b={'jKnMb':'Generating\x20build\x20upstream\x20data\x20for\x20TestHub','YeTvr':function(_0x1f11f5,_0x1c8d22){return _0x1f11f5(_0x1c8d22);}};logger[_0x3b34bd(0x13f)](_0x2e324b[_0x3b34bd(0x199)]);const _0x2cfff0={'project_name':_0x2f1aa4[_0x3b34bd(0x128)]||'','name':_0x2f1aa4[_0x3b34bd(0x1ae)]||path['basename'](path['resolve'](process[_0x3b34bd(0x149)]())),'build_identifier':_0x2f1aa4[_0x3b34bd(0x1a2)],'description':_0x2f1aa4['buildDescription']||'','started_at':new Date()[_0x3b34bd(0x14d)](),'tags':_0x2e324b['YeTvr'](getCustomTags,_0x2f1aa4),'host_info':bsSetupHelper[_0x3b34bd(0x136)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0x3b34bd(0x138)][_0x3b34bd(0x194)],'failed_tests_rerun':process[_0x3b34bd(0x138)][_0x3b34bd(0x15a)]||![],'linked_build_uuid':process[_0x3b34bd(0x138)][_0x3b34bd(0x18a)]||'','version_control':await bsSetupHelper[_0x3b34bd(0x1a3)](),'accessibility':this[_0x3b34bd(0x1a0)](_0x2f1aa4),'framework_details':testhubUtils[_0x3b34bd(0x187)](_0x2f1aa4,_0x3b63e3),'product_map':testhubUtils['getProductMapForBuildStartCall'](_0x2f1aa4),'browserstackAutomation':bsSetupHelper[_0x3b34bd(0x18c)](),'grouping_identifier':process[_0x3b34bd(0x138)]['BROWSERSTACK_BUILD_GROUPING_IDENTIFIER'],'test_orchestration':testhubUtils[_0x3b34bd(0x188)](_0x2f1aa4)};if(bsSetupHelper[_0x3b34bd(0x185)]()[_0x3b34bd(0x14f)]||bsSetupHelper['getCentralUser']()[_0x3b34bd(0x1a8)]){const _0x30b345={};_0x30b345[_0x3b34bd(0x153)]=process[_0x3b34bd(0x138)][_0x3b34bd(0x13e)],_0x30b345[_0x3b34bd(0x1b4)]=process[_0x3b34bd(0x138)][_0x3b34bd(0x14b)],_0x2cfff0[_0x3b34bd(0x14f)]=_0x30b345;}return _0x2cfff0;}static['extractDataFromResponse'](_0x37699b,_0x55539c,_0x5bee0a){const _0x1a119f=a126_0x3df9e7,_0x309461={'iVUIY':function(_0x4f5543){return _0x4f5543();},'GjMVu':function(_0x399dbb,_0x2ae5ed){return _0x399dbb&&_0x2ae5ed;},'ojHtB':_0x1a119f(0x19f),'gFKSF':'false','lNXnl':function(_0x59c88a,_0x330e1e){return _0x59c88a&&_0x330e1e;}},_0x5ffb0e={};if(_0x309461['iVUIY'](isTestObservabilitySession)){const [_0xf1a28d,_0x51d98c,_0x33948f]=testhubUtils[_0x1a119f(0x137)](_0x55539c['data'],_0x5bee0a[_0x1a119f(0x178)]);if(_0x309461['GjMVu'](_0xf1a28d,_0x51d98c)){const _0x34a645={};_0x34a645['jwt']=_0xf1a28d,_0x34a645[_0x1a119f(0x176)]=_0x51d98c,_0x34a645[_0x1a119f(0x170)]=_0x33948f,_0x5ffb0e[testHubConstants[_0x1a119f(0x12a)]]=_0x34a645,process['env'][_0x1a119f(0x1b0)]=_0x309461[_0x1a119f(0x16e)];}else _0x5ffb0e[testHubConstants['OBSERVABILITY']]={},process[_0x1a119f(0x138)][_0x1a119f(0x1b0)]=_0x309461[_0x1a119f(0x159)];}else process[_0x1a119f(0x138)][_0x1a119f(0x1b0)]=_0x309461[_0x1a119f(0x159)];const [_0x1d0cc3,_0x19e09e]=testhubUtils['setAccessibilityVariables'](_0x55539c[_0x1a119f(0x156)]);if(_0x309461[_0x1a119f(0x175)](_0x1d0cc3,_0x19e09e)){const _0x5f322c={};_0x5f322c[_0x1a119f(0x133)]=_0x1d0cc3,_0x5f322c['buildHashedId']=_0x19e09e,_0x5ffb0e[testHubConstants['ACCESSIBILITY']]=_0x5f322c,process[_0x1a119f(0x138)][_0x1a119f(0x12e)]=_0x309461['ojHtB'];}else _0x5ffb0e[testHubConstants[_0x1a119f(0x1aa)]]={},process[_0x1a119f(0x138)]['BROWSERSTACK_ACCESSIBILITY']=_0x309461['gFKSF'];return testhubUtils[_0x1a119f(0x195)](_0x55539c[_0x1a119f(0x156)]),logger['info']('Testhub\x20started\x20with\x20id:\x20'+process['env'][_0x1a119f(0x13c)]),_0x5ffb0e;}static async[a126_0x3df9e7(0x1a4)](_0x4758ea){const _0x46e2cd=a126_0x3df9e7,_0x3b6734={'GqIEW':function(_0x49b05b,_0x30ab04){return _0x49b05b===_0x30ab04;},'CsPrL':_0x46e2cd(0x140),'LTNbg':function(_0x55b162,_0x5a46e5){return _0x55b162===_0x5a46e5;},'pOnpU':_0x46e2cd(0x173),'tfeYS':function(_0x44d087,_0x484065){return _0x44d087===_0x484065;},'YXFoR':_0x46e2cd(0x1ac),'xQpew':'error','TReid':_0x46e2cd(0x189),'JIIhn':'finished_metadata','YFmFJ':_0x46e2cd(0x1b5),'imnbP':function(_0x5ab9c1){return _0x5ab9c1();},'GhEnK':function(_0x46b35d,_0x2b6be8,_0x523319,_0x43af2b,_0x5c43d1,_0x5a9bb0){return _0x46b35d(_0x2b6be8,_0x523319,_0x43af2b,_0x5c43d1,_0x5a9bb0);},'rPHSU':_0x46e2cd(0x151),'HEBTz':_0x46e2cd(0x177),'nVThW':_0x46e2cd(0x17c)};await PerformanceTester[_0x46e2cd(0x1a7)](PerformanceEvents[_0x46e2cd(0x19d)],async()=>{const _0x55956e=_0x46e2cd;if(_0x3b6734[_0x55956e(0x1b2)](process[_0x55956e(0x138)][_0x55956e(0x198)],_0x3b6734[_0x55956e(0x148)])||TestHubHandler[_0x55956e(0x134)]||bsSetupHelper[_0x55956e(0x1a6)](process['env'][testHubConstants[_0x55956e(0x161)][_0x55956e(0x171)]]))return;TestHubHandler[_0x55956e(0x134)]=!![];if(BrowserstackCLI['getInstance']()[_0x55956e(0x17f)]())return;await this['processTraceZips'](),await RequestQueueHandler['getInstance']()['uploadPending'](),await SessionHandler[_0x55956e(0x145)]();if(_0x3b6734['LTNbg'](process['env'][testHubConstants[_0x55956e(0x161)]['BROWSERSTACK_TESTHUB_JWT']],_0x3b6734[_0x55956e(0x165)])||_0x3b6734['tfeYS'](process['env'][testHubConstants[_0x55956e(0x161)][_0x55956e(0x13c)]],_0x3b6734[_0x55956e(0x165)])){logger['debug'](_0x3b6734[_0x55956e(0x15e)]);const _0x5e0c79={};return _0x5e0c79[_0x55956e(0x135)]=_0x3b6734[_0x55956e(0x183)],_0x5e0c79[_0x55956e(0x141)]=_0x3b6734[_0x55956e(0x164)],_0x5e0c79;}const _0x3d438c={'finished_at':new Date()[_0x55956e(0x14d)](),'finished_metadata':[]};!!_0x4758ea&&_0x3d438c[_0x3b6734['JIIhn']][_0x55956e(0x123)]({'reason':_0x3b6734[_0x55956e(0x192)],'signal':_0x4758ea,'failure_data':''});const _0x3df61e={'headers':_0x3b6734[_0x55956e(0x1a1)](getDefaultHeaders)};try{const _0x561df0=await _0x3b6734[_0x55956e(0x15d)](nodeRequest,_0x3b6734[_0x55956e(0x15c)],_0x55956e(0x130)+process['env'][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']]+_0x55956e(0x160),_0x3d438c,_0x3df61e,![]);if(_0x561df0['data']&&_0x561df0[_0x55956e(0x156)]['error']){const _0x40a483={};_0x40a483['message']=_0x561df0['data'][_0x55956e(0x15f)];throw _0x40a483;}else{logger[_0x55956e(0x13f)](_0x3b6734[_0x55956e(0x18f)]);const _0x14dee2={};return _0x14dee2[_0x55956e(0x135)]=_0x3b6734[_0x55956e(0x14c)],_0x14dee2[_0x55956e(0x141)]='',_0x14dee2;}}catch(_0x587ba4){_0x587ba4[_0x55956e(0x186)]?logger['debug']('EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20'+_0x587ba4['response'][_0x55956e(0x135)]+'\x20'+_0x587ba4['response'][_0x55956e(0x14e)]+'\x20'+JSON['stringify'](_0x587ba4['response'][_0x55956e(0x156)])):logger[_0x55956e(0x13f)](_0x55956e(0x12f)+(_0x587ba4[_0x55956e(0x141)]||_0x587ba4));const _0x48e4f7={};return _0x48e4f7['status']=_0x3b6734[_0x55956e(0x183)],_0x48e4f7[_0x55956e(0x141)]=_0x587ba4[_0x55956e(0x141)]||_0x587ba4[_0x55956e(0x186)]?_0x587ba4[_0x55956e(0x186)]['status']+':'+_0x587ba4[_0x55956e(0x186)][_0x55956e(0x14e)]:_0x587ba4,_0x48e4f7;}})();}}function a126_0x4bea(_0x487a76,_0x14978e){const _0x48e8bc=a126_0x48e8();return a126_0x4bea=function(_0x4beaae,_0x2eec06){_0x4beaae=_0x4beaae-0x123;let _0x4c5ee9=_0x48e8bc[_0x4beaae];return _0x4c5ee9;},a126_0x4bea(_0x487a76,_0x14978e);}module['exports']=TestHubHandler;function a126_0x48e8(){const _0x15643b=['13mSiwEw','job_id','stringify','PERCY_SUPPORTED_FRAMEWORKS','data','79838xfpSuD','9166MrgSZQ','gFKSF','BROWSERSTACK_RERUN','winstonLogger','rPHSU','GhEnK','YXFoR','error','/stop','ENV_VAR','password','vAVzx','TReid','pOnpU','../performance/performance-tester.js','upKfe','generateBuildUpstreamData','28049QjvMPV','OVuSR','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','setupPercy','settings','ojHtB','includeEncodedExtension','allowScreenshot','BROWSERSTACK_TESTHUB_JWT','../../bin/playwright/reporter/pwUtils.js','null','8861136PCaOHg','lNXnl','buildHashedId','stopBuildUpstream\x20event\x20successful!','auth','format','kRGan','Error\x20while\x20waiting\x20for\x20events:\x20','success','START','add','isRunning','getTraceFilePaths','40GMZDvv','gyMgp','xQpew','util','getCentralUser','response','getFrameworkDetails','getTestOrchestrationBuildStartData','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','BROWSERSTACK_LINKED_BUILD_UUID','../test-observability/sessionHandler.js','isBrowserstackInfra','6aBBRdE','./constants.js','HEBTz','forEach','getProductMap','YFmFJ','processTraceZips','BROWSERSTACK_BUILD_RUN_IDENTIFIER','setTestHubCommonMetaInfo','getConfig','ugcaL','BS_TESTOPS_BUILD_COMPLETED','jKnMb','Percy\x20is\x20not\x20supported\x20for\x20','YMNpa','61FplXQf','STOP','1630vMxNLq','true','getAccessibilityOptions','imnbP','buildIdentifier','getGitMetaData','stop','../../bin/v2/browserstackCLI','isUndefined','measureWrapper','lcnc','1457156kmAtPj','ACCESSIBILITY','getAccessKey','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','\x20framework','buildName','accessibilityOptions','BROWSERSTACK_TEST_OBSERVABILITY','checkAndSetupPercy','GqIEW','3556368AQDSzi','token','user_killed','POST','launchBuild','assign','JKifC','SzmMO','allSettled','push','includes','ShRQU','path','aaKuS','projectName','isAccessibilityEnabled','OBSERVABILITY','./utils.js','TESTHUB_BUILD_API','EFKTN','BROWSERSTACK_ACCESSIBILITY','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','api/v1/builds/','hViwJ','UkQou','authToken','buildStopSent','status','getHostInfo','setTestObservabilityVariables','env','framework','../helper.js','../helper','BROWSERSTACK_TESTHUB_UUID','../test-observability/requestQueueHandler.js','BROWSERSTACK_CENTRAL_SCANNER_JOBID','debug','false','message','config','../../bin/playwright/reporter/test-details.js','username','waitForBuildStatus','lGIuC','getUserName','CsPrL','cwd','901565gExFCS','BROWSERSTACK_CENTRAL_SCANNER_JWT','nVThW','toISOString','statusText','central_scanner','6gGpNlw','PUT'];a126_0x48e8=function(){return _0x15643b;};return a126_0x48e8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a127_0x1acf(_0x5d57d1,_0x59cb12){const _0x1d674d=a127_0x1d67();return a127_0x1acf=function(_0x1acfc9,_0x47f756){_0x1acfc9=_0x1acfc9-0x180;let _0x17c6e7=_0x1d674d[_0x1acfc9];return _0x17c6e7;},a127_0x1acf(_0x5d57d1,_0x59cb12);}const a127_0x54b26b=a127_0x1acf;(function(_0xb5233,_0x3604b2){const _0x1ec879=a127_0x1acf,_0x36e5d1=_0xb5233();while(!![]){try{const _0x77856f=-parseInt(_0x1ec879(0x1d8))/0x1*(-parseInt(_0x1ec879(0x1b8))/0x2)+parseInt(_0x1ec879(0x1d9))/0x3*(-parseInt(_0x1ec879(0x21b))/0x4)+-parseInt(_0x1ec879(0x1ae))/0x5*(parseInt(_0x1ec879(0x202))/0x6)+-parseInt(_0x1ec879(0x18d))/0x7*(-parseInt(_0x1ec879(0x190))/0x8)+parseInt(_0x1ec879(0x204))/0x9+-parseInt(_0x1ec879(0x1e5))/0xa*(-parseInt(_0x1ec879(0x1f3))/0xb)+parseInt(_0x1ec879(0x1b5))/0xc*(-parseInt(_0x1ec879(0x205))/0xd);if(_0x77856f===_0x3604b2)break;else _0x36e5d1['push'](_0x36e5d1['shift']());}catch(_0xe2a776){_0x36e5d1['push'](_0x36e5d1['shift']());}}}(a127_0x1d67,0x2d80f));function a127_0x1d67(){const _0x4ef493=['scripts','handleErrorForObservability','assign','8fVgDrF','name','BROWSERSTACK_PERCY','password','getGlobal','commandsToWrap','accessibility','gorXc','aJoLO','winstonLogger','bstackA11yShouldScan','CODECEPT','toUpperCase','percy','uihso','qcjGR','getProductMap','Zrmaj','JvTJk','ZTqPT','BROWSERSTACK_TESTHUB_UUID:\x20','keys','join','yURJo','fbyQQ','cJoEI','includes','bMLgK','length','BS_TESTOPS_BUILD_COMPLETED','platforms','ercBG','1211gyEfUM','stringify','TestRunStarted','3832TOnTjo','BROWSERSTACK_TESTHUB_JWT','SfxFG','debug','setCurrentTestData','CBTSessionCreated','goog:chromeOptions','capabilities','uuid','env','jbrtu','username','CXmlo','evPQU','GVFYI','false','4|5|3|1|2|0','build_hashed_id','shouldProcessEventForTesthub','isTrue','OMkkS','ijxjt','../logger','../ats/helper','MgBrv','isAccessibilityEnabled','LogCreated','./constants.js','setTestData','allow_screenshots','5mRGxnh','ACCESS_DENIED','../test-observability/constants.js','OQprY','logBuildError','BROWSERSTACK_TEST_ACCESSIBILITY_YML','split','12winlVA','toString','success','358476tMdncm','QLyQn','error','../test-orchestration/orchestrationUtils.js','getCentralUser','isTurboScaleSession','WRVgI','WJZIP','OBSERVABILITY','observability','JEST','BS_TESTOPS_BUILD_HASHED_ID','scannerVersion','AyilZ','iyrKr','uXulQ','ERROR','shouldScanTestForAccessibility','BROWSERSTACK_ACCESSIBILITY','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','getAccessibilityPlatformValidation','YRhrH','info','[OBSERVABILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','VYiDX','VRvWK','jwt','njYDP','app','HuWmr','../helper.js','1QHuJML','191073PbBMKP','toJson','handleErrorForAccessibility','BROWSERSTACK_TESTHUB_UUID','CUCUMBER','config','parseFromJson','options','getTestData','ogdlJ','isRunning','HookRunFinished','10XcMxXe','tECIb','../test-observability/utils','FkYQK','hClNB','isBrowserstackInfra','etJPI','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','parse','PLAYWRIGHT','sUdjE','bpWNQ','eBqmu','BlfHU','861443ufRNvK','null','RwumB','isAccessibilityPlatform','getProductMapForBuildStartCall','getAccessibilityValueFromYml','GcYJA','appendTesthubParams','IjmDU','pRLXh','isUndefined','rNNdL','tags','HookRunStarted','COXzZ','1018182boSClt','rxcjw','2672730OfXtVG','2001038bNECbI','javascript','command','commands','qgSYG','INVALID_CREDENTIALS','gWuyS','test_run','isPercyBuild','eVMKX','BS_TESTOPS_ALLOW_SCREENSHOTS','getTestOrchestrationBuildStartData','setPercyFlag','koJIO','true','XbHGh','IqZUh','getFrameworkDetails','BS_TESTOPS_JWT'];a127_0x1d67=function(){return _0x4ef493;};return a127_0x1d67();}const bsSetupHelper=require('../helper'),{isTestObservabilitySession,getFrameworkVersion}=require(a127_0x54b26b(0x1e7)),accessibilityHelper=require('../accessibility-automation/helper'),logger=require(a127_0x54b26b(0x1a6))[a127_0x54b26b(0x224)],{nestedKeyValue}=require(a127_0x54b26b(0x1d7)),scripts=require('../accessibility-automation/scripts.js'),globals=require('../globals.js'),testHubConstants=require(a127_0x54b26b(0x1ab)),PWTestDetails=require('../../bin/playwright/reporter/test-details.js'),JestTestDetails=require('../../bin/jest/test-observability/test-details.js'),{FRAMEWORKS}=require(a127_0x54b26b(0x1b0)),{isTurboScaleSession}=require(a127_0x54b26b(0x1a7)),OrchestrationUtils=require(a127_0x54b26b(0x1bb));let testData={};exports[a127_0x54b26b(0x22b)]=_0x47ead5=>{const _0x151b0c=a127_0x54b26b,_0x78f6a2={'jbrtu':function(_0x1a277a){return _0x1a277a();}};let _0x1915bd=![],_0x332cc5=![];if(bsSetupHelper[_0x151b0c(0x1ea)]()&&_0x47ead5[_0x151b0c(0x1d5)])_0x332cc5=!![];else bsSetupHelper[_0x151b0c(0x1ea)]()&&(_0x1915bd=!![]);return Object[_0x151b0c(0x21a)]({'observability':_0x78f6a2[_0x151b0c(0x19a)](isTestObservabilitySession),'accessibility':exports['isAccessibilityEnabled'](_0x47ead5),'percy':_0x47ead5['percy']||![],'automate':_0x1915bd,'app_automate':_0x332cc5,'turboscale':bsSetupHelper['isTurboScaleSession'](_0x47ead5)},bsSetupHelper[_0x151b0c(0x1bc)]());},exports[a127_0x54b26b(0x216)]=(_0x4ed979,_0x5583eb)=>{const _0x34fb84=a127_0x54b26b,_0xeb23b9={'eVMKX':function(_0x367cb3,_0x1ad4d1){return _0x367cb3(_0x1ad4d1);},'tECIb':_0x34fb84(0x206)};return{'frameworkName':_0x5583eb,'frameworkVersion':_0xeb23b9[_0x34fb84(0x20e)](getFrameworkVersion,_0x5583eb),'sdkVersion':bsSetupHelper['getAgentVersion'](),'language':_0xeb23b9[_0x34fb84(0x1e6)],'testFramework':bsSetupHelper['getTestFrameworkDetails'](_0x4ed979,_0x5583eb)};},exports[a127_0x54b26b(0x211)]=_0x1c2ec0=>{const _0x100c76=a127_0x54b26b,_0xe33bae={};_0xe33bae['TcEzn']=_0x100c76(0x19f),_0xe33bae[_0x100c76(0x19d)]='true';const _0x38af7b=_0xe33bae;process['env']['BROWSERSTACK_PERCY']=_0x38af7b['TcEzn'],bsSetupHelper[_0x100c76(0x1a3)](_0x1c2ec0[_0x100c76(0x1de)][_0x100c76(0x228)])&&(!_0x1c2ec0[_0x100c76(0x228)]||!_0x1c2ec0[_0x100c76(0x228)][_0x100c76(0x1e3)]())&&(process[_0x100c76(0x199)][_0x100c76(0x21d)]=_0x38af7b[_0x100c76(0x19d)]);},exports[a127_0x54b26b(0x20d)]=()=>{const _0x458071=a127_0x54b26b;return bsSetupHelper[_0x458071(0x1a3)](process[_0x458071(0x199)][_0x458071(0x21d)]);},exports[a127_0x54b26b(0x1a9)]=(_0x4cb1e7={})=>{const _0x52df6b=a127_0x54b26b,_0x4f7e3c={};_0x4f7e3c['bMLgK']=function(_0x20869b,_0xd47e23){return _0x20869b!==_0xd47e23;},_0x4f7e3c['GcYJA']=function(_0x199d31,_0x20d886){return _0x199d31===_0x20d886;},_0x4f7e3c[_0x52df6b(0x1fe)]=_0x52df6b(0x213),_0x4f7e3c[_0x52df6b(0x1d4)]=function(_0x46f064,_0x23ae95){return _0x46f064>_0x23ae95;};const _0x27f953=_0x4f7e3c;if(_0x27f953[_0x52df6b(0x188)](process['env'][_0x52df6b(0x1ca)],undefined))return bsSetupHelper[_0x52df6b(0x1a3)](process['env'][_0x52df6b(0x1ca)]);let _0x3aceb6=_0x27f953[_0x52df6b(0x1f9)](process[_0x52df6b(0x199)][_0x52df6b(0x1b3)],_0x27f953[_0x52df6b(0x1fe)]);return _0x27f953[_0x52df6b(0x1d4)](Object[_0x52df6b(0x182)](_0x4cb1e7)[_0x52df6b(0x189)],0x0)&&(process[_0x52df6b(0x199)][_0x52df6b(0x1cb)]=accessibilityHelper['checkAccessibilityPlatformConfig'](_0x4cb1e7)),_0x3aceb6=_0x3aceb6||_0x27f953['GcYJA'](process[_0x52df6b(0x199)][_0x52df6b(0x1cb)],_0x27f953[_0x52df6b(0x1fe)]),_0x3aceb6;},exports['setTestObservabilityVariables']=(_0x393a27,_0x425529)=>{const _0x13d973=a127_0x54b26b,_0x16555b={'SzKme':function(_0x3cbc80){return _0x3cbc80();},'eBqmu':_0x13d973(0x1a0),'CXmlo':function(_0x56cdb9,_0x109037,_0x140ae0){return _0x56cdb9(_0x109037,_0x140ae0);},'ogdlJ':_0x13d973(0x1c1),'WRVgI':_0x13d973(0x1e0),'BlfHU':_0x13d973(0x213)};if(!_0x393a27||!_0x393a27[_0x13d973(0x1c1)])return exports[_0x13d973(0x219)](),[null,null,null];if(!_0x393a27[_0x13d973(0x1c1)][_0x13d973(0x1b7)])return exports[_0x13d973(0x219)](_0x393a27[_0x13d973(0x1c1)]),[null,null,null];if(_0x16555b['SzKme'](isTestObservabilitySession)){const _0x263d14=_0x16555b[_0x13d973(0x1f1)][_0x13d973(0x1b4)]('|');let _0x3ea2af=0x0;while(!![]){switch(_0x263d14[_0x3ea2af++]){case'0':return[_0x393a27['jwt'],_0x393a27[_0x13d973(0x1a1)],process[_0x13d973(0x199)][_0x13d973(0x20f)]];case'1':_0x16555b[_0x13d973(0x19c)](nestedKeyValue,_0x393a27,[_0x16555b[_0x13d973(0x1e2)],_0x16555b[_0x13d973(0x1be)]])&&(process['env'][_0x13d973(0x20f)]=_0x393a27[_0x13d973(0x1c1)][_0x13d973(0x1e0)][_0x13d973(0x1ad)][_0x13d973(0x1b6)]());continue;case'2':logger['debug'](_0x13d973(0x1d0)+_0x393a27[_0x13d973(0x1a1)]);continue;case'3':_0x393a27['build_hashed_id']&&(process[_0x13d973(0x199)][_0x13d973(0x1c3)]=_0x393a27[_0x13d973(0x1a1)]);continue;case'4':process[_0x13d973(0x199)][_0x13d973(0x18a)]=_0x16555b[_0x13d973(0x1f2)];continue;case'5':if(_0x393a27[_0x13d973(0x1d3)]){process[_0x13d973(0x199)][_0x13d973(0x217)]=_0x393a27[_0x13d973(0x1d3)];const _0x34bed8={};_0x34bed8[_0x13d973(0x19b)]=_0x425529[_0x13d973(0x19b)],_0x34bed8[_0x13d973(0x21e)]=_0x425529[_0x13d973(0x21e)],process['env']['CREDENTIALS_FOR_CRASH_REPORTING']=JSON['stringify'](_0x34bed8);}continue;}break;}}return[null,null,null];},exports['setAccessibilityVariables']=_0x1aa612=>{const _0x3eb307=a127_0x54b26b,_0x48b374={'qgSYG':function(_0x2e3b5f,_0x1bd065,_0xef6644){return _0x2e3b5f(_0x1bd065,_0xef6644);},'OMkkS':_0x3eb307(0x221),'IjmDU':_0x3eb307(0x1e0),'WJZIP':function(_0x51c8ef,_0x326c42,_0x586b01,_0x570f69){return _0x51c8ef(_0x326c42,_0x586b01,_0x570f69);},'AyilZ':_0x3eb307(0x21c),'rxcjw':'value','AZYiH':function(_0x2cb9c5,_0x3255dd,_0x275ba4,_0x41a9e6){return _0x2cb9c5(_0x3255dd,_0x275ba4,_0x41a9e6);},'ijxjt':_0x3eb307(0x207),'XbHGh':_0x3eb307(0x208),'IqZUh':function(_0x5033ed,_0x5ac258,_0x2ffa3c,_0x47f08d){return _0x5033ed(_0x5ac258,_0x2ffa3c,_0x47f08d);},'tqUCI':'nonBStackInfraA11yChromeOptions','MgBrv':_0x3eb307(0x196)};if(!_0x1aa612[_0x3eb307(0x221)])return exports[_0x3eb307(0x1db)](),[null,null];if(!_0x1aa612['accessibility'][_0x3eb307(0x1b7)])return exports['handleErrorForAccessibility'](_0x1aa612[_0x3eb307(0x221)]),[null,null];if(_0x48b374[_0x3eb307(0x209)](nestedKeyValue,_0x1aa612,[_0x48b374[_0x3eb307(0x1a4)],_0x48b374[_0x3eb307(0x1fb)]])){const {accessibilityToken:_0x4b3bd4,scannerVersion:_0x54e001}=_0x48b374[_0x3eb307(0x1bf)](jsonifyAccessibilityArray,_0x1aa612[_0x3eb307(0x221)][_0x3eb307(0x1e0)][_0x3eb307(0x197)],_0x48b374[_0x3eb307(0x1c5)],_0x48b374[_0x3eb307(0x203)]),_0x279706={'scripts':_0x48b374['AZYiH'](jsonifyAccessibilityArray,_0x1aa612[_0x3eb307(0x221)][_0x3eb307(0x1e0)][_0x3eb307(0x218)],_0x48b374[_0x3eb307(0x1c5)],_0x48b374[_0x3eb307(0x1a5)])};_0x279706[_0x48b374[_0x3eb307(0x214)]]=_0x1aa612[_0x3eb307(0x221)][_0x3eb307(0x1e0)][_0x3eb307(0x220)][_0x3eb307(0x208)];const _0x3024fe=_0x48b374[_0x3eb307(0x215)](jsonifyAccessibilityArray,_0x1aa612['accessibility'][_0x3eb307(0x1e0)][_0x3eb307(0x197)],_0x48b374[_0x3eb307(0x1c5)],_0x48b374[_0x3eb307(0x203)]);_0x279706[_0x48b374['tqUCI']]=_0x3024fe[_0x48b374[_0x3eb307(0x1a8)]],scripts[_0x3eb307(0x1df)](_0x279706),scripts[_0x3eb307(0x1da)]();let _0x51b74b=process[_0x3eb307(0x199)][_0x3eb307(0x1ec)];return _0x51b74b=!!_0x51b74b?JSON[_0x3eb307(0x1ed)](_0x51b74b):{},_0x51b74b[_0x3eb307(0x1c4)]=_0x54e001,process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x3eb307(0x18e)](_0x51b74b),process[_0x3eb307(0x199)]['BS_A11Y_JWT']=_0x4b3bd4,logger['debug'](_0x3eb307(0x1cc)+_0x1aa612[_0x3eb307(0x1a1)]),[_0x4b3bd4,_0x1aa612[_0x3eb307(0x1a1)]];}return[null,null];},exports['handleErrorForObservability']=_0xf5c5a2=>{const _0x1b5544=a127_0x54b26b,_0x30b056={};_0x30b056['sUdjE']='0|4|5|3|6|1|2',_0x30b056['pRLXh']=_0x1b5544(0x1f4),_0x30b056[_0x1b5544(0x1d2)]=_0x1b5544(0x19f);const _0x17cb40=_0x30b056,_0x5a8819=_0x17cb40[_0x1b5544(0x1ef)][_0x1b5544(0x1b4)]('|');let _0x2711d8=0x0;while(!![]){switch(_0x5a8819[_0x2711d8++]){case'0':process[_0x1b5544(0x199)][_0x1b5544(0x1dc)]=_0x17cb40[_0x1b5544(0x1fc)];continue;case'1':process[_0x1b5544(0x199)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x17cb40[_0x1b5544(0x1fc)];continue;case'2':exports['logBuildError'](_0xf5c5a2,testHubConstants[_0x1b5544(0x1c0)]);continue;case'3':process['env'][_0x1b5544(0x217)]=_0x17cb40[_0x1b5544(0x1fc)];continue;case'4':process[_0x1b5544(0x199)][_0x1b5544(0x191)]=_0x17cb40[_0x1b5544(0x1fc)];continue;case'5':process[_0x1b5544(0x199)][_0x1b5544(0x18a)]=_0x17cb40[_0x1b5544(0x1d2)];continue;case'6':process[_0x1b5544(0x199)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x17cb40[_0x1b5544(0x1fc)];continue;}break;}},exports[a127_0x54b26b(0x1db)]=_0x2aac91=>{const _0x4802f1=a127_0x54b26b,_0x3dd7bc={};_0x3dd7bc[_0x4802f1(0x1b9)]='2|0|3|4|1',_0x3dd7bc[_0x4802f1(0x1d1)]=_0x4802f1(0x1f4),_0x3dd7bc[_0x4802f1(0x1f5)]=_0x4802f1(0x19f);const _0xfd1e7a=_0x3dd7bc,_0x24ae7a=_0xfd1e7a['QLyQn'][_0x4802f1(0x1b4)]('|');let _0x1c835b=0x0;while(!![]){switch(_0x24ae7a[_0x1c835b++]){case'0':process[_0x4802f1(0x199)][_0x4802f1(0x191)]=_0xfd1e7a['VYiDX'];continue;case'1':exports[_0x4802f1(0x1b2)](_0x2aac91,testHubConstants['ACCESSIBILITY']);continue;case'2':process[_0x4802f1(0x199)]['BROWSERSTACK_TESTHUB_UUID']=_0xfd1e7a['VYiDX'];continue;case'3':process[_0x4802f1(0x199)][_0x4802f1(0x1b3)]=_0xfd1e7a[_0x4802f1(0x1f5)];continue;case'4':process[_0x4802f1(0x199)][_0x4802f1(0x1cb)]=_0xfd1e7a[_0x4802f1(0x1f5)];continue;}break;}},exports[a127_0x54b26b(0x1b2)]=(_0x4b39d3,_0x202404='')=>{const _0x3e27b8=a127_0x54b26b,_0x514cd8={};_0x514cd8['ezZRm']=function(_0x22b2f7,_0x3afae9){return _0x22b2f7===_0x3afae9;};const _0x14dd10=_0x514cd8;if(_0x14dd10['ezZRm'](_0x4b39d3,undefined)){logger[_0x3e27b8(0x1ba)](_0x202404[_0x3e27b8(0x227)]()+'\x20Build\x20creation\x20failed');return;}for(const _0x761405 of _0x4b39d3['errors']){const _0x1ea9cc=_0x761405['key'],_0xe52583=_0x761405['message'];if(_0xe52583)switch(_0x1ea9cc){case testHubConstants[_0x3e27b8(0x1c8)][_0x3e27b8(0x20a)]:logger[_0x3e27b8(0x1ba)](_0xe52583);break;case testHubConstants[_0x3e27b8(0x1c8)][_0x3e27b8(0x1af)]:logger[_0x3e27b8(0x1cf)](_0xe52583);break;case testHubConstants[_0x3e27b8(0x1c8)]['DEPRECATED']:logger[_0x3e27b8(0x1ba)](_0xe52583);break;default:logger['error'](_0xe52583);}}};const jsonifyAccessibilityArray=(_0x2c3819,_0x5804a1,_0xa9f78)=>{const _0x1273eb={};return _0x2c3819['forEach'](_0x42eb5b=>{_0x1273eb[_0x42eb5b[_0x5804a1]]=_0x42eb5b[_0xa9f78];}),_0x1273eb;};exports['setTestHubCommonMetaInfo']=_0x329f12=>{const _0x409d95=a127_0x54b26b;_0x329f12[_0x409d95(0x1d3)]&&(process[_0x409d95(0x199)][_0x409d95(0x191)]=_0x329f12[_0x409d95(0x1d3)]);_0x329f12['build_hashed_id']&&(process[_0x409d95(0x199)][_0x409d95(0x1dc)]=_0x329f12['build_hashed_id'],logger[_0x409d95(0x193)](_0x409d95(0x181)+_0x329f12[_0x409d95(0x1a1)]));;},exports[a127_0x54b26b(0x1a2)]=(_0x5aa628='',_0x52237b='')=>{const _0x1ed92f=a127_0x54b26b,_0x52ddc0={'Zrmaj':function(_0x3dee43){return _0x3dee43();},'bpWNQ':function(_0x3ba2d3,_0x2a23bc){return _0x3ba2d3===_0x2a23bc;},'FkYQK':'uploadEventData','uihso':_0x1ed92f(0x1aa),'GVFYI':_0x1ed92f(0x195),'ercBG':function(_0x485a57){return _0x485a57();},'gorXc':_0x1ed92f(0x200),'gWuyS':_0x1ed92f(0x1e4),'qBujd':function(_0x3d7d6d){return _0x3d7d6d();}};if(exports[_0x1ed92f(0x20d)]()&&!exports[_0x1ed92f(0x1a9)]()&&!_0x52ddc0[_0x1ed92f(0x22c)](isTestObservabilitySession)){if(_0x52ddc0[_0x1ed92f(0x1f0)](_0x52237b,_0x52ddc0[_0x1ed92f(0x1e8)]))return![];if([_0x52ddc0[_0x1ed92f(0x229)],_0x52ddc0[_0x1ed92f(0x19e)]][_0x1ed92f(0x187)](_0x5aa628))return![];return!![];}if(exports[_0x1ed92f(0x1a9)]()&&!_0x52ddc0[_0x1ed92f(0x18c)](isTestObservabilitySession)){if([_0x52ddc0[_0x1ed92f(0x222)],_0x52ddc0[_0x1ed92f(0x20b)],_0x52ddc0['uihso']]['includes'](_0x5aa628))return![];return!![];}return exports['isAccessibilityEnabled']()||_0x52ddc0['qBujd'](isTestObservabilitySession)||exports['isPercyBuild']();},exports[a127_0x54b26b(0x1fa)]=(_0x51c4fc,_0x1029fd,_0x52da59='',_0x50cff1)=>{const _0xe33173=a127_0x54b26b,_0x5b7886={};_0x5b7886[_0xe33173(0x184)]=_0xe33173(0x200),_0x5b7886['OQprY']=_0xe33173(0x1e4),_0x5b7886[_0xe33173(0x1c7)]=function(_0x55ac31,_0x39da79){return _0x55ac31===_0x39da79;},_0x5b7886[_0xe33173(0x1eb)]=_0xe33173(0x225),_0x5b7886[_0xe33173(0x22a)]=_0xe33173(0x1f6),_0x5b7886[_0xe33173(0x223)]=_0xe33173(0x221),_0x5b7886['COXzZ']=function(_0x1500b4,_0x3ad628){return _0x1500b4&&_0x3ad628;},_0x5b7886[_0xe33173(0x192)]=function(_0x339d32,_0x363bb7){return _0x339d32===_0x363bb7;},_0x5b7886[_0xe33173(0x185)]=function(_0x3720dd,_0xaf62b){return _0x3720dd+_0xaf62b;},_0x5b7886[_0xe33173(0x212)]=function(_0x202e1b,_0x132f40){return _0x202e1b+_0x132f40;},_0x5b7886[_0xe33173(0x22d)]=function(_0x4e54f1,_0x5b9a3d){return _0x4e54f1===_0x5b9a3d;},_0x5b7886['ZTqPT']=_0xe33173(0x18f),_0x5b7886['YRhrH']=function(_0x150f9d,_0x3237bb){return _0x150f9d&&_0x3237bb;},_0x5b7886['cJoEI']=function(_0x341349,_0x270f4a){return _0x341349===_0x270f4a;},_0x5b7886[_0xe33173(0x1c6)]='product_map';const _0x5901c3=_0x5b7886;if(![_0x5901c3['yURJo'],_0x5901c3[_0xe33173(0x1b1)]][_0xe33173(0x187)](_0x1029fd)&&exports[_0xe33173(0x1a9)]()){const _0x222864={};if(_0x5901c3[_0xe33173(0x1c7)](_0x50cff1,FRAMEWORKS['MOCHA'])){const _0x58b14b=globals['getGlobal'](_0x5901c3[_0xe33173(0x1eb)])||accessibilityHelper[_0xe33173(0x1c9)](_0x52da59['titlePath'](),!![]),_0xe9c34c=globals[_0xe33173(0x21f)](_0x5901c3[_0xe33173(0x22a)]);_0x222864[_0x5901c3[_0xe33173(0x223)]]=_0x5901c3[_0xe33173(0x201)](_0xe9c34c,_0x58b14b);}if(_0x5901c3[_0xe33173(0x192)](_0x50cff1,FRAMEWORKS[_0xe33173(0x1c2)])){const _0xbfc9bf=_0x5901c3['fbyQQ'](_0x5901c3[_0xe33173(0x212)](_0x51c4fc['scopes'][_0xe33173(0x183)]('\x20'),'\x20'),_0x52da59[_0xe33173(0x21c)]),_0x22aec5=globals[_0xe33173(0x21f)](_0x5901c3[_0xe33173(0x1eb)])||accessibilityHelper[_0xe33173(0x1c9)](_0xbfc9bf,![]),_0x206eee=browserStackGlobals[_0xe33173(0x1f6)];_0x222864[_0x5901c3['aJoLO']]=_0x5901c3[_0xe33173(0x201)](_0x206eee,_0x22aec5);}if(_0x5901c3['JvTJk'](_0x50cff1,FRAMEWORKS[_0xe33173(0x1ee)])){if(_0x5901c3[_0xe33173(0x1c7)](_0x1029fd,_0x5901c3[_0xe33173(0x180)]))return;_0x222864[_0x5901c3[_0xe33173(0x223)]]=PWTestDetails[_0xe33173(0x1cd)](_0x51c4fc[_0xe33173(0x198)]);}if(_0x5901c3[_0xe33173(0x22d)](_0x50cff1,FRAMEWORKS[_0xe33173(0x226)])){const _0x2639a4=accessibilityHelper[_0xe33173(0x1c9)](_0x52da59['titlePath'](),!![]),_0x2d5ccf=global['accessibilityPlatform'];_0x222864[_0x5901c3[_0xe33173(0x223)]]=_0x5901c3[_0xe33173(0x1ce)](_0x2d5ccf,_0x2639a4);}if(_0x5901c3[_0xe33173(0x186)](_0x50cff1,FRAMEWORKS[_0xe33173(0x1dd)])){const _0x3c60f9=accessibilityHelper[_0xe33173(0x1c9)](null,![],_0x51c4fc[_0xe33173(0x1ff)]),_0x305759=globals[_0xe33173(0x21f)](_0x5901c3[_0xe33173(0x22a)]);_0x222864[_0x5901c3[_0xe33173(0x223)]]=_0x5901c3['YRhrH'](_0x305759,_0x3c60f9);}_0x51c4fc[_0x5901c3[_0xe33173(0x1c6)]]=_0x222864;}},exports['getCurrentTestData']=_0x24b742=>{const _0x4981eb=a127_0x54b26b,_0x203026={};_0x203026['HuWmr']=function(_0x29c5bc,_0x5ca9f1){return _0x29c5bc>_0x5ca9f1;};const _0x6f96cb=_0x203026;let _0x17cea6={};if(_0x6f96cb[_0x4981eb(0x1d6)](Object[_0x4981eb(0x182)](testData)[_0x4981eb(0x189)],0x0))return testData;_0x17cea6=JestTestDetails[_0x4981eb(0x1e1)]();if(_0x6f96cb['HuWmr'](Object['keys'](_0x17cea6)[_0x4981eb(0x189)],0x0))return _0x17cea6;return _0x17cea6;},exports[a127_0x54b26b(0x194)]=(_0x1d898c,_0x38d8dd={})=>{const _0x5d12ad=a127_0x54b26b;if(bsSetupHelper[_0x5d12ad(0x1fd)](_0x38d8dd['test_run']))return;switch(_0x1d898c){case FRAMEWORKS['MOCHA']:testData=_0x38d8dd[_0x5d12ad(0x20c)];break;case FRAMEWORKS[_0x5d12ad(0x1c2)]:JestTestDetails[_0x5d12ad(0x1ac)](_0x38d8dd[_0x5d12ad(0x20c)]);break;default:break;}},exports[a127_0x54b26b(0x1f8)]=_0x57cb72=>{const _0x4d934c=a127_0x54b26b,_0x2e58c0={};_0x2e58c0['hClNB']=function(_0x3d2eb8,_0x397a3f){return _0x3d2eb8!==_0x397a3f;};const _0x1efcff=_0x2e58c0;if(_0x1efcff['hClNB'](_0x57cb72[_0x4d934c(0x221)],null)&&_0x1efcff[_0x4d934c(0x1e9)](_0x57cb72[_0x4d934c(0x221)],undefined))return _0x57cb72['accessibility'];let _0x5c10dc=![],_0x413b3a=![];if(_0x57cb72[_0x4d934c(0x18b)])for(const _0x443907 of _0x57cb72[_0x4d934c(0x18b)]){_0x1efcff[_0x4d934c(0x1e9)](_0x443907['accessibility'],null)&&_0x1efcff[_0x4d934c(0x1e9)](_0x443907['accessibility'],undefined)&&(_0x5c10dc=_0x5c10dc||bsSetupHelper['isTrue'](_0x443907[_0x4d934c(0x221)]),_0x413b3a=!![]);}if(_0x413b3a)return _0x5c10dc;return null;},exports[a127_0x54b26b(0x210)]=_0x2e8c59=>{const _0x8c8938=new OrchestrationUtils(_0x2e8c59);return _0x8c8938['getBuildStartData']();},exports[a127_0x54b26b(0x1f7)]=_0x4d5a4b=>{const _0x4e9d34=a127_0x54b26b,_0x280181={'vYTGl':function(_0x151f9c){return _0x151f9c();}};let _0xedc0e=![],_0x599264=![];if(bsSetupHelper[_0x4e9d34(0x1ea)]()&&_0x4d5a4b['app'])_0x599264=!![];else bsSetupHelper[_0x4e9d34(0x1ea)]()&&(_0xedc0e=!![]);return Object[_0x4e9d34(0x21a)]({'observability':_0x280181['vYTGl'](isTestObservabilitySession),'accessibility':exports[_0x4e9d34(0x1f8)](_0x4d5a4b),'percy':_0x4d5a4b['percy']||![],'automate':_0xedc0e,'app_automate':_0x599264,'turboscale':bsSetupHelper[_0x4e9d34(0x1bd)](_0x4d5a4b)},bsSetupHelper[_0x4e9d34(0x1bc)]());};
|
|
1
|
+
const a127_0xd86eb2=a127_0x3020;(function(_0x53d5b0,_0x360b69){const _0x49a656=a127_0x3020,_0x230f48=_0x53d5b0();while(!![]){try{const _0x5b1f0a=parseInt(_0x49a656(0x14a))/0x1+parseInt(_0x49a656(0x178))/0x2+-parseInt(_0x49a656(0x16a))/0x3+parseInt(_0x49a656(0x170))/0x4*(parseInt(_0x49a656(0x1e6))/0x5)+-parseInt(_0x49a656(0x185))/0x6*(-parseInt(_0x49a656(0x186))/0x7)+parseInt(_0x49a656(0x18c))/0x8*(parseInt(_0x49a656(0x1a2))/0x9)+parseInt(_0x49a656(0x146))/0xa*(-parseInt(_0x49a656(0x14c))/0xb);if(_0x5b1f0a===_0x360b69)break;else _0x230f48['push'](_0x230f48['shift']());}catch(_0x8beb7a){_0x230f48['push'](_0x230f48['shift']());}}}(a127_0x3bb7,0x27e1e));const bsSetupHelper=require(a127_0xd86eb2(0x1be)),{isTestObservabilitySession,getFrameworkVersion}=require(a127_0xd86eb2(0x1a1)),accessibilityHelper=require('../accessibility-automation/helper'),logger=require(a127_0xd86eb2(0x1a8))[a127_0xd86eb2(0x1d4)],{nestedKeyValue}=require(a127_0xd86eb2(0x1d7)),scripts=require(a127_0xd86eb2(0x17f)),globals=require('../globals.js'),testHubConstants=require('./constants.js'),PWTestDetails=require(a127_0xd86eb2(0x155)),JestTestDetails=require(a127_0xd86eb2(0x1cc)),{FRAMEWORKS}=require(a127_0xd86eb2(0x18a)),{isTurboScaleSession}=require(a127_0xd86eb2(0x17e)),OrchestrationUtils=require('../test-orchestration/orchestrationUtils.js');let testData={};exports[a127_0xd86eb2(0x1b8)]=_0x5d0556=>{const _0x47faad=a127_0xd86eb2,_0x25f1d7={'vmswL':function(_0x1e49f7){return _0x1e49f7();}};let _0x754c41=![],_0x155e83=![];if(bsSetupHelper[_0x47faad(0x1ad)]()&&_0x5d0556[_0x47faad(0x181)])_0x155e83=!![];else bsSetupHelper[_0x47faad(0x1ad)]()&&(_0x754c41=!![]);return Object['assign']({'observability':_0x25f1d7[_0x47faad(0x153)](isTestObservabilitySession),'accessibility':exports[_0x47faad(0x1fd)](_0x5d0556),'percy':_0x5d0556[_0x47faad(0x1e3)]||![],'automate':_0x754c41,'app_automate':_0x155e83,'turboscale':bsSetupHelper['isTurboScaleSession'](_0x5d0556)},bsSetupHelper[_0x47faad(0x199)]());},exports[a127_0xd86eb2(0x149)]=(_0x111b56,_0x55c748)=>{const _0x1eb6b4=a127_0xd86eb2,_0x8eecb0={'XcCal':function(_0x5135fb,_0x167168){return _0x5135fb(_0x167168);},'FiHxr':_0x1eb6b4(0x1c9)};return{'frameworkName':_0x55c748,'frameworkVersion':_0x8eecb0[_0x1eb6b4(0x1ed)](getFrameworkVersion,_0x55c748),'sdkVersion':bsSetupHelper[_0x1eb6b4(0x1dc)](),'language':_0x8eecb0[_0x1eb6b4(0x1b3)],'testFramework':bsSetupHelper[_0x1eb6b4(0x1d3)](_0x111b56,_0x55c748)};},exports[a127_0xd86eb2(0x168)]=_0x26dc25=>{const _0x336d48=a127_0xd86eb2,_0x564a2a={};_0x564a2a[_0x336d48(0x14b)]='false',_0x564a2a[_0x336d48(0x1c5)]=_0x336d48(0x1bc);const _0x3afd24=_0x564a2a;process[_0x336d48(0x15d)][_0x336d48(0x1ac)]=_0x3afd24[_0x336d48(0x14b)],bsSetupHelper[_0x336d48(0x17b)](_0x26dc25[_0x336d48(0x18b)][_0x336d48(0x1e3)])&&(!_0x26dc25['percy']||!_0x26dc25[_0x336d48(0x1e3)]['isRunning']())&&(process['env'][_0x336d48(0x1ac)]=_0x3afd24[_0x336d48(0x1c5)]);},exports[a127_0xd86eb2(0x16e)]=()=>{const _0x2b7859=a127_0xd86eb2;return bsSetupHelper['isTrue'](process[_0x2b7859(0x15d)][_0x2b7859(0x1ac)]);},exports[a127_0xd86eb2(0x1fd)]=(_0x435b1a={})=>{const _0x5784ff=a127_0xd86eb2,_0x10e1b0={};_0x10e1b0[_0x5784ff(0x1e7)]=function(_0x2cd45b,_0x2201d8){return _0x2cd45b!==_0x2201d8;},_0x10e1b0['FNSIp']=function(_0x11c0d1,_0x1b3d09){return _0x11c0d1===_0x1b3d09;},_0x10e1b0[_0x5784ff(0x179)]=_0x5784ff(0x1bc),_0x10e1b0['hoEzj']=function(_0x133692,_0x527dd4){return _0x133692>_0x527dd4;},_0x10e1b0[_0x5784ff(0x1e1)]=function(_0x54ef3b,_0x593be5){return _0x54ef3b===_0x593be5;};const _0x23bfa7=_0x10e1b0;if(_0x23bfa7[_0x5784ff(0x1e7)](process[_0x5784ff(0x15d)][_0x5784ff(0x1e0)],undefined))return bsSetupHelper[_0x5784ff(0x17b)](process[_0x5784ff(0x15d)][_0x5784ff(0x1e0)]);let _0x5da93e=_0x23bfa7[_0x5784ff(0x193)](process[_0x5784ff(0x15d)][_0x5784ff(0x180)],_0x23bfa7[_0x5784ff(0x179)]);return _0x23bfa7[_0x5784ff(0x152)](Object[_0x5784ff(0x1ce)](_0x435b1a)[_0x5784ff(0x17d)],0x0)&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=accessibilityHelper[_0x5784ff(0x1df)](_0x435b1a)),_0x5da93e=_0x5da93e||_0x23bfa7['bQBrw'](process[_0x5784ff(0x15d)][_0x5784ff(0x1fa)],_0x23bfa7['MuLIU']),_0x5da93e;},exports[a127_0xd86eb2(0x177)]=(_0x471fbe,_0x55bcc7)=>{const _0x182741=a127_0xd86eb2,_0x417d9={'ksOZv':function(_0x5bdf39){return _0x5bdf39();},'OsaUv':_0x182741(0x148),'xvHdI':_0x182741(0x1bc),'QZoao':function(_0x39daba,_0x321f90,_0x4a26eb){return _0x39daba(_0x321f90,_0x4a26eb);},'OsvwY':_0x182741(0x191),'VxvQY':_0x182741(0x175)};if(!_0x471fbe||!_0x471fbe[_0x182741(0x191)])return exports['handleErrorForObservability'](),[null,null,null];if(!_0x471fbe['observability']['success'])return exports[_0x182741(0x1a7)](_0x471fbe[_0x182741(0x191)]),[null,null,null];if(_0x417d9[_0x182741(0x156)](isTestObservabilitySession)){const _0x5f2fe7=_0x417d9[_0x182741(0x18e)][_0x182741(0x189)]('|');let _0x167d74=0x0;while(!![]){switch(_0x5f2fe7[_0x167d74++]){case'0':process[_0x182741(0x15d)][_0x182741(0x16c)]=_0x417d9[_0x182741(0x1af)];continue;case'1':logger[_0x182741(0x1d5)]('[OBSERVABILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20'+_0x471fbe[_0x182741(0x1ec)]);continue;case'2':_0x471fbe[_0x182741(0x1ec)]&&(process[_0x182741(0x15d)][_0x182741(0x1d8)]=_0x471fbe[_0x182741(0x1ec)]);continue;case'3':if(_0x471fbe['jwt']){process[_0x182741(0x15d)][_0x182741(0x1b0)]=_0x471fbe[_0x182741(0x1f5)];const _0x10a356={};_0x10a356[_0x182741(0x1e4)]=_0x55bcc7[_0x182741(0x1e4)],_0x10a356[_0x182741(0x1f8)]=_0x55bcc7[_0x182741(0x1f8)],process[_0x182741(0x15d)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON['stringify'](_0x10a356);}continue;case'4':_0x417d9[_0x182741(0x164)](nestedKeyValue,_0x471fbe,[_0x417d9[_0x182741(0x1bf)],_0x417d9[_0x182741(0x1e9)]])&&(process[_0x182741(0x15d)][_0x182741(0x1a9)]=_0x471fbe[_0x182741(0x191)]['options'][_0x182741(0x15c)][_0x182741(0x1de)]());continue;case'5':return[_0x471fbe['jwt'],_0x471fbe['build_hashed_id'],process[_0x182741(0x15d)][_0x182741(0x1a9)]];}break;}}return[null,null,null];},exports[a127_0xd86eb2(0x19f)]=_0x14d89a=>{const _0xdd1c12=a127_0xd86eb2,_0x1c4daa={'ZszHx':function(_0x3dc084,_0x25296f,_0x40adbb){return _0x3dc084(_0x25296f,_0x40adbb);},'LMiCz':_0xdd1c12(0x172),'KpxrH':_0xdd1c12(0x175),'IfAWs':function(_0x1a684d,_0x30c16b,_0x447931,_0x3013f0){return _0x1a684d(_0x30c16b,_0x447931,_0x3013f0);},'tQzJN':_0xdd1c12(0x1b4),'egQJZ':_0xdd1c12(0x1b7),'wYyWl':function(_0x113343,_0x3ea1ad,_0xcbab00,_0x35e1d6){return _0x113343(_0x3ea1ad,_0xcbab00,_0x35e1d6);},'GpyhY':'command','UNIRY':_0xdd1c12(0x16f),'oeEVr':_0xdd1c12(0x1c8),'XnWfP':_0xdd1c12(0x169)};if(!_0x14d89a[_0xdd1c12(0x172)])return exports[_0xdd1c12(0x1da)](),[null,null];if(!_0x14d89a['accessibility'][_0xdd1c12(0x1eb)])return exports[_0xdd1c12(0x1da)](_0x14d89a[_0xdd1c12(0x172)]),[null,null];if(_0x1c4daa['ZszHx'](nestedKeyValue,_0x14d89a,[_0x1c4daa[_0xdd1c12(0x15b)],_0x1c4daa[_0xdd1c12(0x173)]])){const {accessibilityToken:_0x3ef710,scannerVersion:_0x1205a4}=_0x1c4daa[_0xdd1c12(0x1a3)](jsonifyAccessibilityArray,_0x14d89a[_0xdd1c12(0x172)][_0xdd1c12(0x175)][_0xdd1c12(0x19d)],_0x1c4daa[_0xdd1c12(0x1ee)],_0x1c4daa[_0xdd1c12(0x1e2)]),_0x3163b9={'scripts':_0x1c4daa[_0xdd1c12(0x1ef)](jsonifyAccessibilityArray,_0x14d89a['accessibility'][_0xdd1c12(0x175)][_0xdd1c12(0x188)],_0x1c4daa['tQzJN'],_0x1c4daa[_0xdd1c12(0x194)])};_0x3163b9[_0x1c4daa[_0xdd1c12(0x159)]]=_0x14d89a[_0xdd1c12(0x172)][_0xdd1c12(0x175)][_0xdd1c12(0x15e)]['commands'];const _0x4ed382=_0x1c4daa[_0xdd1c12(0x1a3)](jsonifyAccessibilityArray,_0x14d89a[_0xdd1c12(0x172)][_0xdd1c12(0x175)]['capabilities'],_0x1c4daa[_0xdd1c12(0x1ee)],_0x1c4daa['egQJZ']);_0x3163b9[_0x1c4daa[_0xdd1c12(0x176)]]=_0x4ed382[_0x1c4daa[_0xdd1c12(0x1c6)]],scripts[_0xdd1c12(0x14f)](_0x3163b9),scripts[_0xdd1c12(0x1b2)]();let _0x445cde=process[_0xdd1c12(0x15d)][_0xdd1c12(0x17a)];return _0x445cde=!!_0x445cde?JSON['parse'](_0x445cde):{},_0x445cde[_0xdd1c12(0x161)]=_0x1205a4,process[_0xdd1c12(0x15d)][_0xdd1c12(0x17a)]=JSON[_0xdd1c12(0x1f0)](_0x445cde),process[_0xdd1c12(0x15d)]['BS_A11Y_JWT']=_0x3ef710,logger[_0xdd1c12(0x1d5)]('[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20'+_0x14d89a[_0xdd1c12(0x1ec)]),[_0x3ef710,_0x14d89a['build_hashed_id']];}return[null,null];},exports[a127_0xd86eb2(0x1a7)]=_0x5839da=>{const _0x4c5072=a127_0xd86eb2,_0x5b8977={};_0x5b8977['Bwzki']='1|3|5|0|4|2|6',_0x5b8977['AlTnZ']='null',_0x5b8977[_0x4c5072(0x1aa)]=_0x4c5072(0x18f);const _0x330e8f=_0x5b8977,_0x51a739=_0x330e8f['Bwzki'][_0x4c5072(0x189)]('|');let _0x4e960f=0x0;while(!![]){switch(_0x51a739[_0x4e960f++]){case'0':process[_0x4c5072(0x15d)][_0x4c5072(0x1b0)]=_0x330e8f[_0x4c5072(0x174)];continue;case'1':process[_0x4c5072(0x15d)]['BROWSERSTACK_TESTHUB_UUID']=_0x330e8f[_0x4c5072(0x174)];continue;case'2':process['env'][_0x4c5072(0x1a9)]=_0x330e8f[_0x4c5072(0x174)];continue;case'3':process[_0x4c5072(0x15d)]['BROWSERSTACK_TESTHUB_JWT']=_0x330e8f[_0x4c5072(0x174)];continue;case'4':process[_0x4c5072(0x15d)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x330e8f[_0x4c5072(0x174)];continue;case'5':process[_0x4c5072(0x15d)][_0x4c5072(0x16c)]=_0x330e8f[_0x4c5072(0x1aa)];continue;case'6':exports['logBuildError'](_0x5839da,testHubConstants[_0x4c5072(0x1c1)]);continue;}break;}},exports[a127_0xd86eb2(0x1da)]=_0x3fcdb4=>{const _0x993f85=a127_0xd86eb2,_0x537fe7={};_0x537fe7[_0x993f85(0x15f)]=_0x993f85(0x151),_0x537fe7[_0x993f85(0x18d)]=_0x993f85(0x18f),_0x537fe7[_0x993f85(0x1f9)]='null';const _0x593efe=_0x537fe7,_0x531d56=_0x593efe[_0x993f85(0x15f)]['split']('|');let _0x14c08a=0x0;while(!![]){switch(_0x531d56[_0x14c08a++]){case'0':process[_0x993f85(0x15d)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x593efe['HXyGd'];continue;case'1':process[_0x993f85(0x15d)][_0x993f85(0x1fa)]=_0x593efe[_0x993f85(0x18d)];continue;case'2':exports[_0x993f85(0x183)](_0x3fcdb4,testHubConstants[_0x993f85(0x1d0)]);continue;case'3':process[_0x993f85(0x15d)][_0x993f85(0x1c7)]=_0x593efe[_0x993f85(0x1f9)];continue;case'4':process['env'][_0x993f85(0x147)]=_0x593efe[_0x993f85(0x1f9)];continue;}break;}},exports[a127_0xd86eb2(0x183)]=(_0x508647,_0x1a49f8='')=>{const _0x386941=a127_0xd86eb2,_0x5358d2={};_0x5358d2[_0x386941(0x1bd)]=function(_0x10d4c5,_0x194c4f){return _0x10d4c5===_0x194c4f;};const _0x3600d2=_0x5358d2;if(_0x3600d2[_0x386941(0x1bd)](_0x508647,undefined)){logger[_0x386941(0x19e)](_0x1a49f8[_0x386941(0x1d2)]()+_0x386941(0x16b));return;}for(const _0x29686b of _0x508647[_0x386941(0x1c0)]){const _0x4872ef=_0x29686b[_0x386941(0x1b6)],_0x378f97=_0x29686b[_0x386941(0x1a4)];if(_0x378f97)switch(_0x4872ef){case testHubConstants[_0x386941(0x19a)][_0x386941(0x1d9)]:logger['error'](_0x378f97);break;case testHubConstants['ERROR'][_0x386941(0x1cd)]:logger[_0x386941(0x1db)](_0x378f97);break;case testHubConstants[_0x386941(0x19a)][_0x386941(0x195)]:logger[_0x386941(0x19e)](_0x378f97);break;default:logger[_0x386941(0x19e)](_0x378f97);}}};function a127_0x3bb7(){const _0x16cf6b=['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','fytkZ','CymHg','isAccessibilityEnabled','LpfFv','10dOedwu','BROWSERSTACK_TESTHUB_JWT','0|3|2|4|1|5','getFrameworkDetails','177069IVuCWB','XnWrc','6067259HlvYas','CBTSessionCreated','product_map','parseFromJson','qdTpM','3|4|0|1|2','hoEzj','vmswL','getCurrentTestData','../../bin/playwright/reporter/test-details.js','ksOZv','platforms','getTestData','UNIRY','TyRqW','LMiCz','allow_screenshots','env','commandsToWrap','lSGkp','bstackA11yShouldScan','scannerVersion','KPpFW','getAccessibilityPlatformValidation','QZoao','HookRunStarted','shouldProcessEventForTesthub','isTurboScaleSession','setPercyFlag','goog:chromeOptions','220539iHCXxI','\x20Build\x20creation\x20failed','BS_TESTOPS_BUILD_COMPLETED','BxfDt','isPercyBuild','commands','164cJMKwl','qJwHb','accessibility','KpxrH','AlTnZ','options','oeEVr','setTestObservabilityVariables','501340KqvUAT','MuLIU','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','isTrue','assign','length','../ats/helper','../accessibility-automation/scripts.js','BROWSERSTACK_TEST_ACCESSIBILITY_YML','app','TbMdg','logBuildError','wXhrS','377466piQIdg','14EhWWrF','JcSvS','scripts','split','../test-observability/constants.js','config','24VaSduj','HXyGd','OsaUv','false','setCurrentTestData','observability','FAUHU','FNSIp','GpyhY','DEPRECATED','isUndefined','xDVsM','WQMFm','getCentralUser','ERROR','VlbiE','shouldScanTestForAccessibility','capabilities','error','setAccessibilityVariables','getGlobal','../test-observability/utils','178074czDcTC','IfAWs','message','scopes','JEST','handleErrorForObservability','../logger','BS_TESTOPS_ALLOW_SCREENSHOTS','DCuYK','Wlkqf','BROWSERSTACK_PERCY','isBrowserstackInfra','includes','xvHdI','BS_TESTOPS_JWT','XSPuF','toJson','FiHxr','name','test_run','key','value','getProductMap','yfuMC','setTestData','BROWSERSTACK_TESTHUB_UUID:\x20','true','iFdVp','../helper','OsvwY','errors','OBSERVABILITY','HookRunFinished','uploadEventData','aFHYK','NgwNK','XnWfP','BROWSERSTACK_TESTHUB_UUID','nonBStackInfraA11yChromeOptions','javascript','getTestOrchestrationBuildStartData','VYilZ','../../bin/jest/test-observability/test-details.js','ACCESS_DENIED','keys','isAccessibilityPlatform','ACCESSIBILITY','XfbKu','toUpperCase','getTestFrameworkDetails','winstonLogger','debug','forEach','../helper.js','BS_TESTOPS_BUILD_HASHED_ID','INVALID_CREDENTIALS','handleErrorForAccessibility','info','getAgentVersion','NzXVJ','toString','checkAccessibilityPlatformConfig','BROWSERSTACK_ACCESSIBILITY','bQBrw','egQJZ','percy','username','titlePath','21405KvldXE','SXOrW','LrFGU','VxvQY','MOCHA','success','build_hashed_id','XcCal','tQzJN','wYyWl','stringify','getBuildStartData','appendTesthubParams','acTsS','uuid','jwt','gSBgV','setTestHubCommonMetaInfo','password','zCcvZ'];a127_0x3bb7=function(){return _0x16cf6b;};return a127_0x3bb7();}function a127_0x3020(_0x450142,_0x333b16){const _0x3bb7c2=a127_0x3bb7();return a127_0x3020=function(_0x302060,_0x432d67){_0x302060=_0x302060-0x146;let _0x52b225=_0x3bb7c2[_0x302060];return _0x52b225;},a127_0x3020(_0x450142,_0x333b16);}const jsonifyAccessibilityArray=(_0x479463,_0x575cda,_0xaabda5)=>{const _0x5e7f5f=a127_0xd86eb2,_0x1c17b1={};return _0x479463[_0x5e7f5f(0x1d6)](_0x43b01e=>{_0x1c17b1[_0x43b01e[_0x575cda]]=_0x43b01e[_0xaabda5];}),_0x1c17b1;};exports[a127_0xd86eb2(0x1f7)]=_0x27d05f=>{const _0x390369=a127_0xd86eb2;_0x27d05f[_0x390369(0x1f5)]&&(process[_0x390369(0x15d)]['BROWSERSTACK_TESTHUB_JWT']=_0x27d05f[_0x390369(0x1f5)]);_0x27d05f[_0x390369(0x1ec)]&&(process[_0x390369(0x15d)][_0x390369(0x1c7)]=_0x27d05f['build_hashed_id'],logger[_0x390369(0x1d5)](_0x390369(0x1bb)+_0x27d05f[_0x390369(0x1ec)]));;},exports[a127_0xd86eb2(0x166)]=(_0x328649='',_0x39fa9c='')=>{const _0x3a8e19=a127_0xd86eb2,_0x4c7b0f={'CymHg':function(_0x81df95){return _0x81df95();},'KPpFW':function(_0x2484f4,_0x50af34){return _0x2484f4===_0x50af34;},'TbMdg':_0x3a8e19(0x1c3),'wXhrS':'LogCreated','rUfpa':_0x3a8e19(0x14d),'WQMFm':function(_0x1fc661){return _0x1fc661();},'xDVsM':_0x3a8e19(0x165),'VYilZ':_0x3a8e19(0x1c2)};if(exports[_0x3a8e19(0x16e)]()&&!exports['isAccessibilityEnabled']()&&!_0x4c7b0f[_0x3a8e19(0x1fc)](isTestObservabilitySession)){if(_0x4c7b0f[_0x3a8e19(0x162)](_0x39fa9c,_0x4c7b0f[_0x3a8e19(0x182)]))return![];if([_0x4c7b0f[_0x3a8e19(0x184)],_0x4c7b0f['rUfpa']][_0x3a8e19(0x1ae)](_0x328649))return![];return!![];}if(exports[_0x3a8e19(0x1fd)]()&&!_0x4c7b0f[_0x3a8e19(0x198)](isTestObservabilitySession)){if([_0x4c7b0f[_0x3a8e19(0x197)],_0x4c7b0f[_0x3a8e19(0x1cb)],_0x4c7b0f[_0x3a8e19(0x184)]][_0x3a8e19(0x1ae)](_0x328649))return![];return!![];}return exports[_0x3a8e19(0x1fd)]()||_0x4c7b0f[_0x3a8e19(0x1fc)](isTestObservabilitySession)||exports['isPercyBuild']();},exports[a127_0xd86eb2(0x1f2)]=(_0x3bcaae,_0x3d22a1,_0x1f3a19='',_0x2a3465)=>{const _0x1869f5=a127_0xd86eb2,_0x1861d1={};_0x1861d1[_0x1869f5(0x1b1)]=_0x1869f5(0x165),_0x1861d1[_0x1869f5(0x1d1)]=_0x1869f5(0x1c2),_0x1861d1[_0x1869f5(0x15a)]=function(_0x10e6bf,_0x186724){return _0x10e6bf===_0x186724;},_0x1861d1[_0x1869f5(0x150)]=_0x1869f5(0x160),_0x1861d1['LrFGU']='isAccessibilityPlatform',_0x1861d1['LpfFv']=_0x1869f5(0x172),_0x1861d1[_0x1869f5(0x1ab)]=function(_0x2345c7,_0x476255){return _0x2345c7&&_0x476255;},_0x1861d1[_0x1869f5(0x1fb)]=function(_0x460f9d,_0x8e84c){return _0x460f9d===_0x8e84c;},_0x1861d1[_0x1869f5(0x1c4)]=function(_0x2bc3fd,_0x1a67b3){return _0x2bc3fd+_0x1a67b3;},_0x1861d1[_0x1869f5(0x1b9)]=function(_0x531614,_0x59d7bc){return _0x531614+_0x59d7bc;},_0x1861d1[_0x1869f5(0x192)]='TestRunStarted',_0x1861d1[_0x1869f5(0x1f3)]=function(_0x2c366f,_0x374d33){return _0x2c366f===_0x374d33;},_0x1861d1[_0x1869f5(0x16d)]=function(_0x153af0,_0x177bed){return _0x153af0&&_0x177bed;},_0x1861d1[_0x1869f5(0x171)]=_0x1869f5(0x14e);const _0x4d728e=_0x1861d1;if(![_0x4d728e[_0x1869f5(0x1b1)],_0x4d728e[_0x1869f5(0x1d1)]][_0x1869f5(0x1ae)](_0x3d22a1)&&exports[_0x1869f5(0x1fd)]()){const _0x559715={};if(_0x4d728e['TyRqW'](_0x2a3465,FRAMEWORKS[_0x1869f5(0x1ea)])){const _0x397b92=globals[_0x1869f5(0x1a0)](_0x4d728e[_0x1869f5(0x150)])||accessibilityHelper['shouldScanTestForAccessibility'](_0x1f3a19['titlePath'](),!![]),_0x5cffe3=globals['getGlobal'](_0x4d728e[_0x1869f5(0x1e8)]);_0x559715[_0x4d728e[_0x1869f5(0x1fe)]]=_0x4d728e[_0x1869f5(0x1ab)](_0x5cffe3,_0x397b92);}if(_0x4d728e[_0x1869f5(0x1fb)](_0x2a3465,FRAMEWORKS[_0x1869f5(0x1a6)])){const _0x286f71=_0x4d728e['aFHYK'](_0x4d728e[_0x1869f5(0x1b9)](_0x3bcaae[_0x1869f5(0x1a5)]['join']('\x20'),'\x20'),_0x1f3a19[_0x1869f5(0x1b4)]),_0x4b7faf=globals['getGlobal'](_0x4d728e['qdTpM'])||accessibilityHelper[_0x1869f5(0x19c)](_0x286f71,![]),_0x4b5e85=browserStackGlobals[_0x1869f5(0x1cf)];_0x559715[_0x4d728e[_0x1869f5(0x1fe)]]=_0x4d728e[_0x1869f5(0x1ab)](_0x4b5e85,_0x4b7faf);}if(_0x4d728e['TyRqW'](_0x2a3465,FRAMEWORKS['PLAYWRIGHT'])){if(_0x4d728e['fytkZ'](_0x3d22a1,_0x4d728e[_0x1869f5(0x192)]))return;_0x559715[_0x4d728e['LpfFv']]=PWTestDetails[_0x1869f5(0x163)](_0x3bcaae[_0x1869f5(0x1f4)]);}if(_0x4d728e['fytkZ'](_0x2a3465,FRAMEWORKS['CODECEPT'])){const _0x3e9143=accessibilityHelper['shouldScanTestForAccessibility'](_0x1f3a19[_0x1869f5(0x1e5)](),!![]),_0x2e65f6=global['accessibilityPlatform'];_0x559715[_0x4d728e[_0x1869f5(0x1fe)]]=_0x4d728e[_0x1869f5(0x1ab)](_0x2e65f6,_0x3e9143);}if(_0x4d728e[_0x1869f5(0x1f3)](_0x2a3465,FRAMEWORKS['CUCUMBER'])){const _0x2d47e1=accessibilityHelper['shouldScanTestForAccessibility'](null,![],_0x3bcaae['tags']),_0x582795=globals[_0x1869f5(0x1a0)](_0x4d728e[_0x1869f5(0x1e8)]);_0x559715[_0x4d728e[_0x1869f5(0x1fe)]]=_0x4d728e[_0x1869f5(0x16d)](_0x582795,_0x2d47e1);}_0x3bcaae[_0x4d728e['qJwHb']]=_0x559715;}},exports[a127_0xd86eb2(0x154)]=_0x3118e0=>{const _0x4b6e24=a127_0xd86eb2,_0xd023c6={};_0xd023c6[_0x4b6e24(0x1f6)]=function(_0x1c1baa,_0x4ba983){return _0x1c1baa>_0x4ba983;};const _0x5209eb=_0xd023c6;let _0x25a295={};if(_0x5209eb[_0x4b6e24(0x1f6)](Object[_0x4b6e24(0x1ce)](testData)[_0x4b6e24(0x17d)],0x0))return testData;_0x25a295=JestTestDetails[_0x4b6e24(0x158)]();if(_0x5209eb[_0x4b6e24(0x1f6)](Object[_0x4b6e24(0x1ce)](_0x25a295)['length'],0x0))return _0x25a295;return _0x25a295;},exports[a127_0xd86eb2(0x190)]=(_0x14e02b,_0x18bcf3={})=>{const _0x4f195b=a127_0xd86eb2;if(bsSetupHelper[_0x4f195b(0x196)](_0x18bcf3[_0x4f195b(0x1b5)]))return;switch(_0x14e02b){case FRAMEWORKS[_0x4f195b(0x1ea)]:testData=_0x18bcf3[_0x4f195b(0x1b5)];break;case FRAMEWORKS[_0x4f195b(0x1a6)]:JestTestDetails[_0x4f195b(0x1ba)](_0x18bcf3[_0x4f195b(0x1b5)]);break;default:break;}},exports['getAccessibilityValueFromYml']=_0x3fadf9=>{const _0xa106b7=a127_0xd86eb2,_0x53a5d1={};_0x53a5d1[_0xa106b7(0x187)]=function(_0x76e629,_0x280bf1){return _0x76e629!==_0x280bf1;},_0x53a5d1[_0xa106b7(0x19b)]=function(_0x355d99,_0x35f2bd){return _0x355d99!==_0x35f2bd;};const _0x117f28=_0x53a5d1;if(_0x117f28['JcSvS'](_0x3fadf9[_0xa106b7(0x172)],null)&&_0x117f28['JcSvS'](_0x3fadf9[_0xa106b7(0x172)],undefined))return _0x3fadf9[_0xa106b7(0x172)];let _0xe21278=![],_0x21685b=![];if(_0x3fadf9['platforms'])for(const _0x3c0157 of _0x3fadf9[_0xa106b7(0x157)]){_0x117f28[_0xa106b7(0x187)](_0x3c0157[_0xa106b7(0x172)],null)&&_0x117f28[_0xa106b7(0x19b)](_0x3c0157[_0xa106b7(0x172)],undefined)&&(_0xe21278=_0xe21278||bsSetupHelper[_0xa106b7(0x17b)](_0x3c0157['accessibility']),_0x21685b=!![]);}if(_0x21685b)return _0xe21278;return null;},exports[a127_0xd86eb2(0x1ca)]=_0x915c92=>{const _0xdec4d2=a127_0xd86eb2,_0x155d6f=new OrchestrationUtils(_0x915c92);return _0x155d6f[_0xdec4d2(0x1f1)]();},exports['getProductMapForBuildStartCall']=_0x4fc1c1=>{const _0x319c94=a127_0xd86eb2,_0x2e470b={'NzXVJ':function(_0x362db2){return _0x362db2();}};let _0x412fb4=![],_0x1adea5=![];if(bsSetupHelper[_0x319c94(0x1ad)]()&&_0x4fc1c1[_0x319c94(0x181)])_0x1adea5=!![];else bsSetupHelper[_0x319c94(0x1ad)]()&&(_0x412fb4=!![]);return Object[_0x319c94(0x17c)]({'observability':_0x2e470b[_0x319c94(0x1dd)](isTestObservabilitySession),'accessibility':exports['getAccessibilityValueFromYml'](_0x4fc1c1),'percy':_0x4fc1c1['percy']||![],'automate':_0x412fb4,'app_automate':_0x1adea5,'turboscale':bsSetupHelper[_0x319c94(0x167)](_0x4fc1c1)},bsSetupHelper['getCentralUser']());};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a128_0x5ee01b=a128_0x59d0;(function(_0x40052a,_0x2c87ef){const _0x6e574b=a128_0x59d0,_0x5da88f=_0x40052a();while(!![]){try{const _0x14524e=-parseInt(_0x6e574b(0x1fe))/0x1*(parseInt(_0x6e574b(0x1f6))/0x2)+parseInt(_0x6e574b(0x202))/0x3+parseInt(_0x6e574b(0x1fa))/0x4+parseInt(_0x6e574b(0x203))/0x5+-parseInt(_0x6e574b(0x1fb))/0x6+parseInt(_0x6e574b(0x1ff))/0x7*(parseInt(_0x6e574b(0x1fd))/0x8)+-parseInt(_0x6e574b(0x200))/0x9*(parseInt(_0x6e574b(0x1f4))/0xa);if(_0x14524e===_0x2c87ef)break;else _0x5da88f['push'](_0x5da88f['shift']());}catch(_0x14f032){_0x5da88f['push'](_0x5da88f['shift']());}}}(a128_0x2ebb,0xda2b0));function a128_0x2ebb(){const _0x5bf082=['3258DSeNBt','bTExZ','592170ARRLIZ','4727605rVFlRS','./utilities','19730ieJxrt','cancel','145276rISMuJ','exports','fireFunnelTestEvent','nGQkT','7099216qscRso','3740280oJRAtU','QuYPr','8JWyOqi','10cfurEw','279209aAOmyM'];a128_0x2ebb=function(){return _0x5bf082;};return a128_0x2ebb();}function a128_0x59d0(_0x31cfa2,_0x272fb1){const _0x2ebb60=a128_0x2ebb();return a128_0x59d0=function(_0x59d02c,_0x480c1f){_0x59d02c=_0x59d02c-0x1f3;let _0x24496f=_0x2ebb60[_0x59d02c];return _0x24496f;},a128_0x59d0(_0x31cfa2,_0x272fb1);}const utilities=require(a128_0x5ee01b(0x1f3));module[a128_0x5ee01b(0x1f7)]=(_0xd9c97b,_0x260082,_0x308088,_0x556b6c,_0x353080,_0x5ec22f)=>{const _0x48890d=a128_0x5ee01b,_0x568d0b={'nGQkT':function(_0x19a16e,_0x3f6e4d){return _0x19a16e-_0x3f6e4d;},'QuYPr':function(_0x2568e8,_0x6ce98d){return _0x2568e8(_0x6ce98d);},'bTExZ':function(_0x38d511,_0xeaf720,_0x4624dc){return _0x38d511(_0xeaf720,_0x4624dc);}};let _0x5278a6,_0xf5a3bd=![];const _0x297465=new Promise((_0x150055,_0xb185b4)=>{const _0xa3a381=a128_0x59d0;_0x5278a6=_0x568d0b[_0xa3a381(0x201)](setTimeout,()=>{const _0x44f350=_0xa3a381;if(!_0xf5a3bd){const _0x3eeefb={'status':''+_0x260082,'timeTaken':_0x568d0b[_0x44f350(0x1f9)](new Date(),_0x556b6c)};utilities[_0x44f350(0x1f8)](_0x308088,_0x3eeefb,_0x353080,_0x5ec22f),_0x568d0b[_0x44f350(0x1fc)](_0xb185b4,new Error(_0x260082));}},_0xd9c97b);});return _0x297465[_0x48890d(0x1f5)]=()=>{const _0x16b68f=_0x48890d;_0xf5a3bd=!![],_0x568d0b[_0x16b68f(0x1fc)](clearTimeout,_0x5278a6);},_0x297465;};
|
package/src/helpers/utilities.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a129_0x2c1f27=a129_0x3b85;(function(_0x3a236f,_0x208a40){const _0x19c135=a129_0x3b85,_0x361c2b=_0x3a236f();while(!![]){try{const _0x1e29e7=-parseInt(_0x19c135(0x11a))/0x1+-parseInt(_0x19c135(0x115))/0x2*(parseInt(_0x19c135(0x108))/0x3)+parseInt(_0x19c135(0xdb))/0x4+-parseInt(_0x19c135(0xd2))/0x5*(-parseInt(_0x19c135(0x104))/0x6)+parseInt(_0x19c135(0xfc))/0x7+parseInt(_0x19c135(0xf4))/0x8+-parseInt(_0x19c135(0xfd))/0x9;if(_0x1e29e7===_0x208a40)break;else _0x361c2b['push'](_0x361c2b['shift']());}catch(_0xbb2dca){_0x361c2b['push'](_0x361c2b['shift']());}}}(a129_0x259d,0xaeaec));const os=require('os'),util=require(a129_0x2c1f27(0xe2)),fs=require('fs'),{getProductMap}=require(a129_0x2c1f27(0xd4)),logger=require(a129_0x2c1f27(0xc5))[a129_0x2c1f27(0xb5)],constants=require(a129_0x2c1f27(0x11f)),testHubConstants=require(a129_0x2c1f27(0xb9)),{getTransformPath}=require(a129_0x2c1f27(0xc6)),{FUNNEL_INSTRUMENTATION_API_URL}=require(a129_0x2c1f27(0x11f)),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a129_0x2c1f27(0x111)),PerformanceTester=require(a129_0x2c1f27(0xd7)),globals=require('./globals'),helper=require('./helper'),{isTestObservabilitySession}=require(a129_0x2c1f27(0xba));let unhandledErrors='';function a129_0x3b85(_0x4ef48a,_0x95b3c4){const _0x259d40=a129_0x259d();return a129_0x3b85=function(_0x3b858a,_0x939cc4){_0x3b858a=_0x3b858a-0xaa;let _0x2b6dd4=_0x259d40[_0x3b858a];return _0x2b6dd4;},a129_0x3b85(_0x4ef48a,_0x95b3c4);}exports[a129_0x2c1f27(0x103)]=async(_0x1111de,_0x62e229={},_0x28b0ed,_0x4dec65)=>{const _0x44105a=a129_0x2c1f27,_0x3ff493={'tlWUI':function(_0x393bbe,_0x1a82c9){return _0x393bbe===_0x1a82c9;},'QGQRA':'object','yBMGL':function(_0x31ba11,_0x345653){return _0x31ba11>_0x345653;},'pyVEk':function(_0x230815,_0x29cb44){return _0x230815>_0x29cb44;},'AmZdb':_0x44105a(0xb6),'navMa':function(_0x5a6603){return _0x5a6603();},'xFqlg':function(_0x33befc,_0x3bdbc1){return _0x33befc==_0x3bdbc1;},'NDbQK':_0x44105a(0xbe),'VBpGV':_0x44105a(0xb4),'MgoGo':function(_0x1cdbf5,_0x5d997c){return _0x1cdbf5===_0x5d997c;},'bbsfK':_0x44105a(0xd6),'dxCWo':function(_0xdb374a,_0x35dc72){return _0xdb374a!==_0x35dc72;},'VtGJA':_0x44105a(0x123),'yGdhG':function(_0x54988f,_0x2a09fb){return _0x54988f===_0x2a09fb;},'jFvbt':_0x44105a(0xff),'OHRlr':function(_0x190974,_0x6e855f){return _0x190974+_0x6e855f;},'xGtHr':_0x44105a(0xd8),'QRVuM':_0x44105a(0x10e),'ttLHu':function(_0x188261,_0xf53d4b){return _0x188261(_0xf53d4b);},'eMRtf':_0x44105a(0xc1),'lzUEP':_0x44105a(0xf2),'uMVDe':_0x44105a(0x107),'shDCl':_0x44105a(0x122),'BJRdX':_0x44105a(0xf8),'mkkcU':_0x44105a(0xf9),'NmAic':_0x44105a(0x136)};let _0x8c18d7=[];if(helper[_0x44105a(0x106)]()&&_0x3ff493[_0x44105a(0x132)](isTestObservabilitySession))_0x8c18d7=_0x28b0ed['app']?constants['APP_AUTOMATE_PRODUCTS']:constants[_0x44105a(0xcd)];else{if(_0x3ff493[_0x44105a(0x132)](isTestObservabilitySession))_0x8c18d7=constants[_0x44105a(0xd5)];else helper[_0x44105a(0x106)]()&&(_0x8c18d7=_0x28b0ed[_0x44105a(0x13b)]?constants[_0x44105a(0x10f)]:constants[_0x44105a(0xef)]);}let _0x38fec8=_0x28b0ed['buildIdentifier'];if(_0x3ff493['xFqlg'](_0x38fec8,null))_0x38fec8=_0x3ff493['NDbQK'];else _0x3ff493[_0x44105a(0x127)](_0x38fec8,undefined)&&(_0x38fec8=_0x3ff493[_0x44105a(0xc2)]);unhandledErrors&&_0x3ff493[_0x44105a(0xd9)](unhandledErrors[_0x44105a(0xae)],0x0)&&(_0x62e229[_0x44105a(0xf5)]=unhandledErrors);global[_0x44105a(0xe8)]&&(_0x62e229['sdkRunId']=global[_0x44105a(0xe8)]);try{if(_0x62e229['error']){if(_0x3ff493['MgoGo'](_0x4dec65,_0x3ff493[_0x44105a(0xab)])&&_0x3ff493[_0x44105a(0xea)](_0x62e229['error'][_0x44105a(0xae)],0x0)){const _0x184261={};_0x184261['os']='',_0x184261[_0x44105a(0xfb)]='',_0x184261[_0x44105a(0x10b)]='',_0x184261[_0x44105a(0xb8)]='';const _0x515425=_0x184261;let _0x12813c={};const _0x5cc9be=_0x62e229[_0x44105a(0xff)];_0x12813c=_0x5cc9be['reduce']((_0xc8d32f,_0x39ab9c)=>{for(const _0x50841a in _0x39ab9c){_0xc8d32f[_0x50841a]=_0x39ab9c[_0x50841a];}return _0xc8d32f;},{});const _0x5203a6={};_0x5203a6[_0x44105a(0xb6)]=_0x12813c,_0x62e229[_0x44105a(0xff)]=[Object[_0x44105a(0x114)]({},_0x515425,_0x5203a6)];}else{let _0x55b654=0x0;const _0x367213=_0x3ff493[_0x44105a(0xe3)](_0x4dec65,_0x3ff493[_0x44105a(0xeb)])?JSON[_0x44105a(0x109)](_0x62e229[_0x44105a(0xff)]):_0x62e229[_0x44105a(0xff)],_0x39a02c=Object[_0x44105a(0x118)](_0x367213);_0x39a02c[_0x44105a(0x112)](_0x169cc5=>{const _0x4d6726=_0x44105a;if(_0x3ff493['tlWUI'](typeof _0x169cc5,_0x3ff493[_0x4d6726(0x11e)])){const _0x1a0278=Object[_0x4d6726(0x118)](_0x169cc5);!_0x1a0278['every'](_0xfc2e9=>_0xfc2e9===null||_0xfc2e9===undefined||_0xfc2e9==='')&&(_0x55b654+=0x1);}});if(_0x3ff493[_0x44105a(0x134)](_0x55b654,0x0))delete _0x62e229[_0x3ff493['jFvbt']];else{const _0x19f3f5=[];Object[_0x44105a(0x12c)](_0x367213)[_0x44105a(0x112)](_0x1bfeb0=>{const _0x313cbb=_0x44105a,_0x3f9d38={'OJfMc':function(_0x1ec826,_0x5b63d2){return _0x3ff493['yBMGL'](_0x1ec826,_0x5b63d2);}},[_0x5bf743,_0x5618da,_0xd4b429,_0x411b92]=_0x1bfeb0[_0x313cbb(0xc9)](',\x20');let _0x544341={};if(!_0x411b92){const _0x153b1b={};_0x153b1b['deviceName']=_0x5bf743,_0x153b1b[_0x313cbb(0xfb)]=_0x5618da,_0x153b1b['browser']=_0xd4b429,_0x544341=_0x153b1b;}else{const _0x14442b={};_0x14442b['os']=_0x5bf743,_0x14442b['osVersion']=_0x5618da,_0x14442b[_0x313cbb(0x10b)]=_0xd4b429,_0x14442b[_0x313cbb(0xb8)]=_0x411b92,_0x544341=_0x14442b;}const _0x4d0d42={},_0x5bd794=_0x367213[_0x1bfeb0];Object[_0x313cbb(0x12c)](_0x5bd794)['forEach'](_0x354362=>{const _0x2c49f2=_0x313cbb;_0x3f9d38[_0x2c49f2(0xe0)](_0x5bd794[_0x354362][_0x2c49f2(0xae)],0x0)&&(_0x4d0d42[_0x354362]=_0x5bd794[_0x354362]);}),_0x3ff493[_0x313cbb(0xea)](Object[_0x313cbb(0x12c)](_0x4d0d42)[_0x313cbb(0xae)],0x0)&&(_0x544341[_0x3ff493[_0x313cbb(0xca)]]=_0x4d0d42,_0x19f3f5[_0x313cbb(0xb3)](_0x544341));}),_0x3ff493[_0x44105a(0xd9)](_0x19f3f5[_0x44105a(0xae)],0x0)?_0x62e229['error']=_0x19f3f5:delete _0x62e229[_0x3ff493[_0x44105a(0xb1)]];}}}}catch(_0x306237){delete _0x62e229[_0x3ff493['jFvbt']],logger[_0x44105a(0x121)](_0x3ff493[_0x44105a(0xed)](_0x3ff493[_0x44105a(0xad)],_0x306237));}const _0x329a69=helper[_0x44105a(0xde)](_0x28b0ed,_0x28b0ed[_0x44105a(0x105)]),_0x254369={'userName':helper['getUserName'](_0x28b0ed),'accessKey':helper['getAccessKey'](_0x28b0ed),'event_type':_0x1111de,'detectedFramework':_0x4dec65,'buildHashedId':globals['getGlobal'](_0x3ff493[_0x44105a(0xfe)]),'optimalHubUrl':helper[_0x44105a(0xc4)](),'event_properties':{'testhub_uuid':process['env'][testHubConstants[_0x44105a(0x101)][_0x44105a(0x12f)]]||'','sdkRunId':global[_0x44105a(0xe8)],'product_map':_0x3ff493[_0x44105a(0x128)](getProductMap,_0x28b0ed),'productMap':_0x3ff493[_0x44105a(0x128)](getProductMap,_0x28b0ed),'language_framework':_0x28b0ed[_0x44105a(0xc8)]||_0x3ff493['eMRtf'],'referrer':helper[_0x44105a(0xd3)](_0x4dec65),'framework':_0x28b0ed[_0x44105a(0x105)],'frameworkVersion':helper[_0x44105a(0xe9)](_0x4dec65),'automationFramework':_0x329a69[_0x44105a(0xf7)],'automationFrameworkVersion':_0x329a69['version'],'language':_0x3ff493[_0x44105a(0x10d)],'languageVersion':process[_0x44105a(0x125)],'product':_0x8c18d7,'buildName':_0x28b0ed['buildName']||_0x3ff493['VBpGV'],'buildIdentifier':_0x38fec8,'os':os[_0x44105a(0x11b)]()||_0x3ff493[_0x44105a(0x124)],'hostname':os[_0x44105a(0x135)]()||_0x3ff493[_0x44105a(0x124)],..._0x62e229}};try{_0x3ff493[_0x44105a(0x127)](_0x1111de,_0x3ff493['uMVDe'])&&(_0x254369['event_properties'][_0x44105a(0x100)]=helper[_0x44105a(0xce)](_0x28b0ed)),_0x3ff493[_0x44105a(0x11d)](_0x4dec65,_0x3ff493[_0x44105a(0xeb)])?_0x254369['event_properties']['playwrightVersion']=helper[_0x44105a(0x119)]['apply'](null,_0x3ff493[_0x44105a(0x132)](getTransformPath),!![]):_0x254369[_0x44105a(0xc0)][_0x44105a(0x131)]=helper['getPackageVersion'](_0x3ff493[_0x44105a(0x102)]);}catch(_0x45d50a){logger['debug'](_0x44105a(0xcf)+_0x45d50a);}const _0x50df84={};_0x50df84[_0x44105a(0x13e)]=_0x3ff493[_0x44105a(0x113)];const _0x7a4653={'headers':_0x50df84,'body':_0x254369,'auth':{'user':helper[_0x44105a(0x138)](_0x28b0ed),'pass':helper[_0x44105a(0x11c)](_0x28b0ed)},'json':!![]};logger[_0x44105a(0x121)](_0x44105a(0xbc)+JSON[_0x44105a(0x10c)](_0x7a4653[_0x44105a(0x13c)])[_0x44105a(0xf3)](new RegExp(helper['getUserName'](_0x28b0ed),'g'),_0x3ff493['mkkcU'])['replace'](new RegExp(helper[_0x44105a(0x11c)](_0x28b0ed),'g'),_0x3ff493[_0x44105a(0xdc)]));try{const _0x2a700a=await helper[_0x44105a(0xaf)](_0x3ff493['NmAic'],constants['FUNNEL_INSTRUMENTATION_API_URL'],_0x7a4653,_0x28b0ed);logger[_0x44105a(0x121)](_0x44105a(0x117)+_0x1111de+_0x44105a(0x110)+util[_0x44105a(0x120)]('%j',_0x2a700a));}catch(_0x5781ec){logger[_0x44105a(0x121)](_0x44105a(0xee)+FUNNEL_INSTRUMENTATION_API_URL+'\x20:\x20'+util[_0x44105a(0x120)](_0x5781ec));}},exports[a129_0x2c1f27(0x130)]=async _0x6260c1=>{const _0x1ace2e=a129_0x2c1f27,_0x19d88d={'ZrqLv':function(_0x5e586c){return _0x5e586c();},'TeNsn':_0x1ace2e(0xe5),'QYfks':_0x1ace2e(0xb0),'cehbL':_0x1ace2e(0x107),'fvipd':function(_0x56f25c,_0xc09617,_0x2b11db){return _0x56f25c(_0xc09617,_0x2b11db);},'FoabR':function(_0x26e755,_0x1e6374){return _0x26e755+_0x1e6374;},'DzcdS':_0x1ace2e(0xc7)};try{await _0x6260c1['stopPercy'](),_0x19d88d['ZrqLv'](printNudgeLocalNotSetError);const _0x1fb84f={};_0x1fb84f[_0x1ace2e(0xff)]=_0x6260c1[_0x1ace2e(0xbf)]?_0x6260c1[_0x1ace2e(0xbf)]:'{}';const _0x5bbffc=_0x1fb84f,_0x552699=Object['assign']({},_0x5bbffc);!!_0x6260c1['killSignal']&&(_0x552699[_0x19d88d[_0x1ace2e(0xe7)]]={'reason':_0x19d88d[_0x1ace2e(0x116)],'signal':_0x6260c1[_0x1ace2e(0x12e)]});unhandledErrors=_0x6260c1[_0x1ace2e(0xbd)][_0x1ace2e(0xe4)]('\x0a');let _0x10af5b,_0x3d1313,_0x1fccf0;helper[_0x1ace2e(0xcb)](_0x6260c1[_0x1ace2e(0xc3)])?([_0x10af5b,_0x3d1313]=await helper[_0x1ace2e(0x126)](_0x6260c1[_0x1ace2e(0xc3)]),[_0x1fccf0]=await Promise[_0x1ace2e(0xcc)]([helper[_0x1ace2e(0xd0)](_0x10af5b,_0x6260c1['config']),exports[_0x1ace2e(0x103)](_0x19d88d[_0x1ace2e(0xf0)],_0x552699,_0x6260c1[_0x1ace2e(0xc3)],_0x6260c1[_0x1ace2e(0x105)])])):([_0x10af5b,_0x3d1313]=await helper[_0x1ace2e(0xac)](_0x6260c1['config']),[_0x1fccf0]=await Promise[_0x1ace2e(0xcc)]([helper[_0x1ace2e(0xbb)](_0x10af5b,_0x6260c1['config']),exports[_0x1ace2e(0x103)](_0x19d88d[_0x1ace2e(0xf0)],_0x552699,_0x6260c1[_0x1ace2e(0xc3)],_0x6260c1['framework'])])),_0x1fccf0&&await _0x19d88d[_0x1ace2e(0xaa)](generateCIArtifacts,_0x1fccf0,_0x3d1313),logger[_0x1ace2e(0xf1)]('SDK\x20run\x20ended\x20for\x20id:\x20'+_0x6260c1['sdkRunId']+_0x1ace2e(0xdf)+process['env']['BROWSERSTACK_TESTHUB_UUID']),await helper[_0x1ace2e(0xf6)](_0x6260c1[_0x1ace2e(0xc3)]);}catch(_0x5cab33){logger[_0x1ace2e(0x121)](_0x19d88d[_0x1ace2e(0xb7)](_0x19d88d[_0x1ace2e(0x12b)],_0x5cab33));}helper[_0x1ace2e(0xd1)]();},exports[a129_0x2c1f27(0x13d)]=_0x3da73d=>{const _0x343451=a129_0x2c1f27,_0x3f731e={'HLAze':function(_0x253ee3,_0x3e8055){return _0x253ee3 instanceof _0x3e8055;},'JzeDO':function(_0x387682,_0x4bfe49){return _0x387682(_0x4bfe49);}};try{if(_0x3f731e[_0x343451(0xe6)](_0x3da73d,Error))return _0x3da73d['stack']||_0x3da73d[_0x343451(0x13a)]();return _0x3f731e[_0x343451(0xda)](String,_0x3da73d);}catch(_0x538d7b){return _0x3da73d?_0x3da73d[_0x343451(0x13a)]():'';}},exports[a129_0x2c1f27(0x12a)]=_0x2f038d=>{const _0x47c88a=a129_0x2c1f27,_0x539bce={};_0x539bce[_0x47c88a(0x12d)]=function(_0x3061c1,_0x447bfb){return _0x3061c1===_0x447bfb;};const _0xbd6caa=_0x539bce;return!_0x2f038d||_0xbd6caa[_0x47c88a(0x12d)](_0x2f038d[_0x47c88a(0xe1)](),'');},exports[a129_0x2c1f27(0x10a)]=_0x4d17b8=>{const _0x4ebdf1=a129_0x2c1f27,_0x5eb076={};_0x5eb076[_0x4ebdf1(0x129)]=function(_0x155394,_0x40b8f6){return _0x155394|_0x40b8f6;};const _0x303dfb=_0x5eb076;try{return fs[_0x4ebdf1(0x137)](_0x4d17b8,_0x303dfb[_0x4ebdf1(0x129)](fs['constants'][_0x4ebdf1(0xdd)],fs[_0x4ebdf1(0x133)][_0x4ebdf1(0xfa)])),!![];}catch(_0x4d7375){return![];}},exports['setReadWriteExecuteAccess']=_0xb3802c=>{const _0xd549c4=a129_0x2c1f27;try{fs[_0xd549c4(0xb2)](_0xb3802c,0x1ff),logger[_0xd549c4(0x121)](_0xd549c4(0x139)+_0xb3802c+'\x20has\x20now\x20read/write/execute\x20permissions.');}catch(_0x34d92b){logger[_0xd549c4(0xff)](_0xd549c4(0xec)+exports[_0xd549c4(0x13d)](_0x34d92b));}};function a129_0x259d(){const _0x5c3ef8=['stringify','lzUEP','_buildHashedId','APP_AUTOMATE','\x20response\x20-\x20','./helper','forEach','BJRdX','assign','26MbRQSO','QYfks','API\x20Event\x20','values','requirePWModule','428469WYhpCq','type','getAccessKey','MgoGo','QGQRA','../bin/utils/constants','format','debug','selenium-webdriver','Playwright','eMRtf','version','getTurboScaleBuildLink','tlWUI','ttLHu','rJIiB','isNullOrEmpty','DzcdS','keys','OYLNi','killSignal','BROWSERSTACK_TESTHUB_UUID','finalExecution','seleniumVersion','navMa','constants','yGdhG','hostname','POST','accessSync','getUserName','Directory\x20','toString','app','body','getStackTraceAsString','content-type','fvipd','bbsfK','getBuildLink','xGtHr','length','nodeRequest','user_killed','jFvbt','chmodSync','push','undefined','winstonLogger','tests','FoabR','browserVersion','../helpers/testhub/constants','./test-observability/utils','getSessionsList','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','unhandledErrors','null','errorMessage','event_properties','unknown','VBpGV','config','getOptimalHubUrl','./logger','../bin/playwright/reporter/pwUtils','Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20','source','split','AmZdb','isTurboScaleSession','all','AUTOMATE_PRODUCTS','sanitizeBrowserStackConfig','Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20','getTurboScaleSessionsList','notifyUpdate','5mgmmeb','getNodeAgent','./testhub/utils','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','codeceptjs','./performance/performance-tester','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','yBMGL','JzeDO','796232UqXDru','mkkcU','W_OK','getTestFrameworkDetails',',\x20testhub\x20id:\x20','OJfMc','trim','util','dxCWo','join','finishedMetadata','HLAze','TeNsn','sdkRunId','getFrameworkVersion','pyVEk','VtGJA','Failed\x20to\x20set\x20directory\x20access:\x20','OHRlr','Error\x20in\x20firing\x20request\x20to\x20','AUTOMATE','cehbL','info','nodejs','replace','8707144PRPeaP','globalException','sendLogs','name','application/json','[REDACTED]','X_OK','osVersion','635369KzaiXi','3636504ocQKFx','QRVuM','error','browserStackConfig','ENV_VAR','shDCl','fireFunnelTestEvent','8433990eGZcwn','framework','isBrowserstackInfra','SDKTestSuccessful','285198LceIDK','parse','isModifiable','browser'];a129_0x259d=function(){return _0x5c3ef8;};return a129_0x259d();}
|
|
1
|
+
const a129_0x2e4898=a129_0x5534;(function(_0x20e71c,_0x57dc07){const _0x375556=a129_0x5534,_0x53cb33=_0x20e71c();while(!![]){try{const _0xd487e8=-parseInt(_0x375556(0x130))/0x1+-parseInt(_0x375556(0x16e))/0x2+-parseInt(_0x375556(0x113))/0x3+-parseInt(_0x375556(0x146))/0x4*(parseInt(_0x375556(0x186))/0x5)+parseInt(_0x375556(0x177))/0x6+parseInt(_0x375556(0x136))/0x7*(-parseInt(_0x375556(0x13b))/0x8)+parseInt(_0x375556(0x179))/0x9*(parseInt(_0x375556(0x14f))/0xa);if(_0xd487e8===_0x57dc07)break;else _0x53cb33['push'](_0x53cb33['shift']());}catch(_0x43f0f8){_0x53cb33['push'](_0x53cb33['shift']());}}}(a129_0x12b9,0xc9e05));function a129_0x5534(_0x2e26b6,_0x3a000a){const _0x12b970=a129_0x12b9();return a129_0x5534=function(_0x5534d1,_0x2e87ca){_0x5534d1=_0x5534d1-0x103;let _0x2a60a9=_0x12b970[_0x5534d1];return _0x2a60a9;},a129_0x5534(_0x2e26b6,_0x3a000a);}const os=require('os'),util=require(a129_0x2e4898(0x112)),fs=require('fs'),{getProductMap}=require(a129_0x2e4898(0x127)),logger=require(a129_0x2e4898(0x155))['winstonLogger'],constants=require(a129_0x2e4898(0x148)),testHubConstants=require(a129_0x2e4898(0x17f)),{getTransformPath}=require(a129_0x2e4898(0x171)),{FUNNEL_INSTRUMENTATION_API_URL}=require('../bin/utils/constants'),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a129_0x2e4898(0x13e)),PerformanceTester=require(a129_0x2e4898(0x157)),globals=require(a129_0x2e4898(0x134)),helper=require(a129_0x2e4898(0x13e)),{isTestObservabilitySession}=require('./test-observability/utils');function a129_0x12b9(){const _0xa5063b=['SDK\x20run\x20ended\x20for\x20id:\x20','isModifiable','Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20','gGJTj','getTestFrameworkDetails','stack','getUserName','BROWSERSTACK_TESTHUB_UUID','apply','framework','playwrightVersion','[REDACTED]','rVRYS','source','util','1245318lSfHyR','Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20','phoem','forEach','user_killed','kfDSc','Error\x20in\x20firing\x20request\x20to\x20','browser','stopPercy','accessSync','API\x20Event\x20','killSignal','chmodSync','codeceptjs','Kxkbx','FUNNEL_INSTRUMENTATION_API_URL','getBuildLink','getPackageVersion','Playwright','\x20:\x20','./testhub/utils','getSessionsList','SwewY','split','setReadWriteExecuteAccess','fREic','Failed\x20to\x20set\x20directory\x20access:\x20','HYwGj','W_OK','1518505EoALQg','selenium-webdriver','sYrnj','name','./globals','replace','20321BkrKfi','ywwBI','version','assign','body','2504TlNJza','application/json','lNbnE','./helper','iXYnR','LAqak','X_OK','osVersion','amfAB','VZjew','sendLogs','388WWOItj','debug','../bin/utils/constants','undefined','\x20has\x20now\x20read/write/execute\x20permissions.','getStackTraceAsString','event_properties','length','buildName','49729070RvNxQc','finalExecution','APP_AUTOMATE_PRODUCTS','constants','jbyuF','config','./logger','AUTOMATE','./performance/performance-tester','KWAll','parse','all','error','getTurboScaleBuildLink','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','hostname','env','finishedMetadata','JFSyX','hYbuD','values','eCaSI','Nebbt','ztfvW','ijfFe','stringify','content-type','Ceoet','keys','SDKTestSuccessful','mWOJg','2728562GpaLlA','browserStackConfig','getAccessKey','../bin/playwright/reporter/pwUtils','getGlobal','MRWae','DrzFq','WItqU','frjFJ','5236140vesUSl','sdkRunId','9WlHgLU','type','unknown','SxNrO','BCjtl','app','../helpers/testhub/constants','AUgWn','seleniumVersion','getNodeAgent','toString','zWDUx','pOSgm','41865tZXPoV','POST','browserVersion','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','null','tests','YpUOE','sanitizeBrowserStackConfig','GunfM','fireFunnelTestEvent'];a129_0x12b9=function(){return _0xa5063b;};return a129_0x12b9();}let unhandledErrors='';exports[a129_0x2e4898(0x103)]=async(_0x3d4da5,_0x1cdbf1={},_0x33c10e,_0xe0da9f)=>{const _0x32cd29=a129_0x2e4898,_0x3bcb1f={'mWOJg':function(_0x13b967,_0x362aee){return _0x13b967===_0x362aee;},'hbtuK':'object','YpUOE':function(_0x23b99f,_0x5e9194){return _0x23b99f>_0x5e9194;},'ywwBI':function(_0x11aff3,_0x167338){return _0x11aff3>_0x167338;},'rVRYS':_0x32cd29(0x18b),'phoem':function(_0x440e3c){return _0x440e3c();},'frjFJ':function(_0x3e9b6f,_0x4b1b8d){return _0x3e9b6f==_0x4b1b8d;},'kfDSc':_0x32cd29(0x18a),'SwewY':_0x32cd29(0x149),'Ceoet':function(_0x3e4299,_0x20c8dd){return _0x3e4299===_0x20c8dd;},'OmGoa':_0x32cd29(0x120),'LAqak':function(_0x51b1d7,_0xf37b4c){return _0x51b1d7>_0xf37b4c;},'hYbuD':function(_0x975bf2,_0x5df160){return _0x975bf2!==_0x5df160;},'Nebbt':_0x32cd29(0x125),'pcVGO':function(_0xd34b2c,_0x2bbc16){return _0xd34b2c===_0x2bbc16;},'jbyuF':_0x32cd29(0x15b),'ijfFe':function(_0x59a00c,_0x44114d){return _0x59a00c+_0x44114d;},'eCaSI':_0x32cd29(0x15d),'AUgWn':'_buildHashedId','SxNrO':function(_0x4fcea0,_0x3edf3c){return _0x4fcea0(_0x3edf3c);},'sYrnj':function(_0x535f57,_0x3ab895){return _0x535f57(_0x3ab895);},'DrzFq':_0x32cd29(0x17b),'amfAB':'nodejs','fREic':function(_0x5ef51a,_0x10c96d){return _0x5ef51a===_0x10c96d;},'GunfM':_0x32cd29(0x16c),'KWAll':function(_0x3d58e0){return _0x3d58e0();},'BCjtl':_0x32cd29(0x131),'zWDUx':_0x32cd29(0x13c),'pOSgm':_0x32cd29(0x10f),'MRWae':_0x32cd29(0x187)};let _0x4a7be7=[];if(helper['isBrowserstackInfra']()&&_0x3bcb1f[_0x32cd29(0x115)](isTestObservabilitySession))_0x4a7be7=_0x33c10e[_0x32cd29(0x17e)]?constants[_0x32cd29(0x151)]:constants['AUTOMATE_PRODUCTS'];else{if(_0x3bcb1f[_0x32cd29(0x115)](isTestObservabilitySession))_0x4a7be7=constants[_0x32cd29(0x189)];else helper['isBrowserstackInfra']()&&(_0x4a7be7=_0x33c10e[_0x32cd29(0x17e)]?constants['APP_AUTOMATE']:constants[_0x32cd29(0x156)]);}let _0x1928a6=_0x33c10e['buildIdentifier'];if(_0x3bcb1f[_0x32cd29(0x176)](_0x1928a6,null))_0x1928a6=_0x3bcb1f[_0x32cd29(0x118)];else _0x3bcb1f[_0x32cd29(0x16d)](_0x1928a6,undefined)&&(_0x1928a6=_0x3bcb1f[_0x32cd29(0x129)]);unhandledErrors&&_0x3bcb1f[_0x32cd29(0x18c)](unhandledErrors[_0x32cd29(0x14d)],0x0)&&(_0x1cdbf1['globalException']=unhandledErrors);global['sdkRunId']&&(_0x1cdbf1[_0x32cd29(0x178)]=global[_0x32cd29(0x178)]);try{if(_0x1cdbf1[_0x32cd29(0x15b)]){if(_0x3bcb1f[_0x32cd29(0x16a)](_0xe0da9f,_0x3bcb1f['OmGoa'])&&_0x3bcb1f[_0x32cd29(0x140)](_0x1cdbf1['error'][_0x32cd29(0x14d)],0x0)){const _0x178f64={};_0x178f64['os']='',_0x178f64[_0x32cd29(0x142)]='',_0x178f64[_0x32cd29(0x11a)]='',_0x178f64[_0x32cd29(0x188)]='';const _0x2df24e=_0x178f64;let _0x4b3528={};const _0x4f4b92=_0x1cdbf1[_0x32cd29(0x15b)];_0x4b3528=_0x4f4b92['reduce']((_0x446913,_0x5e62de)=>{for(const _0x52a79f in _0x5e62de){_0x446913[_0x52a79f]=_0x5e62de[_0x52a79f];}return _0x446913;},{});const _0x442f07={};_0x442f07[_0x32cd29(0x18b)]=_0x4b3528,_0x1cdbf1[_0x32cd29(0x15b)]=[Object[_0x32cd29(0x139)]({},_0x2df24e,_0x442f07)];}else{let _0x489f00=0x0;const _0x3f6b65=_0x3bcb1f[_0x32cd29(0x162)](_0xe0da9f,_0x3bcb1f[_0x32cd29(0x165)])?JSON[_0x32cd29(0x159)](_0x1cdbf1[_0x32cd29(0x15b)]):_0x1cdbf1[_0x32cd29(0x15b)],_0x358e8c=Object[_0x32cd29(0x163)](_0x3f6b65);_0x358e8c[_0x32cd29(0x116)](_0x542296=>{if(_0x3bcb1f['mWOJg'](typeof _0x542296,_0x3bcb1f['hbtuK'])){const _0x13a665=Object['values'](_0x542296);!_0x13a665['every'](_0x5546f4=>_0x5546f4===null||_0x5546f4===undefined||_0x5546f4==='')&&(_0x489f00+=0x1);}});if(_0x3bcb1f['pcVGO'](_0x489f00,0x0))delete _0x1cdbf1[_0x3bcb1f['jbyuF']];else{const _0x18095d=[];Object[_0x32cd29(0x16b)](_0x3f6b65)[_0x32cd29(0x116)](_0x4d5fbb=>{const _0x3e4edd=_0x32cd29,_0x3ec136={'Kxkbx':function(_0x2b24e4,_0x5b54c3){const _0x52cb1e=a129_0x5534;return _0x3bcb1f[_0x52cb1e(0x18c)](_0x2b24e4,_0x5b54c3);}},[_0x121372,_0x1ed9e0,_0x13201d,_0x386998]=_0x4d5fbb[_0x3e4edd(0x12a)](',\x20');let _0x3636a2={};if(!_0x386998){const _0x86fe7b={};_0x86fe7b['deviceName']=_0x121372,_0x86fe7b['osVersion']=_0x1ed9e0,_0x86fe7b[_0x3e4edd(0x11a)]=_0x13201d,_0x3636a2=_0x86fe7b;}else{const _0x342e6b={};_0x342e6b['os']=_0x121372,_0x342e6b[_0x3e4edd(0x142)]=_0x1ed9e0,_0x342e6b[_0x3e4edd(0x11a)]=_0x13201d,_0x342e6b[_0x3e4edd(0x188)]=_0x386998,_0x3636a2=_0x342e6b;}const _0x4e85a0={},_0x2f956d=_0x3f6b65[_0x4d5fbb];Object['keys'](_0x2f956d)[_0x3e4edd(0x116)](_0x159586=>{const _0x31e7a6=_0x3e4edd;_0x3ec136[_0x31e7a6(0x121)](_0x2f956d[_0x159586][_0x31e7a6(0x14d)],0x0)&&(_0x4e85a0[_0x159586]=_0x2f956d[_0x159586]);}),_0x3bcb1f[_0x3e4edd(0x137)](Object[_0x3e4edd(0x16b)](_0x4e85a0)[_0x3e4edd(0x14d)],0x0)&&(_0x3636a2[_0x3bcb1f[_0x3e4edd(0x110)]]=_0x4e85a0,_0x18095d['push'](_0x3636a2));}),_0x3bcb1f[_0x32cd29(0x137)](_0x18095d['length'],0x0)?_0x1cdbf1['error']=_0x18095d:delete _0x1cdbf1[_0x3bcb1f[_0x32cd29(0x153)]];}}}}catch(_0xcdb78a){delete _0x1cdbf1[_0x3bcb1f['jbyuF']],logger['debug'](_0x3bcb1f[_0x32cd29(0x167)](_0x3bcb1f[_0x32cd29(0x164)],_0xcdb78a));}const _0x18df83=helper[_0x32cd29(0x108)](_0x33c10e,_0x33c10e[_0x32cd29(0x10d)]),_0x18440a={'userName':helper['getUserName'](_0x33c10e),'accessKey':helper[_0x32cd29(0x170)](_0x33c10e),'event_type':_0x3d4da5,'detectedFramework':_0xe0da9f,'buildHashedId':globals[_0x32cd29(0x172)](_0x3bcb1f[_0x32cd29(0x180)]),'optimalHubUrl':helper['getOptimalHubUrl'](),'event_properties':{'testhub_uuid':process['env'][testHubConstants['ENV_VAR'][_0x32cd29(0x10b)]]||'','sdkRunId':global[_0x32cd29(0x178)],'product_map':_0x3bcb1f[_0x32cd29(0x17c)](getProductMap,_0x33c10e),'productMap':_0x3bcb1f[_0x32cd29(0x132)](getProductMap,_0x33c10e),'language_framework':_0x33c10e[_0x32cd29(0x111)]||_0x3bcb1f[_0x32cd29(0x174)],'referrer':helper[_0x32cd29(0x182)](_0xe0da9f),'framework':_0x33c10e[_0x32cd29(0x10d)],'frameworkVersion':helper['getFrameworkVersion'](_0xe0da9f),'automationFramework':_0x18df83[_0x32cd29(0x133)],'automationFrameworkVersion':_0x18df83['version'],'language':_0x3bcb1f[_0x32cd29(0x143)],'languageVersion':process[_0x32cd29(0x138)],'product':_0x4a7be7,'buildName':_0x33c10e[_0x32cd29(0x14e)]||_0x3bcb1f[_0x32cd29(0x129)],'buildIdentifier':_0x1928a6,'os':os[_0x32cd29(0x17a)]()||_0x3bcb1f[_0x32cd29(0x174)],'hostname':os[_0x32cd29(0x15e)]()||_0x3bcb1f['DrzFq'],..._0x1cdbf1}};try{_0x3bcb1f[_0x32cd29(0x12c)](_0x3d4da5,_0x3bcb1f[_0x32cd29(0x18e)])&&(_0x18440a[_0x32cd29(0x14c)][_0x32cd29(0x16f)]=helper[_0x32cd29(0x18d)](_0x33c10e)),_0x3bcb1f['pcVGO'](_0xe0da9f,_0x3bcb1f[_0x32cd29(0x165)])?_0x18440a[_0x32cd29(0x14c)][_0x32cd29(0x10e)]=helper['requirePWModule'][_0x32cd29(0x10c)](null,_0x3bcb1f[_0x32cd29(0x158)](getTransformPath),!![]):_0x18440a['event_properties'][_0x32cd29(0x181)]=helper[_0x32cd29(0x124)](_0x3bcb1f[_0x32cd29(0x17d)]);}catch(_0xb76bf6){logger['debug'](_0x32cd29(0x114)+_0xb76bf6);}const _0x1aba6b={};_0x1aba6b[_0x32cd29(0x169)]=_0x3bcb1f[_0x32cd29(0x184)];const _0x3a2656={'headers':_0x1aba6b,'body':_0x18440a,'auth':{'user':helper[_0x32cd29(0x10a)](_0x33c10e),'pass':helper[_0x32cd29(0x170)](_0x33c10e)},'json':!![]};logger[_0x32cd29(0x147)]('Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20'+JSON[_0x32cd29(0x168)](_0x3a2656[_0x32cd29(0x13a)])[_0x32cd29(0x135)](new RegExp(helper['getUserName'](_0x33c10e),'g'),_0x3bcb1f[_0x32cd29(0x185)])[_0x32cd29(0x135)](new RegExp(helper['getAccessKey'](_0x33c10e),'g'),_0x3bcb1f[_0x32cd29(0x185)]));try{const _0x407f72=await helper['nodeRequest'](_0x3bcb1f[_0x32cd29(0x173)],constants[_0x32cd29(0x122)],_0x3a2656,_0x33c10e);logger['debug'](_0x32cd29(0x11d)+_0x3d4da5+'\x20response\x20-\x20'+util['format']('%j',_0x407f72));}catch(_0x572bf0){logger['debug'](_0x32cd29(0x119)+FUNNEL_INSTRUMENTATION_API_URL+_0x32cd29(0x126)+util['format'](_0x572bf0));}},exports[a129_0x2e4898(0x150)]=async _0x2a0ab4=>{const _0x1bc1c2=a129_0x2e4898,_0x32d156={'xugwJ':function(_0x51e078){return _0x51e078();},'XRetj':_0x1bc1c2(0x160),'WItqU':_0x1bc1c2(0x117),'ztfvW':_0x1bc1c2(0x16c),'iXYnR':function(_0x3fce08,_0x457bf9,_0x2a29e0){return _0x3fce08(_0x457bf9,_0x2a29e0);},'gGJTj':function(_0x83d03,_0x3f866e){return _0x83d03+_0x3f866e;},'RhxVL':_0x1bc1c2(0x106)};try{await _0x2a0ab4[_0x1bc1c2(0x11b)](),_0x32d156['xugwJ'](printNudgeLocalNotSetError);const _0x17703e={};_0x17703e[_0x1bc1c2(0x15b)]=_0x2a0ab4['errorMessage']?_0x2a0ab4['errorMessage']:'{}';const _0x4b16cb=_0x17703e,_0x1c0bab=Object[_0x1bc1c2(0x139)]({},_0x4b16cb);!!_0x2a0ab4[_0x1bc1c2(0x11e)]&&(_0x1c0bab[_0x32d156['XRetj']]={'reason':_0x32d156[_0x1bc1c2(0x175)],'signal':_0x2a0ab4[_0x1bc1c2(0x11e)]});unhandledErrors=_0x2a0ab4['unhandledErrors']['join']('\x0a');let _0x4131bc,_0x2300f3,_0x1f591a;helper['isTurboScaleSession'](_0x2a0ab4[_0x1bc1c2(0x154)])?([_0x4131bc,_0x2300f3]=await helper[_0x1bc1c2(0x15c)](_0x2a0ab4[_0x1bc1c2(0x154)]),[_0x1f591a]=await Promise[_0x1bc1c2(0x15a)]([helper['getTurboScaleSessionsList'](_0x4131bc,_0x2a0ab4[_0x1bc1c2(0x154)]),exports[_0x1bc1c2(0x103)](_0x32d156[_0x1bc1c2(0x166)],_0x1c0bab,_0x2a0ab4['config'],_0x2a0ab4[_0x1bc1c2(0x10d)])])):([_0x4131bc,_0x2300f3]=await helper[_0x1bc1c2(0x123)](_0x2a0ab4[_0x1bc1c2(0x154)]),[_0x1f591a]=await Promise[_0x1bc1c2(0x15a)]([helper[_0x1bc1c2(0x128)](_0x4131bc,_0x2a0ab4[_0x1bc1c2(0x154)]),exports['fireFunnelTestEvent'](_0x32d156[_0x1bc1c2(0x166)],_0x1c0bab,_0x2a0ab4['config'],_0x2a0ab4[_0x1bc1c2(0x10d)])])),_0x1f591a&&await _0x32d156[_0x1bc1c2(0x13f)](generateCIArtifacts,_0x1f591a,_0x2300f3),logger['info'](_0x1bc1c2(0x104)+_0x2a0ab4[_0x1bc1c2(0x178)]+',\x20testhub\x20id:\x20'+process[_0x1bc1c2(0x15f)][_0x1bc1c2(0x10b)]),await helper[_0x1bc1c2(0x145)](_0x2a0ab4[_0x1bc1c2(0x154)]);}catch(_0xd3455b){logger[_0x1bc1c2(0x147)](_0x32d156[_0x1bc1c2(0x107)](_0x32d156['RhxVL'],_0xd3455b));}helper['notifyUpdate']();},exports[a129_0x2e4898(0x14b)]=_0x6bb664=>{const _0x3be877=a129_0x2e4898,_0x5e84ee={'VZjew':function(_0x41ae9b,_0x9d8df1){return _0x41ae9b instanceof _0x9d8df1;},'HYwGj':function(_0x10e9d,_0x1242ba){return _0x10e9d(_0x1242ba);}};try{if(_0x5e84ee[_0x3be877(0x144)](_0x6bb664,Error))return _0x6bb664[_0x3be877(0x109)]||_0x6bb664[_0x3be877(0x183)]();return _0x5e84ee[_0x3be877(0x12e)](String,_0x6bb664);}catch(_0x53c0ed){return _0x6bb664?_0x6bb664['toString']():'';}},exports['isNullOrEmpty']=_0x56b2de=>{const _0x361f5a=a129_0x2e4898,_0x227f48={};_0x227f48[_0x361f5a(0x13d)]=function(_0x373302,_0x515dab){return _0x373302===_0x515dab;};const _0x1e99da=_0x227f48;return!_0x56b2de||_0x1e99da['lNbnE'](_0x56b2de['trim'](),'');},exports[a129_0x2e4898(0x105)]=_0x491d47=>{const _0x42d6ad=a129_0x2e4898,_0x476f9e={};_0x476f9e[_0x42d6ad(0x161)]=function(_0x282e49,_0xe6f2bf){return _0x282e49|_0xe6f2bf;};const _0x174b22=_0x476f9e;try{return fs[_0x42d6ad(0x11c)](_0x491d47,_0x174b22[_0x42d6ad(0x161)](fs[_0x42d6ad(0x152)][_0x42d6ad(0x12f)],fs['constants'][_0x42d6ad(0x141)])),!![];}catch(_0x586788){return![];}},exports[a129_0x2e4898(0x12b)]=_0x1a0e9a=>{const _0xb311c8=a129_0x2e4898;try{fs[_0xb311c8(0x11f)](_0x1a0e9a,0x1ff),logger['debug']('Directory\x20'+_0x1a0e9a+_0xb311c8(0x14a));}catch(_0x321460){logger[_0xb311c8(0x15b)](_0xb311c8(0x12d)+exports[_0xb311c8(0x14b)](_0x321460));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a130_0x4d7d(_0x357665,_0x23755f){var _0x4734ba=a130_0x4734();return a130_0x4d7d=function(_0x4d7d65,_0x2e1533){_0x4d7d65=_0x4d7d65-0x89;var _0x59b943=_0x4734ba[_0x4d7d65];return _0x59b943;},a130_0x4d7d(_0x357665,_0x23755f);}function a130_0x4734(){var _0x4d1c97=['browserstack.idleTimeout','overridelocalInfo.userAuthToken','wsLocalSupport','browserstack.buildProductMap','networkLogs','browserstack.disableCorsRestrictions','accessibilityOptions.includeIssueType.needsReview','device','uWjZn','aamQV','browserstack.autoWait','disableCorsRestrictions','DhJgk','6563640FRGGDF','AOnrX','qUrXO','bfcache','browserstack.overridelocalInfo.userAuthToken','mDnBp','accessibilityOptions.authToken','NKGMA','debug','3206256VyDwgD','ksrHP','timezone','NuxOW','ovDXW','PYiBd','browserstack.accessibilityOptions.authToken','vYFSR','ugDEq','overridelocalInfo.localIdentifier','browserstack.selenium_version','JmGAD','browserstack.accessibility','ufDDe','HUAaF','ODXKf','browserstack.maskCommands','Pkgcq','sessionName','MdQSM','browserstack.accessibilityOptions.includeIssueType.bestPractice','rDFLo','playwrightVersion','testhubBuildUuid','accessKey','geoLocation','TlaXK','autoWait','appiumVersion','13302qbckVm','GnEoH','QsVat','hosts','2082474wafcli','qLQws','uCzYB','QRByb','browserstack.testhubBuildUuid','Algld','FVVNu','video','vATSN','bKLpN','useW3c','browserstack.accessibilityOptions.scannerVersion','browserstack.networkProfile','1400114QJWFyy','49388JSepAn','QPeab','osVersion','coCrf','xAxzD','MBFhk','browserstack.headerParams','170NSjjDD','uploadMedia','browserstack.appium_version','browser','networkLogsOptions','realMobile','browserstack.browserstackSDK','accessibilityOptions.wcagVersion','hWuar','browserstack.bfcache','deviceOrientation','browserstack.buildIdentifier','FFVOL','MvpAO','build','buildProductMap','deviceName','customNetwork','W3CMapping','browserstack.local','LXxBi','local','browserstack.enableSim','browserstack.console','XrExB','project','xdqVm','browserstack.accessibilityOptions.includeIssueType.needsReview','browserstack.appiumLogs','ccCgZ','browserstack.networkLogsOptions','headerParams','browserstack.performance','WnJaF','maskCommands','IQjbZ','1210IQiApa','projectName','3753449amJqfq','OHuEL','1sGXiTa','omfWf','name','enableSim','uvQIU','browserstack.accessibilityOptions.wcagVersion','TSdKm','OnblC','appiumLogs','jiqaw','browserstack.networkLogs','browserstack.geoLocation','browserstack.video','networkProfile','browserstack.debug','browserstack.playwrightVersion','LZAYk','idleTimeout','FSDoZ','resolution','ZLBlA','RDrfR','telemetryLogs','uzeQz'];a130_0x4734=function(){return _0x4d1c97;};return a130_0x4734();}var a130_0x2fdaa4=a130_0x4d7d;(function(_0x34ee16,_0x59fdce){var _0x2431ca=a130_0x4d7d,_0x451db6=_0x34ee16();while(!![]){try{var _0x1d6971=-parseInt(_0x2431ca(0xca))/0x1*(-parseInt(_0x2431ca(0x9a))/0x2)+-parseInt(_0x2431ca(0x8d))/0x3+-parseInt(_0x2431ca(0x9b))/0x4*(-parseInt(_0x2431ca(0xa2))/0x5)+parseInt(_0x2431ca(0xf8))/0x6+parseInt(_0x2431ca(0xc8))/0x7+-parseInt(_0x2431ca(0xef))/0x8+parseInt(_0x2431ca(0x89))/0x9*(-parseInt(_0x2431ca(0xc6))/0xa);if(_0x1d6971===_0x59fdce)break;else _0x451db6['push'](_0x451db6['shift']());}catch(_0x38a44a){_0x451db6['push'](_0x451db6['shift']());}}}(a130_0x4734,0x7955b),exports[a130_0x2fdaa4(0xb4)]=()=>{var _0x2507bc=a130_0x2fdaa4,_0x16bd48={};_0x16bd48[_0x2507bc(0x105)]='userName',_0x16bd48[_0x2507bc(0xa0)]=_0x2507bc(0x110),_0x16bd48['aamQV']=_0x2507bc(0x9d),_0x16bd48[_0x2507bc(0xcb)]=_0x2507bc(0xa5),_0x16bd48[_0x2507bc(0x103)]='browserVersion',_0x16bd48[_0x2507bc(0x96)]=_0x2507bc(0x97),_0x16bd48['FFVOL']=_0x2507bc(0xc7),_0x16bd48['vYFSR']='buildName',_0x16bd48[_0x2507bc(0xfb)]=_0x2507bc(0x10a),_0x16bd48['jiqaw']=_0x2507bc(0xb7),_0x16bd48[_0x2507bc(0x109)]='localIdentifier',_0x16bd48[_0x2507bc(0x90)]=_0x2507bc(0xf7),_0x16bd48[_0x2507bc(0xf1)]='consoleLogs',_0x16bd48[_0x2507bc(0xd1)]=_0x2507bc(0xe6),_0x16bd48[_0x2507bc(0xba)]=_0x2507bc(0xa6),_0x16bd48['rDFLo']=_0x2507bc(0xd2),_0x16bd48[_0x2507bc(0x95)]=_0x2507bc(0x94),_0x16bd48['ugDEq']='seleniumLogs',_0x16bd48[_0x2507bc(0x10b)]=_0x2507bc(0xe0),_0x16bd48['NKGMA']=_0x2507bc(0x111),_0x16bd48[_0x2507bc(0xaf)]=_0x2507bc(0xfa),_0x16bd48[_0x2507bc(0xaa)]=_0x2507bc(0xdd),_0x16bd48[_0x2507bc(0xda)]='seleniumVersion',_0x16bd48[_0x2507bc(0xc3)]=_0x2507bc(0xc4),_0x16bd48[_0x2507bc(0xbf)]=_0x2507bc(0xdb),_0x16bd48[_0x2507bc(0xde)]='maskBasicAuth',_0x16bd48['coCrf']=_0x2507bc(0x113),_0x16bd48['xAxzD']=_0x2507bc(0x8c),_0x16bd48['FbkEJ']=_0x2507bc(0xf2),_0x16bd48[_0x2507bc(0x8e)]=_0x2507bc(0xe4),_0x16bd48['mDnBp']=_0x2507bc(0xed),_0x16bd48[_0x2507bc(0xbc)]=_0x2507bc(0xb2),_0x16bd48[_0x2507bc(0x112)]=_0x2507bc(0xa7),_0x16bd48[_0x2507bc(0x107)]=_0x2507bc(0x114),_0x16bd48[_0x2507bc(0x92)]=_0x2507bc(0xac),_0x16bd48[_0x2507bc(0xf0)]=_0x2507bc(0xb3),_0x16bd48[_0x2507bc(0xd0)]=_0x2507bc(0xd7),_0x16bd48[_0x2507bc(0x8f)]='buildIdentifier',_0x16bd48[_0x2507bc(0xea)]='browserstackSDK',_0x16bd48[_0x2507bc(0x8a)]='accessibility',_0x16bd48[_0x2507bc(0xc5)]=_0x2507bc(0xb1),_0x16bd48[_0x2507bc(0xe1)]=_0x2507bc(0x10f),_0x16bd48[_0x2507bc(0xb6)]=_0x2507bc(0xa9),_0x16bd48[_0x2507bc(0x8b)]='accessibilityOptions.scannerVersion',_0x16bd48[_0x2507bc(0xdc)]='accessibilityOptions.scannerProcessingTimeout',_0x16bd48[_0x2507bc(0xdf)]='accessibilityOptions.includeIssueType.bestPractice',_0x16bd48['uvQIU']=_0x2507bc(0xe8),_0x16bd48[_0x2507bc(0xf9)]=_0x2507bc(0xf5),_0x16bd48['OHuEL']=_0x2507bc(0xa3),_0x16bd48['DhJgk']=_0x2507bc(0xcd),_0x16bd48[_0x2507bc(0xfd)]='simOptions',_0x16bd48[_0x2507bc(0x93)]=_0x2507bc(0x10e),_0x16bd48[_0x2507bc(0x106)]=_0x2507bc(0xe3),_0x16bd48['GthxF']=_0x2507bc(0x101),_0x16bd48[_0x2507bc(0x9c)]=_0x2507bc(0xc1),_0x16bd48[_0x2507bc(0xfc)]='performance';var _0x214f0d=_0x16bd48,_0x3958ad={};return _0x3958ad['browserstack.user']=_0x214f0d[_0x2507bc(0x105)],_0x3958ad['browserstack.key']=_0x214f0d[_0x2507bc(0xa0)],_0x3958ad['os']='os',_0x3958ad['os_version']=_0x214f0d[_0x2507bc(0xeb)],_0x3958ad[_0x2507bc(0xa5)]=_0x214f0d[_0x2507bc(0xcb)],_0x3958ad['browser_version']=_0x214f0d[_0x2507bc(0x103)],_0x3958ad['browserstack.use_w3c']=_0x214f0d[_0x2507bc(0x96)],_0x3958ad[_0x2507bc(0xbb)]=_0x214f0d[_0x2507bc(0xae)],_0x3958ad[_0x2507bc(0xb0)]=_0x214f0d[_0x2507bc(0xff)],_0x3958ad[_0x2507bc(0xcc)]=_0x214f0d['NuxOW'],_0x3958ad[_0x2507bc(0xb5)]=_0x214f0d[_0x2507bc(0xd3)],_0x3958ad['browserstack.localIdentifier']=_0x214f0d['Pkgcq'],_0x3958ad[_0x2507bc(0xd8)]=_0x214f0d['QRByb'],_0x3958ad[_0x2507bc(0xb9)]=_0x214f0d[_0x2507bc(0xf1)],_0x3958ad[_0x2507bc(0xd4)]=_0x214f0d[_0x2507bc(0xd1)],_0x3958ad[_0x2507bc(0xc0)]=_0x214f0d['XrExB'],_0x3958ad[_0x2507bc(0xbe)]=_0x214f0d[_0x2507bc(0x10d)],_0x3958ad[_0x2507bc(0xd6)]=_0x214f0d[_0x2507bc(0x95)],_0x3958ad['browserstack.seleniumLogs']=_0x214f0d[_0x2507bc(0x100)],_0x3958ad['browserstack.telemetryLogs']=_0x214f0d[_0x2507bc(0x10b)],_0x3958ad[_0x2507bc(0xd5)]=_0x214f0d[_0x2507bc(0xf6)],_0x3958ad['browserstack.timezone']=_0x214f0d[_0x2507bc(0xaf)],_0x3958ad[_0x2507bc(0xdd)]=_0x214f0d['hWuar'],_0x3958ad[_0x2507bc(0x102)]=_0x214f0d['LZAYk'],_0x3958ad[_0x2507bc(0x108)]=_0x214f0d[_0x2507bc(0xc3)],_0x3958ad[_0x2507bc(0xe2)]=_0x214f0d['ccCgZ'],_0x3958ad['browserstack.maskBasicAuth']=_0x214f0d[_0x2507bc(0xde)],_0x3958ad[_0x2507bc(0xec)]=_0x214f0d[_0x2507bc(0x9e)],_0x3958ad['browserstack.hosts']=_0x214f0d[_0x2507bc(0x9f)],_0x3958ad[_0x2507bc(0xab)]=_0x214f0d['FbkEJ'],_0x3958ad['browserstack.wsLocalSupport']=_0x214f0d[_0x2507bc(0x8e)],_0x3958ad[_0x2507bc(0xe7)]=_0x214f0d[_0x2507bc(0xf4)],_0x3958ad[_0x2507bc(0xe9)]=_0x214f0d[_0x2507bc(0xbc)],_0x3958ad[_0x2507bc(0xa7)]=_0x214f0d[_0x2507bc(0x112)],_0x3958ad[_0x2507bc(0xa4)]=_0x214f0d[_0x2507bc(0x107)],_0x3958ad[_0x2507bc(0xac)]=_0x214f0d['Algld'],_0x3958ad['browserstack.customNetwork']=_0x214f0d[_0x2507bc(0xf0)],_0x3958ad[_0x2507bc(0x99)]=_0x214f0d['TSdKm'],_0x3958ad[_0x2507bc(0xad)]=_0x214f0d[_0x2507bc(0x8f)],_0x3958ad[_0x2507bc(0xa8)]=_0x214f0d['uWjZn'],_0x3958ad[_0x2507bc(0x104)]=_0x214f0d[_0x2507bc(0x8a)],_0x3958ad[_0x2507bc(0xe5)]=_0x214f0d[_0x2507bc(0xc5)],_0x3958ad[_0x2507bc(0x91)]=_0x214f0d[_0x2507bc(0xe1)],_0x3958ad[_0x2507bc(0xcf)]=_0x214f0d[_0x2507bc(0xb6)],_0x3958ad[_0x2507bc(0x98)]=_0x214f0d[_0x2507bc(0x8b)],_0x3958ad['browserstack.accessibilityOptions.scannerProcessingTimeout']=_0x214f0d['FSDoZ'],_0x3958ad[_0x2507bc(0x10c)]=_0x214f0d['RDrfR'],_0x3958ad[_0x2507bc(0xbd)]=_0x214f0d[_0x2507bc(0xce)],_0x3958ad[_0x2507bc(0xfe)]=_0x214f0d['ksrHP'],_0x3958ad['browserstack.uploadMedia']=_0x214f0d[_0x2507bc(0xc9)],_0x3958ad[_0x2507bc(0xb8)]=_0x214f0d[_0x2507bc(0xee)],_0x3958ad['browserstack.simOptions']=_0x214f0d[_0x2507bc(0xfd)],_0x3958ad[_0x2507bc(0xd9)]=_0x214f0d[_0x2507bc(0x93)],_0x3958ad[_0x2507bc(0xf3)]=_0x214f0d[_0x2507bc(0x106)],_0x3958ad['browserstack.overridelocalInfo.localIdentifier']=_0x214f0d['GthxF'],_0x3958ad[_0x2507bc(0xa1)]=_0x214f0d[_0x2507bc(0x9c)],_0x3958ad[_0x2507bc(0xc2)]=_0x214f0d[_0x2507bc(0xfc)],_0x3958ad;});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a131_0x3dd743=a131_0x6498;(function(_0x2b4696,_0x5137e8){const _0x174ce4=a131_0x6498,_0x47e0c6=_0x2b4696();while(!![]){try{const _0x195420=-parseInt(_0x174ce4(0x113))/0x1*(parseInt(_0x174ce4(0xf2))/0x2)+parseInt(_0x174ce4(0x110))/0x3+-parseInt(_0x174ce4(0x104))/0x4*(parseInt(_0x174ce4(0xd8))/0x5)+-parseInt(_0x174ce4(0x10e))/0x6+-parseInt(_0x174ce4(0xfd))/0x7*(parseInt(_0x174ce4(0xe2))/0x8)+parseInt(_0x174ce4(0xe3))/0x9*(parseInt(_0x174ce4(0x109))/0xa)+parseInt(_0x174ce4(0xf9))/0xb;if(_0x195420===_0x5137e8)break;else _0x47e0c6['push'](_0x47e0c6['shift']());}catch(_0x50dbed){_0x47e0c6['push'](_0x47e0c6['shift']());}}}(a131_0x2579,0xe5392));function a131_0x2579(){const _0x5d76f7=['jtVvU','latency','./helpers/helper','1188288Mzvvdg','hash','204081KPtsBr','next_hubs','path','1627SJsNtn','updateHubUrl','url','HUB\x20URL\x20SET\x20TO\x20-\x20','qyAzc','NEAREST\x20HUBS:\x20','2451245KpjBxe','nodeRequest','cLVvV','ERROR\x20IN\x20GETTING\x20RESPONSE\x20FROM\x20NEXT\x20HUBS:\x20','resolve','gDnUG','replace','nextHubs','\x20is:\x20','/wd/hub','8SoNqfk','10323927iwVUGI','./helpers/logger','keys','newHubUrl','hostname','hubUrl','sort','VVLiR','ulkCw','iAzEY','dBmnf','search','GET','YiLyX','entries','54bTTeyV','fromEntries','cKZQo','all','CeaLg','catch','TfpbD','16544407oWYjXm','findLatency','parse','SRIzu','7336301dKfWGB','Ppfre','tUCnm','data','push','Execution\x20time\x20for\x20','allocateHub','4MkEeuj','debug','./bin/utils/constants','cwbGT','getRequestOptions','10htiRIP','uEuZL'];a131_0x2579=function(){return _0x5d76f7;};return a131_0x2579();}function a131_0x6498(_0x550f76,_0x5210fc){const _0x2579a0=a131_0x2579();return a131_0x6498=function(_0x649826,_0x2ed595){_0x649826=_0x649826-0xd6;let _0x49a001=_0x2579a0[_0x649826];return _0x49a001;},a131_0x6498(_0x550f76,_0x5210fc);}const url=require(a131_0x3dd743(0x115)),util=require('util'),helper=require(a131_0x3dd743(0x10d)),logger=require(a131_0x3dd743(0xe4))['winstonLogger'],constants=require(a131_0x3dd743(0x106));global[a131_0x3dd743(0xe6)]='',exports[a131_0x3dd743(0x108)]=_0xe1ca91=>{const _0x2b8f76=a131_0x3dd743,_0x1d56a7={};_0x1d56a7['DXgTx']=function(_0x1f568f,_0x32bd5e){return _0x1f568f+_0x32bd5e;},_0x1d56a7[_0x2b8f76(0xf4)]='Invalid\x20new\x20HUB\x20URL:\x20';const _0x458455=_0x1d56a7,_0x27e5e3=url[_0x2b8f76(0xfb)](_0xe1ca91);if(!_0x27e5e3[_0x2b8f76(0xe7)])throw new Error(_0x458455['DXgTx'](_0x458455[_0x2b8f76(0xf4)],_0xe1ca91));return _0x27e5e3[_0x2b8f76(0xee)]=null,_0x27e5e3[_0x2b8f76(0x10f)]=null,_0x27e5e3[_0x2b8f76(0x112)]=_0x27e5e3['pathname'],_0x27e5e3;},exports[a131_0x3dd743(0x114)]=_0x309cc7=>{global['newHubUrl']=_0x309cc7;},exports[a131_0x3dd743(0x103)]=_0x463e69=>{const _0x1a5e0b={'dBmnf':function(_0x560f9c,_0x5dd17f){return _0x560f9c!=_0x5dd17f;},'jtVvU':function(_0x592fec,_0x23c3aa){return _0x592fec!==_0x23c3aa;},'ulkCw':function(_0x9187b1,_0x2939e){return _0x9187b1+_0x2939e;},'cLVvV':'https://','uEuZL':function(_0x1747ba){return _0x1747ba();},'YiLyX':function(_0xeae5a2,_0x91fdb3){return _0xeae5a2+_0x91fdb3;},'NNFau':'/wd/hub'};return new Promise(_0x59c617=>{const _0x194870=a131_0x6498,_0x11845d={'TfpbD':function(_0x117358,_0x2e7cbd){const _0x37662b=a131_0x6498;return _0x1a5e0b[_0x37662b(0xf0)](_0x117358,_0x2e7cbd);},'iAzEY':_0x1a5e0b['NNFau'],'gDnUG':function(_0x35f56c){const _0x519f3f=a131_0x6498;return _0x1a5e0b[_0x519f3f(0x10a)](_0x35f56c);}};Promise[_0x194870(0xdc)](this['nextHubs'](_0x463e69))['then'](_0x20d37d=>{const _0x3c07b1=_0x194870;logger[_0x3c07b1(0x105)](_0x3c07b1(0xd7)+util['format']('%j',_0x20d37d));if(_0x1a5e0b[_0x3c07b1(0xed)](_0x20d37d,null)&&_0x1a5e0b[_0x3c07b1(0x10b)](_0x20d37d['length'],0x0)){const _0x471840=[];for(const _0x3ff0f7 of _0x20d37d){_0x471840[_0x3c07b1(0x101)](this['findLatency'](_0x463e69,_0x1a5e0b[_0x3c07b1(0xeb)](_0x1a5e0b[_0x3c07b1(0xda)],_0x3ff0f7)));}Promise[_0x3c07b1(0xf5)](_0x471840)['then'](_0x3cc38f=>{const _0x3dddd2=_0x3c07b1,_0x50fecb=Object[_0x3dddd2(0xf3)](_0x3cc38f['map'](_0x4a0485=>[_0x4a0485[_0x3dddd2(0xe8)],_0x4a0485[_0x3dddd2(0x10c)]])),_0x4921e5=Object[_0x3dddd2(0xf3)](Object[_0x3dddd2(0xf1)](_0x50fecb)[_0x3dddd2(0xe9)](([,_0x1b1460],[,_0x4b996c])=>_0x1b1460-_0x4b996c)),_0x36d6b1=Object[_0x3dddd2(0xe5)](_0x4921e5)[0x0];constants[_0x3dddd2(0xe8)]=_0x11845d[_0x3dddd2(0xf8)](_0x36d6b1,_0x11845d[_0x3dddd2(0xec)]),logger[_0x3dddd2(0x105)](_0x3dddd2(0x116)+_0x36d6b1),_0x11845d[_0x3dddd2(0xdd)](_0x59c617);});}else _0x1a5e0b['uEuZL'](_0x59c617);})[_0x194870(0xf7)](_0x3677c2=>{logger['debug']('CANNOT\x20ALLOCATE\x20NEAREST\x20HUB\x20-\x20'+_0x3677c2),_0x11845d['gDnUG'](_0x59c617);});});},exports[a131_0x3dd743(0xfa)]=async(_0xdd5a86,_0x2db836)=>{const _0x549ef5=a131_0x3dd743,_0x39aa8b={};_0x39aa8b[_0x549ef5(0x107)]=_0x549ef5(0xef),_0x39aa8b[_0x549ef5(0xfc)]='check',_0x39aa8b[_0x549ef5(0xea)]=function(_0x303790,_0x5a38bd){return _0x303790-_0x5a38bd;};const _0x346dec=_0x39aa8b;try{const _0x1c33ba=new Date();await helper['nodeRequest'](_0x346dec['cwbGT'],_0x346dec[_0x549ef5(0xfc)],{},_0xdd5a86,_0x2db836,0x1388);const _0x256b78=_0x346dec[_0x549ef5(0xea)](new Date(),_0x1c33ba);logger[_0x549ef5(0x105)](_0x549ef5(0x102)+_0x2db836+_0x549ef5(0xe0)+_0x256b78+'ms');const _0x5cc133={};return _0x5cc133[_0x549ef5(0xe8)]=_0x2db836,_0x5cc133[_0x549ef5(0x10c)]=_0x256b78,_0x5cc133;}catch(_0xced862){return logger[_0x549ef5(0x105)]('ERROR\x20IN\x20FINDING\x20LATENCY\x20FOR\x20'+_0x2db836+'\x20HUB\x20-\x20'+_0xced862),{};}},exports[a131_0x3dd743(0xdf)]=async _0x410147=>{const _0x1d50c9=a131_0x3dd743,_0x270cd5={'HsAse':function(_0xd6d609,_0x10ce5b){return _0xd6d609(_0x10ce5b);},'CeaLg':_0x1d50c9(0x106),'Ppfre':_0x1d50c9(0xe1),'tUCnm':'GET','qyAzc':_0x1d50c9(0x111)};try{const _0x168544=_0x270cd5['HsAse'](require,_0x270cd5[_0x1d50c9(0xf6)])[_0x1d50c9(0xe8)][_0x1d50c9(0xde)](_0x270cd5[_0x1d50c9(0xfe)],''),_0xb34f4d=await helper[_0x1d50c9(0xd9)](_0x270cd5[_0x1d50c9(0xff)],_0x270cd5[_0x1d50c9(0xd6)],{},_0x410147,_0x168544,0x1388),_0x53687d=_0xb34f4d[_0x1d50c9(0x100)];return logger[_0x1d50c9(0x105)]('Response:\x20'+util['format']('%j',_0x53687d)),_0x53687d['hubs'];}catch(_0x4940c8){logger[_0x1d50c9(0x105)](_0x1d50c9(0xdb)+_0x4940c8);}return null;};
|