browserstack-node-sdk 1.60.0 → 1.61.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 +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.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 +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/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/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.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 -1
- 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/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.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/testcafeDriverModule.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/caCertHelper.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/driverInitErrorReporter.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/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54_0xb30474=a54_0x215d;(function(_0xa2ecb7,_0x40ed49){const _0x224714=a54_0x215d,_0x57ae17=_0xa2ecb7();while(!![]){try{const _0x5de9a3=-parseInt(_0x224714(0x147))/0x1+-parseInt(_0x224714(0x15f))/0x2*(parseInt(_0x224714(0x182))/0x3)+parseInt(_0x224714(0x15e))/0x4*(-parseInt(_0x224714(0x17d))/0x5)+parseInt(_0x224714(0x153))/0x6*(parseInt(_0x224714(0x14e))/0x7)+parseInt(_0x224714(0x149))/0x8+parseInt(_0x224714(0x16a))/0x9*(-parseInt(_0x224714(0x151))/0xa)+-parseInt(_0x224714(0x17b))/0xb*(-parseInt(_0x224714(0x14d))/0xc);if(_0x5de9a3===_0x40ed49)break;else _0x57ae17['push'](_0x57ae17['shift']());}catch(_0x23c19c){_0x57ae17['push'](_0x57ae17['shift']());}}}(a54_0x367f,0x18a0d));const fs=require('fs'),path=require('path'),{v4:uuidv4}=require(a54_0xb30474(0x156)),{TEMP_STORE_DIR_NAME}=require(a54_0xb30474(0x148)),{nestedKeyValue}=require(a54_0xb30474(0x162)),logger=require(a54_0xb30474(0x179))[a54_0xb30474(0x163)],{getLogDir}=require(a54_0xb30474(0x179)),util=require('util'),helper=require(a54_0xb30474(0x162));class TestDetails{static [a54_0xb30474(0x190)]={};static[a54_0xb30474(0x172)](){const _0x214c34=a54_0xb30474;this[_0x214c34(0x177)]();const _0x28ea8f={};_0x28ea8f[_0x214c34(0x16d)]=!![],fs[_0x214c34(0x146)](this[_0x214c34(0x175)](),_0x28ea8f);const _0x362b46={};_0x362b46[_0x214c34(0x16d)]=!![],fs[_0x214c34(0x146)](this[_0x214c34(0x154)](),_0x362b46);}static[a54_0xb30474(0x152)](){const _0x22e379=a54_0xb30474,_0x25594e={};_0x25594e['mnCuU']=function(_0x258f0a,_0x4191ed){return _0x258f0a+_0x4191ed;},_0x25594e[_0x22e379(0x17c)]=function(_0x13d260,_0x4ecfad){return _0x13d260+_0x4ecfad;};const _0x16928d=_0x25594e;return _0x16928d['mnCuU'](_0x16928d[_0x22e379(0x17c)](TEMP_STORE_DIR_NAME,'-'),process[_0x22e379(0x16f)][_0x22e379(0x168)]);}static[a54_0xb30474(0x15c)](){const _0x28e97b=a54_0xb30474,_0x22a36c={};_0x22a36c[_0x28e97b(0x194)]=function(_0x32808d,_0x5d976f){return _0x32808d+_0x5d976f;},_0x22a36c['NRiuo']=_0x28e97b(0x13d);const _0xa28635=_0x22a36c;return path[_0x28e97b(0x18e)](_0xa28635['CwRPk'](_0xa28635[_0x28e97b(0x194)](TEMP_STORE_DIR_NAME,'-'),process[_0x28e97b(0x16f)][_0x28e97b(0x168)]||_0xa28635[_0x28e97b(0x13a)]));}static[a54_0xb30474(0x154)](){const _0x26b07e=a54_0xb30474,_0xb423d2={};_0xb423d2['RMAVU']=_0x26b07e(0x14b);const _0xe188a3=_0xb423d2;return path['join'](this['getStoreDirPath'](),_0xe188a3[_0x26b07e(0x18c)]);}static[a54_0xb30474(0x175)](){const _0x287745=a54_0xb30474;return TestDetails[_0x287745(0x152)]();}static[a54_0xb30474(0x176)](_0x3da6ab){const _0xbd7b54=a54_0xb30474,_0x27f079={};_0x27f079[_0xbd7b54(0x174)]=function(_0x5681ef,_0x4521f2){return _0x5681ef+_0x4521f2;},_0x27f079[_0xbd7b54(0x197)]='.json';const _0x23ec5b=_0x27f079;return path[_0xbd7b54(0x18e)](this[_0xbd7b54(0x175)](),_0x23ec5b[_0xbd7b54(0x174)](_0x3da6ab,_0x23ec5b[_0xbd7b54(0x197)]));}static['getTestRunIdFromTestInfo'](_0x495641){const _0x3d4cf5=a54_0xb30474,_0xbe5209={};_0xbe5209[_0x3d4cf5(0x17a)]=function(_0x5676ab,_0x101e3c){return _0x5676ab+_0x101e3c;},_0xbe5209[_0x3d4cf5(0x181)]=function(_0x2f5d9c,_0x244576){return _0x2f5d9c+_0x244576;};const _0x58c8c8=_0xbe5209;return _0x58c8c8[_0x3d4cf5(0x17a)](_0x58c8c8[_0x3d4cf5(0x181)](this[_0x3d4cf5(0x13f)](_0x495641),'-'),_0x495641['retry']);}static['getProjectIdFromTestInfo'](_0x4215dd){const _0x6c4d16=a54_0xb30474,_0x155f0b={'SUDxz':function(_0x4632f2,_0x359ebe,_0x1a1f96){return _0x4632f2(_0x359ebe,_0x1a1f96);},'vqlSs':_0x6c4d16(0x164),'xZNKL':'_projectId','Utmyr':function(_0x363415,_0x1cb7c7,_0x3912cc){return _0x363415(_0x1cb7c7,_0x3912cc);},'OAxVm':_0x6c4d16(0x150),'yFgYl':'__projectId'};return _0x155f0b[_0x6c4d16(0x155)](nestedKeyValue,_0x4215dd,[_0x155f0b[_0x6c4d16(0x16b)],_0x155f0b[_0x6c4d16(0x14a)]])||_0x155f0b['Utmyr'](nestedKeyValue,_0x4215dd,[_0x155f0b[_0x6c4d16(0x140)],_0x155f0b['yFgYl']]);}static['getTestIdFromTestInfo'](_0x38c115){const _0x4a90ee=a54_0xb30474,_0x53e470={'lzLzg':function(_0x27b421,_0x907fbc,_0x2eab13){return _0x27b421(_0x907fbc,_0x2eab13);},'uDrnE':'_test'};return _0x53e470[_0x4a90ee(0x16c)](nestedKeyValue,_0x38c115,[_0x53e470[_0x4a90ee(0x191)],'id'])||_0x38c115[_0x4a90ee(0x18f)];}static[a54_0xb30474(0x158)](_0x2d6202){const _0x537991=a54_0xb30474,_0x1e61ce={'rRCDF':function(_0x1b7d57,_0x22e2b7){return _0x1b7d57===_0x22e2b7;},'sibdr':'string','oWOqq':function(_0x180a7d){return _0x180a7d();}};if(this['tests'][_0x2d6202]&&_0x1e61ce[_0x537991(0x167)](typeof this['tests'][_0x2d6202][_0x537991(0x156)],_0x1e61ce['sibdr']))return this[_0x537991(0x190)][_0x2d6202][_0x537991(0x156)];const _0x38351c=this[_0x537991(0x176)](_0x2d6202);if(_0x38351c&&fs[_0x537991(0x186)](_0x38351c)){const _0x1ea524=JSON['parse'](fs[_0x537991(0x17f)](_0x38351c)['toString']());return this['tests'][_0x2d6202]=_0x1ea524,this[_0x537991(0x190)][_0x2d6202][_0x537991(0x156)];}return this[_0x537991(0x190)][_0x2d6202]={'uuid':_0x1e61ce['oWOqq'](uuidv4)},fs[_0x537991(0x178)](_0x38351c,JSON[_0x537991(0x142)](this[_0x537991(0x190)][_0x2d6202])),this[_0x537991(0x190)][_0x2d6202][_0x537991(0x156)];}static[a54_0xb30474(0x160)](_0x308863){const _0x401bd8=a54_0xb30474,_0x370b30=path[_0x401bd8(0x18e)](this['getDirPath'](),_0x308863+_0x401bd8(0x195));if(_0x370b30&&fs[_0x401bd8(0x186)](_0x370b30))return fs[_0x401bd8(0x17f)](_0x370b30)[_0x401bd8(0x192)]();}static[a54_0xb30474(0x159)](_0x1730a6,_0x429c6b){const _0x492fa0=a54_0xb30474,_0x3734b7=path[_0x492fa0(0x18e)](this[_0x492fa0(0x175)](),_0x429c6b+_0x492fa0(0x195));fs[_0x492fa0(0x178)](_0x3734b7,_0x1730a6[_0x492fa0(0x192)]());}static[a54_0xb30474(0x14c)](_0x4c9a45){const _0x4849b3=a54_0xb30474,_0x51180d=path[_0x4849b3(0x18e)](this[_0x4849b3(0x175)](),_0x4c9a45+_0x4849b3(0x144));if(_0x51180d&&fs[_0x4849b3(0x186)](_0x51180d))try{return JSON[_0x4849b3(0x18a)](fs[_0x4849b3(0x17f)](_0x51180d)[_0x4849b3(0x192)]());}catch(_0x2035b2){return logger[_0x4849b3(0x13e)]('Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20'+_0x4c9a45+':\x20'+(_0x2035b2&&_0x2035b2[_0x4849b3(0x188)])),null;}return null;}static['setIntegrations'](_0x461b46,_0x4e5435){const _0x1b492f=a54_0xb30474,_0x5e0ccc={};_0x5e0ccc[_0x1b492f(0x15a)]=function(_0x1589bf,_0x52f6eb){return _0x1589bf||_0x52f6eb;};const _0xb92734=_0x5e0ccc;if(_0xb92734[_0x1b492f(0x15a)](!_0x461b46,!_0x4e5435))return;try{const _0x31ad62=this[_0x1b492f(0x175)](),_0x3ea083={};_0x3ea083[_0x1b492f(0x16d)]=!![],fs[_0x1b492f(0x146)](_0x31ad62,_0x3ea083);const _0x3eb45d=path[_0x1b492f(0x18e)](_0x31ad62,_0x461b46+_0x1b492f(0x144));fs[_0x1b492f(0x178)](_0x3eb45d,JSON[_0x1b492f(0x142)](_0x4e5435));}catch(_0x2b6127){logger['debug'](_0x1b492f(0x141)+_0x461b46+':\x20'+(_0x2b6127&&_0x2b6127[_0x1b492f(0x188)]));}}static[a54_0xb30474(0x177)](){const _0x973869=a54_0xb30474,_0x27ea4d={};_0x27ea4d[_0x973869(0x16d)]=!![],_0x27ea4d['force']=!![],fs[_0x973869(0x161)](this[_0x973869(0x175)](),_0x27ea4d);}static[a54_0xb30474(0x16e)](_0x561fb9){const _0x2396b6=a54_0xb30474;if(this['tests'][_0x561fb9])return this[_0x2396b6(0x190)][_0x561fb9];const _0x409a95=this[_0x2396b6(0x176)](_0x561fb9);if(_0x409a95&&fs[_0x2396b6(0x186)](_0x409a95)){const _0x48c7de=JSON['parse'](fs['readFileSync'](_0x409a95)[_0x2396b6(0x192)]());return this[_0x2396b6(0x190)][_0x561fb9]=_0x48c7de,_0x48c7de;}return{};}static[a54_0xb30474(0x198)](_0x3bd288,_0x1d1149){const _0x39d12b=a54_0xb30474,_0x489fd7=this['getFilePath'](_0x3bd288);if(_0x489fd7&&fs[_0x39d12b(0x186)](_0x489fd7)){const _0x5088d6=JSON['parse'](fs[_0x39d12b(0x17f)](_0x489fd7)[_0x39d12b(0x192)]()),_0x2e05a3={..._0x5088d6,..._0x1d1149};this[_0x39d12b(0x190)][_0x3bd288]=_0x2e05a3;}else this[_0x39d12b(0x190)][_0x3bd288]=_0x1d1149;fs['writeFileSync'](_0x489fd7,this[_0x39d12b(0x190)][_0x3bd288]);}static['addTraceFilePath'](_0x54ff5a){const _0x3bc5a2=a54_0xb30474,_0x2c85bb={};_0x2c85bb[_0x3bc5a2(0x18d)]='Error\x20handling\x20trace\x20file\x20paths:\x20';const _0x523ce3=_0x2c85bb;try{const _0x3f42df=process[_0x3bc5a2(0x13c)],_0x57ea23=path['join'](TestDetails[_0x3bc5a2(0x154)](),_0x3f42df+'_traceZipPaths.json');let _0xe7ab0=[];_0x57ea23&&fs[_0x3bc5a2(0x186)](_0x57ea23)&&(_0xe7ab0=JSON[_0x3bc5a2(0x18a)](fs[_0x3bc5a2(0x17f)](_0x57ea23)[_0x3bc5a2(0x192)]())),!_0xe7ab0['some'](_0x3b285b=>_0x3b285b[_0x3bc5a2(0x157)]===_0x54ff5a[_0x3bc5a2(0x157)])&&(_0xe7ab0[_0x3bc5a2(0x183)](_0x54ff5a),fs[_0x3bc5a2(0x178)](_0x57ea23,JSON[_0x3bc5a2(0x142)](_0xe7ab0)));}catch(_0x305bb0){logger[_0x3bc5a2(0x15b)](_0x523ce3[_0x3bc5a2(0x18d)],_0x305bb0);}}static[a54_0xb30474(0x196)](){const _0x3f250c=a54_0xb30474,_0x44ea19={};_0x44ea19[_0x3f250c(0x173)]=_0x3f250c(0x171),_0x44ea19[_0x3f250c(0x169)]=_0x3f250c(0x143);const _0x480cbc=_0x44ea19,_0xf552dc=[];try{const _0x1e23b3=TestDetails[_0x3f250c(0x154)]();if(_0x1e23b3&&!fs[_0x3f250c(0x186)](_0x1e23b3))return _0xf552dc;const _0x370913=fs[_0x3f250c(0x184)](_0x1e23b3);_0x370913[_0x3f250c(0x166)](_0x519015=>{const _0x24dd78=_0x3f250c;if(_0x519015&&_0x519015[_0x24dd78(0x15d)](_0x480cbc[_0x24dd78(0x173)])){const _0x3e106f=JSON[_0x24dd78(0x18a)](fs[_0x24dd78(0x17f)](path['join'](_0x1e23b3,_0x519015))[_0x24dd78(0x192)]());_0xf552dc[_0x24dd78(0x183)](..._0x3e106f);}});}catch(_0x3d2949){logger[_0x3f250c(0x15b)](util[_0x3f250c(0x187)](_0x480cbc['yHDRe'],_0x3d2949));}const _0x3e322b={};return _0xf552dc['forEach'](_0x4c812b=>{_0x3e322b[_0x4c812b['filePath']]=_0x4c812b;}),Object[_0x3f250c(0x193)](_0x3e322b);}static[a54_0xb30474(0x189)](_0x4cfb08,_0x557f59){const _0x16695e=a54_0xb30474,_0x3db719={};_0x3db719[_0x16695e(0x18b)]=_0x16695e(0x170),_0x3db719[_0x16695e(0x180)]='utf8';const _0x132e77=_0x3db719;try{const _0x1b5cb5=path[_0x16695e(0x18e)](helper[_0x16695e(0x145)](),_0x132e77['qDjDO']);if(!fs[_0x16695e(0x186)](_0x1b5cb5)){const _0x2ff0e6={};_0x2ff0e6['recursive']=!![],fs['mkdirSync'](_0x1b5cb5,_0x2ff0e6);}fs[_0x16695e(0x185)](path['join'](_0x1b5cb5,_0x16695e(0x13b)+_0x557f59+_0x16695e(0x14f)),_0x4cfb08+'\x0a',_0x132e77[_0x16695e(0x180)]);}catch(_0x4d498d){console[_0x16695e(0x15b)](_0x16695e(0x17e)+_0x4d498d[_0x16695e(0x188)]);}}}function a54_0x215d(_0x4821da,_0x3ce472){const _0x367f16=a54_0x367f();return a54_0x215d=function(_0x215db6,_0x152918){_0x215db6=_0x215db6-0x13a;let _0x3d1f59=_0x367f16[_0x215db6];return _0x3d1f59;},a54_0x215d(_0x4821da,_0x3ce472);}module[a54_0xb30474(0x165)]=TestDetails;function a54_0x367f(){const _0x293b65=['112929SvkEEb','push','readdirSync','appendFileSync','existsSync','format','message','appendToTracePaths','parse','qDjDO','RMAVU','mqeKn','join','testId','tests','uDrnE','toString','values','CwRPk','_platformDetails.json','getTraceFilePaths','tOUlh','setTestDetails','NRiuo','trace_','pid','default','debug','getTestIdFromTestInfo','OAxVm','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','stringify','Error\x20reading\x20trace\x20file\x20paths:\x20%s','_integrations.json','homedir','mkdirSync','39101MMGpqp','../../../helpers/test-observability/constants','800648kFGLsc','xZNKL','traceZipPaths','getIntegrations','193476fNDSLH','755013XdPyJq','.txt','project','70WKDqVA','getStoreDirName','6wgIVli','getTraceZipDir','SUDxz','uuid','filePath','getTestUUID','setAccessibilityPlatformValidation','KQnVb','error','getStoreDirPath','endsWith','4460riqVqy','2ODFDxF','getAccessibilityPlatformValidation','rmSync','../../../helpers/helper','winstonLogger','_test','exports','forEach','rRCDF','BS_TESTOPS_BUILD_HASHED_ID','yHDRe','179559hVdsDa','vqlSs','lzLzg','recursive','getTestDetails','env','.browserstack','_traceZipPaths.json','setup','PMOeo','OlByQ','getDirPath','getFilePath','shutdown','writeFileSync','../../../helpers/logger','NQBQk','121AaXRmz','Mwonj','305TBUdVd','Error\x20writing\x20trace\x20file:\x20','readFileSync','ktLsL','uAHIQ'];a54_0x367f=function(){return _0x293b65;};return a54_0x367f();}
|
|
1
|
+
function a54_0x57ca(){const _0xb9337=['aqrLl','ghNPF','setAccessibilityPlatformValidation','traceZipPaths','getStoreDirPath','getTestRunIdFromTestInfo','EzjKO','setTestDetails','../../../helpers/helper','jbfDV','8bgGNPp','recursive','message','Error\x20handling\x20trace\x20file\x20paths:\x20','TCpdT','error','readFileSync','_test','shutdown','MhKSu','../../../helpers/test-observability/constants','mkdirSync','_platformDetails.json','getTestUUID','AYyjo','3750534soraQt','aEySy','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','setIntegrations','debug','21KiPrcx','15122PVAeBS','568355JsXjPi','329901PacARs','wzXpV','forEach','kCnfn','OczDk','pid','tests','12400430SnYGMx','uzufR','RQKha','uJmpN','values','TwXXF','util','filePath','.txt','endsWith','.browserstack','utf8','getDirPath','appendFileSync','OyHEc','wfXtX','BS_TESTOPS_BUILD_HASHED_ID','__projectId','_integrations.json','parse','WNApD','addTraceFilePath','Atsuf','_projectId','string','stringify','join','push','.json','getFilePath','137eHgMqE','dJfNU','appendToTracePaths','readdirSync','njIpi','uuid','toString','1788QJxyeb','2537280HvWnBq','gJeFN','trace_','setup','getProjectIdFromTestInfo','env','homedir','existsSync','8AesrQk','_traceZipPaths.json','GWrxh','1832850xbJKde','Error\x20writing\x20trace\x20file:\x20','rmSync','retry','getStoreDirName','writeFileSync','getTraceZipDir','default','11YLGQxo','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','exports','../../../helpers/logger','XKtbe','getTestDetails'];a54_0x57ca=function(){return _0xb9337;};return a54_0x57ca();}const a54_0x6b64c=a54_0x4cda;(function(_0x167113,_0x55b0d5){const _0x53d3a5=a54_0x4cda,_0x4e5fdd=_0x167113();while(!![]){try{const _0x39e470=-parseInt(_0x53d3a5(0x16c))/0x1*(parseInt(_0x53d3a5(0x1ac))/0x2)+parseInt(_0x53d3a5(0x17f))/0x3+-parseInt(_0x53d3a5(0x197))/0x4*(-parseInt(_0x53d3a5(0x1ad))/0x5)+-parseInt(_0x53d3a5(0x174))/0x6*(parseInt(_0x53d3a5(0x1ab))/0x7)+-parseInt(_0x53d3a5(0x17c))/0x8*(parseInt(_0x53d3a5(0x1a6))/0x9)+-parseInt(_0x53d3a5(0x14e))/0xa*(parseInt(_0x53d3a5(0x187))/0xb)+-parseInt(_0x53d3a5(0x173))/0xc*(-parseInt(_0x53d3a5(0x1ae))/0xd);if(_0x39e470===_0x55b0d5)break;else _0x4e5fdd['push'](_0x4e5fdd['shift']());}catch(_0x33df19){_0x4e5fdd['push'](_0x4e5fdd['shift']());}}}(a54_0x57ca,0xa0b17));function a54_0x4cda(_0x4ce977,_0x551546){const _0x57cad4=a54_0x57ca();return a54_0x4cda=function(_0x4cdaa5,_0x5d70a2){_0x4cdaa5=_0x4cdaa5-0x149;let _0x2f1c26=_0x57cad4[_0x4cdaa5];return _0x2f1c26;},a54_0x4cda(_0x4ce977,_0x551546);}const fs=require('fs'),path=require('path'),{v4:uuidv4}=require(a54_0x6b64c(0x171)),{TEMP_STORE_DIR_NAME}=require(a54_0x6b64c(0x1a1)),{nestedKeyValue}=require(a54_0x6b64c(0x195)),logger=require(a54_0x6b64c(0x18a))['winstonLogger'],{getLogDir}=require(a54_0x6b64c(0x18a)),util=require(a54_0x6b64c(0x154)),helper=require(a54_0x6b64c(0x195));class TestDetails{static ['tests']={};static[a54_0x6b64c(0x177)](){const _0xbafbf8=a54_0x6b64c;this[_0xbafbf8(0x19f)]();const _0x44c4cf={};_0x44c4cf['recursive']=!![],fs[_0xbafbf8(0x1a2)](this[_0xbafbf8(0x15a)](),_0x44c4cf);const _0x35720a={};_0x35720a[_0xbafbf8(0x198)]=!![],fs[_0xbafbf8(0x1a2)](this[_0xbafbf8(0x185)](),_0x35720a);}static['getStoreDirName'](){const _0x50dca2=a54_0x6b64c,_0xf746bb={};_0xf746bb[_0x50dca2(0x196)]=function(_0x2fa39c,_0x1c6c6b){return _0x2fa39c+_0x1c6c6b;},_0xf746bb[_0x50dca2(0x17e)]=function(_0x211303,_0x60e825){return _0x211303+_0x60e825;};const _0x285b45=_0xf746bb;return _0x285b45['jbfDV'](_0x285b45['GWrxh'](TEMP_STORE_DIR_NAME,'-'),process[_0x50dca2(0x179)]['BS_TESTOPS_BUILD_HASHED_ID']);}static[a54_0x6b64c(0x191)](){const _0x261fa0=a54_0x6b64c,_0x145d1b={};_0x145d1b[_0x261fa0(0x1a5)]=function(_0x1327ef,_0x32f6c4){return _0x1327ef+_0x32f6c4;},_0x145d1b[_0x261fa0(0x170)]=function(_0x2636e9,_0x1f2768){return _0x2636e9+_0x1f2768;},_0x145d1b[_0x261fa0(0x14a)]=_0x261fa0(0x186);const _0x5074fb=_0x145d1b;return path[_0x261fa0(0x168)](_0x5074fb['AYyjo'](_0x5074fb[_0x261fa0(0x170)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x261fa0(0x15e)]||_0x5074fb[_0x261fa0(0x14a)]));}static[a54_0x6b64c(0x185)](){const _0x1f42c3=a54_0x6b64c,_0x3552df={};_0x3552df['wfXtX']=_0x1f42c3(0x190);const _0x2e4f76=_0x3552df;return path[_0x1f42c3(0x168)](this[_0x1f42c3(0x191)](),_0x2e4f76[_0x1f42c3(0x15d)]);}static[a54_0x6b64c(0x15a)](){const _0x42d595=a54_0x6b64c;return TestDetails[_0x42d595(0x183)]();}static['getFilePath'](_0x49afe1){const _0x53203d=a54_0x6b64c,_0x3e9e62={};_0x3e9e62[_0x53203d(0x150)]=function(_0x58ef61,_0x5400d7){return _0x58ef61+_0x5400d7;},_0x3e9e62[_0x53203d(0x162)]=_0x53203d(0x16a);const _0x23b060=_0x3e9e62;return path[_0x53203d(0x168)](this[_0x53203d(0x15a)](),_0x23b060[_0x53203d(0x150)](_0x49afe1,_0x23b060[_0x53203d(0x162)]));}static[a54_0x6b64c(0x192)](_0x4b981a){const _0x1fb73d=a54_0x6b64c,_0x4533ef={};_0x4533ef[_0x1fb73d(0x18d)]=function(_0x219d4a,_0x5b1234){return _0x219d4a+_0x5b1234;};const _0x2d2921=_0x4533ef;return _0x2d2921[_0x1fb73d(0x18d)](_0x2d2921[_0x1fb73d(0x18d)](this['getTestIdFromTestInfo'](_0x4b981a),'-'),_0x4b981a[_0x1fb73d(0x182)]);}static[a54_0x6b64c(0x178)](_0x41bb1d){const _0x4af0c3=a54_0x6b64c,_0x17bc5b={'aEySy':function(_0x4c690a,_0x362672,_0x4433e5){return _0x4c690a(_0x362672,_0x4433e5);},'XKtbe':_0x4af0c3(0x19e),'SvZJx':_0x4af0c3(0x165),'OczDk':function(_0x122885,_0x42f676,_0x6faec9){return _0x122885(_0x42f676,_0x6faec9);},'OyHEc':'project','wzXpV':_0x4af0c3(0x15f)};return _0x17bc5b[_0x4af0c3(0x1a7)](nestedKeyValue,_0x41bb1d,[_0x17bc5b[_0x4af0c3(0x18b)],_0x17bc5b['SvZJx']])||_0x17bc5b[_0x4af0c3(0x14b)](nestedKeyValue,_0x41bb1d,[_0x17bc5b[_0x4af0c3(0x15c)],_0x17bc5b[_0x4af0c3(0x1af)]]);}static['getTestIdFromTestInfo'](_0x43866a){const _0x34c649=a54_0x6b64c,_0x2c790a={'jilJh':function(_0x5b342e,_0x3cfb93,_0x569276){return _0x5b342e(_0x3cfb93,_0x569276);},'uJmpN':_0x34c649(0x19e)};return _0x2c790a['jilJh'](nestedKeyValue,_0x43866a,[_0x2c790a[_0x34c649(0x151)],'id'])||_0x43866a['testId'];}static[a54_0x6b64c(0x1a4)](_0x10d70e){const _0x2a80d7=a54_0x6b64c,_0x19783e={'TwXXF':function(_0x1dc476,_0x2f9244){return _0x1dc476===_0x2f9244;},'uzufR':_0x2a80d7(0x166),'Atsuf':function(_0x5a2d7e){return _0x5a2d7e();}};if(this[_0x2a80d7(0x14d)][_0x10d70e]&&_0x19783e[_0x2a80d7(0x153)](typeof this[_0x2a80d7(0x14d)][_0x10d70e][_0x2a80d7(0x171)],_0x19783e[_0x2a80d7(0x14f)]))return this['tests'][_0x10d70e][_0x2a80d7(0x171)];const _0x38fe6b=this[_0x2a80d7(0x16b)](_0x10d70e);if(_0x38fe6b&&fs['existsSync'](_0x38fe6b)){const _0x1d4757=JSON[_0x2a80d7(0x161)](fs[_0x2a80d7(0x19d)](_0x38fe6b)['toString']());return this[_0x2a80d7(0x14d)][_0x10d70e]=_0x1d4757,this[_0x2a80d7(0x14d)][_0x10d70e][_0x2a80d7(0x171)];}return this['tests'][_0x10d70e]={'uuid':_0x19783e[_0x2a80d7(0x164)](uuidv4)},fs[_0x2a80d7(0x184)](_0x38fe6b,JSON[_0x2a80d7(0x167)](this[_0x2a80d7(0x14d)][_0x10d70e])),this[_0x2a80d7(0x14d)][_0x10d70e][_0x2a80d7(0x171)];}static['getAccessibilityPlatformValidation'](_0x15903d){const _0x164b95=a54_0x6b64c,_0x1ac26e=path[_0x164b95(0x168)](this['getDirPath'](),_0x15903d+_0x164b95(0x1a3));if(_0x1ac26e&&fs['existsSync'](_0x1ac26e))return fs[_0x164b95(0x19d)](_0x1ac26e)[_0x164b95(0x172)]();}static[a54_0x6b64c(0x18f)](_0x481dd8,_0x2d2b8d){const _0x457286=a54_0x6b64c,_0x21e854=path[_0x457286(0x168)](this['getDirPath'](),_0x2d2b8d+'_platformDetails.json');fs[_0x457286(0x184)](_0x21e854,_0x481dd8['toString']());}static['getIntegrations'](_0x6a507d){const _0x564d20=a54_0x6b64c,_0x24b982=path['join'](this['getDirPath'](),_0x6a507d+_0x564d20(0x160));if(_0x24b982&&fs[_0x564d20(0x17b)](_0x24b982))try{return JSON['parse'](fs[_0x564d20(0x19d)](_0x24b982)[_0x564d20(0x172)]());}catch(_0x447a4d){return logger[_0x564d20(0x1aa)](_0x564d20(0x1a8)+_0x6a507d+':\x20'+(_0x447a4d&&_0x447a4d['message'])),null;}return null;}static[a54_0x6b64c(0x1a9)](_0x5d9d9c,_0x3c2c96){const _0x3b25d3=a54_0x6b64c,_0x11d555={};_0x11d555[_0x3b25d3(0x193)]=function(_0x2a1123,_0x69dd16){return _0x2a1123||_0x69dd16;};const _0x5ee835=_0x11d555;if(_0x5ee835[_0x3b25d3(0x193)](!_0x5d9d9c,!_0x3c2c96))return;try{const _0x4e3fd9=this[_0x3b25d3(0x15a)](),_0x2fd658={};_0x2fd658[_0x3b25d3(0x198)]=!![],fs[_0x3b25d3(0x1a2)](_0x4e3fd9,_0x2fd658);const _0x3874b4=path[_0x3b25d3(0x168)](_0x4e3fd9,_0x5d9d9c+_0x3b25d3(0x160));fs[_0x3b25d3(0x184)](_0x3874b4,JSON['stringify'](_0x3c2c96));}catch(_0x13688f){logger[_0x3b25d3(0x1aa)](_0x3b25d3(0x188)+_0x5d9d9c+':\x20'+(_0x13688f&&_0x13688f[_0x3b25d3(0x199)]));}}static[a54_0x6b64c(0x19f)](){const _0x70f06a=a54_0x6b64c,_0x4859cd={};_0x4859cd[_0x70f06a(0x198)]=!![],_0x4859cd['force']=!![],fs[_0x70f06a(0x181)](this[_0x70f06a(0x15a)](),_0x4859cd);}static[a54_0x6b64c(0x18c)](_0x2107b2){const _0x129b64=a54_0x6b64c;if(this[_0x129b64(0x14d)][_0x2107b2])return this[_0x129b64(0x14d)][_0x2107b2];const _0x36fde2=this[_0x129b64(0x16b)](_0x2107b2);if(_0x36fde2&&fs[_0x129b64(0x17b)](_0x36fde2)){const _0x4f64b3=JSON[_0x129b64(0x161)](fs[_0x129b64(0x19d)](_0x36fde2)[_0x129b64(0x172)]());return this[_0x129b64(0x14d)][_0x2107b2]=_0x4f64b3,_0x4f64b3;}return{};}static[a54_0x6b64c(0x194)](_0x27b52d,_0x1a251e){const _0x5de262=a54_0x6b64c,_0xea81a2=this[_0x5de262(0x16b)](_0x27b52d);if(_0xea81a2&&fs[_0x5de262(0x17b)](_0xea81a2)){const _0x368f53=JSON['parse'](fs[_0x5de262(0x19d)](_0xea81a2)[_0x5de262(0x172)]()),_0xe93c9b={..._0x368f53,..._0x1a251e};this[_0x5de262(0x14d)][_0x27b52d]=_0xe93c9b;}else this[_0x5de262(0x14d)][_0x27b52d]=_0x1a251e;fs[_0x5de262(0x184)](_0xea81a2,this[_0x5de262(0x14d)][_0x27b52d]);}static[a54_0x6b64c(0x163)](_0x2539f2){const _0x11f467=a54_0x6b64c,_0x47e195={};_0x47e195[_0x11f467(0x19b)]=_0x11f467(0x19a);const _0x2f6f35=_0x47e195;try{const _0x1998de=process[_0x11f467(0x14c)],_0x44fe4f=path[_0x11f467(0x168)](TestDetails['getTraceZipDir'](),_0x1998de+_0x11f467(0x17d));let _0x32a4e3=[];_0x44fe4f&&fs[_0x11f467(0x17b)](_0x44fe4f)&&(_0x32a4e3=JSON['parse'](fs[_0x11f467(0x19d)](_0x44fe4f)[_0x11f467(0x172)]())),!_0x32a4e3['some'](_0x559971=>_0x559971['filePath']===_0x2539f2[_0x11f467(0x155)])&&(_0x32a4e3[_0x11f467(0x169)](_0x2539f2),fs[_0x11f467(0x184)](_0x44fe4f,JSON[_0x11f467(0x167)](_0x32a4e3)));}catch(_0x25345b){logger['error'](_0x2f6f35[_0x11f467(0x19b)],_0x25345b);}}static['getTraceFilePaths'](){const _0xbc680c=a54_0x6b64c,_0x4c3d05={};_0x4c3d05[_0xbc680c(0x16d)]=_0xbc680c(0x17d),_0x4c3d05[_0xbc680c(0x18e)]='Error\x20reading\x20trace\x20file\x20paths:\x20%s';const _0x3e5aec=_0x4c3d05,_0x1a15b7=[];try{const _0x837161=TestDetails[_0xbc680c(0x185)]();if(_0x837161&&!fs[_0xbc680c(0x17b)](_0x837161))return _0x1a15b7;const _0xeda6c9=fs[_0xbc680c(0x16f)](_0x837161);_0xeda6c9[_0xbc680c(0x149)](_0x5cf978=>{const _0x241fbb=_0xbc680c;if(_0x5cf978&&_0x5cf978[_0x241fbb(0x157)](_0x3e5aec[_0x241fbb(0x16d)])){const _0x431a82=JSON[_0x241fbb(0x161)](fs[_0x241fbb(0x19d)](path['join'](_0x837161,_0x5cf978))[_0x241fbb(0x172)]());_0x1a15b7[_0x241fbb(0x169)](..._0x431a82);}});}catch(_0x172893){logger[_0xbc680c(0x19c)](util['format'](_0x3e5aec[_0xbc680c(0x18e)],_0x172893));}const _0x483f1f={};return _0x1a15b7[_0xbc680c(0x149)](_0x54e223=>{const _0x30d9f9=_0xbc680c;_0x483f1f[_0x54e223[_0x30d9f9(0x155)]]=_0x54e223;}),Object[_0xbc680c(0x152)](_0x483f1f);}static[a54_0x6b64c(0x16e)](_0x118a8a,_0x566bbe){const _0x2ffa6f=a54_0x6b64c,_0x36b7e8={};_0x36b7e8['MhKSu']=_0x2ffa6f(0x158),_0x36b7e8[_0x2ffa6f(0x175)]=_0x2ffa6f(0x159);const _0x581a3f=_0x36b7e8;try{const _0x570c9e=path['join'](helper[_0x2ffa6f(0x17a)](),_0x581a3f[_0x2ffa6f(0x1a0)]);if(!fs[_0x2ffa6f(0x17b)](_0x570c9e)){const _0x283ab4={};_0x283ab4[_0x2ffa6f(0x198)]=!![],fs[_0x2ffa6f(0x1a2)](_0x570c9e,_0x283ab4);}fs[_0x2ffa6f(0x15b)](path[_0x2ffa6f(0x168)](_0x570c9e,_0x2ffa6f(0x176)+_0x566bbe+_0x2ffa6f(0x156)),_0x118a8a+'\x0a',_0x581a3f[_0x2ffa6f(0x175)]);}catch(_0x5cbcc2){console[_0x2ffa6f(0x19c)](_0x2ffa6f(0x180)+_0x5cbcc2[_0x2ffa6f(0x199)]);}}}module[a54_0x6b64c(0x189)]=TestDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a55_0x7101c0=a55_0x3ee6;function a55_0x344f(){const _0x5e1cd7=['chromium','0|1|2|3|4|5','setupBrowserDetails','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','prototype','_connection','hlaAR','parse','product','BSTACK_ATS_URL','model','UUuyL','Not\x20able\x20to\x20resolve\x20Connection\x20class','kMrpl','url','6ZhiwUI','query','UWhxN','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','bsParams','dispatch','accessibilityPlatform','browserstack','browser_version','includes','Page\x20Scan\x20result=','entries','TtdeT','CRConnection','63dMSJKW','lEIOR','2110350kOLDfR','playwright-','QVgDJ','isRunning','dMZzz','automate','path','__driver','_browserType','resolveConnectionClass','getAutomationFramework','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','sendMessageToServer','lHBOa','2362748oLjcqk','toString','__workerDetails','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','edge','testInfo','../v2/state/hookState.js','wRLSw','shouldWrapCommand','../v2/state/automationFrameworkState.js','FWRQj','wsEndpoint','../../helpers/accessibility-automation/helper','obQSD','XvDyb','621697yrEZdf','join','getDetails','YOHsR','cloudProvider','webkit','exports','xmRql','3714972BWomwi','patchCRConnection','safari','lOElc','gbFeT','POST','_bstackDispatchPatched','getInstance','Page','message','BSTACK_URL','currentTest','../utils/clientTroubleshootingService.js','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','titlePath','KfCvq','yTqIG','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','defineProperty','Device\x20Model\x20is\x20not\x20available','AlhLS','winstonLogger','xxooH','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','1.60.0','DLtIk','assign','WhelH','UWZAs','project','RRORA','CCEdi','HFbqm','../../helpers/logger','eHwuD','Not\x20able\x20to\x20import\x20crConnection','platformVersion','connectOptions','use','sDSVX','version','DNZZc','platform_version','CzzEs','Connection','SJkam','duMQL','qLoZb','ngRmG','sessionError','platform','../../helpers/test-observability/constants','5705616elpIpL','Error\x20in\x20finding\x20platform\x20details\x20','MZvAc','ozvMa','../../bin/playwright/accessibility-helper','params','tyJlm','pwPage','isRemote','toLowerCase','yPrcy','fromEntries','../../helpers/accessibility-automation/accessibilityRetryHelper.js','function','patchConnection','debug','_onMessage','NaLkR','format','DZcab','1670955OBanDJ','../../helpers/test-observability/error-handler','yeDvO','_defaultConnectOptions','bstackPerformA11yScan','lQVYy','platformDetails','capabilities','UoqON','giGkQ','env','KUstE','iDfLC','bsSessionId','lib','lRnhB','CYFDS','884344ybLZAX','sessionId','lVAvd','firefox','yRPrH','currentSessionDetails','browserName','trackEvent','platformName','reportSessionLinkingIssue','compareVersions','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','FdDZv','Failed\x20to\x20perform\x20scan\x20','server','cRieY','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','chrome','BROWSERSTACK_TEST_OBSERVABILITY','gSArz','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','IDqtn','../utils/constants','../../helpers/helper','channel','Setting\x20session\x20id\x20received\x20from\x20BS\x20','deviceModel','../v2/browserstackCLI','browser','getFrameworkVersion','Performing\x20scan\x20for\x20','bStackParams','info','Error\x20in\x20importing\x20crConnection','apply','bpIGp','test','dGuoY','tnOyJ'];a55_0x344f=function(){return _0x5e1cd7;};return a55_0x344f();}(function(_0x531e80,_0x539c09){const _0x58dab2=a55_0x3ee6,_0x3f10a3=_0x531e80();while(!![]){try{const _0x4b91fd=-parseInt(_0x58dab2(0x229))/0x1+parseInt(_0x58dab2(0x21a))/0x2+-parseInt(_0x58dab2(0x20c))/0x3+-parseInt(_0x58dab2(0x231))/0x4+parseInt(_0x58dab2(0x279))/0x5+-parseInt(_0x58dab2(0x1fc))/0x6*(-parseInt(_0x58dab2(0x265))/0x7)+-parseInt(_0x58dab2(0x28a))/0x8*(-parseInt(_0x58dab2(0x20a))/0x9);if(_0x4b91fd===_0x539c09)break;else _0x3f10a3['push'](_0x3f10a3['shift']());}catch(_0x5aa11a){_0x3f10a3['push'](_0x3f10a3['shift']());}}}(a55_0x344f,0xcfa84));function a55_0x3ee6(_0x5d1d86,_0x1e8da9){const _0x344fe0=a55_0x344f();return a55_0x3ee6=function(_0x3ee680,_0x538e73){_0x3ee680=_0x3ee680-0x1dd;let _0x1b2f1e=_0x344fe0[_0x3ee680];return _0x1b2f1e;},a55_0x3ee6(_0x5d1d86,_0x1e8da9);}const path=require(a55_0x7101c0(0x212)),url=require(a55_0x7101c0(0x1fb)),util=require('util'),helper=require(a55_0x7101c0(0x1dd)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a55_0x7101c0(0x1dd)),{o11yErrorHandler}=require(a55_0x7101c0(0x27a)),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a55_0x7101c0(0x226)),{FRAMEWORKS}=require(a55_0x7101c0(0x264)),logger=require(a55_0x7101c0(0x252))[a55_0x7101c0(0x246)],scripts=require('../../helpers/accessibility-automation/scripts'),{browserStackExecuteDriver}=require(a55_0x7101c0(0x269)),AccessibilityHelper=require('./accessibility-helper'),constants=require(a55_0x7101c0(0x2a0)),BrowserstackCLI=require(a55_0x7101c0(0x1e1)),AutomationFrameworkState=require(a55_0x7101c0(0x223)),HookState=require(a55_0x7101c0(0x220)),{performScanWithRetry}=require(a55_0x7101c0(0x271)),ClientTroubleShootingService=require(a55_0x7101c0(0x23d)),getBrowserNameFromChannel=_0x45f396=>{const _0x4d1a21=a55_0x7101c0,_0x52b7ba={};_0x52b7ba[_0x4d1a21(0x278)]=_0x4d1a21(0x1ee),_0x52b7ba['AlhLS']=_0x4d1a21(0x1ed),_0x52b7ba['HFbqm']=_0x4d1a21(0x29b),_0x52b7ba[_0x4d1a21(0x235)]=_0x4d1a21(0x21e),_0x52b7ba[_0x4d1a21(0x24a)]=_0x4d1a21(0x28d),_0x52b7ba[_0x4d1a21(0x20e)]=_0x4d1a21(0x233),_0x52b7ba[_0x4d1a21(0x1f8)]=function(_0x4122c9,_0x1a0018){return _0x4122c9===_0x1a0018;},_0x52b7ba[_0x4d1a21(0x296)]=_0x4d1a21(0x22e);const _0x29d3a0=_0x52b7ba,_0xa511d6=_0x29d3a0[_0x4d1a21(0x278)]['split']('|');let _0x42548d=0x0;while(!![]){switch(_0xa511d6[_0x42548d++]){case'0':if(_0x45f396[_0x4d1a21(0x205)](_0x29d3a0[_0x4d1a21(0x245)]))return _0x29d3a0['AlhLS'];continue;case'1':if(_0x45f396[_0x4d1a21(0x205)](_0x29d3a0[_0x4d1a21(0x251)]))return _0x29d3a0['HFbqm'];continue;case'2':if(_0x45f396['includes'](_0x29d3a0[_0x4d1a21(0x235)]))return _0x29d3a0[_0x4d1a21(0x235)];continue;case'3':if(_0x45f396[_0x4d1a21(0x205)](_0x29d3a0['DLtIk']))return _0x29d3a0[_0x4d1a21(0x24a)];continue;case'4':if(_0x45f396[_0x4d1a21(0x205)](_0x29d3a0[_0x4d1a21(0x20e)]))return _0x29d3a0[_0x4d1a21(0x20e)];continue;case'5':if(_0x29d3a0['UUuyL'](_0x45f396,_0x29d3a0[_0x4d1a21(0x296)]))return _0x29d3a0['FdDZv'];continue;}break;}},getBrowserFromWSEndpoint=_0x1a5267=>{const _0x4a070b=a55_0x7101c0,_0x2fa542={'ozvMa':_0x4a070b(0x29b),'aqzwv':function(_0x3fd113,_0x12cd57){return _0x3fd113(_0x12cd57);}};try{const _0x4fde0d=url[_0x4a070b(0x1f4)](_0x1a5267),_0x24f402=new URLSearchParams(_0x4fde0d[_0x4a070b(0x1fd)]),_0x59c3e1=Object[_0x4a070b(0x270)](_0x24f402[_0x4a070b(0x207)]()),_0x2e19c9=JSON[_0x4a070b(0x1f4)](_0x59c3e1['caps']);if(_0x2e19c9&&(_0x2e19c9[_0x4a070b(0x1e2)]||_0x2e19c9['browserName']))return _0x2e19c9[_0x4a070b(0x1e2)]||_0x2e19c9[_0x4a070b(0x290)];return _0x2fa542[_0x4a070b(0x268)];}catch(_0x35d7b6){_0x2fa542['aqzwv'](debug,_0x4a070b(0x29a)+_0x35d7b6['toString']());}},getCloudProviderFromWsEndpoint=_0x31b077=>{const _0x473101=a55_0x7101c0,_0x4abfed={};_0x4abfed[_0x473101(0x234)]=_0x473101(0x203),_0x4abfed[_0x473101(0x27e)]='unknown_grid';const _0x2c4e54=_0x4abfed;if(_0x31b077['includes'](constants[_0x473101(0x23b)])||_0x31b077[_0x473101(0x205)](constants[_0x473101(0x1f6)]))return _0x2c4e54[_0x473101(0x234)];return _0x2c4e54[_0x473101(0x27e)];},a55_0x4a7496={};a55_0x4a7496['cloudProvider']=undefined,a55_0x4a7496[a55_0x7101c0(0x286)]=undefined,a55_0x4a7496['browser']=undefined,a55_0x4a7496[a55_0x7101c0(0x204)]=undefined,a55_0x4a7496[a55_0x7101c0(0x263)]=undefined,a55_0x4a7496['platform_version']=undefined,a55_0x4a7496[a55_0x7101c0(0x1f5)]=undefined,a55_0x4a7496[a55_0x7101c0(0x280)]={};class PlaywrightSessionDetails{static [a55_0x7101c0(0x28f)]=a55_0x4a7496;constructor(){const _0x140df7=a55_0x7101c0,_0x1f83be={};_0x1f83be[_0x140df7(0x261)]=_0x140df7(0x217);const _0x4dbc45=_0x1f83be;throw new Error(_0x4dbc45[_0x140df7(0x261)]);}static [a55_0x7101c0(0x262)]=null;static[a55_0x7101c0(0x1ef)](_0x1264da,_0x4eea50,_0x578b9e=null){const _0x109b62=a55_0x7101c0,_0x1c72da={'obQSD':function(_0x75a6de,_0x137224){return _0x75a6de===_0x137224;},'UoqON':_0x109b62(0x272),'yRPrH':_0x109b62(0x295),'bpIGp':_0x109b62(0x244),'txtRR':'local_grid','SJkam':function(_0x14589f,_0x19396c,_0x17254c){return _0x14589f(_0x19396c,_0x17254c);},'BvZpJ':_0x109b62(0x214),'KUstE':_0x109b62(0x27c),'gSArz':'project','xxooH':_0x109b62(0x257),'tnOyJ':_0x109b62(0x256),'kMjgs':function(_0x499d79,_0x243121){return _0x499d79(_0x243121);},'lnmRX':function(_0x1d6166,_0x1a5a5d){return _0x1d6166===_0x1a5a5d;},'xmRql':_0x109b62(0x203),'wRLSw':'turboscale','IDqtn':_0x109b62(0x211),'DNZZc':function(_0x27f92e,_0x10abdd){return _0x27f92e(_0x10abdd);},'lVAvd':function(_0x19646e){return _0x19646e();},'dGuoY':function(_0x3865dd,_0xb03b21){return _0x3865dd&&_0xb03b21;},'qLoZb':function(_0x1c1c95){return _0x1c1c95();},'lEIOR':function(_0xd7bf60,_0x575b4d){return _0xd7bf60(_0x575b4d);},'duMQL':function(_0xb204d1,_0x5a63a2){return _0xb204d1+_0x5a63a2;},'WhelH':_0x109b62(0x20d),'sDSVX':'setupBrowserDetails'},_0x332109=this;return _0x1c72da[_0x109b62(0x25e)](o11yErrorHandler,async function _0x271ddf(_0x59859d,_0x56859d,_0x55c812=null){const _0x30efeb=_0x109b62;let _0x4704f4=_0x59859d['_name'],_0x2d0ced=null;_0x59859d&&_0x1c72da['obQSD'](typeof _0x59859d['version'],_0x1c72da['UoqON'])?_0x2d0ced=_0x59859d[_0x30efeb(0x259)]():logger[_0x30efeb(0x274)](_0x1c72da[_0x30efeb(0x28e)]);let _0x12d84a=null;_0x59859d&&_0x1c72da[_0x30efeb(0x227)](typeof _0x59859d[_0x30efeb(0x1f7)],_0x1c72da[_0x30efeb(0x281)])?_0x12d84a=_0x59859d['model']():logger['debug'](_0x1c72da[_0x30efeb(0x1e9)]);let _0x5a375c=null,_0x551464=null,_0xbc29a6=null,_0x1f10c7=_0x1c72da['txtRR'];if(_0x59859d[_0x30efeb(0x1f2)][_0x30efeb(0x26d)]()||global[_0x30efeb(0x202)]&&!process['env']['BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE']){let _0x3a24bf=null;_0x1c72da['SJkam'](nestedKeyValue,_0x59859d,[_0x1c72da['BvZpJ'],_0x1c72da[_0x30efeb(0x284)]])?_0x3a24bf=_0x59859d[_0x30efeb(0x214)][_0x30efeb(0x27c)]:_0x3a24bf=_0x1c72da[_0x30efeb(0x25e)](nestedKeyValue,_0x56859d,[_0x1c72da[_0x30efeb(0x29d)],_0x1c72da[_0x30efeb(0x247)],_0x1c72da[_0x30efeb(0x1ec)]]);const _0x26bdf6=_0x55c812||_0x3a24bf&&_0x3a24bf[_0x30efeb(0x225)];if(_0x26bdf6){_0x1f10c7=_0x1c72da['kMjgs'](getCloudProviderFromWsEndpoint,_0x26bdf6);if(_0x1c72da['lnmRX'](_0x1f10c7,_0x1c72da[_0x30efeb(0x230)]))_0xbc29a6=constants['ATS_WSS_URL_REGEX'][_0x30efeb(0x1ea)](_0x26bdf6)?_0x1c72da[_0x30efeb(0x221)]:_0x1c72da[_0x30efeb(0x29f)],_0x4704f4=_0x1c72da[_0x30efeb(0x25a)](getBrowserFromWSEndpoint,_0x26bdf6)||_0x4704f4,_0x5a375c=_0x332109[_0x30efeb(0x28f)][_0x30efeb(0x263)],_0x551464=_0x332109[_0x30efeb(0x28f)][_0x30efeb(0x25b)];else{const _0x4500e4=await _0x1c72da[_0x30efeb(0x28c)](getPlatformDetails);_0x5a375c=_0x4500e4[_0x30efeb(0x292)],_0x551464=_0x4500e4['platformVersion'];}}if(_0x1c72da[_0x30efeb(0x1eb)](!_0x5a375c,!_0x551464)&&!_0x1c72da[_0x30efeb(0x28c)](isBrowserstackInfra)){const _0x2078ee=await _0x1c72da[_0x30efeb(0x260)](getPlatformDetails);_0x5a375c=_0x2078ee[_0x30efeb(0x292)],_0x551464=_0x2078ee[_0x30efeb(0x255)];}}else{_0x56859d&&_0x56859d[_0x30efeb(0x24e)][_0x30efeb(0x257)][_0x30efeb(0x1de)]?_0x4704f4=_0x1c72da[_0x30efeb(0x20b)](getBrowserNameFromChannel,_0x56859d[_0x30efeb(0x24e)][_0x30efeb(0x257)][_0x30efeb(0x1de)]):_0x4704f4=_0x1c72da[_0x30efeb(0x25f)](_0x1c72da[_0x30efeb(0x24c)],_0x4704f4[_0x30efeb(0x26e)]());const _0x3fff9a=await _0x1c72da['qLoZb'](getPlatformDetails);_0x5a375c=_0x3fff9a[_0x30efeb(0x292)],_0x551464=_0x3fff9a[_0x30efeb(0x255)];}const _0x2e5b95={};_0x2e5b95[_0x30efeb(0x1e2)]=_0x4704f4,_0x2e5b95[_0x30efeb(0x204)]=_0x2d0ced,_0x2e5b95[_0x30efeb(0x280)]={},_0x2e5b95['platform']=_0x5a375c,_0x2e5b95[_0x30efeb(0x25b)]=_0x551464,_0x2e5b95['product']=_0xbc29a6;const _0x17862d=_0x2e5b95;_0x12d84a&&(_0x17862d[_0x30efeb(0x280)][_0x30efeb(0x1e0)]=_0x12d84a);const _0x31a933={};_0x31a933[_0x30efeb(0x22d)]=_0x1f10c7,_0x332109['currentSessionDetails']=Object[_0x30efeb(0x24b)]({},_0x332109[_0x30efeb(0x28f)],_0x31a933,_0x17862d);},_0x1c72da[_0x109b62(0x258)])(_0x1264da,_0x4eea50,_0x578b9e);}static['patch'](){const _0x5ba453=a55_0x7101c0;this[_0x5ba453(0x273)](),this[_0x5ba453(0x232)]();}static[a55_0x7101c0(0x273)](){const _0x4ce1ec=a55_0x7101c0,_0x50e36b={'giGkQ':function(_0x173800,_0x1ae8c0,_0xe54e2a){return _0x173800(_0x1ae8c0,_0xe54e2a);},'YOHsR':_0x4ce1ec(0x23c),'mhdfY':'testInfo','ynbOa':_0x4ce1ec(0x23f),'kMrpl':function(_0x30237e,_0x733182,_0x2958bb){return _0x30237e(_0x733182,_0x2958bb);},'PYagu':_0x4ce1ec(0x21c),'MZvAc':_0x4ce1ec(0x26c),'NaLkR':function(_0x4018d1,_0xc24691,_0x2bc549){return _0x4018d1(_0xc24691,_0x2bc549);},'XvDyb':function(_0x1c8308,_0x515585){return _0x1c8308===_0x515585;},'eHwuD':_0x4ce1ec(0x239),'KzTXE':function(_0x281678,_0x531d42,_0x3fef1a,_0x1a1fe4){return _0x281678(_0x531d42,_0x3fef1a,_0x1a1fe4);},'yTqIG':function(_0x4812b3,_0x9d56ad){return _0x4812b3||_0x9d56ad;},'UWhxN':function(_0x24125a,_0x4c8850){return _0x24125a(_0x4c8850);},'hlaAR':function(_0x264439,_0x49d766){return _0x264439(_0x49d766);},'CYFDS':_0x4ce1ec(0x1f9),'yPrcy':function(_0x39bebb,_0x544c8c){return _0x39bebb!=_0x544c8c;},'RRORA':function(_0x3ece83,_0x58c555){return _0x3ece83!=_0x58c555;},'FWRQj':function(_0x596ae6){return _0x596ae6();},'iDfLC':_0x4ce1ec(0x218),'gLFkT':function(_0x37e1d1,_0x4a70b1){return _0x37e1d1(_0x4a70b1);},'KjyHz':_0x4ce1ec(0x201),'ofBld':_0x4ce1ec(0x1f0),'lJoWN':function(_0x22b164,_0xccaeab){return _0x22b164(_0xccaeab);}},_0x3fe5d5=this;!this['Connection']&&(this[_0x4ce1ec(0x25d)]=helper[_0x4ce1ec(0x215)](),!this['Connection']&&_0x50e36b[_0x4ce1ec(0x1f3)](debug,_0x50e36b[_0x4ce1ec(0x289)]));const _0x4fe958=this[_0x4ce1ec(0x25d)];if(_0x50e36b[_0x4ce1ec(0x26f)](_0x4fe958,null)&&_0x4fe958[_0x4ce1ec(0x1f1)][_0x4ce1ec(0x237)])return;try{if(_0x50e36b[_0x4ce1ec(0x24f)](_0x4fe958,null)){const _0x15260b=_0x4fe958['prototype'][_0x4ce1ec(0x201)],_0x49eb0b=_0x4fe958['prototype'][_0x4ce1ec(0x218)];_0x50e36b[_0x4ce1ec(0x224)](isAccessibilityAutomationSession)&&Object[_0x4ce1ec(0x243)](_0x4fe958['prototype'],_0x50e36b[_0x4ce1ec(0x285)],{'get':function(){return async function(){const _0x4b99c4=a55_0x3ee6;try{if(!global[_0x4b99c4(0x27d)]&&global['accessibilityPlatform']&&_0x50e36b[_0x4b99c4(0x282)](nestedKeyValue,global['__workerDetails'],[_0x50e36b[_0x4b99c4(0x22c)],_0x50e36b['mhdfY'],_0x50e36b['ynbOa']])&&_0x50e36b['giGkQ'](shouldScanTestForAccessibility,global[_0x4b99c4(0x21c)]['currentTest'][_0x4b99c4(0x21f)]['titlePath'],!![])&&scripts[_0x4b99c4(0x222)](arguments[0x1])){logger[_0x4b99c4(0x274)](_0x4b99c4(0x1e4)+arguments[0x1]),global['bstackPerformA11yScan']=!![];const _0x531d1f=_0x50e36b[_0x4b99c4(0x1fa)](nestedKeyValue,global,[_0x50e36b['PYagu'],_0x50e36b[_0x4b99c4(0x267)]]);_0x531d1f&&logger[_0x4b99c4(0x1e6)](_0x4b99c4(0x206)+util[_0x4b99c4(0x277)](await _0x50e36b[_0x4b99c4(0x276)](performScanWithRetry,_0x531d1f,arguments[0x1]))),_0x50e36b[_0x4b99c4(0x228)](arguments[0x0]['_type'],_0x50e36b[_0x4b99c4(0x253)])&&global[_0x4b99c4(0x213)]&&logger[_0x4b99c4(0x1e6)]('Driver\x20Scan\x20result='+util['format'](await _0x50e36b['KzTXE'](performScanWithRetry,global[_0x4b99c4(0x213)],arguments[0x1],scripts['performScan'])));}}catch(_0x69bca1){logger[_0x4b99c4(0x274)](_0x4b99c4(0x297)+util[_0x4b99c4(0x277)](_0x69bca1));}return global[_0x4b99c4(0x27d)]=![],_0x49eb0b[_0x4b99c4(0x1e8)](this,arguments);};}}),!_0x50e36b['gLFkT'](isFalse,process[_0x4ce1ec(0x283)][_0x4ce1ec(0x29c)])&&Object[_0x4ce1ec(0x243)](_0x4fe958[_0x4ce1ec(0x1f1)],_0x50e36b['KjyHz'],{'get':function(){return async function _0x5ba58e(_0x47f7cb){const _0x5cfe9c=a55_0x3ee6;if(BrowserstackCLI[_0x5cfe9c(0x238)]()['isRunning']()){const _0x170605={};_0x170605[_0x5cfe9c(0x23a)]=_0x47f7cb,await BrowserstackCLI[_0x5cfe9c(0x238)]()[_0x5cfe9c(0x216)]()['trackEvent'](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x5cfe9c(0x236)],_0x170605);}else{const _0xd01e78=_0x47f7cb&&_0x47f7cb[_0x5cfe9c(0x26a)]&&_0x47f7cb[_0x5cfe9c(0x26a)][_0x5cfe9c(0x200)];if(_0xd01e78){const _0x23b9c9=_0xd01e78[_0x5cfe9c(0x28b)],_0x210504=_0xd01e78['platformDetails'];_0x50e36b[_0x5cfe9c(0x241)](!_0x23b9c9,!_0x210504)&&await ClientTroubleShootingService[_0x5cfe9c(0x293)](),_0x210504&&(_0x50e36b[_0x5cfe9c(0x1fe)](debug,_0x5cfe9c(0x242)+_0x210504[_0x5cfe9c(0x21b)]()),_0x3fe5d5[_0x5cfe9c(0x28f)]['platform']=_0x210504[_0x5cfe9c(0x292)],_0x3fe5d5[_0x5cfe9c(0x28f)][_0x5cfe9c(0x25b)]=_0x210504[_0x5cfe9c(0x255)]),_0x23b9c9&&(_0x50e36b['hlaAR'](debug,_0x5cfe9c(0x1df)+_0x23b9c9),_0x3fe5d5[_0x5cfe9c(0x28f)][_0x5cfe9c(0x286)]=_0x23b9c9);}}return _0x15260b['apply'](this,arguments);};}}),_0x4fe958['prototype'][_0x4ce1ec(0x237)]=!![],logger[_0x4ce1ec(0x274)](_0x50e36b['ofBld']);}}catch(_0x4d92d9){_0x50e36b['lJoWN'](debug,_0x4ce1ec(0x21d)+_0x4d92d9),_0x3fe5d5['sessionError']=_0x4d92d9['toString']();}}static[a55_0x7101c0(0x232)](){const _0x580ad3=a55_0x7101c0,_0x1f85bd={'cRieY':function(_0x53215d,_0x558272){return _0x53215d(_0x558272);},'tyJlm':function(_0x41ca27){return _0x41ca27();},'UWZAs':function(_0x3c9479,_0x1d90e7){return _0x3c9479>=_0x1d90e7;},'lHBOa':_0x580ad3(0x249),'CzzEs':function(_0x775506,_0x410e56){return _0x775506(_0x410e56);},'AUhqy':_0x580ad3(0x29e),'KfCvq':_0x580ad3(0x287),'lRnhB':_0x580ad3(0x298),'AuLpS':'chromium','dMZzz':'crConnection.js','CCEdi':_0x580ad3(0x254),'TtdeT':_0x580ad3(0x1e7),'jYflq':function(_0x4ec7b1,_0x442a01){return _0x4ec7b1!=_0x442a01;},'yeDvO':_0x580ad3(0x275)},_0x1e62fe=this;if(_0x1f85bd[_0x580ad3(0x26b)](isAccessibilityAutomationSession)){let _0x5b8c91=null,_0x2afeb6=![];try{const _0x8a2e7e=helper[_0x580ad3(0x1e3)](FRAMEWORKS['PLAYWRIGHT']);_0x2afeb6=_0x1f85bd[_0x580ad3(0x24d)](helper[_0x580ad3(0x294)](_0x8a2e7e,_0x1f85bd[_0x580ad3(0x219)]),0x0);}catch(_0x1f82b9){_0x1f85bd[_0x580ad3(0x299)](debug,_0x580ad3(0x1ff)+_0x1f82b9['toString']());}if(_0x2afeb6)_0x1f85bd[_0x580ad3(0x25c)](debug,_0x1f85bd['AUhqy']);else try{const _0x41df32=path[_0x580ad3(0x22a)](_0x1f85bd[_0x580ad3(0x240)],_0x1f85bd[_0x580ad3(0x288)],_0x1f85bd['AuLpS'],_0x1f85bd[_0x580ad3(0x210)]),_0x22ea41=_0x1f85bd[_0x580ad3(0x25c)](importFileFromPWCore,_0x41df32);!_0x22ea41?_0x1f85bd['cRieY'](debug,_0x1f85bd[_0x580ad3(0x250)]):_0x5b8c91=_0x22ea41[_0x580ad3(0x209)];}catch(_0x2cf015){_0x1f85bd['cRieY'](debug,_0x1f85bd[_0x580ad3(0x208)]);}try{if(_0x1f85bd['jYflq'](_0x5b8c91,null)){const _0x111fbc=_0x5b8c91[_0x580ad3(0x1f1)]['_onMessage'];Object[_0x580ad3(0x243)](_0x5b8c91[_0x580ad3(0x1f1)],_0x1f85bd[_0x580ad3(0x27b)],{'get':function(){return async function _0x300920(_0x2b25b3){const _0x33e87c=a55_0x3ee6;try{if(BrowserstackCLI[_0x33e87c(0x238)]()[_0x33e87c(0x20f)]()){const _0x492b76={};_0x492b76[_0x33e87c(0x23a)]=_0x2b25b3,await BrowserstackCLI[_0x33e87c(0x238)]()[_0x33e87c(0x216)]()[_0x33e87c(0x291)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState['POST'],_0x492b76),delete _0x2b25b3[_0x33e87c(0x1e5)];}else{const _0x5b32d2=_0x2b25b3[_0x33e87c(0x1e5)];if(_0x5b32d2){delete _0x2b25b3[_0x33e87c(0x1e5)];const _0x3eb4e2=_0x5b32d2[_0x33e87c(0x28b)],_0x4c2445=_0x5b32d2[_0x33e87c(0x27f)];_0x4c2445&&(_0x1f85bd[_0x33e87c(0x299)](debug,_0x33e87c(0x23e)+_0x4c2445[_0x33e87c(0x21b)]()),_0x1e62fe[_0x33e87c(0x28f)]['platform']=_0x4c2445[_0x33e87c(0x292)],_0x1e62fe[_0x33e87c(0x28f)]['platform_version']=_0x4c2445[_0x33e87c(0x255)]),_0x3eb4e2&&(_0x1f85bd['cRieY'](debug,_0x33e87c(0x248)+_0x3eb4e2),_0x1e62fe[_0x33e87c(0x28f)]['bsSessionId']=_0x3eb4e2);}}}catch(_0x133513){_0x1f85bd[_0x33e87c(0x299)](debug,_0x33e87c(0x266)+_0x133513['toString']());}return _0x111fbc['apply'](this,arguments);};}});}}catch(_0x169834){_0x1f85bd[_0x580ad3(0x25c)](debug,'Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20'+_0x169834),_0x1e62fe['sessionError']=_0x169834[_0x580ad3(0x21b)]();}}}static[a55_0x7101c0(0x22b)](){const _0x4681db=a55_0x7101c0;return this[_0x4681db(0x28f)];}}module[a55_0x7101c0(0x22f)]=PlaywrightSessionDetails;
|
|
1
|
+
const a55_0x718dd5=a55_0x45bc;function a55_0x3d6d(){const _0x1d8cc0=['qCANx','edge','EmbTt','TlaVi','AOHfa','NyHXR','Page','getInstance','CRConnection','split','UWNmQ','getAutomationFramework','cloudProvider','NvOmw','dispatch','server','../../helpers/accessibility-automation/scripts','gNszD','browserName','PLAYWRIGHT_DISPATCH','_browserType','BROWSERSTACK_TEST_OBSERVABILITY','Driver\x20Scan\x20result=','_bstackDispatchPatched','DJYKJ','tIjsk','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','POST','ATS_WSS_URL_REGEX','browserstack','debug','currentSessionDetails','PRLhO','../v2/browserstackCLI','SfZlX','mtUvv','BkLtg','35780120QTxBYb','KvjoX','vTTwX','exports','WHZOz','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','toLowerCase','info','2539155vfOXkB','path','unknown_grid','5|1|3|2|0|4','UQAuQ','6378085MdAmNF','shouldWrapCommand','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','Failed\x20to\x20perform\x20scan\x20','compareVersions','reportSessionLinkingIssue','HPhIx','UAeqO','GiPxq','yMjOr','RSXZJ','3899452ABMmsD','defineProperty','capabilities','VURyv','MlbII','pwPage','Page\x20Scan\x20result=','test','LWIaP','dRwiE','bsSessionId','playwright-','includes','TITnJ','turboscale','LvEkl','sendMessageToServer','1739460rutJzQ','patch','firefox','query','fromEntries','Error\x20in\x20finding\x20platform\x20details\x20','zFoae','function','connectOptions','../../helpers/logger','sessionId','setupBrowserDetails','EvwAu','oCkFO','product','ZAZiq','Performing\x20scan\x20for\x20','use','browser_version','model','BSTACK_ATS_URL','yQJTi','PLAYWRIGHT','iRREn','trackEvent','8woohsG','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','AOhlH','JimZi','UqQAR','ROdvl','patchConnection','kHrJY','platformDetails','FrTch','kYhVX','deviceModel','wHzAm','format','version','winstonLogger','currentTest','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','aYhnG','qJHxr','bStackParams','Aixnh','bstackPerformA11yScan','project','AXJCu','aWLcM','prototype','BSTACK_URL','platform','parse','sZXUv','getFrameworkVersion','PJeJj','../../helpers/test-observability/constants','crConnection.js','../../bin/playwright/accessibility-helper','wsEndpoint','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','SBbIe','channel','cWPcp','kLnxP','__workerDetails','DPRVm','../v2/state/hookState.js','bcAqw','../../helpers/test-observability/utils','pJRhx','rvzKA','Not\x20able\x20to\x20import\x20crConnection','message','url','YoWmF','getDetails','breSv','../utils/clientTroubleshootingService.js','env','isRunning','Error\x20in\x20importing\x20crConnection','accessibilityPlatform','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','chromium','sYIEj','toString','titlePath','__driver','testInfo','platform_version','local_grid','assign','DHRey','xKQHW','229553iUuDel','../../helpers/helper','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','_onMessage','apply','jUjGI','platformName','RcCuu','eYUKa','chrome','rEVEg','_defaultConnectOptions','platformVersion','WtLPX','wczCx','6565332vXmKPC','lib','sessionError','caps','isRemote','entries','patchCRConnection','KxCuG','Connection','bsParams','webkit','Setting\x20session\x20id\x20received\x20from\x20BS\x20','_name','futXu','BpuPE'];a55_0x3d6d=function(){return _0x1d8cc0;};return a55_0x3d6d();}(function(_0x4511e3,_0x2f0de7){const _0x807acb=a55_0x45bc,_0xfb6505=_0x4511e3();while(!![]){try{const _0x68b5e1=-parseInt(_0x807acb(0x13b))/0x1*(parseInt(_0x807acb(0xf3))/0x2)+parseInt(_0x807acb(0xda))/0x3+-parseInt(_0x807acb(0x196))/0x4+-parseInt(_0x807acb(0x186))/0x5+-parseInt(_0x807acb(0x14a))/0x6+-parseInt(_0x807acb(0x18b))/0x7+parseInt(_0x807acb(0x17e))/0x8;if(_0x68b5e1===_0x2f0de7)break;else _0xfb6505['push'](_0xfb6505['shift']());}catch(_0x152499){_0xfb6505['push'](_0xfb6505['shift']());}}}(a55_0x3d6d,0x9dba4));function a55_0x45bc(_0x5a88d5,_0x49d73c){const _0x3d6da8=a55_0x3d6d();return a55_0x45bc=function(_0x45bc6b,_0x360256){_0x45bc6b=_0x45bc6b-0xd3;let _0x5187e6=_0x3d6da8[_0x45bc6b];return _0x5187e6;},a55_0x45bc(_0x5a88d5,_0x49d73c);}const path=require(a55_0x718dd5(0x187)),url=require(a55_0x718dd5(0x126)),util=require('util'),helper=require(a55_0x718dd5(0x13c)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a55_0x718dd5(0x13c)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{debug,getPlatformDetails}=require(a55_0x718dd5(0x121)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{FRAMEWORKS}=require(a55_0x718dd5(0x114)),logger=require(a55_0x718dd5(0xe3))[a55_0x718dd5(0x102)],scripts=require(a55_0x718dd5(0x169)),{browserStackExecuteDriver}=require(a55_0x718dd5(0x116)),AccessibilityHelper=require('./accessibility-helper'),constants=require('../utils/constants'),BrowserstackCLI=require(a55_0x718dd5(0x17a)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a55_0x718dd5(0x11f)),{performScanWithRetry}=require('../../helpers/accessibility-automation/accessibilityRetryHelper.js'),ClientTroubleShootingService=require(a55_0x718dd5(0x12a)),getBrowserNameFromChannel=_0x32630b=>{const _0x3456e9=a55_0x718dd5,_0x201662={};_0x201662[_0x3456e9(0x166)]=_0x3456e9(0x189),_0x201662[_0x3456e9(0x148)]='safari',_0x201662[_0x3456e9(0x127)]='chrome',_0x201662['kLnxP']=_0x3456e9(0xdc),_0x201662[_0x3456e9(0x140)]=_0x3456e9(0x15a),_0x201662[_0x3456e9(0x111)]=function(_0x2731e2,_0x2cc16e){return _0x2731e2===_0x2cc16e;},_0x201662[_0x3456e9(0x182)]=_0x3456e9(0x154),_0x201662[_0x3456e9(0x143)]='chromium';const _0x557c34=_0x201662,_0x4d901a=_0x557c34[_0x3456e9(0x166)][_0x3456e9(0x162)]('|');let _0x5d0e35=0x0;while(!![]){switch(_0x4d901a[_0x5d0e35++]){case'0':if(_0x32630b[_0x3456e9(0xd5)](_0x557c34['WtLPX']))return _0x557c34[_0x3456e9(0x148)];continue;case'1':if(_0x32630b[_0x3456e9(0xd5)](_0x557c34[_0x3456e9(0x127)]))return _0x557c34[_0x3456e9(0x127)];continue;case'2':if(_0x32630b[_0x3456e9(0xd5)](_0x557c34[_0x3456e9(0x11c)]))return _0x557c34[_0x3456e9(0x11c)];continue;case'3':if(_0x32630b['includes'](_0x557c34[_0x3456e9(0x140)]))return _0x557c34[_0x3456e9(0x140)];continue;case'4':if(_0x557c34['sZXUv'](_0x32630b,_0x557c34['WHZOz']))return _0x557c34['WHZOz'];continue;case'5':if(_0x32630b['includes'](_0x557c34['eYUKa']))return _0x557c34['eYUKa'];continue;}break;}},getBrowserFromWSEndpoint=_0x378aea=>{const _0xe9a22f=a55_0x718dd5,_0x2de948={'NyHXR':_0xe9a22f(0x144),'HPhIx':function(_0x473df3,_0x95cef9){return _0x473df3(_0x95cef9);}};try{const _0x584559=url[_0xe9a22f(0x110)](_0x378aea),_0x5a87ba=new URLSearchParams(_0x584559[_0xe9a22f(0xdd)]),_0x4b2ee6=Object[_0xe9a22f(0xde)](_0x5a87ba[_0xe9a22f(0x14f)]()),_0x5c0a85=JSON['parse'](_0x4b2ee6[_0xe9a22f(0x14d)]);if(_0x5c0a85&&(_0x5c0a85['browser']||_0x5c0a85[_0xe9a22f(0x16b)]))return _0x5c0a85['browser']||_0x5c0a85[_0xe9a22f(0x16b)];return _0x2de948[_0xe9a22f(0x15e)];}catch(_0x22a445){_0x2de948[_0xe9a22f(0x191)](debug,_0xe9a22f(0x173)+_0x22a445['toString']());}},getCloudProviderFromWsEndpoint=_0x571631=>{const _0x5ef2b3=a55_0x718dd5,_0x1ccfa1={};_0x1ccfa1['AOHfa']='browserstack',_0x1ccfa1['RSXZJ']=_0x5ef2b3(0x188);const _0x383ceb=_0x1ccfa1;if(_0x571631[_0x5ef2b3(0xd5)](constants[_0x5ef2b3(0x10e)])||_0x571631['includes'](constants[_0x5ef2b3(0xee)]))return _0x383ceb[_0x5ef2b3(0x15d)];return _0x383ceb[_0x5ef2b3(0x195)];},a55_0x4da92f={};a55_0x4da92f[a55_0x718dd5(0x165)]=undefined,a55_0x4da92f[a55_0x718dd5(0xd3)]=undefined,a55_0x4da92f['browser']=undefined,a55_0x4da92f[a55_0x718dd5(0xec)]=undefined,a55_0x4da92f[a55_0x718dd5(0x10f)]=undefined,a55_0x4da92f[a55_0x718dd5(0x136)]=undefined,a55_0x4da92f[a55_0x718dd5(0xe8)]=undefined,a55_0x4da92f[a55_0x718dd5(0x198)]={};class PlaywrightSessionDetails{static [a55_0x718dd5(0x178)]=a55_0x4da92f;constructor(){const _0x5d23f4=a55_0x718dd5,_0xd7092a={};_0xd7092a[_0x5d23f4(0x129)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x24bcf4=_0xd7092a;throw new Error(_0x24bcf4[_0x5d23f4(0x129)]);}static [a55_0x718dd5(0x14c)]=null;static['setupBrowserDetails'](_0xa84c19,_0x55216c,_0x4af360=null){const _0x1e6747=a55_0x718dd5,_0xf89de9={'oCkFO':function(_0x5da297,_0x16d59e){return _0x5da297===_0x16d59e;},'kYhVX':_0x1e6747(0xe1),'wHzAm':'Browser\x20is\x20not\x20defined\x20or\x20not\x20available','OMKzI':function(_0x13f6cf,_0x1d4812){return _0x13f6cf===_0x1d4812;},'xKQHW':'Device\x20Model\x20is\x20not\x20available','KxCuG':_0x1e6747(0x137),'KHYzc':function(_0x193d43,_0x5be431,_0x169cc1){return _0x193d43(_0x5be431,_0x169cc1);},'PRLhO':_0x1e6747(0x16d),'qJXxp':_0x1e6747(0x146),'JimZi':_0x1e6747(0x10a),'futXu':_0x1e6747(0xeb),'kHrJY':_0x1e6747(0xe2),'dRwiE':function(_0x3a8036,_0x23a7b9){return _0x3a8036(_0x23a7b9);},'yMjOr':function(_0x42000b,_0x3fc9fa){return _0x42000b===_0x3fc9fa;},'cWPcp':_0x1e6747(0x176),'QcmGZ':_0x1e6747(0xd7),'aWLcM':'automate','zFoae':function(_0x10f358){return _0x10f358();},'HNLoA':function(_0x455608,_0x4b025c){return _0x455608&&_0x4b025c;},'Aixnh':function(_0xedd186,_0x288e2d){return _0xedd186+_0x288e2d;},'mtUvv':_0x1e6747(0xd4),'qJHxr':function(_0x337afc,_0x26f4ba,_0x2ed1e6){return _0x337afc(_0x26f4ba,_0x2ed1e6);},'DPRVm':_0x1e6747(0xe5)},_0x2cd68d=this;return _0xf89de9[_0x1e6747(0x106)](o11yErrorHandler,async function _0x5b0608(_0x180ba3,_0x2793cb,_0x4ee6e3=null){const _0xe36450=_0x1e6747;let _0x441b36=_0x180ba3[_0xe36450(0x156)],_0x47e88f=null;_0x180ba3&&_0xf89de9[_0xe36450(0xe7)](typeof _0x180ba3['version'],_0xf89de9[_0xe36450(0xfd)])?_0x47e88f=_0x180ba3[_0xe36450(0x101)]():logger[_0xe36450(0x177)](_0xf89de9[_0xe36450(0xff)]);let _0x262cc3=null;_0x180ba3&&_0xf89de9['OMKzI'](typeof _0x180ba3[_0xe36450(0xed)],_0xf89de9['kYhVX'])?_0x262cc3=_0x180ba3[_0xe36450(0xed)]():logger[_0xe36450(0x177)](_0xf89de9[_0xe36450(0x13a)]);let _0x1cd31d=null,_0x38550=null,_0x2216bc=null,_0x359db1=_0xf89de9[_0xe36450(0x151)];if(_0x180ba3['_connection'][_0xe36450(0x14e)]()||global[_0xe36450(0x12e)]&&!process[_0xe36450(0x12b)]['BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE']){let _0x2d3abb=null;_0xf89de9['KHYzc'](nestedKeyValue,_0x180ba3,[_0xf89de9[_0xe36450(0x179)],_0xf89de9['qJXxp']])?_0x2d3abb=_0x180ba3['_browserType'][_0xe36450(0x146)]:_0x2d3abb=_0xf89de9['KHYzc'](nestedKeyValue,_0x2793cb,[_0xf89de9[_0xe36450(0xf6)],_0xf89de9[_0xe36450(0x157)],_0xf89de9[_0xe36450(0xfa)]]);const _0x326683=_0x4ee6e3||_0x2d3abb&&_0x2d3abb[_0xe36450(0x117)];if(_0x326683){_0x359db1=_0xf89de9['dRwiE'](getCloudProviderFromWsEndpoint,_0x326683);if(_0xf89de9[_0xe36450(0x194)](_0x359db1,_0xf89de9[_0xe36450(0x11b)]))_0x2216bc=constants[_0xe36450(0x175)][_0xe36450(0x19d)](_0x326683)?_0xf89de9['QcmGZ']:_0xf89de9[_0xe36450(0x10c)],_0x441b36=_0xf89de9['dRwiE'](getBrowserFromWSEndpoint,_0x326683)||_0x441b36,_0x1cd31d=_0x2cd68d[_0xe36450(0x178)]['platform'],_0x38550=_0x2cd68d['currentSessionDetails'][_0xe36450(0x136)];else{const _0x31be1c=await _0xf89de9[_0xe36450(0xe0)](getPlatformDetails);_0x1cd31d=_0x31be1c['platformName'],_0x38550=_0x31be1c[_0xe36450(0x147)];}}if(_0xf89de9['HNLoA'](!_0x1cd31d,!_0x38550)&&!_0xf89de9[_0xe36450(0xe0)](isBrowserstackInfra)){const _0x52d0a4=await _0xf89de9[_0xe36450(0xe0)](getPlatformDetails);_0x1cd31d=_0x52d0a4['platformName'],_0x38550=_0x52d0a4[_0xe36450(0x147)];}}else{_0x2793cb&&_0x2793cb[_0xe36450(0x10a)][_0xe36450(0xeb)]['channel']?_0x441b36=_0xf89de9[_0xe36450(0x19f)](getBrowserNameFromChannel,_0x2793cb[_0xe36450(0x10a)][_0xe36450(0xeb)][_0xe36450(0x11a)]):_0x441b36=_0xf89de9[_0xe36450(0x108)](_0xf89de9[_0xe36450(0x17c)],_0x441b36[_0xe36450(0x184)]());const _0x3185c7=await _0xf89de9[_0xe36450(0xe0)](getPlatformDetails);_0x1cd31d=_0x3185c7[_0xe36450(0x141)],_0x38550=_0x3185c7[_0xe36450(0x147)];}const _0x5a2f50={};_0x5a2f50['browser']=_0x441b36,_0x5a2f50[_0xe36450(0xec)]=_0x47e88f,_0x5a2f50[_0xe36450(0x198)]={},_0x5a2f50['platform']=_0x1cd31d,_0x5a2f50[_0xe36450(0x136)]=_0x38550,_0x5a2f50['product']=_0x2216bc;const _0x3d3400=_0x5a2f50;_0x262cc3&&(_0x3d3400['capabilities'][_0xe36450(0xfe)]=_0x262cc3);const _0x39e2b3={};_0x39e2b3['cloudProvider']=_0x359db1,_0x2cd68d[_0xe36450(0x178)]=Object[_0xe36450(0x138)]({},_0x2cd68d[_0xe36450(0x178)],_0x39e2b3,_0x3d3400);},_0xf89de9[_0x1e6747(0x11e)])(_0xa84c19,_0x55216c,_0x4af360);}static[a55_0x718dd5(0xdb)](){const _0x7a6b44=a55_0x718dd5;this[_0x7a6b44(0xf9)](),this['patchCRConnection']();}static[a55_0x718dd5(0xf9)](){const _0x1eb9aa=a55_0x718dd5,_0x2521f8={'yQJTi':function(_0x441cc1,_0x41aeea,_0x3863cc){return _0x441cc1(_0x41aeea,_0x3863cc);},'YCeEF':'currentTest','LvEkl':_0x1eb9aa(0x135),'EuNvX':_0x1eb9aa(0x133),'EmbTt':function(_0x1a6448,_0x3d2a6e,_0x309514){return _0x1a6448(_0x3d2a6e,_0x309514);},'EGuHa':_0x1eb9aa(0x11d),'UQAuQ':_0x1eb9aa(0x19b),'UAeqO':function(_0xd0ed8c,_0x1e8ccb){return _0xd0ed8c===_0x1e8ccb;},'TITnJ':_0x1eb9aa(0x15f),'sYIEj':function(_0x3ab8fc,_0x140c41,_0xf9abda,_0x2a4d41){return _0x3ab8fc(_0x140c41,_0xf9abda,_0x2a4d41);},'EvwAu':function(_0x556683,_0x5bad15){return _0x556683||_0x5bad15;},'LWIaP':function(_0xd83cd,_0x36c97f){return _0xd83cd(_0x36c97f);},'aYhnG':'Not\x20able\x20to\x20resolve\x20Connection\x20class','AOhlH':function(_0x13e839,_0x1b1489){return _0x13e839!=_0x1b1489;},'WNMPP':function(_0x139f30,_0x233e27){return _0x139f30!=_0x233e27;},'GiPxq':function(_0x822a33){return _0x822a33();},'SBbIe':_0x1eb9aa(0xd9),'wczCx':function(_0x593996,_0x53b168){return _0x593996(_0x53b168);},'tktQb':'dispatch','tIjsk':_0x1eb9aa(0x12f)},_0x5db249=this;!this[_0x1eb9aa(0x152)]&&(this[_0x1eb9aa(0x152)]=helper['resolveConnectionClass'](),!this['Connection']&&_0x2521f8['LWIaP'](debug,_0x2521f8[_0x1eb9aa(0x105)]));const _0x540de2=this[_0x1eb9aa(0x152)];if(_0x2521f8[_0x1eb9aa(0xf5)](_0x540de2,null)&&_0x540de2[_0x1eb9aa(0x10d)][_0x1eb9aa(0x170)])return;try{if(_0x2521f8['WNMPP'](_0x540de2,null)){const _0x5da55d=_0x540de2[_0x1eb9aa(0x10d)][_0x1eb9aa(0x167)],_0x3c2aa6=_0x540de2['prototype'][_0x1eb9aa(0xd9)];_0x2521f8[_0x1eb9aa(0x193)](isAccessibilityAutomationSession)&&Object[_0x1eb9aa(0x197)](_0x540de2[_0x1eb9aa(0x10d)],_0x2521f8[_0x1eb9aa(0x119)],{'get':function(){const _0x3b37c3=_0x1eb9aa,_0x55767a={'iRREn':function(_0x586d95,_0x560dd2,_0x50e7fc){const _0x2d402d=a55_0x45bc;return _0x2521f8[_0x2d402d(0xef)](_0x586d95,_0x560dd2,_0x50e7fc);},'BkLtg':_0x2521f8['YCeEF'],'bcAqw':_0x2521f8[_0x3b37c3(0xd8)],'pJRhx':_0x2521f8['EuNvX'],'UWNmQ':function(_0x3aa897,_0x190a36,_0x550b8e){const _0x307673=_0x3b37c3;return _0x2521f8[_0x307673(0x15b)](_0x3aa897,_0x190a36,_0x550b8e);},'UqQAR':_0x2521f8['EGuHa'],'FrTch':_0x2521f8[_0x3b37c3(0x18a)],'ROdvl':function(_0x420019,_0xd21535){const _0x180306=_0x3b37c3;return _0x2521f8[_0x180306(0x192)](_0x420019,_0xd21535);},'rEVEg':_0x2521f8[_0x3b37c3(0xd6)],'DJYKJ':function(_0x3dd7c1,_0x566ec8,_0x4cee72,_0x691e96){const _0x1adff5=_0x3b37c3;return _0x2521f8[_0x1adff5(0x131)](_0x3dd7c1,_0x566ec8,_0x4cee72,_0x691e96);}};return async function(){const _0x476aac=_0x3b37c3;try{if(!global[_0x476aac(0x109)]&&global['accessibilityPlatform']&&_0x55767a[_0x476aac(0xf1)](nestedKeyValue,global['__workerDetails'],[_0x55767a[_0x476aac(0x17d)],_0x55767a[_0x476aac(0x120)],_0x55767a[_0x476aac(0x122)]])&&_0x55767a['iRREn'](shouldScanTestForAccessibility,global['__workerDetails'][_0x476aac(0x103)][_0x476aac(0x135)]['titlePath'],!![])&&scripts[_0x476aac(0x18c)](arguments[0x1])){logger[_0x476aac(0x177)](_0x476aac(0xea)+arguments[0x1]),global[_0x476aac(0x109)]=!![];const _0x14d2a0=_0x55767a[_0x476aac(0x163)](nestedKeyValue,global,[_0x55767a[_0x476aac(0xf7)],_0x55767a[_0x476aac(0xfc)]]);_0x14d2a0&&logger[_0x476aac(0x185)](_0x476aac(0x19c)+util[_0x476aac(0x100)](await _0x55767a[_0x476aac(0xf1)](performScanWithRetry,_0x14d2a0,arguments[0x1]))),_0x55767a[_0x476aac(0xf8)](arguments[0x0]['_type'],_0x55767a[_0x476aac(0x145)])&&global[_0x476aac(0x134)]&&logger[_0x476aac(0x185)](_0x476aac(0x16f)+util[_0x476aac(0x100)](await _0x55767a[_0x476aac(0x171)](performScanWithRetry,global[_0x476aac(0x134)],arguments[0x1],scripts['performScan'])));}}catch(_0x155dca){logger['debug'](_0x476aac(0x18e)+util['format'](_0x155dca));}return global['bstackPerformA11yScan']=![],_0x3c2aa6[_0x476aac(0x13f)](this,arguments);};}}),!_0x2521f8[_0x1eb9aa(0x149)](isFalse,process['env'][_0x1eb9aa(0x16e)])&&Object['defineProperty'](_0x540de2[_0x1eb9aa(0x10d)],_0x2521f8['tktQb'],{'get':function(){const _0x491d3c={'AXJCu':function(_0x4bfee5,_0x73df0d){const _0x55b9c7=a55_0x45bc;return _0x2521f8[_0x55b9c7(0xe6)](_0x4bfee5,_0x73df0d);},'TlaVi':function(_0x431627,_0x28c14e){const _0x3384dd=a55_0x45bc;return _0x2521f8[_0x3384dd(0x19e)](_0x431627,_0x28c14e);}};return async function _0x5a0410(_0xd638f6){const _0x3c1709=a55_0x45bc;if(BrowserstackCLI[_0x3c1709(0x160)]()[_0x3c1709(0x12c)]()){const _0xc0a221={};_0xc0a221[_0x3c1709(0x125)]=_0xd638f6,await BrowserstackCLI[_0x3c1709(0x160)]()[_0x3c1709(0x164)]()[_0x3c1709(0xf2)](AutomationFrameworkState[_0x3c1709(0x16c)],HookState[_0x3c1709(0x174)],_0xc0a221);}else{const _0x47850f=_0xd638f6&&_0xd638f6['params']&&_0xd638f6['params'][_0x3c1709(0x153)];if(_0x47850f){const _0x3c411d=_0x47850f[_0x3c1709(0xe4)],_0x58b475=_0x47850f[_0x3c1709(0xfb)];_0x491d3c[_0x3c1709(0x10b)](!_0x3c411d,!_0x58b475)&&await ClientTroubleShootingService[_0x3c1709(0x190)](),_0x58b475&&(_0x491d3c[_0x3c1709(0x15c)](debug,_0x3c1709(0x104)+_0x58b475[_0x3c1709(0x132)]()),_0x5db249[_0x3c1709(0x178)][_0x3c1709(0x10f)]=_0x58b475['platformName'],_0x5db249[_0x3c1709(0x178)][_0x3c1709(0x136)]=_0x58b475[_0x3c1709(0x147)]),_0x3c411d&&(_0x491d3c[_0x3c1709(0x15c)](debug,_0x3c1709(0x155)+_0x3c411d),_0x5db249['currentSessionDetails'][_0x3c1709(0xd3)]=_0x3c411d);}}return _0x5da55d[_0x3c1709(0x13f)](this,arguments);};}}),_0x540de2[_0x1eb9aa(0x10d)][_0x1eb9aa(0x170)]=!![],logger[_0x1eb9aa(0x177)](_0x2521f8[_0x1eb9aa(0x172)]);}}catch(_0x5b1669){_0x2521f8[_0x1eb9aa(0x149)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x5b1669),_0x5db249['sessionError']=_0x5b1669[_0x1eb9aa(0x132)]();}}static[a55_0x718dd5(0x150)](){const _0x840199=a55_0x718dd5,_0x50d353={'VURyv':function(_0x4b0c2d,_0x5acd56){return _0x4b0c2d(_0x5acd56);},'KvjoX':function(_0x33cc37,_0xd94757){return _0x33cc37(_0xd94757);},'jbSLa':function(_0x1f8d6d){return _0x1f8d6d();},'RcCuu':function(_0x1ecae4,_0x25f087){return _0x1ecae4>=_0x25f087;},'vTTwX':'1.60.0','vujKX':function(_0x2c0be2,_0x2d9caa){return _0x2c0be2(_0x2d9caa);},'BpuPE':_0x840199(0x183),'PJeJj':_0x840199(0x14b),'DHRey':_0x840199(0x168),'WbBBI':_0x840199(0x130),'MlbII':_0x840199(0x115),'SfZlX':function(_0x4f0cf9,_0x151442){return _0x4f0cf9(_0x151442);},'rvzKA':_0x840199(0x124),'ZAZiq':_0x840199(0x12d),'gNszD':function(_0x5c8b6e,_0xa2ed2){return _0x5c8b6e!=_0xa2ed2;},'qCANx':'_onMessage'},_0x35ae0f=this;if(_0x50d353['jbSLa'](isAccessibilityAutomationSession)){let _0x5e8142=null,_0x39cdb0=![];try{const _0x153f3c=helper[_0x840199(0x112)](FRAMEWORKS[_0x840199(0xf0)]);_0x39cdb0=_0x50d353[_0x840199(0x142)](helper[_0x840199(0x18f)](_0x153f3c,_0x50d353[_0x840199(0x180)]),0x0);}catch(_0x170338){_0x50d353[_0x840199(0x199)](debug,_0x840199(0x18d)+_0x170338[_0x840199(0x132)]());}if(_0x39cdb0)_0x50d353['vujKX'](debug,_0x50d353[_0x840199(0x158)]);else try{const _0x4d720e=path['join'](_0x50d353[_0x840199(0x113)],_0x50d353[_0x840199(0x139)],_0x50d353['WbBBI'],_0x50d353[_0x840199(0x19a)]),_0x2edaaa=_0x50d353[_0x840199(0x17f)](importFileFromPWCore,_0x4d720e);!_0x2edaaa?_0x50d353[_0x840199(0x17b)](debug,_0x50d353[_0x840199(0x123)]):_0x5e8142=_0x2edaaa[_0x840199(0x161)];}catch(_0x1df38a){_0x50d353[_0x840199(0x199)](debug,_0x50d353[_0x840199(0xe9)]);}try{if(_0x50d353[_0x840199(0x16a)](_0x5e8142,null)){const _0x5bcfb0=_0x5e8142['prototype'][_0x840199(0x13e)];Object['defineProperty'](_0x5e8142[_0x840199(0x10d)],_0x50d353[_0x840199(0x159)],{'get':function(){return async function _0x57def5(_0x56feaf){const _0x53ffed=a55_0x45bc;try{if(BrowserstackCLI[_0x53ffed(0x160)]()[_0x53ffed(0x12c)]()){const _0xd4952d={};_0xd4952d[_0x53ffed(0x125)]=_0x56feaf,await BrowserstackCLI[_0x53ffed(0x160)]()[_0x53ffed(0x164)]()['trackEvent'](AutomationFrameworkState[_0x53ffed(0x16c)],HookState['POST'],_0xd4952d),delete _0x56feaf[_0x53ffed(0x107)];}else{const _0x2ce4a3=_0x56feaf['bStackParams'];if(_0x2ce4a3){delete _0x56feaf[_0x53ffed(0x107)];const _0x177f1b=_0x2ce4a3[_0x53ffed(0xe4)],_0x60a2f8=_0x2ce4a3[_0x53ffed(0xfb)];_0x60a2f8&&(_0x50d353[_0x53ffed(0x199)](debug,_0x53ffed(0xf4)+_0x60a2f8[_0x53ffed(0x132)]()),_0x35ae0f[_0x53ffed(0x178)][_0x53ffed(0x10f)]=_0x60a2f8[_0x53ffed(0x141)],_0x35ae0f[_0x53ffed(0x178)][_0x53ffed(0x136)]=_0x60a2f8[_0x53ffed(0x147)]),_0x177f1b&&(_0x50d353[_0x53ffed(0x199)](debug,_0x53ffed(0x118)+_0x177f1b),_0x35ae0f['currentSessionDetails']['bsSessionId']=_0x177f1b);}}}catch(_0x2953d){_0x50d353[_0x53ffed(0x17f)](debug,_0x53ffed(0xdf)+_0x2953d['toString']());}return _0x5bcfb0[_0x53ffed(0x13f)](this,arguments);};}});}}catch(_0x5bc765){_0x50d353[_0x840199(0x199)](debug,_0x840199(0x13d)+_0x5bc765),_0x35ae0f['sessionError']=_0x5bc765[_0x840199(0x132)]();}}}static[a55_0x718dd5(0x128)](){const _0x3086e8=a55_0x718dd5;return this[_0x3086e8(0x178)];}}module[a55_0x718dd5(0x181)]=PlaywrightSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a56_0x4230b6=a56_0x33eb;(function(_0xfdf2a8,_0x29392b){const _0x26664e=a56_0x33eb,_0xdb9307=_0xfdf2a8();while(!![]){try{const _0x1e5629=parseInt(_0x26664e(0xf8))/0x1*(parseInt(_0x26664e(0xec))/0x2)+-parseInt(_0x26664e(0xea))/0x3*(-parseInt(_0x26664e(0xfd))/0x4)+-parseInt(_0x26664e(0xf4))/0x5+parseInt(_0x26664e(0x109))/0x6+-parseInt(_0x26664e(0xe7))/0x7*(-parseInt(_0x26664e(0xfa))/0x8)+-parseInt(_0x26664e(0x105))/0x9+parseInt(_0x26664e(0xf6))/0xa;if(_0x1e5629===_0x29392b)break;else _0xdb9307['push'](_0xdb9307['shift']());}catch(_0x2e7ba3){_0xdb9307['push'](_0xdb9307['shift']());}}}(a56_0x428f,0x24462));const util=require(a56_0x4230b6(0xf5)),logger=require(a56_0x4230b6(0x101)),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{o11yErrorHandler}=require(a56_0x4230b6(0xf3)),PerformanceTester=require('../../helpers/performance/performance-tester'),{O11y_EVENTS:PerformanceO11yEvents}=require('../../helpers/performance/constants'),BrowserstackCLI=require(a56_0x4230b6(0x103)),CustomTagManager=require('../v2/customTagManager'),uploadAttachmentsManager=require(a56_0x4230b6(0x106)),doo11ySync=PerformanceTester[a56_0x4230b6(0xf7)](PerformanceO11yEvents[a56_0x4230b6(0xff)],o11yErrorHandler(async function doo11ySync(_0x169951){const _0x4cdc14=a56_0x4230b6,_0x517f80={'uXjUQ':function(_0x4a4e3c,_0x22e53a,_0x901662){return _0x4a4e3c(_0x22e53a,_0x901662);},'CkzcY':'__workerDetails','NLzzP':_0x4cdc14(0xf1),'kHzWN':_0x4cdc14(0x102),'CyXQA':_0x4cdc14(0xee)};if(_0x517f80['uXjUQ'](nestedKeyValue,global,[_0x517f80[_0x4cdc14(0x108)],_0x517f80[_0x4cdc14(0x10b)]]))return;await _0x169951[_0x4cdc14(0xe9)](_0xf0a07f=>{},_0x4cdc14(0xe8)+JSON[_0x4cdc14(0x107)]({'action':_0x517f80[_0x4cdc14(0xfe)],'arguments':{'data':'ObservabilitySync:'+Date['now'](),'level':_0x517f80[_0x4cdc14(0xeb)]}})),global['__workerDetails'][_0x4cdc14(0xf1)]=!![];},a56_0x4230b6(0x10c)));function a56_0x33eb(_0x125e89,_0x1c06b2){const _0x428f50=a56_0x428f();return a56_0x33eb=function(_0x33ebaa,_0x4ff93e){_0x33ebaa=_0x33ebaa-0xe6;let _0x54e30b=_0x428f50[_0x33ebaa];return _0x54e30b;},a56_0x33eb(_0x125e89,_0x1c06b2);}exports[a56_0x4230b6(0x10d)]=_0x460aa0=>{const _0x37047b=a56_0x4230b6,_0x356716={'hZCON':function(_0x46bd55,_0x11c2ee){return _0x46bd55(_0x11c2ee);},'QZKrT':function(_0xf2ad83,_0x4cf7ef){return _0xf2ad83(_0x4cf7ef);},'ZsKmd':function(_0x22e7de,_0x27456a,_0x2b7a3c){return _0x22e7de(_0x27456a,_0x2b7a3c);},'JkOIe':'__workerDetails'};if(!_0x460aa0||_0x460aa0[_0x37047b(0x100)])return;const _0x559571=_0x460aa0[_0x37047b(0xef)]['bind'](_0x460aa0);_0x460aa0[_0x37047b(0xef)]=async function _0x4153a4(){const _0x5e0ac5=_0x37047b,_0xa0ff6d=await _0x559571['apply'](_0x460aa0,arguments);try{!BrowserstackCLI['getInstance']()[_0x5e0ac5(0xf9)]()&&!_0x356716['hZCON'](isFalse,process[_0x5e0ac5(0xf2)][_0x5e0ac5(0xf0)])&&await _0x356716[_0x5e0ac5(0xed)](doo11ySync,_0xa0ff6d),BrowserstackCLI['getInstance']()['isRunning']()&&(_0xa0ff6d['setCustomTags']=async(_0x1333b0,_0x3767df,_0x3157bb=![])=>{await CustomTagManager['setCustomTags'](_0x1333b0,_0x3767df,_0x3157bb);},_0xa0ff6d[_0x5e0ac5(0x10a)]=async(_0x563797,_0x2cdee6=![])=>{await uploadAttachmentsManager['uploadAttachments'](_0x563797,_0x2cdee6);});}catch(_0x4886e3){logger[_0x5e0ac5(0xee)]('Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20'+util[_0x5e0ac5(0xfc)](_0x4886e3));}return _0x356716[_0x5e0ac5(0xe6)](nestedKeyValue,global,[_0x356716[_0x5e0ac5(0x104)]])&&(global['__workerDetails'][_0x5e0ac5(0xfb)]=_0xa0ff6d),_0xa0ff6d;},_0x460aa0[_0x37047b(0x100)]=!![];};function a56_0x428f(){const _0x7f6bdc=['../../helpers/logger','annotate','../v2/browserstackCLI','JkOIe','1219203FwwxCB','../v2/uploadAttachmentsManager','stringify','CkzcY','379404JdpkHr','uploadAttachment','NLzzP','doo11ySync','patchBrowserNewPage','ZsKmd','49469IOplco','browserstack_executor:\x20','evaluate','105NwlClL','CyXQA','8nnUrHa','QZKrT','debug','newPage','BROWSERSTACK_TEST_OBSERVABILITY','o11ySyncDone','env','../../helpers/test-observability/error-handler','1239175kHIqMv','util','2283220QkRQtl','measureWrapper','43801YWbBSM','isRunning','40TKOdVe','pwPage','format','3404UpDbqU','kHzWN','SYNC','_bstackNewPagePatched'];a56_0x428f=function(){return _0x7f6bdc;};return a56_0x428f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a57_0x544e23=a57_0x2016;function a57_0x2016(_0xe6aa21,_0x265891){const _0x599047=a57_0x5990();return a57_0x2016=function(_0x201636,_0xca943a){_0x201636=_0x201636-0x146;let _0x3abb29=_0x599047[_0x201636];return _0x3abb29;},a57_0x2016(_0xe6aa21,_0x265891);}(function(_0x4892d8,_0x43dba1){const _0x1a2c0d=a57_0x2016,_0x375d6b=_0x4892d8();while(!![]){try{const _0x73f467=parseInt(_0x1a2c0d(0x161))/0x1+parseInt(_0x1a2c0d(0x19c))/0x2+parseInt(_0x1a2c0d(0x17a))/0x3+-parseInt(_0x1a2c0d(0x176))/0x4*(-parseInt(_0x1a2c0d(0x1a6))/0x5)+parseInt(_0x1a2c0d(0x18e))/0x6*(-parseInt(_0x1a2c0d(0x170))/0x7)+parseInt(_0x1a2c0d(0x197))/0x8*(-parseInt(_0x1a2c0d(0x190))/0x9)+-parseInt(_0x1a2c0d(0x14d))/0xa;if(_0x73f467===_0x43dba1)break;else _0x375d6b['push'](_0x375d6b['shift']());}catch(_0x21d3b7){_0x375d6b['push'](_0x375d6b['shift']());}}}(a57_0x5990,0x343c1));const path=require(a57_0x544e23(0x1a5)),url=require(a57_0x544e23(0x193)),util=require(a57_0x544e23(0x155)),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{debug,getPlatformDetails}=require(a57_0x544e23(0x19f)),logger=require(a57_0x544e23(0x18f))[a57_0x544e23(0x1a1)],constants=require(a57_0x544e23(0x179)),BrowserstackCLI=require(a57_0x544e23(0x166)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a57_0x544e23(0x163)),getBrowserFromWSEndpoint=_0x48e908=>{const _0x33b023=a57_0x544e23,_0x33049d={'upctI':_0x33b023(0x15e),'wzYgx':function(_0x298d35,_0x3b092c){return _0x298d35(_0x3b092c);}};try{const _0x46ad97=url[_0x33b023(0x148)](_0x48e908),_0x383113=new URLSearchParams(_0x46ad97[_0x33b023(0x15f)]),_0x329950=Object[_0x33b023(0x199)](_0x383113[_0x33b023(0x16e)]()),_0x259f7d=JSON[_0x33b023(0x148)](_0x329950[_0x33b023(0x159)]);if(_0x259f7d&&(_0x259f7d[_0x33b023(0x147)]||_0x259f7d[_0x33b023(0x158)]))return _0x259f7d['browser']||_0x259f7d[_0x33b023(0x158)];return _0x33049d[_0x33b023(0x164)];}catch(_0x11703b){_0x33049d[_0x33b023(0x189)](debug,_0x33b023(0x18c)+_0x11703b[_0x33b023(0x167)]());}},getCloudProviderFromWsEndpoint=_0x589cbb=>{const _0x3200e7=a57_0x544e23,_0x1d3b69={};_0x1d3b69[_0x3200e7(0x15c)]=_0x3200e7(0x169),_0x1d3b69['pTxYK']='unknown_grid';const _0x5123ed=_0x1d3b69;if(_0x589cbb['includes'](constants[_0x3200e7(0x177)])||_0x589cbb[_0x3200e7(0x182)](constants[_0x3200e7(0x198)]))return _0x5123ed[_0x3200e7(0x15c)];return _0x5123ed[_0x3200e7(0x16a)];},a57_0xcbd1af={};a57_0xcbd1af[a57_0x544e23(0x149)]=undefined,a57_0xcbd1af[a57_0x544e23(0x15b)]=undefined,a57_0xcbd1af[a57_0x544e23(0x147)]=undefined,a57_0xcbd1af[a57_0x544e23(0x17e)]=undefined,a57_0xcbd1af['platform']=undefined,a57_0xcbd1af[a57_0x544e23(0x1a7)]=undefined,a57_0xcbd1af[a57_0x544e23(0x1a0)]=undefined,a57_0xcbd1af[a57_0x544e23(0x185)]={};function a57_0x5990(){const _0x166f9f=['1223340RufFNj','platformDetails','platform','assign','browser_version','ZEJLt','uBBwA','getAutomationFramework','includes','NhPTD','yOfXh','capabilities','test','onmessage','connection','wzYgx','POST','sessionError','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','Setting\x20session\x20id\x20received\x20from\x20BS\x20','372CBExsD','../../helpers/logger','539559MSpvXX','automate','apply','url','function','patchConnection','JFBPd','16wEWxlX','BSTACK_ATS_URL','fromEntries','string','exports','803018DagcHY','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','debug','../../helpers/test-observability/utils','product','winstonLogger','setupBrowserDetails','platformName','local_grid','path','15xrLFzq','platform_version','pdcnl','browser','parse','cloudProvider','ATS_WSS_URL_REGEX','stringify','result','6406920GkIbza','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','params','currentSessionDetails','platformVersion','_bstackPatched','version','mRGqo','util','turboscale','qlIZf','browserName','caps','bkzeD','bsSessionId','oKWKu','Error\x20in\x20patchConnection:\x20','chrome','query','_connection','298706LgJIHW','message','../v2/state/hookState.js','upctI','FLYGW','../v2/browserstackCLI','toString','PLAYWRIGHT_DISPATCH','browserstack','pTxYK','bStackParams','format','getDetails','entries','whXuu','37597wtSDAI','vOTPX','xTOzx','bsParams','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','getInstance','266072EjgIJG','BSTACK_URL','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','../utils/constants'];a57_0x5990=function(){return _0x166f9f;};return a57_0x5990();}class PuppeteerSessionDetails{static [a57_0x544e23(0x150)]=a57_0xcbd1af;constructor(){const _0x517aa6=a57_0x544e23,_0x4218a7={};_0x4218a7['bkzeD']=_0x517aa6(0x174);const _0x4a8cfe=_0x4218a7;throw new Error(_0x4a8cfe[_0x517aa6(0x15a)]);}static [a57_0x544e23(0x18b)]=null;static async[a57_0x544e23(0x1a2)](_0x5c0dfe,_0x14bcc6){const _0x55881d=a57_0x544e23,_0x26b8d6={'vOTPX':_0x55881d(0x15e),'uBBwA':function(_0x4d8bc6,_0x5970e5){return _0x4d8bc6===_0x5970e5;},'XIILB':_0x55881d(0x194),'ZEJLt':_0x55881d(0x1a4),'NhPTD':function(_0x2a3180,_0x2e1013){return _0x2a3180(_0x2e1013);},'qtwRg':function(_0x1ce678,_0x19d04a){return _0x1ce678===_0x19d04a;},'MntBx':_0x55881d(0x169),'pdcnl':_0x55881d(0x156),'GATSO':_0x55881d(0x191),'doKcT':function(_0x110f04){return _0x110f04();},'qlIZf':function(_0x357b6c){return _0x357b6c();},'FLYGW':function(_0x39611a,_0x6c21b5){return _0x39611a(_0x6c21b5);}};try{let _0x415d1b=_0x26b8d6[_0x55881d(0x171)],_0x2dcce2=null;_0x5c0dfe&&_0x26b8d6[_0x55881d(0x180)](typeof _0x5c0dfe[_0x55881d(0x153)],_0x26b8d6['XIILB'])&&(_0x2dcce2=await _0x5c0dfe['version']());let _0x357760=null,_0x29afe3=null,_0x3beae7=null,_0x20eb66=_0x26b8d6[_0x55881d(0x17f)];if(_0x14bcc6){_0x20eb66=_0x26b8d6[_0x55881d(0x183)](getCloudProviderFromWsEndpoint,_0x14bcc6);if(_0x26b8d6['qtwRg'](_0x20eb66,_0x26b8d6['MntBx']))_0x3beae7=constants[_0x55881d(0x14a)]?constants[_0x55881d(0x14a)][_0x55881d(0x186)](_0x14bcc6)?_0x26b8d6[_0x55881d(0x146)]:_0x26b8d6['GATSO']:_0x26b8d6['GATSO'],_0x415d1b=_0x26b8d6[_0x55881d(0x183)](getBrowserFromWSEndpoint,_0x14bcc6)||_0x415d1b,_0x357760=this[_0x55881d(0x150)][_0x55881d(0x17c)],_0x29afe3=this['currentSessionDetails'][_0x55881d(0x1a7)];else{const _0x2719fa=await _0x26b8d6['doKcT'](getPlatformDetails);_0x357760=_0x2719fa[_0x55881d(0x1a3)],_0x29afe3=_0x2719fa['platformVersion'];}}else{const _0xd7544c=await _0x26b8d6[_0x55881d(0x157)](getPlatformDetails);_0x357760=_0xd7544c['platformName'],_0x29afe3=_0xd7544c[_0x55881d(0x151)];}const _0x4f60f4={};_0x4f60f4[_0x55881d(0x147)]=_0x415d1b,_0x4f60f4['browser_version']=_0x2dcce2,_0x4f60f4[_0x55881d(0x185)]={},_0x4f60f4[_0x55881d(0x17c)]=_0x357760,_0x4f60f4[_0x55881d(0x1a7)]=_0x29afe3,_0x4f60f4[_0x55881d(0x1a0)]=_0x3beae7;const _0x41c24e=_0x4f60f4,_0x96db8e={};_0x96db8e[_0x55881d(0x149)]=_0x20eb66,this['currentSessionDetails']=Object[_0x55881d(0x17d)]({},this[_0x55881d(0x150)],_0x96db8e,_0x41c24e);}catch(_0xeb05c){_0x26b8d6[_0x55881d(0x165)](debug,'Error\x20in\x20setupBrowserDetails:\x20'+util[_0x55881d(0x16c)](_0xeb05c)),this['sessionError']=_0xeb05c['toString']();}}static[a57_0x544e23(0x195)](_0x21460d){const _0x264281=a57_0x544e23,_0x47e919={'iQAAG':function(_0x217436,_0x5c337c){return _0x217436===_0x5c337c;},'whXuu':_0x264281(0x19a),'JFBPd':function(_0x531017,_0x22d33e){return _0x531017(_0x22d33e);},'xTOzx':function(_0x2f7517,_0x464cf9){return _0x2f7517===_0x464cf9;},'mRGqo':_0x264281(0x14e),'yOfXh':function(_0xd987d3,_0x3dbf67){return _0xd987d3(_0x3dbf67);}},_0x2b76f2=this;try{const _0x596374=_0x21460d[_0x264281(0x160)]||_0x21460d[_0x264281(0x188)];if(!_0x596374||_0x596374[_0x264281(0x152)])return;const _0x4d7e3f=_0x596374['onmessage'];_0x596374[_0x264281(0x187)]=function(_0xa3f0fb){const _0x45253=_0x264281;try{const _0x55c62e=_0x47e919['iQAAG'](typeof _0xa3f0fb,_0x47e919[_0x45253(0x16f)])?JSON[_0x45253(0x148)](_0xa3f0fb):_0xa3f0fb,_0x6ac6f1=_0x55c62e?.[_0x45253(0x16b)]||_0x55c62e?.[_0x45253(0x173)]||_0x55c62e?.[_0x45253(0x14f)]?.[_0x45253(0x173)]||_0x55c62e?.['params']?.[_0x45253(0x16b)]||_0x55c62e?.[_0x45253(0x14c)]?.[_0x45253(0x173)]||_0x55c62e?.[_0x45253(0x14c)]?.[_0x45253(0x16b)];if(_0x6ac6f1){if(BrowserstackCLI[_0x45253(0x175)]()['isRunning']()){const _0x57cfb4={};_0x57cfb4[_0x45253(0x162)]=_0x55c62e,BrowserstackCLI['getInstance']()[_0x45253(0x181)]()['trackEvent'](AutomationFrameworkState[_0x45253(0x168)],HookState[_0x45253(0x18a)],_0x57cfb4);}else{const _0x1a6ba2=_0x6ac6f1['sessionId'],_0x35cbab=_0x6ac6f1[_0x45253(0x17b)];_0x35cbab&&(_0x47e919[_0x45253(0x196)](debug,_0x45253(0x19d)+JSON[_0x45253(0x14b)](_0x35cbab)),_0x2b76f2['currentSessionDetails'][_0x45253(0x17c)]=_0x35cbab[_0x45253(0x1a3)],_0x2b76f2[_0x45253(0x150)][_0x45253(0x1a7)]=_0x35cbab[_0x45253(0x151)]),_0x1a6ba2&&(_0x47e919[_0x45253(0x196)](debug,_0x45253(0x18d)+_0x1a6ba2),_0x2b76f2[_0x45253(0x150)]['bsSessionId']=_0x1a6ba2);}_0x47e919[_0x45253(0x172)](typeof _0xa3f0fb,_0x47e919[_0x45253(0x16f)])&&(delete _0x55c62e[_0x45253(0x16b)],delete _0x55c62e[_0x45253(0x173)],_0x55c62e[_0x45253(0x14f)]&&(delete _0x55c62e['params'][_0x45253(0x173)],delete _0x55c62e['params'][_0x45253(0x16b)]),_0x55c62e[_0x45253(0x14c)]&&(delete _0x55c62e[_0x45253(0x14c)][_0x45253(0x173)],delete _0x55c62e[_0x45253(0x14c)][_0x45253(0x16b)]));}}catch(_0x3d8f0c){_0x47e919['JFBPd'](debug,_0x45253(0x178)+_0x3d8f0c[_0x45253(0x162)]);}return _0x4d7e3f?.[_0x45253(0x192)](this,arguments);},_0x596374['_bstackPatched']=!![],logger[_0x264281(0x19e)](_0x47e919[_0x264281(0x154)]);}catch(_0x584539){_0x47e919[_0x264281(0x184)](debug,_0x264281(0x15d)+util[_0x264281(0x16c)](_0x584539)),_0x2b76f2[_0x264281(0x18b)]=_0x584539['toString']();}}static[a57_0x544e23(0x16d)](){const _0x198812=a57_0x544e23;return this[_0x198812(0x150)];}}module[a57_0x544e23(0x19b)]=PuppeteerSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0x57624c=a58_0x5392;(function(_0x308d16,_0x510f99){const _0x34087c=a58_0x5392,_0x3a993b=_0x308d16();while(!![]){try{const _0x49fb5b=-parseInt(_0x34087c(0x1fe))/0x1+-parseInt(_0x34087c(0x203))/0x2+-parseInt(_0x34087c(0x20c))/0x3+-parseInt(_0x34087c(0x210))/0x4*(-parseInt(_0x34087c(0x1f9))/0x5)+parseInt(_0x34087c(0x1fb))/0x6+-parseInt(_0x34087c(0x212))/0x7+parseInt(_0x34087c(0x206))/0x8;if(_0x49fb5b===_0x510f99)break;else _0x3a993b['push'](_0x3a993b['shift']());}catch(_0x276583){_0x3a993b['push'](_0x3a993b['shift']());}}}(a58_0x5436,0x65a5a));const {isTrue,isBrowserstackInfra}=require(a58_0x57624c(0x20a)),setKeepAlive=require(a58_0x57624c(0x209)),util=require(a58_0x57624c(0x1f8)),logger=require(a58_0x57624c(0x1ef))[a58_0x57624c(0x1eb)],{shouldProcessEventForTesthub}=require(a58_0x57624c(0x1e8)),{addRequestSpy}=require('../../helpers/test-observability/utils'),a58_0x356376={};function a58_0x5436(){const _0x24dc7f=['isCliEnabled','winstonLogger','puppeteer-core','PUPPETEER','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','../../helpers/logger','__skipSessionName','../utils/constants','getInstance','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','initializePuppeteerPatching','puppeteer','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','__skipSessionStatus','util','5CAAARS','skipSessionName','2580360ewcNWD','JEST','../v2/cliUtils','65505PoPtxo','catch','debug','workerInfo','testInfo','1587608GGjjTa','skipSessionStatus','BROWSERSTACK_PUPPETEER','9740592jovNik','getPackageVersion','setFrameworkDetail','../../helpers/setKeepAlive','../../helpers/helper','pwPage','828180isHxbt','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','jestConfig','format','235556DrNvvx','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','1083656Svptar','isPageFixture','currentTest','__workerDetails','../../helpers/testhub/utils','o11ySyncDone'];a58_0x5436=function(){return _0x24dc7f;};return a58_0x5436();}a58_0x356376[a58_0x57624c(0x201)]=undefined,a58_0x356376[a58_0x57624c(0x1e6)]={},a58_0x356376[a58_0x57624c(0x1e9)]=![],a58_0x356376[a58_0x57624c(0x20b)]=null,a58_0x356376[a58_0x57624c(0x213)]=![],a58_0x356376[a58_0x57624c(0x1e6)]['id']=undefined,a58_0x356376[a58_0x57624c(0x1e6)][a58_0x57624c(0x202)]=undefined;const workerDetails=a58_0x356376;function a58_0x5392(_0x56fc06,_0x1b9e76){const _0x543626=a58_0x5436();return a58_0x5392=function(_0x539275,_0x682387){_0x539275=_0x539275-0x1e6;let _0x1ee1bd=_0x543626[_0x539275];return _0x1ee1bd;},a58_0x5392(_0x56fc06,_0x1b9e76);}global[a58_0x57624c(0x1e7)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a58_0x57624c(0x1f0)]=isTrue(global[a58_0x57624c(0x20e)]?.[a58_0x57624c(0x1fa)]),global[a58_0x57624c(0x1f7)]=isTrue(global[a58_0x57624c(0x20e)]?.[a58_0x57624c(0x204)])):(global[a58_0x57624c(0x1f0)]=!![],global['__skipSessionStatus']=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper[a58_0x57624c(0x207)](a58_0x57624c(0x1f5))||helper['getPackageVersion'](a58_0x57624c(0x1ec));if(puppeteerVersion)try{logger[a58_0x57624c(0x200)]('[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest'),puppeteerPatcher=require('../utils/puppeteer-patcher'),puppeteerPatcher[a58_0x57624c(0x1f4)](global[a58_0x57624c(0x20e)]),logger[a58_0x57624c(0x200)](a58_0x57624c(0x1f3));}catch(a58_0x5f0835){logger[a58_0x57624c(0x200)](a58_0x57624c(0x211)+util[a58_0x57624c(0x20f)](a58_0x5f0835));}if(puppeteerPatcher)try{const BrowserstackCLI=require('../v2/browserstackCLI'),CLIUtils=require(a58_0x57624c(0x1fd)),{FRAMEWORKS}=require(a58_0x57624c(0x1f1));BrowserstackCLI['getInstance']()[a58_0x57624c(0x1ea)]()&&(logger['debug'](a58_0x57624c(0x1ee)),process['env'][a58_0x57624c(0x205)]='true',CLIUtils[a58_0x57624c(0x208)](FRAMEWORKS[a58_0x57624c(0x1fc)],FRAMEWORKS[a58_0x57624c(0x1ed)]),BrowserstackCLI[a58_0x57624c(0x1f2)]()['bootstrap']()[a58_0x57624c(0x1ff)](_0x2c7f1b=>{const _0x54613e=a58_0x57624c;logger[_0x54613e(0x200)]('[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20'+util[_0x54613e(0x20f)](_0x2c7f1b));}));}catch(a58_0x2910d6){logger[a58_0x57624c(0x200)](a58_0x57624c(0x20d)+util[a58_0x57624c(0x20f)](a58_0x2910d6));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a58_0x413a7e){logger[a58_0x57624c(0x200)]('[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20'+util[a58_0x57624c(0x20f)](a58_0x413a7e));}logger[a58_0x57624c(0x200)](a58_0x57624c(0x1f6));
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a59_0x3abfcc=a59_0x5a7d;(function(_0x46b13a,_0x39e43d){const _0x244145=a59_0x5a7d,_0x44db84=_0x46b13a();while(!![]){try{const _0x555f7f=parseInt(_0x244145(0x23e))/0x1+-parseInt(_0x244145(0x242))/0x2*(parseInt(_0x244145(0x1ed))/0x3)+parseInt(_0x244145(0x1c9))/0x4*(parseInt(_0x244145(0x232))/0x5)+-parseInt(_0x244145(0x24f))/0x6*(parseInt(_0x244145(0x1e7))/0x7)+parseInt(_0x244145(0x20c))/0x8*(-parseInt(_0x244145(0x1fb))/0x9)+parseInt(_0x244145(0x240))/0xa*(parseInt(_0x244145(0x226))/0xb)+parseInt(_0x244145(0x1c7))/0xc;if(_0x555f7f===_0x39e43d)break;else _0x44db84['push'](_0x44db84['shift']());}catch(_0x1d9bf2){_0x44db84['push'](_0x44db84['shift']());}}}(a59_0x4d2a,0x4f13f));const fs=require('fs'),path=require(a59_0x3abfcc(0x1dc)),util=require(a59_0x3abfcc(0x1d0)),spawn=require(a59_0x3abfcc(0x21b))[a59_0x3abfcc(0x24d)],{requireModule}=require(a59_0x3abfcc(0x1b8)),PerformanceTester=require(a59_0x3abfcc(0x1a5)),PerformanceEvents=require(a59_0x3abfcc(0x1b1))[a59_0x3abfcc(0x222)],helper=require(a59_0x3abfcc(0x1b8)),utilities=require(a59_0x3abfcc(0x1b9)),{default:BrowserStackSetup}=require(a59_0x3abfcc(0x227)),{FRAMEWORKS}=require(a59_0x3abfcc(0x1c2)),runIntegrations=require('./integrations/command'),yargs=require(a59_0x3abfcc(0x1c5)),Constants=require(a59_0x3abfcc(0x231)),BrowserstackCLI=require(a59_0x3abfcc(0x21f)),{isNewman}=require(a59_0x3abfcc(0x225)),logger=require('../helpers/logger')[a59_0x3abfcc(0x1c1)],origArgs=Object['assign']([],process['argv']),captureError=async(_0x2336f7,_0x50758d,_0xead32,_0x4dd66c=null,_0x4392a4=![])=>{const _0x24f8c6=a59_0x3abfcc,_0x408640={'dxzQD':function(_0x4c9a94,_0x1e39a2,_0x3fb9c5,_0x1fb442){return _0x4c9a94(_0x1e39a2,_0x3fb9c5,_0x1fb442);},'orhgR':_0x24f8c6(0x22d)};try{logger['info'](_0x24f8c6(0x1e6)+origArgs[_0x24f8c6(0x200)]('\x20')),await _0x408640[_0x24f8c6(0x24b)](_0x2336f7,_0x50758d,_0x4dd66c,_0xead32);}catch(_0x49726a){process['exitCode']=0x1,logger['error'](util[_0x24f8c6(0x1dd)](_0x49726a));const _0x35d6aa={'globalException':util[_0x24f8c6(0x1dd)]('%j',_0x49726a)};PerformanceTester[_0x24f8c6(0x1a6)](PerformanceEvents[_0x24f8c6(0x1ba)],![],util[_0x24f8c6(0x1dd)](_0x49726a));if(helper[_0x24f8c6(0x228)](global['config'])&&helper[_0x24f8c6(0x228)](global[_0x24f8c6(0x1bf)]))return;try{utilities[_0x24f8c6(0x252)](_0x408640[_0x24f8c6(0x1f2)],_0x35d6aa,global['config'],global[_0x24f8c6(0x1bf)]);}catch(_0x4cc34e){logger[_0x24f8c6(0x1e9)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x4cc34e[_0x24f8c6(0x237)]);}try{await helper['sendLogs'](global[_0x24f8c6(0x1d9)]);}catch(_0x3011fe){logger['debug'](_0x24f8c6(0x236)+_0x3011fe[_0x24f8c6(0x237)]);}PerformanceTester['end'](PerformanceEvents[_0x24f8c6(0x1ba)],![],util[_0x24f8c6(0x1dd)](_0x49726a));}finally{!_0x4392a4&&await BrowserstackCLI[_0x24f8c6(0x209)]()[_0x24f8c6(0x1bb)](),PerformanceTester['start'](PerformanceEvents[_0x24f8c6(0x202)]);}};try{const browserstackFolderPath=path[a59_0x3abfcc(0x200)](helper['homedir'](),a59_0x3abfcc(0x1b7));if(fs[a59_0x3abfcc(0x1c6)](browserstackFolderPath)){const filePath=path['join'](browserstackFolderPath,a59_0x3abfcc(0x1c3));fs[a59_0x3abfcc(0x1c6)](filePath)&&fs[a59_0x3abfcc(0x247)](filePath);}}catch(a59_0x365172){logger[a59_0x3abfcc(0x1e9)](a59_0x3abfcc(0x1ec)+a59_0x365172[a59_0x3abfcc(0x1a9)]);}process[a59_0x3abfcc(0x1af)]['includes']('mocha')&&(!process[a59_0x3abfcc(0x1af)][a59_0x3abfcc(0x23f)]('--opts')&&process[a59_0x3abfcc(0x1af)][a59_0x3abfcc(0x1c8)]('--no-opts'),!process[a59_0x3abfcc(0x1af)]['find'](_0x5048e4=>_0x5048e4['includes']('--config'))&&process[a59_0x3abfcc(0x1af)][a59_0x3abfcc(0x1c8)]('--no-config'),!process['argv'][a59_0x3abfcc(0x23f)]('--package')&&process[a59_0x3abfcc(0x1af)]['push'](a59_0x3abfcc(0x249)),helper['findAndReplace'](process['argv'],'--require',a59_0x3abfcc(0x234)));PerformanceTester[a59_0x3abfcc(0x23c)](PerformanceEvents[a59_0x3abfcc(0x1ba)]);function a59_0x5a7d(_0x41a308,_0x59c546){const _0x4d2a2e=a59_0x4d2a();return a59_0x5a7d=function(_0x5a7d62,_0x17e8b4){_0x5a7d62=_0x5a7d62-0x1a5;let _0x2a539a=_0x4d2a2e[_0x5a7d62];return _0x2a539a;},a59_0x5a7d(_0x41a308,_0x59c546);}function a59_0x4d2a(){const _0x53733b=['testcafe','yfhSq','EVENTS','jasmine','PLAYWRIGHT','./newman/helper','3101802ivJngy','../helpers/BrowserStackSetup','isUndefined','pw:channel','env','hTZpL','vanilla','SDKTestSuccessful','disableAutoCaptureLogs','pw:*','JIcLC','./utils/constants','985sqytbS','mocha','--mochaRequire','RXRYD','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','stack','option','getConfigPath','TCcGd','jOaXf','start','IZomG','440050rbuCdv','includes','10weumSQ','NggkP','4bbSObr','pOmCg','usage','slice','demandCommand','unlinkSync','MOCHA','--no-package','MjwFg','dxzQD','qwSPg','spawn','ESrow','131142anRRFD','nightwatch','mvpQu','fireFunnelTestEvent','error','./newman/command','../helpers/performance/performance-tester','end','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','command','message','dlcOu','HELP','./jasmine/command','Parsing\x20command\x20line\x20arguments','describe','argv','GuYwK','../helpers/performance/constants','Vxgsc','dot-notation','playwright','tRnzZ','-pw:channel','.browserstack','../helpers/helper','../helpers/utilities','SDK_SETUP','stop','DEBUG','CODECEPTJS','rhLaW','framework','setBrowserStackAutomationDisable','winstonLogger','../helpers/test-observability/constants','.local-not-set.json','split','yargs','existsSync','6120564EJxYql','push','8208XulFqj','-pw:*','aXIvs','NEWMAN','Show\x20help','xxtav','some','util','WZHUh','pQWFB','./jest/command','usage:\x20$0\x20<command>\x20[args]','dcvtr','YZDQr','NETcq','../../ats/src/index','config','IOOQY','rnQDI','path','format','JASMINE','IIheq','newman','boolean','Runs\x20the\x20binary\x20with\x20load\x20command','alias','aIeSS','mocha/lib/cli/commands.js','Running\x20SDK\x20with\x20args\x20','161MoGGHH','ats','debug','cCuGk','MNlkS','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','539424RyfTDv','LQYoH','SzVdg','version','NKiaV','orhgR','FyIwT','help','integrations','./testcafe/command','CZrmX','UCcFm','strict','EZbIP','189VIovaS','uxMiI','INTEGRATIONS','jUNBu','INFO','join','XjCFD','SDK_CLEANUP','./vanilla-js/command','uFFjb','./load/index','./mocha/command','kpniV','TESTCAFE','getInstance','HwemT','exitProcess','171464OoIcRl','WxoJr','parserConfiguration','codeceptjs','agLyT','setTestObservabilityDisable','CUCUMBER','HST','VANILLA','./playwright/command','load\x20[subcommand]','jest','BROWSERSTACK_CONFIG_FILE_PATH','node','cucumber-js','child_process','NIGHTWATCH','JEST','getPwChannelLogPath','./v2/browserstackCLI'];a59_0x4d2a=function(){return _0x53733b;};return a59_0x4d2a();}const a59_0x3e1ac3={};a59_0x3e1ac3[a59_0x3abfcc(0x1b3)]=![];const argv=yargs[a59_0x3abfcc(0x20e)](a59_0x3e1ac3)[a59_0x3abfcc(0x244)](a59_0x3abfcc(0x1d4))[a59_0x3abfcc(0x1e3)]('v',a59_0x3abfcc(0x1f0))[a59_0x3abfcc(0x1ae)]('v')[a59_0x3abfcc(0x1e3)]('h',a59_0x3abfcc(0x1f4))[a59_0x3abfcc(0x1f4)]('help')['showHelpOnFail'](!![],Constants['VERSION'][a59_0x3abfcc(0x1ab)])['command'](a59_0x3abfcc(0x217),Constants[a59_0x3abfcc(0x21d)][a59_0x3abfcc(0x1ff)],function(_0x349a87){const _0x2f6136=a59_0x3abfcc,_0x4dceb3={'LIyTy':'jest','jUNBu':function(_0x2e630c,_0x158b7c,_0x2de539,_0x39e1bc,_0x26e81b,_0x2a072a){return _0x2e630c(_0x158b7c,_0x2de539,_0x39e1bc,_0x26e81b,_0x2a072a);},'MjwFg':function(_0x119452,_0x1de1a9){return _0x119452(_0x1de1a9);},'CZrmX':_0x2f6136(0x1d3)},_0x50928d=process[_0x2f6136(0x1af)][_0x2f6136(0x245)](0x2);helper[_0x2f6136(0x211)](),helper['setBrowserStackAutomationDisable'](),_0x349a87[_0x2f6136(0x1f9)](![]);const _0x49644e=new BrowserStackSetup(_0x349a87[_0x2f6136(0x1af)],_0x4dceb3['LIyTy']);return _0x4dceb3[_0x2f6136(0x1fe)](captureError,_0x4dceb3[_0x2f6136(0x24a)](require,_0x4dceb3[_0x2f6136(0x1f7)]),_0x349a87[_0x2f6136(0x1af)],_0x49644e,_0x50928d,!![]);})[a59_0x3abfcc(0x1a8)](a59_0x3abfcc(0x223),Constants[a59_0x3abfcc(0x1de)][a59_0x3abfcc(0x1ff)],function(_0x3b95c3){const _0x588222=a59_0x3abfcc,_0x188d40={'fBFzb':_0x588222(0x223),'WxoJr':function(_0x3d099f,_0x5e0ffb,_0x220c5a,_0x7d42a3,_0x167653,_0x22801a){return _0x3d099f(_0x5e0ffb,_0x220c5a,_0x7d42a3,_0x167653,_0x22801a);},'TCcGd':function(_0x2b297f,_0x11b133){return _0x2b297f(_0x11b133);},'jOaXf':_0x588222(0x1ac)},_0x473ba8=process['argv'][_0x588222(0x245)](0x2);helper[_0x588222(0x211)](),helper[_0x588222(0x1c0)](),_0x3b95c3[_0x588222(0x1f9)](![]);const _0x2af61d=new BrowserStackSetup(_0x3b95c3[_0x588222(0x1af)],_0x188d40['fBFzb']);return _0x188d40[_0x588222(0x20d)](captureError,_0x188d40[_0x588222(0x23a)](require,_0x188d40[_0x588222(0x23b)]),_0x3b95c3[_0x588222(0x1af)],_0x2af61d,_0x473ba8,!![]);})[a59_0x3abfcc(0x1a8)](a59_0x3abfcc(0x233),Constants[a59_0x3abfcc(0x248)][a59_0x3abfcc(0x1ff)],_0x4b8c74=>{const _0x4d4fbd=a59_0x3abfcc,_0x80c253={'NETcq':function(_0x7c97ca,_0x2f0819,_0x5ac437,_0x4edf3e){return _0x7c97ca(_0x2f0819,_0x5ac437,_0x4edf3e);},'SsFqp':function(_0x4fd803,_0x51cea2){return _0x4fd803(_0x51cea2);},'tpNfx':_0x4d4fbd(0x206),'aXIvs':_0x4d4fbd(0x233),'rhLaW':_0x4d4fbd(0x1ad),'agLyT':function(_0x40f033,_0x4d6d1e,_0x44bfc0){return _0x40f033(_0x4d6d1e,_0x44bfc0);},'WZHUh':'mocha/lib/cli/run.js','dcvtr':function(_0x4ff35b,_0x1bd372,_0x300caf){return _0x4ff35b(_0x1bd372,_0x300caf);},'NggkP':_0x4d4fbd(0x1e5),'RCCuf':function(_0x14f196,_0x49d28a,_0x4b377f){return _0x14f196(_0x49d28a,_0x4b377f);},'uxMiI':'mocha/lib/cli/cli.js','ObpPZ':function(_0x2064e4){return _0x2064e4();}};process[_0x4d4fbd(0x1af)]=process[_0x4d4fbd(0x1af)][_0x4d4fbd(0x245)](0x1),helper['setTestObservabilityDisable'](),helper[_0x4d4fbd(0x1c0)]();const _0x2f8e82=new BrowserStackSetup(_0x4b8c74[_0x4d4fbd(0x1af)],_0x80c253[_0x4d4fbd(0x1cb)]);logger[_0x4d4fbd(0x1e9)](_0x80c253[_0x4d4fbd(0x1be)]);const _0x405a3d=_0x80c253[_0x4d4fbd(0x210)](requireModule,_0x80c253[_0x4d4fbd(0x1d1)],_0x80c253[_0x4d4fbd(0x1cb)]),_0x53c731=_0x80c253[_0x4d4fbd(0x1d5)](requireModule,_0x80c253[_0x4d4fbd(0x241)],_0x80c253[_0x4d4fbd(0x1cb)]);delete _0x405a3d['handler'],_0x405a3d['handler']=function(_0xc50ba1){const _0x573c86=_0x4d4fbd;return _0x80c253[_0x573c86(0x1d7)](captureError,_0x80c253['SsFqp'](require,_0x80c253['tpNfx']),_0xc50ba1,_0x2f8e82);},_0x53c731['run']=_0x405a3d;const {main:_0x1758ef}=_0x80c253['RCCuf'](requireModule,_0x80c253[_0x4d4fbd(0x1fc)],_0x80c253[_0x4d4fbd(0x1cb)]);_0x80c253['ObpPZ'](_0x1758ef);})[a59_0x3abfcc(0x1a8)](a59_0x3abfcc(0x21a),Constants[a59_0x3abfcc(0x212)][a59_0x3abfcc(0x1ff)],function(_0x3bd110){const _0x5e2707=a59_0x3abfcc,_0x115a12={'FyIwT':_0x5e2707(0x21a),'EtvCR':function(_0x54c6a8,_0x20bc02,_0x1f3ca1,_0xb63740,_0x4936ec,_0x3d97ce){return _0x54c6a8(_0x20bc02,_0x1f3ca1,_0xb63740,_0x4936ec,_0x3d97ce);},'IZomG':function(_0x4f81d6,_0x882dd9){return _0x4f81d6(_0x882dd9);},'RXRYD':'./cucumber-js/command'},_0x492a90=process[_0x5e2707(0x1af)][_0x5e2707(0x245)](0x2),_0x4f90d9=new BrowserStackSetup(_0x3bd110['argv'],_0x115a12[_0x5e2707(0x1f3)]);return _0x115a12['EtvCR'](captureError,_0x115a12[_0x5e2707(0x23d)](require,_0x115a12[_0x5e2707(0x235)]),_0x3bd110[_0x5e2707(0x1af)],_0x4f90d9,_0x492a90,!![]);})[a59_0x3abfcc(0x1a8)](a59_0x3abfcc(0x219),Constants[a59_0x3abfcc(0x214)]['INFO'],function(_0x41b68c){const _0x2b7120=a59_0x3abfcc,_0x4f9ee={'wtBjK':_0x2b7120(0x22c),'dlcOu':function(_0x355165,_0x25c5b5){return _0x355165(_0x25c5b5);},'Vxgsc':_0x2b7120(0x1e0),'ZgSqi':function(_0x216b5a,_0x10a406,_0x1f6b05,_0x2f4180,_0x13b68f){return _0x216b5a(_0x10a406,_0x1f6b05,_0x2f4180,_0x13b68f);},'ESrow':_0x2b7120(0x254),'hTZpL':function(_0x22ef44,_0x293cf1){return _0x22ef44(_0x293cf1);},'yfhSq':_0x2b7120(0x203)},_0x3589ab=process[_0x2b7120(0x1af)][_0x2b7120(0x245)](0x2),_0x654c2b=new BrowserStackSetup(_0x41b68c[_0x2b7120(0x1af)],_0x4f9ee['wtBjK']),_0xc584d2=_0x654c2b?_0x654c2b[_0x2b7120(0x1d9)]:null;if(_0x4f9ee[_0x2b7120(0x1aa)](isNewman,_0xc584d2))return _0x654c2b['framework']=_0x4f9ee[_0x2b7120(0x1b2)],global['framework']=_0x4f9ee[_0x2b7120(0x1b2)],_0x4f9ee['ZgSqi'](captureError,_0x4f9ee[_0x2b7120(0x1aa)](require,_0x4f9ee[_0x2b7120(0x24e)]),_0x41b68c['argv'],_0x654c2b,_0x3589ab);return _0x4f9ee['ZgSqi'](captureError,_0x4f9ee[_0x2b7120(0x22b)](require,_0x4f9ee[_0x2b7120(0x221)]),_0x41b68c[_0x2b7120(0x1af)],_0x654c2b,_0x3589ab);})['command'](a59_0x3abfcc(0x250),Constants[a59_0x3abfcc(0x21c)][a59_0x3abfcc(0x1ff)],function(_0x63d8ff){const _0x5b3d4c=a59_0x3abfcc,_0x1281a4={'bDasi':_0x5b3d4c(0x250),'EZbIP':function(_0x2b948e,_0x4573ff,_0x55ad19,_0x16a1f6,_0x5aea33){return _0x2b948e(_0x4573ff,_0x55ad19,_0x16a1f6,_0x5aea33);},'YZDQr':function(_0x3bc020,_0x3f0c9b){return _0x3bc020(_0x3f0c9b);},'uFFjb':'./nightwatch/command'},_0x32532a=process[_0x5b3d4c(0x1af)]['slice'](0x2),_0xbee366=new BrowserStackSetup(_0x63d8ff[_0x5b3d4c(0x1af)],_0x1281a4['bDasi']);return _0x1281a4[_0x5b3d4c(0x1fa)](captureError,_0x1281a4[_0x5b3d4c(0x1d6)](require,_0x1281a4[_0x5b3d4c(0x204)]),_0x63d8ff['argv'],_0xbee366,_0x32532a);})['command'](a59_0x3abfcc(0x20f),Constants[a59_0x3abfcc(0x1bd)][a59_0x3abfcc(0x1ff)],function(_0x296de1){const _0x573ae3=a59_0x3abfcc,_0x36e71a={'MNlkS':_0x573ae3(0x20f),'rnQDI':function(_0x18a092,_0x139d0f,_0x1fba90,_0x2a0276,_0x3a80b4){return _0x18a092(_0x139d0f,_0x1fba90,_0x2a0276,_0x3a80b4);},'IIheq':function(_0x52b433,_0x2dcfcf){return _0x52b433(_0x2dcfcf);},'pOmCg':'./codeceptjs/command'},_0x501fb4=process[_0x573ae3(0x1af)][_0x573ae3(0x245)](0x2),_0x46b3ef=new BrowserStackSetup(_0x296de1['argv'],_0x36e71a[_0x573ae3(0x1eb)]);return _0x36e71a[_0x573ae3(0x1db)](captureError,_0x36e71a[_0x573ae3(0x1df)](require,_0x36e71a[_0x573ae3(0x243)]),_0x296de1[_0x573ae3(0x1af)],_0x46b3ef,_0x501fb4);})['command'](a59_0x3abfcc(0x1e8),Constants[a59_0x3abfcc(0x213)][a59_0x3abfcc(0x1ff)],function(_0x1c3193){const _0x588206=a59_0x3abfcc,_0x2c2f3e={'JIcLC':function(_0x1eacd9,_0x4230ef,_0x3728fb){return _0x1eacd9(_0x4230ef,_0x3728fb);},'puTOb':function(_0x112d60,_0x1c9eaf){return _0x112d60(_0x1c9eaf);},'QwElX':_0x588206(0x1d8)},_0x21bc08=process[_0x588206(0x1af)][_0x588206(0x245)](0x2);return _0x2c2f3e[_0x588206(0x230)](captureError,_0x2c2f3e['puTOb'](require,_0x2c2f3e['QwElX']),_0x1c3193);})[a59_0x3abfcc(0x1a8)](a59_0x3abfcc(0x1f5),Constants[a59_0x3abfcc(0x1fd)][a59_0x3abfcc(0x1ff)],function(_0x340326){const _0xb7eb4c=a59_0x3abfcc,_0x1fd713={'HwemT':function(_0x421c7e,_0x2c5d21){return _0x421c7e(_0x2c5d21);}};return _0x1fd713[_0xb7eb4c(0x20a)](runIntegrations,_0x340326);})['command'](a59_0x3abfcc(0x1b4),Constants['PLAYWRIGHT'][a59_0x3abfcc(0x1ff)],function(_0x5dab55){const _0x473532=a59_0x3abfcc,_0x15b9e3={'UCcFm':_0x473532(0x229),'aIeSS':function(_0x562a20,_0x537e37){return _0x562a20&&_0x537e37;},'xxtav':function(_0x5083d2,_0x5e2fcb,_0xe2bd80,_0x3af194,_0x2f77dd,_0xaeab95){return _0x5083d2(_0x5e2fcb,_0xe2bd80,_0x3af194,_0x2f77dd,_0xaeab95);},'cCuGk':function(_0x1acbb5,_0x52e70f){return _0x1acbb5(_0x52e70f);},'EkVFt':_0x473532(0x215)},_0x22cc06=process[_0x473532(0x1af)][_0x473532(0x245)](0x2);helper['getConfigPath'](process[_0x473532(0x1af)])&&(process[_0x473532(0x22a)][_0x473532(0x218)]=helper[_0x473532(0x239)](process[_0x473532(0x1af)]));helper['setTestObservabilityDisable'](),helper[_0x473532(0x1c0)]();const _0xefa344=new BrowserStackSetup(_0x5dab55['argv'],FRAMEWORKS[_0x473532(0x224)]);try{if(!_0xefa344[_0x473532(0x1d9)]||!_0xefa344[_0x473532(0x1d9)][_0x473532(0x22e)]){const _0x5652aa=_0x15b9e3[_0x473532(0x1f8)],_0x56b098=process[_0x473532(0x22a)][_0x473532(0x1bc)]||'',_0x460e3b=_0x56b098[_0x473532(0x1c4)](',')['map'](_0x1f8152=>_0x1f8152['trim']())['filter'](Boolean),_0x56c865=_0x460e3b[_0x473532(0x1cf)](_0x2da97f=>_0x2da97f===_0x473532(0x1b6)||_0x2da97f===_0x473532(0x1ca)||_0x2da97f==='-*'),_0x1bffe5=_0x460e3b[_0x473532(0x1cf)](_0x4a129b=>_0x4a129b===_0x5652aa||_0x4a129b===_0x473532(0x22f)||_0x4a129b==='*');if(_0x15b9e3[_0x473532(0x1e4)](!_0x56c865,!_0x1bffe5)){const _0x9d6450=helper[_0x473532(0x21e)]();_0x9d6450&&(process[_0x473532(0x22a)]['DEBUG']=_0x56b098?_0x56b098+','+_0x5652aa:_0x5652aa,!process[_0x473532(0x22a)]['DEBUG_FILE']&&(process[_0x473532(0x22a)]['DEBUG_FILE']=_0x9d6450));}}}catch(_0x7f531f){logger['debug']('pw:channel\x20auto-capture\x20seed\x20failed:\x20'+util[_0x473532(0x1dd)](_0x7f531f));}return _0x15b9e3[_0x473532(0x1ce)](captureError,_0x15b9e3[_0x473532(0x1ea)](require,_0x15b9e3['EkVFt']),_0x5dab55[_0x473532(0x1af)],_0xefa344,_0x22cc06,!![]);})[a59_0x3abfcc(0x1a8)](a59_0x3abfcc(0x220),Constants[a59_0x3abfcc(0x208)]['INFO'],function(_0x469681){const _0x5c587e=a59_0x3abfcc,_0x1a7c02={'pQWFB':_0x5c587e(0x220),'xEvjC':function(_0x6e8a4f,_0x334a5e,_0x5b0977,_0x3c22e4,_0x22c8f5,_0x189bee){return _0x6e8a4f(_0x334a5e,_0x5b0977,_0x3c22e4,_0x22c8f5,_0x189bee);},'NKiaV':function(_0xa0e4e7,_0x45d70d){return _0xa0e4e7(_0x45d70d);},'kpniV':_0x5c587e(0x1f6)},_0x166e23=process[_0x5c587e(0x1af)][_0x5c587e(0x245)](0x2),_0x39fa36=new BrowserStackSetup(_0x469681[_0x5c587e(0x1af)],_0x1a7c02[_0x5c587e(0x1d2)]);return _0x1a7c02['xEvjC'](captureError,_0x1a7c02[_0x5c587e(0x1f1)](require,_0x1a7c02[_0x5c587e(0x207)]),_0x469681[_0x5c587e(0x1af)],_0x39fa36,_0x166e23,!![]);})[a59_0x3abfcc(0x1a8)](a59_0x3abfcc(0x216),a59_0x3abfcc(0x1e2),function(_0x19a36e){const _0x138db9=a59_0x3abfcc,_0x20bf1e={};_0x20bf1e[_0x138db9(0x1da)]=_0x138db9(0x1f4),_0x20bf1e['GuYwK']=_0x138db9(0x1e1),_0x20bf1e[_0x138db9(0x1b5)]=_0x138db9(0x1cd);const _0x2a7adb=_0x20bf1e;return _0x19a36e['help'](![])[_0x138db9(0x238)](_0x2a7adb[_0x138db9(0x1da)],{'alias':'h','type':_0x2a7adb[_0x138db9(0x1b0)],'describe':_0x2a7adb[_0x138db9(0x1b5)]})[_0x138db9(0x1f9)](![])[_0x138db9(0x20b)](![]);},function(_0x10c0e5){const _0xaab8c9=a59_0x3abfcc,_0x76caff={'mvpQu':function(_0x2492f3,_0x155099,_0x2775ac){return _0x2492f3(_0x155099,_0x2775ac);},'nLYys':function(_0x521bff,_0x4e49ba){return _0x521bff(_0x4e49ba);},'LQYoH':_0xaab8c9(0x205)},_0x1cccd1={};return _0x1cccd1[_0xaab8c9(0x1af)]=_0x10c0e5,_0x76caff[_0xaab8c9(0x251)](captureError,_0x76caff['nLYys'](require,_0x76caff[_0xaab8c9(0x1ee)]),_0x1cccd1);})[a59_0x3abfcc(0x1a8)](a59_0x3abfcc(0x1e0),Constants[a59_0x3abfcc(0x1cc)][a59_0x3abfcc(0x1ff)],function(_0x2b394d){const _0x4353ee=a59_0x3abfcc,_0x3cc0b7={'XjCFD':'newman','qwSPg':function(_0x16c696,_0x40a81a,_0x2b9aaa,_0x2bef31,_0x56f5d8){return _0x16c696(_0x40a81a,_0x2b9aaa,_0x2bef31,_0x56f5d8);},'VFtdC':function(_0x5b928d,_0x104152){return _0x5b928d(_0x104152);},'SzVdg':_0x4353ee(0x254)},_0x9f7fd=process['argv'][_0x4353ee(0x245)](0x2);helper[_0x4353ee(0x211)](),helper[_0x4353ee(0x1c0)](),_0x2b394d[_0x4353ee(0x1f9)](![]);const _0x443cc0=new BrowserStackSetup(_0x2b394d[_0x4353ee(0x1af)],_0x3cc0b7[_0x4353ee(0x201)]);return _0x3cc0b7[_0x4353ee(0x24c)](captureError,_0x3cc0b7['VFtdC'](require,_0x3cc0b7[_0x4353ee(0x1ef)]),_0x2b394d[_0x4353ee(0x1af)],_0x443cc0,_0x9f7fd);})[a59_0x3abfcc(0x246)](0x1,a59_0x3abfcc(0x1a7))['wrap'](null)[a59_0x3abfcc(0x1af)];!helper[a59_0x3abfcc(0x228)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a59_0x3abfcc(0x1e8)&&console[a59_0x3abfcc(0x253)]('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
|
|
2
|
+
'use strict';function a59_0x356c(_0x4ac8c3,_0x247e78){const _0x37bab3=a59_0x37ba();return a59_0x356c=function(_0x356c3d,_0x7c8fa){_0x356c3d=_0x356c3d-0xde;let _0x1e0a7=_0x37bab3[_0x356c3d];return _0x1e0a7;},a59_0x356c(_0x4ac8c3,_0x247e78);}const a59_0x1e55cf=a59_0x356c;(function(_0x235d45,_0x2c62c5){const _0x3665f2=a59_0x356c,_0x935810=_0x235d45();while(!![]){try{const _0x3bb752=parseInt(_0x3665f2(0xe5))/0x1+parseInt(_0x3665f2(0x158))/0x2*(parseInt(_0x3665f2(0xe2))/0x3)+-parseInt(_0x3665f2(0x12e))/0x4*(parseInt(_0x3665f2(0xe8))/0x5)+parseInt(_0x3665f2(0x18d))/0x6+parseInt(_0x3665f2(0x18a))/0x7*(-parseInt(_0x3665f2(0x13e))/0x8)+parseInt(_0x3665f2(0x102))/0x9+-parseInt(_0x3665f2(0x189))/0xa*(parseInt(_0x3665f2(0x127))/0xb);if(_0x3bb752===_0x2c62c5)break;else _0x935810['push'](_0x935810['shift']());}catch(_0x17866d){_0x935810['push'](_0x935810['shift']());}}}(a59_0x37ba,0x86799));const fs=require('fs'),path=require(a59_0x1e55cf(0x14c)),util=require('util'),spawn=require(a59_0x1e55cf(0x171))[a59_0x1e55cf(0x185)],{requireModule}=require(a59_0x1e55cf(0x16c)),PerformanceTester=require(a59_0x1e55cf(0x126)),PerformanceEvents=require(a59_0x1e55cf(0x170))['EVENTS'],helper=require(a59_0x1e55cf(0x16c)),utilities=require(a59_0x1e55cf(0x14d)),{default:BrowserStackSetup}=require(a59_0x1e55cf(0x17a)),{FRAMEWORKS}=require(a59_0x1e55cf(0x176)),runIntegrations=require('./integrations/command'),yargs=require('yargs'),Constants=require(a59_0x1e55cf(0x157)),BrowserstackCLI=require(a59_0x1e55cf(0x183)),{isNewman}=require(a59_0x1e55cf(0x172)),logger=require(a59_0x1e55cf(0x153))[a59_0x1e55cf(0xe3)],origArgs=Object[a59_0x1e55cf(0x10b)]([],process[a59_0x1e55cf(0x154)]),captureError=async(_0x36c57a,_0x45a55f,_0x4750d2,_0x196346=null,_0x13137f=![])=>{const _0x4d2f8e=a59_0x1e55cf,_0x40cc4d={'lyuwU':function(_0x2a8b5d,_0x52aa79,_0x4f65,_0x2ff5ed){return _0x2a8b5d(_0x52aa79,_0x4f65,_0x2ff5ed);},'VMgUF':'SDKTestSuccessful'};try{logger[_0x4d2f8e(0x128)](_0x4d2f8e(0x17b)+origArgs[_0x4d2f8e(0x18c)]('\x20')),await _0x40cc4d[_0x4d2f8e(0x164)](_0x36c57a,_0x45a55f,_0x196346,_0x4750d2);}catch(_0x14a0b2){process[_0x4d2f8e(0x162)]=0x1,logger[_0x4d2f8e(0x123)](util[_0x4d2f8e(0x18f)](_0x14a0b2));const _0x3d6be9={'globalException':util[_0x4d2f8e(0x18f)]('%j',_0x14a0b2)};PerformanceTester[_0x4d2f8e(0xf7)](PerformanceEvents[_0x4d2f8e(0xeb)],![],util[_0x4d2f8e(0x18f)](_0x14a0b2));if(helper[_0x4d2f8e(0x11c)](global[_0x4d2f8e(0x142)])&&helper['isUndefined'](global['framework']))return;try{utilities[_0x4d2f8e(0x169)](_0x40cc4d[_0x4d2f8e(0x180)],_0x3d6be9,global[_0x4d2f8e(0x142)],global['framework']);}catch(_0x3b32aa){logger['debug'](_0x4d2f8e(0x117)+_0x3b32aa[_0x4d2f8e(0xe6)]);}try{await helper[_0x4d2f8e(0x12a)](global[_0x4d2f8e(0x142)]);}catch(_0x4a5b0c){logger[_0x4d2f8e(0x16e)]('Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20'+_0x4a5b0c['stack']);}PerformanceTester[_0x4d2f8e(0xf7)](PerformanceEvents['SDK_SETUP'],![],util[_0x4d2f8e(0x18f)](_0x14a0b2));}finally{!_0x13137f&&await BrowserstackCLI['getInstance']()[_0x4d2f8e(0x15b)](),PerformanceTester[_0x4d2f8e(0x12c)](PerformanceEvents[_0x4d2f8e(0xe7)]);}};function a59_0x37ba(){const _0x4e07b8=['./load/index','slice','pw:channel','VMgUF','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','rILgC','./v2/browserstackCLI','wkNGC','spawn','rjVcq','HST','pw:*','5119970KbVirx','628040KjXExk','dot-notation','join','3291816egqeda','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','format','BROWSERSTACK_CONFIG_FILE_PATH','command','APWdn','setBrowserStackAutomationDisable','GmHdX','39NxoGMt','winstonLogger','exitProcess','297212OgTcgd','stack','SDK_CLEANUP','35mVeUiI','GfdDE','KWGta','SDK_SETUP','dwZIW','./mocha/command','--mochaRequire','RNTNF','PLAYWRIGHT','testcafe','VANILLA','includes','mocha/lib/cli/commands.js','xxNOi','--no-opts','end','NIGHTWATCH','GNcyV','node','--config','TBHdN','strict','jasmine','./playwright/command','run','Jhhxe','3270060iYvkRV','cUNBG','push','vgUkO','blSie','disableAutoCaptureLogs','usage:\x20$0\x20<command>\x20[args]','CUCUMBER','uMKfR','assign','INFO','ajEGU','VERSION','map','mocha','parserConfiguration','CODECEPTJS','codeceptjs','mfcfj','handler','./vanilla-js/command','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','-pw:channel','VqMgz','MOCHA','rrXUB','isUndefined','HELP','setTestObservabilityDisable','PURni','tYtrU','wrap','getConfigPath','error','some','./newman/command','../helpers/performance/performance-tester','11ntbwnK','info','WWShT','sendLogs','./testcafe/command','start','vanilla','94460cmDCEa','usage','mocha/lib/cli/run.js','homedir','split','JASMINE','Parsing\x20command\x20line\x20arguments','./jasmine/command','../../ats/src/index','INTEGRATIONS','hPsAY','--require','jest','--package','NEWMAN','aaqpb','80PvvyLd','yWMRn','cucumber-js','option','config','ItSgP','IWqDE','EaEOs','getPwChannelLogPath','message','./nightwatch/command','alias','DEBUG_FILE','load\x20[subcommand]','path','../helpers/utilities','DEBUG','integrations','newman','TvqjY','RHPOm','../helpers/logger','argv','NFckH','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','./utils/constants','140942OjzHJk','help','nightwatch','stop','ynQDn','existsSync','./jest/command','nAzxy','findAndReplace','kEKFB','exitCode','.browserstack','lyuwU','Tywlu','./cucumber-js/command','env','ats','fireFunnelTestEvent','bxGka','--no-package','../helpers/helper','RksFT','debug','Nnbjf','../helpers/performance/constants','child_process','./newman/helper','faOnE','.local-not-set.json','pw:channel\x20auto-capture\x20seed\x20failed:\x20','../helpers/test-observability/constants','FcPgO','iuqEr','LcLvA','../helpers/BrowserStackSetup','Running\x20SDK\x20with\x20args\x20','uDiYP'];a59_0x37ba=function(){return _0x4e07b8;};return a59_0x37ba();}try{const browserstackFolderPath=path['join'](helper[a59_0x1e55cf(0x131)](),a59_0x1e55cf(0x163));if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a59_0x1e55cf(0x18c)](browserstackFolderPath,a59_0x1e55cf(0x174));fs[a59_0x1e55cf(0x15d)](filePath)&&fs['unlinkSync'](filePath);}}catch(a59_0x3597fa){logger[a59_0x1e55cf(0x16e)](a59_0x1e55cf(0x181)+a59_0x3597fa[a59_0x1e55cf(0x147)]);}process[a59_0x1e55cf(0x154)][a59_0x1e55cf(0xf3)](a59_0x1e55cf(0x110))&&(!process[a59_0x1e55cf(0x154)]['includes']('--opts')&&process[a59_0x1e55cf(0x154)][a59_0x1e55cf(0x104)](a59_0x1e55cf(0xf6)),!process[a59_0x1e55cf(0x154)]['find'](_0x452221=>_0x452221[a59_0x1e55cf(0xf3)](a59_0x1e55cf(0xfb)))&&process['argv'][a59_0x1e55cf(0x104)]('--no-config'),!process['argv'][a59_0x1e55cf(0xf3)](a59_0x1e55cf(0x13b))&&process[a59_0x1e55cf(0x154)][a59_0x1e55cf(0x104)](a59_0x1e55cf(0x16b)),helper[a59_0x1e55cf(0x160)](process[a59_0x1e55cf(0x154)],a59_0x1e55cf(0x139),a59_0x1e55cf(0xee)));PerformanceTester[a59_0x1e55cf(0x12c)](PerformanceEvents[a59_0x1e55cf(0xeb)]);const a59_0x4c3647={};a59_0x4c3647[a59_0x1e55cf(0x18b)]=![];const argv=yargs[a59_0x1e55cf(0x111)](a59_0x4c3647)[a59_0x1e55cf(0x12f)](a59_0x1e55cf(0x108))['alias']('v','version')['describe']('v')[a59_0x1e55cf(0x149)]('h','help')['help'](a59_0x1e55cf(0x159))['showHelpOnFail'](!![],Constants[a59_0x1e55cf(0x10e)][a59_0x1e55cf(0x11d)])[a59_0x1e55cf(0xde)](a59_0x1e55cf(0x13a),Constants['JEST'][a59_0x1e55cf(0x10c)],function(_0x3602fb){const _0x12d938=a59_0x1e55cf,_0x18079a={'RHPOm':_0x12d938(0x13a),'zxMzB':function(_0x4b4acd,_0x48d6a9,_0x3460df,_0xfc3b9f,_0x1f6a5b,_0x5d3372){return _0x4b4acd(_0x48d6a9,_0x3460df,_0xfc3b9f,_0x1f6a5b,_0x5d3372);},'dSQgO':function(_0x4d014d,_0x3e8fca){return _0x4d014d(_0x3e8fca);},'bxGka':_0x12d938(0x15e)},_0x14d428=process[_0x12d938(0x154)][_0x12d938(0x17e)](0x2);helper['setTestObservabilityDisable'](),helper[_0x12d938(0xe0)](),_0x3602fb['strict'](![]);const _0x62a618=new BrowserStackSetup(_0x3602fb[_0x12d938(0x154)],_0x18079a[_0x12d938(0x152)]);return _0x18079a['zxMzB'](captureError,_0x18079a['dSQgO'](require,_0x18079a[_0x12d938(0x16a)]),_0x3602fb['argv'],_0x62a618,_0x14d428,!![]);})['command']('jasmine',Constants[a59_0x1e55cf(0x133)][a59_0x1e55cf(0x10c)],function(_0x141d34){const _0x5ae6bf=a59_0x1e55cf,_0x2aea7d={'uwNiH':_0x5ae6bf(0xfe),'yWMRn':function(_0xb7f3e8,_0x5b4be3,_0x4231a5,_0x1f8e9c,_0x5600e0,_0x4f70cc){return _0xb7f3e8(_0x5b4be3,_0x4231a5,_0x1f8e9c,_0x5600e0,_0x4f70cc);},'EaEOs':function(_0x3e2f27,_0x2a589f){return _0x3e2f27(_0x2a589f);},'NFckH':_0x5ae6bf(0x135)},_0x64c21b=process[_0x5ae6bf(0x154)][_0x5ae6bf(0x17e)](0x2);helper[_0x5ae6bf(0x11e)](),helper[_0x5ae6bf(0xe0)](),_0x141d34['strict'](![]);const _0x4061d2=new BrowserStackSetup(_0x141d34[_0x5ae6bf(0x154)],_0x2aea7d['uwNiH']);return _0x2aea7d[_0x5ae6bf(0x13f)](captureError,_0x2aea7d[_0x5ae6bf(0x145)](require,_0x2aea7d[_0x5ae6bf(0x155)]),_0x141d34[_0x5ae6bf(0x154)],_0x4061d2,_0x64c21b,!![]);})[a59_0x1e55cf(0xde)](a59_0x1e55cf(0x110),Constants[a59_0x1e55cf(0x11a)]['INFO'],_0x41decb=>{const _0x358a1b=a59_0x1e55cf,_0x442953={'APWdn':function(_0x48d2d6,_0x4bdba8,_0x28f8e4,_0x2bbe4a){return _0x48d2d6(_0x4bdba8,_0x28f8e4,_0x2bbe4a);},'ajEGU':function(_0x4c1b87,_0x130bee){return _0x4c1b87(_0x130bee);},'dwZIW':_0x358a1b(0xed),'xxNOi':_0x358a1b(0x110),'RNTNF':_0x358a1b(0x134),'blSie':function(_0x139a3a,_0x7d5f96,_0x3a9d79){return _0x139a3a(_0x7d5f96,_0x3a9d79);},'IWqDE':_0x358a1b(0x130),'PURni':_0x358a1b(0xf4),'nAzxy':'mocha/lib/cli/cli.js','TBHdN':function(_0x31ae56){return _0x31ae56();}};process[_0x358a1b(0x154)]=process[_0x358a1b(0x154)][_0x358a1b(0x17e)](0x1),helper[_0x358a1b(0x11e)](),helper[_0x358a1b(0xe0)]();const _0x2436f7=new BrowserStackSetup(_0x41decb[_0x358a1b(0x154)],_0x442953['xxNOi']);logger[_0x358a1b(0x16e)](_0x442953[_0x358a1b(0xef)]);const _0x2abb12=_0x442953[_0x358a1b(0x106)](requireModule,_0x442953[_0x358a1b(0x144)],_0x442953[_0x358a1b(0xf5)]),_0x3c2f3e=_0x442953[_0x358a1b(0x106)](requireModule,_0x442953[_0x358a1b(0x11f)],_0x442953['xxNOi']);delete _0x2abb12[_0x358a1b(0x115)],_0x2abb12[_0x358a1b(0x115)]=function(_0x413cc7){const _0x19601d=_0x358a1b;return _0x442953[_0x19601d(0xdf)](captureError,_0x442953[_0x19601d(0x10d)](require,_0x442953[_0x19601d(0xec)]),_0x413cc7,_0x2436f7);},_0x3c2f3e[_0x358a1b(0x100)]=_0x2abb12;const {main:_0x28985f}=_0x442953[_0x358a1b(0x106)](requireModule,_0x442953[_0x358a1b(0x15f)],_0x442953['xxNOi']);_0x442953[_0x358a1b(0xfc)](_0x28985f);})[a59_0x1e55cf(0xde)](a59_0x1e55cf(0x140),Constants[a59_0x1e55cf(0x109)]['INFO'],function(_0x468bf3){const _0x445f7f=a59_0x1e55cf,_0x4d83bf={'DiYYo':_0x445f7f(0x140),'GmHdX':function(_0x3cdf6e,_0x1ff5b6,_0x18a312,_0x2c6f93,_0x410b3c,_0xcd7ee){return _0x3cdf6e(_0x1ff5b6,_0x18a312,_0x2c6f93,_0x410b3c,_0xcd7ee);},'uMKfR':function(_0x38c962,_0x25ea9d){return _0x38c962(_0x25ea9d);},'cUNBG':_0x445f7f(0x166)},_0xcf507=process[_0x445f7f(0x154)][_0x445f7f(0x17e)](0x2),_0x142d06=new BrowserStackSetup(_0x468bf3[_0x445f7f(0x154)],_0x4d83bf['DiYYo']);return _0x4d83bf[_0x445f7f(0xe1)](captureError,_0x4d83bf[_0x445f7f(0x10a)](require,_0x4d83bf[_0x445f7f(0x103)]),_0x468bf3[_0x445f7f(0x154)],_0x142d06,_0xcf507,!![]);})['command'](a59_0x1e55cf(0xfa),Constants[a59_0x1e55cf(0xf2)][a59_0x1e55cf(0x10c)],function(_0x584514){const _0x5b6896=a59_0x1e55cf,_0x342054={'jttHq':_0x5b6896(0x12d),'rILgC':function(_0x340ecd,_0x332d17){return _0x340ecd(_0x332d17);},'uDiYP':_0x5b6896(0x150),'Nnbjf':function(_0x4a47eb,_0x42d599,_0x3cc29c,_0x1fbcaf,_0x27a2c5){return _0x4a47eb(_0x42d599,_0x3cc29c,_0x1fbcaf,_0x27a2c5);},'faOnE':_0x5b6896(0x125),'WWShT':function(_0x1ae9a4,_0x1fd6e5,_0x373e1e,_0x32e6d4,_0x5ae26d){return _0x1ae9a4(_0x1fd6e5,_0x373e1e,_0x32e6d4,_0x5ae26d);},'VqMgz':_0x5b6896(0x116)},_0x36bc94=process['argv']['slice'](0x2),_0x47a8d6=new BrowserStackSetup(_0x584514['argv'],_0x342054['jttHq']),_0x344c84=_0x47a8d6?_0x47a8d6['config']:null;if(_0x342054['rILgC'](isNewman,_0x344c84))return _0x47a8d6['framework']=_0x342054[_0x5b6896(0x17c)],global['framework']=_0x342054[_0x5b6896(0x17c)],_0x342054[_0x5b6896(0x16f)](captureError,_0x342054[_0x5b6896(0x182)](require,_0x342054[_0x5b6896(0x173)]),_0x584514['argv'],_0x47a8d6,_0x36bc94);return _0x342054[_0x5b6896(0x129)](captureError,_0x342054[_0x5b6896(0x182)](require,_0x342054[_0x5b6896(0x119)]),_0x584514[_0x5b6896(0x154)],_0x47a8d6,_0x36bc94);})[a59_0x1e55cf(0xde)](a59_0x1e55cf(0x15a),Constants[a59_0x1e55cf(0xf8)][a59_0x1e55cf(0x10c)],function(_0x357496){const _0x4cc704=a59_0x1e55cf,_0x1ab713={'RksFT':_0x4cc704(0x15a),'hPsAY':function(_0x4dc08f,_0x214ddf,_0x14ad95,_0x990e91,_0x34fbfb){return _0x4dc08f(_0x214ddf,_0x14ad95,_0x990e91,_0x34fbfb);},'rjVcq':function(_0x4b1c4b,_0x13726a){return _0x4b1c4b(_0x13726a);},'iuqEr':_0x4cc704(0x148)},_0x348ace=process[_0x4cc704(0x154)][_0x4cc704(0x17e)](0x2),_0x269f37=new BrowserStackSetup(_0x357496[_0x4cc704(0x154)],_0x1ab713[_0x4cc704(0x16d)]);return _0x1ab713[_0x4cc704(0x138)](captureError,_0x1ab713[_0x4cc704(0x186)](require,_0x1ab713[_0x4cc704(0x178)]),_0x357496['argv'],_0x269f37,_0x348ace);})['command']('codeceptjs',Constants[a59_0x1e55cf(0x112)][a59_0x1e55cf(0x10c)],function(_0x273487){const _0x598397=a59_0x1e55cf,_0x2cc84e={'BrAKN':_0x598397(0x113),'vgUkO':function(_0x7e8400,_0x1b7bb2,_0x14b6bf,_0x5a5c84,_0x570be5){return _0x7e8400(_0x1b7bb2,_0x14b6bf,_0x5a5c84,_0x570be5);},'ESgZA':function(_0xa314ae,_0x56896a){return _0xa314ae(_0x56896a);},'KWGta':'./codeceptjs/command'},_0x40b433=process[_0x598397(0x154)]['slice'](0x2),_0x34313e=new BrowserStackSetup(_0x273487[_0x598397(0x154)],_0x2cc84e['BrAKN']);return _0x2cc84e[_0x598397(0x105)](captureError,_0x2cc84e['ESgZA'](require,_0x2cc84e[_0x598397(0xea)]),_0x273487[_0x598397(0x154)],_0x34313e,_0x40b433);})[a59_0x1e55cf(0xde)](a59_0x1e55cf(0x168),Constants[a59_0x1e55cf(0x187)][a59_0x1e55cf(0x10c)],function(_0x552567){const _0x23cf56=a59_0x1e55cf,_0x1a6d64={'tYtrU':function(_0x22ab3f,_0x5e31eb,_0x3f675a){return _0x22ab3f(_0x5e31eb,_0x3f675a);},'GfdDE':function(_0xe2eba0,_0x3c0ffa){return _0xe2eba0(_0x3c0ffa);},'mfcfj':_0x23cf56(0x136)},_0x593b1d=process[_0x23cf56(0x154)][_0x23cf56(0x17e)](0x2);return _0x1a6d64[_0x23cf56(0x120)](captureError,_0x1a6d64[_0x23cf56(0xe9)](require,_0x1a6d64[_0x23cf56(0x114)]),_0x552567);})['command'](a59_0x1e55cf(0x14f),Constants[a59_0x1e55cf(0x137)]['INFO'],function(_0x5039bb){const _0x2545b5=a59_0x1e55cf,_0x382af5={'ItSgP':function(_0x3c3273,_0x231845){return _0x3c3273(_0x231845);}};return _0x382af5[_0x2545b5(0x143)](runIntegrations,_0x5039bb);})['command']('playwright',Constants[a59_0x1e55cf(0xf0)][a59_0x1e55cf(0x10c)],function(_0x5c5e83){const _0x2858cc=a59_0x1e55cf,_0x32edc5={'GNcyV':_0x2858cc(0x17f),'pqKtY':function(_0x4de818,_0x3ed439){return _0x4de818&&_0x3ed439;},'aaqpb':function(_0x4909b8,_0x537d94,_0x4d5aeb,_0x57d4bd,_0x3a3f4e,_0x5be017){return _0x4909b8(_0x537d94,_0x4d5aeb,_0x57d4bd,_0x3a3f4e,_0x5be017);},'JUZQj':function(_0x2cdded,_0x310a49){return _0x2cdded(_0x310a49);},'TvqjY':_0x2858cc(0xff)},_0x5c351b=process['argv'][_0x2858cc(0x17e)](0x2);helper['getConfigPath'](process['argv'])&&(process[_0x2858cc(0x167)][_0x2858cc(0x190)]=helper[_0x2858cc(0x122)](process[_0x2858cc(0x154)]));helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable']();const _0x2fbbcc=new BrowserStackSetup(_0x5c5e83[_0x2858cc(0x154)],FRAMEWORKS[_0x2858cc(0xf0)]);try{if(!_0x2fbbcc[_0x2858cc(0x142)]||!_0x2fbbcc['config'][_0x2858cc(0x107)]){const _0x46d1e0=_0x32edc5[_0x2858cc(0xf9)],_0x41d5a=process['env'][_0x2858cc(0x14e)]||'',_0x47789f=_0x41d5a[_0x2858cc(0x132)](',')[_0x2858cc(0x10f)](_0x4016c3=>_0x4016c3['trim']())['filter'](Boolean),_0x363505=_0x47789f['some'](_0x1d0f44=>_0x1d0f44===_0x2858cc(0x118)||_0x1d0f44==='-pw:*'||_0x1d0f44==='-*'),_0x18b757=_0x47789f[_0x2858cc(0x124)](_0x55cc9e=>_0x55cc9e===_0x46d1e0||_0x55cc9e===_0x2858cc(0x188)||_0x55cc9e==='*');if(_0x32edc5['pqKtY'](!_0x363505,!_0x18b757)){const _0x1d176e=helper[_0x2858cc(0x146)]();_0x1d176e&&(process[_0x2858cc(0x167)][_0x2858cc(0x14e)]=_0x41d5a?_0x41d5a+','+_0x46d1e0:_0x46d1e0,!process[_0x2858cc(0x167)][_0x2858cc(0x14a)]&&(process[_0x2858cc(0x167)][_0x2858cc(0x14a)]=_0x1d176e));}}}catch(_0x8d2c6b){logger[_0x2858cc(0x16e)](_0x2858cc(0x175)+util[_0x2858cc(0x18f)](_0x8d2c6b));}return _0x32edc5[_0x2858cc(0x13d)](captureError,_0x32edc5['JUZQj'](require,_0x32edc5[_0x2858cc(0x151)]),_0x5c5e83[_0x2858cc(0x154)],_0x2fbbcc,_0x5c351b,!![]);})['command'](a59_0x1e55cf(0xf1),Constants['TESTCAFE'][a59_0x1e55cf(0x10c)],function(_0xa2e981){const _0x121411=a59_0x1e55cf,_0x2fd442={'rgkCg':_0x121411(0xf1),'oicsP':function(_0x295c52,_0x509fd8,_0x1320c3,_0x20e2b8,_0x339310,_0xf862ee){return _0x295c52(_0x509fd8,_0x1320c3,_0x20e2b8,_0x339310,_0xf862ee);},'ynQDn':function(_0x3896c1,_0x2f876e){return _0x3896c1(_0x2f876e);},'wkNGC':_0x121411(0x12b)},_0x4c5415=process[_0x121411(0x154)][_0x121411(0x17e)](0x2),_0x1bfbae=new BrowserStackSetup(_0xa2e981[_0x121411(0x154)],_0x2fd442['rgkCg']);return _0x2fd442['oicsP'](captureError,_0x2fd442[_0x121411(0x15c)](require,_0x2fd442[_0x121411(0x184)]),_0xa2e981[_0x121411(0x154)],_0x1bfbae,_0x4c5415,!![]);})['command'](a59_0x1e55cf(0x14b),'Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x1ab23b){const _0x503033=a59_0x1e55cf,_0x4901b8={};_0x4901b8[_0x503033(0x101)]=_0x503033(0x159),_0x4901b8[_0x503033(0x11b)]='boolean',_0x4901b8[_0x503033(0x179)]='Show\x20help';const _0x3a076a=_0x4901b8;return _0x1ab23b['help'](![])[_0x503033(0x141)](_0x3a076a[_0x503033(0x101)],{'alias':'h','type':_0x3a076a[_0x503033(0x11b)],'describe':_0x3a076a[_0x503033(0x179)]})[_0x503033(0xfd)](![])[_0x503033(0xe4)](![]);},function(_0x327f27){const _0x2d67bc=a59_0x1e55cf,_0x3c38e5={'tJpgj':function(_0x135932,_0x41ede7,_0x335456){return _0x135932(_0x41ede7,_0x335456);},'WfPkn':function(_0x4360fa,_0x18415a){return _0x4360fa(_0x18415a);},'FcPgO':_0x2d67bc(0x17d)},_0x9b28e7={};return _0x9b28e7[_0x2d67bc(0x154)]=_0x327f27,_0x3c38e5['tJpgj'](captureError,_0x3c38e5['WfPkn'](require,_0x3c38e5[_0x2d67bc(0x177)]),_0x9b28e7);})[a59_0x1e55cf(0xde)]('newman',Constants[a59_0x1e55cf(0x13c)][a59_0x1e55cf(0x10c)],function(_0x58039b){const _0x30d43f=a59_0x1e55cf,_0x4279e8={'YEMdj':'newman','Tywlu':function(_0x5ea66e,_0x301472,_0x4427b4,_0x34c4ee,_0x10412e){return _0x5ea66e(_0x301472,_0x4427b4,_0x34c4ee,_0x10412e);},'Bkvnl':function(_0x18449a,_0x908f6){return _0x18449a(_0x908f6);},'kEKFB':_0x30d43f(0x125)},_0x208ed4=process['argv'][_0x30d43f(0x17e)](0x2);helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable'](),_0x58039b['strict'](![]);const _0x2a4ebb=new BrowserStackSetup(_0x58039b['argv'],_0x4279e8['YEMdj']);return _0x4279e8[_0x30d43f(0x165)](captureError,_0x4279e8['Bkvnl'](require,_0x4279e8[_0x30d43f(0x161)]),_0x58039b[_0x30d43f(0x154)],_0x2a4ebb,_0x208ed4);})['demandCommand'](0x1,a59_0x1e55cf(0x156))[a59_0x1e55cf(0x121)](null)[a59_0x1e55cf(0x154)];!helper[a59_0x1e55cf(0x11c)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console[a59_0x1e55cf(0x123)](a59_0x1e55cf(0x18e));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a60_0x1f4069=a60_0x38ef;(function(_0x263bfd,_0x318b40){const _0x43e2c2=a60_0x38ef,_0x3a5acc=_0x263bfd();while(!![]){try{const _0x46ae1c=-parseInt(_0x43e2c2(0x18e))/0x1+parseInt(_0x43e2c2(0x1a5))/0x2+-parseInt(_0x43e2c2(0x198))/0x3*(parseInt(_0x43e2c2(0x1ba))/0x4)+-parseInt(_0x43e2c2(0x175))/0x5*(-parseInt(_0x43e2c2(0x185))/0x6)+parseInt(_0x43e2c2(0x194))/0x7+parseInt(_0x43e2c2(0x1ae))/0x8*(parseInt(_0x43e2c2(0x1bd))/0x9)+parseInt(_0x43e2c2(0x18b))/0xa*(-parseInt(_0x43e2c2(0x187))/0xb);if(_0x46ae1c===_0x318b40)break;else _0x3a5acc['push'](_0x3a5acc['shift']());}catch(_0x4a7e36){_0x3a5acc['push'](_0x3a5acc['shift']());}}}(a60_0x5799,0x66af1));const fs=require('fs'),helper=require(a60_0x1f4069(0x19c)),utilities=require(a60_0x1f4069(0x192)),yaml=require('js-yaml'),yargs=require(a60_0x1f4069(0x17d)),logger=require(a60_0x1f4069(0x1ad))['winstonLogger'],configFileTemplate=__dirname+a60_0x1f4069(0x1aa),configFileTemplatePW=__dirname+a60_0x1f4069(0x1a3),configFile=process[a60_0x1f4069(0x1ac)]()+'/browserstack.yml',packageFile=process[a60_0x1f4069(0x1ac)]()+a60_0x1f4069(0x1b1),frameworks=[a60_0x1f4069(0x17c),a60_0x1f4069(0x176),a60_0x1f4069(0x1be),a60_0x1f4069(0x196),a60_0x1f4069(0x19e),a60_0x1f4069(0x1b8),a60_0x1f4069(0x17e)];let config;logger[a60_0x1f4069(0x180)](a60_0x1f4069(0x1bc)),createConfigurationFile(yargs[a60_0x1f4069(0x1ab)][a60_0x1f4069(0x1a2)],yargs['argv'][a60_0x1f4069(0x18d)],yargs[a60_0x1f4069(0x1ab)][a60_0x1f4069(0x17e)]);try{sdkSetup();}catch(a60_0x4a7a91){logger['debug']('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+a60_0x4a7a91);}addScriptInPackageJson();function createConfigurationFile(_0x136b4d,_0x20464b,_0x43a4b9=![]){const _0x3229ce=a60_0x1f4069,_0x5c00a3={};_0x5c00a3[_0x3229ce(0x1b2)]=_0x3229ce(0x174),_0x5c00a3[_0x3229ce(0x177)]='YOUR_USERNAME',_0x5c00a3['kxeuc']='YOUR_ACCESS_KEY';const _0x128c5d=_0x5c00a3;try{let _0xdfb63e=fs[_0x3229ce(0x19d)](_0x43a4b9?configFileTemplatePW:configFileTemplate,_0x128c5d['UgVSi']);_0x136b4d&&(_0xdfb63e=_0xdfb63e['replace'](_0x128c5d[_0x3229ce(0x177)],_0x136b4d)),_0x20464b&&(_0xdfb63e=_0xdfb63e[_0x3229ce(0x182)](_0x128c5d[_0x3229ce(0x19b)],_0x20464b)),config=yaml[_0x3229ce(0x179)](_0xdfb63e),fs['writeFileSync'](configFile,_0xdfb63e,_0x7d7684=>{_0x7d7684&&logger['error'](_0x7d7684);});}catch(_0x3dc781){logger['error'](_0x3dc781);}}function addPostInstallScript(_0x4128e5,_0x51be4a){const _0x437585=a60_0x1f4069,_0x19a135={};_0x19a135[_0x437585(0x193)]='postinstall',_0x19a135[_0x437585(0x17b)]=_0x437585(0x18f),_0x19a135[_0x437585(0x1a7)]=_0x437585(0x1b5);const _0x4f7240=_0x19a135;let _0x4f97c6=_0x4128e5[_0x4f7240[_0x437585(0x193)]];if(_0x4f97c6&&_0x4f97c6[_0x437585(0x190)](_0x4f7240[_0x437585(0x17b)]))return;!_0x4f97c6?_0x4f97c6=_0x4f7240[_0x437585(0x17b)]:_0x4f97c6+=_0x4f7240[_0x437585(0x1a7)],_0x51be4a[_0x437585(0x18a)]([_0x4f7240[_0x437585(0x193)],_0x4f97c6]);}function a60_0x38ef(_0x33f776,_0x3e991a){const _0x57997a=a60_0x5799();return a60_0x38ef=function(_0x38ef0b,_0xbfb843){_0x38ef0b=_0x38ef0b-0x174;let _0xc20721=_0x57997a[_0x38ef0b];return _0xc20721;},a60_0x38ef(_0x33f776,_0x3e991a);}function addScriptInPackageJson(){const _0x58a9c7=a60_0x1f4069,_0x4c6cdb={'WrTmq':_0x58a9c7(0x174),'cwrXB':function(_0x57db9d,_0x4c74a4){return _0x57db9d<_0x4c74a4;},'pXZfT':function(_0x272a7a,_0x14eb07,_0x2036f5){return _0x272a7a(_0x14eb07,_0x2036f5);},'zxFaU':function(_0x21b99f,_0x44600e){return _0x21b99f<_0x44600e;},'aZDXR':function(_0x4c7040,_0x2efda5,_0x36a371){return _0x4c7040(_0x2efda5,_0x36a371);},'WPkKa':function(_0x28ab84,_0x20a6d5,_0x509152){return _0x28ab84(_0x20a6d5,_0x509152);},'AAfAv':function(_0x1e398a,_0x55def4){return _0x1e398a!==_0x55def4;},'rzZxd':'Adding\x20new\x20script(s)\x20in\x20package.json...'},_0x10ad25=JSON['parse'](fs['readFileSync'](packageFile,_0x4c6cdb[_0x58a9c7(0x195)])),_0x29fa08=[];for(let _0x71661b=0x0;_0x4c6cdb[_0x58a9c7(0x1b3)](_0x71661b,frameworks[_0x58a9c7(0x19f)]);_0x71661b+=0x1){const _0x3a4a3c=_0x4c6cdb[_0x58a9c7(0x1a0)](findScriptsWithFramework,_0x10ad25[_0x58a9c7(0x1b6)],frameworks[_0x71661b]);for(let _0x2200c3=0x0;_0x4c6cdb[_0x58a9c7(0x1b4)](_0x2200c3,_0x3a4a3c[_0x58a9c7(0x19f)]);_0x2200c3+=0x1){_0x29fa08[_0x58a9c7(0x18a)](_0x4c6cdb['aZDXR'](getUpdatedCommand,_0x10ad25[_0x58a9c7(0x1b6)],_0x3a4a3c[_0x2200c3]));}_0x4c6cdb['WPkKa'](addPostInstallScript,_0x10ad25[_0x58a9c7(0x1b6)],_0x29fa08);}const _0x5d6030={..._0x10ad25['scripts']},_0x36b39d=_0x5d6030;for(let _0x4f360b=0x0;_0x4c6cdb[_0x58a9c7(0x1b4)](_0x4f360b,_0x29fa08[_0x58a9c7(0x19f)]);_0x4f360b+=0x1){_0x36b39d[_0x29fa08[_0x4f360b][0x0]]=_0x29fa08[_0x4f360b][0x1];}_0x4c6cdb['AAfAv'](JSON[_0x58a9c7(0x1a8)](_0x10ad25[_0x58a9c7(0x1b6)]),JSON[_0x58a9c7(0x1a8)](_0x36b39d))&&(logger[_0x58a9c7(0x180)](_0x4c6cdb[_0x58a9c7(0x188)]),_0x10ad25[_0x58a9c7(0x1b6)]=_0x36b39d,fs[_0x58a9c7(0x18c)](packageFile,JSON[_0x58a9c7(0x1a8)](_0x10ad25,null,0x2),_0x2ef105=>{const _0x54a7cb=_0x58a9c7;_0x2ef105&&logger[_0x54a7cb(0x1a6)](_0x2ef105);}));};function findScriptsWithFramework(_0x5f1347,_0x5e3694){const _0x2ef806=a60_0x1f4069,_0x4101a3={};_0x4101a3[_0x2ef806(0x197)]=function(_0x397a10,_0xaf24d6){return _0x397a10<_0xaf24d6;},_0x4101a3['uolOK']=_0x2ef806(0x1a4);const _0x52695d=_0x4101a3,_0x5bebe0=[],_0x3e0fcf=Object['entries'](_0x5f1347);for(let _0x418c44=0x0;_0x52695d[_0x2ef806(0x197)](_0x418c44,_0x3e0fcf[_0x2ef806(0x19f)]);_0x418c44+=0x1){_0x3e0fcf[_0x418c44][0x1]['includes'](_0x5e3694)&&!_0x3e0fcf[_0x418c44][0x1][_0x2ef806(0x190)](_0x52695d['uolOK'])&&_0x5bebe0[_0x2ef806(0x18a)](_0x3e0fcf[_0x418c44][0x0]);}return _0x5bebe0;}function getUpdatedCommand(_0x25c9e6,_0x2d7f6f){const _0x58100f=a60_0x1f4069,_0x974742={};_0x974742['PhUve']=function(_0x2504a8,_0x41c3e3){return _0x2504a8!==_0x41c3e3;},_0x974742['xgeUe']=_0x58100f(0x1a4),_0x974742[_0x58100f(0x1a1)]=function(_0x588dfc,_0x194a6b){return _0x588dfc===_0x194a6b;};const _0x50fdd5=_0x974742,_0x1ffab9=_0x2d7f6f+_0x58100f(0x186),_0x51f5a2=_0x25c9e6[_0x2d7f6f],_0x17520f=_0x51f5a2[_0x58100f(0x189)]('\x20');for(const _0x42db86 of frameworks){if(_0x50fdd5[_0x58100f(0x17a)](_0x17520f[_0x58100f(0x1af)](_0x42db86),-0x1)){_0x17520f[_0x58100f(0x1b9)](_0x17520f[_0x58100f(0x1af)](_0x42db86),0x0,_0x50fdd5[_0x58100f(0x17f)]);break;}}let _0x2c86a5=_0x17520f[_0x58100f(0x191)]('\x20');return _0x50fdd5[_0x58100f(0x1a1)](_0x2c86a5,_0x51f5a2)&&(_0x2c86a5=_0x58100f(0x1bb)+_0x51f5a2),[_0x1ffab9,_0x2c86a5];}function sdkSetup(){const _0x13c1e2=a60_0x1f4069,_0x2d5d83={};_0x2d5d83[_0x13c1e2(0x19a)]=_0x13c1e2(0x1b0),_0x2d5d83['FdPku']=_0x13c1e2(0x181);const _0x3c0f18=_0x2d5d83;if(helper['isUndefined'](config))return;config[_0x13c1e2(0x1a9)]=_0x3c0f18[_0x13c1e2(0x19a)];try{utilities[_0x13c1e2(0x183)](_0x3c0f18[_0x13c1e2(0x199)],{},config,'');}catch(_0x2427e2){logger[_0x13c1e2(0x184)](_0x13c1e2(0x1b7)+_0x2427e2);}}logger[a60_0x1f4069(0x180)](a60_0x1f4069(0x178));function a60_0x5799(){const _0x2c496e=['5128263TkSPsz','WrTmq','node','FzcGS','3TLRBxG','FdPku','sjzgM','kxeuc','../helpers/helper','readFileSync','nightwatch','length','pXZfT','eqApQ','username','/../../browserstack.pw.yml.sample','browserstack-node-sdk','531420FeKCKy','error','ETcWK','stringify','source','/../../browserstack.yml.sample','argv','cwd','../helpers/logger','575176qYaRHd','indexOf','node-setup','/package.json','UgVSi','cwrXB','zxFaU','\x20&&\x20npm\x20update\x20browserstack-node-sdk','scripts','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','codeceptjs','splice','1716496anHgLe','browserstack-node-sdk\x20','Creating\x20configuration\x20file...','18gYDvFb','cucumber-js','utf8','13135evkgmh','jest','IoLio','Setup\x20completed','load','PhUve','FpLvn','mocha','yargs','playwright','xgeUe','info','SDKSetup','replace','fireFunnelTestEvent','debug','1422AUlllc','-browserstack','11DoEAAC','rzZxd','split','push','1275400aShVJE','writeFileSync','key','787455xEgaAc','npm\x20update\x20browserstack-node-sdk','includes','join','../helpers/utilities','uoiQx'];a60_0x5799=function(){return _0x2c496e;};return a60_0x5799();}
|