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
|
-
function
|
|
1
|
+
function a50_0x216f(){const _0x554c0d=['run','TfZWB','../launcher/launcher','265429qTSvoZ','vanilla','fRxUM','1720344xEGQjz','runVanillaTest','end','stopMonitoring','4lRzYoR','mocha','ioEBW','../../helpers/performance/constants','3830064KleNIC','19846035DhLghK','hQtDZ','mUtNj','mQzEb','1986030iumywz','runCucumberTest','SDK_POST_TEST','2cfNDfC','2724735cUCSJY','3240538lvqCFy'];a50_0x216f=function(){return _0x554c0d;};return a50_0x216f();}const a50_0xc86efc=a50_0x9f9f;(function(_0x5a4fc3,_0x3a45b7){const _0x5182b1=a50_0x9f9f,_0x256297=_0x5a4fc3();while(!![]){try{const _0x3c28be=-parseInt(_0x5182b1(0x201))/0x1*(parseInt(_0x5182b1(0x1fb))/0x2)+-parseInt(_0x5182b1(0x1f8))/0x3+parseInt(_0x5182b1(0x1ef))/0x4*(-parseInt(_0x5182b1(0x1fc))/0x5)+-parseInt(_0x5182b1(0x1f3))/0x6+parseInt(_0x5182b1(0x1fd))/0x7+-parseInt(_0x5182b1(0x1eb))/0x8+parseInt(_0x5182b1(0x1f4))/0x9;if(_0x3c28be===_0x3a45b7)break;else _0x256297['push'](_0x256297['shift']());}catch(_0x253920){_0x256297['push'](_0x256297['shift']());}}}(a50_0x216f,0x53904));function a50_0x9f9f(_0x4795a4,_0xcb25fc){const _0x216f06=a50_0x216f();return a50_0x9f9f=function(_0x9f9f7f,_0x10e1ce){_0x9f9f7f=_0x9f9f7f-0x1ea;let _0x483040=_0x216f06[_0x9f9f7f];return _0x483040;},a50_0x9f9f(_0x4795a4,_0xcb25fc);}const PerformanceEvents=require(a50_0xc86efc(0x1f2))['EVENTS'],PerformanceTester=require('../../helpers/performance/performance-tester'),{sleep}=require('../../helpers/test-observability/utils');exports['runTest']=async(_0x79a459,_0x587490)=>{const _0x855418=a50_0xc86efc,_0xc82f={'hQtDZ':function(_0x27b885,_0x354693){return _0x27b885(_0x354693);},'fRxUM':_0x855418(0x200),'mQzEb':_0x855418(0x1f0)};PerformanceTester['startMonitoring']();const _0x2b890a=_0xc82f[_0x855418(0x1f5)](require,_0xc82f[_0x855418(0x1ea)]),_0x30cd89=new _0x2b890a(_0xc82f[_0x855418(0x1f7)],_0x79a459,_0x587490),_0x22ee01=await _0x30cd89['run']();return PerformanceTester[_0x855418(0x1ed)](PerformanceEvents[_0x855418(0x1fa)]),await _0xc82f['hQtDZ'](sleep,0x3e8),PerformanceTester[_0x855418(0x1ee)](),_0x22ee01;},exports[a50_0xc86efc(0x1f9)]=async(_0x546a7e,_0xa1afc4,_0x4976a9,_0x5b8305,_0x130414)=>{const _0xb3d39c=a50_0xc86efc,_0x51af80={'sKKai':function(_0x577a93,_0x3cd442){return _0x577a93(_0x3cd442);},'BxWIx':_0xb3d39c(0x200),'fbKxf':'cucumber-js'},_0x3b864d={'capability':_0x546a7e,..._0xa1afc4},_0x664ed9={};_0x664ed9['configuration']=_0x3b864d,_0x664ed9['formatter']=_0x130414;const _0x14167a=_0x664ed9,_0x56f7ba=_0x51af80['sKKai'](require,_0x51af80['BxWIx']),_0x36a7af=new _0x56f7ba(_0x51af80['fbKxf'],_0x14167a,_0x4976a9,_0x5b8305);return await _0x36a7af[_0xb3d39c(0x1fe)]();},exports[a50_0xc86efc(0x1ec)]=async _0x38d5af=>{const _0x364639=a50_0xc86efc,_0x27a3d4={'ioEBW':function(_0x1c9018,_0x3c7583){return _0x1c9018(_0x3c7583);},'mUtNj':'../launcher/launcher','TfZWB':_0x364639(0x202)},_0x4e60a3=_0x27a3d4[_0x364639(0x1f1)](require,_0x27a3d4[_0x364639(0x1f6)]),_0x3aedd1=new _0x4e60a3(_0x27a3d4[_0x364639(0x1ff)],_0x38d5af);return await _0x3aedd1[_0x364639(0x1fe)]();};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a51_0x12e2(_0x4accbf,_0x30482a){const _0x3048f1=a51_0x3048();return a51_0x12e2=function(_0x12e2a0,_0x36578e){_0x12e2a0=_0x12e2a0-0xdf;let _0x4820a4=_0x3048f1[_0x12e2a0];return _0x4820a4;},a51_0x12e2(_0x4accbf,_0x30482a);}const a51_0x11b0d9=a51_0x12e2;(function(_0x2c6977,_0x35411e){const _0x1c197a=a51_0x12e2,_0x5ae93c=_0x2c6977();while(!![]){try{const _0x528102=parseInt(_0x1c197a(0xe3))/0x1+parseInt(_0x1c197a(0xe8))/0x2+-parseInt(_0x1c197a(0xea))/0x3+-parseInt(_0x1c197a(0xe1))/0x4*(-parseInt(_0x1c197a(0xeb))/0x5)+parseInt(_0x1c197a(0xe5))/0x6+-parseInt(_0x1c197a(0xe0))/0x7*(parseInt(_0x1c197a(0xec))/0x8)+parseInt(_0x1c197a(0xe4))/0x9;if(_0x528102===_0x35411e)break;else _0x5ae93c['push'](_0x5ae93c['shift']());}catch(_0x21421a){_0x5ae93c['push'](_0x5ae93c['shift']());}}}(a51_0x3048,0xe5040));function a51_0x3048(){const _0x150a76=['568hCQMtb','Eslso','150143tyhgmD','412FqYEnL','RLiEY','1734521AlfZRA','6359391sAGjET','477480igEtec','cucumberWorker','vanillaWorker','1554944bkzZdB','SwkJd','5079834UaXmer','41555XDGDiD'];a51_0x3048=function(){return _0x150a76;};return a51_0x3048();}const {runTest,runCucumberTest,runVanillaTest}=require('./runTest');exports['worker']=async(_0x181d00,_0x4c4e24)=>{const _0x27a6ae=a51_0x12e2,_0x136ef3={'SwkJd':function(_0x362d7b,_0x360e18,_0x42a9d2){return _0x362d7b(_0x360e18,_0x42a9d2);}};return await _0x136ef3[_0x27a6ae(0xe9)](runTest,_0x181d00,_0x4c4e24);},exports[a51_0x11b0d9(0xe6)]=async(_0x3bb525,_0x35f82d,_0x2d3834,_0x4c5b3e,_0x52e1ec)=>{const _0x353bb5=a51_0x11b0d9,_0x4604ae={'RLiEY':function(_0x511c6c,_0x1277b1,_0x3739b0,_0x1518e3,_0x33e7c7,_0x59ea16){return _0x511c6c(_0x1277b1,_0x3739b0,_0x1518e3,_0x33e7c7,_0x59ea16);}};return await _0x4604ae[_0x353bb5(0xe2)](runCucumberTest,_0x3bb525,_0x35f82d,_0x2d3834,_0x4c5b3e,_0x52e1ec);},exports[a51_0x11b0d9(0xe7)]=async _0x1c8b1e=>{const _0x5222c0=a51_0x11b0d9,_0x526a93={'Eslso':function(_0x242fa7,_0x28a4fd){return _0x242fa7(_0x28a4fd);}};return await _0x526a93[_0x5222c0(0xdf)](runVanillaTest,_0x1c8b1e);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a52_0x306107=a52_0x3e1a;(function(_0x5c6714,_0x4b3a20){const _0xa9c652=a52_0x3e1a,_0x187152=_0x5c6714();while(!![]){try{const _0x44287e=parseInt(_0xa9c652(0x27f))/0x1+parseInt(_0xa9c652(0x263))/0x2+parseInt(_0xa9c652(0x284))/0x3*(-parseInt(_0xa9c652(0x270))/0x4)+-parseInt(_0xa9c652(0x249))/0x5+parseInt(_0xa9c652(0x201))/0x6*(-parseInt(_0xa9c652(0x24d))/0x7)+-parseInt(_0xa9c652(0x25c))/0x8*(-parseInt(_0xa9c652(0x24e))/0x9)+-parseInt(_0xa9c652(0x29b))/0xa;if(_0x44287e===_0x4b3a20)break;else _0x187152['push'](_0x187152['shift']());}catch(_0x3e4153){_0x187152['push'](_0x187152['shift']());}}}(a52_0x407e,0x50886));const a52_0x396d06={};a52_0x396d06[a52_0x306107(0x220)]=a52_0x306107(0x1fb),a52_0x396d06[a52_0x306107(0x27d)]='Specify\x20--help\x20for\x20available\x20options';const a52_0x3d235e={};a52_0x3d235e[a52_0x306107(0x220)]=a52_0x306107(0x26a);const a52_0x14a621={};a52_0x14a621[a52_0x306107(0x220)]=a52_0x306107(0x2a6);const a52_0x158af6={};a52_0x158af6[a52_0x306107(0x220)]=a52_0x306107(0x24c);const a52_0x49a528={};a52_0x49a528[a52_0x306107(0x220)]=a52_0x306107(0x22b);const a52_0xf4912={};a52_0xf4912['INFO']='Run\x20nightwatch\x20tests\x20on\x20browserstack';function a52_0x3e1a(_0x34ffed,_0x4d87ce){const _0x407e2b=a52_0x407e();return a52_0x3e1a=function(_0x3e1a98,_0x18b23d){_0x3e1a98=_0x3e1a98-0x1dc;let _0x2f701d=_0x407e2b[_0x3e1a98];return _0x2f701d;},a52_0x3e1a(_0x34ffed,_0x4d87ce);}const a52_0x1f0305={};a52_0x1f0305['INFO']=a52_0x306107(0x27c);const a52_0x3e67a2={};a52_0x3e67a2[a52_0x306107(0x220)]=a52_0x306107(0x269);const a52_0x47b77e={};a52_0x47b77e['INFO']=a52_0x306107(0x200);const a52_0x1ed635={};a52_0x1ed635['INFO']=a52_0x306107(0x217);const a52_0x17f4b7={};a52_0x17f4b7['PLAYWRIGHT']=a52_0x306107(0x21a),a52_0x17f4b7[a52_0x306107(0x218)]='mocha',a52_0x17f4b7['JEST']='jest',a52_0x17f4b7['CODECEPT']='codeceptjs',a52_0x17f4b7[a52_0x306107(0x295)]='codeceptjs-cucumber',a52_0x17f4b7['CUCUMBER']=a52_0x306107(0x1f9);function a52_0x407e(){const _0x3f6d36=['https://apidevtestops.bsstag.com','LOG_FILE_NAME','INTEGRATIONS','customVariables','INVALID_INIT_RESP_WITH_USER_IMPACT','HUB_URL_REGEX','percy','ERR_PROXY_CONNECTION_FAILED','CI_ARTIFACTS_PATH','/usage-debug.log','CODECEPT_CUCUMBER','ieOptions','root','wss://cdp-preprod.bsstag.com/playwright?caps=','TCG_URL','accessibilityOptions','2099400GqQNCt','AI_INIT_SUCCESSFUL','playwright','framework','exports','percyOptions','SDKTestInvalidTcgAuthResponseWithUserImpact','https://upload-observability.browserstack.com','https://automate-devtestops.bsstag.com/dashboard/v2/builds/','jest','platforms','Run\x20mocha\x20tests\x20on\x20browserstack','SDKTestTcgAuthFailure','DEBUG_LOG_FILE_NAME','browserVersion','logLevel','browserstack.accessKey','browserstack','module','automate','BSTACK_URL','https://upload-observability-devtestops-ssi.bsstag.com','ERR_FAILED','ERR_SOCKS_CONNECTION_FAILED','invalidTestInputType','TCG_AUTH_FAILURE','name\x20and\x20testMatch\x20are\x20required\x20for\x20the\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','preprod','ERR_TIMED_OUT','Jest','UPDATED_CLI_ENDPOINT','HST','acceptSslCert','uniqueDependency','https://edsstaging.bsstag.com','APP_UPLOAD_URL','browserstack.overridelocalInfo.userAuthToken','https://tcg.bsstag.com','https://api-preprod.bsstag.com','https://eds.browserstack.com','^[a-zA-Z0-9_.-]*$','TCG_AUTH_TIMEOUT','AI_PROXY_FAILURE','cucumber','browserStackLocalOptions','shows\x20version\x20information','CLI_SUPPORTED_FRAMEWORKS','toLowerCase','BROWSERSTACK_AUTOMATE_URL','PLAYWRIGHT','Create\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing','542742CHzYLa','prod','SDKTestInitFailedResponse','bsstag','https://api-cloud.browserstack.com','turboScaleOptions','BROWSERSTACK_API_URL','SDKTestTcgDownResponse','sdk/v1/event','AUTOLOGCAPTURE_NOTIFICATION','Project\x20and\x20debug\x20logs\x20are\x20captured\x20by\x20default.\x20To\x20disable,\x20set\x20disableAutoCaptureLogs:\x20true\x20in\x20config.','COMMONJS','.apk','BROWSERSTACK_ENV','...[TRUNCATED]','ERR_MANDATORY_PROXY_CONFIGURATION_FAILED','env','hubUrl','O11Y_URL','ERR_SOCKET_NOT_CONNECTED','httpProxy','mocha','Connect\x20on\x20prem\x20instances\x20to\x20Browserstack','MOCHA','https://app-automate-preprod.bsstag.com/dashboard/v2/builds/','Playwright','browserstack.userName','disableAutoCaptureLogs','strictFileInteractability','proxySettings','BSTACK_DELTA','INFO','observability','authToken','accessibility','NIGHTWATCH','testContextOptions','MODULE','automation','app-automate','JEST','SDK_INSTRUMENTATION_CONFIG','Run\x20js\x20tests\x20on\x20browserstack','VERSION','ERR_CONNECTION_ABORTED','accessKey','SHAREABLE_ID_REGEX','name\x20property\x20must\x20be\x20unique\x20within\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','unhandledPromptBehavior','NUDGE_LOCAL_ERRORS','firefoxOptions','https://automate.browserstack.com/dashboard/v2/builds/','acceptSslCerts','ROOT_REGEX','sdk/v1/update_cli','browserstackLocal','chromeOptions','Cucumber-JS','BROWSERSTACK','testObservabilityOptions','PERCY_SUPPORTED_FRAMEWORKS','invalidKeys','ERR_NAME_RESOLUTION_FAILED','ERR_ADDRESS_UNREACHABLE','timeouts','Upgrade\x20required','https://hub-preprod.bsstag.com/wd/hub','split','localOptions','PLAYWRIGHT_HUB_URL','pageLoadStrategy','ERR_CONNECTION_REFUSED','592095UtIFvS','stag','localProxyPass','Run\x20cucumber-js\x20tests\x20on\x20browserstack','35qfptWS','10602rwBqIT','GIT_META_DATA_TRUNCATED','AI_ENABLED_FRAMEWORK','CUCUMBER','CUSTOM_ID_REGEX','https://tcg.browserstack.com','8|5|1|2|11|12|6|3|10|4|7|0|9','parallelsPerPlatform','mandatoryDependency','PLAYWRIGHT_CONFIG_OPTION_ERRORS','testOrchestrationOptions','Invalid\x20value\x20for\x20\x27%s\x27\x20key\x20in\x20the\x20yml\x20file','VALID_APP_EXTENSION','https://upload-observability-preprod.bsstag.com','4400KTMQXF','.aab','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','PACKAGE_TYPE','pre-prod','AUTOMATE_PRODUCTS','rerunTests','318538uZUKpJ','7|10|4|2|5|6|1|3|8|9|11|0|12','UPGRADE_REQUIRED','ROOT_CAPS','wss://cdp.browserstack.com/playwright?caps=','acceptInsecureCerts','Run\x20codeceptjs\x20tests\x20on\x20browserstack','Run\x20jest\x20tests\x20on\x20browserstack','ERR_CONNECTION_CLOSED','browserName','SDKTestTcgProxyFailure','browserstack-ats.com','browserstackAutomation','44bxCOjI','SDKTestTcgtInitSuccessful','ERR_CONNECTION_TIMED_OUT','ATS_HUB_URL_REGEX','https://app-automate.browserstack.com/dashboard/v2/builds/','PLAYWRIGHT_TRACE_LOGS','MAX_GIT_META_DATA_SIZE_IN_BYTES','https://automate-preprod.bsstag.com/dashboard/v2/builds/','EDS_URL','FUNNEL_INSTRUMENTATION_API_URL','proxyUrl','testObservability','Run\x20playwright\x20tests\x20on\x20Browserstack','HELP','ERR_CONNECTION_FAILED','368732rniSQA','https://observability-devtestops.bsstag.com','BROWSERSTACK_APP_AUTOMATE_URL','ERR_BLOCKED_BY_CLIENT','https://hub-devtestops.bsstag.com/wd/hub','17835dYybNf','POLL_HEALING_RESULT_TIMEOUT','use','OBSERVABILITY_UPLOAD_URL','proxyUser','https://observability.browserstack.com','percyCaptureMode'];a52_0x407e=function(){return _0x3f6d36;};return a52_0x407e();}const a52_0x4fc243={};a52_0x4fc243[a52_0x306107(0x23e)]='Invalid\x20property\x20added\x20for\x20the\x20%s\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file',a52_0x4fc243[a52_0x306107(0x1ef)]=a52_0x306107(0x230),a52_0x4fc243[a52_0x306107(0x256)]=a52_0x306107(0x1e8),a52_0x4fc243[a52_0x306107(0x1e6)]=a52_0x306107(0x259);const a52_0x2f9ac4={};a52_0x2f9ac4[a52_0x306107(0x20c)]='commonjs',a52_0x2f9ac4[a52_0x306107(0x226)]=a52_0x306107(0x1e0);const a52_0x9a745e={};a52_0x9a745e['Mocha']=0xfde8,a52_0x9a745e[a52_0x306107(0x23a)]=0xfde8,a52_0x9a745e[a52_0x306107(0x1eb)]=0x186a0;const a52_0x53f29a={};a52_0x53f29a[a52_0x306107(0x297)]=['userName',a52_0x306107(0x22e),a52_0x306107(0x215),'httpsProxy','customVariables',a52_0x306107(0x21b),a52_0x306107(0x1de),'proxyPassword',a52_0x306107(0x222),a52_0x306107(0x27a),a52_0x306107(0x1f2)],a52_0x53f29a[a52_0x306107(0x1fa)]=[a52_0x306107(0x288),'proxyPass','localProxyUser',a52_0x306107(0x24b)];const a52_0x54c14f={};a52_0x54c14f['browserstackLocal']=a52_0x306107(0x238),a52_0x54c14f[a52_0x306107(0x1fa)]=a52_0x306107(0x1fa),a52_0x54c14f[a52_0x306107(0x245)]=a52_0x306107(0x1fa),a52_0x54c14f[a52_0x306107(0x255)]='parallelsPerPlatform',a52_0x54c14f['platforms']=a52_0x306107(0x2a5),a52_0x54c14f[a52_0x306107(0x1dd)]=a52_0x306107(0x1dd),a52_0x54c14f[a52_0x306107(0x215)]=a52_0x306107(0x215),a52_0x54c14f['httpsProxy']='httpsProxy',a52_0x54c14f['framework']=a52_0x306107(0x29e),a52_0x54c14f[a52_0x306107(0x225)]=a52_0x306107(0x225),a52_0x54c14f[a52_0x306107(0x27b)]=a52_0x306107(0x27b),a52_0x54c14f[a52_0x306107(0x23c)]=a52_0x306107(0x23c),a52_0x54c14f[a52_0x306107(0x28e)]='customVariables',a52_0x54c14f[a52_0x306107(0x227)]=a52_0x306107(0x26f),a52_0x54c14f[a52_0x306107(0x26f)]=a52_0x306107(0x26f),a52_0x54c14f['rerunTests']=a52_0x306107(0x262),a52_0x54c14f[a52_0x306107(0x291)]=a52_0x306107(0x291),a52_0x54c14f[a52_0x306107(0x2a0)]='percyOptions',a52_0x54c14f[a52_0x306107(0x28a)]=a52_0x306107(0x28a),a52_0x54c14f[a52_0x306107(0x21c)]=a52_0x306107(0x21c),a52_0x54c14f[a52_0x306107(0x223)]=a52_0x306107(0x223),a52_0x54c14f['accessibilityOptions']=a52_0x306107(0x29a),a52_0x54c14f['turboScale']='turboScale',a52_0x54c14f['turboScaleOptions']=a52_0x306107(0x206),a52_0x54c14f[a52_0x306107(0x21e)]=a52_0x306107(0x21e),a52_0x54c14f[a52_0x306107(0x258)]=a52_0x306107(0x258);const a52_0x220149={};a52_0x220149[a52_0x306107(0x22c)]=a52_0x396d06,a52_0x220149[a52_0x306107(0x229)]=a52_0x3d235e,a52_0x220149[a52_0x306107(0x218)]=a52_0x14a621,a52_0x220149[a52_0x306107(0x251)]=a52_0x158af6,a52_0x220149['VANILLA']=a52_0x49a528,a52_0x220149[a52_0x306107(0x224)]=a52_0xf4912,a52_0x220149[a52_0x306107(0x1ff)]=a52_0x1f0305,a52_0x220149['CODECEPTJS']=a52_0x3e67a2,a52_0x220149[a52_0x306107(0x1ed)]=a52_0x47b77e,a52_0x220149[a52_0x306107(0x28d)]=a52_0x1ed635,a52_0x220149[a52_0x306107(0x21f)]=0xf*0x3c*0x3e8,a52_0x220149[a52_0x306107(0x212)]='https://hub.browserstack.com/wd/hub',a52_0x220149[a52_0x306107(0x299)]=a52_0x306107(0x253),a52_0x220149['TCG_REGION']=a52_0x306107(0x286),a52_0x220149['HUB_URL_REGEX']=/^hub(-[a-z]+)?\.browserstack\.com$/,a52_0x220149[a52_0x306107(0x273)]=/^[a-zA-Z0-9]+-hub\.browserstack-ats\.com$/,a52_0x220149['ATS_WSS_URL_REGEX']=/wss?:\/\/(?:[a-zA-Z0-9_-]+-)?hub(?:-ft)?\.browserstack(-ats)?\.com/,a52_0x220149[a52_0x306107(0x266)]=[a52_0x306107(0x268),a52_0x306107(0x247),a52_0x306107(0x21d),a52_0x306107(0x231),a52_0x306107(0x241),a52_0x306107(0x26c),a52_0x306107(0x1dc),a52_0x306107(0x235),a52_0x306107(0x1ee),a52_0x306107(0x239),a52_0x306107(0x233),'edgeOptions',a52_0x306107(0x296)],a52_0x220149[a52_0x306107(0x236)]=/^[\w-]+:.*$/,a52_0x220149['PRIVATE_DOMAIN_OR_IP_REGEX']=[/localhost/,/bs-local.com/,/^127\./,/^10\./,/^172\.1[6-9]\./,/^172\.2[0-9]\./,/^172\.3[0-1]\./,/^192\.168\./],a52_0x220149[a52_0x306107(0x278)]=a52_0x306107(0x1f5),a52_0x220149['BROWSERSTACK_API_URL']='https://api.browserstack.com',a52_0x220149[a52_0x306107(0x1f1)]=a52_0x306107(0x205),a52_0x220149[a52_0x306107(0x1ec)]=a52_0x306107(0x237),a52_0x220149[a52_0x306107(0x279)]=a52_0x306107(0x209),a52_0x220149[a52_0x306107(0x261)]=[a52_0x306107(0x1e1),a52_0x306107(0x221)],a52_0x220149['APP_AUTOMATE_PRODUCTS']=[a52_0x306107(0x228),a52_0x306107(0x221)],a52_0x220149[a52_0x306107(0x25e)]=['observability'],a52_0x220149[a52_0x306107(0x287)]=a52_0x306107(0x2a2),a52_0x220149['OBSERVABILITY_SUPPORTED_FWS']=[a52_0x306107(0x216),'Playwright'],a52_0x220149['AUTOMATE']=[a52_0x306107(0x1e1)],a52_0x220149[a52_0x306107(0x1fe)]=a52_0x306107(0x234),a52_0x220149[a52_0x306107(0x281)]=a52_0x306107(0x274),a52_0x220149['APP_AUTOMATE']=[a52_0x306107(0x228)],a52_0x220149[a52_0x306107(0x232)]=[a52_0x306107(0x1e4),a52_0x306107(0x1ea),a52_0x306107(0x282),'ERR_NETWORK_CHANGED',a52_0x306107(0x214),a52_0x306107(0x26b),'ERR_CONNECTION_RESET',a52_0x306107(0x248),a52_0x306107(0x22d),a52_0x306107(0x27e),'ERR_NAME_NOT_RESOLVED','ERR_ADDRESS_INVALID',a52_0x306107(0x240),'ERR_TUNNEL_CONNECTION_FAILED',a52_0x306107(0x272),a52_0x306107(0x1e5),'ERR_SOCKS_CONNECTION_HOST_UNREACHABLE',a52_0x306107(0x292),'ERR_NAME_NOT_RESOLVED',a52_0x306107(0x23f),a52_0x306107(0x210)],a52_0x220149[a52_0x306107(0x25a)]=[a52_0x306107(0x20d),a52_0x306107(0x25d),'.ipa'],a52_0x220149[a52_0x306107(0x252)]=a52_0x306107(0x1f6),a52_0x220149[a52_0x306107(0x22f)]='^[a-zA-Z0-9_.-]*/[a-zA-Z0-9_.-]*$',a52_0x220149[a52_0x306107(0x293)]='./browserstack-artifacts/',a52_0x220149[a52_0x306107(0x246)]=a52_0x306107(0x267),a52_0x220149['FRAMEWORKS']=a52_0x17f4b7,a52_0x220149[a52_0x306107(0x23d)]=[a52_0x306107(0x2a4),a52_0x306107(0x216)],a52_0x220149[a52_0x306107(0x257)]=a52_0x4fc243,a52_0x220149[a52_0x306107(0x20a)]=a52_0x306107(0x20b),a52_0x220149[a52_0x306107(0x25f)]=a52_0x2f9ac4,a52_0x220149[a52_0x306107(0x276)]=0x40*0x400,a52_0x220149[a52_0x306107(0x24f)]=a52_0x306107(0x20f),a52_0x220149[a52_0x306107(0x265)]=a52_0x306107(0x242),a52_0x220149['TCG_DOWN']=a52_0x306107(0x208),a52_0x220149[a52_0x306107(0x28f)]=a52_0x306107(0x2a1),a52_0x220149[a52_0x306107(0x1e7)]=a52_0x306107(0x2a7),a52_0x220149[a52_0x306107(0x29c)]=a52_0x306107(0x271),a52_0x220149['AI_INIT_FAILURE']=a52_0x306107(0x203),a52_0x220149[a52_0x306107(0x1f8)]=a52_0x306107(0x26d),a52_0x220149[a52_0x306107(0x1f7)]=0x1388,a52_0x220149['SET_TCG_TOKEN_TIMEOUT']=0x1388,a52_0x220149['HEALING_LOG_DATA_TIMEOUT']=0x1388,a52_0x220149['HEALING_FAILURE_TIMEOUT']=0x1388,a52_0x220149[a52_0x306107(0x285)]=0xc350,a52_0x220149['TEST_FRAMEWORK_HOOK_TIMEOUT']=a52_0x9a745e,a52_0x220149['REDACTED_KEYS']=a52_0x53f29a,a52_0x220149[a52_0x306107(0x250)]=['vanilla','codeceptjs'],a52_0x220149[a52_0x306107(0x22a)]=a52_0x54c14f,a52_0x220149[a52_0x306107(0x28c)]='/usage.log',a52_0x220149[a52_0x306107(0x2a8)]=a52_0x306107(0x294),a52_0x220149[a52_0x306107(0x1e2)]='browserstack.com',a52_0x220149['BSTACK_ATS_URL']=a52_0x306107(0x26e),a52_0x220149[a52_0x306107(0x213)]=a52_0x306107(0x289),a52_0x220149[a52_0x306107(0x23b)]=a52_0x306107(0x1df),a52_0x220149[a52_0x306107(0x1fc)]=[a52_0x306107(0x29d)],a52_0x220149[a52_0x306107(0x275)]='PLAYWRIGHT_TRACE_LOGS',module[a52_0x306107(0x29f)]=a52_0x220149;const _env=(process[a52_0x306107(0x211)][a52_0x306107(0x20e)]||a52_0x306107(0x202))[a52_0x306107(0x1fd)]();if(_env==='staging'||_env===a52_0x306107(0x24a)){const PXbhwE=a52_0x306107(0x254)[a52_0x306107(0x244)]('|');let irXuOh=0x0;while(!![]){switch(PXbhwE[irXuOh++]){case'0':module[a52_0x306107(0x29f)][a52_0x306107(0x278)]='https://edsstaging.bsstag.com';continue;case'1':module[a52_0x306107(0x29f)][a52_0x306107(0x299)]=a52_0x306107(0x1f3);continue;case'2':module[a52_0x306107(0x29f)]['HUB_URL_REGEX']=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'3':module['exports']['PLAYWRIGHT_HUB_URL']='wss://cdp-devtestops.bsstag.com/playwright?caps=';continue;case'4':module['exports']['O11Y_URL']=a52_0x306107(0x280);continue;case'5':module[a52_0x306107(0x29f)]['BROWSERSTACK_API_URL']=a52_0x306107(0x28b);continue;case'6':module['exports']['APP_UPLOAD_URL']='https://api-cloud-devtestops.bsstag.com';continue;case'7':module[a52_0x306107(0x29f)][a52_0x306107(0x287)]=a52_0x306107(0x1e3);continue;case'8':module[a52_0x306107(0x29f)]['hubUrl']=a52_0x306107(0x283);continue;case'9':module[a52_0x306107(0x29f)][a52_0x306107(0x23b)]=a52_0x306107(0x204);continue;case'10':module['exports'][a52_0x306107(0x1e2)]='bsstag.com';continue;case'11':module[a52_0x306107(0x29f)][a52_0x306107(0x1fe)]=a52_0x306107(0x2a3);continue;case'12':module[a52_0x306107(0x29f)][a52_0x306107(0x281)]='https://app-automate-devtestops.bsstag.com/dashboard/v2/builds/';continue;}break;}}else{if(_env===a52_0x306107(0x1e9)||_env===a52_0x306107(0x260)){const mpiFIf=a52_0x306107(0x264)[a52_0x306107(0x244)]('|');let oZKSUr=0x0;while(!![]){switch(mpiFIf[oZKSUr++]){case'0':module[a52_0x306107(0x29f)][a52_0x306107(0x278)]=a52_0x306107(0x1f0);continue;case'1':module[a52_0x306107(0x29f)]['APP_UPLOAD_URL']=a52_0x306107(0x1f4);continue;case'2':module[a52_0x306107(0x29f)][a52_0x306107(0x290)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'3':module['exports'][a52_0x306107(0x246)]=a52_0x306107(0x298);continue;case'4':module[a52_0x306107(0x29f)][a52_0x306107(0x299)]='https://tcg-preprod.bsstag.com';continue;case'5':module['exports']['BROWSERSTACK_AUTOMATE_URL']=a52_0x306107(0x277);continue;case'6':module[a52_0x306107(0x29f)][a52_0x306107(0x281)]=a52_0x306107(0x219);continue;case'7':module['exports'][a52_0x306107(0x212)]=a52_0x306107(0x243);continue;case'8':module[a52_0x306107(0x29f)][a52_0x306107(0x1e2)]='bsstag.com';continue;case'9':module[a52_0x306107(0x29f)]['O11Y_URL']='https://observability-preprod.bsstag.com';continue;case'10':module[a52_0x306107(0x29f)][a52_0x306107(0x207)]=a52_0x306107(0x1f4);continue;case'11':module[a52_0x306107(0x29f)][a52_0x306107(0x287)]=a52_0x306107(0x25b);continue;case'12':module[a52_0x306107(0x29f)][a52_0x306107(0x23b)]='bsstag';continue;}break;}}}
|
|
1
|
+
const a52_0x36b550=a52_0x1479;(function(_0x14dbc9,_0x304acd){const _0x38b297=a52_0x1479,_0x16af38=_0x14dbc9();while(!![]){try{const _0x3770be=parseInt(_0x38b297(0x185))/0x1*(parseInt(_0x38b297(0x1b2))/0x2)+-parseInt(_0x38b297(0x189))/0x3*(-parseInt(_0x38b297(0x1bd))/0x4)+parseInt(_0x38b297(0x149))/0x5*(parseInt(_0x38b297(0x18d))/0x6)+-parseInt(_0x38b297(0x1df))/0x7+parseInt(_0x38b297(0x1b9))/0x8*(-parseInt(_0x38b297(0x14f))/0x9)+parseInt(_0x38b297(0x19d))/0xa+-parseInt(_0x38b297(0x1d4))/0xb*(parseInt(_0x38b297(0x1d2))/0xc);if(_0x3770be===_0x304acd)break;else _0x16af38['push'](_0x16af38['shift']());}catch(_0x6e8cff){_0x16af38['push'](_0x16af38['shift']());}}}(a52_0x4b62,0xaa0ba));const a52_0x359d4a={};a52_0x359d4a[a52_0x36b550(0x142)]=a52_0x36b550(0x139),a52_0x359d4a['HELP']=a52_0x36b550(0x18e);function a52_0x1479(_0x1dba82,_0xb62d7c){const _0x4b622b=a52_0x4b62();return a52_0x1479=function(_0x147933,_0x388f77){_0x147933=_0x147933-0x117;let _0x228ff0=_0x4b622b[_0x147933];return _0x228ff0;},a52_0x1479(_0x1dba82,_0xb62d7c);}const a52_0x5c3b16={};a52_0x5c3b16[a52_0x36b550(0x142)]='Run\x20jest\x20tests\x20on\x20browserstack';const a52_0x4822df={};a52_0x4822df[a52_0x36b550(0x142)]=a52_0x36b550(0x11d);const a52_0x282f9b={};a52_0x282f9b['INFO']=a52_0x36b550(0x129);const a52_0x46bfee={};a52_0x46bfee[a52_0x36b550(0x142)]=a52_0x36b550(0x11b);const a52_0x4007c3={};a52_0x4007c3[a52_0x36b550(0x142)]=a52_0x36b550(0x198);const a52_0x34965c={};a52_0x34965c[a52_0x36b550(0x142)]=a52_0x36b550(0x1a2);const a52_0x544d27={};a52_0x544d27[a52_0x36b550(0x142)]='Run\x20codeceptjs\x20tests\x20on\x20browserstack';function a52_0x4b62(){const _0x444335=['SDKTestInitFailedResponse','PLAYWRIGHT','5YYuatl','SDKTestInvalidTcgAuthResponseWithUserImpact','AUTOLOGCAPTURE_NOTIFICATION','codeceptjs-cucumber','GIT_META_DATA_TRUNCATED','FRAMEWORKS','18gIYesu','BROWSERSTACK_API_URL','exports','https://hub-devtestops.bsstag.com/wd/hub','automate','ERR_CONNECTION_CLOSED','chromeOptions','./browserstack-artifacts/','https://app-automate-preprod.bsstag.com/dashboard/v2/builds/','strictFileInteractability','unhandledPromptBehavior','percyOptions','proxyPass','AUTOMATE_PRODUCTS','AI_PROXY_FAILURE','VANILLA','BSTACK_URL','browserstack.com','https://apidevtestops.bsstag.com','O11Y_URL','SET_TCG_TOKEN_TIMEOUT','HEALING_FAILURE_TIMEOUT','UPGRADE_REQUIRED','https://edsstaging.bsstag.com','userName','ROOT_REGEX','percyCaptureMode','APP_AUTOMATE_PRODUCTS','Project\x20and\x20debug\x20logs\x20are\x20captured\x20by\x20default.\x20To\x20disable,\x20set\x20disableAutoCaptureLogs:\x20true\x20in\x20config.','AI_INIT_FAILURE','COMMONJS','BROWSERSTACK_AUTOMATE_URL','POLL_HEALING_RESULT_TIMEOUT','percy','browserstackLocal','uniqueDependency','rerunTests','ERR_MANDATORY_PROXY_CONFIGURATION_FAILED','env','NIGHTWATCH','Connect\x20on\x20prem\x20instances\x20to\x20Browserstack','authToken','name\x20and\x20testMatch\x20are\x20required\x20for\x20the\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','split','PRIVATE_DOMAIN_OR_IP_REGEX','.apk','browserstack.userName','SHAREABLE_ID_REGEX','ERR_CONNECTION_RESET','PLAYWRIGHT_HUB_URL','wss://cdp-devtestops.bsstag.com/playwright?caps=','jest','ERR_CONNECTION_FAILED','wss://cdp.browserstack.com/playwright?caps=','33647PuXboI','ATS_HUB_URL_REGEX','bsstag.com','INTEGRATIONS','1200282HPdHuH','browserstack.overridelocalInfo.userAuthToken','localOptions','PERCY_SUPPORTED_FRAMEWORKS','4244526hmrntM','Specify\x20--help\x20for\x20available\x20options','vanilla','https://app-automate.browserstack.com/dashboard/v2/builds/','UPDATED_CLI_ENDPOINT','SDKTestTcgtInitSuccessful','testContextOptions','proxyPassword','testObservability','10|8|6|7|0|12|2|3|4|9|5|1|11','acceptInsecureCerts','Run\x20nightwatch\x20tests\x20on\x20browserstack','VERSION','sdk/v1/update_cli','testObservabilityOptions','framework','12394510GyGngf','ROOT_CAPS','MODULE','https://automate-preprod.bsstag.com/dashboard/v2/builds/','ERR_CONNECTION_TIMED_OUT','Run\x20playwright\x20tests\x20on\x20Browserstack','ERR_SOCKS_CONNECTION_HOST_UNREACHABLE','browserstack-ats.com','module','OBSERVABILITY_UPLOAD_URL','/usage-debug.log','localProxyPass','ERR_SOCKET_NOT_CONNECTED','CUSTOM_ID_REGEX','5|12|4|9|8|10|1|11|0|7|6|2|3','https://automate.browserstack.com/dashboard/v2/builds/','TCG_DOWN','mandatoryDependency','commonjs','BSTACK_ATS_URL','https://tcg.bsstag.com','6YUKOFH','APP_UPLOAD_URL','https://api-preprod.bsstag.com','.aab','stag','ERR_PROXY_CONNECTION_FAILED','Invalid\x20property\x20added\x20for\x20the\x20%s\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','4513576vBBDaA','httpProxy','prod','Cucumber-JS','8UueHzS','Create\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing','browserVersion','LOG_FILE_NAME','MAX_GIT_META_DATA_SIZE_IN_BYTES','proxyUrl','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','SDKTestTcgAuthFailure','proxyUser','https://eds.browserstack.com','automation','INVALID_INIT_RESP_WITH_USER_IMPACT','MOCHA','ERR_CONNECTION_ABORTED','BSTACK_DELTA','bsstag','app-automate','ERR_BLOCKED_BY_CLIENT','TCG_AUTH_FAILURE','pre-prod','PLAYWRIGHT_TRACE_LOGS','2388816jWaYTD','ERR_NAME_RESOLUTION_FAILED','44lQKrSt','turboScaleOptions','browserStackLocalOptions','firefoxOptions','FUNNEL_INSTRUMENTATION_API_URL','accessibilityOptions','proxySettings','parallelsPerPlatform','AUTOMATE','https://api-cloud-devtestops.bsstag.com','ERR_NAME_NOT_RESOLVED','1587803ECOEJD','APP_AUTOMATE','ERR_SOCKS_CONNECTION_FAILED','EDS_URL','HEALING_LOG_DATA_TIMEOUT','use','ATS_WSS_URL_REGEX','https://upload-observability-devtestops-ssi.bsstag.com','BROWSERSTACK','https://app-automate-devtestops.bsstag.com/dashboard/v2/builds/','mocha','OBSERVABILITY_SUPPORTED_FWS','root','HUB_URL_REGEX','...[TRUNCATED]','Run\x20js\x20tests\x20on\x20browserstack','DEBUG_LOG_FILE_NAME','Run\x20mocha\x20tests\x20on\x20browserstack','hubUrl','acceptSslCerts','pageLoadStrategy','VALID_APP_EXTENSION','ieOptions','https://tcg.browserstack.com','https://upload-observability-preprod.bsstag.com','toLowerCase','BROWSERSTACK_APP_AUTOMATE_URL','accessibility','/usage.log','Run\x20cucumber-js\x20tests\x20on\x20browserstack','CUCUMBER','browserstackAutomation','BROWSERSTACK_ENV','testOrchestrationOptions','platforms','cucumber','https://observability-preprod.bsstag.com','PLAYWRIGHT_CONFIG_OPTION_ERRORS','disableAutoCaptureLogs','accessKey','browserName','https://upload-observability.browserstack.com','invalidKeys','TCG_URL','observability','shows\x20version\x20information','PACKAGE_TYPE','turboScale','CODECEPT_CUCUMBER','HST','name\x20property\x20must\x20be\x20unique\x20within\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','browserstack.accessKey','httpsProxy','REDACTED_KEYS','INFO','playwright','ERR_TUNNEL_CONNECTION_FAILED','invalidTestInputType','Upgrade\x20required'];a52_0x4b62=function(){return _0x444335;};return a52_0x4b62();}const a52_0x5b6ea4={};a52_0x5b6ea4[a52_0x36b550(0x142)]=a52_0x36b550(0x1be);const a52_0x10ebd7={};a52_0x10ebd7[a52_0x36b550(0x142)]=a52_0x36b550(0x177);const a52_0x1c3afa={};a52_0x1c3afa['PLAYWRIGHT']='Playwright',a52_0x1c3afa[a52_0x36b550(0x1c9)]=a52_0x36b550(0x1e9),a52_0x1c3afa['JEST']=a52_0x36b550(0x182),a52_0x1c3afa['CODECEPT']='codeceptjs',a52_0x1c3afa[a52_0x36b550(0x13c)]=a52_0x36b550(0x14c),a52_0x1c3afa[a52_0x36b550(0x12a)]=a52_0x36b550(0x12f);const a52_0xd509ad={};a52_0xd509ad[a52_0x36b550(0x136)]=a52_0x36b550(0x1b8),a52_0xd509ad[a52_0x36b550(0x172)]=a52_0x36b550(0x13e),a52_0xd509ad[a52_0x36b550(0x1ae)]=a52_0x36b550(0x179),a52_0xd509ad[a52_0x36b550(0x145)]='Invalid\x20value\x20for\x20\x27%s\x27\x20key\x20in\x20the\x20yml\x20file';const a52_0x4ad728={};a52_0x4ad728[a52_0x36b550(0x16d)]=a52_0x36b550(0x1af),a52_0x4ad728[a52_0x36b550(0x19f)]=a52_0x36b550(0x1a5);const a52_0x32d6c3={};a52_0x32d6c3['Mocha']=0xfde8,a52_0x32d6c3[a52_0x36b550(0x1bc)]=0xfde8,a52_0x32d6c3['Jest']=0x186a0;const a52_0x2aab90={};a52_0x2aab90[a52_0x36b550(0x118)]=[a52_0x36b550(0x167),a52_0x36b550(0x133),a52_0x36b550(0x1ba),a52_0x36b550(0x140),'customVariables',a52_0x36b550(0x17d),a52_0x36b550(0x13f),a52_0x36b550(0x194),a52_0x36b550(0x178),a52_0x36b550(0x1c2),a52_0x36b550(0x18a)],a52_0x2aab90[a52_0x36b550(0x1d6)]=[a52_0x36b550(0x1c5),a52_0x36b550(0x15b),'localProxyUser',a52_0x36b550(0x1a8)];const a52_0x13ae8e={};a52_0x13ae8e['browserstackLocal']=a52_0x36b550(0x171),a52_0x13ae8e['browserStackLocalOptions']='browserStackLocalOptions',a52_0x13ae8e[a52_0x36b550(0x18b)]=a52_0x36b550(0x1d6),a52_0x13ae8e[a52_0x36b550(0x1db)]=a52_0x36b550(0x1db),a52_0x13ae8e[a52_0x36b550(0x12e)]=a52_0x36b550(0x12e),a52_0x13ae8e['logLevel']='logLevel',a52_0x13ae8e[a52_0x36b550(0x1ba)]='httpProxy',a52_0x13ae8e['httpsProxy']=a52_0x36b550(0x140),a52_0x13ae8e['framework']=a52_0x36b550(0x19c),a52_0x13ae8e['testContextOptions']=a52_0x36b550(0x193),a52_0x13ae8e[a52_0x36b550(0x195)]=a52_0x36b550(0x195),a52_0x13ae8e['testObservabilityOptions']=a52_0x36b550(0x19b),a52_0x13ae8e['customVariables']='customVariables',a52_0x13ae8e[a52_0x36b550(0x1c7)]='browserstackAutomation',a52_0x13ae8e['browserstackAutomation']=a52_0x36b550(0x12b),a52_0x13ae8e[a52_0x36b550(0x173)]='rerunTests',a52_0x13ae8e['percy']=a52_0x36b550(0x170),a52_0x13ae8e[a52_0x36b550(0x15a)]='percyOptions',a52_0x13ae8e[a52_0x36b550(0x169)]=a52_0x36b550(0x169),a52_0x13ae8e[a52_0x36b550(0x132)]=a52_0x36b550(0x132),a52_0x13ae8e['accessibility']=a52_0x36b550(0x127),a52_0x13ae8e[a52_0x36b550(0x1d9)]=a52_0x36b550(0x1d9),a52_0x13ae8e[a52_0x36b550(0x13b)]=a52_0x36b550(0x13b),a52_0x13ae8e[a52_0x36b550(0x1d5)]='turboScaleOptions',a52_0x13ae8e[a52_0x36b550(0x1da)]='proxySettings',a52_0x13ae8e[a52_0x36b550(0x12d)]=a52_0x36b550(0x12d);const a52_0x26889e={};a52_0x26889e[a52_0x36b550(0x199)]=a52_0x359d4a,a52_0x26889e['JEST']=a52_0x5c3b16,a52_0x26889e[a52_0x36b550(0x1c9)]=a52_0x4822df,a52_0x26889e['CUCUMBER']=a52_0x282f9b,a52_0x26889e[a52_0x36b550(0x15e)]=a52_0x46bfee,a52_0x26889e[a52_0x36b550(0x176)]=a52_0x4007c3,a52_0x26889e[a52_0x36b550(0x148)]=a52_0x34965c,a52_0x26889e['CODECEPTJS']=a52_0x544d27,a52_0x26889e[a52_0x36b550(0x13d)]=a52_0x5b6ea4,a52_0x26889e[a52_0x36b550(0x188)]=a52_0x10ebd7,a52_0x26889e[a52_0x36b550(0x1cb)]=0xf*0x3c*0x3e8,a52_0x26889e[a52_0x36b550(0x11e)]='https://hub.browserstack.com/wd/hub',a52_0x26889e[a52_0x36b550(0x137)]=a52_0x36b550(0x123),a52_0x26889e['TCG_REGION']=a52_0x36b550(0x1e4),a52_0x26889e[a52_0x36b550(0x119)]=/^hub(-[a-z]+)?\.browserstack\.com$/,a52_0x26889e[a52_0x36b550(0x186)]=/^[a-zA-Z0-9]+-hub\.browserstack-ats\.com$/,a52_0x26889e[a52_0x36b550(0x1e5)]=/wss?:\/\/(?:[a-zA-Z0-9_-]+-)?hub(?:-ft)?\.browserstack(-ats)?\.com/,a52_0x26889e[a52_0x36b550(0x19e)]=[a52_0x36b550(0x197),a52_0x36b550(0x120),a52_0x36b550(0x158),a52_0x36b550(0x159),'timeouts',a52_0x36b550(0x134),a52_0x36b550(0x1bf),a52_0x36b550(0x11f),'acceptSslCert',a52_0x36b550(0x155),a52_0x36b550(0x1d7),'edgeOptions',a52_0x36b550(0x122)],a52_0x26889e[a52_0x36b550(0x168)]=/^[\w-]+:.*$/,a52_0x26889e[a52_0x36b550(0x17b)]=[/localhost/,/bs-local.com/,/^127\./,/^10\./,/^172\.1[6-9]\./,/^172\.2[0-9]\./,/^172\.3[0-1]\./,/^192\.168\./],a52_0x26889e[a52_0x36b550(0x1e2)]=a52_0x36b550(0x1c6),a52_0x26889e[a52_0x36b550(0x150)]='https://api.browserstack.com',a52_0x26889e[a52_0x36b550(0x1b3)]='https://api-cloud.browserstack.com',a52_0x26889e[a52_0x36b550(0x191)]=a52_0x36b550(0x19a),a52_0x26889e[a52_0x36b550(0x1d8)]='sdk/v1/event',a52_0x26889e[a52_0x36b550(0x15c)]=[a52_0x36b550(0x153),a52_0x36b550(0x138)],a52_0x26889e[a52_0x36b550(0x16a)]=['app-automate',a52_0x36b550(0x138)],a52_0x26889e[a52_0x36b550(0x1c3)]=[a52_0x36b550(0x138)],a52_0x26889e[a52_0x36b550(0x1a6)]=a52_0x36b550(0x135),a52_0x26889e[a52_0x36b550(0x117)]=[a52_0x36b550(0x1e9),'Playwright'],a52_0x26889e[a52_0x36b550(0x1dc)]=[a52_0x36b550(0x153)],a52_0x26889e[a52_0x36b550(0x16e)]=a52_0x36b550(0x1ac),a52_0x26889e[a52_0x36b550(0x126)]=a52_0x36b550(0x190),a52_0x26889e[a52_0x36b550(0x1e0)]=[a52_0x36b550(0x1cd)],a52_0x26889e['NUDGE_LOCAL_ERRORS']=['ERR_FAILED','ERR_TIMED_OUT',a52_0x36b550(0x1ce),'ERR_NETWORK_CHANGED',a52_0x36b550(0x1a9),a52_0x36b550(0x154),a52_0x36b550(0x17f),'ERR_CONNECTION_REFUSED',a52_0x36b550(0x1ca),a52_0x36b550(0x183),a52_0x36b550(0x1de),'ERR_ADDRESS_INVALID','ERR_ADDRESS_UNREACHABLE',a52_0x36b550(0x144),a52_0x36b550(0x1a1),a52_0x36b550(0x1e1),a52_0x36b550(0x1a3),a52_0x36b550(0x1b7),a52_0x36b550(0x1de),a52_0x36b550(0x1d3),a52_0x36b550(0x174)],a52_0x26889e[a52_0x36b550(0x121)]=[a52_0x36b550(0x17c),a52_0x36b550(0x1b5),'.ipa'],a52_0x26889e[a52_0x36b550(0x1aa)]='^[a-zA-Z0-9_.-]*$',a52_0x26889e[a52_0x36b550(0x17e)]='^[a-zA-Z0-9_.-]*/[a-zA-Z0-9_.-]*$',a52_0x26889e['CI_ARTIFACTS_PATH']=a52_0x36b550(0x156),a52_0x26889e[a52_0x36b550(0x180)]=a52_0x36b550(0x184),a52_0x26889e[a52_0x36b550(0x14e)]=a52_0x1c3afa,a52_0x26889e[a52_0x36b550(0x18c)]=[a52_0x36b550(0x182),a52_0x36b550(0x1e9)],a52_0x26889e[a52_0x36b550(0x131)]=a52_0xd509ad,a52_0x26889e[a52_0x36b550(0x14b)]=a52_0x36b550(0x16b),a52_0x26889e[a52_0x36b550(0x13a)]=a52_0x4ad728,a52_0x26889e[a52_0x36b550(0x1c1)]=0x40*0x400,a52_0x26889e[a52_0x36b550(0x14d)]=a52_0x36b550(0x11a),a52_0x26889e[a52_0x36b550(0x165)]=a52_0x36b550(0x146),a52_0x26889e[a52_0x36b550(0x1ad)]='SDKTestTcgDownResponse',a52_0x26889e[a52_0x36b550(0x1c8)]=a52_0x36b550(0x14a),a52_0x26889e[a52_0x36b550(0x1cf)]=a52_0x36b550(0x1c4),a52_0x26889e['AI_INIT_SUCCESSFUL']=a52_0x36b550(0x192),a52_0x26889e[a52_0x36b550(0x16c)]=a52_0x36b550(0x147),a52_0x26889e[a52_0x36b550(0x15d)]='SDKTestTcgProxyFailure',a52_0x26889e['TCG_AUTH_TIMEOUT']=0x1388,a52_0x26889e[a52_0x36b550(0x163)]=0x1388,a52_0x26889e[a52_0x36b550(0x1e3)]=0x1388,a52_0x26889e[a52_0x36b550(0x164)]=0x1388,a52_0x26889e[a52_0x36b550(0x16f)]=0xc350,a52_0x26889e['TEST_FRAMEWORK_HOOK_TIMEOUT']=a52_0x32d6c3,a52_0x26889e[a52_0x36b550(0x141)]=a52_0x2aab90,a52_0x26889e['AI_ENABLED_FRAMEWORK']=[a52_0x36b550(0x18f),'codeceptjs'],a52_0x26889e['SDK_INSTRUMENTATION_CONFIG']=a52_0x13ae8e,a52_0x26889e[a52_0x36b550(0x1c0)]=a52_0x36b550(0x128),a52_0x26889e[a52_0x36b550(0x11c)]=a52_0x36b550(0x1a7),a52_0x26889e[a52_0x36b550(0x15f)]=a52_0x36b550(0x160),a52_0x26889e[a52_0x36b550(0x1b0)]=a52_0x36b550(0x1a4),a52_0x26889e['O11Y_URL']='https://observability.browserstack.com',a52_0x26889e[a52_0x36b550(0x1e7)]='browserstack',a52_0x26889e['CLI_SUPPORTED_FRAMEWORKS']=[a52_0x36b550(0x143)],a52_0x26889e[a52_0x36b550(0x1d1)]=a52_0x36b550(0x1d1),module['exports']=a52_0x26889e;const _env=(process[a52_0x36b550(0x175)][a52_0x36b550(0x12c)]||a52_0x36b550(0x1bb))[a52_0x36b550(0x125)]();if(_env==='staging'||_env===a52_0x36b550(0x1b6)){const LscGDp=a52_0x36b550(0x1ab)[a52_0x36b550(0x17a)]('|');let QkBSxe=0x0;while(!![]){switch(LscGDp[QkBSxe++]){case'0':module['exports'][a52_0x36b550(0x15f)]=a52_0x36b550(0x187);continue;case'1':module[a52_0x36b550(0x151)]['APP_UPLOAD_URL']=a52_0x36b550(0x1dd);continue;case'2':module[a52_0x36b550(0x151)][a52_0x36b550(0x1e2)]='https://edsstaging.bsstag.com';continue;case'3':module[a52_0x36b550(0x151)][a52_0x36b550(0x1e7)]=a52_0x36b550(0x1cc);continue;case'4':module[a52_0x36b550(0x151)]['TCG_URL']=a52_0x36b550(0x1b1);continue;case'5':module['exports'][a52_0x36b550(0x11e)]=a52_0x36b550(0x152);continue;case'6':module[a52_0x36b550(0x151)][a52_0x36b550(0x1a6)]=a52_0x36b550(0x1e6);continue;case'7':module['exports'][a52_0x36b550(0x162)]='https://observability-devtestops.bsstag.com';continue;case'8':module['exports'][a52_0x36b550(0x16e)]='https://automate-devtestops.bsstag.com/dashboard/v2/builds/';continue;case'9':module[a52_0x36b550(0x151)][a52_0x36b550(0x119)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'10':module[a52_0x36b550(0x151)][a52_0x36b550(0x126)]=a52_0x36b550(0x1e8);continue;case'11':module[a52_0x36b550(0x151)][a52_0x36b550(0x180)]=a52_0x36b550(0x181);continue;case'12':module[a52_0x36b550(0x151)][a52_0x36b550(0x150)]=a52_0x36b550(0x161);continue;}break;}}else{if(_env==='preprod'||_env===a52_0x36b550(0x1d0)){const HabGBy=a52_0x36b550(0x196)[a52_0x36b550(0x17a)]('|');let RPJnEO=0x0;while(!![]){switch(HabGBy[RPJnEO++]){case'0':module[a52_0x36b550(0x151)][a52_0x36b550(0x16e)]=a52_0x36b550(0x1a0);continue;case'1':module[a52_0x36b550(0x151)]['EDS_URL']=a52_0x36b550(0x166);continue;case'2':module['exports']['APP_UPLOAD_URL']=a52_0x36b550(0x1b4);continue;case'3':module[a52_0x36b550(0x151)]['PLAYWRIGHT_HUB_URL']='wss://cdp-preprod.bsstag.com/playwright?caps=';continue;case'4':module['exports']['BSTACK_URL']=a52_0x36b550(0x187);continue;case'5':module[a52_0x36b550(0x151)][a52_0x36b550(0x1a6)]=a52_0x36b550(0x124);continue;case'6':module[a52_0x36b550(0x151)]['TCG_URL']='https://tcg-preprod.bsstag.com';continue;case'7':module[a52_0x36b550(0x151)][a52_0x36b550(0x119)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'8':module[a52_0x36b550(0x151)][a52_0x36b550(0x150)]=a52_0x36b550(0x1b4);continue;case'9':module[a52_0x36b550(0x151)][a52_0x36b550(0x162)]=a52_0x36b550(0x130);continue;case'10':module[a52_0x36b550(0x151)][a52_0x36b550(0x11e)]='https://hub-preprod.bsstag.com/wd/hub';continue;case'11':module['exports'][a52_0x36b550(0x1e7)]=a52_0x36b550(0x1cc);continue;case'12':module['exports'][a52_0x36b550(0x126)]=a52_0x36b550(0x157);continue;}break;}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x854400,_0x189719){const _0xbff3e9=a53_0x15c2,_0x375e81=_0x854400();while(!![]){try{const _0x214d39=parseInt(_0xbff3e9(0xa1))/0x1+-parseInt(_0xbff3e9(0x9f))/0x2+parseInt(_0xbff3e9(0xa0))/0x3+parseInt(_0xbff3e9(0xab))/0x4+parseInt(_0xbff3e9(0xaa))/0x5+parseInt(_0xbff3e9(0xa8))/0x6+-parseInt(_0xbff3e9(0xa9))/0x7;if(_0x214d39===_0x189719)break;else _0x375e81['push'](_0x375e81['shift']());}catch(_0x5671c6){_0x375e81['push'](_0x375e81['shift']());}}}(a53_0x3ae6,0xbdc49));function a53_0x15c2(_0x54e261,_0x2c4eee){const _0x3ae6e0=a53_0x3ae6();return a53_0x15c2=function(_0x15c22f,_0x2dc683){_0x15c22f=_0x15c22f-0x9d;let _0x422279=_0x3ae6e0[_0x15c22f];return _0x422279;},a53_0x15c2(_0x54e261,_0x2c4eee);}const logReportingAPI=require('./logReportingAPI'),BSTestOpsLogger=new logReportingAPI({});function BSTestOpsLog4JSAppender(_0x25af4c,_0x2c1a44){return _0x325d07=>{const _0x52ff34=a53_0x15c2;BSTestOpsLogger['log']({'level':_0x325d07[_0x52ff34(0x9d)]?_0x325d07[_0x52ff34(0x9d)][_0x52ff34(0x9e)]:null,'message':_0x325d07[_0x52ff34(0xa7)]?_0x325d07[_0x52ff34(0xa7)]['join']('\x20'):null});};}exports['configure']=(_0xe72928,_0x1f0423)=>{const _0x588d91=a53_0x15c2,_0x30f140={'GPEHx':function(_0x16b1c0,_0x2b738f,_0x45ff92){return _0x16b1c0(_0x2b738f,_0x45ff92);}};let _0xaede8d=_0x1f0423[_0x588d91(0xa4)];return _0xe72928[_0x588d91(0xa2)]&&(_0xaede8d=_0x1f0423[_0x588d91(0xa2)](_0xe72928['layout'][_0x588d91(0xa6)],_0xe72928[_0x588d91(0xa2)])),_0x30f140[_0x588d91(0xa3)](BSTestOpsLog4JSAppender,_0xaede8d,_0xe72928[_0x588d91(0xa5)]);};function a53_0x3ae6(){const _0x1d0852=['461825hbIKis','3616960vxIffI','level','levelStr','2910726XEdbOr','3852714wqGfHK','993187Hfvdcb','layout','GPEHx','colouredLayout','timezoneOffset','type','data','1843590MVGCjW','9440501yTWEFq'];a53_0x3ae6=function(){return _0x1d0852;};return a53_0x3ae6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x5bea0b=a54_0x1aaf;(function(_0x598ff2,_0x361c0c){const _0x139753=a54_0x1aaf,_0x4552ce=_0x598ff2();while(!![]){try{const _0x4e185e=-parseInt(_0x139753(0x167))/0x1*(-parseInt(_0x139753(0x155))/0x2)+parseInt(_0x139753(0x14e))/0x3*(parseInt(_0x139753(0x159))/0x4)+-parseInt(_0x139753(0x14d))/0x5+parseInt(_0x139753(0x157))/0x6+parseInt(_0x139753(0x160))/0x7*(parseInt(_0x139753(0x166))/0x8)+parseInt(_0x139753(0x15f))/0x9+-parseInt(_0x139753(0x15e))/0xa;if(_0x4e185e===_0x361c0c)break;else _0x4552ce['push'](_0x4552ce['shift']());}catch(_0x180969){_0x4552ce['push'](_0x4552ce['shift']());}}}(a54_0x22f6,0xd8242));const Transport=require(a54_0x5bea0b(0x161)),{consoleHolder}=require('../../helpers/test-observability/constants'),a54_0x31b381={};a54_0x31b381[a54_0x5bea0b(0x15d)]=a54_0x5bea0b(0x15d),a54_0x31b381[a54_0x5bea0b(0x14c)]=a54_0x5bea0b(0x14c),a54_0x31b381['DEBUG']=a54_0x5bea0b(0x156),a54_0x31b381['TRACE']=a54_0x5bea0b(0x14a),a54_0x31b381[a54_0x5bea0b(0x15c)]=a54_0x5bea0b(0x15c);const LOG_LEVELS=a54_0x31b381;class logPatcher extends Transport{constructor(_0x42916e){super(_0x42916e);}[a54_0x5bea0b(0x152)]=(_0x4d82ca=LOG_LEVELS[a54_0x5bea0b(0x15d)],_0x494931=[''])=>{const _0x4dfeef=a54_0x5bea0b,_0x5d513d={};_0x5d513d['FHQKi']=_0x4dfeef(0x162);const _0x2c6ade=_0x5d513d;consoleHolder[_0x4d82ca['toLowerCase']()](..._0x494931),process[_0x4dfeef(0x151)](_0x4dfeef(0x163)+process['pid'],{'timestamp':new Date()[_0x4dfeef(0x154)](),'level':_0x4d82ca[_0x4dfeef(0x150)](),'message':'\x22'+_0x494931[_0x4dfeef(0x164)](',\x20')+'\x22','kind':_0x2c6ade[_0x4dfeef(0x15a)],'http_response':{}});};[a54_0x5bea0b(0x15b)]=(..._0x44fa79)=>{const _0x3b17b6=a54_0x5bea0b;this['logToTestOps'](LOG_LEVELS[_0x3b17b6(0x14a)],_0x44fa79);};[a54_0x5bea0b(0x14f)]=(..._0x242270)=>{const _0x3af780=a54_0x5bea0b;this[_0x3af780(0x152)](LOG_LEVELS[_0x3af780(0x156)],_0x242270);};[a54_0x5bea0b(0x153)]=(..._0x2735e1)=>{const _0x2fb957=a54_0x5bea0b;this[_0x2fb957(0x152)](LOG_LEVELS[_0x2fb957(0x15d)],_0x2735e1);};['warn']=(..._0x58b56a)=>{const _0x203086=a54_0x5bea0b;this[_0x203086(0x152)](LOG_LEVELS[_0x203086(0x15c)],_0x58b56a);};[a54_0x5bea0b(0x158)]=(..._0x1f83eb)=>{const _0x460cb9=a54_0x5bea0b;this[_0x460cb9(0x152)](LOG_LEVELS[_0x460cb9(0x14c)],_0x1f83eb);};[a54_0x5bea0b(0x165)]=(..._0x1fff60)=>{const _0x1d90f9=a54_0x5bea0b;this[_0x1d90f9(0x152)](LOG_LEVELS[_0x1d90f9(0x15d)],_0x1fff60);};}function a54_0x1aaf(_0xca2802,_0xb2b06a){const _0x22f634=a54_0x22f6();return a54_0x1aaf=function(_0x1aafba,_0x54334a){_0x1aafba=_0x1aafba-0x14a;let _0x4da92d=_0x22f634[_0x1aafba];return _0x4da92d;},a54_0x1aaf(_0xca2802,_0xb2b06a);};function a54_0x22f6(){const _0x14507a=['log','3102032VzdxOF','555syVrxq','TRACE','exports','ERROR','6343625BoDTWp','3315aQMHRS','debug','toUpperCase','emit','logToTestOps','info','toISOString','4028DqAfik','DEBUG','4562106UTORca','error','5156CLptuT','FHQKi','trace','WARN','INFO','31914410ibSILF','14897340EdjnMW','7OlitBv','winston-transport','TEST_LOG','bs:addLog:','join'];a54_0x22f6=function(){return _0x14507a;};return a54_0x22f6();}module[a54_0x5bea0b(0x14b)]=logPatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x3c4344=a55_0x6f60;(function(_0x53af11,_0x1ecf50){const _0x33c45a=a55_0x6f60,_0xf87926=_0x53af11();while(!![]){try{const _0x12e148=parseInt(_0x33c45a(0x1da))/0x1+-parseInt(_0x33c45a(0x1e5))/0x2+-parseInt(_0x33c45a(0x1d3))/0x3+-parseInt(_0x33c45a(0x1df))/0x4+parseInt(_0x33c45a(0x1ca))/0x5+-parseInt(_0x33c45a(0x1d2))/0x6+parseInt(_0x33c45a(0x1d8))/0x7*(parseInt(_0x33c45a(0x1cf))/0x8);if(_0x12e148===_0x1ecf50)break;else _0xf87926['push'](_0xf87926['shift']());}catch(_0x16fd28){_0xf87926['push'](_0xf87926['shift']());}}}(a55_0x28e3,0xa3f16));function a55_0x6f60(_0xcdf1e4,_0x4aaf50){const _0x28e362=a55_0x28e3();return a55_0x6f60=function(_0x6f601c,_0x1eee48){_0x6f601c=_0x6f601c-0x1c9;let _0x3c1ef3=_0x28e362[_0x6f601c];return _0x3c1ef3;},a55_0x6f60(_0xcdf1e4,_0x4aaf50);}const Transport=require(a55_0x3c4344(0x1e1)),{consoleHolder}=require(a55_0x3c4344(0x1d6)),a55_0x7eec09={};a55_0x7eec09['INFO']=a55_0x3c4344(0x1db),a55_0x7eec09[a55_0x3c4344(0x1c9)]=a55_0x3c4344(0x1c9),a55_0x7eec09[a55_0x3c4344(0x1d7)]='DEBUG',a55_0x7eec09['TRACE']='TRACE',a55_0x7eec09[a55_0x3c4344(0x1e7)]='WARN';function a55_0x28e3(){const _0x2cf4d9=['5100528KJMjKV','2950509lEewoM','Fevxo','toUpperCase','../../helpers/test-observability/constants','DEBUG','1435BZdquf','level','1051584cVejvk','INFO','bs:addLog:','TRACE','exports','3099588BQWxRE','message','winston-transport','eqHsp','toLowerCase','emit','2243908iPFzdo','dVwzq','WARN','warn','UEhTq','error','ERROR','3398140QiRUQl','cOSqe','toISOString','logToTestOps','logged','104224kUMlab','debug','TEST_LOG'];a55_0x28e3=function(){return _0x2cf4d9;};return a55_0x28e3();}const LOG_LEVELS=a55_0x7eec09;class logReportingAPI extends Transport{constructor(_0xbd7750){super(_0xbd7750);}['log'](_0x2c71fd,_0x136628){const _0xa30be3=a55_0x3c4344,_0x5a53e5={'dVwzq':_0xa30be3(0x1ce),'Fevxo':function(_0x35ea6e,_0x3d36a9){return _0x35ea6e(_0x3d36a9);},'SLOKT':function(_0x410309,_0xe9123d){return _0x410309===_0xe9123d;},'UEhTq':'object','cOSqe':function(_0x137596){return _0x137596();}};_0x5a53e5[_0xa30be3(0x1d4)](setImmediate,()=>{const _0x5c6441=_0xa30be3;this[_0x5c6441(0x1e4)](_0x5a53e5[_0x5c6441(0x1e6)],_0x2c71fd);}),_0x5a53e5['SLOKT'](typeof _0x2c71fd,_0x5a53e5[_0xa30be3(0x1e9)])?this[_0xa30be3(0x1cd)](_0x2c71fd[_0xa30be3(0x1d9)]||LOG_LEVELS[_0xa30be3(0x1db)],_0x2c71fd[_0xa30be3(0x1e0)],![]):this['logToTestOps'](LOG_LEVELS['INFO'],_0x2c71fd),_0x136628&&_0x5a53e5[_0xa30be3(0x1cb)](_0x136628);}['logToTestOps']=(_0x4cd23c=LOG_LEVELS['INFO'],_0x5e68d2='',_0x3201ff=!![])=>{const _0x4a54d0=a55_0x3c4344,_0x4f7806={};_0x4f7806[_0x4a54d0(0x1e2)]=_0x4a54d0(0x1d1);const _0x39b6f7=_0x4f7806;_0x3201ff&&consoleHolder[_0x4cd23c[_0x4a54d0(0x1e3)]()](_0x5e68d2),process[_0x4a54d0(0x1e4)](_0x4a54d0(0x1dc)+process['pid'],{'timestamp':new Date()[_0x4a54d0(0x1cc)](),'level':_0x4cd23c[_0x4a54d0(0x1d5)](),'message':_0x5e68d2,'kind':_0x39b6f7[_0x4a54d0(0x1e2)],'http_response':{}});};['trace']=(_0x3985b5,_0x4bd8db)=>{const _0x431a2a=a55_0x3c4344;this[_0x431a2a(0x1cd)](LOG_LEVELS[_0x431a2a(0x1dd)],_0x3985b5);};[a55_0x3c4344(0x1d0)]=(_0xebb402,_0x5849b3)=>{const _0x1bb2d0=a55_0x3c4344;this[_0x1bb2d0(0x1cd)](LOG_LEVELS[_0x1bb2d0(0x1d7)],_0xebb402);};['info']=(_0x333efb,_0x4e1fdd)=>{const _0x1e6924=a55_0x3c4344;this[_0x1e6924(0x1cd)](LOG_LEVELS[_0x1e6924(0x1db)],_0x333efb);};[a55_0x3c4344(0x1e8)]=(_0x5a11d7,_0x1fd4d4)=>{const _0x6c1c0f=a55_0x3c4344;this[_0x6c1c0f(0x1cd)](LOG_LEVELS[_0x6c1c0f(0x1e7)],_0x5a11d7);};[a55_0x3c4344(0x1ea)]=(_0x706eee,_0x35d917)=>{const _0x437bb7=a55_0x3c4344;this[_0x437bb7(0x1cd)](LOG_LEVELS[_0x437bb7(0x1c9)],_0x706eee);};};module[a55_0x3c4344(0x1de)]=logReportingAPI;
|
package/src/bin/v2/TestInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a56_0x2d1e1a=a56_0x2d4b;(function(_0x29a1a2,_0x2aff7a){const _0x26f8e8=a56_0x2d4b,_0x502101=_0x29a1a2();while(!![]){try{const _0x2839bb=-parseInt(_0x26f8e8(0xd8))/0x1+-parseInt(_0x26f8e8(0xc2))/0x2+-parseInt(_0x26f8e8(0x109))/0x3+parseInt(_0x26f8e8(0xe2))/0x4*(parseInt(_0x26f8e8(0xab))/0x5)+-parseInt(_0x26f8e8(0xcd))/0x6*(parseInt(_0x26f8e8(0xd9))/0x7)+parseInt(_0x26f8e8(0xb8))/0x8*(-parseInt(_0x26f8e8(0xbc))/0x9)+parseInt(_0x26f8e8(0xd1))/0xa;if(_0x2839bb===_0x2aff7a)break;else _0x502101['push'](_0x502101['shift']());}catch(_0x47d65a){_0x502101['push'](_0x502101['shift']());}}}(a56_0x4c49,0xc0d81));const fs=require('fs'),path=require(a56_0x2d1e1a(0x108)),{v4:uuidv4}=require('uuid'),{TEMP_STORE_DIR_NAME}=require(a56_0x2d1e1a(0x102)),{nestedKeyValue}=require(a56_0x2d1e1a(0xd6)),logger=require('../../helpers/logger')[a56_0x2d1e1a(0xf8)],util=require('util'),helper=require(a56_0x2d1e1a(0xd6)),{createClassLogger}=require('../../helpers/classLogger.js'),lockfile=require(a56_0x2d1e1a(0xfa));function a56_0x2d4b(_0x2826a5,_0x557552){const _0x4c4945=a56_0x4c49();return a56_0x2d4b=function(_0x2d4b75,_0x5cdcd4){_0x2d4b75=_0x2d4b75-0xa4;let _0x21be7d=_0x4c4945[_0x2d4b75];return _0x21be7d;},a56_0x2d4b(_0x2826a5,_0x557552);}class TestInfo{static [a56_0x2d1e1a(0xdc)]={};static [a56_0x2d1e1a(0xa8)]=TestInfo[a56_0x2d1e1a(0xf4)]();static [a56_0x2d1e1a(0x10b)]=path[a56_0x2d1e1a(0xfb)](TestInfo[a56_0x2d1e1a(0xa8)],a56_0x2d1e1a(0xa6));[a56_0x2d1e1a(0x105)]=createClassLogger(a56_0x2d1e1a(0xba));static[a56_0x2d1e1a(0x107)](){const _0x3005d9=a56_0x2d1e1a,_0x2df241={};_0x2df241[_0x3005d9(0xb1)]=_0x3005d9(0xb4),_0x2df241[_0x3005d9(0xd7)]='traceZipPaths';const _0x4cd012=_0x2df241,_0x1765a7=_0x4cd012[_0x3005d9(0xb1)][_0x3005d9(0xbb)]('|');let _0x55ec45=0x0;while(!![]){switch(_0x1765a7[_0x55ec45++]){case'0':this['dirPath']=TestInfo[_0x3005d9(0xf4)]();continue;case'1':const _0xd9cc5a={};_0xd9cc5a['recursive']=!![],fs[_0x3005d9(0xe5)](this[_0x3005d9(0x10b)],_0xd9cc5a);continue;case'2':logger['info'](_0x3005d9(0xe9)+this['dirPath']);continue;case'3':this[_0x3005d9(0xc6)]();continue;case'4':this[_0x3005d9(0x10b)]=path[_0x3005d9(0xfb)](this[_0x3005d9(0xa8)],_0x4cd012[_0x3005d9(0xd7)]);continue;case'5':const _0x39f4eb={};_0x39f4eb[_0x3005d9(0xbe)]=!![],fs[_0x3005d9(0xe5)](this[_0x3005d9(0xa8)],_0x39f4eb);continue;}break;}}static[a56_0x2d1e1a(0xf4)](){const _0x410339=a56_0x2d1e1a,_0x19f50b={};_0x19f50b[_0x410339(0xcf)]=function(_0x46a31a,_0x2a3c8c){return _0x46a31a+_0x2a3c8c;};const _0x5a84b4=_0x19f50b;return _0x5a84b4[_0x410339(0xcf)](_0x5a84b4['qZxGR'](TEMP_STORE_DIR_NAME,'-'),process[_0x410339(0xf1)][_0x410339(0xb2)]);}static['getStoreDirPath'](){const _0xfecaaa=a56_0x2d1e1a,_0x2b1d19={};_0x2b1d19[_0xfecaaa(0xfe)]=function(_0x292e05,_0x1d5fd1){return _0x292e05+_0x1d5fd1;},_0x2b1d19[_0xfecaaa(0xd5)]=_0xfecaaa(0xaf);const _0x28abee=_0x2b1d19;return path[_0xfecaaa(0xfb)](_0x28abee[_0xfecaaa(0xfe)](_0x28abee[_0xfecaaa(0xfe)](TEMP_STORE_DIR_NAME,'-'),process[_0xfecaaa(0xf1)][_0xfecaaa(0xb2)]||_0x28abee[_0xfecaaa(0xd5)]));}static[a56_0x2d1e1a(0xd4)](){const _0x382e9e=a56_0x2d1e1a,_0x318103={};_0x318103[_0x382e9e(0xee)]=_0x382e9e(0xa6);const _0x80ec1a=_0x318103;return path[_0x382e9e(0xfb)](this[_0x382e9e(0xa9)](),_0x80ec1a[_0x382e9e(0xee)]);}static[a56_0x2d1e1a(0x104)](_0x4be20c){const _0x2c9a1d=a56_0x2d1e1a,_0x5b8f6e={};_0x5b8f6e[_0x2c9a1d(0xef)]=function(_0x23e9e1,_0xe8f451){return _0x23e9e1+_0xe8f451;},_0x5b8f6e[_0x2c9a1d(0xc7)]='.json';const _0x22919a=_0x5b8f6e;return path[_0x2c9a1d(0xfb)](this[_0x2c9a1d(0xa8)],_0x22919a[_0x2c9a1d(0xef)](_0x4be20c,_0x22919a['jlCGe']));}static[a56_0x2d1e1a(0xac)](_0x3f3599){const _0x3ac204=a56_0x2d1e1a,_0x521937={};_0x521937[_0x3ac204(0x110)]=function(_0x39e7ec,_0x2afb83){return _0x39e7ec+_0x2afb83;},_0x521937[_0x3ac204(0xdf)]=function(_0x5ac295,_0x2f8fc3){return _0x5ac295+_0x2f8fc3;};const _0x50714a=_0x521937;return _0x50714a['DUksk'](_0x50714a[_0x3ac204(0x110)](_0x50714a[_0x3ac204(0xdf)](_0x50714a['DUksk'](this['getProjectIdFromTestInfo'](_0x3f3599),'-'),this[_0x3ac204(0xd3)](_0x3f3599)),'-'),_0x3f3599[_0x3ac204(0x106)]);}static['getProjectIdFromTestInfo'](_0x144829){const _0x47d75=a56_0x2d1e1a,_0x3cb1a4={'LWpll':function(_0x1825ec,_0x4bed08,_0x9cc43d){return _0x1825ec(_0x4bed08,_0x9cc43d);},'FiXOM':_0x47d75(0xbd),'TEKNn':_0x47d75(0xaa),'tqoTA':_0x47d75(0xd0),'IphDY':_0x47d75(0xff)};return _0x3cb1a4[_0x47d75(0xc3)](nestedKeyValue,_0x144829,[_0x3cb1a4[_0x47d75(0xf9)],_0x3cb1a4['TEKNn']])||_0x3cb1a4[_0x47d75(0xc3)](nestedKeyValue,_0x144829,[_0x3cb1a4['tqoTA'],_0x3cb1a4['IphDY']]);}static[a56_0x2d1e1a(0xd3)](_0x40053a){const _0x170301=a56_0x2d1e1a,_0x5580c2={'ebuRr':function(_0x556d00,_0x19c51d,_0x309159){return _0x556d00(_0x19c51d,_0x309159);},'QhxEo':'_test'};return _0x5580c2[_0x170301(0xfc)](nestedKeyValue,_0x40053a,[_0x5580c2['QhxEo'],'id'])||_0x40053a['testId'];}static[a56_0x2d1e1a(0xf0)](_0x501f2a){const _0x36b215=a56_0x2d1e1a,_0x59d001={'cctfM':function(_0x5e6ea2,_0x57abf4){return _0x5e6ea2===_0x57abf4;},'zksrl':_0x36b215(0xde),'fRUHj':function(_0x2baadb){return _0x2baadb();}};try{if(this[_0x36b215(0xdc)][_0x501f2a]&&_0x59d001[_0x36b215(0xeb)](typeof this[_0x36b215(0xdc)][_0x501f2a][_0x36b215(0xcb)],_0x59d001['zksrl']))return this[_0x36b215(0xdc)][_0x501f2a][_0x36b215(0xcb)];const _0x4f67b7=this[_0x36b215(0x104)](_0x501f2a),_0xf7513e=path[_0x36b215(0xb9)](_0x4f67b7);if(fs[_0x36b215(0xa4)](_0xf7513e)){const _0x28c0bc=JSON[_0x36b215(0xe3)](fs[_0x36b215(0xdd)](_0x4f67b7)[_0x36b215(0xf5)]());return this[_0x36b215(0xdc)][_0x501f2a]=_0x28c0bc,this[_0x36b215(0xdc)][_0x501f2a][_0x36b215(0xcb)];}return this['tests'][_0x501f2a]={'uuid':_0x59d001['fRUHj'](uuidv4)},fs[_0x36b215(0xc8)](_0x4f67b7,JSON[_0x36b215(0xc4)](this['tests'][_0x501f2a])),this[_0x36b215(0xdc)][_0x501f2a][_0x36b215(0xcb)];}catch(_0x45432f){return logger[_0x36b215(0x100)](_0x36b215(0xe0)+_0x501f2a+':\x20'+_0x45432f[_0x36b215(0xae)]),null;}}static[a56_0x2d1e1a(0xe8)](_0x1c922d){const _0x3064b1=a56_0x2d1e1a,_0x1d8dc4=path[_0x3064b1(0xfb)](this[_0x3064b1(0xa8)],_0x1c922d+_0x3064b1(0xe7));if(fs[_0x3064b1(0xa4)](_0x1d8dc4))return fs[_0x3064b1(0xdd)](_0x1d8dc4)[_0x3064b1(0xf5)]();}static[a56_0x2d1e1a(0xce)](_0xe17b12,_0x3c3db8){const _0x5b8415=a56_0x2d1e1a,_0x10c57a=path['join'](this[_0x5b8415(0xa8)],_0x3c3db8+'_platformDetails.json');fs[_0x5b8415(0xc8)](_0x10c57a,_0xe17b12['toString']());}static[a56_0x2d1e1a(0xc6)](){const _0x222b6f=a56_0x2d1e1a,_0x1c5d3c={};_0x1c5d3c['recursive']=!![],_0x1c5d3c['force']=!![],fs['rmSync'](this[_0x222b6f(0xa8)],_0x1c5d3c);}static[a56_0x2d1e1a(0xda)](_0x1d402e){const _0x2f8509=a56_0x2d1e1a,_0x5600d9=this[_0x2f8509(0x104)](_0x1d402e);if(fs[_0x2f8509(0xa4)](_0x5600d9))try{const _0x4af6b5=JSON[_0x2f8509(0xe3)](fs[_0x2f8509(0xdd)](_0x5600d9)['toString']());return this[_0x2f8509(0xdc)][_0x1d402e]=_0x4af6b5,_0x4af6b5;}catch(_0x3de789){return logger[_0x2f8509(0xf3)](_0x2f8509(0xfd)+_0x5600d9+':\x20'+util[_0x2f8509(0x103)](_0x3de789)+_0x2f8509(0xc0)),{};}return{};}static[a56_0x2d1e1a(0xea)](_0x2bb063,_0x2154a5){const _0x50a691=a56_0x2d1e1a,_0x1c62d3={'aDVRs':'setTestDetails\x20','dsIho':function(_0x36bf5d){return _0x36bf5d();}};logger[_0x50a691(0xb5)](_0x1c62d3[_0x50a691(0xf6)]),logger['debug']('processId:\x20'+process['pid']+_0x50a691(0xc9)+_0x2bb063+_0x50a691(0x10d)+JSON[_0x50a691(0xc4)](_0x2154a5));const _0x16e8f7=this[_0x50a691(0x104)](_0x2bb063);if(fs[_0x50a691(0xa4)](_0x16e8f7))try{const _0x10aba=lockfile[_0x50a691(0xe4)](_0x16e8f7),_0x31187c=JSON['parse'](fs[_0x50a691(0xdd)](_0x16e8f7)[_0x50a691(0xf5)]()),_0x23e140={..._0x31187c,..._0x2154a5};this[_0x50a691(0xdc)][_0x2bb063]=_0x23e140,fs['writeFileSync'](_0x16e8f7,JSON['stringify'](this[_0x50a691(0xdc)][_0x2bb063])),_0x1c62d3[_0x50a691(0xc1)](_0x10aba);}catch(_0x699c76){logger[_0x50a691(0xf3)](_0x50a691(0xfd)+_0x16e8f7+':\x20'+util[_0x50a691(0x103)](_0x699c76)+_0x50a691(0xb7));}}static[a56_0x2d1e1a(0x10a)](_0x16c56e){const _0x30b882=a56_0x2d1e1a,_0xb3c6ec={};_0xb3c6ec[_0x30b882(0xbf)]=_0x30b882(0xca);const _0x57c71b=_0xb3c6ec;try{const _0xcd6bdb=process[_0x30b882(0xe1)],_0x484f78=path[_0x30b882(0xfb)](TestInfo[_0x30b882(0xd4)](),_0xcd6bdb+_0x30b882(0x10e));let _0x303469=[];fs[_0x30b882(0xa4)](_0x484f78)&&(_0x303469=JSON[_0x30b882(0xe3)](fs[_0x30b882(0xdd)](_0x484f78)[_0x30b882(0xf5)]()));if(!_0x303469['some'](_0x4a8d19=>_0x4a8d19[_0x30b882(0xd2)]===_0x16c56e[_0x30b882(0xd2)])){_0x303469[_0x30b882(0xec)](_0x16c56e);const _0x2accc9=path['dirname'](_0x484f78);if(!fs[_0x30b882(0xa4)](_0x2accc9)){const _0x43c6b7={};_0x43c6b7['recursive']=!![],fs[_0x30b882(0xe5)](_0x2accc9,_0x43c6b7);}fs[_0x30b882(0xc8)](_0x484f78,JSON[_0x30b882(0xc4)](_0x303469));}}catch(_0x2255b2){logger[_0x30b882(0x100)](util[_0x30b882(0x103)](_0x57c71b[_0x30b882(0xbf)],_0x2255b2));}}static[a56_0x2d1e1a(0x10c)](){const _0x30cd68=a56_0x2d1e1a,_0x372759={};_0x372759[_0x30cd68(0xed)]=_0x30cd68(0x10e),_0x372759[_0x30cd68(0xb0)]=_0x30cd68(0xa7);const _0x50950b=_0x372759,_0x2653ba=[];try{const _0x3b344a=TestInfo[_0x30cd68(0xd4)]();if(!fs[_0x30cd68(0xa4)](_0x3b344a))return _0x2653ba;const _0x27a5f7=fs[_0x30cd68(0xa5)](_0x3b344a);_0x27a5f7[_0x30cd68(0xdb)](_0xcecb3b=>{const _0x157df1=_0x30cd68;if(_0xcecb3b['endsWith'](_0x50950b[_0x157df1(0xed)])){const _0x368430=JSON[_0x157df1(0xe3)](fs[_0x157df1(0xdd)](path[_0x157df1(0xfb)](_0x3b344a,_0xcecb3b))['toString']());_0x2653ba['push'](..._0x368430);}});}catch(_0x5336b8){logger[_0x30cd68(0x100)](util[_0x30cd68(0x103)](_0x50950b['TUboA'],_0x5336b8));}const _0x382d6b={};return _0x2653ba[_0x30cd68(0xdb)](_0x1a9d7b=>{const _0x56a9c6=_0x30cd68;_0x382d6b[_0x1a9d7b[_0x56a9c6(0xd2)]]=_0x1a9d7b;}),Object[_0x30cd68(0xcc)](_0x382d6b);}static[a56_0x2d1e1a(0x10f)](_0x258945,_0xa42209){const _0x3cac94=a56_0x2d1e1a,_0x45e793={};_0x45e793['jYJuA']=_0x3cac94(0x101),_0x45e793[_0x3cac94(0xf2)]=_0x3cac94(0xf7),_0x45e793[_0x3cac94(0xc5)]=_0x3cac94(0xb3);const _0x4252ba=_0x45e793;try{const _0x4970b2=path['join'](helper[_0x3cac94(0xad)](),_0x4252ba[_0x3cac94(0xb6)]);if(!fs[_0x3cac94(0xa4)](_0x4970b2)){const _0x16f9ff={};_0x16f9ff['recursive']=!![],fs[_0x3cac94(0xe5)](_0x4970b2,_0x16f9ff);}fs[_0x3cac94(0xe6)](path[_0x3cac94(0xfb)](_0x4970b2,'trace_'+_0xa42209+'.txt'),_0x258945+'\x0a',_0x4252ba[_0x3cac94(0xf2)]);}catch(_0x525429){logger[_0x3cac94(0x100)](util['format'](_0x4252ba[_0x3cac94(0xc5)],_0x525429));}}}function a56_0x4c49(){const _0x43b31f=['filePath','getTestIdFromTestInfo','getTraceZipDir','bXgAQ','../../helpers/helper','jScSc','215476oElOzi','91105VeqbwH','getTestDetails','forEach','tests','readFileSync','string','JYVeu','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','pid','58148eikpjd','parse','lockSync','mkdirSync','appendFileSync','_platformDetails.json','getAccessibilityPlatformValidation','Setting\x20up\x20TestInfo\x20directory\x20at\x20','setTestDetails','cctfM','push','GPLFC','muCIx','sArBB','getTestUUID','env','mItbm','warn','getStoreDirName','toString','aDVRs','utf8','winstonLogger','FiXOM','proper-lockfile','join','ebuRr','Failed\x20to\x20acquire\x20lock\x20for\x20','LxWSC','__projectId','error','.browserstack','../../helpers/test-observability/constants','format','getFilePath','logger','retry','setup','path','638061JBSQdq','addTraceFilePath','traceZipDir','getTraceFilePaths','\x20with\x20details:\x20','_traceZipPaths.json','appendToTracePaths','DUksk','existsSync','readdirSync','traceZipPaths','Error\x20reading\x20trace\x20file\x20paths:\x20%O','dirPath','getStoreDirPath','_projectId','385geevma','getTestRunIdFromTestInfo','homedir','message','default','TUboA','kbNsz','BS_TESTOPS_BUILD_HASHED_ID','Error\x20writing\x20trace\x20file:\x20%O','0|4|3|5|1|2','debug','jYJuA','.\x20Unable\x20to\x20set\x20test\x20details.','4544HxWuUd','resolve','TestInfo','split','5508UirJQH','_test','recursive','tMiPo','.\x20Returning\x20empty\x20test\x20details.','dsIho','79904gWATDD','LWpll','stringify','tHXUJ','shutdown','jlCGe','writeFileSync','\x20Setting\x20\x20test\x20details\x20for\x20','Error\x20handling\x20trace\x20file\x20paths:\x20%O','uuid','values','186qdCBJI','setAccessibilityPlatformValidation','qZxGR','project','8897360xgVtra'];a56_0x4c49=function(){return _0x43b31f;};return a56_0x4c49();}module['exports']=TestInfo;
|
|
1
|
+
const a56_0x4bc96f=a56_0x9394;(function(_0x56dcc5,_0x2f3cb0){const _0x50f95c=a56_0x9394,_0x4b5baf=_0x56dcc5();while(!![]){try{const _0x3322f0=-parseInt(_0x50f95c(0x104))/0x1*(-parseInt(_0x50f95c(0xd0))/0x2)+-parseInt(_0x50f95c(0xde))/0x3*(parseInt(_0x50f95c(0xca))/0x4)+parseInt(_0x50f95c(0xfb))/0x5+parseInt(_0x50f95c(0xe9))/0x6*(-parseInt(_0x50f95c(0xfd))/0x7)+parseInt(_0x50f95c(0xb6))/0x8*(parseInt(_0x50f95c(0x119))/0x9)+parseInt(_0x50f95c(0x11a))/0xa*(parseInt(_0x50f95c(0xb8))/0xb)+-parseInt(_0x50f95c(0x115))/0xc;if(_0x3322f0===_0x2f3cb0)break;else _0x4b5baf['push'](_0x4b5baf['shift']());}catch(_0x5313d4){_0x4b5baf['push'](_0x4b5baf['shift']());}}}(a56_0x3d19,0xb2c60));function a56_0x9394(_0x51c27a,_0x241535){const _0x3d19c0=a56_0x3d19();return a56_0x9394=function(_0x93941a,_0x97619a){_0x93941a=_0x93941a-0xa9;let _0x2cebb4=_0x3d19c0[_0x93941a];return _0x2cebb4;},a56_0x9394(_0x51c27a,_0x241535);}const fs=require('fs'),path=require(a56_0x4bc96f(0xe8)),{v4:uuidv4}=require(a56_0x4bc96f(0x10d)),{TEMP_STORE_DIR_NAME}=require(a56_0x4bc96f(0xcc)),{nestedKeyValue}=require(a56_0x4bc96f(0xed)),logger=require('../../helpers/logger')[a56_0x4bc96f(0xba)],util=require('util'),helper=require('../../helpers/helper'),{createClassLogger}=require('../../helpers/classLogger.js'),lockfile=require(a56_0x4bc96f(0xbf));class TestInfo{static [a56_0x4bc96f(0xaf)]={};static ['dirPath']=TestInfo[a56_0x4bc96f(0xe1)]();static [a56_0x4bc96f(0xdf)]=path['join'](TestInfo[a56_0x4bc96f(0x10a)],'traceZipPaths');[a56_0x4bc96f(0x109)]=createClassLogger(a56_0x4bc96f(0xf9));static['setup'](){const _0x41a1ef=a56_0x4bc96f,_0x354426={};_0x354426[_0x41a1ef(0xeb)]=_0x41a1ef(0xf8),_0x354426[_0x41a1ef(0xf7)]=_0x41a1ef(0xf4);const _0x3c3e7b=_0x354426,_0x522db6=_0x3c3e7b[_0x41a1ef(0xeb)][_0x41a1ef(0x105)]('|');let _0x46ef22=0x0;while(!![]){switch(_0x522db6[_0x46ef22++]){case'0':const _0x390fba={};_0x390fba[_0x41a1ef(0xc9)]=!![],fs['mkdirSync'](this[_0x41a1ef(0x10a)],_0x390fba);continue;case'1':this[_0x41a1ef(0xdf)]=path[_0x41a1ef(0x101)](this['dirPath'],_0x3c3e7b[_0x41a1ef(0xf7)]);continue;case'2':this['dirPath']=TestInfo['getStoreDirName']();continue;case'3':this['shutdown']();continue;case'4':const _0x403ba4={};_0x403ba4[_0x41a1ef(0xc9)]=!![],fs[_0x41a1ef(0xbb)](this['traceZipDir'],_0x403ba4);continue;case'5':logger[_0x41a1ef(0xac)]('Setting\x20up\x20TestInfo\x20directory\x20at\x20'+this[_0x41a1ef(0x10a)]);continue;}break;}}static[a56_0x4bc96f(0xe1)](){const _0x1435ea=a56_0x4bc96f,_0x3867d0={};_0x3867d0[_0x1435ea(0x10c)]=function(_0x7dc89f,_0x250261){return _0x7dc89f+_0x250261;},_0x3867d0['WtBWG']=function(_0x3895ec,_0x55e692){return _0x3895ec+_0x55e692;};const _0xe7f252=_0x3867d0;return _0xe7f252[_0x1435ea(0x10c)](_0xe7f252[_0x1435ea(0xc2)](TEMP_STORE_DIR_NAME,'-'),process[_0x1435ea(0xcd)]['BS_TESTOPS_BUILD_HASHED_ID']);}static[a56_0x4bc96f(0xf0)](){const _0x4cabaa=a56_0x4bc96f,_0x4eec7f={};_0x4eec7f[_0x4cabaa(0x116)]=function(_0x4a6eed,_0x4b5378){return _0x4a6eed+_0x4b5378;},_0x4eec7f[_0x4cabaa(0xce)]=function(_0x210c58,_0x3e425b){return _0x210c58+_0x3e425b;},_0x4eec7f[_0x4cabaa(0x106)]=_0x4cabaa(0xd3);const _0x1c08bd=_0x4eec7f;return path[_0x4cabaa(0x101)](_0x1c08bd[_0x4cabaa(0x116)](_0x1c08bd['FfxyE'](TEMP_STORE_DIR_NAME,'-'),process[_0x4cabaa(0xcd)][_0x4cabaa(0xdb)]||_0x1c08bd[_0x4cabaa(0x106)]));}static['getTraceZipDir'](){const _0x59083e=a56_0x4bc96f,_0x24137b={};_0x24137b['nRsPS']='traceZipPaths';const _0x26fe7b=_0x24137b;return path[_0x59083e(0x101)](this[_0x59083e(0xf0)](),_0x26fe7b['nRsPS']);}static[a56_0x4bc96f(0x112)](_0xee99cd){const _0x2e169f=a56_0x4bc96f,_0x41585f={};_0x41585f['KzCIE']=function(_0x2bfc6e,_0x1c7dee){return _0x2bfc6e+_0x1c7dee;},_0x41585f[_0x2e169f(0xc7)]=_0x2e169f(0xc1);const _0x1263fe=_0x41585f;return path[_0x2e169f(0x101)](this['dirPath'],_0x1263fe[_0x2e169f(0xfc)](_0xee99cd,_0x1263fe[_0x2e169f(0xc7)]));}static[a56_0x4bc96f(0xf3)](_0x5bf6e7){const _0x1fc650=a56_0x4bc96f,_0x257b84={};_0x257b84['vRZxT']=function(_0x16540c,_0x490cc6){return _0x16540c+_0x490cc6;},_0x257b84[_0x1fc650(0xd9)]=function(_0x3f1582,_0x2a0a81){return _0x3f1582+_0x2a0a81;};const _0x2dac8c=_0x257b84;return _0x2dac8c['vRZxT'](_0x2dac8c[_0x1fc650(0x11b)](_0x2dac8c['vRZxT'](_0x2dac8c[_0x1fc650(0xd9)](this[_0x1fc650(0xc3)](_0x5bf6e7),'-'),this[_0x1fc650(0xff)](_0x5bf6e7)),'-'),_0x5bf6e7[_0x1fc650(0x103)]);}static['getProjectIdFromTestInfo'](_0x4602c0){const _0x14f1e4=a56_0x4bc96f,_0x3ab1ed={'XeJTN':function(_0x32c37e,_0x19df2b,_0x17e919){return _0x32c37e(_0x19df2b,_0x17e919);},'vDLox':_0x14f1e4(0x10b),'ggMuk':_0x14f1e4(0xaa),'lhTOv':_0x14f1e4(0x108),'Dbyxz':_0x14f1e4(0x107)};return _0x3ab1ed[_0x14f1e4(0x117)](nestedKeyValue,_0x4602c0,[_0x3ab1ed['vDLox'],_0x3ab1ed[_0x14f1e4(0xd8)]])||_0x3ab1ed[_0x14f1e4(0x117)](nestedKeyValue,_0x4602c0,[_0x3ab1ed[_0x14f1e4(0xb3)],_0x3ab1ed[_0x14f1e4(0xef)]]);}static[a56_0x4bc96f(0xff)](_0x7a76b6){const _0x2cbdf0=a56_0x4bc96f,_0x424cd0={'jdUkC':function(_0x2bc7a4,_0x32b5a5,_0x36e945){return _0x2bc7a4(_0x32b5a5,_0x36e945);},'mKXgh':_0x2cbdf0(0x10b)};return _0x424cd0[_0x2cbdf0(0x114)](nestedKeyValue,_0x7a76b6,[_0x424cd0[_0x2cbdf0(0x10f)],'id'])||_0x7a76b6[_0x2cbdf0(0xb5)];}static['getTestUUID'](_0xbc7008){const _0x249c37=a56_0x4bc96f,_0x22b79b={'TVErE':function(_0x22cc39,_0x1946e8){return _0x22cc39===_0x1946e8;},'InjKX':_0x249c37(0x100),'dtGnq':function(_0x8576c6){return _0x8576c6();}};try{if(this[_0x249c37(0xaf)][_0xbc7008]&&_0x22b79b['TVErE'](typeof this['tests'][_0xbc7008]['uuid'],_0x22b79b[_0x249c37(0xea)]))return this[_0x249c37(0xaf)][_0xbc7008][_0x249c37(0x10d)];const _0xd0aec0=this[_0x249c37(0x112)](_0xbc7008),_0x914bed=path[_0x249c37(0xab)](_0xd0aec0);if(fs[_0x249c37(0xd5)](_0x914bed)){const _0x189a4b=JSON[_0x249c37(0xb9)](fs[_0x249c37(0xb4)](_0xd0aec0)['toString']());return this[_0x249c37(0xaf)][_0xbc7008]=_0x189a4b,this[_0x249c37(0xaf)][_0xbc7008][_0x249c37(0x10d)];}return this['tests'][_0xbc7008]={'uuid':_0x22b79b[_0x249c37(0xc4)](uuidv4)},fs[_0x249c37(0xbe)](_0xd0aec0,JSON['stringify'](this[_0x249c37(0xaf)][_0xbc7008])),this[_0x249c37(0xaf)][_0xbc7008][_0x249c37(0x10d)];}catch(_0x13f322){return logger[_0x249c37(0xc8)]('Error\x20while\x20getting\x20test\x20UUID\x20for\x20'+_0xbc7008+':\x20'+_0x13f322[_0x249c37(0xdd)]),null;}}static[a56_0x4bc96f(0xcf)](_0x27b05b){const _0x329543=a56_0x4bc96f,_0x13eebd=path[_0x329543(0x101)](this[_0x329543(0x10a)],_0x27b05b+'_platformDetails.json');if(fs['existsSync'](_0x13eebd))return fs[_0x329543(0xb4)](_0x13eebd)[_0x329543(0xd2)]();}static[a56_0x4bc96f(0xb1)](_0x46a077,_0x146bfe){const _0x31d174=a56_0x4bc96f,_0x20950d=path['join'](this['dirPath'],_0x146bfe+'_platformDetails.json');fs[_0x31d174(0xbe)](_0x20950d,_0x46a077[_0x31d174(0xd2)]());}static[a56_0x4bc96f(0xbd)](){const _0x255912=a56_0x4bc96f,_0x58c9ac={};_0x58c9ac[_0x255912(0xc9)]=!![],_0x58c9ac[_0x255912(0xad)]=!![],fs[_0x255912(0xc5)](this[_0x255912(0x10a)],_0x58c9ac);}static[a56_0x4bc96f(0x118)](_0x3e056c){const _0x5be8da=a56_0x4bc96f,_0x288fba=this['getFilePath'](_0x3e056c);if(fs[_0x5be8da(0xd5)](_0x288fba))try{const _0xcac735=JSON[_0x5be8da(0xb9)](fs[_0x5be8da(0xb4)](_0x288fba)[_0x5be8da(0xd2)]());return this[_0x5be8da(0xaf)][_0x3e056c]=_0xcac735,_0xcac735;}catch(_0x5cded1){return logger[_0x5be8da(0xb2)](_0x5be8da(0xe5)+_0x288fba+':\x20'+util[_0x5be8da(0x102)](_0x5cded1)+_0x5be8da(0xf1)),{};}return{};}static[a56_0x4bc96f(0xb7)](_0x1db079,_0x2fe747){const _0x2d937e=a56_0x4bc96f,_0x1814ee={'FeqRw':'setTestDetails\x20','sAWKD':function(_0x9c43f0){return _0x9c43f0();}};logger[_0x2d937e(0xd7)](_0x1814ee[_0x2d937e(0xe6)]),logger['debug'](_0x2d937e(0xf5)+process['pid']+_0x2d937e(0xfe)+_0x1db079+'\x20with\x20details:\x20'+JSON[_0x2d937e(0x11c)](_0x2fe747));const _0x466123=this[_0x2d937e(0x112)](_0x1db079);if(fs[_0x2d937e(0xd5)](_0x466123))try{const _0x3de96d=lockfile[_0x2d937e(0xcb)](_0x466123),_0xe31b24=JSON['parse'](fs[_0x2d937e(0xb4)](_0x466123)[_0x2d937e(0xd2)]()),_0x13a8a4={..._0xe31b24,..._0x2fe747};this[_0x2d937e(0xaf)][_0x1db079]=_0x13a8a4,fs[_0x2d937e(0xbe)](_0x466123,JSON['stringify'](this[_0x2d937e(0xaf)][_0x1db079])),_0x1814ee[_0x2d937e(0xec)](_0x3de96d);}catch(_0x42c0e6){logger[_0x2d937e(0xb2)](_0x2d937e(0xe5)+_0x466123+':\x20'+util['format'](_0x42c0e6)+_0x2d937e(0x110));}}static[a56_0x4bc96f(0x10e)](_0x4a4d30){const _0x5ae97d=a56_0x4bc96f,_0x4f0746={};_0x4f0746['SHNQV']=_0x5ae97d(0xe2);const _0x5586b0=_0x4f0746;try{const _0x26fc18=process[_0x5ae97d(0xd4)],_0x2d9718=path['join'](TestInfo[_0x5ae97d(0x111)](),_0x26fc18+'_traceZipPaths.json');let _0x3fe995=[];fs[_0x5ae97d(0xd5)](_0x2d9718)&&(_0x3fe995=JSON[_0x5ae97d(0xb9)](fs[_0x5ae97d(0xb4)](_0x2d9718)[_0x5ae97d(0xd2)]()));if(!_0x3fe995[_0x5ae97d(0xa9)](_0x29a5fc=>_0x29a5fc[_0x5ae97d(0xdc)]===_0x4a4d30[_0x5ae97d(0xdc)])){_0x3fe995['push'](_0x4a4d30);const _0x2d3370=path[_0x5ae97d(0xd1)](_0x2d9718);if(!fs[_0x5ae97d(0xd5)](_0x2d3370)){const _0x5d9634={};_0x5d9634[_0x5ae97d(0xc9)]=!![],fs[_0x5ae97d(0xbb)](_0x2d3370,_0x5d9634);}fs[_0x5ae97d(0xbe)](_0x2d9718,JSON[_0x5ae97d(0x11c)](_0x3fe995));}}catch(_0x101a38){logger[_0x5ae97d(0xc8)](util[_0x5ae97d(0x102)](_0x5586b0['SHNQV'],_0x101a38));}}static['getTraceFilePaths'](){const _0x55a950=a56_0x4bc96f,_0x4f936b={};_0x4f936b[_0x55a950(0xee)]=_0x55a950(0x113),_0x4f936b[_0x55a950(0xe4)]=_0x55a950(0xc0);const _0x3dd6c6=_0x4f936b,_0x2bb8d8=[];try{const _0x948aac=TestInfo[_0x55a950(0x111)]();if(!fs[_0x55a950(0xd5)](_0x948aac))return _0x2bb8d8;const _0x2ad4fb=fs['readdirSync'](_0x948aac);_0x2ad4fb[_0x55a950(0xfa)](_0x20afed=>{const _0xa7eda4=_0x55a950;if(_0x20afed[_0xa7eda4(0xb0)](_0x3dd6c6['xhguL'])){const _0xf4dc4b=JSON['parse'](fs[_0xa7eda4(0xb4)](path[_0xa7eda4(0x101)](_0x948aac,_0x20afed))[_0xa7eda4(0xd2)]());_0x2bb8d8[_0xa7eda4(0xe7)](..._0xf4dc4b);}});}catch(_0x52c721){logger['error'](util[_0x55a950(0x102)](_0x3dd6c6[_0x55a950(0xe4)],_0x52c721));}const _0x1d66cd={};return _0x2bb8d8[_0x55a950(0xfa)](_0x46bd2e=>{const _0x381d09=_0x55a950;_0x1d66cd[_0x46bd2e[_0x381d09(0xdc)]]=_0x46bd2e;}),Object[_0x55a950(0xf6)](_0x1d66cd);}static[a56_0x4bc96f(0xae)](_0x41bd6c,_0x2af0a0){const _0x4e5582=a56_0x4bc96f,_0x173a32={};_0x173a32['hRuRy']=_0x4e5582(0xd6),_0x173a32['BgWeD']='utf8',_0x173a32['gmPQj']=_0x4e5582(0xc6);const _0x8571c0=_0x173a32;try{const _0x5e3826=path['join'](helper[_0x4e5582(0xbc)](),_0x8571c0['hRuRy']);if(!fs[_0x4e5582(0xd5)](_0x5e3826)){const _0x325117={};_0x325117[_0x4e5582(0xc9)]=!![],fs[_0x4e5582(0xbb)](_0x5e3826,_0x325117);}fs[_0x4e5582(0xe0)](path[_0x4e5582(0x101)](_0x5e3826,_0x4e5582(0xf2)+_0x2af0a0+_0x4e5582(0xe3)),_0x41bd6c+'\x0a',_0x8571c0[_0x4e5582(0xda)]);}catch(_0xbe0507){logger[_0x4e5582(0xc8)](util[_0x4e5582(0x102)](_0x8571c0['gmPQj'],_0xbe0507));}}}module['exports']=TestInfo;function a56_0x3d19(){const _0x49dae2=['trace_','getTestRunIdFromTestInfo','traceZipPaths','processId:\x20','values','eMRws','2|1|3|0|4|5','TestInfo','forEach','7285170sDmMOC','KzCIE','7jpxDbU','\x20Setting\x20\x20test\x20details\x20for\x20','getTestIdFromTestInfo','string','join','format','retry','6946JFEXpD','split','PJoWp','__projectId','project','logger','dirPath','_test','EmFFe','uuid','addTraceFilePath','mKXgh','.\x20Unable\x20to\x20set\x20test\x20details.','getTraceZipDir','getFilePath','_traceZipPaths.json','jdUkC','32298804pdieth','GaLPF','XeJTN','getTestDetails','2007dfZwtx','732020KtwSld','vRZxT','stringify','some','_projectId','resolve','info','force','appendToTracePaths','tests','endsWith','setAccessibilityPlatformValidation','warn','lhTOv','readFileSync','testId','24896cfZWDb','setTestDetails','198ZKCPTO','parse','winstonLogger','mkdirSync','homedir','shutdown','writeFileSync','proper-lockfile','Error\x20reading\x20trace\x20file\x20paths:\x20%O','.json','WtBWG','getProjectIdFromTestInfo','dtGnq','rmSync','Error\x20writing\x20trace\x20file:\x20%O','VdmXT','error','recursive','1580fSUZdg','lockSync','../../helpers/test-observability/constants','env','FfxyE','getAccessibilityPlatformValidation','282NbyMXd','dirname','toString','default','pid','existsSync','.browserstack','debug','ggMuk','BFuWC','BgWeD','BS_TESTOPS_BUILD_HASHED_ID','filePath','message','1848ystUjS','traceZipDir','appendFileSync','getStoreDirName','Error\x20handling\x20trace\x20file\x20paths:\x20%O','.txt','rDzwO','Failed\x20to\x20acquire\x20lock\x20for\x20','FeqRw','push','path','4685334iUpSdn','InjKX','WrDYz','sAWKD','../../helpers/helper','xhguL','Dbyxz','getStoreDirPath','.\x20Returning\x20empty\x20test\x20details.'];a56_0x3d19=function(){return _0x49dae2;};return a56_0x3d19();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a57_0x4990(_0x5f0eff,_0xbe3a85){const _0x510231=a57_0x5102();return a57_0x4990=function(_0x499069,_0x34a2a8){_0x499069=_0x499069-0xb4;let _0x70764a=_0x510231[_0x499069];return _0x70764a;},a57_0x4990(_0x5f0eff,_0xbe3a85);}function a57_0x5102(){const _0x2e658c=['isClosed','debug','version','connectBinSession','./grpcClient.js','NjNLI','ready','smUBa','setConfig:\x20error=','getAccessibilityModule','../../helpers/classLogger.js','initialized','getTestFramework','split','./modules/playwrightDriverModule.js','getChannel','GEMRT','CLI\x20params\x20loaded:\x20','getHashedId','1200918uvSdKs','stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','../../helpers/performance/constants','3084ROaist','3SYTxyB','close','process','unConfigureModules','modules','getAutomationFramework','isTrue','aehyR','getConfig','getCLIParamsForDevEnv','QXOEH','JcSMd','909910yhMcOT','duUBq','stack','256199JlaRvw','stop:\x20error\x20in\x20stop\x20session\x20exception=','YjmCU','49Zfpgcf','env','SDK_CLI_ON_STOP','SDK_CLI_BIN_PATH','stop:\x20CLI\x20process\x20exited','setConfig','4763pVlUGL','RXvoj','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','SDK_CONNECT_BIN_SESSION','naJoy','SDK_CLI_ON_BOOTSTRAP','O11yHashedID','Unconfiguring\x20modules','isRunning','vbasV','PuzoO','voZQX','MODULE_NAME','CLI\x20process\x20exited\x20with\x20code\x20','stop','getCliArgs','cliArgs','getInstance','setupTestFramework','ndxvg','stop:\x20error\x20in\x20closing\x20channel:\x20%s','turboScale','../../helpers/performance/performance-tester.js','isCliEnabled','configureModules','wDCvS','rKaMj','JFdgB','bootstrap','startMain:\x20main-process\x20started','iSAjw','getAccessibility','iaWLi','browserstackConfig','DQmDe','name','getSuccess','loadCliParams','PLAYWRIGHT','automationFramework','./modules/testhubModule.js','setCliArgs','stringify','exit','4aDxGSk','getObservability','bootstrap:\x20failed\x20to\x20bootstrap=','stopBinSession','BROWSERSTACK_CLI_ENV','mWXQx','SkpSS','testhubConfig','startMain','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','HashedID','XUnBC','setCliArgs:\x20error=','./uploadAttachmentsManager.js','loading\x20Modules.','getAutomationFrameworkDetail','connect','startChild','jtuas','parse','BROWSERSTACK_CLI_ENABLED','sAsIe','isChildConnected','format','exports','getCliBinPath','SDK_CLI_START','yNzkg','SIGKILL','resolve','config','startBinSession','loadModules:\x20binSessionId=','toLowerCase','spawning\x20command=\x27','getTestFrameworkDetail','logger','\x20hashed_id=','./TestInfo.js','../utils/constants.js','BuildLink','183640qYlRfM','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','isFalse','NYYYo','loadModules','BROWSERSTACK_TURBOSCALE','stdout','end','KEY_CUSTOM_TAGS','message','info','toString','startMain:\x20Starting\x20main\x20process','17620655tWFbDp','5VUksri','stop:\x20stopBinSession\x20build_link=','KMtHk','BROWSERSTACK_CLI_BIN_SESSION_ID','YSyuE','exitCode','error','warn','client','xhUxd','shutdown','TestHubModule','getClient','Error\x20in\x20start:\x20','isMainConnected','slice','binSessionId','vooIx','QJMLU','isDevelopmentEnv','\x20o11y_uuid=','getAutomateBuildlink','browserstackCliConfig','./cliUtils.js','qnhee','trim','SpdCq','getBinSessionId','uXSBz','setupCliPath','gkjuF','kill','start','1738724bZzonC','BrowserstackCLI','includes','connected','CLI\x20stderr:\x20','wYHUE','setupAutomationFramework','pid','testFramework','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','test','pvNor','OQbXt','27djhkUa','./modules/observabilityModule.js','wrnNM'];a57_0x5102=function(){return _0x2e658c;};return a57_0x5102();}const a57_0x4d304d=a57_0x4990;(function(_0x2f1dc9,_0x32be21){const _0x2d5d3e=a57_0x4990,_0x18b1ee=_0x2f1dc9();while(!![]){try{const _0x320f7c=parseInt(_0x2d5d3e(0x161))/0x1*(-parseInt(_0x2d5d3e(0xd3))/0x2)+-parseInt(_0x2d5d3e(0x152))/0x3*(parseInt(_0x2d5d3e(0x12b))/0x4)+parseInt(_0x2d5d3e(0x10a))/0x5*(parseInt(_0x2d5d3e(0x14e))/0x6)+-parseInt(_0x2d5d3e(0x164))/0x7*(-parseInt(_0x2d5d3e(0xfc))/0x8)+parseInt(_0x2d5d3e(0x138))/0x9*(-parseInt(_0x2d5d3e(0x15e))/0xa)+parseInt(_0x2d5d3e(0x16a))/0xb*(-parseInt(_0x2d5d3e(0x151))/0xc)+parseInt(_0x2d5d3e(0x109))/0xd;if(_0x320f7c===_0x32be21)break;else _0x18b1ee['push'](_0x18b1ee['shift']());}catch(_0x16d825){_0x18b1ee['push'](_0x18b1ee['shift']());}}}(a57_0x5102,0x5dfac));const {spawn}=require('child_process'),GrpcClient=require(a57_0x4d304d(0x13f)),util=require('util'),CLIUtils=require(a57_0x4d304d(0x121)),PlaywrightAutomationFramework=require('./framework/playwrightAutomationFramework.js'),PlaywrightTestFramework=require('./framework/playwrightTestFramework.js'),{createClassLogger}=require(a57_0x4d304d(0x145)),PerformanceTester=require(a57_0x4d304d(0xbd)),{EVENTS:PerformanceEvents}=require(a57_0x4d304d(0x150)),AccessibilityModule=require('./modules/accessibilityModule.js'),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS}=require(a57_0x4d304d(0xfa)),helper=require('../../helpers/helper.js'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),TestInfo=require(a57_0x4d304d(0xf9));class BrowserstackCLI{static #instance=null;static ['BuildLink']=null;static [a57_0x4d304d(0xdd)]=null;static [a57_0x4d304d(0x170)]=null;[a57_0x4d304d(0x154)]=null;['isMainConnected']=![];[a57_0x4d304d(0xe9)]=![];[a57_0x4d304d(0x11a)]=null;[a57_0x4d304d(0x156)]={};[a57_0x4d304d(0x133)]=null;[a57_0x4d304d(0xce)]=null;[a57_0x4d304d(0xf7)]=createClassLogger(a57_0x4d304d(0x12c));constructor(){const _0x3af9ef=a57_0x4d304d;this[_0x3af9ef(0x146)]=![],this[_0x3af9ef(0xf1)]={},this[_0x3af9ef(0xb7)]={},this[_0x3af9ef(0xc8)]={};}static[a57_0x4d304d(0xb8)](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a57_0x4d304d(0xc3)](){const _0xecd186=a57_0x4d304d,_0x205da6={};_0x205da6[_0xecd186(0xc2)]='Disabling\x20CLI.';const _0x2c63cb=_0x205da6;if(helper[_0xecd186(0xfe)](process['env'][_0xecd186(0xe7)])){this[_0xecd186(0xf7)][_0xecd186(0x106)](_0x2c63cb[_0xecd186(0xc2)]);return;}PerformanceTester[_0xecd186(0x12a)](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);try{const _0x423c98=process[_0xecd186(0x165)][_0xecd186(0x10d)]||null;this['setupAutomationFramework'](),this[_0xecd186(0xb9)]();if(_0x423c98){await this[_0xecd186(0xe4)](_0x423c98),PerformanceTester[_0xecd186(0x103)](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);return;}await this[_0xecd186(0xdb)]();}catch(_0x5af115){this[_0xecd186(0xf7)][_0xecd186(0x110)](_0xecd186(0xd5)+(_0x5af115[_0xecd186(0x160)]||_0x5af115)),await this[_0xecd186(0xb5)](),PerformanceTester['end'](PerformanceEvents[_0xecd186(0x16f)],![],util[_0xecd186(0xea)](_0x5af115));}}async[a57_0x4d304d(0xdb)](){const _0x282613=a57_0x4d304d,_0x1ff227={};_0x1ff227[_0x282613(0xd9)]=_0x282613(0x108),_0x1ff227[_0x282613(0xba)]=_0x282613(0xc4);const _0x41b597=_0x1ff227;this[_0x282613(0xf7)][_0x282613(0x106)](_0x41b597[_0x282613(0xd9)]),await this[_0x282613(0x12a)](),this[_0x282613(0xf7)][_0x282613(0x13c)](_0x41b597[_0x282613(0xba)]);const _0x5bfc1b=await GrpcClient[_0x282613(0xb8)]()[_0x282613(0xf2)]();this['isMainConnected']=!![],this[_0x282613(0x100)](_0x5bfc1b);}[a57_0x4d304d(0x100)](_0x45cd9c){const _0x492058=a57_0x4d304d,_0xea0862={'naJoy':function(_0x4d5f36,_0x2de117){return _0x4d5f36(_0x2de117);},'NjNLI':_0x492058(0x149),'ElOLW':function(_0x3ad65b,_0x13ac04){return _0x3ad65b(_0x13ac04);},'mWXQx':_0x492058(0xcf),'bNRwc':function(_0x361335,_0x25a6f7){return _0x361335(_0x25a6f7);},'XUnBC':_0x492058(0x139),'yKnuE':'loadModules:\x20Loading\x20modules','qnhee':_0x492058(0xd4),'wYHUE':_0x492058(0xc6),'DQmDe':_0x492058(0xcb),'QXOEH':function(_0x7c3320,_0x4b5e53){return _0x7c3320||_0x4b5e53;}},_0x24832b=_0xea0862[_0x492058(0x16e)](require,_0xea0862[_0x492058(0x140)]),_0x1b6b08=_0xea0862['ElOLW'](require,_0xea0862[_0x492058(0xd8)]),_0x65ee69=_0xea0862['bNRwc'](require,_0xea0862[_0x492058(0xde)]);this[_0x492058(0xf7)]['info'](_0xea0862['yKnuE']),this[_0x492058(0x11a)]=_0x45cd9c[_0x492058(0x125)](),this['logger']['info'](_0x492058(0xf3)+this[_0x492058(0x11a)]),this[_0x492058(0x169)](_0x45cd9c);!this[_0x492058(0xe9)]&&this[_0x492058(0xd0)](_0x45cd9c);const _0x3fed11=_0xea0862[_0x492058(0x122)],_0x42ed2a=_0xea0862[_0x492058(0x130)],_0x136f94=_0xea0862[_0x492058(0xc9)],_0x3f7202=_0x45cd9c[_0x3fed11]()&&_0x45cd9c[_0x3fed11]()[_0x136f94](),_0x4f8be5=_0x45cd9c[_0x42ed2a]()&&_0x45cd9c[_0x42ed2a]()[_0x136f94]();_0xea0862[_0x492058(0x15c)](_0x3f7202,_0x4f8be5)&&(this[_0x492058(0x156)][_0x1b6b08[_0x492058(0x176)]]=new _0x1b6b08(_0x45cd9c['getTesthub']())),_0x3f7202&&(this[_0x492058(0x156)][_0x65ee69[_0x492058(0x176)]]=new _0x65ee69(_0x45cd9c[_0x3fed11]())),_0x4f8be5&&(this[_0x492058(0x156)][AccessibilityModule[_0x492058(0x176)]]=new AccessibilityModule(_0x45cd9c[_0x42ed2a]())),this[_0x492058(0x156)][_0x24832b[_0x492058(0x176)]]=new _0x24832b(),this[_0x492058(0xbf)]();}[a57_0x4d304d(0x144)](){const _0x1ee5bd=a57_0x4d304d;return this[_0x1ee5bd(0x156)][AccessibilityModule['MODULE_NAME']];}async[a57_0x4d304d(0xbf)](){const _0x3b3c08=a57_0x4d304d;for(const _0x2aa8e8 in this[_0x3b3c08(0x156)]){const _0x46c4f7=this[_0x3b3c08(0x156)][_0x2aa8e8];await _0x46c4f7['configure'](this[_0x3b3c08(0x11a)],0x0,GrpcClient[_0x3b3c08(0xb8)]()[_0x3b3c08(0x112)],this[_0x3b3c08(0xf1)]);}}async[a57_0x4d304d(0x12a)](){const _0x21d3bc=a57_0x4d304d,_0x1852ee={'PuzoO':function(_0x1eaa68,_0x278ede){return _0x1eaa68!==_0x278ede;},'NYYYo':_0x21d3bc(0x141),'wDCvS':function(_0x42558c){return _0x42558c();},'rKaMj':function(_0x568c07,_0x2f0352){return _0x568c07(_0x2f0352);},'YSyuE':'data','ivcNQ':_0x21d3bc(0x110),'duUBq':'close','DmEFe':'sdk','iaWLi':function(_0x488c2a,_0x55e22c,_0x1b8bb2,_0xed69cd){return _0x488c2a(_0x55e22c,_0x1b8bb2,_0xed69cd);},'sAsIe':_0x21d3bc(0x16c)};PerformanceTester[_0x21d3bc(0x12a)](PerformanceEvents[_0x21d3bc(0xed)]);if(CLIUtils[_0x21d3bc(0x11d)]())return this[_0x21d3bc(0xcc)](CLIUtils[_0x21d3bc(0x15b)]()),PerformanceTester['end'](PerformanceEvents[_0x21d3bc(0xed)]),Promise['resolve']();if(this['process']&&this[_0x21d3bc(0x154)][_0x21d3bc(0x12e)])return PerformanceTester[_0x21d3bc(0x103)](PerformanceEvents[_0x21d3bc(0xed)]),Promise[_0x21d3bc(0xf0)]();const _0x2941a9=await this[_0x21d3bc(0xec)](),_0x13eea9=[_0x2941a9,_0x1852ee['DmEFe']];this[_0x21d3bc(0xf7)]['info'](_0x21d3bc(0xf5)+_0x13eea9+'\x27');const _0x4ebade={};_0x4ebade[_0x21d3bc(0x165)]=process[_0x21d3bc(0x165)],this[_0x21d3bc(0x154)]=_0x1852ee[_0x21d3bc(0xc7)](spawn,_0x13eea9[0x0],_0x13eea9[_0x21d3bc(0x119)](0x1),_0x4ebade);if(!this[_0x21d3bc(0x154)]['pid'])throw new Error(_0x1852ee[_0x21d3bc(0xe8)]);return new Promise((_0x551f79,_0x4d083c)=>{const _0x13ec7b=_0x21d3bc,_0x50aad1={'QJMLU':function(_0x59fea9,_0x4eeec2){const _0x2120b6=a57_0x4990;return _0x1852ee[_0x2120b6(0x174)](_0x59fea9,_0x4eeec2);},'SpdCq':_0x1852ee[_0x13ec7b(0xff)],'vbasV':function(_0x19b721){const _0x3f1e71=_0x13ec7b;return _0x1852ee[_0x3f1e71(0xc0)](_0x19b721);},'iSAjw':function(_0x35d434,_0x6a1ab7){const _0x1e8695=_0x13ec7b;return _0x1852ee[_0x1e8695(0xc1)](_0x35d434,_0x6a1ab7);}},_0x30c836={};this[_0x13ec7b(0x154)][_0x13ec7b(0x102)]['on'](_0x1852ee[_0x13ec7b(0x10e)],_0x2efb01=>{const _0x51b341=_0x13ec7b,_0x2af2b8=_0x2efb01['toString']()[_0x51b341(0x123)]()[_0x51b341(0x148)]('\x0a');for(const _0x4dd128 of _0x2af2b8){if(/^(id|listen|port)=.*$/[_0x51b341(0x135)](_0x4dd128)){const [_0x3216e0,_0x526caa]=_0x4dd128[_0x51b341(0x148)]('=',0x2);_0x50aad1[_0x51b341(0x11c)](_0x526caa,undefined)&&(_0x30c836[_0x3216e0]=_0x526caa);}if(_0x4dd128[_0x51b341(0xf4)]()[_0x51b341(0x12d)](_0x50aad1[_0x51b341(0x124)])){this[_0x51b341(0xcc)](_0x30c836),PerformanceTester[_0x51b341(0x103)](PerformanceEvents[_0x51b341(0xed)]),_0x50aad1[_0x51b341(0x173)](_0x551f79);return;}}}),this[_0x13ec7b(0x154)]['stderr']['on'](_0x1852ee['YSyuE'],_0xeb943b=>{const _0x3c9560=_0x13ec7b;this[_0x3c9560(0xf7)][_0x3c9560(0x110)](_0x3c9560(0x12f)+_0xeb943b[_0x3c9560(0x107)]()[_0x3c9560(0x123)]());}),this[_0x13ec7b(0x154)]['on'](_0x1852ee['ivcNQ'],_0x2a86a1=>{const _0xc506e2=_0x13ec7b;_0x30c836['error']=_0xc506e2(0x117)+_0x2a86a1[_0xc506e2(0x105)],PerformanceTester['end'](PerformanceEvents[_0xc506e2(0xed)],![],_0x2a86a1),_0x50aad1[_0xc506e2(0xc5)](_0x4d083c,new Error('Failed\x20to\x20start\x20CLI\x20process:\x20'+_0x2a86a1[_0xc506e2(0x105)]));}),this[_0x13ec7b(0x154)]['on'](_0x1852ee[_0x13ec7b(0x15f)],_0x14c845=>{const _0x43bd10=_0x13ec7b;_0x50aad1[_0x43bd10(0x11c)](_0x14c845,0x0)&&_0x50aad1[_0x43bd10(0xc5)](_0x4d083c,new Error(_0x43bd10(0xb4)+_0x14c845));});});}async[a57_0x4d304d(0xb5)](_0x4d5f2a=null){const _0x495067=a57_0x4d304d,_0x3244b3={'oHuok':_0x495067(0x168),'uXSBz':function(_0x30f000){return _0x30f000();},'jtuas':_0x495067(0x134),'GEMRT':_0x495067(0xef),'MYiUi':_0x495067(0xd2),'smUBa':function(_0xa35383,_0x270455,_0x48a394){return _0xa35383(_0x270455,_0x48a394);},'zGezs':_0x495067(0x14f),'yNzkg':'stop:\x20CLI\x20stop\x20triggered','vooIx':function(_0x18bd7e,_0x599fcc){return _0x18bd7e(_0x599fcc);},'UBpKl':_0x495067(0xe0),'xbQWP':'stop:\x20channel\x20closed','KMtHk':_0x495067(0xbb),'OQbXt':'stop:\x20shutting\x20down\x20CLI'};if(!this[_0x495067(0x172)]()){this['logger'][_0x495067(0x106)](_0x3244b3['zGezs']);return;}PerformanceTester[_0x495067(0x12a)](PerformanceEvents[_0x495067(0x166)]),this['logger'][_0x495067(0x106)](_0x3244b3[_0x495067(0xee)]);try{if(this[_0x495067(0x118)]){const _0x3ac427=_0x3244b3[_0x495067(0x11b)](require,_0x3244b3['UBpKl']),_0x5907ab=this[_0x495067(0x156)][_0x495067(0x115)]?.[_0x495067(0xda)]?.['toObject']()?.['buildHashedId'],_0x5360d9=TestInfo['getTestDetails'](_0x5907ab),_0x33e27e=_0x5360d9[TestFrameworkConstants[_0x495067(0x104)]]||{},_0x13bf5e=await GrpcClient[_0x495067(0xb8)]()[_0x495067(0xd6)](JSON[_0x495067(0xd1)](_0x33e27e),_0x4d5f2a);_0x13bf5e&&_0x13bf5e['getSuccess']()&&_0x13bf5e['getAutomateBuildlink']()&&(BrowserstackCLI['BuildLink']=_0x13bf5e[_0x495067(0x11f)](),BrowserstackCLI[_0x495067(0xdd)]=_0x13bf5e[_0x495067(0x14d)]()),await _0x3ac427['clearAttachments'](),TestInfo[_0x495067(0x114)](),this['logger'][_0x495067(0x106)](_0x495067(0x10b)+BrowserstackCLI[_0x495067(0xfb)]+_0x495067(0xf8)+BrowserstackCLI['HashedID']+_0x495067(0x11e)+BrowserstackCLI['O11yHashedID']);}await this[_0x495067(0x155)]();const _0x6ae7c8=GrpcClient[_0x495067(0xb8)]()[_0x495067(0x14a)]();if(_0x6ae7c8){try{_0x6ae7c8[_0x495067(0x153)](),this['logger'][_0x495067(0x106)](_0x3244b3['xbQWP']);}catch(_0x1ef743){this[_0x495067(0xf7)][_0x495067(0x110)](util[_0x495067(0xea)](_0x3244b3[_0x495067(0x10c)],_0x1ef743));}await new Promise(_0xbe02f=>setTimeout(_0xbe02f,0x1388));}this[_0x495067(0x154)]&&this[_0x495067(0x154)][_0x495067(0x132)]&&(this['logger'][_0x495067(0x106)](_0x3244b3[_0x495067(0x137)]),this[_0x495067(0x154)][_0x495067(0x129)](),await new Promise(_0x134a32=>{const _0x5e9c91=_0x495067;let _0x254579=![];this[_0x5e9c91(0x154)]['on'](_0x3244b3['MYiUi'],()=>{const _0x105103=_0x5e9c91;this[_0x105103(0xf7)][_0x105103(0x106)](_0x3244b3['oHuok']),_0x254579=!![],PerformanceTester[_0x105103(0x103)](PerformanceEvents[_0x105103(0x166)]),_0x3244b3['uXSBz'](_0x134a32);}),_0x3244b3[_0x5e9c91(0x142)](setTimeout,()=>{const _0x1a099f=_0x5e9c91;!_0x254579&&(this[_0x1a099f(0xf7)][_0x1a099f(0x111)](_0x3244b3[_0x1a099f(0xe5)]),this[_0x1a099f(0x154)][_0x1a099f(0x129)](_0x3244b3[_0x1a099f(0x14b)]),PerformanceTester['end'](PerformanceEvents[_0x1a099f(0x166)]),_0x3244b3[_0x1a099f(0x126)](_0x134a32));},0xbb8);}));}catch(_0x505f6b){PerformanceTester[_0x495067(0x103)](PerformanceEvents[_0x495067(0x166)],![],util[_0x495067(0xea)](_0x505f6b)),this['logger'][_0x495067(0x110)](_0x495067(0x162)+(_0x505f6b['stack']||_0x505f6b));}_0x4d5f2a?this[_0x495067(0x154)][_0x495067(0x10f)]=0x1:this[_0x495067(0x154)]['exitCode']=0x0,this[_0x495067(0xe9)]=![],this[_0x495067(0x118)]=![],process['env'][_0x495067(0xd7)]=null;}async[a57_0x4d304d(0x155)](){const _0x8a5309=a57_0x4d304d,_0xfe5dd9={};_0xfe5dd9[_0x8a5309(0x13a)]=_0x8a5309(0x171);const _0x50fc08=_0xfe5dd9;this[_0x8a5309(0xf7)][_0x8a5309(0x106)](_0x50fc08[_0x8a5309(0x13a)]);}[a57_0x4d304d(0xcc)](_0x1806d7){const _0x4698e2=a57_0x4d304d;this['logger'][_0x4698e2(0x106)](_0x4698e2(0x14c)+JSON['stringify'](_0x1806d7)),this['cliParams']=_0x1806d7,GrpcClient[_0x4698e2(0xb8)]()['init'](_0x1806d7);}async[a57_0x4d304d(0xe4)](_0x1146cf){const _0x44af6e=a57_0x4d304d,_0x13b7f7={};_0x13b7f7[_0x44af6e(0x113)]=_0x44af6e(0xfd);const _0x4245ad=_0x13b7f7;PerformanceTester[_0x44af6e(0x12a)](PerformanceEvents[_0x44af6e(0x16d)]);try{this[_0x44af6e(0xf7)]['info'](_0x44af6e(0xdc)+_0x1146cf);const _0x806f0d=GrpcClient[_0x44af6e(0xb8)]();if(_0x806f0d&&_0x806f0d[_0x44af6e(0x116)]()&&_0x806f0d[_0x44af6e(0x14a)]()){this[_0x44af6e(0xf7)][_0x44af6e(0x106)](_0x4245ad[_0x44af6e(0x113)]);return;}GrpcClient[_0x44af6e(0xb8)]()[_0x44af6e(0xe3)]();const _0x462487=await GrpcClient[_0x44af6e(0xb8)]()[_0x44af6e(0x13e)]();this[_0x44af6e(0xe9)]=!![],this[_0x44af6e(0x100)](_0x462487),PerformanceTester[_0x44af6e(0x103)](PerformanceEvents[_0x44af6e(0x16d)]);}catch(_0xc8e20b){PerformanceTester['end'](PerformanceEvents['SDK_CONNECT_BIN_SESSION'],![],util[_0x44af6e(0xea)](_0xc8e20b)),this['logger']['error']('Failed\x20to\x20start\x20as\x20child\x20process:\x20'+util[_0x44af6e(0xea)](_0xc8e20b));}}[a57_0x4d304d(0x172)](){const _0x359611=a57_0x4d304d,_0x54f2df={};_0x54f2df[_0x359611(0x15d)]=function(_0x47ffee,_0x3fa1fc){return _0x47ffee!==_0x3fa1fc;},_0x54f2df[_0x359611(0x136)]=function(_0x468854,_0x51aa10){return _0x468854===_0x51aa10;},_0x54f2df['voZQX']=function(_0x22ee22,_0x1bf788){return _0x22ee22!==_0x1bf788;};const _0x177359=_0x54f2df;return CLIUtils['isDevelopmentEnv']()||this[_0x359611(0x118)]&&_0x177359['JcSMd'](this[_0x359611(0x154)],null)&&_0x177359['pvNor'](this[_0x359611(0x154)][_0x359611(0x10f)],null)&&_0x177359[_0x359611(0x15d)](GrpcClient['getInstance']()[_0x359611(0x116)](),null)&&!GrpcClient[_0x359611(0xb8)]()[_0x359611(0x14a)]()[_0x359611(0x13b)]||this['isChildConnected']&&_0x177359[_0x359611(0x175)](GrpcClient[_0x359611(0xb8)]()[_0x359611(0x14a)](),null)&&!GrpcClient[_0x359611(0xb8)]()[_0x359611(0x14a)]()[_0x359611(0x13b)];}['getBrowserstackConfig'](){const _0x313a78=a57_0x4d304d;return this[_0x313a78(0xc8)];}['setBrowserstackConfig'](_0x403e7b,_0x3d7554=null){const _0xaa92c9=a57_0x4d304d,_0x3f61ed={};_0x3f61ed[_0xaa92c9(0x128)]=function(_0x4159ff,_0x560c5){return _0x4159ff||_0x560c5;};const _0x24b4bc=_0x3f61ed;this['browserstackConfig']=_0x24b4bc[_0xaa92c9(0x128)](_0x403e7b,{}),this[_0xaa92c9(0x120)]=_0x3d7554,process[_0xaa92c9(0x165)]['BROWSERSTACK_TURBOSCALE']=this[_0xaa92c9(0xc8)]?.[_0xaa92c9(0xbc)]||![];const _0x4b3b43=CLIUtils[_0xaa92c9(0xf6)]();helper['isTrue'](process[_0xaa92c9(0x165)][_0xaa92c9(0x101)])||!CLI_SUPPORTED_FRAMEWORKS[_0xaa92c9(0x12d)](_0x4b3b43[_0xaa92c9(0xca)][_0xaa92c9(0xf4)]())?process[_0xaa92c9(0x165)]['BROWSERSTACK_CLI_ENABLED']=![]:process[_0xaa92c9(0x165)]['BROWSERSTACK_CLI_ENABLED']=!![];}async[a57_0x4d304d(0xec)](){const _0xb76cd1=a57_0x4d304d;return!this[_0xb76cd1(0x167)]&&(this[_0xb76cd1(0x167)]=await CLIUtils[_0xb76cd1(0x127)](this[_0xb76cd1(0xc8)])),this['SDK_CLI_BIN_PATH'];}[a57_0x4d304d(0xbe)](){const _0x59d19c=a57_0x4d304d;return helper[_0x59d19c(0x158)](process['env']['BROWSERSTACK_CLI_ENABLED']);}[a57_0x4d304d(0x15a)](){return this['config'];}[a57_0x4d304d(0x169)](_0x1e4580){const _0x39339d=a57_0x4d304d,_0x5e2b24={};_0x5e2b24[_0x39339d(0x16b)]=_0x39339d(0xe1);const _0x578f0c=_0x5e2b24;try{this[_0x39339d(0xf1)]=JSON[_0x39339d(0xe6)](_0x1e4580[_0x39339d(0x15a)]()),this[_0x39339d(0xf7)]['info'](_0x578f0c['RXvoj']);}catch(_0x336220){this['logger']['error'](_0x39339d(0x143)+util[_0x39339d(0xea)](_0x336220));}}[a57_0x4d304d(0xd0)](_0x2aa4b4){const _0x4f345b=a57_0x4d304d;try{this[_0x4f345b(0xb7)]=_0x2aa4b4[_0x4f345b(0xb6)]()['split'](','),this[_0x4f345b(0xf7)][_0x4f345b(0x106)]('setCliArgs:\x20cliArgs='+JSON[_0x4f345b(0xd1)](this[_0x4f345b(0xb7)]));}catch(_0x9a47a4){this[_0x4f345b(0xf7)][_0x4f345b(0x110)](_0x4f345b(0xdf)+util[_0x4f345b(0xea)](_0x9a47a4));}}[a57_0x4d304d(0xb6)](){const _0x585122=a57_0x4d304d;return this[_0x585122(0xb7)];}[a57_0x4d304d(0xb9)](){const _0x276526=a57_0x4d304d,_0x229348={};_0x229348[_0x276526(0x159)]=function(_0x418da3,_0x1fbd6d){return _0x418da3===_0x1fbd6d;};const _0x54c3ad=_0x229348,_0x29876e=CLIUtils['getTestFrameworkDetail']();_0x54c3ad[_0x276526(0x159)](_0x29876e['name'][_0x276526(0xf4)](),FRAMEWORKS['PLAYWRIGHT'][_0x276526(0xf4)]())&&(this[_0x276526(0x133)]=new PlaywrightTestFramework([_0x29876e[_0x276526(0xca)]],_0x29876e[_0x276526(0x13d)]));}[a57_0x4d304d(0x131)](){const _0x32b3bd=a57_0x4d304d,_0xb5a5ec={};_0xb5a5ec[_0x32b3bd(0x163)]=function(_0x3ad1df,_0x3777e8){return _0x3ad1df===_0x3777e8;};const _0xccaf19=_0xb5a5ec,_0x1816d7=CLIUtils[_0x32b3bd(0xe2)]();_0xccaf19[_0x32b3bd(0x163)](_0x1816d7[_0x32b3bd(0xca)][_0x32b3bd(0xf4)](),FRAMEWORKS[_0x32b3bd(0xcd)][_0x32b3bd(0xf4)]())&&(this[_0x32b3bd(0xce)]=new PlaywrightAutomationFramework(_0x1816d7[_0x32b3bd(0xca)],_0x1816d7[_0x32b3bd(0x13d)]));}[a57_0x4d304d(0x147)](){const _0x25e365=a57_0x4d304d;return this[_0x25e365(0x133)];}[a57_0x4d304d(0x157)](){const _0x533838=a57_0x4d304d;return this[_0x533838(0xce)];}['getBrowserstackCliConfig'](){const _0x22ae6c=a57_0x4d304d;return this[_0x22ae6c(0x120)];}}module[a57_0x4d304d(0xeb)]=BrowserstackCLI;
|
|
1
|
+
const a57_0x47007f=a57_0x5a18;(function(_0x740790,_0x98c84c){const _0x572422=a57_0x5a18,_0x2d6a29=_0x740790();while(!![]){try{const _0x471c5e=-parseInt(_0x572422(0xd4))/0x1+parseInt(_0x572422(0xfe))/0x2+parseInt(_0x572422(0x8e))/0x3*(-parseInt(_0x572422(0xf1))/0x4)+-parseInt(_0x572422(0xd3))/0x5+parseInt(_0x572422(0x87))/0x6+-parseInt(_0x572422(0xf0))/0x7*(-parseInt(_0x572422(0xc4))/0x8)+parseInt(_0x572422(0xeb))/0x9;if(_0x471c5e===_0x98c84c)break;else _0x2d6a29['push'](_0x2d6a29['shift']());}catch(_0x1d4c4f){_0x2d6a29['push'](_0x2d6a29['shift']());}}}(a57_0x4f71,0x75ac6));function a57_0x5a18(_0xfeee57,_0x368404){const _0x4f7185=a57_0x4f71();return a57_0x5a18=function(_0x5a1802,_0x209dc9){_0x5a1802=_0x5a1802-0x83;let _0x1ee7dd=_0x4f7185[_0x5a1802];return _0x1ee7dd;},a57_0x5a18(_0xfeee57,_0x368404);}const {spawn}=require('child_process'),GrpcClient=require('./grpcClient.js'),util=require(a57_0x47007f(0xf7)),CLIUtils=require(a57_0x47007f(0xbd)),PlaywrightAutomationFramework=require('./framework/playwrightAutomationFramework.js'),PlaywrightTestFramework=require(a57_0x47007f(0xf4)),{createClassLogger}=require(a57_0x47007f(0xef)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a57_0x47007f(0xa5)),AccessibilityModule=require('./modules/accessibilityModule.js'),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS}=require(a57_0x47007f(0x10d)),helper=require(a57_0x47007f(0xe3)),TestFrameworkConstants=require(a57_0x47007f(0xdd)),TestInfo=require(a57_0x47007f(0x88));class BrowserstackCLI{static #instance=null;static [a57_0x47007f(0x9d)]=null;static [a57_0x47007f(0x12a)]=null;static [a57_0x47007f(0xa7)]=null;[a57_0x47007f(0xc9)]=null;[a57_0x47007f(0xcb)]=![];[a57_0x47007f(0x127)]=![];[a57_0x47007f(0xa9)]=null;[a57_0x47007f(0x90)]={};['testFramework']=null;[a57_0x47007f(0x121)]=null;['logger']=createClassLogger(a57_0x47007f(0x100));constructor(){const _0x156ab5=a57_0x47007f;this[_0x156ab5(0x11b)]=![],this[_0x156ab5(0xcd)]={},this[_0x156ab5(0xf9)]={},this[_0x156ab5(0x101)]={};}static['getInstance'](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async['bootstrap'](){const _0x19e3ef=a57_0x47007f,_0x1dbcf7={};_0x1dbcf7[_0x19e3ef(0xc1)]=_0x19e3ef(0x96);const _0x502dce=_0x1dbcf7;if(helper[_0x19e3ef(0x123)](process[_0x19e3ef(0x112)][_0x19e3ef(0x111)])){this[_0x19e3ef(0xf5)][_0x19e3ef(0x136)](_0x502dce[_0x19e3ef(0xc1)]);return;}PerformanceTester[_0x19e3ef(0xa1)](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);try{const _0x5271bd=process[_0x19e3ef(0x112)]['BROWSERSTACK_CLI_BIN_SESSION_ID']||null;this[_0x19e3ef(0x9e)](),this['setupTestFramework']();if(_0x5271bd){await this['startChild'](_0x5271bd),PerformanceTester[_0x19e3ef(0x104)](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);return;}await this[_0x19e3ef(0x132)]();}catch(_0x26fccc){this['logger'][_0x19e3ef(0x12d)](_0x19e3ef(0xcc)+(_0x26fccc[_0x19e3ef(0x12e)]||_0x26fccc)),await this[_0x19e3ef(0xb6)](),PerformanceTester[_0x19e3ef(0x104)](PerformanceEvents[_0x19e3ef(0x124)],![],util['format'](_0x26fccc));}}async[a57_0x47007f(0x132)](){const _0x4d13f0=a57_0x47007f,_0x439c66={};_0x439c66['hntuR']=_0x4d13f0(0x114),_0x439c66[_0x4d13f0(0xa3)]=_0x4d13f0(0xd1);const _0x1ec34d=_0x439c66;this[_0x4d13f0(0xf5)][_0x4d13f0(0x136)](_0x1ec34d[_0x4d13f0(0x91)]),await this[_0x4d13f0(0xa1)](),this['logger'][_0x4d13f0(0xfc)](_0x1ec34d['ULFWl']);const _0x4fb662=await GrpcClient[_0x4d13f0(0x11e)]()[_0x4d13f0(0xd6)]();this[_0x4d13f0(0xcb)]=!![],this[_0x4d13f0(0x116)](_0x4fb662);}[a57_0x47007f(0x116)](_0x3f7166){const _0x3d4e6e=a57_0x47007f,_0x72773e={'vteLi':function(_0x499e9d,_0x4887a3){return _0x499e9d(_0x4887a3);},'gVaev':_0x3d4e6e(0xa0),'uJvTl':_0x3d4e6e(0x140),'gBWXa':_0x3d4e6e(0x117),'tApnh':_0x3d4e6e(0x13d),'imbhn':_0x3d4e6e(0x99),'LWvQn':'getAccessibility','rdVor':'getSuccess','QvMrq':function(_0x501a78,_0x227938){return _0x501a78||_0x227938;}},_0x3796c7=_0x72773e[_0x3d4e6e(0xf2)](require,_0x72773e[_0x3d4e6e(0x139)]),_0x2f1a7a=_0x72773e[_0x3d4e6e(0xf2)](require,_0x72773e[_0x3d4e6e(0xe9)]),_0x5f104f=_0x72773e[_0x3d4e6e(0xf2)](require,_0x72773e[_0x3d4e6e(0x11a)]);this[_0x3d4e6e(0xf5)][_0x3d4e6e(0x136)](_0x72773e[_0x3d4e6e(0xf3)]),this['binSessionId']=_0x3f7166['getBinSessionId'](),this['logger']['info'](_0x3d4e6e(0xd5)+this[_0x3d4e6e(0xa9)]),this[_0x3d4e6e(0xb0)](_0x3f7166);!this['isChildConnected']&&this[_0x3d4e6e(0x8a)](_0x3f7166);const _0x53fae7=_0x72773e[_0x3d4e6e(0xce)],_0x31d44a=_0x72773e[_0x3d4e6e(0x10f)],_0x8da5d5=_0x72773e[_0x3d4e6e(0xd0)],_0x50f602=_0x3f7166[_0x53fae7]()&&_0x3f7166[_0x53fae7]()[_0x8da5d5](),_0xed78ce=_0x3f7166[_0x31d44a]()&&_0x3f7166[_0x31d44a]()[_0x8da5d5]();_0x72773e[_0x3d4e6e(0x13c)](_0x50f602,_0xed78ce)&&(this[_0x3d4e6e(0x90)][_0x2f1a7a[_0x3d4e6e(0xfd)]]=new _0x2f1a7a(_0x3f7166[_0x3d4e6e(0x13e)]())),_0x50f602&&(this['modules'][_0x5f104f['MODULE_NAME']]=new _0x5f104f(_0x3f7166[_0x53fae7]())),_0xed78ce&&(this[_0x3d4e6e(0x90)][AccessibilityModule[_0x3d4e6e(0xfd)]]=new AccessibilityModule(_0x3f7166[_0x31d44a]())),this[_0x3d4e6e(0x90)][_0x3796c7[_0x3d4e6e(0xfd)]]=new _0x3796c7(),this[_0x3d4e6e(0x138)]();}['getAccessibilityModule'](){const _0x31823c=a57_0x47007f;return this[_0x31823c(0x90)][AccessibilityModule['MODULE_NAME']];}async[a57_0x47007f(0x138)](){const _0x16ea11=a57_0x47007f;for(const _0x2044eb in this[_0x16ea11(0x90)]){const _0x13370a=this[_0x16ea11(0x90)][_0x2044eb];await _0x13370a[_0x16ea11(0xa2)](this[_0x16ea11(0xa9)],0x0,GrpcClient[_0x16ea11(0x11e)]()[_0x16ea11(0x13f)],this['config']);}}async[a57_0x47007f(0xa1)](){const _0x4b4b72=a57_0x47007f,_0x33d0da={'PzTSC':function(_0xcd3438,_0x1ce59a){return _0xcd3438(_0x1ce59a);},'NTOdP':function(_0x1472d7,_0x16862e){return _0x1472d7!==_0x16862e;},'oejXw':'ready','jmObS':function(_0x571e01){return _0x571e01();},'uRevX':_0x4b4b72(0x8c),'iEdsz':'error','TcOgl':'close','ENEJq':_0x4b4b72(0xc2),'IjIYP':function(_0xd0ad86,_0x5c8dc6,_0x141221,_0x1b3113){return _0xd0ad86(_0x5c8dc6,_0x141221,_0x1b3113);},'CrKRA':_0x4b4b72(0xe7)};PerformanceTester['start'](PerformanceEvents[_0x4b4b72(0xec)]);if(CLIUtils[_0x4b4b72(0xdb)]())return this['loadCliParams'](CLIUtils[_0x4b4b72(0x134)]()),PerformanceTester['end'](PerformanceEvents[_0x4b4b72(0xec)]),Promise[_0x4b4b72(0x12c)]();if(this[_0x4b4b72(0xc9)]&&this[_0x4b4b72(0xc9)][_0x4b4b72(0x108)])return PerformanceTester[_0x4b4b72(0x104)](PerformanceEvents[_0x4b4b72(0xec)]),Promise[_0x4b4b72(0x12c)]();const _0x5ef17c=await this[_0x4b4b72(0x12b)](),_0x1ee4fc=[_0x5ef17c,_0x33d0da[_0x4b4b72(0x115)]];this[_0x4b4b72(0xf5)][_0x4b4b72(0x136)](_0x4b4b72(0xb4)+_0x1ee4fc+'\x27');const _0x36542e={};_0x36542e[_0x4b4b72(0x112)]=process[_0x4b4b72(0x112)],this[_0x4b4b72(0xc9)]=_0x33d0da['IjIYP'](spawn,_0x1ee4fc[0x0],_0x1ee4fc[_0x4b4b72(0x141)](0x1),_0x36542e);if(!this[_0x4b4b72(0xc9)][_0x4b4b72(0xe1)])throw new Error(_0x33d0da['CrKRA']);return new Promise((_0x4db6b1,_0x19113a)=>{const _0x17f46c=_0x4b4b72,_0x1c6bc4={'HKLwh':function(_0x460cd5,_0x4b7981){const _0xf58a4f=a57_0x5a18;return _0x33d0da[_0xf58a4f(0xe2)](_0x460cd5,_0x4b7981);},'gOFbA':_0x33d0da['oejXw'],'VhXmI':function(_0xde7a70){const _0x60d368=a57_0x5a18;return _0x33d0da[_0x60d368(0xe6)](_0xde7a70);},'egGfs':function(_0x2600f9,_0x12491c){return _0x33d0da['PzTSC'](_0x2600f9,_0x12491c);}},_0x387268={};this[_0x17f46c(0xc9)]['stdout']['on'](_0x33d0da[_0x17f46c(0x94)],_0x1d53a4=>{const _0x5a67e9=_0x17f46c,_0x570841=_0x1d53a4[_0x5a67e9(0xd9)]()[_0x5a67e9(0xea)]()['split']('\x0a');for(const _0x8f4d85 of _0x570841){if(/^(id|listen|port)=.*$/[_0x5a67e9(0x8d)](_0x8f4d85)){const [_0x22f0c8,_0x1c861a]=_0x8f4d85[_0x5a67e9(0x9f)]('=',0x2);_0x1c6bc4[_0x5a67e9(0xd7)](_0x1c861a,undefined)&&(_0x387268[_0x22f0c8]=_0x1c861a);}if(_0x8f4d85[_0x5a67e9(0x105)]()[_0x5a67e9(0x113)](_0x1c6bc4['gOFbA'])){this[_0x5a67e9(0x120)](_0x387268),PerformanceTester[_0x5a67e9(0x104)](PerformanceEvents[_0x5a67e9(0xec)]),_0x1c6bc4[_0x5a67e9(0x9a)](_0x4db6b1);return;}}}),this[_0x17f46c(0xc9)]['stderr']['on'](_0x33d0da[_0x17f46c(0x94)],_0x128d5f=>{const _0x54dfc7=_0x17f46c;this[_0x54dfc7(0xf5)][_0x54dfc7(0x12d)](_0x54dfc7(0xc0)+_0x128d5f[_0x54dfc7(0xd9)]()[_0x54dfc7(0xea)]());}),this[_0x17f46c(0xc9)]['on'](_0x33d0da[_0x17f46c(0xf8)],_0x137d32=>{const _0x1ee312=_0x17f46c;_0x387268[_0x1ee312(0x12d)]=_0x1ee312(0xb7)+_0x137d32[_0x1ee312(0x131)],PerformanceTester[_0x1ee312(0x104)](PerformanceEvents[_0x1ee312(0xec)],![],_0x137d32),_0x33d0da[_0x1ee312(0x118)](_0x19113a,new Error('Failed\x20to\x20start\x20CLI\x20process:\x20'+_0x137d32[_0x1ee312(0x131)]));}),this[_0x17f46c(0xc9)]['on'](_0x33d0da['TcOgl'],_0x3dd2d1=>{const _0x346f22=_0x17f46c;_0x1c6bc4[_0x346f22(0xd7)](_0x3dd2d1,0x0)&&_0x1c6bc4[_0x346f22(0x89)](_0x19113a,new Error(_0x346f22(0x133)+_0x3dd2d1));});});}async['stop'](_0x3bdc5d=null){const _0x301696=a57_0x47007f,_0x4bf898={'wdWgC':'stop:\x20CLI\x20process\x20exited','JOVkr':function(_0x5aea48){return _0x5aea48();},'yPvZq':_0x301696(0xbc),'nUaSz':_0x301696(0x10a),'PQidk':_0x301696(0xaf),'VOtSs':function(_0xb1dda0,_0x290be1,_0x3992e7){return _0xb1dda0(_0x290be1,_0x3992e7);},'QFvQH':'stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','VuVOD':_0x301696(0x92),'kYACW':function(_0x4a88ea,_0x545716){return _0x4a88ea(_0x545716);},'ijfPs':_0x301696(0x85),'LwniP':_0x301696(0x13b),'SgOLp':'stop:\x20error\x20in\x20closing\x20channel:\x20%s','BAleV':_0x301696(0xe5)};if(!this[_0x301696(0xde)]()){this['logger']['info'](_0x4bf898[_0x301696(0xf6)]);return;}PerformanceTester[_0x301696(0xa1)](PerformanceEvents['SDK_CLI_ON_STOP']),this[_0x301696(0xf5)][_0x301696(0x136)](_0x4bf898['VuVOD']);try{if(this[_0x301696(0xcb)]){const _0x106416=_0x4bf898[_0x301696(0xb9)](require,_0x4bf898[_0x301696(0xb1)]),_0x363744=this[_0x301696(0x90)]['TestHubModule']?.['testhubConfig']?.[_0x301696(0x11c)]()?.[_0x301696(0xbf)],_0x2adc56=TestInfo['getTestDetails'](_0x363744),_0x498a9c=_0x2adc56[TestFrameworkConstants[_0x301696(0xa8)]]||{},_0x74241b=await GrpcClient[_0x301696(0x11e)]()[_0x301696(0xb2)](JSON[_0x301696(0x93)](_0x498a9c),_0x3bdc5d);_0x74241b&&_0x74241b[_0x301696(0xdc)]()&&_0x74241b['getAutomateBuildlink']()&&(BrowserstackCLI[_0x301696(0x9d)]=_0x74241b['getAutomateBuildlink'](),BrowserstackCLI['HashedID']=_0x74241b['getHashedId']()),await _0x106416[_0x301696(0x97)](),TestInfo[_0x301696(0x102)](),this['logger'][_0x301696(0x136)](_0x301696(0x83)+BrowserstackCLI[_0x301696(0x9d)]+_0x301696(0xb8)+BrowserstackCLI['HashedID']+_0x301696(0xad)+BrowserstackCLI[_0x301696(0xa7)]);}await this['unConfigureModules']();const _0x181cac=GrpcClient[_0x301696(0x11e)]()[_0x301696(0xff)]();if(_0x181cac){try{_0x181cac[_0x301696(0x8f)](),this[_0x301696(0xf5)][_0x301696(0x136)](_0x4bf898[_0x301696(0xba)]);}catch(_0x3adb7e){this[_0x301696(0xf5)][_0x301696(0x12d)](util[_0x301696(0x107)](_0x4bf898[_0x301696(0xc7)],_0x3adb7e));}await new Promise(_0x1cb676=>setTimeout(_0x1cb676,0x1388));}this[_0x301696(0xc9)]&&this[_0x301696(0xc9)]['pid']&&(this[_0x301696(0xf5)][_0x301696(0x136)](_0x4bf898[_0x301696(0x12f)]),this[_0x301696(0xc9)][_0x301696(0xae)](),await new Promise(_0x5a0aab=>{const _0x547565=_0x301696,_0x3c5edb={'jixUV':_0x4bf898[_0x547565(0x106)],'pLVUH':_0x4bf898[_0x547565(0xc6)],'rBTeN':function(_0x51a943){const _0xe9bf2b=_0x547565;return _0x4bf898[_0xe9bf2b(0xe0)](_0x51a943);}};let _0xf9738=![];this[_0x547565(0xc9)]['on'](_0x4bf898[_0x547565(0xd2)],()=>{const _0x4f9c28=_0x547565;this[_0x4f9c28(0xf5)][_0x4f9c28(0x136)](_0x4bf898[_0x4f9c28(0x125)]),_0xf9738=!![],PerformanceTester[_0x4f9c28(0x104)](PerformanceEvents['SDK_CLI_ON_STOP']),_0x4bf898[_0x4f9c28(0xe0)](_0x5a0aab);}),_0x4bf898['VOtSs'](setTimeout,()=>{const _0x4a79c2=_0x547565;!_0xf9738&&(this[_0x4a79c2(0xf5)]['warn'](_0x3c5edb[_0x4a79c2(0x128)]),this[_0x4a79c2(0xc9)][_0x4a79c2(0xae)](_0x3c5edb[_0x4a79c2(0x8b)]),PerformanceTester['end'](PerformanceEvents[_0x4a79c2(0xed)]),_0x3c5edb['rBTeN'](_0x5a0aab));},0xbb8);}));}catch(_0x501f75){PerformanceTester[_0x301696(0x104)](PerformanceEvents[_0x301696(0xed)],![],util[_0x301696(0x107)](_0x501f75)),this[_0x301696(0xf5)][_0x301696(0x12d)](_0x301696(0xcf)+(_0x501f75[_0x301696(0x12e)]||_0x501f75));}_0x3bdc5d?this['process']['exitCode']=0x1:this[_0x301696(0xc9)][_0x301696(0x13a)]=0x0,this['isChildConnected']=![],this[_0x301696(0xcb)]=![],process[_0x301696(0x112)][_0x301696(0xe4)]=null;}async['unConfigureModules'](){const _0x2208c1=a57_0x47007f,_0x5dc228={};_0x5dc228[_0x2208c1(0x9c)]=_0x2208c1(0x130);const _0xfae935=_0x5dc228;this[_0x2208c1(0xf5)][_0x2208c1(0x136)](_0xfae935[_0x2208c1(0x9c)]);}[a57_0x47007f(0x120)](_0x193271){const _0x2a01d0=a57_0x47007f;this[_0x2a01d0(0xf5)]['info'](_0x2a01d0(0xdf)+JSON[_0x2a01d0(0x93)](_0x193271)),this[_0x2a01d0(0xee)]=_0x193271,GrpcClient[_0x2a01d0(0x11e)]()[_0x2a01d0(0xb5)](_0x193271);}async[a57_0x47007f(0xda)](_0x97c392){const _0x5452b1=a57_0x47007f,_0x331c92={};_0x331c92[_0x5452b1(0xab)]='startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here';const _0x231407=_0x331c92;PerformanceTester[_0x5452b1(0xa1)](PerformanceEvents[_0x5452b1(0x10c)]);try{this[_0x5452b1(0xf5)][_0x5452b1(0x136)](_0x5452b1(0xbe)+_0x97c392);const _0x14f42c=GrpcClient['getInstance']();if(_0x14f42c&&_0x14f42c[_0x5452b1(0x10b)]()&&_0x14f42c[_0x5452b1(0xff)]()){this[_0x5452b1(0xf5)][_0x5452b1(0x136)](_0x231407[_0x5452b1(0xab)]);return;}GrpcClient['getInstance']()[_0x5452b1(0xa6)]();const _0x4b8a37=await GrpcClient[_0x5452b1(0x11e)]()[_0x5452b1(0x122)]();this[_0x5452b1(0x127)]=!![],this['loadModules'](_0x4b8a37),PerformanceTester[_0x5452b1(0x104)](PerformanceEvents[_0x5452b1(0x10c)]);}catch(_0x5e4811){PerformanceTester[_0x5452b1(0x104)](PerformanceEvents[_0x5452b1(0x10c)],![],util[_0x5452b1(0x107)](_0x5e4811)),this['logger'][_0x5452b1(0x12d)]('Failed\x20to\x20start\x20as\x20child\x20process:\x20'+util[_0x5452b1(0x107)](_0x5e4811));}}[a57_0x47007f(0xde)](){const _0xece9b7=a57_0x47007f,_0xe66ce5={};_0xe66ce5[_0xece9b7(0x86)]=function(_0x36eb81,_0x578ff6){return _0x36eb81!==_0x578ff6;},_0xe66ce5[_0xece9b7(0x98)]=function(_0x5206c8,_0x5c62df){return _0x5206c8===_0x5c62df;},_0xe66ce5['NUZQy']=function(_0x4f5d29,_0x25548b){return _0x4f5d29!==_0x25548b;},_0xe66ce5[_0xece9b7(0x129)]=function(_0x46d2ea,_0x497091){return _0x46d2ea!==_0x497091;};const _0x25b312=_0xe66ce5;return CLIUtils[_0xece9b7(0xdb)]()||this['isMainConnected']&&_0x25b312[_0xece9b7(0x86)](this[_0xece9b7(0xc9)],null)&&_0x25b312[_0xece9b7(0x98)](this['process'][_0xece9b7(0x13a)],null)&&_0x25b312[_0xece9b7(0xca)](GrpcClient[_0xece9b7(0x11e)]()[_0xece9b7(0x10b)](),null)&&!GrpcClient[_0xece9b7(0x11e)]()['getChannel']()[_0xece9b7(0x126)]||this[_0xece9b7(0x127)]&&_0x25b312[_0xece9b7(0x129)](GrpcClient[_0xece9b7(0x11e)]()[_0xece9b7(0xff)](),null)&&!GrpcClient[_0xece9b7(0x11e)]()['getChannel']()[_0xece9b7(0x126)];}[a57_0x47007f(0x11f)](){const _0x447424=a57_0x47007f;return this[_0x447424(0x101)];}['setBrowserstackConfig'](_0x2ed5cd,_0x20b329=null){const _0xc54ae2=a57_0x47007f,_0x59eff9={};_0x59eff9[_0xc54ae2(0x135)]=function(_0x29a61d,_0x21ad65){return _0x29a61d||_0x21ad65;};const _0x34c25e=_0x59eff9;this[_0xc54ae2(0x101)]=_0x34c25e[_0xc54ae2(0x135)](_0x2ed5cd,{}),this[_0xc54ae2(0x11d)]=_0x20b329,process[_0xc54ae2(0x112)][_0xc54ae2(0xc5)]=this[_0xc54ae2(0x101)]?.[_0xc54ae2(0xfb)]||![];const _0x269cf0=CLIUtils[_0xc54ae2(0x9b)]();helper[_0xc54ae2(0xc3)](process[_0xc54ae2(0x112)][_0xc54ae2(0xc5)])||!CLI_SUPPORTED_FRAMEWORKS[_0xc54ae2(0x113)](_0x269cf0[_0xc54ae2(0xaa)][_0xc54ae2(0x105)]())?process['env']['BROWSERSTACK_CLI_ENABLED']=![]:process['env']['BROWSERSTACK_CLI_ENABLED']=!![];}async['getCliBinPath'](){const _0x3acbd6=a57_0x47007f;return!this[_0x3acbd6(0xfa)]&&(this['SDK_CLI_BIN_PATH']=await CLIUtils['setupCliPath'](this[_0x3acbd6(0x101)])),this[_0x3acbd6(0xfa)];}[a57_0x47007f(0x10e)](){const _0x15316e=a57_0x47007f;return helper[_0x15316e(0xc3)](process[_0x15316e(0x112)][_0x15316e(0x111)]);}[a57_0x47007f(0xb3)](){const _0x1c3951=a57_0x47007f;return this[_0x1c3951(0xcd)];}[a57_0x47007f(0xb0)](_0x2c1ad1){const _0xdb432c=a57_0x47007f,_0x54d6ec={};_0x54d6ec[_0xdb432c(0xe8)]=_0xdb432c(0xac);const _0x56a726=_0x54d6ec;try{this[_0xdb432c(0xcd)]=JSON['parse'](_0x2c1ad1['getConfig']()),this[_0xdb432c(0xf5)][_0xdb432c(0x136)](_0x56a726[_0xdb432c(0xe8)]);}catch(_0xf5e21d){this[_0xdb432c(0xf5)][_0xdb432c(0x12d)]('setConfig:\x20error='+util['format'](_0xf5e21d));}}[a57_0x47007f(0x8a)](_0x3e4798){const _0x34efa1=a57_0x47007f;try{this['cliArgs']=_0x3e4798[_0x34efa1(0x137)]()[_0x34efa1(0x9f)](','),this[_0x34efa1(0xf5)]['info'](_0x34efa1(0x110)+JSON[_0x34efa1(0x93)](this['cliArgs']));}catch(_0x3c7ace){this[_0x34efa1(0xf5)][_0x34efa1(0x12d)](_0x34efa1(0x109)+util[_0x34efa1(0x107)](_0x3c7ace));}}[a57_0x47007f(0x137)](){const _0x71cc3=a57_0x47007f;return this[_0x71cc3(0xf9)];}['setupTestFramework'](){const _0x4dc44a=a57_0x47007f,_0x5edb1b={};_0x5edb1b[_0x4dc44a(0xa4)]=function(_0x2e94a7,_0x1880f8){return _0x2e94a7===_0x1880f8;};const _0x186b4c=_0x5edb1b,_0x68979c=CLIUtils[_0x4dc44a(0x9b)]();_0x186b4c[_0x4dc44a(0xa4)](_0x68979c[_0x4dc44a(0xaa)][_0x4dc44a(0x105)](),FRAMEWORKS['PLAYWRIGHT'][_0x4dc44a(0x105)]())&&(this[_0x4dc44a(0xd8)]=new PlaywrightTestFramework([_0x68979c[_0x4dc44a(0xaa)]],_0x68979c['version']));}[a57_0x47007f(0x9e)](){const _0x3242fa=a57_0x47007f,_0x4d3c87={};_0x4d3c87[_0x3242fa(0x84)]=function(_0x4108df,_0x5d1815){return _0x4108df===_0x5d1815;};const _0x391c11=_0x4d3c87,_0x2ff603=CLIUtils['getAutomationFrameworkDetail']();_0x391c11[_0x3242fa(0x84)](_0x2ff603[_0x3242fa(0xaa)][_0x3242fa(0x105)](),FRAMEWORKS[_0x3242fa(0x103)][_0x3242fa(0x105)]())&&(this[_0x3242fa(0x121)]=new PlaywrightAutomationFramework(_0x2ff603[_0x3242fa(0xaa)],_0x2ff603[_0x3242fa(0x119)]));}[a57_0x47007f(0xbb)](){return this['testFramework'];}[a57_0x47007f(0x95)](){const _0x2fd24e=a57_0x47007f;return this[_0x2fd24e(0x121)];}[a57_0x47007f(0xc8)](){const _0xcfdf7d=a57_0x47007f;return this[_0xcfdf7d(0x11d)];}}function a57_0x4f71(){const _0x1c6563=['stop:\x20channel\x20closed','QvMrq','loadModules:\x20Loading\x20modules','getTesthub','client','./modules/testhubModule.js','slice','stop:\x20stopBinSession\x20build_link=','oihxM','./uploadAttachmentsManager.js','qVVOo','4137126eefLRv','./TestInfo.js','egGfs','setCliArgs','pLVUH','data','test','6RhUIso','close','modules','hntuR','stop:\x20CLI\x20stop\x20triggered','stringify','uRevX','getAutomationFramework','Disabling\x20CLI.','clearAttachments','fpium','getObservability','VhXmI','getTestFrameworkDetail','YQpvk','BuildLink','setupAutomationFramework','split','./modules/playwrightDriverModule.js','start','configure','ULFWl','QouhP','../../helpers/performance/constants','connect','O11yHashedID','KEY_CUSTOM_TAGS','binSessionId','name','wfmwv','loading\x20Modules.','\x20o11y_uuid=','kill','exit','setConfig','ijfPs','stopBinSession','getConfig','spawning\x20command=\x27','init','stop','Error\x20in\x20start:\x20','\x20hashed_id=','kYACW','LwniP','getTestFramework','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','./cliUtils.js','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','buildHashedId','CLI\x20stderr:\x20','zXPfZ','sdk','isTrue','4504AHpWNH','BROWSERSTACK_TURBOSCALE','nUaSz','SgOLp','getBrowserstackCliConfig','process','NUZQy','isMainConnected','bootstrap:\x20failed\x20to\x20bootstrap=','config','imbhn','stop:\x20error\x20in\x20stop\x20session\x20exception=','rdVor','startMain:\x20main-process\x20started','PQidk','1840465hUnSCh','347497gZErwu','loadModules:\x20binSessionId=','startBinSession','HKLwh','testFramework','toString','startChild','isDevelopmentEnv','getSuccess','./framework/constants/testFrameworkConstants.js','isRunning','CLI\x20params\x20loaded:\x20','JOVkr','pid','NTOdP','../../helpers/helper.js','BROWSERSTACK_CLI_ENV','stop:\x20shutting\x20down\x20CLI','jmObS','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','GXleN','uJvTl','trim','2590461ZzKhoK','SDK_CLI_START','SDK_CLI_ON_STOP','cliParams','../../helpers/classLogger.js','4837xuQDdl','701976JBZPAG','vteLi','tApnh','./framework/playwrightTestFramework.js','logger','QFvQH','util','iEdsz','cliArgs','SDK_CLI_BIN_PATH','turboScale','debug','MODULE_NAME','364370gmwsij','getChannel','BrowserstackCLI','browserstackConfig','shutdown','PLAYWRIGHT','end','toLowerCase','yPvZq','format','connected','setCliArgs:\x20error=','SIGKILL','getClient','SDK_CONNECT_BIN_SESSION','../utils/constants.js','isCliEnabled','LWvQn','setCliArgs:\x20cliArgs=','BROWSERSTACK_CLI_ENABLED','env','includes','startMain:\x20Starting\x20main\x20process','ENEJq','loadModules','./modules/observabilityModule.js','PzTSC','version','gBWXa','initialized','toObject','browserstackCliConfig','getInstance','getBrowserstackConfig','loadCliParams','automationFramework','connectBinSession','isFalse','SDK_CLI_ON_BOOTSTRAP','wdWgC','isClosed','isChildConnected','jixUV','frsDO','HashedID','getCliBinPath','resolve','error','stack','BAleV','Unconfiguring\x20modules','message','startMain','CLI\x20process\x20exited\x20with\x20code\x20','getCLIParamsForDevEnv','jVVoI','info','getCliArgs','configureModules','gVaev','exitCode'];a57_0x4f71=function(){return _0x1c6563;};return a57_0x4f71();}module['exports']=BrowserstackCLI;
|
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a58_0x192d3a=a58_0x3f0f;(function(_0x440ce5,_0x25211d){const _0x39eead=a58_0x3f0f,_0x55bcf4=_0x440ce5();while(!![]){try{const _0x5a34c2=-parseInt(_0x39eead(0x168))/0x1*(-parseInt(_0x39eead(0x109))/0x2)+parseInt(_0x39eead(0x131))/0x3*(-parseInt(_0x39eead(0x11b))/0x4)+parseInt(_0x39eead(0x147))/0x5+-parseInt(_0x39eead(0x14e))/0x6*(-parseInt(_0x39eead(0xce))/0x7)+-parseInt(_0x39eead(0x15a))/0x8+-parseInt(_0x39eead(0x17c))/0x9*(-parseInt(_0x39eead(0x104))/0xa)+-parseInt(_0x39eead(0x138))/0xb;if(_0x5a34c2===_0x25211d)break;else _0x55bcf4['push'](_0x55bcf4['shift']());}catch(_0x3f58e1){_0x55bcf4['push'](_0x55bcf4['shift']());}}}(a58_0x4af2,0x957ab));function a58_0x3f0f(_0x4ed5f0,_0x187255){const _0x4af25b=a58_0x4af2();return a58_0x3f0f=function(_0x3f0f2e,_0x15d486){_0x3f0f2e=_0x3f0f2e-0xc9;let _0x546370=_0x4af25b[_0x3f0f2e];return _0x546370;},a58_0x3f0f(_0x4ed5f0,_0x187255);}const fs=require('fs'),os=require('os'),url=require(a58_0x192d3a(0xf7)),path=require(a58_0x192d3a(0x16b)),{exec}=require(a58_0x192d3a(0x17b)),{https}=require('follow-redirects'),yauzl=require(a58_0x192d3a(0xde)),util=require(a58_0x192d3a(0x161)),{getFrameworkVersion}=require('../../helpers/test-observability/utils.js'),{threadId}=require(a58_0x192d3a(0xe2)),PerformanceTester=require(a58_0x192d3a(0xd9)),{EVENTS:PerformanceEvents}=require(a58_0x192d3a(0x160)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a58_0x192d3a(0x13c)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a58_0x192d3a(0x105)),{BROWSERSTACK_API_URL,UPDATED_CLI_ENDPOINT}=require(a58_0x192d3a(0xe0)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a58_0x192d3a(0xf9)),HookState=require(a58_0x192d3a(0x112)),TestFrameworkState=require(a58_0x192d3a(0x155)),AutomationFrameworkState=require(a58_0x192d3a(0x12a)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a58_0x192d3a(0xf1));function a58_0x4af2(){const _0x6fb048=['version','format','wdLVH','WtgbT','get','getSdkVersion','366GquYke','OTKfh','XAwgs','Failed\x20to\x20delete\x20zip\x20file:\x20','chmod','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','isDevelopmentEnv','./state/testFrameworkState.js','tnnbS','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','once','VdjJq','1864136xKpBMn','error','isDirectory','iBfro','LlMvt','Development\x20Cli\x20Path:\x20','../../helpers/performance/constants','util','jPoBp','debug','timeout','SDK_CLI_CHECK_UPDATE','HOOK_REGEX','.sock','131xSnoUI','nBINy','pdWrA','path','MbbqU','sNbYx','Resolved\x20binary\x20path:\x20','fUrJm','pid','stringify','HaWGQ','sDkjA','testFrameworkDetail','.browserstack','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','downloadLatestBinary','HTqSu','SHELL_EXECUTE_ERROR','IppjB','child_process','376461ODnqdJ','fileName','Failed\x20to\x20download\x20binary,\x20Exception:\x20','Downloading\x20SDK\x20binary\x20from:\x20','matchHookRegex','filter','WnJIZ','entry','MWyQv','cli','unlink','95858LwXqpY','BROWSERSTACK_BINARY_URL','homedir','SopJo','automationFrameworkDetail','mtime','QcfEV','exports','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','join','SFfEZ','../../helpers/performance/performance-tester.js','unix:/tmp/sdk-platform-','HOIpW','../../../package.json','split','yauzl','platform','../utils/constants','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','worker_threads','getWritableDir','SDK_CLI_DOWNLOAD','parse','openReadStream','info','GET','oFTWc','0755','getTestFrameworkDetail','testContextOptions','getExistingCliPath','\x20version','reduce','Configuring\x20Cli\x20path.','CLIUtils','getCliDir','getSdkLanguage','statSync','Folder\x20','yxFxG','url','listen','./instances/testFrameworkInstance.js','OXQeY','ACBMj','cli_version','downloadFileStream','NUElQ','dqrCx','warn','getHookRegistryKey','node','qDCYb','290RLGkgS','../../helpers/helper','data','getAutomationFrameworkDetail','response\x20','10606CVKKsI','aWGYd','mUQUa','test','DfAeu','binary-','phQFJ','checkAndUpdateCli','setupCliPath','./state/hookState.js','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','eIGuq','oqzJp','arch','VNPTI','yndyi','agIOa','914332YaKTfL','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','tWpvV','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request\x20','NkQZQ','basename','runShellCommand','\x20already\x20exists','exNFb','readEntry','readdirSync','createWriteStream','env','getCurrentInstanceName','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file\x20%s','./state/automationFrameworkState.js','open','QMeKI','BROWSERSTACK_FILES_DIR','cwd','getCLIParamsForDevEnv','BROWSERSTACK_CLI_ENV','12inkvmv',',\x20automationFramework=','vwsFw','xvspP','close','development','map','21645679Sryvem','end','wQrTG','trim','../../helpers/utilities','kUAPL','RQhAK','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','Setting\x20required\x20permissions\x20to\x20','lTjoK','UWrND','pipe','shouldSkipSessionStatus','existsSync','startsWith','4921685SNhPZv'];a58_0x4af2=function(){return _0x6fb048;};return a58_0x4af2();}class CLIUtils{[a58_0x192d3a(0xd2)]={};[a58_0x192d3a(0x174)]={};static[a58_0x192d3a(0x154)](){const _0x4e8bd0=a58_0x192d3a,_0x3ff54f={};_0x3ff54f[_0x4e8bd0(0xc9)]=function(_0x4944c5,_0x118d73){return _0x4944c5===_0x118d73;},_0x3ff54f[_0x4e8bd0(0x169)]=_0x4e8bd0(0x136);const _0x4e1e4b=_0x3ff54f;return _0x4e1e4b[_0x4e8bd0(0xc9)](process[_0x4e8bd0(0x127)][_0x4e8bd0(0x130)],_0x4e1e4b[_0x4e8bd0(0x169)]);}static[a58_0x192d3a(0x12f)](){const _0x251592=a58_0x192d3a,_0x54d116={};return _0x54d116['id']=process[_0x251592(0x127)][_0x251592(0x130)],_0x54d116[_0x251592(0xf8)]=_0x251592(0xda)+process[_0x251592(0x127)][_0x251592(0x130)]+_0x251592(0x167),_0x54d116;}static[a58_0x192d3a(0x14d)](){const _0x340ab5=a58_0x192d3a,_0x3d5aa9={'aWGYd':function(_0x4d670d,_0x1c3e0a){return _0x4d670d(_0x1c3e0a);},'QMeKI':_0x340ab5(0xdc)};return _0x3d5aa9[_0x340ab5(0x10a)](require,_0x3d5aa9[_0x340ab5(0x12c)])[_0x340ab5(0x148)];}static[a58_0x192d3a(0xf3)](){const _0x40c936=a58_0x192d3a,_0x117067={};_0x117067['vwsFw']=_0x40c936(0x102);const _0x4ae248=_0x117067;return _0x4ae248[_0x40c936(0x133)];}static async[a58_0x192d3a(0x111)](_0x213ea6){const _0x564775=a58_0x192d3a,_0x9cc097={'yxFxG':_0x564775(0xf0),'LlMvt':function(_0x4adfa8,_0x4da843){return _0x4adfa8(_0x4da843);},'VNPTI':function(_0x5d4625,_0x2c7793){return _0x5d4625(_0x2c7793);},'dKjWp':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x564775(0x163)](_0x9cc097[_0x564775(0xf6)]);const _0x3745e7=process[_0x564775(0x127)]['SDK_CLI_BIN_PATH'];if(!_0x9cc097[_0x564775(0x15e)](isNullOrEmpty,_0x3745e7))return logger[_0x564775(0x163)](_0x564775(0x15f)+_0x3745e7),_0x3745e7;try{const _0xa71087=this[_0x564775(0xf2)]();if(_0x9cc097[_0x564775(0x118)](isNullOrEmpty,_0xa71087))throw new Error(_0x9cc097['dKjWp']);const _0x1a0526=this[_0x564775(0xed)](_0xa71087),_0x17a4a2=await this[_0x564775(0x110)](_0x1a0526,_0xa71087,_0x213ea6);return logger[_0x564775(0x163)](_0x564775(0x16e)+_0x17a4a2),_0x17a4a2;}catch(_0x41907a){logger[_0x564775(0x163)](_0x564775(0x114)+util[_0x564775(0x149)](_0x41907a));}return null;}static async['checkAndUpdateCli'](_0x5b400c,_0x50bd62,_0x10353f){const _0x2a908b=a58_0x192d3a,_0x947b17={'HaWGQ':function(_0x3d259b){return _0x3d259b();},'VdjJq':function(_0x11e544,_0x44db0a){return _0x11e544(_0x44db0a);},'xvspP':function(_0x35fdb9,_0x2dde39,_0x4652a6){return _0x35fdb9(_0x2dde39,_0x4652a6);},'yndyi':_0x2a908b(0x106),'tWpvV':_0x2a908b(0xf7),'DKGhj':function(_0x41063d,_0x335101,_0x11409f){return _0x41063d(_0x335101,_0x11409f);}};PerformanceTester['start'](PerformanceEvents[_0x2a908b(0x165)]),logger['info']('Current\x20CLI\x20Path\x20Found:\x20'+_0x5b400c);const _0x1d0768=_0x947b17[_0x2a908b(0x172)](getHostInfo),_0x2c8e02={'sdk_version':CLIUtils[_0x2a908b(0x14d)](),'os':_0x1d0768[_0x2a908b(0xdf)],'os_arch':_0x1d0768[_0x2a908b(0x117)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x947b17[_0x2a908b(0x159)](isNullOrEmpty,_0x5b400c)&&(_0x2c8e02[_0x2a908b(0xfc)]=await this['runShellCommand'](_0x5b400c+_0x2a908b(0xee)));const _0x3ebfd1=await this['requestToUpdateCLI'](_0x2c8e02,_0x10353f);process[_0x2a908b(0x127)]['BROWSERSTACK_BINARY_URL']&&(logger[_0x2a908b(0xe7)](_0x2a908b(0x176)+process[_0x2a908b(0x127)][_0x2a908b(0xcf)]),_0x3ebfd1[_0x2a908b(0x106)][_0x2a908b(0xf7)]=process[_0x2a908b(0x127)][_0x2a908b(0xcf)]);if(_0x947b17[_0x2a908b(0x134)](nestedKeyValue,_0x3ebfd1,[_0x947b17[_0x2a908b(0x119)],_0x947b17[_0x2a908b(0x11d)]])){logger[_0x2a908b(0x163)](_0x2a908b(0x113)+_0x2c8e02[_0x2a908b(0xfc)]);const _0x5623ed=await this[_0x2a908b(0x177)](_0x947b17['DKGhj'](nestedKeyValue,_0x3ebfd1,[_0x947b17[_0x2a908b(0x119)],_0x947b17[_0x2a908b(0x11d)]]),_0x50bd62);return PerformanceTester[_0x2a908b(0x139)](PerformanceEvents[_0x2a908b(0x165)]),_0x5623ed;}return PerformanceTester[_0x2a908b(0x139)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x5b400c;}static[a58_0x192d3a(0xf2)](){const _0x729256=a58_0x192d3a,_0x272d4c={'dqrCx':function(_0x3c2c39,_0xe5ea26){return _0x3c2c39(_0xe5ea26);},'OXQeY':_0x729256(0x153),'QcfEV':_0x729256(0xcc)},_0x37f299=this[_0x729256(0xe3)]();try{if(_0x272d4c[_0x729256(0xff)](isNullOrEmpty,_0x37f299))throw new Error(_0x272d4c[_0x729256(0xfa)]);const _0x315e43=path['join'](_0x37f299,_0x272d4c[_0x729256(0xd4)]);return!fs[_0x729256(0x145)](_0x315e43)&&_0x272d4c[_0x729256(0xff)](createDir,_0x315e43),_0x315e43;}catch(_0x53f37e){logger[_0x729256(0x163)](_0x729256(0x11c)+util[_0x729256(0x149)](_0x53f37e));}}static[a58_0x192d3a(0xe3)](){const _0x57f4f3=a58_0x192d3a,_0xfa15bb={'lTjoK':_0x57f4f3(0x175),'NUElQ':'tmp','OTKfh':function(_0x699efc,_0x103893){return _0x699efc(_0x103893);},'RQhAK':function(_0x3b6988,_0x1d7ad7){return _0x3b6988(_0x1d7ad7);},'SFfEZ':function(_0x2adc26,_0x340d87){return _0x2adc26(_0x340d87);}},_0x1ce4aa=[process[_0x57f4f3(0x127)][_0x57f4f3(0x12d)],path[_0x57f4f3(0xd7)](os[_0x57f4f3(0xd0)](),_0xfa15bb[_0x57f4f3(0x141)]),path[_0x57f4f3(0xd7)](_0xfa15bb[_0x57f4f3(0xfe)],_0xfa15bb[_0x57f4f3(0x141)])];for(const _0x2e4574 of _0x1ce4aa){if(_0xfa15bb[_0x57f4f3(0x14f)](isNullOrEmpty,_0x2e4574))continue;try{if(fs[_0x57f4f3(0x145)](_0x2e4574)){logger[_0x57f4f3(0x163)](_0x57f4f3(0xf5)+_0x2e4574+_0x57f4f3(0x122));if(!_0xfa15bb[_0x57f4f3(0x14f)](isModifiable,_0x2e4574)){logger['debug'](_0x57f4f3(0x140)+_0x2e4574);const _0x130dec=_0xfa15bb['RQhAK'](setReadWriteExecuteAccess,_0x2e4574);!_0xfa15bb[_0x57f4f3(0x13e)](isTrue,_0x130dec)&&logger[_0x57f4f3(0x100)](_0x57f4f3(0x13f)+_0x2e4574);}}else{logger[_0x57f4f3(0x163)]('Folder\x20does\x20not\x20exist:\x20'+_0x2e4574),_0xfa15bb['RQhAK'](createDir,_0x2e4574),logger[_0x57f4f3(0x163)]('Setting\x20required\x20permissions\x20to\x20'+_0x2e4574);const _0x4a4ea4=_0xfa15bb['RQhAK'](setReadWriteExecuteAccess,_0x2e4574);!_0xfa15bb[_0x57f4f3(0xd8)](isTrue,_0x4a4ea4)&&logger[_0x57f4f3(0x100)](_0x57f4f3(0x13f)+_0x2e4574);}return _0x2e4574;}catch(_0x21bcc8){logger[_0x57f4f3(0x15b)](_0x57f4f3(0x157)+util[_0x57f4f3(0x149)](_0x21bcc8));}}return null;}static[a58_0x192d3a(0xed)](_0x1fe4a6){const _0x134be1=a58_0x192d3a,_0x2179f6={};_0x2179f6[_0x134be1(0x116)]=function(_0x26960a,_0x9da0db){return _0x26960a>_0x9da0db;};const _0x2ddade=_0x2179f6;try{if(!fs[_0x134be1(0x145)](_0x1fe4a6)||!fs[_0x134be1(0xf4)](_0x1fe4a6)[_0x134be1(0x15c)]())return'';const _0x252dbf=fs[_0x134be1(0x125)](_0x1fe4a6)[_0x134be1(0x137)](_0x2ce1cb=>path[_0x134be1(0xd7)](_0x1fe4a6,_0x2ce1cb))[_0x134be1(0x181)](_0x3b36b0=>fs[_0x134be1(0xf4)](_0x3b36b0)['isFile']()&&path[_0x134be1(0x120)](_0x3b36b0)[_0x134be1(0x146)](_0x134be1(0x10e)));if(_0x2ddade['oqzJp'](_0x252dbf['length'],0x0)){const _0x33b0d6=_0x252dbf[_0x134be1(0x137)](_0x167c3d=>({'filePath':_0x167c3d,'mtime':fs[_0x134be1(0xf4)](_0x167c3d)[_0x134be1(0xd3)]}))[_0x134be1(0xef)]((_0x52f749,_0x35bd09)=>{const _0x96e5a7=_0x134be1;if(!_0x52f749||!_0x52f749['mtime'])return _0x35bd09;if(_0x2ddade[_0x96e5a7(0x116)](_0x35bd09[_0x96e5a7(0xd3)],_0x52f749['mtime']))return _0x35bd09;return _0x52f749;},{});return _0x33b0d6?_0x33b0d6['filePath']:'';}return'';}catch(_0x21c262){return logger['error']('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x134be1(0x149)](_0x21c262)),'';}}static ['requestToUpdateCLI']=async(_0x2c9328,_0x328e5e)=>{const _0x49c971=a58_0x192d3a,_0x4cb29a={'agIOa':function(_0x2d1508,_0x254606,_0xc8390d,_0x204343,_0x52fb3e,_0x826e34){return _0x2d1508(_0x254606,_0xc8390d,_0x204343,_0x52fb3e,_0x826e34);},'sDkjA':_0x49c971(0xe8)},_0x59fa09={};_0x59fa09['qs']=_0x2c9328;const _0x5879fe=await _0x4cb29a[_0x49c971(0x11a)](nodeRequest,_0x4cb29a[_0x49c971(0x173)],UPDATED_CLI_ENDPOINT,_0x59fa09,_0x328e5e,BROWSERSTACK_API_URL);return logger[_0x49c971(0x163)](_0x49c971(0x108)+JSON[_0x49c971(0x171)](_0x5879fe)),_0x5879fe;};static[a58_0x192d3a(0x121)](_0x8f5f0d,_0x4bfe47=''){const _0x56e95d=a58_0x192d3a,_0x3ee749={'MWyQv':function(_0x1b620d,_0x35420f){return _0x1b620d(_0x35420f);},'JSIRr':_0x56e95d(0x179),'qlBIX':function(_0x1ea59f,_0xcca289){return _0x1ea59f(_0xcca289);},'mUQUa':function(_0x297696,_0x52f9c9,_0x48937c,_0x5d8a0e){return _0x297696(_0x52f9c9,_0x48937c,_0x5d8a0e);},'DEWfC':_0x56e95d(0x15b)};return new Promise((_0x20e76a,_0x58543c)=>{const _0x2b7575=_0x56e95d,_0x59ab14={'kUAPL':function(_0x4a90d6,_0x2912e5){return _0x3ee749['MWyQv'](_0x4a90d6,_0x2912e5);},'tnnbS':_0x3ee749['JSIRr'],'NkQZQ':function(_0x2f37c6,_0x26003a){const _0x5c5375=a58_0x3f0f;return _0x3ee749[_0x5c5375(0xcb)](_0x2f37c6,_0x26003a);},'phQFJ':function(_0x3eb24c,_0x151401){return _0x3ee749['qlBIX'](_0x3eb24c,_0x151401);}},_0x6e50d1={};_0x6e50d1[_0x2b7575(0x12e)]=_0x4bfe47,_0x6e50d1[_0x2b7575(0x164)]=0x1388;const _0x2d87f6=_0x3ee749[_0x2b7575(0x10b)](exec,_0x8f5f0d,_0x6e50d1,(_0x1ec871,_0x3c7375,_0x52e127)=>{const _0x39fe78=_0x2b7575;_0x1ec871?_0x59ab14[_0x39fe78(0x13d)](_0x20e76a,_0x52e127[_0x39fe78(0x13b)]()||_0x59ab14[_0x39fe78(0x156)]):_0x59ab14[_0x39fe78(0x11f)](_0x20e76a,_0x3c7375[_0x39fe78(0x13b)]());});_0x2d87f6['on'](_0x3ee749['DEWfC'],()=>{const _0x53c231=_0x2b7575;_0x59ab14[_0x53c231(0x10f)](_0x20e76a,_0x59ab14[_0x53c231(0x156)]);});});}static [a58_0x192d3a(0x177)]=async(_0x378a85,_0x364ee4)=>{const _0x567bf4=a58_0x192d3a,_0x1c3afd={'WtgbT':_0x567bf4(0x15b),'sNbYx':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response\x20%s','HOIpW':function(_0x151f3c,_0x500348){return _0x151f3c(_0x500348);},'gOUHj':_0x567bf4(0x129),'DzjGV':'downloaded_file.zip'};PerformanceTester['start'](PerformanceEvents[_0x567bf4(0xe4)]),logger['debug'](_0x567bf4(0x17f)+_0x378a85);try{const _0x5278a3=url['parse'](_0x378a85),_0x434d71=path[_0x567bf4(0xd7)](_0x364ee4,_0x1c3afd['DzjGV']),_0x467b24=fs[_0x567bf4(0x126)](_0x434d71);return new Promise((_0x4e45c5,_0x3f9b22)=>{const _0xa8d96a=_0x567bf4,_0x27649c={'SopJo':_0x1c3afd[_0xa8d96a(0x16d)],'XAwgs':function(_0x1bd9ac,_0x12d5e3){return _0x1c3afd['HOIpW'](_0x1bd9ac,_0x12d5e3);},'MCJNO':_0x1c3afd['gOUHj'],'AZFCx':function(_0x212df0,_0x2abd5c){return _0x1c3afd['HOIpW'](_0x212df0,_0x2abd5c);},'FvUIH':function(_0x38f171,_0x95ca43){const _0x15ba0f=_0xa8d96a;return _0x1c3afd[_0x15ba0f(0xdb)](_0x38f171,_0x95ca43);}};https[_0xa8d96a(0x14c)](_0x5278a3,function(_0x965343){const _0x16556c=_0xa8d96a,_0xc52826=null;_0x965343[_0x16556c(0x143)](_0x467b24),_0x965343['on'](_0x1c3afd[_0x16556c(0x14b)],function(_0x17537e){const _0x1c014f=_0x16556c;logger['error'](util['format'](_0x27649c[_0x1c014f(0xd1)],_0x17537e)),PerformanceTester[_0x1c014f(0x139)](PerformanceEvents[_0x1c014f(0xe4)],![],util['format'](_0x17537e)),_0x27649c[_0x1c014f(0x150)](_0x3f9b22,_0x17537e);}),_0x467b24['on'](_0x1c3afd[_0x16556c(0x14b)],function(_0xb3bf0){const _0x5f4f7b=_0x16556c;logger[_0x5f4f7b(0x15b)](util['format'](_0x27649c['MCJNO'],_0xb3bf0)),PerformanceTester[_0x5f4f7b(0x139)](PerformanceEvents[_0x5f4f7b(0xe4)],![],util[_0x5f4f7b(0x149)](_0xb3bf0)),_0x27649c['AZFCx'](_0x3f9b22,_0xb3bf0);}),CLIUtils[_0x16556c(0xfd)](_0x467b24,_0xc52826,_0x434d71,_0x364ee4,_0x4e45c5,_0x3f9b22),PerformanceTester[_0x16556c(0x139)](PerformanceEvents[_0x16556c(0xe4)]);})['on'](_0x1c3afd[_0xa8d96a(0x14b)],function(_0x5036b8){const _0x28c5b7=_0xa8d96a;logger[_0x28c5b7(0x15b)](_0x28c5b7(0x11e)+util[_0x28c5b7(0x149)](_0x5036b8)),PerformanceTester[_0x28c5b7(0x139)](PerformanceEvents[_0x28c5b7(0xe4)],![],util['format'](_0x5036b8)),_0x27649c['FvUIH'](_0x3f9b22,_0x5036b8);});});}catch(_0x1eed94){PerformanceTester['end'](PerformanceEvents[_0x567bf4(0xe4)],![],util[_0x567bf4(0x149)](_0x1eed94)),logger['debug'](_0x567bf4(0x17e)+util[_0x567bf4(0x149)](_0x1eed94));}};static[a58_0x192d3a(0xfd)](_0x254e6b,_0x2a227e,_0x524948,_0x3c7428,_0x17f298,_0x1484e1){const _0xcf9960=a58_0x192d3a,_0x23224f={'fUrJm':function(_0x3b820b,_0x239fef){return _0x3b820b(_0x239fef);},'UWrND':_0xcf9960(0x139),'pdWrA':_0xcf9960(0xea),'HTqSu':_0xcf9960(0xca),'wQrTG':'error','qDCYb':function(_0x5d5561,_0x10f641){return _0x5d5561===_0x10f641;},'eIGuq':function(_0x489d75,_0x16992a){return _0x489d75(_0x16992a);},'iBfro':'close'};_0x254e6b['on'](_0x23224f[_0xcf9960(0x15d)],function(){const _0x2e5287=_0xcf9960,_0x30f26e={'IppjB':function(_0x29850c,_0x1e4371){const _0x5a25e7=a58_0x3f0f;return _0x23224f[_0x5a25e7(0x103)](_0x29850c,_0x1e4371);},'DfAeu':function(_0x5cd922,_0x2b050d){const _0x2f474c=a58_0x3f0f;return _0x23224f[_0x2f474c(0x115)](_0x5cd922,_0x2b050d);}},_0x81e3d={};_0x81e3d['lazyEntries']=!![],yauzl[_0x2e5287(0x12b)](_0x524948,_0x81e3d,function(_0x438539,_0x520687){const _0x384f23=_0x2e5287,_0x5f0dd8={'DpFoA':function(_0x1c3dcf,_0x9d0cad){return _0x23224f['fUrJm'](_0x1c3dcf,_0x9d0cad);},'jPoBp':_0x23224f['UWrND'],'xZQQh':function(_0x506ffc,_0x3b6e6c){const _0x5486db=a58_0x3f0f;return _0x23224f[_0x5486db(0x16f)](_0x506ffc,_0x3b6e6c);},'MbbqU':_0x23224f[_0x384f23(0x16a)]};_0x438539&&_0x23224f[_0x384f23(0x16f)](_0x1484e1,_0x438539),_0x520687[_0x384f23(0x124)](),_0x520687['on'](_0x23224f[_0x384f23(0x178)],_0x5697ee=>{const _0xaee9dc=_0x384f23;!_0x2a227e&&(_0x2a227e=_0x5697ee[_0xaee9dc(0x17d)]);if(/\/$/[_0xaee9dc(0x10c)](_0x5697ee[_0xaee9dc(0x17d)]))_0x520687[_0xaee9dc(0x124)]();else{const _0x141a20=fs[_0xaee9dc(0x126)](path[_0xaee9dc(0xd7)](_0x3c7428,_0x5697ee[_0xaee9dc(0x17d)]));_0x520687[_0xaee9dc(0xe6)](_0x5697ee,function(_0x5caa71,_0x1c2925){const _0x23d176=_0xaee9dc;_0x5caa71&&_0x5f0dd8['DpFoA'](_0x1484e1,_0x438539),_0x1c2925['on'](_0x5f0dd8[_0x23d176(0x162)],function(){const _0x3859a8=_0x23d176;_0x141a20['close'](),_0x520687[_0x3859a8(0x124)]();}),_0x1c2925['pipe'](_0x141a20);}),_0x30f26e[_0xaee9dc(0x17a)](_0x5697ee[_0xaee9dc(0x17d)],_0x2a227e)&&_0x520687['close']();}}),_0x520687['on'](_0x23224f[_0x384f23(0x13a)],_0x2a3ab3=>{const _0x56d86f=_0x384f23;_0x30f26e[_0x56d86f(0x10d)](_0x1484e1,_0x2a3ab3);}),_0x520687[_0x384f23(0x158)](_0x23224f[_0x384f23(0x142)],()=>{const _0x19198d=_0x384f23,_0x5bacaa={'wdLVH':function(_0x54de21,_0x279a2e){return _0x5f0dd8['xZQQh'](_0x54de21,_0x279a2e);}};fs[_0x19198d(0xcd)](_0x524948,_0x176e14=>{const _0x5112ff=_0x19198d;_0x176e14&&logger[_0x5112ff(0x100)](_0x5112ff(0x151)+_0x524948);}),fs[_0x19198d(0x152)](_0x3c7428+'/'+_0x2a227e,_0x5f0dd8[_0x19198d(0x16c)],function(_0x424024){const _0x1f552f=_0x19198d;_0x424024&&_0x5bacaa[_0x1f552f(0x14a)](_0x1484e1,_0x424024),_0x5bacaa[_0x1f552f(0x14a)](_0x17f298,_0x3c7428+'/'+_0x2a227e);}),_0x520687[_0x19198d(0x135)]();});});});}static[a58_0x192d3a(0xeb)](){const _0x1b9bdc=a58_0x192d3a;if(process[_0x1b9bdc(0x127)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON[_0x1b9bdc(0xe5)](process[_0x1b9bdc(0x127)][_0x1b9bdc(0xe1)]);return this[_0x1b9bdc(0x174)];}static[a58_0x192d3a(0x107)](){const _0x23dc84=a58_0x192d3a;if(process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x23dc84(0xe5)](process['env'][_0x23dc84(0xd6)]);return this[_0x23dc84(0xd2)];}static['setFrameworkDetail'](_0x3e22de,_0x20cdf2){const _0x1703f7=a58_0x192d3a,_0x54017a={'ACBMj':'1|3|4|0|2','oFTWc':function(_0x2b4b87,_0x4b2c7e){return _0x2b4b87||_0x4b2c7e;},'exNFb':function(_0x4cc830,_0x17fd45){return _0x4cc830(_0x17fd45);},'qYtfJ':function(_0x5269ac,_0x31f894){return _0x5269ac(_0x31f894);}},_0x74071c=_0x54017a[_0x1703f7(0xfb)][_0x1703f7(0xdd)]('|');let _0x4d17ae=0x0;while(!![]){switch(_0x74071c[_0x4d17ae++]){case'0':process[_0x1703f7(0x127)][_0x1703f7(0xd6)]=JSON[_0x1703f7(0x171)](this[_0x1703f7(0xd2)]);continue;case'1':_0x54017a[_0x1703f7(0xe9)](!_0x3e22de,!_0x20cdf2)&&logger[_0x1703f7(0x163)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x3e22de+_0x1703f7(0x132)+_0x20cdf2);continue;case'2':process['env'][_0x1703f7(0xe1)]=JSON[_0x1703f7(0x171)](this['testFrameworkDetail']);continue;case'3':this[_0x1703f7(0x174)]={'name':_0x3e22de,'version':{[_0x3e22de]:_0x54017a[_0x1703f7(0x123)](getFrameworkVersion,_0x3e22de)}};continue;case'4':this['automationFrameworkDetail']={'name':_0x20cdf2,'version':_0x54017a['qYtfJ'](getFrameworkVersion,_0x20cdf2)};continue;}break;}}static[a58_0x192d3a(0x101)](_0x448072,_0x13f927){return _0x448072+':'+_0x13f927;}static[a58_0x192d3a(0x128)](){const _0x1f59d3=a58_0x192d3a;return process[_0x1f59d3(0x170)]+':'+threadId;}static['shouldSkipSessionName'](_0x4210e8){const _0x1e7f46=a58_0x192d3a;if(_0x4210e8[_0x1e7f46(0xec)]&&_0x4210e8[_0x1e7f46(0xec)]['skipSessionName'])return!![];return![];}static[a58_0x192d3a(0x144)](_0x19d655){const _0x2420c7=a58_0x192d3a;if(_0x19d655[_0x2420c7(0xec)]&&_0x19d655[_0x2420c7(0xec)]['skipSessionStatus'])return!![];return![];}static[a58_0x192d3a(0x180)](_0x2afcf1){const _0x1e55cf=a58_0x192d3a,_0x3eb617=new RegExp(TestFrameworkConstants[_0x1e55cf(0x166)]);return _0x3eb617[_0x1e55cf(0x10c)](_0x2afcf1);}}module[a58_0x192d3a(0xd5)]=CLIUtils;
|
|
1
|
+
const a58_0x5cf4d3=a58_0x6c55;function a58_0x39cc(){const _0x5607fa=['../../helpers/test-observability/utils.js','getCliDir','basename','QUSpv','./state/hookState.js','open','112552MgPNWs','BROWSERSTACK_BINARY_URL','\x20already\x20exists','path','4|0|1|2|3','requestToUpdateCLI','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','end','binary-','Ybewz','Configuring\x20Cli\x20path.','../../helpers/classLogger.js','automationFrameworkDetail','pipe','gjvoy','HOOK_REGEX','close','DIopo','euNCH','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','0755','EXDys','split','ycuSw','url','../../../package.json','once','util','getSdkLanguage','WTkYN','SHELL_EXECUTE_ERROR','pid','worker_threads','format','382713QvzyQR','getExistingCliPath','llGwe','./state/testFrameworkState.js','Downloading\x20SDK\x20binary\x20from:\x20','response\x20','existsSync','mtime','QoEGC','OIAEG','4338lDNwqX','filter','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response\x20%s','Current\x20CLI\x20Path\x20Found:\x20','XDcia','oQYRG','exports','fileName','.sock','testFrameworkDetail','431645oRAFxX','pvroI','Development\x20Cli\x20Path:\x20','createWriteStream','hwjZG','getCurrentInstanceName','gKGMH','lazyEntries','iXPAC','Resolved\x20binary\x20path:\x20','homedir','getWritableDir','info','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','../../helpers/performance/performance-tester.js','follow-redirects','TFlyd','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','isFile','FevuW','SDK_CLI_CHECK_UPDATE','UKZQO','Folder\x20','WizRA','parse','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file\x20%s','openReadStream','shouldSkipSessionName','arch','McEFZ','length','KZNVs','qMknN','reduce','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','downloaded_file.zip','pFrGY','GzKlW','pDGBN','BhVqQ','jvHXm','Failed\x20to\x20delete\x20zip\x20file:\x20','checkAndUpdateCli','version','skipSessionStatus','../../helpers/performance/constants','test','eEfsa','getCLIParamsForDevEnv','error','timeout','evwRO','node','startsWith','chmod','getSdkVersion','warn','start','setupCliPath','PmuxY','./instances/testFrameworkInstance.js','yauzl','GQfDy','eeiKT','matchHookRegex','VJbEw','FvuPL','isDevelopmentEnv','GtoGM','Setting\x20required\x20permissions\x20to\x20','Xzgvu','development','get','SDK_CLI_BIN_PATH','../../helpers/helper','readEntry','MKjYs','unlink','mbidH','xFubn','161591vxtshK','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','getAutomationFrameworkDetail','SJZob','env','BROWSERSTACK_CLI_ENV',',\x20automationFramework=','1170216FmWwRN','cli_version','trim','SDK_CLI_DOWNLOAD','platform','statSync','runShellCommand','420qcZvPM','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','data','KGUTO','testContextOptions','Folder\x20does\x20not\x20exist:\x20','listen','./state/automationFrameworkState.js','./framework/constants/testFrameworkConstants.js','362458yAmoxr','debug','downloadFileStream','setFrameworkDetail','TqEul','stringify','fmLIJ','AeDvG','join','OJTBx','GET','map','skipSessionName'];a58_0x39cc=function(){return _0x5607fa;};return a58_0x39cc();}(function(_0x345c9b,_0x25e1fe){const _0xec42ab=a58_0x6c55,_0x54f3f8=_0x345c9b();while(!![]){try{const _0x1bad80=-parseInt(_0xec42ab(0xaa))/0x1+parseInt(_0xec42ab(0xc1))/0x2+-parseInt(_0xec42ab(0xf6))/0x3+parseInt(_0xec42ab(0xd4))/0x4+parseInt(_0xec42ab(0x10a))/0x5+parseInt(_0xec42ab(0x100))/0x6*(-parseInt(_0xec42ab(0xb8))/0x7)+parseInt(_0xec42ab(0xb1))/0x8;if(_0x1bad80===_0x25e1fe)break;else _0x54f3f8['push'](_0x54f3f8['shift']());}catch(_0x737bef){_0x54f3f8['push'](_0x54f3f8['shift']());}}}(a58_0x39cc,0x1ab77));function a58_0x6c55(_0x23540e,_0x4b7b89){const _0x39cc2b=a58_0x39cc();return a58_0x6c55=function(_0x6c55ec,_0x3746e0){_0x6c55ec=_0x6c55ec-0x6b;let _0xdd0286=_0x39cc2b[_0x6c55ec];return _0xdd0286;},a58_0x6c55(_0x23540e,_0x4b7b89);}const fs=require('fs'),os=require('os'),url=require('url'),path=require(a58_0x5cf4d3(0xd7)),{exec}=require('child_process'),{https}=require(a58_0x5cf4d3(0x119)),yauzl=require(a58_0x5cf4d3(0x97)),util=require(a58_0x5cf4d3(0xef)),{getFrameworkVersion}=require(a58_0x5cf4d3(0xce)),{threadId}=require(a58_0x5cf4d3(0xf4)),PerformanceTester=require(a58_0x5cf4d3(0x118)),{EVENTS:PerformanceEvents}=require(a58_0x5cf4d3(0x87)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a58_0x5cf4d3(0xa4)),{BROWSERSTACK_API_URL,UPDATED_CLI_ENDPOINT}=require('../utils/constants'),{createClassLogger}=require(a58_0x5cf4d3(0xdf)),TestFrameworkInstance=require(a58_0x5cf4d3(0x96)),HookState=require(a58_0x5cf4d3(0xd2)),TestFrameworkState=require(a58_0x5cf4d3(0xf9)),AutomationFrameworkState=require(a58_0x5cf4d3(0xbf)),TestFrameworkConstants=require(a58_0x5cf4d3(0xc0)),logger=createClassLogger('CLIUtils');class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static[a58_0x5cf4d3(0x9d)](){const _0x267afd=a58_0x5cf4d3,_0x5ed961={};_0x5ed961[_0x267afd(0x9b)]=function(_0x5598a3,_0xc6ca6a){return _0x5598a3===_0xc6ca6a;},_0x5ed961[_0x267afd(0x10b)]=_0x267afd(0xa1);const _0x3ed417=_0x5ed961;return _0x3ed417[_0x267afd(0x9b)](process[_0x267afd(0xae)]['BROWSERSTACK_CLI_ENV'],_0x3ed417[_0x267afd(0x10b)]);}static[a58_0x5cf4d3(0x8a)](){const _0x269b77=a58_0x5cf4d3,_0x42f6b4={};return _0x42f6b4['id']=process[_0x269b77(0xae)]['BROWSERSTACK_CLI_ENV'],_0x42f6b4[_0x269b77(0xbe)]='unix:/tmp/sdk-platform-'+process['env'][_0x269b77(0xaf)]+_0x269b77(0x108),_0x42f6b4;}static[a58_0x5cf4d3(0x91)](){const _0x435a17=a58_0x5cf4d3,_0x27419b={'MKjYs':function(_0x3f5c36,_0xba267f){return _0x3f5c36(_0xba267f);},'OIAEG':_0x435a17(0xed)};return _0x27419b[_0x435a17(0xa6)](require,_0x27419b[_0x435a17(0xff)])[_0x435a17(0x85)];}static['getSdkLanguage'](){const _0x301393=a58_0x5cf4d3,_0x1e4dda={};_0x1e4dda['TtWqW']=_0x301393(0x8e);const _0x1ca360=_0x1e4dda;return _0x1ca360['TtWqW'];}static async[a58_0x5cf4d3(0x94)](_0x8db1d2){const _0x9cab30=a58_0x5cf4d3,_0x24605d={'mbidH':_0x9cab30(0xde),'hiDCI':function(_0x39d6ae,_0x487721){return _0x39d6ae(_0x487721);},'XDcia':_0x9cab30(0xab)};logger[_0x9cab30(0xc2)](_0x24605d[_0x9cab30(0xa8)]);const _0x19f143=process[_0x9cab30(0xae)][_0x9cab30(0xa3)];if(!_0x24605d['hiDCI'](isNullOrEmpty,_0x19f143))return logger[_0x9cab30(0xc2)](_0x9cab30(0x10c)+_0x19f143),_0x19f143;try{const _0xb8f300=this[_0x9cab30(0xcf)]();if(_0x24605d['hiDCI'](isNullOrEmpty,_0xb8f300))throw new Error(_0x24605d[_0x9cab30(0x104)]);const _0x490d12=this[_0x9cab30(0xf7)](_0xb8f300),_0x4f6fb8=await this[_0x9cab30(0x84)](_0x490d12,_0xb8f300,_0x8db1d2);return logger[_0x9cab30(0xc2)](_0x9cab30(0x113)+_0x4f6fb8),_0x4f6fb8;}catch(_0x1b784d){logger[_0x9cab30(0xc2)](_0x9cab30(0xb9)+util['format'](_0x1b784d));}return null;}static async['checkAndUpdateCli'](_0x207227,_0x437e48,_0x410c48){const _0x50960b=a58_0x5cf4d3,_0x267443={'euNCH':function(_0x316b30){return _0x316b30();},'WTkYN':function(_0x4610d1,_0x5e6723){return _0x4610d1(_0x5e6723);},'pFrGY':function(_0x3017b8,_0x1ce1fc,_0x384b75){return _0x3017b8(_0x1ce1fc,_0x384b75);},'SJZob':_0x50960b(0xba),'QoEGC':_0x50960b(0xec)};PerformanceTester[_0x50960b(0x93)](PerformanceEvents[_0x50960b(0x6e)]),logger[_0x50960b(0x116)](_0x50960b(0x103)+_0x207227);const _0x7219f2=_0x267443[_0x50960b(0xe6)](getHostInfo),_0x48d1cd={'sdk_version':CLIUtils[_0x50960b(0x91)](),'os':_0x7219f2[_0x50960b(0xb5)],'os_arch':_0x7219f2[_0x50960b(0x76)],'cli_version':'0','sdk_language':this[_0x50960b(0xf0)]()};!_0x267443[_0x50960b(0xf1)](isNullOrEmpty,_0x207227)&&(_0x48d1cd[_0x50960b(0xb2)]=await this[_0x50960b(0xb7)](_0x207227+'\x20version'));const _0x46510d=await this[_0x50960b(0xd9)](_0x48d1cd,_0x410c48);process[_0x50960b(0xae)][_0x50960b(0xd5)]&&(logger[_0x50960b(0x116)](_0x50960b(0xe7)+process['env'][_0x50960b(0xd5)]),_0x46510d[_0x50960b(0xba)][_0x50960b(0xec)]=process[_0x50960b(0xae)][_0x50960b(0xd5)]);if(_0x267443[_0x50960b(0x7e)](nestedKeyValue,_0x46510d,[_0x267443[_0x50960b(0xad)],_0x267443['QoEGC']])){logger[_0x50960b(0xc2)]('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x48d1cd[_0x50960b(0xb2)]);const _0x414c59=await this['downloadLatestBinary'](_0x267443['pFrGY'](nestedKeyValue,_0x46510d,[_0x267443[_0x50960b(0xad)],_0x267443[_0x50960b(0xfe)]]),_0x437e48);return PerformanceTester[_0x50960b(0xdb)](PerformanceEvents[_0x50960b(0x6e)]),_0x414c59;}return PerformanceTester[_0x50960b(0xdb)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x207227;}static[a58_0x5cf4d3(0xcf)](){const _0x5a5ce4=a58_0x5cf4d3,_0x409588={'ycuSw':function(_0x14033e,_0x319756){return _0x14033e(_0x319756);},'UPLDl':_0x5a5ce4(0xab),'TqEul':'cli','QUSpv':function(_0x263258,_0xe0348d){return _0x263258(_0xe0348d);}},_0xf8385e=this[_0x5a5ce4(0x115)]();try{if(_0x409588[_0x5a5ce4(0xeb)](isNullOrEmpty,_0xf8385e))throw new Error(_0x409588['UPLDl']);const _0x331181=path[_0x5a5ce4(0xc9)](_0xf8385e,_0x409588[_0x5a5ce4(0xc5)]);return!fs[_0x5a5ce4(0xfc)](_0x331181)&&_0x409588[_0x5a5ce4(0xd1)](createDir,_0x331181),_0x331181;}catch(_0xf99733){logger[_0x5a5ce4(0xc2)]('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util[_0x5a5ce4(0xf5)](_0xf99733));}}static['getWritableDir'](){const _0x281a40=a58_0x5cf4d3,_0x92dcf2={'TFlyd':'.browserstack','eeiKT':'tmp','McEFZ':function(_0x5ae1b2,_0x31910a){return _0x5ae1b2(_0x31910a);}},_0x13a8d3=[process[_0x281a40(0xae)]['BROWSERSTACK_FILES_DIR'],path[_0x281a40(0xc9)](os[_0x281a40(0x114)](),_0x92dcf2[_0x281a40(0x11a)]),path[_0x281a40(0xc9)](_0x92dcf2[_0x281a40(0x99)],_0x92dcf2[_0x281a40(0x11a)])];for(const _0x24de0b of _0x13a8d3){if(_0x92dcf2[_0x281a40(0x77)](isNullOrEmpty,_0x24de0b))continue;try{if(fs[_0x281a40(0xfc)](_0x24de0b)){logger[_0x281a40(0xc2)](_0x281a40(0x70)+_0x24de0b+_0x281a40(0xd6));if(!_0x92dcf2[_0x281a40(0x77)](isModifiable,_0x24de0b)){logger[_0x281a40(0xc2)](_0x281a40(0x9f)+_0x24de0b);const _0x1d5e07=_0x92dcf2[_0x281a40(0x77)](setReadWriteExecuteAccess,_0x24de0b);!_0x92dcf2[_0x281a40(0x77)](isTrue,_0x1d5e07)&&logger[_0x281a40(0x92)](_0x281a40(0x6b)+_0x24de0b);}}else{logger['debug'](_0x281a40(0xbd)+_0x24de0b),_0x92dcf2[_0x281a40(0x77)](createDir,_0x24de0b),logger[_0x281a40(0xc2)](_0x281a40(0x9f)+_0x24de0b);const _0x468001=_0x92dcf2['McEFZ'](setReadWriteExecuteAccess,_0x24de0b);!_0x92dcf2[_0x281a40(0x77)](isTrue,_0x468001)&&logger[_0x281a40(0x92)](_0x281a40(0x6b)+_0x24de0b);}return _0x24de0b;}catch(_0x2e5169){logger[_0x281a40(0x8b)](_0x281a40(0x7c)+util['format'](_0x2e5169));}}return null;}static[a58_0x5cf4d3(0xf7)](_0x41514c){const _0x5e5cde=a58_0x5cf4d3,_0x26ed3c={};_0x26ed3c[_0x5e5cde(0xa0)]=function(_0x3a7d22,_0x471901){return _0x3a7d22>_0x471901;};const _0x7a7c38=_0x26ed3c;try{if(!fs[_0x5e5cde(0xfc)](_0x41514c)||!fs[_0x5e5cde(0xb6)](_0x41514c)['isDirectory']())return'';const _0x379a01=fs['readdirSync'](_0x41514c)[_0x5e5cde(0xcc)](_0x15a2a4=>path['join'](_0x41514c,_0x15a2a4))[_0x5e5cde(0x101)](_0x59f0f3=>fs[_0x5e5cde(0xb6)](_0x59f0f3)[_0x5e5cde(0x6c)]()&&path[_0x5e5cde(0xd0)](_0x59f0f3)[_0x5e5cde(0x8f)](_0x5e5cde(0xdc)));if(_0x7a7c38[_0x5e5cde(0xa0)](_0x379a01[_0x5e5cde(0x78)],0x0)){const _0x579d32=_0x379a01[_0x5e5cde(0xcc)](_0x30416b=>({'filePath':_0x30416b,'mtime':fs[_0x5e5cde(0xb6)](_0x30416b)['mtime']}))[_0x5e5cde(0x7b)]((_0x231f18,_0x479317)=>{const _0x371382=_0x5e5cde;if(!_0x231f18||!_0x231f18[_0x371382(0xfd)])return _0x479317;if(_0x7a7c38['Xzgvu'](_0x479317[_0x371382(0xfd)],_0x231f18[_0x371382(0xfd)]))return _0x479317;return _0x231f18;},{});return _0x579d32?_0x579d32['filePath']:'';}return'';}catch(_0xe511bb){return logger[_0x5e5cde(0x8b)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x5e5cde(0xf5)](_0xe511bb)),'';}}static [a58_0x5cf4d3(0xd9)]=async(_0x51abef,_0x29f5ab)=>{const _0x12849f=a58_0x5cf4d3,_0x8ac7c4={'QJvei':function(_0x53cf87,_0x1413c3,_0x377473,_0x587825,_0x4d2f6c,_0x205b46){return _0x53cf87(_0x1413c3,_0x377473,_0x587825,_0x4d2f6c,_0x205b46);},'IjqOB':_0x12849f(0xcb)},_0x51bd82={};_0x51bd82['qs']=_0x51abef;const _0x5bf187=await _0x8ac7c4['QJvei'](nodeRequest,_0x8ac7c4['IjqOB'],UPDATED_CLI_ENDPOINT,_0x51bd82,_0x29f5ab,BROWSERSTACK_API_URL);return logger[_0x12849f(0xc2)](_0x12849f(0xfb)+JSON[_0x12849f(0xc6)](_0x5bf187)),_0x5bf187;};static['runShellCommand'](_0x50189f,_0x48adf9=''){const _0x2fa82c=a58_0x5cf4d3,_0x566110={'PmuxY':function(_0x5cfd17,_0x4808ff){return _0x5cfd17(_0x4808ff);},'WizRA':_0x2fa82c(0xf2),'AtmYe':function(_0x2fa564,_0x450a0e,_0x1bf453,_0x96ee84){return _0x2fa564(_0x450a0e,_0x1bf453,_0x96ee84);},'Dvlkm':_0x2fa82c(0x8b)};return new Promise((_0x55ab38,_0x413fcd)=>{const _0x1c5a16=_0x2fa82c,_0x6e0304={};_0x6e0304['cwd']=_0x48adf9,_0x6e0304[_0x1c5a16(0x8c)]=0x1388;const _0x2a550c=_0x566110['AtmYe'](exec,_0x50189f,_0x6e0304,(_0x14b7c7,_0x5a277a,_0x4f9123)=>{const _0x48aa56=_0x1c5a16;_0x14b7c7?_0x566110[_0x48aa56(0x95)](_0x55ab38,_0x4f9123[_0x48aa56(0xb3)]()||_0x566110[_0x48aa56(0x71)]):_0x566110[_0x48aa56(0x95)](_0x55ab38,_0x5a277a[_0x48aa56(0xb3)]());});_0x2a550c['on'](_0x566110['Dvlkm'],()=>{const _0x2288d7=_0x1c5a16;_0x566110['PmuxY'](_0x55ab38,_0x566110[_0x2288d7(0x71)]);});});}static ['downloadLatestBinary']=async(_0x39a8dc,_0x51899a)=>{const _0x17d1fb=a58_0x5cf4d3,_0x4bee1c={'EXDys':_0x17d1fb(0x102),'evwRO':function(_0xffd7cd,_0x43ad8a){return _0xffd7cd(_0x43ad8a);},'BhVqQ':_0x17d1fb(0x73),'eEfsa':_0x17d1fb(0x8b),'OtOGQ':_0x17d1fb(0x7d)};PerformanceTester[_0x17d1fb(0x93)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x17d1fb(0xc2)](_0x17d1fb(0xfa)+_0x39a8dc);try{const _0x376494=url[_0x17d1fb(0x72)](_0x39a8dc),_0x1ddfbe=path[_0x17d1fb(0xc9)](_0x51899a,_0x4bee1c['OtOGQ']),_0xbc0f=fs[_0x17d1fb(0x10d)](_0x1ddfbe);return new Promise((_0x3c939e,_0x407475)=>{const _0x1419b8=_0x17d1fb,_0x2cf23b={'KGUTO':_0x4bee1c[_0x1419b8(0xe9)],'Ybewz':function(_0x38a5d5,_0x222784){return _0x4bee1c['evwRO'](_0x38a5d5,_0x222784);},'jvHXm':_0x4bee1c[_0x1419b8(0x81)],'GtoGM':function(_0x24a150,_0x578ce3){const _0x1ea9e3=_0x1419b8;return _0x4bee1c[_0x1ea9e3(0x8d)](_0x24a150,_0x578ce3);},'iXPAC':_0x4bee1c['eEfsa'],'yaosY':function(_0x2eefbb,_0x35f65f){const _0xd53666=_0x1419b8;return _0x4bee1c[_0xd53666(0x8d)](_0x2eefbb,_0x35f65f);}};https[_0x1419b8(0xa2)](_0x376494,function(_0x229b2c){const _0x2beb43=_0x1419b8,_0x133e9b=null;_0x229b2c[_0x2beb43(0xe1)](_0xbc0f),_0x229b2c['on'](_0x2cf23b[_0x2beb43(0x112)],function(_0x3e7b92){const _0x109cd8=_0x2beb43;logger['error'](util['format'](_0x2cf23b[_0x109cd8(0xbb)],_0x3e7b92)),PerformanceTester['end'](PerformanceEvents[_0x109cd8(0xb4)],![],util[_0x109cd8(0xf5)](_0x3e7b92)),_0x2cf23b[_0x109cd8(0xdd)](_0x407475,_0x3e7b92);}),_0xbc0f['on'](_0x2cf23b[_0x2beb43(0x112)],function(_0x4e769c){const _0x17f464=_0x2beb43;logger[_0x17f464(0x8b)](util[_0x17f464(0xf5)](_0x2cf23b[_0x17f464(0x82)],_0x4e769c)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x17f464(0xf5)](_0x4e769c)),_0x2cf23b[_0x17f464(0x9e)](_0x407475,_0x4e769c);}),CLIUtils[_0x2beb43(0xc3)](_0xbc0f,_0x133e9b,_0x1ddfbe,_0x51899a,_0x3c939e,_0x407475),PerformanceTester[_0x2beb43(0xdb)](PerformanceEvents['SDK_CLI_DOWNLOAD']);})['on'](_0x4bee1c[_0x1419b8(0x89)],function(_0x224830){const _0x35b5b6=_0x1419b8;logger[_0x35b5b6(0x8b)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request\x20'+util[_0x35b5b6(0xf5)](_0x224830)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x35b5b6(0xf5)](_0x224830)),_0x2cf23b['yaosY'](_0x407475,_0x224830);});});}catch(_0x4ba1d1){PerformanceTester['end'](PerformanceEvents[_0x17d1fb(0xb4)],![],util[_0x17d1fb(0xf5)](_0x4ba1d1)),logger[_0x17d1fb(0xc2)]('Failed\x20to\x20download\x20binary,\x20Exception:\x20'+util[_0x17d1fb(0xf5)](_0x4ba1d1));}};static['downloadFileStream'](_0x493042,_0x5a2a31,_0x49e49b,_0xfbb398,_0x3942c6,_0x21f4af){const _0x4a9c19=a58_0x5cf4d3,_0x4936ac={'GzKlW':function(_0x10cba1,_0x32eb49){return _0x10cba1(_0x32eb49);},'pDGBN':_0x4a9c19(0xe8),'gjvoy':function(_0xc8384a,_0x11dbdb){return _0xc8384a(_0x11dbdb);},'gtZsd':_0x4a9c19(0xdb),'DmZpS':function(_0x199074,_0x264283){return _0x199074===_0x264283;},'llGwe':'entry','OcddA':_0x4a9c19(0x8b),'DIopo':_0x4a9c19(0xe4)};_0x493042['on'](_0x4936ac[_0x4a9c19(0xe5)],function(){const _0x5d8d5f=_0x4a9c19,_0x129708={'hwjZG':function(_0x5f1a34,_0x59e490){const _0x2ca14a=a58_0x6c55;return _0x4936ac[_0x2ca14a(0x7f)](_0x5f1a34,_0x59e490);},'OJTBx':function(_0x289cd0,_0x2f68ba){return _0x4936ac['GzKlW'](_0x289cd0,_0x2f68ba);},'KZNVs':_0x4936ac[_0x5d8d5f(0x80)],'oQYRG':function(_0x8bb3fb,_0x532a24){const _0x13b141=_0x5d8d5f;return _0x4936ac[_0x13b141(0xe2)](_0x8bb3fb,_0x532a24);},'UKZQO':_0x4936ac['gtZsd'],'VQmci':function(_0xd95e6b,_0xdfd482){return _0x4936ac['DmZpS'](_0xd95e6b,_0xdfd482);},'FvuPL':_0x4936ac[_0x5d8d5f(0xf8)],'fmLIJ':_0x4936ac['OcddA']},_0x2c6a34={};_0x2c6a34[_0x5d8d5f(0x111)]=!![],yauzl[_0x5d8d5f(0xd3)](_0x49e49b,_0x2c6a34,function(_0x313b32,_0xc5e101){const _0x232c5c=_0x5d8d5f,_0x57555d={'qMknN':function(_0x58a0cc,_0x47b858){return _0x129708['oQYRG'](_0x58a0cc,_0x47b858);},'wrXQR':_0x129708[_0x232c5c(0x6f)],'xFubn':function(_0x31940c,_0x5090b3){return _0x129708['VQmci'](_0x31940c,_0x5090b3);}};_0x313b32&&_0x129708[_0x232c5c(0x105)](_0x21f4af,_0x313b32),_0xc5e101[_0x232c5c(0xa5)](),_0xc5e101['on'](_0x129708[_0x232c5c(0x9c)],_0x3a03bd=>{const _0x2155c2=_0x232c5c;!_0x5a2a31&&(_0x5a2a31=_0x3a03bd[_0x2155c2(0x107)]);if(/\/$/['test'](_0x3a03bd[_0x2155c2(0x107)]))_0xc5e101[_0x2155c2(0xa5)]();else{const _0x32c388=fs[_0x2155c2(0x10d)](path[_0x2155c2(0xc9)](_0xfbb398,_0x3a03bd[_0x2155c2(0x107)]));_0xc5e101[_0x2155c2(0x74)](_0x3a03bd,function(_0x251229,_0x41b851){const _0x1d99cb=_0x2155c2;_0x251229&&_0x57555d[_0x1d99cb(0x7a)](_0x21f4af,_0x313b32),_0x41b851['on'](_0x57555d['wrXQR'],function(){const _0x160a7f=_0x1d99cb;_0x32c388[_0x160a7f(0xe4)](),_0xc5e101[_0x160a7f(0xa5)]();}),_0x41b851['pipe'](_0x32c388);}),_0x57555d[_0x2155c2(0xa9)](_0x3a03bd[_0x2155c2(0x107)],_0x5a2a31)&&_0xc5e101[_0x2155c2(0xe4)]();}}),_0xc5e101['on'](_0x129708[_0x232c5c(0xc7)],_0x17504c=>{const _0x295dd4=_0x232c5c;_0x57555d[_0x295dd4(0x7a)](_0x21f4af,_0x17504c);}),_0xc5e101[_0x232c5c(0xee)](_0x129708[_0x232c5c(0x6f)],()=>{const _0x3442e9=_0x232c5c,_0x467fdb={'FevuW':function(_0x5b6405,_0x2e6be7){const _0x215b1f=a58_0x6c55;return _0x129708[_0x215b1f(0x10e)](_0x5b6405,_0x2e6be7);},'pcvRR':function(_0x4e2d6c,_0x2c7999){const _0x591aac=a58_0x6c55;return _0x129708[_0x591aac(0xca)](_0x4e2d6c,_0x2c7999);}};fs[_0x3442e9(0xa7)](_0x49e49b,_0x310038=>{const _0x3783d1=_0x3442e9;_0x310038&&logger[_0x3783d1(0x92)](_0x3783d1(0x83)+_0x49e49b);}),fs[_0x3442e9(0x90)](_0xfbb398+'/'+_0x5a2a31,_0x129708[_0x3442e9(0x79)],function(_0x2b1aef){const _0x5807bd=_0x3442e9;_0x2b1aef&&_0x467fdb[_0x5807bd(0x6d)](_0x21f4af,_0x2b1aef),_0x467fdb['pcvRR'](_0x3942c6,_0xfbb398+'/'+_0x5a2a31);}),_0xc5e101[_0x3442e9(0xe4)]();});});});}static['getTestFrameworkDetail'](){const _0x1c35f0=a58_0x5cf4d3;if(process[_0x1c35f0(0xae)][_0x1c35f0(0x117)])return JSON[_0x1c35f0(0x72)](process['env'][_0x1c35f0(0x117)]);return this[_0x1c35f0(0x109)];}static[a58_0x5cf4d3(0xac)](){const _0x556060=a58_0x5cf4d3;if(process[_0x556060(0xae)][_0x556060(0xda)])return JSON[_0x556060(0x72)](process[_0x556060(0xae)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x556060(0xe0)];}static[a58_0x5cf4d3(0xc4)](_0x2dd94c,_0x40534d){const _0x3033ff=a58_0x5cf4d3,_0x29d8f5={'GQfDy':_0x3033ff(0xd8),'gKGMH':function(_0x3d89ba,_0x13839c){return _0x3d89ba(_0x13839c);},'gbwdh':function(_0x40bee3,_0x444fcf){return _0x40bee3(_0x444fcf);},'AeDvG':function(_0x2ead59,_0x566af4){return _0x2ead59||_0x566af4;}},_0x35ccbe=_0x29d8f5[_0x3033ff(0x98)][_0x3033ff(0xea)]('|');let _0x50618d=0x0;while(!![]){switch(_0x35ccbe[_0x50618d++]){case'0':this[_0x3033ff(0x109)]={'name':_0x2dd94c,'version':{[_0x2dd94c]:_0x29d8f5[_0x3033ff(0x110)](getFrameworkVersion,_0x2dd94c)}};continue;case'1':this[_0x3033ff(0xe0)]={'name':_0x40534d,'version':_0x29d8f5['gbwdh'](getFrameworkVersion,_0x40534d)};continue;case'2':process[_0x3033ff(0xae)][_0x3033ff(0xda)]=JSON[_0x3033ff(0xc6)](this['automationFrameworkDetail']);continue;case'3':process[_0x3033ff(0xae)][_0x3033ff(0x117)]=JSON[_0x3033ff(0xc6)](this['testFrameworkDetail']);continue;case'4':_0x29d8f5[_0x3033ff(0xc8)](!_0x2dd94c,!_0x40534d)&&logger['debug']('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x2dd94c+_0x3033ff(0xb0)+_0x40534d);continue;}break;}}static['getHookRegistryKey'](_0x159e0e,_0x46a410){return _0x159e0e+':'+_0x46a410;}static[a58_0x5cf4d3(0x10f)](){const _0x2fc4a2=a58_0x5cf4d3;return process[_0x2fc4a2(0xf3)]+':'+threadId;}static[a58_0x5cf4d3(0x75)](_0x4971a0){const _0x451414=a58_0x5cf4d3;if(_0x4971a0['testContextOptions']&&_0x4971a0['testContextOptions'][_0x451414(0xcd)])return!![];return![];}static['shouldSkipSessionStatus'](_0x4c0da7){const _0x7869e5=a58_0x5cf4d3;if(_0x4c0da7[_0x7869e5(0xbc)]&&_0x4c0da7[_0x7869e5(0xbc)][_0x7869e5(0x86)])return!![];return![];}static[a58_0x5cf4d3(0x9a)](_0x3c2895){const _0x56db59=a58_0x5cf4d3,_0x24f43b=new RegExp(TestFrameworkConstants[_0x56db59(0xe3)]);return _0x24f43b[_0x56db59(0x88)](_0x3c2895);}}module[a58_0x5cf4d3(0x106)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a59_0x3bc2(){const _0x20a25a=['./framework/automationFramework','KEY_TEST_ID','getTestUUID','setCustomTags','./browserstackCLI','parseCommaSeparatedValues','290847DtCRxE','clearTags','KEY_CUSTOM_TAGS','XzOeH','testhubConfig','testLevelTags','setTestDetails','values','buildLevelTags','toObject','vwezA','getTrackedInstance','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','ikZKB','getState','ewxAg','modules','11282843YwIdtX','getInstance','string','./TestInfo','12qCBIOT','getTestDetails','8792kEcwVI','kwYFT','Custom\x20tag\x20key\x20cannot\x20be\x20empty','MODULE_NAME','255470AbuQec','../../helpers/helper','1029133nxpZSy','58SczICM','getBuildLevelTags','TvgCv','12FqOYul','buildHashedId','field_type','5432340HJbYlJ','sRzAp','exports','OLzAJ','getTestLevelTags','58167lNhkFL','40VTZCSc','Custom\x20tag\x20value\x20cannot\x20be\x20empty','zkkvw','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','./modules/playwrightDriverModule'];a59_0x3bc2=function(){return _0x20a25a;};return a59_0x3bc2();}const a59_0x130284=a59_0x3f72;(function(_0x16abf0,_0x55b7eb){const _0xdf5e4a=a59_0x3f72,_0x3509b8=_0x16abf0();while(!![]){try{const _0x49d208=parseInt(_0xdf5e4a(0x1ae))/0x1*(-parseInt(_0xdf5e4a(0x1b5))/0x2)+parseInt(_0xdf5e4a(0x1cc))/0x3*(parseInt(_0xdf5e4a(0x1b8))/0x4)+parseInt(_0xdf5e4a(0x1b2))/0x5+parseInt(_0xdf5e4a(0x1e1))/0x6*(-parseInt(_0xdf5e4a(0x1b4))/0x7)+parseInt(_0xdf5e4a(0x1c1))/0x8*(parseInt(_0xdf5e4a(0x1c0))/0x9)+-parseInt(_0xdf5e4a(0x1bb))/0xa+parseInt(_0xdf5e4a(0x1dd))/0xb;if(_0x49d208===_0x55b7eb)break;else _0x3509b8['push'](_0x3509b8['shift']());}catch(_0x2f7440){_0x3509b8['push'](_0x3509b8['shift']());}}}(a59_0x3bc2,0x4b211));const BrowserstackCLI=require(a59_0x130284(0x1ca)),helper=require(a59_0x130284(0x1b3)),AutomationFramework=require(a59_0x130284(0x1c6)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a59_0x130284(0x1c5)),TestInfo=require(a59_0x130284(0x1e0)),TestHubModule=require('./modules/testhubModule');class CustomTagManager{static [a59_0x130284(0x1d4)]={};static ['testLevelTags']={};static[a59_0x130284(0x1c9)](_0x27612a,_0x4c9974,_0x4da02a=![]){const _0x590d54=a59_0x130284,_0x2f3a25={};_0x2f3a25[_0x590d54(0x1bc)]=function(_0x138f23,_0x244375){return _0x138f23!==_0x244375;},_0x2f3a25['zkkvw']=_0x590d54(0x1df),_0x2f3a25[_0x590d54(0x1af)]=_0x590d54(0x1d8),_0x2f3a25[_0x590d54(0x1b7)]=_0x590d54(0x1c4),_0x2f3a25[_0x590d54(0x1be)]=function(_0x426834,_0x41ac92){return _0x426834===_0x41ac92;},_0x2f3a25[_0x590d54(0x1cf)]=_0x590d54(0x1b0),_0x2f3a25['vwezA']=function(_0x7dc6e,_0x57696f){return _0x7dc6e===_0x57696f;},_0x2f3a25[_0x590d54(0x1d9)]=_0x590d54(0x1c2),_0x2f3a25['ewxAg']='multi_dropdown';const _0x14bb00=_0x2f3a25;if(_0x14bb00[_0x590d54(0x1bc)](typeof _0x27612a,_0x14bb00[_0x590d54(0x1c3)]))throw new Error(_0x14bb00[_0x590d54(0x1af)]);if(_0x14bb00[_0x590d54(0x1bc)](typeof _0x4c9974,_0x14bb00[_0x590d54(0x1c3)]))throw new Error(_0x14bb00[_0x590d54(0x1b7)]);if(_0x14bb00[_0x590d54(0x1be)](_0x27612a['trim'](),''))throw new Error(_0x14bb00[_0x590d54(0x1cf)]);if(_0x14bb00[_0x590d54(0x1d6)](_0x4c9974['trim'](),''))throw new Error(_0x14bb00[_0x590d54(0x1d9)]);const _0x2c3da9=helper[_0x590d54(0x1cb)](_0x4c9974);if(_0x4da02a){const _0x133e36=BrowserstackCLI[_0x590d54(0x1de)]()[_0x590d54(0x1dc)][TestHubModule[_0x590d54(0x1b1)]];if(_0x133e36){const _0x2accfe=_0x133e36?.[_0x590d54(0x1d0)]?.[_0x590d54(0x1d5)]()?.[_0x590d54(0x1b9)];TestInfo[_0x590d54(0x1c8)](_0x2accfe);const _0x28d6eb=TestInfo['getTestDetails'](_0x2accfe),_0x11a114=_0x28d6eb[TestFrameworkConstants[_0x590d54(0x1ce)]]||{};if(!_0x11a114[_0x27612a]){const _0x24c535={};_0x24c535[_0x590d54(0x1ba)]=_0x14bb00[_0x590d54(0x1db)],_0x24c535['values']=[..._0x2c3da9],_0x11a114[_0x27612a]=_0x24c535;}else _0x11a114[_0x27612a][_0x590d54(0x1d3)]=[..._0x2c3da9];_0x28d6eb[TestFrameworkConstants[_0x590d54(0x1ce)]]=_0x11a114,TestInfo[_0x590d54(0x1d2)](_0x2accfe,_0x28d6eb),!this[_0x590d54(0x1d4)][_0x2accfe]&&(this[_0x590d54(0x1d4)][_0x2accfe]={}),this[_0x590d54(0x1d4)][_0x2accfe][_0x27612a]=[..._0x2c3da9];}}else{const _0x19b88=AutomationFramework[_0x590d54(0x1d7)](),_0x473241=AutomationFramework[_0x590d54(0x1da)](_0x19b88,PlaywrightDriverModule[_0x590d54(0x1c7)],''),_0x596342=TestInfo[_0x590d54(0x1e2)](_0x473241),_0x4dd1d2=_0x596342[TestFrameworkConstants[_0x590d54(0x1ce)]]||{};if(!_0x4dd1d2[_0x27612a]){const _0x27af21={};_0x27af21[_0x590d54(0x1ba)]=_0x14bb00['ewxAg'],_0x27af21['values']=[..._0x2c3da9],_0x4dd1d2[_0x27612a]=_0x27af21;}else _0x4dd1d2[_0x27612a][_0x590d54(0x1d3)]=[..._0x2c3da9];_0x596342[TestFrameworkConstants[_0x590d54(0x1ce)]]=_0x4dd1d2,TestInfo[_0x590d54(0x1d2)](_0x473241,_0x596342),!this[_0x590d54(0x1d1)][_0x473241]&&(this[_0x590d54(0x1d1)][_0x473241]={}),this[_0x590d54(0x1d1)][_0x473241][_0x27612a]=[..._0x2c3da9];}}static[a59_0x130284(0x1b6)](){const _0x36decc=a59_0x130284,_0x1fdcc2={...this[_0x36decc(0x1d4)]};return _0x1fdcc2;}static[a59_0x130284(0x1bf)](){const _0x14c8a9=a59_0x130284,_0x5c6cbb={...this[_0x14c8a9(0x1d1)]};return _0x5c6cbb;}static[a59_0x130284(0x1cd)](){const _0x18a2e3=a59_0x130284;this[_0x18a2e3(0x1d4)]={},this[_0x18a2e3(0x1d1)]={};}}function a59_0x3f72(_0x358082,_0x1c099a){const _0x3bc255=a59_0x3bc2();return a59_0x3f72=function(_0x3f723a,_0xb0343b){_0x3f723a=_0x3f723a-0x1ae;let _0x175f89=_0x3bc255[_0x3f723a];return _0x175f89;},a59_0x3f72(_0x358082,_0x1c099a);}module[a59_0x130284(0x1bd)]=CustomTagManager;
|