browserstack-node-sdk 1.54.2 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +3 -3
- 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.setup.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/newman/command.js +2 -0
- package/src/bin/newman/helper.js +1 -0
- package/src/bin/newman/reporter/index.js +1 -0
- package/src/bin/newman/scriptRunner.js +2 -0
- 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/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.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/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.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/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.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/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -0
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.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/loadTestModule.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/puppeteerDriverModule.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/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.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/accessibilityRetryHelper.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/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.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
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';function a40_0x482a(_0x39ecc7,_0x203f49){const _0x279eb4=a40_0x279e();return a40_0x482a=function(_0x482aad,_0x234ac0){_0x482aad=_0x482aad-0xb4;let _0x5c093d=_0x279eb4[_0x482aad];return _0x5c093d;},a40_0x482a(_0x39ecc7,_0x203f49);}const a40_0x13a5b9=a40_0x482a;(function(_0x4f0dc0,_0x1cd98a){const _0x4fd798=a40_0x482a,_0x17dbb8=_0x4f0dc0();while(!![]){try{const _0x15c0d8=-parseInt(_0x4fd798(0xc1))/0x1*(-parseInt(_0x4fd798(0xf3))/0x2)+-parseInt(_0x4fd798(0xf0))/0x3+parseInt(_0x4fd798(0xb6))/0x4*(parseInt(_0x4fd798(0xcf))/0x5)+parseInt(_0x4fd798(0xde))/0x6+parseInt(_0x4fd798(0xc9))/0x7+-parseInt(_0x4fd798(0xc2))/0x8*(parseInt(_0x4fd798(0xdb))/0x9)+-parseInt(_0x4fd798(0xc8))/0xa*(parseInt(_0x4fd798(0xe8))/0xb);if(_0x15c0d8===_0x1cd98a)break;else _0x17dbb8['push'](_0x17dbb8['shift']());}catch(_0x1eb33e){_0x17dbb8['push'](_0x17dbb8['shift']());}}}(a40_0x279e,0xab07b));const path=require(a40_0x13a5b9(0xc5)),Module=require(a40_0x13a5b9(0xf1)),BrowserstackCLI=require('../v2/browserstackCLI'),scriptFile=process['argv'][0x2],maxParallel=parseInt(process[a40_0x13a5b9(0xef)][0x3])||0x0;!scriptFile&&(process['stderr']['write'](a40_0x13a5b9(0xda)),process[a40_0x13a5b9(0xcc)](0x1));const reporterPath=path[a40_0x13a5b9(0xeb)](__dirname,'reporter',a40_0x13a5b9(0xd0)),originalResolveFilename=Module['_resolveFilename'];Module[a40_0x13a5b9(0xba)]=function(_0x2a8f40,_0x40dff8,_0x3852e2,_0x154430){const _0x28763b=a40_0x13a5b9,_0x28274d={};_0x28274d[_0x28763b(0xd7)]=function(_0x1fbc62,_0x47b71a){return _0x1fbc62===_0x47b71a;},_0x28274d[_0x28763b(0xcd)]='newman-reporter-browserstack';const _0x3f5f42=_0x28274d;if(_0x3f5f42['EFJQy'](_0x2a8f40,_0x3f5f42[_0x28763b(0xcd)]))return reporterPath;return originalResolveFilename[_0x28763b(0xc4)](this,_0x2a8f40,_0x40dff8,_0x3852e2,_0x154430);};function a40_0x279e(){const _0xdc928f=['VEwkM','17959KrTNiE','10014040howTfH','failures','call','path','string','lBnXF','3471740vCLZwr','4320988wCoEMl','assign','reporter','exit','dRQCN','wjPif','280940jsJshW','index.js','MSigT','RhbrR','collectionPath','message','pUgfX','Fkwdn','EFJQy','xhAhv','_load','[Newman]\x20scriptRunner:\x20no\x20script\x20file\x20provided\x0a','9VpfGtR','cli','dQeWL','6500442yrVxQn','concat','bind','resolve','error','jDHxx','oMkSZ','write','collection','buDjg','11RpxYtQ','XToas','[Newman]\x20scriptRunner:\x20failed\x20to\x20load\x20script:\x20','join','stderr','eoAZQ','browserstack','argv','2200674NyWoLE','module','length','42kYKEKo','getInstance','exitCode','68hbjYQg','reporters','xyIcm','newman','_resolveFilename','p-limit','oYJmM','SDYjS','run','indexOf'];a40_0x279e=function(){return _0xdc928f;};return a40_0x279e();}let limit;try{const pLimit=require(a40_0x13a5b9(0xbb)),concurrency=maxParallel&&maxParallel>0x0?maxParallel:Infinity;limit=pLimit(concurrency);}catch(a40_0xc028dc){limit=function(_0x14deed){const _0x53e74c=a40_0x13a5b9,_0x198523={'wjPif':function(_0x504146){return _0x504146();}};return _0x198523[_0x53e74c(0xce)](_0x14deed);};}let wrappedNewman=null,hasFailure=![];const originalLoad=Module[a40_0x13a5b9(0xd9)];Module[a40_0x13a5b9(0xd9)]=function(_0x29758d,_0xffa1e2,_0x2e2c6d){const _0x571d76=a40_0x13a5b9,_0x4b65ac={'VEwkM':function(_0x2330e6,_0x859470){return _0x2330e6>_0x859470;},'buDjg':function(_0x5f24ec,_0xf87e9d){return _0x5f24ec||_0xf87e9d;},'Fkwdn':function(_0x3430d2,_0x39c4c1,_0x493199){return _0x3430d2(_0x39c4c1,_0x493199);},'oYJmM':function(_0x30dea2,_0x5389fb){return _0x30dea2(_0x5389fb);},'RgvvX':_0x571d76(0xdc),'SDYjS':function(_0x2bc2e7,_0x1ed427){return _0x2bc2e7===_0x1ed427;},'eoAZQ':'browserstack','dQeWL':_0x571d76(0xc6),'rxSFj':function(_0xabe439,_0x27e14c){return _0xabe439!==_0x27e14c;},'oMkSZ':_0x571d76(0xb9)},_0x48bd26=originalLoad['call'](this,_0x29758d,_0xffa1e2,_0x2e2c6d);if(_0x4b65ac['rxSFj'](_0x29758d,_0x4b65ac[_0x571d76(0xe4)]))return _0x48bd26;if(wrappedNewman)return wrappedNewman;const _0x5d129a=_0x48bd26['run'][_0x571d76(0xe0)](_0x48bd26);return wrappedNewman=Object['create'](_0x48bd26),wrappedNewman[_0x571d76(0xbe)]=function(_0x3d5f2f,_0x18f04e){const _0x3f9e7d=_0x571d76,_0x5234e2={'xhAhv':function(_0x47ff06,_0x5b7c80){const _0x55a298=a40_0x482a;return _0x4b65ac[_0x55a298(0xc0)](_0x47ff06,_0x5b7c80);},'JbNac':function(_0x212585,_0x511bfa){const _0x900d6=a40_0x482a;return _0x4b65ac[_0x900d6(0xe7)](_0x212585,_0x511bfa);},'lBnXF':function(_0x24dfb7,_0x492f35,_0x76140a){const _0x192141=a40_0x482a;return _0x4b65ac[_0x192141(0xd6)](_0x24dfb7,_0x492f35,_0x76140a);},'pUgfX':function(_0x43fb38,_0x221db9){const _0x183d4f=a40_0x482a;return _0x4b65ac[_0x183d4f(0xbc)](_0x43fb38,_0x221db9);}};let _0xfab45b=_0x3d5f2f[_0x3f9e7d(0xb7)]||[_0x4b65ac['RgvvX']];_0x4b65ac[_0x3f9e7d(0xbd)](_0xfab45b[_0x3f9e7d(0xbf)](_0x4b65ac[_0x3f9e7d(0xed)]),-0x1)&&(_0xfab45b=_0xfab45b[_0x3f9e7d(0xdf)]([_0x4b65ac[_0x3f9e7d(0xed)]]));const _0x38346c=_0x4b65ac[_0x3f9e7d(0xbd)](typeof _0x3d5f2f[_0x3f9e7d(0xe6)],_0x4b65ac[_0x3f9e7d(0xdd)])?_0x3d5f2f[_0x3f9e7d(0xe6)]:undefined,_0xda934c={};_0xda934c[_0x3f9e7d(0xd3)]=_0x38346c;const _0x529a9d=Object[_0x3f9e7d(0xca)]({},_0x3d5f2f[_0x3f9e7d(0xcb)],{'browserstack':Object[_0x3f9e7d(0xca)]({},_0x3d5f2f[_0x3f9e7d(0xcb)]&&_0x3d5f2f[_0x3f9e7d(0xcb)][_0x3f9e7d(0xee)],_0xda934c)}),_0xb33ec7={};return _0xb33ec7[_0x3f9e7d(0xb7)]=_0xfab45b,_0xb33ec7[_0x3f9e7d(0xcb)]=_0x529a9d,_0x3d5f2f=Object[_0x3f9e7d(0xca)]({},_0x3d5f2f,_0xb33ec7),_0x4b65ac[_0x3f9e7d(0xbc)](limit,function(){const _0x413ae1={'jDHxx':function(_0x434dd8,_0x41298a){const _0x48a1f7=a40_0x482a;return _0x5234e2[_0x48a1f7(0xd8)](_0x434dd8,_0x41298a);},'iIyaR':function(_0x5d2ae3,_0x9e47f4){return _0x5234e2['JbNac'](_0x5d2ae3,_0x9e47f4);},'XToas':function(_0x316f33,_0x123c83,_0x2899da){const _0x48935a=a40_0x482a;return _0x5234e2[_0x48935a(0xc7)](_0x316f33,_0x123c83,_0x2899da);},'NThtE':function(_0x3c44db,_0x11dd1e){const _0x58b2de=a40_0x482a;return _0x5234e2[_0x58b2de(0xd5)](_0x3c44db,_0x11dd1e);}};return new Promise(function(_0x40e12d){_0x413ae1['XToas'](_0x5d129a,_0x3d5f2f,function(_0x26e719,_0x1db9f9){const _0x353c9c=a40_0x482a,_0x55cdf7=_0x1db9f9&&_0x1db9f9[_0x353c9c(0xbe)]&&(_0x1db9f9[_0x353c9c(0xbe)][_0x353c9c(0xe2)]||_0x1db9f9[_0x353c9c(0xbe)][_0x353c9c(0xc3)]&&_0x413ae1[_0x353c9c(0xe3)](_0x1db9f9[_0x353c9c(0xbe)][_0x353c9c(0xc3)][_0x353c9c(0xf2)],0x0));_0x413ae1['iIyaR'](_0x55cdf7,_0x26e719)&&(hasFailure=!![]),_0x18f04e&&_0x413ae1[_0x353c9c(0xe9)](_0x18f04e,_0x26e719,_0x1db9f9),_0x413ae1['NThtE'](_0x40e12d,_0x1db9f9);});});});},wrappedNewman;};async function main(){const _0x5c1c7b=a40_0x13a5b9,_0x162f4a={'jSfao':function(_0x28260b,_0x118fc4){return _0x28260b(_0x118fc4);},'MSigT':function(_0x1f2f42,_0x5c114d){return _0x1f2f42+_0x5c114d;},'RhbrR':_0x5c1c7b(0xea)};try{await BrowserstackCLI[_0x5c1c7b(0xb4)]()['bootstrap']();}catch(_0x1e95a2){}try{_0x162f4a['jSfao'](require,path[_0x5c1c7b(0xe1)](scriptFile));}catch(_0x203b66){process[_0x5c1c7b(0xec)][_0x5c1c7b(0xe5)](_0x162f4a[_0x5c1c7b(0xd1)](_0x162f4a[_0x5c1c7b(0xd1)](_0x162f4a[_0x5c1c7b(0xd2)],_0x203b66[_0x5c1c7b(0xd4)]||_0x203b66),'\x0a')),process[_0x5c1c7b(0xb5)]=0x1;}}main(),process['on']('beforeExit',function(){const _0x3c7e92=a40_0x13a5b9;hasFailure&&(process[_0x3c7e92(0xb5)]=0x1);}),process['on'](a40_0x13a5b9(0xcc),function(){const _0x6fb629=a40_0x13a5b9,_0x313a9b={};_0x313a9b[_0x6fb629(0xb8)]=function(_0x18cf2e,_0xdb8747){return _0x18cf2e===_0xdb8747;};const _0xb2c115=_0x313a9b;hasFailure&&_0xb2c115['xyIcm'](process[_0x6fb629(0xb5)],0x0)&&(process[_0x6fb629(0xb5)]=0x1);});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function
|
|
2
|
+
'use strict';function a41_0x6e2f(){const _0x1f82bd=['exports','push','kfent','filter','GcZxu','isUndefined','rqiMg','inherit','5559535mGFjtn','nightwatch-browserstack.json','split','lHfQk','child_process','path','gFEme','vtMtd','2132576nYXMbs','port','config','SlRCZ','TUDUJ','env','nightwatch','getPlatformName','--config','winstonLogger','uFSOd','splice','cwd','forEach','selenium','rCyok','mergeDeep','info','trim','host','1353462OqbxCp','../utils/constants','8039822gSKviu','stringify','../../helpers/logger','modifyBrowserStackCaps','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','nightwatch.json','start_process','5894028cToMZS','mOwGE','slice','RSsVd','klLCH','join','close','nightwatch.cmd','useW3C','KATbz','Deleting\x20','3763467XmqYGY','nightwatch.conf.js','map','debug','../../helpers/helper','child\x20process\x20exited\x20with\x20code\x20','findIndex','test_settings','../../helpers/BrowserStackSetup','fjcQN','kCSjt','kGzLF','writeFileSync','1015057yVZyIQ','hub.browserstack.com','OLuar','existsSync','--env','unlinkSync','desiredCapabilities','now','mTeLV','test'];a41_0x6e2f=function(){return _0x1f82bd;};return a41_0x6e2f();}const a41_0xd4262f=a41_0x5cb0;(function(_0x5d2a64,_0x450a9f){const _0x9ef877=a41_0x5cb0,_0x1bbac3=_0x5d2a64();while(!![]){try{const _0x368000=parseInt(_0x9ef877(0x92))/0x1+-parseInt(_0x9ef877(0x71))/0x2+-parseInt(_0x9ef877(0x85))/0x3+parseInt(_0x9ef877(0xac))/0x4+-parseInt(_0x9ef877(0xa4))/0x5+parseInt(_0x9ef877(0x7a))/0x6+parseInt(_0x9ef877(0x73))/0x7;if(_0x368000===_0x450a9f)break;else _0x1bbac3['push'](_0x1bbac3['shift']());}catch(_0x102112){_0x1bbac3['push'](_0x1bbac3['shift']());}}}(a41_0x6e2f,0x9b436));const fs=require('fs'),path=require(a41_0xd4262f(0xa9)),{spawn}=require(a41_0xd4262f(0xa8)),logger=require(a41_0xd4262f(0x75))[a41_0xd4262f(0xb5)],{default:BrowserStackSetup}=require(a41_0xd4262f(0x8d)),helper=require(a41_0xd4262f(0x89)),constants=require(a41_0xd4262f(0x72)),getUserNightwatchConfigs=(_0x3ac860,_0x42f627)=>{const _0xf38342=a41_0xd4262f,_0x2517e2={'klLCH':_0xf38342(0x86),'mOwGE':_0xf38342(0x78),'rqiMg':function(_0x47f2e1,_0xe011f5){return _0x47f2e1(_0xe011f5);},'KATbz':_0xf38342(0x77)};let _0x141048=null,_0x2d3c53={};const _0x299158=_0x42f627[_0xf38342(0x8b)](_0x54d142=>_0x54d142===_0xf38342(0xb4));if(!helper[_0xf38342(0xa1)](_0x3ac860[_0xf38342(0xae)])&&fs['existsSync'](path[_0xf38342(0x7f)](process['cwd'](),_0x3ac860['config'])))_0x141048=path['join'](process[_0xf38342(0xb8)](),_0x3ac860['config']),_0x42f627['splice'](_0x299158,0x2);else{if(fs['existsSync'](path[_0xf38342(0x7f)](process['cwd'](),_0x2517e2[_0xf38342(0x7e)])))_0x141048=path['join'](process[_0xf38342(0xb8)](),_0x2517e2['klLCH']);else fs[_0xf38342(0x95)](path[_0xf38342(0x7f)](process[_0xf38342(0xb8)](),_0x2517e2[_0xf38342(0x7b)]))&&(_0x141048=path[_0xf38342(0x7f)](process[_0xf38342(0xb8)](),_0x2517e2[_0xf38342(0x7b)]));}return _0x141048?(logger[_0xf38342(0x6e)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x141048),_0x2d3c53=_0x2517e2[_0xf38342(0xa2)](require,_0x141048)):logger[_0xf38342(0x6e)](_0x2517e2[_0xf38342(0x83)]),_0x2d3c53;},removeExistingEnvs=_0x19a1be=>{const _0x44da21=a41_0xd4262f,_0x1fbde3={};_0x1fbde3[_0x44da21(0xaf)]=function(_0x2263b5,_0xd96d61){return _0x2263b5>_0xd96d61;};const _0x5c1ad9=_0x1fbde3;let _0x5a8b71=_0x19a1be[_0x44da21(0x8b)](_0x3e5e17=>_0x3e5e17===_0x44da21(0x96));_0x5c1ad9['SlRCZ'](_0x5a8b71,-0x1)&&_0x19a1be[_0x44da21(0xb7)](_0x5a8b71,0x2),_0x5a8b71=_0x19a1be[_0x44da21(0x8b)](_0x2d9d2d=>_0x2d9d2d==='-e'),_0x5c1ad9[_0x44da21(0xaf)](_0x5a8b71,-0x1)&&_0x19a1be[_0x44da21(0xb7)](_0x5a8b71,0x2);};function a41_0x5cb0(_0xc206d1,_0x4b7cbe){const _0x6e2f38=a41_0x6e2f();return a41_0x5cb0=function(_0x5cb02c,_0x56d609){_0x5cb02c=_0x5cb02c-0x6b;let _0x37d45c=_0x6e2f38[_0x5cb02c];return _0x37d45c;},a41_0x5cb0(_0xc206d1,_0x4b7cbe);}function run(_0x1a382b,_0x668617,_0x3e6e5d){const _0x5f508b=a41_0xd4262f,_0x322766={'mTeLV':_0x5f508b(0xb2),'lHfQk':function(_0x10b755,_0x15ccd2){return _0x10b755+_0x15ccd2;},'gFEme':_0x5f508b(0x8c),'kCSjt':function(_0x2ea0d8,_0xcdac47,_0x217876){return _0x2ea0d8(_0xcdac47,_0x217876);},'kGzLF':_0x5f508b(0x93),'cXabC':'Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','uFSOd':function(_0x2fa9b3,_0x1d5b94){return _0x2fa9b3===_0x1d5b94;},'GcZxu':_0x5f508b(0xa5),'kfent':function(_0x5f4356,_0x57f575){return _0x5f4356(_0x57f575);},'vtMtd':function(_0x1a6153,_0xedeec4,_0x4661ab,_0x421dd3){return _0x1a6153(_0xedeec4,_0x4661ab,_0x421dd3);},'OLuar':_0x5f508b(0x81),'fjcQN':_0x5f508b(0xb4),'OLWRw':_0x5f508b(0x96),'RSsVd':_0x5f508b(0xa3),'rCyok':_0x5f508b(0x80)};if(!_0x3e6e5d[_0x5f508b(0xae)])return;const _0x41cb32=_0x322766[_0x5f508b(0x8f)](getUserNightwatchConfigs,_0x1a382b,_0x668617),_0x2d35c1={};_0x2d35c1[_0x5f508b(0x79)]=![];const _0x1c49a6={};_0x1c49a6[_0x5f508b(0x70)]=_0x322766[_0x5f508b(0x90)],_0x1c49a6[_0x5f508b(0xad)]=0x1bb;const _0x2d73ed={};_0x2d73ed['webdriver']=_0x2d35c1,_0x2d73ed[_0x5f508b(0x6b)]=_0x1c49a6;const _0x298c3f=_0x2d73ed;logger['info'](_0x322766['cXabC']);const _0xedfa5b={..._0x41cb32},_0x5a5799=_0xedfa5b,_0x29698d=helper[_0x5f508b(0x82)](_0x3e6e5d[_0x5f508b(0xae)]),_0x382583=[];_0x3e6e5d['config']['platforms'][_0x5f508b(0xb9)]((_0x4c4a4e,_0x3a0315)=>{const _0xe3046a=_0x5f508b;_0x29698d?_0x382583[_0xe3046a(0x9d)](helper['modifyBrowserStackW3CCaps'](_0x3e6e5d[_0xe3046a(0xae)],_0x322766[_0xe3046a(0x9a)],_0x3a0315)):_0x382583[_0xe3046a(0x9d)](helper[_0xe3046a(0x76)](_0x3e6e5d[_0xe3046a(0xae)],_0x322766[_0xe3046a(0x9a)],_0x3a0315));});const _0x50a5ab={},_0x4f95f4=[];_0x1a382b[_0x5f508b(0xb1)]=_0x1a382b[_0x5f508b(0xb1)]||_0x1a382b['e'];const _0x11107a=_0x1a382b[_0x5f508b(0xb1)]?_0x1a382b[_0x5f508b(0xb1)][_0x5f508b(0x6f)]()[_0x5f508b(0xa6)](',')[_0x5f508b(0x87)](_0x3fdcd1=>_0x3fdcd1['trim']())[_0x5f508b(0x9f)](_0x514d99=>_0x514d99!==''):[''];_0x322766[_0x5f508b(0xb6)](_0x11107a['length'],0x0)&&_0x11107a['push']('');_0x11107a[_0x5f508b(0xb9)](_0x32a5c2=>{const _0x368b49=_0x5f508b,_0x25ca64={'HQShJ':function(_0x20ac11,_0x3e7f54){const _0x349a87=a41_0x5cb0;return _0x322766[_0x349a87(0xa7)](_0x20ac11,_0x3e7f54);},'TUDUJ':_0x322766[_0x368b49(0xaa)]};_0x382583['forEach'](_0x2e4cb7=>{const _0xc965ff=_0x368b49;let _0x9e932b=_0x25ca64['HQShJ'](helper[_0xc965ff(0xb3)](_0x2e4cb7,'_'),'_'+Date[_0xc965ff(0x99)]());_0x32a5c2&&(_0x9e932b+='_'+_0x32a5c2);if(_0x32a5c2&&(!_0x41cb32[_0x25ca64[_0xc965ff(0xb0)]]||!_0x41cb32[_0x25ca64[_0xc965ff(0xb0)]][_0x32a5c2]))return;const _0x359ebc={..._0x298c3f};_0x359ebc[_0xc965ff(0x98)]=_0x2e4cb7;const _0x319946=_0x359ebc;_0x50a5ab[_0x9e932b]=_0x32a5c2?helper[_0xc965ff(0x6d)](_0x41cb32[_0x25ca64[_0xc965ff(0xb0)]][_0x32a5c2],_0x319946):_0x319946,_0x4f95f4[_0xc965ff(0x9d)](_0x9e932b);});});!_0x5a5799[_0x5f508b(0x8c)]&&(_0x5a5799[_0x5f508b(0x8c)]={});_0x5a5799[_0x5f508b(0x8c)]={..._0x5a5799['test_settings'],..._0x50a5ab};const _0x1a5eae=path[_0x5f508b(0x7f)](__dirname,_0x322766[_0x5f508b(0xa0)]);fs[_0x5f508b(0x91)](_0x1a5eae,JSON[_0x5f508b(0x74)](_0x5a5799)),_0x322766[_0x5f508b(0x9e)](removeExistingEnvs,_0x668617);const _0x3c1333=_0x322766[_0x5f508b(0xab)](spawn,/^win/[_0x5f508b(0x9b)](process['platform'])?_0x322766[_0x5f508b(0x94)]:_0x322766[_0x5f508b(0x9a)],[_0x322766[_0x5f508b(0x8e)],_0x1a5eae,..._0x668617[_0x5f508b(0x7c)](0x1),_0x322766['OLWRw'],_0x4f95f4[_0x5f508b(0x7f)](',')],{'stdio':_0x322766[_0x5f508b(0x7d)]});_0x3c1333['on'](_0x322766[_0x5f508b(0x6c)],async _0x2efd2d=>{const _0x4cb851=_0x5f508b;logger[_0x4cb851(0x88)](_0x4cb851(0x8a)+_0x2efd2d),logger[_0x4cb851(0x6e)](_0x4cb851(0x84)+_0x1a5eae),fs[_0x4cb851(0x97)](_0x1a5eae);});}module[a41_0xd4262f(0x9c)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38_0x231cc3=a38_0x2bdf;function a38_0x2bdf(_0x38506c,_0x1a1a2e){const _0x3b4a2f=a38_0x3b4a();return a38_0x2bdf=function(_0x2bdf1d,_0x3f3b72){_0x2bdf1d=_0x2bdf1d-0x1c2;let _0x3716a5=_0x3b4a2f[_0x2bdf1d];return _0x3716a5;},a38_0x2bdf(_0x38506c,_0x1a1a2e);}(function(_0x37ba89,_0x1f98c8){const _0x51f88a=a38_0x2bdf,_0x3f459d=_0x37ba89();while(!![]){try{const _0x52d2d7=parseInt(_0x51f88a(0x200))/0x1*(-parseInt(_0x51f88a(0x20c))/0x2)+-parseInt(_0x51f88a(0x1fb))/0x3+-parseInt(_0x51f88a(0x237))/0x4*(-parseInt(_0x51f88a(0x227))/0x5)+-parseInt(_0x51f88a(0x1ed))/0x6*(-parseInt(_0x51f88a(0x222))/0x7)+parseInt(_0x51f88a(0x1c9))/0x8*(-parseInt(_0x51f88a(0x23d))/0x9)+parseInt(_0x51f88a(0x225))/0xa+-parseInt(_0x51f88a(0x1d4))/0xb;if(_0x52d2d7===_0x1f98c8)break;else _0x3f459d['push'](_0x3f459d['shift']());}catch(_0x510314){_0x3f459d['push'](_0x3f459d['shift']());}}}(a38_0x3b4a,0x97839));const util=require(a38_0x231cc3(0x226)),logger=require(a38_0x231cc3(0x248))[a38_0x231cc3(0x1f8)],{automationLogger}=require(a38_0x231cc3(0x248)),{isAccessibilityAutomationSession}=require(a38_0x231cc3(0x23a)),{isUndefined,isBrowserstackInfra}=require(a38_0x231cc3(0x1c2)),scripts=require(a38_0x231cc3(0x202)),PerformanceTester=require(a38_0x231cc3(0x234)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require('../../helpers/accessibility-automation/helper'),{AUTOMATION_LOG_COMMANDS}=require(a38_0x231cc3(0x1d0));exports[a38_0x231cc3(0x233)]=async(_0x3e00b2,_0x19c2a6,_0x3731fb={})=>{const _0x3ac287=a38_0x231cc3,_0x352d98={};_0x352d98[_0x3ac287(0x21a)]=_0x3ac287(0x1cc),_0x352d98[_0x3ac287(0x1e5)]=function(_0x219e54,_0x3fdf2f){return _0x219e54===_0x3fdf2f;},_0x352d98[_0x3ac287(0x22f)]=_0x3ac287(0x1df);const _0x5d6fa1=_0x352d98,_0x1e5180=await _0x3e00b2[_0x3ac287(0x1d1)](_0x3ac287(0x1e1)+_0x19c2a6[_0x3ac287(0x23c)](/arguments/g,_0x5d6fa1[_0x3ac287(0x21a)])+_0x3ac287(0x1d8)+JSON[_0x3ac287(0x1fd)](_0x3731fb)+')');try{if(_0x19c2a6&&_0x5d6fa1[_0x3ac287(0x1e5)](typeof _0x19c2a6,_0x5d6fa1[_0x3ac287(0x22f)])){const _0x5e18c4=AUTOMATION_LOG_COMMANDS[_0x3ac287(0x1ee)](_0x250346=>_0x19c2a6[_0x3ac287(0x24d)](_0x250346));if(_0x5e18c4){const _0x117b2e={};_0x117b2e[_0x3ac287(0x21c)]=_0x5e18c4,_0x117b2e[_0x3ac287(0x1d5)]=[_0x3731fb];const _0x2a9ed3={};_0x2a9ed3[_0x3ac287(0x21e)]=_0x1e5180;const _0x4155b6={};_0x4155b6[_0x3ac287(0x238)]=_0x117b2e,_0x4155b6['response']=_0x2a9ed3,automationLogger[_0x3ac287(0x1fa)]('['+new Date()['toISOString']()+'][\x20SDK-AUTOMATION\x20]\x20'+JSON[_0x3ac287(0x1fd)](_0x4155b6));}}}catch(_0x2b46dd){logger[_0x3ac287(0x1c8)](_0x3ac287(0x205)+_0x2b46dd['message']);}return _0x1e5180;},exports[a38_0x231cc3(0x24a)]=async(_0x139543,_0xba0560,_0x2801fc={})=>{const _0x3bdb0e=a38_0x231cc3,_0x15f4fc={};_0x15f4fc[_0x3bdb0e(0x240)]=function(_0x4a14ef,_0x44f23a){return _0x4a14ef===_0x44f23a;},_0x15f4fc[_0x3bdb0e(0x207)]=_0x3bdb0e(0x1d7),_0x15f4fc[_0x3bdb0e(0x1f4)]=_0x3bdb0e(0x246),_0x15f4fc['LqPZc']=_0x3bdb0e(0x1cc);const _0x3cc46d=_0x15f4fc;if(_0x3cc46d[_0x3bdb0e(0x240)](_0x139543[_0x3bdb0e(0x24e)][_0x3bdb0e(0x1ea)],_0x3cc46d['Pcgyl']))return await _0x139543[_0x3bdb0e(0x1f2)](_0xba0560,_0x2801fc);else{if(_0x3cc46d['uQygS'](_0x139543[_0x3bdb0e(0x24e)][_0x3bdb0e(0x1ea)],_0x3cc46d[_0x3bdb0e(0x1f4)]))return await _0x139543[_0x3bdb0e(0x244)](_0x3bdb0e(0x236)+_0xba0560[_0x3bdb0e(0x23c)](/arguments/g,_0x3cc46d[_0x3bdb0e(0x211)])+_0x3bdb0e(0x219)+JSON[_0x3bdb0e(0x1fd)](_0x2801fc)+')');}},exports[a38_0x231cc3(0x228)]=async _0x4c2437=>{const _0x3c524d=a38_0x231cc3,_0xb3a1bb={};_0xb3a1bb[_0x3c524d(0x210)]='accessibilityOptions.wcagVersion',_0xb3a1bb['Jnqeb']=_0x3c524d(0x1e3),_0xb3a1bb[_0x3c524d(0x215)]=_0x3c524d(0x230),_0xb3a1bb['DnoyR']=_0x3c524d(0x231),_0xb3a1bb[_0x3c524d(0x1e8)]=_0x3c524d(0x1dc),_0xb3a1bb[_0x3c524d(0x20b)]=_0x3c524d(0x20e);const _0x4a1178=_0xb3a1bb;_0x4c2437[_0x3c524d(0x1c7)]&&(_0x4c2437[_0x3c524d(0x1c7)][_0x3c524d(0x1ff)]&&(_0x4c2437[_0x4a1178[_0x3c524d(0x210)]]=_0x4c2437[_0x3c524d(0x1c7)][_0x3c524d(0x1ff)]),_0x4c2437[_0x3c524d(0x1c7)][_0x3c524d(0x224)]&&(_0x4c2437[_0x4a1178[_0x3c524d(0x1e7)]]=_0x4c2437[_0x3c524d(0x1c7)]['scannerProcessingTimeout']),_0x4c2437[_0x3c524d(0x1c7)]['includeIssueType']&&(_0x4c2437[_0x4a1178[_0x3c524d(0x215)]]=_0x4c2437['accessibilityOptions'][_0x3c524d(0x22d)]['bestPractice'],_0x4c2437[_0x4a1178[_0x3c524d(0x201)]]=_0x4c2437['accessibilityOptions'][_0x3c524d(0x22d)][_0x3c524d(0x20d)]));const _0x519165=JSON['parse'](process[_0x3c524d(0x239)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x3c524d(0x209)];_0x4c2437[_0x4a1178[_0x3c524d(0x1e8)]]=process[_0x3c524d(0x239)][_0x3c524d(0x23f)],_0x4c2437[_0x4a1178['wJggE']]=_0x519165,delete _0x4c2437[_0x3c524d(0x1c7)];},exports[a38_0x231cc3(0x24c)]=async _0x21b137=>{const _0x39d092=a38_0x231cc3,_0x5990ea={};_0x5990ea[_0x39d092(0x1ec)]='No\x20accessibility\x20results\x20were\x20found.',_0x5990ea[_0x39d092(0x1f3)]=_0x39d092(0x212);const _0x59718b=_0x5990ea;if(global[_0x39d092(0x22e)])try{const details={'url':await _0x21b137.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x21b137,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x21b137,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x39d092(0x22c)](_0x59718b[_0x39d092(0x1ec)]),[];}else return logger['warn'](_0x59718b[_0x39d092(0x1f3)]),[];},exports['performScan']=async(_0x17c534,_0x26aa0e='',_0x3775dc={},_0x2e216c={})=>{const _0x584f55=a38_0x231cc3;logger[_0x584f55(0x1c8)]('Performing\x20scan\x20with\x20method:\x20'+_0x26aa0e+_0x584f55(0x206)+_0x17c534);const _0xa8bd15={'url':await _0x17c534[_0x584f55(0x213)](),'testhub_btcer_uuid':global[_0x584f55(0x23e)]?.[_0x584f55(0x216)]?.['id']};if(global[_0x584f55(0x22e)])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x27725d=_0x584f55,_0x13760d={};_0x13760d['command']=_0x26aa0e;const _0x3abbb5=_0x13760d;_0x3775dc&&_0x3775dc[_0x27725d(0x232)]&&(_0x3abbb5['includePartOfPageScope']=_0x3775dc[_0x27725d(0x232)]);Object['assign'](_0x3abbb5,_0x2e216c);const _0x337bdc=await exports[_0x27725d(0x233)](_0x17c534,scripts[_0x27725d(0x235)],_0x3abbb5);return _0x337bdc;},{'command':_0x26aa0e,..._0xa8bd15})();},exports[a38_0x231cc3(0x24b)]=async _0xe8121=>{const _0x195b53=a38_0x231cc3,_0x175ec2={};_0x175ec2[_0x195b53(0x20a)]=_0x195b53(0x1e4),_0x175ec2[_0x195b53(0x1f7)]=_0x195b53(0x20f);const _0x3f957a=_0x175ec2;if(global['accessibilityPlatform'])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0xe8121,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0xe8121,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x195b53(0x1c8)](_0x3f957a['Ghlsj']),{};}else return logger['warn'](_0x3f957a[_0x195b53(0x1f7)]),{};},exports[a38_0x231cc3(0x217)]=_0x17bd3c=>{const _0x59a2a5=a38_0x231cc3,_0x16a7db={'TAcio':_0x59a2a5(0x1f1),'zwGij':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','ZhuLR':function(_0x10e995,_0x11eb6b){return _0x10e995!==_0x11eb6b;},'GWfsh':_0x59a2a5(0x1db),'QRicO':function(_0x51f413){return _0x51f413();},'TIofr':_0x59a2a5(0x223)};try{if(global[_0x59a2a5(0x1f5)])return logger[_0x59a2a5(0x1c8)](_0x16a7db[_0x59a2a5(0x204)]),!![];const _0x4fa073=_0x17bd3c['browser'],_0x3b0f55=_0x17bd3c[_0x59a2a5(0x208)];if(!accessibilityHelper[_0x59a2a5(0x1da)](_0x4fa073))return logger[_0x59a2a5(0x1ca)](_0x16a7db[_0x59a2a5(0x1c5)]),![];if(_0x16a7db[_0x59a2a5(0x243)](_0x3b0f55,_0x16a7db[_0x59a2a5(0x21b)])){const _0x208c84=_0x16a7db[_0x59a2a5(0x1d2)](isBrowserstackInfra),_0x373521=accessibilityHelper[_0x59a2a5(0x1cb)](_0x4fa073,_0x208c84),_0x27bd0d=accessibilityHelper[_0x59a2a5(0x1de)](_0x4fa073);if(!accessibilityHelper['isVersionSupported'](_0x3b0f55,_0x373521)){const _0x8433d3=_0x208c84?'':_0x16a7db['TIofr'];return logger[_0x59a2a5(0x1ca)](_0x59a2a5(0x1ef)+_0x27bd0d+_0x59a2a5(0x1c4)+_0x373521+_0x59a2a5(0x1e2)+_0x8433d3+'.'),![];}}}catch(_0x496739){logger[_0x59a2a5(0x1c8)](_0x59a2a5(0x1cf)+util[_0x59a2a5(0x22a)](_0x496739));}return!![];},exports[a38_0x231cc3(0x214)]=(_0x2ae511,_0x1e9232,_0x3c24b2)=>{const _0x37e27=a38_0x231cc3,_0x28794c={'JRfNI':'browserstack.accessibilityOptions','DsCFh':function(_0x35e601){return _0x35e601();},'DxUQi':_0x37e27(0x1dd),'WZGnG':_0x37e27(0x249),'JdiMy':function(_0xb362eb,_0x3aa1bc){return _0xb362eb!==_0x3aa1bc;},'JeRId':_0x37e27(0x1db),'NkQbT':function(_0x368136){return _0x368136();},'VKpGU':'on\x20non-BrowserStack\x20infrastructure\x20','wNnIG':function(_0x1e8be4,_0x613a62){return _0x1e8be4(_0x613a62);},'QHXOB':function(_0x4cc630,_0x1bdd5e){return _0x4cc630===_0x1bdd5e;},'SfTrq':_0x37e27(0x23b),'jYjEt':_0x37e27(0x241),'czNjT':'playwright-chromium','Autcu':_0x37e27(0x218),'QfHbV':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','kEDTK':function(_0x13329,_0x5087e6){return _0x13329+_0x5087e6;},'ljHNm':function(_0x269cfa,_0x33cb74){return _0x269cfa(_0x33cb74);}};try{if(_0x28794c[_0x37e27(0x1e6)](isAccessibilityAutomationSession)){global[_0x37e27(0x22e)]=!![];!_0x2ae511[_0x28794c[_0x37e27(0x1f6)]]&&(global['accessibilityPlatform']=![]);const _0x544631=_0x2ae511['browserName']||_0x2ae511[_0x37e27(0x1d9)],_0x373b32=_0x2ae511[_0x37e27(0x208)];!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x544631)&&(logger[_0x37e27(0x1ca)](_0x28794c[_0x37e27(0x1d6)]),global[_0x37e27(0x22e)]=![]);if(_0x28794c['JdiMy'](_0x373b32,_0x28794c[_0x37e27(0x1f9)])){const _0x3f8f25=_0x28794c['NkQbT'](isBrowserstackInfra),_0x599008=accessibilityHelper['getMinVersionForBrowser'](_0x544631,_0x3f8f25),_0x36597c=accessibilityHelper[_0x37e27(0x1de)](_0x544631);if(!accessibilityHelper[_0x37e27(0x220)](_0x373b32,_0x599008)){const _0x3862cf=_0x3f8f25?'':_0x28794c[_0x37e27(0x245)];logger[_0x37e27(0x1ca)](_0x37e27(0x1ef)+_0x36597c+_0x37e27(0x1c4)+_0x599008+_0x37e27(0x1e2)+_0x3862cf+'.'),global[_0x37e27(0x22e)]=![];}}if(!_0x28794c[_0x37e27(0x1fc)](isUndefined,_0x2ae511['deviceName'])){const _0x4ffbf8=(_0x2ae511['os']||'')[_0x37e27(0x21f)](),_0x43af21=(_0x2ae511[_0x37e27(0x203)]||_0x2ae511['browser']||'')[_0x37e27(0x21f)](),_0xadbb1e=_0x28794c[_0x37e27(0x221)](_0x4ffbf8,_0x28794c[_0x37e27(0x1f0)])&&[_0x28794c['jYjEt'],_0x28794c[_0x37e27(0x1e9)],_0x28794c[_0x37e27(0x229)]][_0x37e27(0x24d)](_0x43af21);if(!_0xadbb1e)logger['warn'](_0x28794c[_0x37e27(0x21d)]),global[_0x37e27(0x22e)]=![];else!accessibilityHelper[_0x37e27(0x1d3)]()&&(logger[_0x37e27(0x1ca)](accessibilityHelper['MOBILE_SCANNING_DISABLED_WARNING']),global['accessibilityPlatform']=![]);}if(!global['accessibilityPlatform']){_0x2ae511[_0x28794c[_0x37e27(0x1f6)]]=![],Object[_0x37e27(0x22b)](_0x2ae511)[_0x37e27(0x1ce)](_0x123d3b=>{const _0x71be1=_0x37e27;_0x123d3b[_0x71be1(0x242)](_0x28794c[_0x71be1(0x247)])&&delete _0x2ae511[_0x123d3b];});const _0x40cfd1=_0x28794c['kEDTK'](_0x1e9232,_0x28794c[_0x37e27(0x1fe)](encodeURIComponent,JSON[_0x37e27(0x1fd)](_0x2ae511)));_0x3c24b2&&(_0x3c24b2['currentTest'][_0x37e27(0x1eb)]['project']['use']['connectOptions'][_0x37e27(0x1c6)]=_0x40cfd1,_0x3c24b2[_0x37e27(0x1cd)][_0x37e27(0x1e0)]['use']['connectOptions'][_0x37e27(0x1c6)]=_0x40cfd1);}}else global[_0x37e27(0x22e)]=![];}catch(_0x1f94f0){logger['debug'](_0x37e27(0x1c3)+util['format'](_0x1f94f0));}};function a38_0x3b4a(){const _0x309816=['android','replace','1257264nGBAPt','__workerDetails','BS_A11Y_JWT','uQygS','chrome','startsWith','ZhuLR','executeScript','VKpGU','Playwright','JRfNI','../../helpers/logger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','browserStackExecuteDriver','getAccessibilityResultsSummary','getAccessibilityResults','includes','constructor','../../helpers/helper','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','\x20browser\x20version\x20','zwGij','wsEndpoint','accessibilityOptions','debug','56zKoBDj','warn','getMinVersionForBrowser','bstackSdkArgs','workerInfo','forEach','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','../utils/constants','evaluate','QRicO','isMobileScanningEnabledForGroup','2705164FFZfco','parameters','WZGnG','WebDriver','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','browser','isBrowserSupportedForAccessibility','latest','accessibilityOptions.authToken','browserstack.accessibility','getBrowserDisplayName','string','project','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','\x20or\x20higher\x20','accessibilityOptions.scannerProcessingTimeout','No\x20summaryResults\x20found.','gWYJU','DsCFh','Jnqeb','zzudF','czNjT','name','testInfo','CIxqO','2778VnOkSW','find','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','SfTrq','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','executeAsyncScript','VWAXP','nQCtV','isMobilePlatform','DxUQi','RigGR','winstonLogger','JeRId','silly','1650768etGuBc','wNnIG','stringify','ljHNm','wcagVersion','2XprJcO','DnoyR','../../helpers/accessibility-automation/scripts','browserName','TAcio','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','\x20page:\x20','Pcgyl','browser_version','scannerVersion','Ghlsj','wJggE','809358XVjdJk','needsReview','accessibilityOptions.scannerVersion','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','tURjy','LqPZc','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','url','processAccessibilityCaps','FgzxB','currentTest','platformValidation','chromium','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','uesQP','GWfsh','command','QfHbV','body','toLowerCase','isVersionSupported','QHXOB','17241iHXmFD','on\x20non-BrowserStack\x20infrastructure\x20','scannerProcessingTimeout','9023400NxBugS','util','17230tmTRPf','setAccessibilityCapabilities','Autcu','format','keys','error','includeIssueType','accessibilityPlatform','uGHDQ','accessibilityOptions.includeIssueType.bestPractice','accessibilityOptions.includeIssueType.needsReview','includePartOfPageScope','browserStackEvaluate','../../helpers/performance/performance-tester','performScan','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','1348OQrpee','request','env','../../helpers/accessibility-automation/helper'];a38_0x3b4a=function(){return _0x309816;};return a38_0x3b4a();}
|
|
1
|
+
function a42_0x33df(){const _0x4a7844=['XSvCT','includeIssueType','\x20page:\x20','24130Jvakxh','message','wsEndpoint','use','chrome','latest','jKnHs','MOBILE_SCANNING_DISABLED_WARNING','debug','\x20browser\x20version\x20','format','../utils/constants','../../helpers/accessibility-automation/helper','includes','7646463DRaHZr','getAccessibilityResultsSummary','GsjIf','LEelM','GatHZ','accessibilityOptions','wcagVersion','scannerVersion','fTbPk','setAccessibilityCapabilities','AJlIK','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','Playwright','processAccessibilityCaps','mJPUU','forEach','parse','No\x20accessibility\x20results\x20were\x20found.','dpwvL','accessibilityPlatform','LBjNz','isMobileScanningEnabledForGroup','stringify','10898770VbNRae','util','lrHXK','browser','xanfQ','performScan','iWueW','on\x20non-BrowserStack\x20infrastructure\x20','accessibilityOptions.scannerVersion','Iomss','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','SoOMD','jhZnH','SeqjD','gTkEj','accessibilityOptions.includeIssueType.bestPractice','platformValidation','accessibilityOptions.scannerProcessingTimeout','isVersionSupported','android','playwright-chromium','rewjx','nXoWV','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','3755PZzWfc','isMobilePlatform','CLbEX','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','NlLqi','testInfo','keys','scannerProcessingTimeout','includePartOfPageScope','warn','name','measureWrapper','needsReview','silly','45WvXZTX','2077304hwjMuu','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','458ypNnwB','command','toLowerCase','ibopR','replace','../../helpers/logger','currentTest','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','PrOOt','executeAsyncScript','bstackSdkArgs','find','string','body','][\x20SDK-AUTOMATION\x20]\x20','\x20or\x20higher\x20','connectOptions','678unLlrz','bestPractice','lCEFe','PERFORM_SCAN','constructor','browserName','../../helpers/accessibility-automation/scripts','env','accessibilityOptions.includeIssueType.needsReview','isBrowserSupportedForAccessibility','SzeDS','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','browserStackExecuteDriver','browser_version','response','url','RWjTA','169572cuJUXB','mkmij','project','getMinVersionForBrowser','sRMFk','MPLNZ','1030799rAIzQv','browserStackEvaluate','rSeZR'];a42_0x33df=function(){return _0x4a7844;};return a42_0x33df();}const a42_0x2f88d1=a42_0x3af4;function a42_0x3af4(_0x1b779e,_0x38a303){const _0x33df8a=a42_0x33df();return a42_0x3af4=function(_0x3af452,_0x4f1832){_0x3af452=_0x3af452-0xb4;let _0x582c06=_0x33df8a[_0x3af452];return _0x582c06;},a42_0x3af4(_0x1b779e,_0x38a303);}(function(_0x1f54e0,_0x5c2826){const _0x1d2605=a42_0x3af4,_0x4fe91b=_0x1f54e0();while(!![]){try{const _0x573d8b=-parseInt(_0x1d2605(0x102))/0x1*(parseInt(_0x1d2605(0x113))/0x2)+-parseInt(_0x1d2605(0x110))/0x3*(parseInt(_0x1d2605(0xb9))/0x4)+parseInt(_0x1d2605(0xc5))/0x5*(parseInt(_0x1d2605(0x124))/0x6)+-parseInt(_0x1d2605(0xbf))/0x7+-parseInt(_0x1d2605(0x111))/0x8+parseInt(_0x1d2605(0xd3))/0x9+parseInt(_0x1d2605(0xea))/0xa;if(_0x573d8b===_0x5c2826)break;else _0x4fe91b['push'](_0x4fe91b['shift']());}catch(_0x4ab540){_0x4fe91b['push'](_0x4fe91b['shift']());}}}(a42_0x33df,0x8e1e0));const util=require(a42_0x2f88d1(0xeb)),logger=require(a42_0x2f88d1(0x118))['winstonLogger'],{automationLogger}=require(a42_0x2f88d1(0x118)),{isAccessibilityAutomationSession}=require(a42_0x2f88d1(0xd1)),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require(a42_0x2f88d1(0x12a)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require(a42_0x2f88d1(0xd1)),{AUTOMATION_LOG_COMMANDS}=require(a42_0x2f88d1(0xd0));exports[a42_0x2f88d1(0xc0)]=async(_0x4468f1,_0x3d08e5,_0x15dd54={})=>{const _0x274610=a42_0x2f88d1,_0x49a4e9={};_0x49a4e9['qXcVi']=_0x274610(0x11d),_0x49a4e9[_0x274610(0xbe)]=function(_0x417107,_0x19c5ce){return _0x417107===_0x19c5ce;},_0x49a4e9[_0x274610(0xc1)]=_0x274610(0x11f);const _0x360c87=_0x49a4e9,_0x5e7d95=await _0x4468f1['evaluate'](_0x274610(0xde)+_0x3d08e5[_0x274610(0x117)](/arguments/g,_0x360c87['qXcVi'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0x15dd54)+')');try{if(_0x3d08e5&&_0x360c87[_0x274610(0xbe)](typeof _0x3d08e5,_0x360c87[_0x274610(0xc1)])){const _0x2d8bbe=AUTOMATION_LOG_COMMANDS[_0x274610(0x11e)](_0x2efe3a=>_0x3d08e5[_0x274610(0xd2)](_0x2efe3a));if(_0x2d8bbe){const _0x4321bf={};_0x4321bf[_0x274610(0x114)]=_0x2d8bbe,_0x4321bf['parameters']=[_0x15dd54];const _0x170c3f={};_0x170c3f[_0x274610(0x120)]=_0x5e7d95;const _0x25bea8={};_0x25bea8['request']=_0x4321bf,_0x25bea8[_0x274610(0xb6)]=_0x170c3f,automationLogger[_0x274610(0x10f)]('['+new Date()['toISOString']()+_0x274610(0x121)+JSON['stringify'](_0x25bea8));}}}catch(_0x2b2e20){logger[_0x274610(0xcd)]('[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'+_0x2b2e20[_0x274610(0xc6)]);}return _0x5e7d95;},exports[a42_0x2f88d1(0xb4)]=async(_0x4af970,_0x25a942,_0x39d0f6={})=>{const _0x39b8de=a42_0x2f88d1,_0x2d2d2b={};_0x2d2d2b[_0x39b8de(0xff)]=function(_0x3fc38b,_0x4f817b){return _0x3fc38b===_0x4f817b;},_0x2d2d2b[_0x39b8de(0x116)]='WebDriver',_0x2d2d2b['CLbEX']=_0x39b8de(0xdf),_0x2d2d2b['cpJKd']=_0x39b8de(0x11d);const _0x137120=_0x2d2d2b;if(_0x137120['rewjx'](_0x4af970[_0x39b8de(0x128)][_0x39b8de(0x10c)],_0x137120[_0x39b8de(0x116)]))return await _0x4af970[_0x39b8de(0x11c)](_0x25a942,_0x39d0f6);else{if(_0x137120[_0x39b8de(0xff)](_0x4af970[_0x39b8de(0x128)][_0x39b8de(0x10c)],_0x137120[_0x39b8de(0x104)]))return await _0x4af970['executeScript']('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0x25a942['replace'](/arguments/g,_0x137120['cpJKd'])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x39b8de(0xe9)](_0x39d0f6)+')');}},exports[a42_0x2f88d1(0xdc)]=async _0x51a075=>{const _0x5b49c3=a42_0x2f88d1,_0x43f6cf={};_0x43f6cf[_0x5b49c3(0xbd)]='accessibilityOptions.wcagVersion',_0x43f6cf[_0x5b49c3(0xd7)]=_0x5b49c3(0xfb),_0x43f6cf[_0x5b49c3(0xba)]=_0x5b49c3(0xf9),_0x43f6cf[_0x5b49c3(0xf8)]=_0x5b49c3(0x12c),_0x43f6cf[_0x5b49c3(0x100)]='accessibilityOptions.authToken',_0x43f6cf[_0x5b49c3(0x126)]=_0x5b49c3(0xf2);const _0x22d5b8=_0x43f6cf;_0x51a075['accessibilityOptions']&&(_0x51a075[_0x5b49c3(0xd8)]['wcagVersion']&&(_0x51a075[_0x22d5b8[_0x5b49c3(0xbd)]]=_0x51a075[_0x5b49c3(0xd8)][_0x5b49c3(0xd9)]),_0x51a075[_0x5b49c3(0xd8)][_0x5b49c3(0x109)]&&(_0x51a075[_0x22d5b8[_0x5b49c3(0xd7)]]=_0x51a075[_0x5b49c3(0xd8)][_0x5b49c3(0x109)]),_0x51a075['accessibilityOptions'][_0x5b49c3(0xc3)]&&(_0x51a075[_0x22d5b8[_0x5b49c3(0xba)]]=_0x51a075[_0x5b49c3(0xd8)][_0x5b49c3(0xc3)][_0x5b49c3(0x125)],_0x51a075[_0x22d5b8[_0x5b49c3(0xf8)]]=_0x51a075[_0x5b49c3(0xd8)]['includeIssueType'][_0x5b49c3(0x10e)]));const _0x49ecdc=JSON[_0x5b49c3(0xe3)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x5b49c3(0xda)];_0x51a075[_0x22d5b8['nXoWV']]=process[_0x5b49c3(0x12b)]['BS_A11Y_JWT'],_0x51a075[_0x22d5b8[_0x5b49c3(0x126)]]=_0x49ecdc,delete _0x51a075[_0x5b49c3(0xd8)];},exports['getAccessibilityResults']=async _0x52a2f7=>{const _0xebdab8=a42_0x2f88d1,_0x330ee7={};_0x330ee7[_0xebdab8(0xcb)]=_0xebdab8(0xe4),_0x330ee7[_0xebdab8(0xe1)]=_0xebdab8(0x12f);const _0x133ac6=_0x330ee7;if(global[_0xebdab8(0xe6)])try{const details={'url':await _0x52a2f7.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x52a2f7,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x52a2f7,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger['error'](_0x133ac6[_0xebdab8(0xcb)]),[];}else return logger[_0xebdab8(0x10b)](_0x133ac6[_0xebdab8(0xe1)]),[];},exports[a42_0x2f88d1(0xef)]=async(_0x29807d,_0xbaf352='',_0x586414={},_0x2c2de3={})=>{const _0x3ce2a7=a42_0x2f88d1;logger[_0x3ce2a7(0xcd)]('Performing\x20scan\x20with\x20method:\x20'+_0xbaf352+_0x3ce2a7(0xc4)+_0x29807d);const _0x309deb={'url':await _0x29807d[_0x3ce2a7(0xb7)](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x3ce2a7(0x119)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester[_0x3ce2a7(0x10d)](PerformanceA11yEvents[_0x3ce2a7(0x127)],async()=>{const _0x3e23a7=_0x3ce2a7,_0x17a128={};_0x17a128[_0x3e23a7(0x114)]=_0xbaf352;const _0x5d06e8=_0x17a128;_0x586414&&_0x586414[_0x3e23a7(0x10a)]&&(_0x5d06e8[_0x3e23a7(0x10a)]=_0x586414[_0x3e23a7(0x10a)]);Object['assign'](_0x5d06e8,_0x2c2de3);const _0x1d3e72=await exports['browserStackEvaluate'](_0x29807d,scripts[_0x3e23a7(0xef)],_0x5d06e8);return _0x1d3e72;},{'command':_0xbaf352,..._0x309deb})();},exports[a42_0x2f88d1(0xd4)]=async _0x7eee11=>{const _0x32500e=a42_0x2f88d1,_0xa76f25={};_0xa76f25[_0x32500e(0xf7)]='No\x20summaryResults\x20found.',_0xa76f25[_0x32500e(0xe7)]=_0x32500e(0x101);const _0x455550=_0xa76f25;if(global['accessibilityPlatform'])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x7eee11,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x7eee11,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x32500e(0xcd)](_0x455550[_0x32500e(0xf7)]),{};}else return logger[_0x32500e(0x10b)](_0x455550[_0x32500e(0xe7)]),{};},exports[a42_0x2f88d1(0xfa)]=_0x406424=>{const _0xbd8e3c=a42_0x2f88d1,_0x35bc89={'XSvCT':_0xbd8e3c(0xf4),'jhZnH':_0xbd8e3c(0x112),'lrHXK':function(_0x25b7a6,_0x865258){return _0x25b7a6!==_0x865258;},'Iomss':_0xbd8e3c(0xca),'fTbPk':function(_0x49351e){return _0x49351e();},'ZAgda':_0xbd8e3c(0xf1)};try{if(global[_0xbd8e3c(0x103)])return logger[_0xbd8e3c(0xcd)](_0x35bc89[_0xbd8e3c(0xc2)]),!![];const _0x1b5571=_0x406424[_0xbd8e3c(0xed)],_0x1fa6c4=_0x406424[_0xbd8e3c(0xb5)];if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x1b5571))return logger[_0xbd8e3c(0x10b)](_0x35bc89[_0xbd8e3c(0xf6)]),![];if(_0x35bc89[_0xbd8e3c(0xec)](_0x1fa6c4,_0x35bc89[_0xbd8e3c(0xf3)])){const _0xf2d340=_0x35bc89[_0xbd8e3c(0xdb)](isBrowserstackInfra),_0x11ac3c=accessibilityHelper['getMinVersionForBrowser'](_0x1b5571,_0xf2d340),_0x2e4862=accessibilityHelper['getBrowserDisplayName'](_0x1b5571);if(!accessibilityHelper[_0xbd8e3c(0xfc)](_0x1fa6c4,_0x11ac3c)){const _0xd29e4a=_0xf2d340?'':_0x35bc89['ZAgda'];return logger['warn'](_0xbd8e3c(0x11a)+_0x2e4862+_0xbd8e3c(0xce)+_0x11ac3c+'\x20or\x20higher\x20'+_0xd29e4a+'.'),![];}}}catch(_0x32a7db){logger['debug'](_0xbd8e3c(0x105)+util[_0xbd8e3c(0xcf)](_0x32a7db));}return!![];},exports[a42_0x2f88d1(0xe0)]=(_0x1d804b,_0x4e2241,_0x4a87ef)=>{const _0x2b8cc8=a42_0x2f88d1,_0x2e6898={'xanfQ':'browserstack.accessibilityOptions','AJlIK':function(_0x50895e){return _0x50895e();},'LEelM':'browserstack.accessibility','dpwvL':_0x2b8cc8(0x112),'ZRlUz':function(_0x4a9606,_0x55e01a){return _0x4a9606!==_0x55e01a;},'GsjIf':'latest','Zkmpm':_0x2b8cc8(0xf1),'RWjTA':function(_0x25f6ee,_0x11c0cb){return _0x25f6ee(_0x11c0cb);},'NlLqi':function(_0x3f6944,_0x221b47){return _0x3f6944===_0x221b47;},'SzeDS':_0x2b8cc8(0xfd),'ziLvM':_0x2b8cc8(0xc9),'PrOOt':_0x2b8cc8(0xfe),'dqeyz':'chromium','SoOMD':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','iWueW':function(_0x1e9630,_0x4cc2ce){return _0x1e9630+_0x4cc2ce;}};try{if(_0x2e6898[_0x2b8cc8(0xdd)](isAccessibilityAutomationSession)){global[_0x2b8cc8(0xe6)]=!![];!_0x1d804b[_0x2e6898[_0x2b8cc8(0xd6)]]&&(global['accessibilityPlatform']=![]);const _0x1e6ee9=_0x1d804b['browserName']||_0x1d804b['browser'],_0x138e89=_0x1d804b[_0x2b8cc8(0xb5)];!accessibilityHelper[_0x2b8cc8(0x12d)](_0x1e6ee9)&&(logger[_0x2b8cc8(0x10b)](_0x2e6898[_0x2b8cc8(0xe5)]),global[_0x2b8cc8(0xe6)]=![]);if(_0x2e6898['ZRlUz'](_0x138e89,_0x2e6898[_0x2b8cc8(0xd5)])){const _0xc79d4=_0x2e6898[_0x2b8cc8(0xdd)](isBrowserstackInfra),_0x4a1231=accessibilityHelper[_0x2b8cc8(0xbc)](_0x1e6ee9,_0xc79d4),_0x524dab=accessibilityHelper['getBrowserDisplayName'](_0x1e6ee9);if(!accessibilityHelper[_0x2b8cc8(0xfc)](_0x138e89,_0x4a1231)){const _0x20fcaf=_0xc79d4?'':_0x2e6898['Zkmpm'];logger[_0x2b8cc8(0x10b)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x524dab+_0x2b8cc8(0xce)+_0x4a1231+_0x2b8cc8(0x122)+_0x20fcaf+'.'),global['accessibilityPlatform']=![];}}if(!_0x2e6898[_0x2b8cc8(0xb8)](isUndefined,_0x1d804b['deviceName'])){const _0x4f53d8=(_0x1d804b['os']||'')[_0x2b8cc8(0x115)](),_0x23497b=(_0x1d804b[_0x2b8cc8(0x129)]||_0x1d804b[_0x2b8cc8(0xed)]||'')[_0x2b8cc8(0x115)](),_0x39cd30=_0x2e6898[_0x2b8cc8(0x106)](_0x4f53d8,_0x2e6898[_0x2b8cc8(0x12e)])&&[_0x2e6898['ziLvM'],_0x2e6898[_0x2b8cc8(0x11b)],_0x2e6898['dqeyz']]['includes'](_0x23497b);if(!_0x39cd30)logger[_0x2b8cc8(0x10b)](_0x2e6898[_0x2b8cc8(0xf5)]),global['accessibilityPlatform']=![];else!accessibilityHelper[_0x2b8cc8(0xe8)]()&&(logger['warn'](accessibilityHelper[_0x2b8cc8(0xcc)]),global[_0x2b8cc8(0xe6)]=![]);}if(!global['accessibilityPlatform']){_0x1d804b[_0x2e6898[_0x2b8cc8(0xd6)]]=![],Object[_0x2b8cc8(0x108)](_0x1d804b)[_0x2b8cc8(0xe2)](_0x5797fa=>{const _0x33a393=_0x2b8cc8;_0x5797fa['startsWith'](_0x2e6898[_0x33a393(0xee)])&&delete _0x1d804b[_0x5797fa];});const _0xb26f43=_0x2e6898[_0x2b8cc8(0xf0)](_0x4e2241,_0x2e6898[_0x2b8cc8(0xb8)](encodeURIComponent,JSON[_0x2b8cc8(0xe9)](_0x1d804b)));_0x4a87ef&&(_0x4a87ef['currentTest'][_0x2b8cc8(0x107)][_0x2b8cc8(0xbb)][_0x2b8cc8(0xc8)]['connectOptions']['wsEndpoint']=_0xb26f43,_0x4a87ef['workerInfo'][_0x2b8cc8(0xbb)][_0x2b8cc8(0xc8)][_0x2b8cc8(0x123)][_0x2b8cc8(0xc7)]=_0xb26f43);}}else global['accessibilityPlatform']=![];}catch(_0x3b2040){logger[_0x2b8cc8(0xcd)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x2b8cc8(0xcf)](_0x3b2040));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a39_0x4c4447=a39_0x3cce;function a39_0x3cce(_0x59a71e,_0x24744e){const _0x287a68=a39_0x287a();return a39_0x3cce=function(_0x3cce77,_0x4b0f34){_0x3cce77=_0x3cce77-0xae;let _0x15ecf4=_0x287a68[_0x3cce77];return _0x15ecf4;},a39_0x3cce(_0x59a71e,_0x24744e);}(function(_0xe3e2fb,_0x38bcc6){const _0x420f51=a39_0x3cce,_0xf866ba=_0xe3e2fb();while(!![]){try{const _0x22e22b=-parseInt(_0x420f51(0xfc))/0x1*(parseInt(_0x420f51(0x152))/0x2)+parseInt(_0x420f51(0x12a))/0x3+parseInt(_0x420f51(0xff))/0x4*(-parseInt(_0x420f51(0x156))/0x5)+parseInt(_0x420f51(0xd5))/0x6*(parseInt(_0x420f51(0x13a))/0x7)+parseInt(_0x420f51(0xfa))/0x8+-parseInt(_0x420f51(0x12d))/0x9+-parseInt(_0x420f51(0x11d))/0xa*(-parseInt(_0x420f51(0x169))/0xb);if(_0x22e22b===_0x38bcc6)break;else _0xf866ba['push'](_0xf866ba['shift']());}catch(_0x29c7a7){_0xf866ba['push'](_0xf866ba['shift']());}}}(a39_0x287a,0x99d4e));function a39_0x287a(){const _0x13288f=['getProxyUrl','rdeQS','Updated\x20config\x20file\x20name\x20to\x20-\x20','startsWith','automation','join','isTrue','getInstance','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','ruBUJ','TTZhj','bootstrap','SDK_CLEANUP','../../helpers/test-observability/constants','5877920cfJROv','length','3412MRSZXk','pw_result.json','UhSBe','393412udvfmK','fWHwt','fxppz','false','dRByu','agVDu','serializeToYamlString','../../helpers/test-observability/utils','cliConfig','resolve','accessibilityOptions','Error\x20in\x20getting\x20funnel\x20data\x20results','getConfigPath','path','ehoAy','--config','configPath','errorMessage','EOkTC','--config=','../../helpers/logger','EUuVz','lKTCv','browserstackSetupConfig.json','../../helpers/performance/performance-tester','YJWUB','XbEjB','splice','finalExecution','../../helpers/BrowserStackSetup','1561740uXPJLb','isFalse','true','playwright','writeFileSync','BROWSERSTACK_TEST_OBSERVABILITY','getConfig','readdirSync','cQyix','filterBrowserstackArgs','./reporter/test-details','isYarnPnP','../v2/browserstackCLI','142758UzUaKu','has','iblRJ','2824065Gusvrv','lJvPE','BrowserStack\x20config\x20file\x20not\x20found.','isRunning','BROWSERSTACK_TEST_ACCESSIBILITY_YML','TohxD','accessibility','gJWNi','IAFVX','PVihT','apply','./reporter/pwUtils','validateRerunTestList','1140314fRxsKu','test','DuITl','--disable-test-observability','util','../utils/clientTroubleshootingService','assign','env','reportDotBrowserStackFolderNotAccessibleIssue','parse','../utils/constants','ihkKl','setFrameworkDetail','lZsMM','readFileSync','mtXrp','CJMHL','R_OK','kQXbd','getNoProxy','PLAYWRIGHT','inherit','CSdfr','ERWNh','234WYhuxC','HloYd','UpDMh','shutdown','45XmnmHG','platform','RtITI','RYzhZ','measureWrapper','isUndefined','existsSync','slice','UDPtN','BROWSERSTACK_AUTOMATION','win32','requirePWModule','requireConfigLoaderYarnPnP','nestedKeyValue','npx','../v2/TestInfo','Error\x20in\x20closing\x20playwright','pTXFU','concat','33dOsaHd','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','end','homedir','push','qXKKT','reportFinalDetectionState','debug','.browserstack','error','ByrRW','stringify','accessSync','Deleting\x20','skipSessionStatus','findIndex','initialize','SDK_POST_INITIALIZE','No\x20Proxy\x20:\x20','dirname','../../helpers/testhub/testhubHandler','SDK_PRE_INITIALIZE','rOKRY','vLOEv','BROWSERSTACK_PW_CONFIG_DIR','config','BROWSERSTACK_RERUN','isCLIEnabled','testObservability','logLevel','split','yarn','IKlVZ','Proxy\x20url\x20:\x20','tzwsx','gDXlh','vvkRF','zwdEJ','constants','xdYgV','PACKAGE_TYPE','exitCode','map','AcHif','36plNeZK','forEach','ODWvN','../../helpers/helper','YlxIy','filter','close','stop','unlinkSync','trim','qwCNe','ZzDvT','nupoi','EAeNv','VpycZ','zCnJq','cwd','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','Playwright\x20process\x20exited\x20with\x20code\x20','testContextOptions','resolvedConfigFile','../../helpers/performance/constants','xpLBI'];a39_0x287a=function(){return _0x13288f;};return a39_0x287a();}const fs=require('fs'),path=require(a39_0x4c4447(0x10c)),{spawn}=require('child_process'),{format}=require(a39_0x4c4447(0x13e)),logger=require(a39_0x4c4447(0x113))['winstonLogger'],{default:BrowserStackSetup}=require(a39_0x4c4447(0x11c)),helper=require(a39_0x4c4447(0xd8)),utilities=require('../../helpers/utilities'),constants=require(a39_0x4c4447(0x144)),{FRAMEWORKS}=require(a39_0x4c4447(0xf9)),{getConfigLoaderPath}=require(a39_0x4c4447(0x138)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a39_0x4c4447(0x106)),TestDetails=require(a39_0x4c4447(0x127)),TestHubHandler=require(a39_0x4c4447(0xbd)),PerformanceTester=require(a39_0x4c4447(0x117)),BrowserstackCLI=require(a39_0x4c4447(0x129)),PerformanceEvents=require(a39_0x4c4447(0xea))['EVENTS'],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a39_0x4c4447(0x165)),ClientTroubleShootingService=require(a39_0x4c4447(0x13f)),getUserPlaywrightConfig=async(_0x13b2f8,_0x5b71fa)=>{const _0x3af238=a39_0x4c4447,_0x34f8cf={'UDPtN':function(_0x3a6ac1){return _0x3a6ac1();},'kQXbd':function(_0x2649a2,_0x3b5578){return _0x2649a2(_0x3b5578);},'RtITI':_0x3af238(0xe9),'agVDu':_0x3af238(0x112)},_0x1ad840=!helper['isUndefined'](_0x13b2f8[_0x3af238(0xc2)]),_0x35d425=_0x1ad840?path['resolve'](process['cwd'](),_0x13b2f8[_0x3af238(0xc2)]):process[_0x3af238(0xe5)](),{resolveConfigFile:_0x249cc1,resolveConfigLocation:_0x452b1d}=helper['isYarnPnP']()?helper[_0x3af238(0x162)](..._0x34f8cf[_0x3af238(0x15e)](getConfigLoaderPath)):helper[_0x3af238(0x161)][_0x3af238(0x137)](null,_0x34f8cf['UDPtN'](getConfigLoaderPath)),_0xc72887=_0x249cc1?_0x34f8cf['kQXbd'](_0x249cc1,_0x35d425):helper[_0x3af238(0x163)](_0x34f8cf[_0x3af238(0x14c)](_0x452b1d,_0x35d425),[_0x34f8cf[_0x3af238(0x158)]]),_0x27a573={};if(_0x1ad840){const _0x1b3e51=_0x5b71fa[_0x3af238(0xb8)](_0x5818d3=>_0x5818d3===_0x3af238(0x10e)||_0x5818d3==='-c'||_0x5818d3[_0x3af238(0xef)](_0x3af238(0x112)));_0x5b71fa[_0x3af238(0x11a)](_0x1b3e51,_0x5b71fa[_0x1b3e51][_0x3af238(0xef)](_0x34f8cf[_0x3af238(0x104)])?0x1:0x2);}const _0x11d315={};return _0x11d315[_0x3af238(0x10c)]=_0xc72887,_0x11d315['config']=_0x27a573,_0x11d315;},handleO11yRerun=_0x36d191=>{const _0x137cff=a39_0x4c4447,_0x34f1fc={};_0x34f1fc['ehoAy']='--grep';const _0x3c7fa7=_0x34f1fc,_0x518b57=helper[_0x137cff(0xf2)](process[_0x137cff(0x141)][_0x137cff(0xc3)]);if(_0x518b57){const _0x5d07fd=process['env']['BROWSERSTACK_RERUN_TESTS'],_0x35d5cd=[];if(helper[_0x137cff(0x139)](_0x5d07fd)&&!helper[_0x137cff(0x15b)](_0x5d07fd)){_0x5d07fd['split'](',')[_0x137cff(0xd3)](_0xa6655f=>{const _0x4e2a30=_0x137cff;_0x35d5cd[_0x4e2a30(0x16d)]('('+_0xa6655f[_0x4e2a30(0xde)]()+')');});const _0x5e27ca='^'+_0x35d5cd[_0x137cff(0xf1)]('|')+'$';_0x36d191[_0x137cff(0x16d)](_0x3c7fa7[_0x137cff(0x10d)],_0x5e27ca);}}},spawnOriginalProcess=_0x14427b=>{const _0xe071ec=a39_0x4c4447,_0x93e5dd={'UpDMh':function(_0x59f93f,_0x2d240c,_0x2f3923,_0x285281){return _0x59f93f(_0x2d240c,_0x2f3923,_0x285281);},'XbEjB':_0xe071ec(0xc8),'dRByu':'npx','YGWBQ':'playwright','gDXlh':function(_0x553179,_0x13f144){return _0x553179===_0x13f144;},'TohxD':_0xe071ec(0x160),'ooAUO':_0xe071ec(0x14f)};_0x93e5dd[_0xe071ec(0x154)](spawn,helper[_0xe071ec(0x128)]()?_0x93e5dd[_0xe071ec(0x119)]:_0x93e5dd[_0xe071ec(0x103)],[_0x93e5dd['YGWBQ'],..._0x14427b[_0xe071ec(0x15d)](0x1)],{'shell':_0x93e5dd[_0xe071ec(0xcc)](process[_0xe071ec(0x157)],_0x93e5dd[_0xe071ec(0x132)]),'stdio':_0x93e5dd['ooAUO'],'cwd':process[_0xe071ec(0xe5)]()});},isTestCommand=(_0x83e560,_0x2344f6)=>{const _0x268cdc=a39_0x4c4447,_0x29369={};_0x29369[_0x268cdc(0x151)]=function(_0x1518a,_0x41dbb1){return _0x1518a>_0x41dbb1;},_0x29369[_0x268cdc(0x147)]=function(_0x2ea99b,_0x4aef0c){return _0x2ea99b===_0x4aef0c;},_0x29369[_0x268cdc(0x100)]='test';const _0x13ec8e=_0x29369;if(_0x13ec8e[_0x268cdc(0x151)](_0x2344f6[_0x268cdc(0xfb)],0x1)&&_0x13ec8e['lZsMM'](_0x2344f6[0x1],_0x13ec8e[_0x268cdc(0x100)]))return!![];return![];};async function run(_0x4e2151,_0x5b86a5,_0x77a862){const _0x2f0249=a39_0x4c4447,_0x1e8fb1={'ByrRW':function(_0x159193){return _0x159193();},'vvkRF':_0x2f0249(0xb1),'mtXrp':function(_0x3c4f9e,_0x2e093e){return _0x3c4f9e+_0x2e093e;},'HloYd':_0x2f0249(0x166),'CJMHL':function(_0xa2d76c,_0x7f0883){return _0xa2d76c(_0x7f0883);},'vLOEv':_0x2f0249(0xfd),'nupoi':_0x2f0249(0x10a),'jDsZH':_0x2f0249(0x12f),'TTZhj':function(_0x5d3669,_0x5402c9){return _0x5d3669<_0x5402c9;},'CSdfr':function(_0x5aa6fd,_0x2176f9){return _0x5aa6fd===_0x2176f9;},'EAeNv':_0x2f0249(0x102),'ihkKl':_0x2f0249(0x13d),'tzwsx':function(_0x2a910b,_0xe3d444){return _0x2a910b>=_0xe3d444;},'YJWUB':_0x2f0249(0xf0),'rZnVf':function(_0x997657,_0x12b60c){return _0x997657!=_0x12b60c;},'lJvPE':function(_0x35be6a,_0x8c7328,_0x20b009){return _0x35be6a(_0x8c7328,_0x20b009);},'EUuVz':_0x2f0249(0x11f),'xdYgV':function(_0x4cd896,_0x1b64b1){return _0x4cd896(_0x1b64b1);},'rOKRY':function(_0xb6ea63,_0x6d3166){return _0xb6ea63(_0x6d3166);},'cQyix':_0x2f0249(0x116),'zwdEJ':'playwright-browserstack-sdk.config.cjs','xpLBI':'playwright-browserstack-sdk.config.js','uhSbp':function(_0x152355,_0x131b15){return _0x152355-_0x131b15;},'lKTCv':_0x2f0249(0xee),'pTXFU':function(_0x1e03f2,_0x2b5352){return _0x1e03f2>_0x2b5352;},'iblRJ':function(_0x426de2,_0x3a5236,_0x5806b2,_0x4f6435){return _0x426de2(_0x3a5236,_0x5806b2,_0x4f6435);},'RYzhZ':_0x2f0249(0xc8),'ZzDvT':_0x2f0249(0x164),'AcHif':_0x2f0249(0x120),'EOkTC':_0x2f0249(0x13b),'VpycZ':_0x2f0249(0x10e),'gJWNi':_0x2f0249(0x160),'ODWvN':function(_0x4db392,_0x2d9a24){return _0x4db392===_0x2d9a24;},'fxppz':_0x2f0249(0x14f),'rdeQS':_0x2f0249(0xdb),'qXKKT':function(_0x231f93,_0x3bd3e9){return _0x231f93|_0x3bd3e9;},'zCnJq':function(_0x5a609a,_0x4fa95c){return _0x5a609a+_0x4fa95c;},'DuITl':_0x2f0249(0xe6),'ruBUJ':function(_0x3f7383,_0x2e286b){return _0x3f7383+_0x2e286b;},'YlxIy':'Error\x20in\x20deleting\x20playwright\x20results','qwCNe':function(_0x22177d,_0x1896cd,_0x9cd327){return _0x22177d(_0x1896cd,_0x9cd327);},'UhSBe':function(_0x113401,_0x2c9840){return _0x113401(_0x2c9840);}};try{const _0x1015e2=path[_0x2f0249(0xf1)](helper[_0x2f0249(0x16c)](),_0x1e8fb1['vvkRF']);try{fs[_0x2f0249(0xb5)](_0x1015e2,_0x1e8fb1[_0x2f0249(0xae)](fs[_0x2f0249(0xcf)][_0x2f0249(0x14b)],fs[_0x2f0249(0xcf)]['W_OK']));}catch(_0xb52d7e){ClientTroubleShootingService[_0x2f0249(0x142)]();}}catch(_0x4d3d81){logger[_0x2f0249(0xb0)](_0x1e8fb1[_0x2f0249(0xe4)](_0x1e8fb1[_0x2f0249(0x13c)],_0x4d3d81));}try{const _0x1be2a6=path[_0x2f0249(0xf1)](helper[_0x2f0249(0x16c)](),_0x1e8fb1[_0x2f0249(0xcd)],_0x1e8fb1[_0x2f0249(0xc0)]);fs[_0x2f0249(0x15c)](_0x1be2a6)&&fs[_0x2f0249(0xdd)](_0x1be2a6);}catch(_0x2d90e1){logger[_0x2f0249(0xb0)](_0x1e8fb1[_0x2f0249(0xf5)](_0x1e8fb1[_0x2f0249(0xd9)],_0x2d90e1));}if(!_0x1e8fb1[_0x2f0249(0xdf)](isTestCommand,_0x4e2151,_0x5b86a5)){_0x1e8fb1[_0x2f0249(0xfe)](spawnOriginalProcess,_0x5b86a5);return;}await PerformanceTester[_0x2f0249(0x15a)](PerformanceEvents[_0x2f0249(0xbe)],async()=>{const _0x47bd06=_0x2f0249,_0x167508={'IAFVX':function(_0xe3b2a9,_0x109941){const _0x5bd59d=a39_0x3cce;return _0x1e8fb1[_0x5bd59d(0x14a)](_0xe3b2a9,_0x109941);},'IKlVZ':_0x1e8fb1[_0x47bd06(0xcd)],'WQnon':_0x1e8fb1[_0x47bd06(0xc0)],'KfSdW':function(_0x52411a,_0x529300){return _0x1e8fb1['mtXrp'](_0x52411a,_0x529300);},'PVihT':_0x1e8fb1[_0x47bd06(0xe1)]};if(!_0x77a862[_0x47bd06(0xc2)]){logger[_0x47bd06(0xb2)](_0x1e8fb1['jDsZH']);return;}await _0x77a862[_0x47bd06(0xb9)](_0x4e2151),CLIUtils[_0x47bd06(0x146)](FRAMEWORKS[_0x47bd06(0x14e)],FRAMEWORKS[_0x47bd06(0x14e)]),BrowserstackCLI[_0x47bd06(0xf3)]()['setBrowserstackConfig'](_0x77a862[_0x47bd06(0xc2)],_0x77a862[_0x47bd06(0x10f)],_0x77a862[_0x47bd06(0x107)]),await BrowserstackCLI[_0x47bd06(0xf3)]()[_0x47bd06(0xf7)]();for(var _0x4e058f=0x0;_0x1e8fb1[_0x47bd06(0xf6)](_0x4e058f,constants['INTERNALLY_USED_ENV_VARS'][_0x47bd06(0xfb)]);_0x4e058f++){var _0x4484ad=constants['INTERNALLY_USED_ENV_VARS'][_0x4e058f];process['env'][_0x4484ad]&&await ClientTroubleShootingService['reportConflictingEnvVarIssue'](_0x4484ad);}const _0x11bf38=BrowserstackCLI[_0x47bd06(0xf3)]()[_0x47bd06(0x123)]();!helper[_0x47bd06(0x11e)](_0x11bf38['browserstackAutomation'])&&(process[_0x47bd06(0x141)]['BROWSERSTACK_AUTOMATION']=!![]);_0x1e8fb1['CSdfr'](_0x11bf38['browserstackAutomation'],![])&&(process[_0x47bd06(0x141)][_0x47bd06(0x15f)]=_0x1e8fb1[_0x47bd06(0xe2)],_0x5b86a5=_0x5b86a5[_0x47bd06(0xda)](_0x437f2f=>_0x437f2f!=='--disable-browserstack-automation'));const _0x105ea3=_0x5b86a5['indexOf'](_0x1e8fb1[_0x47bd06(0x145)]);(_0x1e8fb1[_0x47bd06(0xcb)](_0x105ea3,0x0)||_0x1e8fb1[_0x47bd06(0x150)](_0x11bf38[_0x47bd06(0xc5)],![]))&&(process[_0x47bd06(0x141)][_0x47bd06(0x122)]=_0x1e8fb1[_0x47bd06(0xe2)],_0x5b86a5=_0x5b86a5[_0x47bd06(0xda)](_0x56b670=>_0x56b670!==_0x47bd06(0x13d)));!helper['isUndefined'](_0x77a862[_0x47bd06(0x107)])&&_0x77a862[_0x47bd06(0x107)][_0x47bd06(0x12b)](_0x1e8fb1[_0x47bd06(0x118)])&&(process[_0x47bd06(0x141)][_0x47bd06(0x15f)]=_0x77a862['cliConfig']['get'](_0x1e8fb1[_0x47bd06(0x118)])||!![]);_0x1e8fb1['rZnVf'](_0x77a862['config'][_0x47bd06(0xc5)],null)&&!helper['isTrue'](process[_0x47bd06(0x141)][_0x47bd06(0x122)])&&(process[_0x47bd06(0x141)][_0x47bd06(0x122)]=process[_0x47bd06(0x141)][_0x47bd06(0x122)]||_0x77a862[_0x47bd06(0xc2)][_0x47bd06(0xc5)]);const _0x5518b3=!helper['isFalse'](process['env']['BROWSERSTACK_TEST_OBSERVABILITY']);_0x77a862['config'][_0x47bd06(0x109)]&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x47bd06(0xb4)](_0x77a862[_0x47bd06(0xc2)][_0x47bd06(0x109)]));let _0x5d75d9=![];_0x77a862[_0x47bd06(0xc2)][_0x47bd06(0x133)]&&(_0x5d75d9=!![],process['env'][_0x47bd06(0x131)]=_0x77a862['config']['accessibility']);const _0x48b2da=_0x5b86a5[_0x47bd06(0x168)](),_0x2b0003=await _0x1e8fb1[_0x47bd06(0x12e)](getUserPlaywrightConfig,_0x4e2151,_0x5b86a5);if(helper['isUndefined'](_0x2b0003)){_0x1e8fb1['CJMHL'](spawnOriginalProcess,_0x48b2da);return;}const _0x156b2f=_0x2b0003['path']?path[_0x47bd06(0xbc)](_0x2b0003[_0x47bd06(0x10c)]):process[_0x47bd06(0xe5)]();process[_0x47bd06(0x141)][_0x47bd06(0xc1)]=_0x156b2f,await PerformanceTester[_0x47bd06(0x15a)](PerformanceEvents[_0x47bd06(0xba)],async()=>{const _0x719e37=_0x47bd06;!BrowserstackCLI[_0x719e37(0xf3)]()[_0x719e37(0x130)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0x719e37(0x14e)],_0x77a862),_0x5518b3&&_0x167508[_0x719e37(0x135)](handleO11yRerun,_0x5b86a5);})();if(!BrowserstackCLI[_0x47bd06(0xf3)]()[_0x47bd06(0x130)]()){let _0x5a5586=_0x1e8fb1[_0x47bd06(0x150)](process[_0x47bd06(0x141)][_0x47bd06(0x131)],_0x1e8fb1[_0x47bd06(0x114)]);_0x5a5586=_0x5a5586||_0x1e8fb1[_0x47bd06(0xd0)](checkAccessibilityPlatformConfig,_0x77a862[_0x47bd06(0xc2)]),process[_0x47bd06(0x141)][_0x47bd06(0x131)]=_0x5a5586,_0x5a5586&&_0x1e8fb1[_0x47bd06(0xbf)](setAccessibilityCapabilities,_0x77a862['config']);}const _0x1ebeae=path[_0x47bd06(0xf1)](_0x2b0003[_0x47bd06(0x10c)]?path[_0x47bd06(0xbc)](_0x2b0003[_0x47bd06(0x10c)]):process[_0x47bd06(0xe5)](),_0x1e8fb1[_0x47bd06(0x125)]);fs[_0x47bd06(0x121)](_0x1ebeae,helper[_0x47bd06(0x105)](_0x77a862[_0x47bd06(0xc2)])),process[_0x47bd06(0x141)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x1ebeae,helper['clearTempPWConfig']();let _0x53f326='';_0x1e8fb1[_0x47bd06(0x150)](helper['getPackageType'](),constants[_0x47bd06(0xd1)]['MODULE'])?_0x53f326=_0x1e8fb1[_0x47bd06(0xce)]:_0x53f326=_0x1e8fb1[_0x47bd06(0xeb)];let _0x15ef57='';if(helper['isTypescriptProject'](_0x2b0003[_0x47bd06(0x10c)])){_0x15ef57='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x426350=_0x53f326[_0x47bd06(0xc7)]('.');_0x426350[_0x1e8fb1['uhSbp'](_0x426350[_0x47bd06(0xfb)],0x1)]='ts',_0x53f326=_0x426350['join']('.'),logger[_0x47bd06(0xb0)](_0x1e8fb1['mtXrp'](_0x1e8fb1[_0x47bd06(0x115)],_0x53f326));}else _0x15ef57=_0x47bd06(0x16a);const _0x595684=path['join'](_0x2b0003[_0x47bd06(0x10c)]?path[_0x47bd06(0xbc)](_0x2b0003[_0x47bd06(0x10c)]):process[_0x47bd06(0xe5)](),_0x53f326);let _0x4d4b4d=_0x2b0003[_0x47bd06(0x10c)]?_0x2b0003[_0x47bd06(0x10c)]:'';_0x4d4b4d=_0x1e8fb1[_0x47bd06(0x167)](_0x4d4b4d[_0x47bd06(0xfb)],0x0)?path[_0x47bd06(0x108)](_0x4d4b4d):'',process['env']['USER_CONFIG_DETAILS_PATH']=_0x4d4b4d;const _0x3fdd0f=helper[_0x47bd06(0xec)](_0x77a862[_0x47bd06(0xc2)]),_0x3aa2f7=helper[_0x47bd06(0x14d)](_0x77a862[_0x47bd06(0xc2)]);logger[_0x47bd06(0xb0)](_0x47bd06(0xca)+_0x3fdd0f),logger['debug'](_0x47bd06(0xbb)+_0x3aa2f7);_0x3fdd0f&&(_0x15ef57=_0x1e8fb1[_0x47bd06(0x149)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x3fdd0f+'\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22'+_0x3aa2f7+_0x47bd06(0xf4),_0x15ef57));helper[_0x47bd06(0x126)]({},_0x5b86a5),fs[_0x47bd06(0x121)](_0x595684,_0x15ef57),PerformanceTester[_0x47bd06(0x16b)](PerformanceEvents['SDK_SETUP']);const _0x575e11=_0x1e8fb1[_0x47bd06(0x12c)](spawn,helper['isYarnPnP']()?_0x1e8fb1[_0x47bd06(0x159)]:_0x1e8fb1[_0x47bd06(0xe0)],[_0x1e8fb1[_0x47bd06(0xd4)],_0x1e8fb1[_0x47bd06(0x111)],_0x1e8fb1[_0x47bd06(0xe3)],_0x1e8fb1['CSdfr'](process[_0x47bd06(0x157)],_0x1e8fb1[_0x47bd06(0x134)])?'\x22'+_0x595684+'\x22':_0x595684,..._0x5b86a5[_0x47bd06(0x15d)](0x2)],{'shell':_0x1e8fb1[_0x47bd06(0xd7)](process['platform'],_0x1e8fb1[_0x47bd06(0x134)]),'stdio':_0x1e8fb1[_0x47bd06(0x101)],'cwd':process[_0x47bd06(0xe5)](),'env':Object[_0x47bd06(0x140)]({},process[_0x47bd06(0x141)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x47bd06(0x10b)](_0x4e2151),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x77a862[_0x47bd06(0xc2)][_0x47bd06(0xe8)][_0x47bd06(0xb7)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x77a862[_0x47bd06(0xc2)][_0x47bd06(0xe8)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x77a862[_0x47bd06(0xc2)][_0x47bd06(0xc6)]})}),_0xcbf35e=()=>{const _0x2a5b28=_0x47bd06;try{const _0x40b7cc=path['join'](helper[_0x2a5b28(0x16c)](),_0x167508[_0x2a5b28(0xc9)],_0x167508['WQnon']);if(fs[_0x2a5b28(0x15c)](_0x40b7cc)){let _0x3317b7=fs[_0x2a5b28(0x148)](_0x40b7cc);_0x3317b7=JSON[_0x2a5b28(0x143)](_0x3317b7),_0x77a862[_0x2a5b28(0x110)]=_0x3317b7,fs[_0x2a5b28(0xdd)](_0x40b7cc);}}catch(_0x4c3bf0){logger[_0x2a5b28(0xb0)](_0x167508['KfSdW'](_0x167508[_0x2a5b28(0x136)],_0x4c3bf0));}};_0x575e11['on'](_0x1e8fb1[_0x47bd06(0xed)],async _0xea86a2=>{const _0x2db5cb=_0x47bd06;try{PerformanceTester['start'](PerformanceEvents[_0x2db5cb(0xf8)]),_0x1e8fb1[_0x2db5cb(0xb3)](_0xcbf35e),await TestHubHandler[_0x2db5cb(0xdc)](),await ClientTroubleShootingService[_0x2db5cb(0xaf)]();const _0xddccc4=BrowserstackCLI[_0x2db5cb(0xc4)]();await BrowserstackCLI[_0x2db5cb(0xf3)]()[_0x2db5cb(0xdc)](),TestDetails[_0x2db5cb(0x155)](),_0x1e8fb1[_0x2db5cb(0xb3)](printBuildLink),await utilities[_0x2db5cb(0x11b)](_0x77a862,_0xddccc4),process[_0x2db5cb(0xd2)]=_0xea86a2,logger[_0x2db5cb(0xb0)](_0x2db5cb(0xe7)+_0xea86a2),logger['info'](_0x2db5cb(0xb6)+_0x595684),fs[_0x2db5cb(0xdd)](_0x595684);fs['existsSync'](_0x1ebeae)&&(logger[_0x2db5cb(0xb0)]('Deleting\x20'+_0x1ebeae),fs[_0x2db5cb(0xdd)](_0x1ebeae));const _0x434da0=fs[_0x2db5cb(0x124)](path[_0x2db5cb(0xf1)](helper[_0x2db5cb(0x16c)](),_0x1e8fb1[_0x2db5cb(0xcd)]))[_0x2db5cb(0xda)](_0x3deb10=>_0x3deb10[_0x2db5cb(0xef)]('trace_'));_0x434da0[_0x2db5cb(0xd6)](_0x4c7db1=>{const _0x3c30ca=_0x2db5cb;fs[_0x3c30ca(0xdd)](path['join'](helper[_0x3c30ca(0x16c)](),_0x167508[_0x3c30ca(0xc9)],_0x4c7db1));});}catch(_0x267b6b){logger['debug'](_0x1e8fb1[_0x2db5cb(0x149)](_0x1e8fb1[_0x2db5cb(0x153)],_0x267b6b));}});})();}module['exports']=run;
|
|
2
|
+
'use strict';function a43_0xbf86(_0x300971,_0x402d0c){const _0x1dd559=a43_0x1dd5();return a43_0xbf86=function(_0xbf86e5,_0x3986f7){_0xbf86e5=_0xbf86e5-0x1a7;let _0x5a12d9=_0x1dd559[_0xbf86e5];return _0x5a12d9;},a43_0xbf86(_0x300971,_0x402d0c);}function a43_0x1dd5(){const _0x4a56fb=['4181464MVIXpn','lkxtL','588TxYHtY','isRunning','has','--disable-browserstack-automation','QhwTH','qsVCE','exitCode','../../helpers/logger','TAaij','bxQxU','debug','automation','rmrIw','uUMsW','path','clearTempPWConfig','Error\x20in\x20getting\x20funnel\x20data\x20results','platform','858102fLrNVU','dirname','SDK_POST_INITIALIZE','YVZml','taOOR','YYjWi','accessibility','stringify','pWZSZ','writeFileSync','getConfigPath','jBSOV','anuHL','getInstance','requirePWModule','--grep','testContextOptions','slice','reportFinalDetectionState','Playwright\x20process\x20exited\x20with\x20code\x20','aKCne','3467336Wneixk','filter','skIlc','vWPKn','SDK_CLEANUP','apply','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/testhub/testhubHandler','JPFtC','FZTnq','requireConfigLoaderYarnPnP','46054503MEhKzP','VdNGw','pRboT','push','USER_CONFIG_DETAILS_PATH','--config=','dNvlu','reportDotBrowserStackFolderNotAccessibleIssue','JdRAu','../../helpers/performance/constants','SpAqh','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','BROWSERSTACK_TEST_ACCESSIBILITY_YML','yarn','rofbp','split','jAYfZ','accessSync','npx','start','eBhzQ','GCULr','brpUJ','forEach','ybaug','isUndefined','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','UDYKt','./reporter/test-details','readdirSync','inherit','join','homedir','isYarnPnP','GztLC','SDK_SETUP','measureWrapper','INTERNALLY_USED_ENV_VARS','jHXEp','LqQtb','playwright','unlinkSync','../../helpers/performance/performance-tester','../../helpers/test-observability/utils','cliConfig','eUhHx','validateRerunTestList','info','playwright-browserstack-sdk.config.cjs','../../helpers/BrowserStackSetup','get','PACKAGE_TYPE','isTrue','hJSBa','../../helpers/helper','SDK_PRE_INITIALIZE','isFalse','cwd','BROWSERSTACK_RERUN','Deleting\x20','../v2/cliUtils','Updated\x20config\x20file\x20name\x20to\x20-\x20','246eCdvjS','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','1669334merPYK','splice','startsWith','length','nestedKeyValue','isCLIEnabled','testObservability','indexOf','accessibilityOptions','skipSessionName','exports','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','../utils/constants','R_OK','BROWSERSTACK_SETUP_CONFIG_PATH','constants','setFrameworkDetail','browserstackAutomation','parse','false','3342CdEpUe','../../helpers/utilities','test','shutdown','reportConflictingEnvVarIssue','xuRwp','resolvedConfigFile','kvYkX','52685BiPeAZ','cSDWk','config','Error\x20in\x20closing\x20playwright','ogObO','resolve','gywAE','BROWSERSTACK_AUTOMATION','../utils/clientTroubleshootingService','stMmQ','assign','PLAYWRIGHT','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','trim','.browserstack','playwright-browserstack-sdk.config.js','trace_','win32','iTEsf','child_process','CDdGE','orqEd','Proxy\x20url\x20:\x20','Error\x20in\x20deleting\x20playwright\x20results','BhDVP','hQjrM','BBrGW','existsSync','winstonLogger','MODULE','--config','ysLve','./reporter/pwUtils','fOgjh','getConfig','W_OK','launchBuild','--disable-test-observability','browserstackSetupConfig.json','logLevel','env'];a43_0x1dd5=function(){return _0x4a56fb;};return a43_0x1dd5();}const a43_0x2adca4=a43_0xbf86;(function(_0x413767,_0x45176c){const _0x1574f2=a43_0xbf86,_0x108426=_0x413767();while(!![]){try{const _0x3a3518=-parseInt(_0x1574f2(0x1b5))/0x1+parseInt(_0x1574f2(0x1b3))/0x2*(-parseInt(_0x1574f2(0x1c9))/0x3)+-parseInt(_0x1574f2(0x1fa))/0x4+parseInt(_0x1574f2(0x1d1))/0x5*(-parseInt(_0x1574f2(0x1fc))/0x6)+parseInt(_0x1574f2(0x20e))/0x7+-parseInt(_0x1574f2(0x223))/0x8+parseInt(_0x1574f2(0x22e))/0x9;if(_0x3a3518===_0x45176c)break;else _0x108426['push'](_0x108426['shift']());}catch(_0x1542b0){_0x108426['push'](_0x108426['shift']());}}}(a43_0x1dd5,0xe1184));const fs=require('fs'),path=require(a43_0x2adca4(0x20a)),{spawn}=require(a43_0x2adca4(0x1e4)),{format}=require('util'),logger=require(a43_0x2adca4(0x203))[a43_0x2adca4(0x1ed)],{default:BrowserStackSetup}=require(a43_0x2adca4(0x25f)),helper=require(a43_0x2adca4(0x1ab)),utilities=require(a43_0x2adca4(0x1ca)),constants=require(a43_0x2adca4(0x1c1)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a43_0x2adca4(0x1f1)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a43_0x2adca4(0x259)),TestDetails=require(a43_0x2adca4(0x24a)),TestHubHandler=require(a43_0x2adca4(0x22a)),PerformanceTester=require(a43_0x2adca4(0x258)),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require(a43_0x2adca4(0x237))['EVENTS'],CLIUtils=require(a43_0x2adca4(0x1b1)),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require(a43_0x2adca4(0x1d9)),getUserPlaywrightConfig=async(_0x48425f,_0x43f402)=>{const _0x401262=a43_0x2adca4,_0x11e9c0={'vWPKn':function(_0x8e018c){return _0x8e018c();},'RYlZO':function(_0x4f3226){return _0x4f3226();},'eBhzQ':function(_0x5f3df3,_0x349668){return _0x5f3df3(_0x349668);},'SpAqh':_0x401262(0x1cf),'UDYKt':_0x401262(0x233)},_0x13c0ba=!helper[_0x401262(0x247)](_0x48425f[_0x401262(0x1d3)]),_0x20bf1b=_0x13c0ba?path[_0x401262(0x1d6)](process['cwd'](),_0x48425f['config']):process[_0x401262(0x1ae)](),{resolveConfigFile:_0x4e95bb,resolveConfigLocation:_0x6f6e1e}=helper[_0x401262(0x24f)]()?helper[_0x401262(0x22d)](..._0x11e9c0[_0x401262(0x226)](getConfigLoaderPath)):helper[_0x401262(0x21c)][_0x401262(0x228)](null,_0x11e9c0['RYlZO'](getConfigLoaderPath)),_0x33274f=_0x4e95bb?_0x11e9c0[_0x401262(0x242)](_0x4e95bb,_0x20bf1b):helper[_0x401262(0x1b9)](_0x11e9c0['eBhzQ'](_0x6f6e1e,_0x20bf1b),[_0x11e9c0[_0x401262(0x238)]]),_0x505702={};if(_0x13c0ba){const _0x125719=_0x43f402['findIndex'](_0xdbe318=>_0xdbe318===_0x401262(0x1ef)||_0xdbe318==='-c'||_0xdbe318[_0x401262(0x1b7)](_0x401262(0x233)));_0x43f402[_0x401262(0x1b6)](_0x125719,_0x43f402[_0x125719][_0x401262(0x1b7)](_0x11e9c0[_0x401262(0x249)])?0x1:0x2);}const _0x23350b={};return _0x23350b[_0x401262(0x20a)]=_0x33274f,_0x23350b['config']=_0x505702,_0x23350b;},handleO11yRerun=_0x408ff0=>{const _0xed9861=a43_0x2adca4,_0xf52ffe={};_0xf52ffe['brpUJ']=_0xed9861(0x21d);const _0x420c8e=_0xf52ffe,_0x42fb2a=helper[_0xed9861(0x1a9)](process['env'][_0xed9861(0x1af)]);if(_0x42fb2a){const _0x5d76c8=process[_0xed9861(0x1f9)]['BROWSERSTACK_RERUN_TESTS'],_0x5f10de=[];if(helper[_0xed9861(0x25c)](_0x5d76c8)&&!helper[_0xed9861(0x247)](_0x5d76c8)){_0x5d76c8[_0xed9861(0x23d)](',')['map'](_0x3cbd50=>{const _0x2e04fe=_0xed9861;_0x5f10de[_0x2e04fe(0x231)]('('+_0x3cbd50[_0x2e04fe(0x1de)]()+')');});const _0x4884a1='^'+_0x5f10de['join']('|')+'$';_0x408ff0[_0xed9861(0x231)](_0x420c8e[_0xed9861(0x244)],_0x4884a1);}}},spawnOriginalProcess=_0x1b2e07=>{const _0x396b57=a43_0x2adca4,_0x35a795={'uUMsW':function(_0x48593,_0x1de44d,_0x4a5a92,_0x193da2){return _0x48593(_0x1de44d,_0x4a5a92,_0x193da2);},'JPFtC':_0x396b57(0x23b),'CDdGE':_0x396b57(0x240),'xuRwp':_0x396b57(0x256),'FurUj':function(_0x183cf7,_0x4c0b0d){return _0x183cf7===_0x4c0b0d;},'cSDWk':_0x396b57(0x1e2),'ysLve':'inherit'};_0x35a795[_0x396b57(0x209)](spawn,helper[_0x396b57(0x24f)]()?_0x35a795[_0x396b57(0x22b)]:_0x35a795[_0x396b57(0x1e5)],[_0x35a795[_0x396b57(0x1ce)],..._0x1b2e07[_0x396b57(0x21f)](0x1)],{'shell':_0x35a795['FurUj'](process[_0x396b57(0x20d)],_0x35a795[_0x396b57(0x1d2)]),'stdio':_0x35a795[_0x396b57(0x1f0)],'cwd':process['cwd']()});},isTestCommand=(_0x333617,_0xaa6e08)=>{const _0xb99e9e=a43_0x2adca4,_0x1f6654={};_0x1f6654[_0xb99e9e(0x200)]=function(_0x4fc363,_0x1a3b9d){return _0x4fc363>_0x1a3b9d;},_0x1f6654['ogObO']=function(_0x2132be,_0x491e7d){return _0x2132be===_0x491e7d;},_0x1f6654[_0xb99e9e(0x250)]=_0xb99e9e(0x1cb);const _0x15d21d=_0x1f6654;if(_0x15d21d[_0xb99e9e(0x200)](_0xaa6e08['length'],0x1)&&_0x15d21d[_0xb99e9e(0x1d5)](_0xaa6e08[0x1],_0x15d21d[_0xb99e9e(0x250)]))return!![];return![];};async function run(_0x200ba0,_0xf802da,_0x2d7b17){const _0x34b380=a43_0x2adca4,_0x1543e3={'stMmQ':_0x34b380(0x1df),'rmrIw':function(_0x350616){return _0x350616();},'TAaij':function(_0x9c9c88){return _0x9c9c88();},'rofbp':function(_0x19dd38,_0x5f0834){return _0x19dd38+_0x5f0834;},'jAYfZ':_0x34b380(0x1d4),'ybaug':function(_0x4f082a,_0x5be87b){return _0x4f082a(_0x5be87b);},'jHXEp':'pw_result.json','jBSOV':function(_0x3c1301,_0x47dd4b){return _0x3c1301+_0x47dd4b;},'orqEd':_0x34b380(0x20c),'voXwf':'BrowserStack\x20config\x20file\x20not\x20found.','lkxtL':function(_0x8b071a,_0xd75228){return _0x8b071a<_0xd75228;},'bxQxU':function(_0xf8aac4,_0x5a73ca){return _0xf8aac4===_0x5a73ca;},'iTEsf':_0x34b380(0x1c8),'XNplz':_0x34b380(0x1f6),'YVZml':function(_0x1d37a5,_0x5aa78c){return _0x1d37a5>=_0x5aa78c;},'TGWAZ':_0x34b380(0x207),'iZWyp':function(_0x356a2c,_0x31a046){return _0x356a2c!=_0x31a046;},'FZTnq':function(_0x4bbf6a,_0x1f2b12,_0x4a5ce9){return _0x4bbf6a(_0x1f2b12,_0x4a5ce9);},'dNvlu':'true','uqLSU':_0x34b380(0x1f7),'skIlc':_0x34b380(0x25e),'fOgjh':_0x34b380(0x1e0),'pRboT':function(_0xe8a284,_0x47e088){return _0xe8a284-_0x47e088;},'LqQtb':_0x34b380(0x1b2),'aZyFW':function(_0x57a2e4,_0x9d6725){return _0x57a2e4>_0x9d6725;},'eUhHx':function(_0x53b387,_0x4d0b7b,_0x2c63c8,_0x1ae8ec){return _0x53b387(_0x4d0b7b,_0x2c63c8,_0x1ae8ec);},'hJSBa':_0x34b380(0x23b),'GCULr':_0x34b380(0x240),'anuHL':_0x34b380(0x256),'kvYkX':'test','gywAE':'--config','hQjrM':function(_0x1de91f,_0x4ee8b5){return _0x1de91f===_0x4ee8b5;},'BBrGW':_0x34b380(0x1e2),'gIgTF':function(_0x1e6929,_0x38d3dd){return _0x1e6929===_0x38d3dd;},'taOOR':_0x34b380(0x24c),'BhDVP':'close','JdRAu':function(_0x24deb1,_0x325276){return _0x24deb1|_0x325276;},'qsVCE':function(_0x168fd5,_0x335495){return _0x168fd5+_0x335495;},'YYjWi':_0x34b380(0x1dd),'qHQPb':_0x34b380(0x1e8)};try{const _0x40337c=path[_0x34b380(0x24d)](helper['homedir'](),_0x1543e3[_0x34b380(0x1da)]);try{fs[_0x34b380(0x23f)](_0x40337c,_0x1543e3[_0x34b380(0x236)](fs[_0x34b380(0x1c4)][_0x34b380(0x1c2)],fs['constants'][_0x34b380(0x1f4)]));}catch(_0x357aab){ClientTroubleShootingService[_0x34b380(0x235)]();}}catch(_0x4d59fd){logger[_0x34b380(0x206)](_0x1543e3[_0x34b380(0x201)](_0x1543e3[_0x34b380(0x213)],_0x4d59fd));}try{const _0x571270=path[_0x34b380(0x24d)](helper[_0x34b380(0x24e)](),_0x1543e3[_0x34b380(0x1da)],_0x1543e3[_0x34b380(0x254)]);fs[_0x34b380(0x1ec)](_0x571270)&&fs['unlinkSync'](_0x571270);}catch(_0x1ab7b5){logger['debug'](_0x1543e3[_0x34b380(0x201)](_0x1543e3['qHQPb'],_0x1ab7b5));}if(!_0x1543e3[_0x34b380(0x22c)](isTestCommand,_0x200ba0,_0xf802da)){_0x1543e3[_0x34b380(0x246)](spawnOriginalProcess,_0xf802da);return;}await PerformanceTester[_0x34b380(0x252)](PerformanceEvents[_0x34b380(0x1ac)],async()=>{const _0x38fbc2=_0x34b380,_0x2d6166={'VdNGw':function(_0x126eab,_0x15e01c){const _0x1b1563=a43_0xbf86;return _0x1543e3[_0x1b1563(0x246)](_0x126eab,_0x15e01c);},'zTGkc':_0x1543e3[_0x38fbc2(0x1da)],'JvOXH':_0x1543e3[_0x38fbc2(0x254)],'pWZSZ':function(_0x1206c7,_0x4103b9){const _0x1de092=_0x38fbc2;return _0x1543e3[_0x1de092(0x219)](_0x1206c7,_0x4103b9);},'erDcb':_0x1543e3[_0x38fbc2(0x1e6)]};if(!_0x2d7b17[_0x38fbc2(0x1d3)]){logger['error'](_0x1543e3['voXwf']);return;}await _0x2d7b17['initialize'](_0x200ba0),CLIUtils[_0x38fbc2(0x1c5)](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x38fbc2(0x1dc)]),BrowserstackCLI[_0x38fbc2(0x21b)]()['setBrowserstackConfig'](_0x2d7b17[_0x38fbc2(0x1d3)],_0x2d7b17['configPath'],_0x2d7b17[_0x38fbc2(0x25a)]),await BrowserstackCLI[_0x38fbc2(0x21b)]()['bootstrap']();for(var _0x16cd2e=0x0;_0x1543e3[_0x38fbc2(0x1fb)](_0x16cd2e,constants['INTERNALLY_USED_ENV_VARS'][_0x38fbc2(0x1b8)]);_0x16cd2e++){var _0x34644d=constants[_0x38fbc2(0x253)][_0x16cd2e];process[_0x38fbc2(0x1f9)][_0x34644d]&&await ClientTroubleShootingService[_0x38fbc2(0x1cd)](_0x34644d);}const _0x4157d3=BrowserstackCLI[_0x38fbc2(0x21b)]()[_0x38fbc2(0x1f3)]();!helper[_0x38fbc2(0x1ad)](_0x4157d3[_0x38fbc2(0x1c6)])&&(process['env'][_0x38fbc2(0x1d8)]=!![]);_0x1543e3['bxQxU'](_0x4157d3[_0x38fbc2(0x1c6)],![])&&(process['env'][_0x38fbc2(0x1d8)]=_0x1543e3[_0x38fbc2(0x1e3)],_0xf802da=_0xf802da[_0x38fbc2(0x224)](_0x3f0ccb=>_0x3f0ccb!==_0x38fbc2(0x1ff)));const _0x24832c=_0xf802da[_0x38fbc2(0x1bc)](_0x1543e3['XNplz']);(_0x1543e3[_0x38fbc2(0x211)](_0x24832c,0x0)||_0x1543e3[_0x38fbc2(0x205)](_0x4157d3[_0x38fbc2(0x1bb)],![]))&&(process[_0x38fbc2(0x1f9)][_0x38fbc2(0x229)]=_0x1543e3[_0x38fbc2(0x1e3)],_0xf802da=_0xf802da['filter'](_0xb74b86=>_0xb74b86!=='--disable-test-observability'));!helper[_0x38fbc2(0x247)](_0x2d7b17['cliConfig'])&&_0x2d7b17[_0x38fbc2(0x25a)][_0x38fbc2(0x1fe)](_0x1543e3['TGWAZ'])&&(process[_0x38fbc2(0x1f9)][_0x38fbc2(0x1d8)]=_0x2d7b17[_0x38fbc2(0x25a)][_0x38fbc2(0x1a7)](_0x1543e3['TGWAZ'])||!![]);_0x1543e3['iZWyp'](_0x2d7b17['config'][_0x38fbc2(0x1bb)],null)&&!helper[_0x38fbc2(0x1a9)](process[_0x38fbc2(0x1f9)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process['env'][_0x38fbc2(0x229)]=process['env'][_0x38fbc2(0x229)]||_0x2d7b17['config'][_0x38fbc2(0x1bb)]);const _0x4519f5=!helper[_0x38fbc2(0x1ad)](process['env'][_0x38fbc2(0x229)]);_0x2d7b17[_0x38fbc2(0x1d3)][_0x38fbc2(0x1bd)]&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x38fbc2(0x215)](_0x2d7b17[_0x38fbc2(0x1d3)]['accessibilityOptions']));let _0x1b5ca7=![];_0x2d7b17['config'][_0x38fbc2(0x214)]&&(_0x1b5ca7=!![],process[_0x38fbc2(0x1f9)][_0x38fbc2(0x23a)]=_0x2d7b17['config']['accessibility']);const _0x538a4f=_0xf802da['concat'](),_0x56eba0=await _0x1543e3[_0x38fbc2(0x22c)](getUserPlaywrightConfig,_0x200ba0,_0xf802da);if(helper['isUndefined'](_0x56eba0)){_0x1543e3[_0x38fbc2(0x246)](spawnOriginalProcess,_0x538a4f);return;}const _0x1f66c9=_0x56eba0[_0x38fbc2(0x20a)]?path['dirname'](_0x56eba0['path']):process[_0x38fbc2(0x1ae)]();process[_0x38fbc2(0x1f9)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x1f66c9,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x38fbc2(0x210)],async()=>{const _0x424092=_0x38fbc2;!BrowserstackCLI['getInstance']()[_0x424092(0x1fd)]()&&await TestHubHandler[_0x424092(0x1f5)](FRAMEWORKS['PLAYWRIGHT'],_0x2d7b17),_0x4519f5&&_0x2d6166[_0x424092(0x22f)](handleO11yRerun,_0xf802da);})();if(!BrowserstackCLI[_0x38fbc2(0x21b)]()['isRunning']()){let _0x5e3f5c=_0x1543e3[_0x38fbc2(0x205)](process[_0x38fbc2(0x1f9)][_0x38fbc2(0x23a)],_0x1543e3[_0x38fbc2(0x234)]);_0x5e3f5c=_0x5e3f5c||_0x1543e3[_0x38fbc2(0x246)](checkAccessibilityPlatformConfig,_0x2d7b17['config']),process['env'][_0x38fbc2(0x23a)]=_0x5e3f5c,_0x5e3f5c&&_0x1543e3[_0x38fbc2(0x246)](setAccessibilityCapabilities,_0x2d7b17[_0x38fbc2(0x1d3)]);}const _0x1f566f=path[_0x38fbc2(0x24d)](_0x56eba0[_0x38fbc2(0x20a)]?path[_0x38fbc2(0x20f)](_0x56eba0['path']):process[_0x38fbc2(0x1ae)](),_0x1543e3['uqLSU']);fs[_0x38fbc2(0x217)](_0x1f566f,helper['serializeToYamlString'](_0x2d7b17[_0x38fbc2(0x1d3)])),process[_0x38fbc2(0x1f9)][_0x38fbc2(0x1c3)]=_0x1f566f,helper[_0x38fbc2(0x20b)]();let _0x14cd28='';_0x1543e3[_0x38fbc2(0x205)](helper['getPackageType'](),constants[_0x38fbc2(0x1a8)][_0x38fbc2(0x1ee)])?_0x14cd28=_0x1543e3[_0x38fbc2(0x225)]:_0x14cd28=_0x1543e3[_0x38fbc2(0x1f2)];let _0x568704='';if(helper['isTypescriptProject'](_0x56eba0[_0x38fbc2(0x20a)])){_0x568704=_0x38fbc2(0x248);const _0x5c9c20=_0x14cd28[_0x38fbc2(0x23d)]('.');_0x5c9c20[_0x1543e3[_0x38fbc2(0x230)](_0x5c9c20[_0x38fbc2(0x1b8)],0x1)]='ts',_0x14cd28=_0x5c9c20[_0x38fbc2(0x24d)]('.'),logger['debug'](_0x1543e3[_0x38fbc2(0x23c)](_0x1543e3[_0x38fbc2(0x255)],_0x14cd28));}else _0x568704='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x5019e5=path[_0x38fbc2(0x24d)](_0x56eba0['path']?path[_0x38fbc2(0x20f)](_0x56eba0[_0x38fbc2(0x20a)]):process[_0x38fbc2(0x1ae)](),_0x14cd28);let _0x2b5967=_0x56eba0[_0x38fbc2(0x20a)]?_0x56eba0[_0x38fbc2(0x20a)]:'';_0x2b5967=_0x1543e3['aZyFW'](_0x2b5967['length'],0x0)?path['resolve'](_0x2b5967):'',process[_0x38fbc2(0x1f9)][_0x38fbc2(0x232)]=_0x2b5967;const _0x23b209=helper['getProxyUrl'](_0x2d7b17[_0x38fbc2(0x1d3)]),_0x441bd3=helper['getNoProxy'](_0x2d7b17[_0x38fbc2(0x1d3)]);logger[_0x38fbc2(0x206)](_0x38fbc2(0x1e7)+_0x23b209),logger[_0x38fbc2(0x206)]('No\x20Proxy\x20:\x20'+_0x441bd3);_0x23b209&&(_0x568704=_0x1543e3[_0x38fbc2(0x219)](_0x38fbc2(0x239)+_0x23b209+_0x38fbc2(0x1c0)+_0x441bd3+_0x38fbc2(0x1b4),_0x568704));helper['filterBrowserstackArgs']({},_0xf802da),fs[_0x38fbc2(0x217)](_0x5019e5,_0x568704),PerformanceTester['end'](PerformanceEvents[_0x38fbc2(0x251)]);const _0x25df48=_0x1543e3[_0x38fbc2(0x25b)](spawn,helper[_0x38fbc2(0x24f)]()?_0x1543e3[_0x38fbc2(0x1aa)]:_0x1543e3[_0x38fbc2(0x243)],[_0x1543e3[_0x38fbc2(0x21a)],_0x1543e3[_0x38fbc2(0x1d0)],_0x1543e3[_0x38fbc2(0x1d7)],_0x1543e3[_0x38fbc2(0x1ea)](process[_0x38fbc2(0x20d)],_0x1543e3['BBrGW'])?'\x22'+_0x5019e5+'\x22':_0x5019e5,..._0xf802da[_0x38fbc2(0x21f)](0x2)],{'shell':_0x1543e3['gIgTF'](process['platform'],_0x1543e3[_0x38fbc2(0x1eb)]),'stdio':_0x1543e3[_0x38fbc2(0x212)],'cwd':process[_0x38fbc2(0x1ae)](),'env':Object[_0x38fbc2(0x1db)]({},process[_0x38fbc2(0x1f9)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x38fbc2(0x218)](_0x200ba0),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x2d7b17[_0x38fbc2(0x1d3)][_0x38fbc2(0x21e)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x2d7b17['config'][_0x38fbc2(0x21e)][_0x38fbc2(0x1be)],'BROWSERSTACK_LOG_LEVEL':_0x2d7b17[_0x38fbc2(0x1d3)][_0x38fbc2(0x1f8)]})}),_0xb13e07=()=>{const _0x63ec5a=_0x38fbc2;try{const _0x5a8fc6=path[_0x63ec5a(0x24d)](helper[_0x63ec5a(0x24e)](),_0x2d6166['zTGkc'],_0x2d6166['JvOXH']);if(fs['existsSync'](_0x5a8fc6)){let _0x149105=fs['readFileSync'](_0x5a8fc6);_0x149105=JSON[_0x63ec5a(0x1c7)](_0x149105),_0x2d7b17['errorMessage']=_0x149105,fs[_0x63ec5a(0x257)](_0x5a8fc6);}}catch(_0xcd55cf){logger[_0x63ec5a(0x206)](_0x2d6166[_0x63ec5a(0x216)](_0x2d6166['erDcb'],_0xcd55cf));}};_0x25df48['on'](_0x1543e3[_0x38fbc2(0x1e9)],async _0xdd298=>{const _0x3958a1=_0x38fbc2,_0x221e2d={};_0x221e2d[_0x3958a1(0x222)]=_0x1543e3[_0x3958a1(0x1da)];const _0x3b95be=_0x221e2d;try{PerformanceTester[_0x3958a1(0x241)](PerformanceEvents[_0x3958a1(0x227)]),_0x1543e3[_0x3958a1(0x208)](_0xb13e07),await TestHubHandler['stop'](),await ClientTroubleShootingService[_0x3958a1(0x220)]();const _0x54cf04=BrowserstackCLI[_0x3958a1(0x1ba)]();await BrowserstackCLI[_0x3958a1(0x21b)]()['stop'](),TestDetails[_0x3958a1(0x1cc)](),_0x1543e3[_0x3958a1(0x204)](printBuildLink),await utilities['finalExecution'](_0x2d7b17,_0x54cf04),process[_0x3958a1(0x202)]=_0xdd298,logger[_0x3958a1(0x206)](_0x3958a1(0x221)+_0xdd298),logger[_0x3958a1(0x25d)](_0x3958a1(0x1b0)+_0x5019e5),fs[_0x3958a1(0x257)](_0x5019e5);fs[_0x3958a1(0x1ec)](_0x1f566f)&&(logger[_0x3958a1(0x206)](_0x3958a1(0x1b0)+_0x1f566f),fs[_0x3958a1(0x257)](_0x1f566f));const _0x4d0be3=fs[_0x3958a1(0x24b)](path['join'](helper[_0x3958a1(0x24e)](),_0x1543e3['stMmQ']))[_0x3958a1(0x224)](_0x565f59=>_0x565f59['startsWith'](_0x3958a1(0x1e1)));_0x4d0be3[_0x3958a1(0x245)](_0x2184ac=>{const _0x353a59=_0x3958a1;fs[_0x353a59(0x257)](path[_0x353a59(0x24d)](helper['homedir'](),_0x3b95be[_0x353a59(0x222)],_0x2184ac));});}catch(_0x5eb080){logger[_0x3958a1(0x206)](_0x1543e3[_0x3958a1(0x23c)](_0x1543e3[_0x3958a1(0x23e)],_0x5eb080));}});})();}module[a43_0x2adca4(0x1bf)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a44_0x2205(){const _0x532bf1=['function','compareVersions','Not\x20able\x20to\x20import\x20globalSetup','810BmGTuh','resolve','Path\x20','../../helpers/test-observability/utils','requirePWModule','apply','./mock-process.js','toString','7316325CkzwHu','EYZnl','isHandlePWErrorSet','bLRrY','dhCBt','2295720MBoaeX','1.33.0','RhhnZ','BcevS','33158DEdUhy','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','2568tuzpBi','10XEfKVL','\x20is\x20not\x20found','fJhkM','includes','GTkMa','yUyAy','format','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','config','child_process','HqSyf','2088DFkzmh','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','exports','../../helpers/test-observability/constants','19012jIzUuD','env','util','./patches','TUJoh','Running\x20existing\x20global\x20setup','1804szNQLq','PLAYWRIGHT','error','fork','./reporter/pwUtils','KOSGC','21370CMhuIk','861IySUTg','6gUNHNk'];a44_0x2205=function(){return _0x532bf1;};return a44_0x2205();}function a44_0x28e0(_0x434960,_0x41d0ec){const _0x220531=a44_0x2205();return a44_0x28e0=function(_0x28e0fc,_0x4e50e3){_0x28e0fc=_0x28e0fc-0x147;let _0xcaffa7=_0x220531[_0x28e0fc];return _0xcaffa7;},a44_0x28e0(_0x434960,_0x41d0ec);}const a44_0x396f45=a44_0x28e0;(function(_0x5a609b,_0x594928){const _0x26de5f=a44_0x28e0,_0x23dd09=_0x5a609b();while(!![]){try{const _0x21c827=parseInt(_0x26de5f(0x163))/0x1*(parseInt(_0x26de5f(0x14e))/0x2)+-parseInt(_0x26de5f(0x14d))/0x3+-parseInt(_0x26de5f(0x15f))/0x4+parseInt(_0x26de5f(0x14c))/0x5*(-parseInt(_0x26de5f(0x152))/0x6)+parseInt(_0x26de5f(0x175))/0x7*(parseInt(_0x26de5f(0x171))/0x8)+-parseInt(_0x26de5f(0x15a))/0x9*(-parseInt(_0x26de5f(0x166))/0xa)+parseInt(_0x26de5f(0x17b))/0xb*(parseInt(_0x26de5f(0x165))/0xc);if(_0x21c827===_0x594928)break;else _0x23dd09['push'](_0x23dd09['shift']());}catch(_0x51079a){_0x23dd09['push'](_0x23dd09['shift']());}}}(a44_0x2205,0x7b54c));const util=require(a44_0x396f45(0x177)),child_process=require(a44_0x396f45(0x16f)),{FRAMEWORKS}=require(a44_0x396f45(0x174)),{getFrameworkVersion,debug}=require(a44_0x396f45(0x155)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a44_0x396f45(0x14a)),{mockIsWorkerRedundant}=require(a44_0x396f45(0x178)),logger=require('../../helpers/logger')['winstonLogger'];module[a44_0x396f45(0x173)]=async function(_0x50db25){const _0x15844e=a44_0x396f45,_0x461168={'fJhkM':function(_0x36fe12,_0x2ee32a){return _0x36fe12(_0x2ee32a);},'dhCBt':function(_0x47ef37){return _0x47ef37();},'BcevS':_0x15844e(0x158),'noKXQ':function(_0x111754){return _0x111754();},'QytXX':function(_0x1db957){return _0x1db957();},'bLRrY':function(_0x917443,_0x20ec86){return _0x917443(_0x20ec86);},'GTkMa':_0x15844e(0x17a),'nZIcM':function(_0x39e2cf){return _0x39e2cf();},'TUJoh':function(_0xcd6b9d,_0x34b5d5){return _0xcd6b9d(_0x34b5d5);},'yUyAy':function(_0xac92d4,_0x165d4d){return _0xac92d4>=_0x165d4d;},'jZQyv':_0x15844e(0x160),'KOSGC':function(_0x3cf861,_0xd8ffef,_0x44e8b3){return _0x3cf861(_0xd8ffef,_0x44e8b3);},'EYZnl':function(_0x3c40e3,_0x52b9f5){return _0x3c40e3!==_0x52b9f5;},'HqSyf':_0x15844e(0x14f),'vlXXx':_0x15844e(0x151),'RhhnZ':function(_0x5a4412,_0x323e01){return _0x5a4412(_0x323e01);}},_0x549de4=child_process[_0x15844e(0x149)];if(helper[_0x15844e(0x15c)]())try{_0x461168['QytXX'](mockIsWorkerRedundant);}catch(_0x166b15){logger['debug'](_0x15844e(0x172)+util[_0x15844e(0x16c)](_0x166b15));}child_process[_0x15844e(0x149)]=function(){const _0x518fe8=_0x15844e;return _0x461168[_0x518fe8(0x168)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x518fe8(0x169)](_0x461168[_0x518fe8(0x15e)](getForkProcessPath))?arguments[0x0]=require[_0x518fe8(0x153)](_0x461168[_0x518fe8(0x162)]):logger[_0x518fe8(0x148)](_0x518fe8(0x154)+_0x461168['noKXQ'](getForkProcessPath)+_0x518fe8(0x167)),_0x549de4[_0x518fe8(0x157)](null,arguments);};if(process[_0x15844e(0x176)][_0x15844e(0x16d)]){_0x461168[_0x15844e(0x15d)](debug,_0x461168[_0x15844e(0x16a)]);try{const {loadGlobalHook:_0x9276cd}=helper[_0x15844e(0x156)][_0x15844e(0x157)](null,_0x461168['nZIcM'](getLoadUtilsPath)),_0x84c2d0=_0x461168[_0x15844e(0x179)](getFrameworkVersion,FRAMEWORKS[_0x15844e(0x147)]);let _0x33c542=_0x50db25;if(_0x461168[_0x15844e(0x16b)](helper[_0x15844e(0x150)](_0x84c2d0,_0x461168['jZQyv']),0x0)){const _0x2ff533={};_0x2ff533[_0x15844e(0x16e)]=_0x50db25,_0x33c542=_0x2ff533;}const _0x56c81f=await _0x461168[_0x15844e(0x14b)](_0x9276cd,_0x33c542,process[_0x15844e(0x176)][_0x15844e(0x16d)]);if(_0x461168[_0x15844e(0x15b)](typeof _0x56c81f,_0x461168[_0x15844e(0x170)]))throw new Error(_0x461168['vlXXx']);return _0x56c81f[_0x15844e(0x157)](null,arguments);}catch(_0x3fceb4){_0x461168[_0x15844e(0x161)](debug,_0x15844e(0x164)+_0x3fceb4[_0x15844e(0x159)]());}}};
|