browserstack-node-sdk 1.63.0 → 1.63.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/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/loadErrors.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/sdkErrorHandler.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 a55_0x4b38d6=a55_0x24b9;(function(_0x13e3a8,_0x5200ed){const _0x4146b7=a55_0x24b9,_0x102c65=_0x13e3a8();while(!![]){try{const _0x5ae73a=parseInt(_0x4146b7(0x194))/0x1*(-parseInt(_0x4146b7(0x188))/0x2)+-parseInt(_0x4146b7(0x1c0))/0x3+-parseInt(_0x4146b7(0x179))/0x4+parseInt(_0x4146b7(0x19f))/0x5*(parseInt(_0x4146b7(0x164))/0x6)+parseInt(_0x4146b7(0x1ac))/0x7+parseInt(_0x4146b7(0x1ad))/0x8*(parseInt(_0x4146b7(0x1a1))/0x9)+-parseInt(_0x4146b7(0x168))/0xa*(-parseInt(_0x4146b7(0x16b))/0xb);if(_0x5ae73a===_0x5200ed)break;else _0x102c65['push'](_0x102c65['shift']());}catch(_0x340748){_0x102c65['push'](_0x102c65['shift']());}}}(a55_0x6302,0x6e03c));const fs=require('fs'),path=require(a55_0x4b38d6(0x1a4)),{v4:uuidv4}=require(a55_0x4b38d6(0x17a)),{TEMP_STORE_DIR_NAME}=require(a55_0x4b38d6(0x17b)),{nestedKeyValue}=require(a55_0x4b38d6(0x172)),logger=require(a55_0x4b38d6(0x1aa))[a55_0x4b38d6(0x165)],{getLogDir}=require(a55_0x4b38d6(0x1aa)),util=require(a55_0x4b38d6(0x19a)),helper=require(a55_0x4b38d6(0x172));function a55_0x24b9(_0x4766d3,_0x30c738){const _0x630275=a55_0x6302();return a55_0x24b9=function(_0x24b94c,_0x29227f){_0x24b94c=_0x24b94c-0x163;let _0xc207b6=_0x630275[_0x24b94c];return _0xc207b6;},a55_0x24b9(_0x4766d3,_0x30c738);}class TestDetails{static [a55_0x4b38d6(0x17c)]={};static[a55_0x4b38d6(0x195)](){const _0x295299=a55_0x4b38d6;this[_0x295299(0x186)]();const _0x1e4269={};_0x1e4269[_0x295299(0x178)]=!![],fs[_0x295299(0x1a9)](this[_0x295299(0x184)](),_0x1e4269);const _0x185230={};_0x185230[_0x295299(0x178)]=!![],fs['mkdirSync'](this[_0x295299(0x1bb)](),_0x185230);}static[a55_0x4b38d6(0x18c)](){const _0x26ac7f=a55_0x4b38d6,_0x4f1dad={};_0x4f1dad[_0x26ac7f(0x1b9)]=function(_0x3228f3,_0x50a8f8){return _0x3228f3+_0x50a8f8;};const _0x5489a2=_0x4f1dad;return _0x5489a2[_0x26ac7f(0x1b9)](_0x5489a2[_0x26ac7f(0x1b9)](TEMP_STORE_DIR_NAME,'-'),process[_0x26ac7f(0x169)]['BS_TESTOPS_BUILD_HASHED_ID']);}static['getStoreDirPath'](){const _0xdb6c07=a55_0x4b38d6,_0x19ae07={};_0x19ae07['zVUDY']=function(_0x5a943e,_0x1b0710){return _0x5a943e+_0x1b0710;},_0x19ae07[_0xdb6c07(0x176)]=_0xdb6c07(0x17e);const _0x3d8776=_0x19ae07;return path[_0xdb6c07(0x18f)](_0x3d8776[_0xdb6c07(0x174)](_0x3d8776['zVUDY'](TEMP_STORE_DIR_NAME,'-'),process[_0xdb6c07(0x169)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x3d8776[_0xdb6c07(0x176)]));}static[a55_0x4b38d6(0x1bb)](){const _0x4caa82=a55_0x4b38d6,_0x2e5e01={};_0x2e5e01[_0x4caa82(0x182)]='traceZipPaths';const _0xf35a12=_0x2e5e01;return path[_0x4caa82(0x18f)](this[_0x4caa82(0x1ae)](),_0xf35a12[_0x4caa82(0x182)]);}static[a55_0x4b38d6(0x184)](){const _0x14d940=a55_0x4b38d6;return TestDetails[_0x14d940(0x18c)]();}static[a55_0x4b38d6(0x1be)](_0x577699){const _0x1d26d5=a55_0x4b38d6,_0x1a9e66={};_0x1a9e66[_0x1d26d5(0x1af)]=function(_0x271530,_0x369533){return _0x271530+_0x369533;},_0x1a9e66[_0x1d26d5(0x1b7)]=_0x1d26d5(0x180);const _0x3cb796=_0x1a9e66;return path[_0x1d26d5(0x18f)](this['getDirPath'](),_0x3cb796[_0x1d26d5(0x1af)](_0x577699,_0x3cb796[_0x1d26d5(0x1b7)]));}static[a55_0x4b38d6(0x193)](_0xa389f){const _0x291034=a55_0x4b38d6,_0x5190c1={};_0x5190c1[_0x291034(0x170)]=function(_0x1c7421,_0x57da33){return _0x1c7421+_0x57da33;},_0x5190c1[_0x291034(0x1bf)]=function(_0x1144c0,_0x2441e1){return _0x1144c0+_0x2441e1;};const _0x1fb770=_0x5190c1;return _0x1fb770[_0x291034(0x170)](_0x1fb770[_0x291034(0x1bf)](this[_0x291034(0x1bc)](_0xa389f),'-'),_0xa389f['retry']);}static[a55_0x4b38d6(0x1ab)](_0x5288f6){const _0x1dddbd=a55_0x4b38d6,_0x11169d={'AAPLA':function(_0x3b8d7c,_0x2fe665,_0x3b6fae){return _0x3b8d7c(_0x2fe665,_0x3b6fae);},'lRMYc':_0x1dddbd(0x187),'fTalS':_0x1dddbd(0x198),'mnGck':function(_0x4ecd99,_0x573976,_0x3d44cb){return _0x4ecd99(_0x573976,_0x3d44cb);},'IhMda':_0x1dddbd(0x18d),'PyQar':_0x1dddbd(0x16a)};return _0x11169d[_0x1dddbd(0x1c3)](nestedKeyValue,_0x5288f6,[_0x11169d[_0x1dddbd(0x17f)],_0x11169d[_0x1dddbd(0x1a7)]])||_0x11169d[_0x1dddbd(0x173)](nestedKeyValue,_0x5288f6,[_0x11169d['IhMda'],_0x11169d[_0x1dddbd(0x1b6)]]);}static[a55_0x4b38d6(0x1bc)](_0x248960){const _0x5761f1=a55_0x4b38d6,_0x587f9e={'zJyCP':function(_0x1cf8b5,_0x58f594,_0x3807f1){return _0x1cf8b5(_0x58f594,_0x3807f1);},'hxgCo':_0x5761f1(0x187)};return _0x587f9e[_0x5761f1(0x19c)](nestedKeyValue,_0x248960,[_0x587f9e[_0x5761f1(0x18b)],'id'])||_0x248960[_0x5761f1(0x18e)];}static[a55_0x4b38d6(0x191)](_0x401f4b){const _0x213854=a55_0x4b38d6,_0x3e9bef={'rjtAD':function(_0x14fdc7,_0x5b4754){return _0x14fdc7===_0x5b4754;},'yfQhu':_0x213854(0x192),'KzzTC':function(_0x187ffa){return _0x187ffa();}};if(this[_0x213854(0x17c)][_0x401f4b]&&_0x3e9bef[_0x213854(0x163)](typeof this[_0x213854(0x17c)][_0x401f4b][_0x213854(0x17a)],_0x3e9bef['yfQhu']))return this[_0x213854(0x17c)][_0x401f4b][_0x213854(0x17a)];const _0x3a3780=this[_0x213854(0x1be)](_0x401f4b);if(_0x3a3780&&fs[_0x213854(0x1c5)](_0x3a3780)){const _0xc1d7dd=JSON['parse'](fs[_0x213854(0x166)](_0x3a3780)[_0x213854(0x1c1)]());return this[_0x213854(0x17c)][_0x401f4b]=_0xc1d7dd,this[_0x213854(0x17c)][_0x401f4b][_0x213854(0x17a)];}return this[_0x213854(0x17c)][_0x401f4b]={'uuid':_0x3e9bef['KzzTC'](uuidv4)},fs['writeFileSync'](_0x3a3780,JSON[_0x213854(0x1b4)](this[_0x213854(0x17c)][_0x401f4b])),this[_0x213854(0x17c)][_0x401f4b][_0x213854(0x17a)];}static[a55_0x4b38d6(0x16f)](_0x4bb17b){const _0x1ec0b3=a55_0x4b38d6,_0x433ea7=path['join'](this[_0x1ec0b3(0x184)](),_0x4bb17b+_0x1ec0b3(0x1ba));if(_0x433ea7&&fs[_0x1ec0b3(0x1c5)](_0x433ea7))return fs[_0x1ec0b3(0x166)](_0x433ea7)[_0x1ec0b3(0x1c1)]();}static[a55_0x4b38d6(0x171)](_0x3275d4,_0x2f4fff){const _0x4b3ff5=a55_0x4b38d6,_0x16c90c=path[_0x4b3ff5(0x18f)](this[_0x4b3ff5(0x184)](),_0x2f4fff+_0x4b3ff5(0x1ba));fs[_0x4b3ff5(0x175)](_0x16c90c,_0x3275d4[_0x4b3ff5(0x1c1)]());}static['getIntegrations'](_0x5c22e6){const _0x18e51d=a55_0x4b38d6,_0x15353b=path[_0x18e51d(0x18f)](this[_0x18e51d(0x184)](),_0x5c22e6+'_integrations.json');if(_0x15353b&&fs['existsSync'](_0x15353b))try{return JSON[_0x18e51d(0x1b2)](fs[_0x18e51d(0x166)](_0x15353b)[_0x18e51d(0x1c1)]());}catch(_0x38ffac){return logger[_0x18e51d(0x1a5)](_0x18e51d(0x197)+_0x5c22e6+':\x20'+(_0x38ffac&&_0x38ffac[_0x18e51d(0x183)])),null;}return null;}static[a55_0x4b38d6(0x1a2)](_0x30d0e0,_0x50853b){const _0x248093=a55_0x4b38d6,_0x2c7c53={};_0x2c7c53[_0x248093(0x19d)]=function(_0x1dd5af,_0x542414){return _0x1dd5af||_0x542414;};const _0x376db8=_0x2c7c53;if(_0x376db8[_0x248093(0x19d)](!_0x30d0e0,!_0x50853b))return;try{const _0x48029a=this[_0x248093(0x184)](),_0x37e4f1={};_0x37e4f1['recursive']=!![],fs[_0x248093(0x1a9)](_0x48029a,_0x37e4f1);const _0x25cd9a=path[_0x248093(0x18f)](_0x48029a,_0x30d0e0+'_integrations.json');fs['writeFileSync'](_0x25cd9a,JSON[_0x248093(0x1b4)](_0x50853b));}catch(_0x3ce279){logger['debug'](_0x248093(0x1a6)+_0x30d0e0+':\x20'+(_0x3ce279&&_0x3ce279['message']));}}static[a55_0x4b38d6(0x186)](){const _0x265b5b=a55_0x4b38d6,_0x2268a7={};_0x2268a7[_0x265b5b(0x178)]=!![],_0x2268a7[_0x265b5b(0x167)]=!![],fs['rmSync'](this[_0x265b5b(0x184)](),_0x2268a7);}static['getTestDetails'](_0x3afed9){const _0x3a4263=a55_0x4b38d6;if(this['tests'][_0x3afed9])return this[_0x3a4263(0x17c)][_0x3afed9];const _0x8f1725=this['getFilePath'](_0x3afed9);if(_0x8f1725&&fs[_0x3a4263(0x1c5)](_0x8f1725)){const _0x6cebdd=JSON[_0x3a4263(0x1b2)](fs[_0x3a4263(0x166)](_0x8f1725)[_0x3a4263(0x1c1)]());return this[_0x3a4263(0x17c)][_0x3afed9]=_0x6cebdd,_0x6cebdd;}return{};}static[a55_0x4b38d6(0x190)](_0x35a87a,_0xd19e80){const _0x298c01=a55_0x4b38d6,_0x7eb297=this[_0x298c01(0x1be)](_0x35a87a);if(_0x7eb297&&fs[_0x298c01(0x1c5)](_0x7eb297)){const _0x8ee5d0=JSON[_0x298c01(0x1b2)](fs[_0x298c01(0x166)](_0x7eb297)['toString']()),_0x5cb5f5={..._0x8ee5d0,..._0xd19e80};this[_0x298c01(0x17c)][_0x35a87a]=_0x5cb5f5;}else this[_0x298c01(0x17c)][_0x35a87a]=_0xd19e80;fs['writeFileSync'](_0x7eb297,this[_0x298c01(0x17c)][_0x35a87a]);}static[a55_0x4b38d6(0x196)](_0x502dd8){const _0x40c0ba=a55_0x4b38d6,_0x314f4e={};_0x314f4e[_0x40c0ba(0x16d)]='Error\x20handling\x20trace\x20file\x20paths:\x20';const _0x45d729=_0x314f4e;try{const _0x5ffa93=process[_0x40c0ba(0x1a8)],_0x714b50=path[_0x40c0ba(0x18f)](TestDetails[_0x40c0ba(0x1bb)](),_0x5ffa93+_0x40c0ba(0x189));let _0xed5737=[];_0x714b50&&fs[_0x40c0ba(0x1c5)](_0x714b50)&&(_0xed5737=JSON['parse'](fs[_0x40c0ba(0x166)](_0x714b50)['toString']())),!_0xed5737[_0x40c0ba(0x19e)](_0x3701e4=>_0x3701e4['filePath']===_0x502dd8[_0x40c0ba(0x16c)])&&(_0xed5737['push'](_0x502dd8),fs[_0x40c0ba(0x175)](_0x714b50,JSON[_0x40c0ba(0x1b4)](_0xed5737)));}catch(_0x327330){logger[_0x40c0ba(0x18a)](_0x45d729['DqCOB'],_0x327330);}}static[a55_0x4b38d6(0x17d)](){const _0x4baa0d=a55_0x4b38d6,_0x275bd1={};_0x275bd1[_0x4baa0d(0x1a0)]=_0x4baa0d(0x189),_0x275bd1[_0x4baa0d(0x199)]=_0x4baa0d(0x1b5);const _0x37fa95=_0x275bd1,_0x1590d0=[];try{const _0x57c56f=TestDetails['getTraceZipDir']();if(_0x57c56f&&!fs[_0x4baa0d(0x1c5)](_0x57c56f))return _0x1590d0;const _0x581e63=fs[_0x4baa0d(0x19b)](_0x57c56f);_0x581e63[_0x4baa0d(0x1b1)](_0x553c64=>{const _0x3703d8=_0x4baa0d;if(_0x553c64&&_0x553c64[_0x3703d8(0x1b8)](_0x37fa95[_0x3703d8(0x1a0)])){const _0x41f92d=JSON[_0x3703d8(0x1b2)](fs[_0x3703d8(0x166)](path[_0x3703d8(0x18f)](_0x57c56f,_0x553c64))[_0x3703d8(0x1c1)]());_0x1590d0[_0x3703d8(0x1b3)](..._0x41f92d);}});}catch(_0x4f55a2){logger[_0x4baa0d(0x18a)](util[_0x4baa0d(0x181)](_0x37fa95[_0x4baa0d(0x199)],_0x4f55a2));}const _0x1937ed={};return _0x1590d0[_0x4baa0d(0x1b1)](_0x3b04a7=>{const _0x245aeb=_0x4baa0d;_0x1937ed[_0x3b04a7[_0x245aeb(0x16c)]]=_0x3b04a7;}),Object[_0x4baa0d(0x1c2)](_0x1937ed);}static['appendToTracePaths'](_0xc9e649,_0xc56cc1){const _0x3ad9e2=a55_0x4b38d6,_0x4ba7a1={};_0x4ba7a1[_0x3ad9e2(0x16e)]=_0x3ad9e2(0x1b0),_0x4ba7a1[_0x3ad9e2(0x1a3)]='utf8';const _0x333088=_0x4ba7a1;try{const _0x4d03ff=path[_0x3ad9e2(0x18f)](helper['homedir'](),_0x333088[_0x3ad9e2(0x16e)]);if(!fs['existsSync'](_0x4d03ff)){const _0x517b9={};_0x517b9['recursive']=!![],fs[_0x3ad9e2(0x1a9)](_0x4d03ff,_0x517b9);}fs[_0x3ad9e2(0x1c4)](path[_0x3ad9e2(0x18f)](_0x4d03ff,_0x3ad9e2(0x1bd)+_0xc56cc1+_0x3ad9e2(0x177)),_0xc9e649+'\x0a',_0x333088[_0x3ad9e2(0x1a3)]);}catch(_0x53071c){console['error'](_0x3ad9e2(0x185)+_0x53071c[_0x3ad9e2(0x183)]);}}}function a55_0x6302(){const _0x4060e6=['getStoreDirName','project','testId','join','setTestDetails','getTestUUID','string','getTestRunIdFromTestInfo','23FJtdYD','setup','addTraceFilePath','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','_projectId','Ykkju','util','readdirSync','zJyCP','hNGGt','some','5feezLd','VNxGk','9BbQAoI','setIntegrations','mDlad','path','debug','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','fTalS','pid','mkdirSync','../../../helpers/logger','getProjectIdFromTestInfo','1912274udXCDz','5044504TkfQDS','getStoreDirPath','wchRH','.browserstack','forEach','parse','push','stringify','Error\x20reading\x20trace\x20file\x20paths:\x20%s','PyQar','pHYhA','endsWith','YAGte','_platformDetails.json','getTraceZipDir','getTestIdFromTestInfo','trace_','getFilePath','fXkkH','943767YMRvpe','toString','values','AAPLA','appendFileSync','existsSync','rjtAD','2537292xOWtUY','winstonLogger','readFileSync','force','10ivzcCd','env','__projectId','7608381XetXMo','filePath','DqCOB','zaePb','getAccessibilityPlatformValidation','XjXRq','setAccessibilityPlatformValidation','../../../helpers/helper','mnGck','zVUDY','writeFileSync','BpgrF','.txt','recursive','2291916dTFEwJ','uuid','../../../helpers/test-observability/constants','tests','getTraceFilePaths','default','lRMYc','.json','format','zumwJ','message','getDirPath','Error\x20writing\x20trace\x20file:\x20','shutdown','_test','59140JQWqev','_traceZipPaths.json','error','hxgCo'];a55_0x6302=function(){return _0x4060e6;};return a55_0x6302();}module['exports']=TestDetails;
|
|
1
|
+
const a55_0x33d050=a55_0x9191;function a55_0x9191(_0x373086,_0x336b7f){const _0x164649=a55_0x1646();return a55_0x9191=function(_0x919167,_0x582b55){_0x919167=_0x919167-0x117;let _0x10d0c5=_0x164649[_0x919167];return _0x10d0c5;},a55_0x9191(_0x373086,_0x336b7f);}(function(_0x494ab9,_0x163468){const _0x71a04c=a55_0x9191,_0x5caf14=_0x494ab9();while(!![]){try{const _0x534985=-parseInt(_0x71a04c(0x133))/0x1*(-parseInt(_0x71a04c(0x11e))/0x2)+parseInt(_0x71a04c(0x174))/0x3*(-parseInt(_0x71a04c(0x164))/0x4)+-parseInt(_0x71a04c(0x11a))/0x5+-parseInt(_0x71a04c(0x136))/0x6*(-parseInt(_0x71a04c(0x14b))/0x7)+-parseInt(_0x71a04c(0x12d))/0x8+parseInt(_0x71a04c(0x147))/0x9*(parseInt(_0x71a04c(0x13d))/0xa)+-parseInt(_0x71a04c(0x14e))/0xb;if(_0x534985===_0x163468)break;else _0x5caf14['push'](_0x5caf14['shift']());}catch(_0xe497a){_0x5caf14['push'](_0x5caf14['shift']());}}}(a55_0x1646,0xcfa36));function a55_0x1646(){const _0x582a40=['parse','forEach','setAccessibilityPlatformValidation','WGHRu','CmVAO','aXgfL','_test','join','UoJwM','EGWkG','appendFileSync','readdirSync','retry','813wGZEsP','Error\x20reading\x20trace\x20file\x20paths:\x20%s','stringify','jtqNk','2800875hDedXZ','project','../../../helpers/test-observability/constants','_platformDetails.json','95372mbVmaW','mkdirSync','../../../helpers/helper','.json','addTraceFilePath','oYIvs','message','getIntegrations','getFilePath','ZYIHa','TLdjD','readFileSync','trace_','writeFileSync','getDirPath','1678792GzVYZE','fJygC','getStoreDirName','recursive','getTraceZipDir','setup','31gTNpGS','__projectId','PYzRp','66AIGGkN','shutdown','tests','NpyPO','filePath','rmSync','winstonLogger','40llqKnz','siLLX','.txt','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','Error\x20writing\x20trace\x20file:\x20','toString','getProjectIdFromTestInfo','string','getStoreDirPath','getTestIdFromTestInfo','1034217SOGvuS','util','pid','_integrations.json','12719gzWZyA','getTestDetails','error','918148sKYCSv','uuid','WomXe','qJWEL','_traceZipPaths.json','force','xvtit','default','env','BS_TESTOPS_BUILD_HASHED_ID','setIntegrations','path','lBxMk','_projectId','ExBlZ','values','push','existsSync','yMewW','debug','ekDSJ','exports','3748CdkXcz','endsWith','traceZipPaths'];a55_0x1646=function(){return _0x582a40;};return a55_0x1646();}const fs=require('fs'),path=require(a55_0x33d050(0x159)),{v4:uuidv4}=require(a55_0x33d050(0x14f)),{TEMP_STORE_DIR_NAME}=require(a55_0x33d050(0x11c)),{nestedKeyValue}=require('../../../helpers/helper'),logger=require('../../../helpers/logger')[a55_0x33d050(0x13c)],{getLogDir}=require('../../../helpers/logger'),util=require(a55_0x33d050(0x148)),helper=require(a55_0x33d050(0x120));class TestDetails{static ['tests']={};static[a55_0x33d050(0x132)](){const _0x49e0c1=a55_0x33d050;this[_0x49e0c1(0x137)]();const _0x452395={};_0x452395[_0x49e0c1(0x130)]=!![],fs[_0x49e0c1(0x11f)](this[_0x49e0c1(0x12c)](),_0x452395);const _0x60059b={};_0x60059b[_0x49e0c1(0x130)]=!![],fs[_0x49e0c1(0x11f)](this[_0x49e0c1(0x131)](),_0x60059b);}static['getStoreDirName'](){const _0x44b5a2=a55_0x33d050,_0x513389={};_0x513389[_0x44b5a2(0x135)]=function(_0x51612b,_0x3a68e3){return _0x51612b+_0x3a68e3;},_0x513389[_0x44b5a2(0x160)]=function(_0x565046,_0x330bd8){return _0x565046+_0x330bd8;};const _0x5a7499=_0x513389;return _0x5a7499['PYzRp'](_0x5a7499[_0x44b5a2(0x160)](TEMP_STORE_DIR_NAME,'-'),process[_0x44b5a2(0x156)]['BS_TESTOPS_BUILD_HASHED_ID']);}static[a55_0x33d050(0x145)](){const _0x490201=a55_0x33d050,_0x3f1f8e={};_0x3f1f8e[_0x490201(0x16b)]=function(_0x3cb878,_0x57a4a1){return _0x3cb878+_0x57a4a1;},_0x3f1f8e['lLEhZ']=function(_0x4ab831,_0x12e173){return _0x4ab831+_0x12e173;},_0x3f1f8e[_0x490201(0x15a)]=_0x490201(0x155);const _0x682645=_0x3f1f8e;return path['join'](_0x682645[_0x490201(0x16b)](_0x682645['lLEhZ'](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x490201(0x157)]||_0x682645[_0x490201(0x15a)]));}static[a55_0x33d050(0x131)](){const _0x18dfc9=a55_0x33d050,_0x30fed6={};_0x30fed6['ZYIHa']=_0x18dfc9(0x166);const _0x20df3e=_0x30fed6;return path[_0x18dfc9(0x16e)](this[_0x18dfc9(0x145)](),_0x20df3e[_0x18dfc9(0x127)]);}static[a55_0x33d050(0x12c)](){const _0x24a48d=a55_0x33d050;return TestDetails[_0x24a48d(0x12f)]();}static[a55_0x33d050(0x126)](_0x1597b8){const _0x25e4d2=a55_0x33d050,_0x321008={};_0x321008['ZHuFG']=function(_0x36bb47,_0x4f0de7){return _0x36bb47+_0x4f0de7;},_0x321008[_0x25e4d2(0x16f)]=_0x25e4d2(0x121);const _0x10d1c7=_0x321008;return path[_0x25e4d2(0x16e)](this[_0x25e4d2(0x12c)](),_0x10d1c7['ZHuFG'](_0x1597b8,_0x10d1c7['UoJwM']));}static['getTestRunIdFromTestInfo'](_0xee3db7){const _0x2a5541=a55_0x33d050,_0x1e5767={};_0x1e5767['siLLX']=function(_0x30a5df,_0x1fd47e){return _0x30a5df+_0x1fd47e;};const _0x3226b0=_0x1e5767;return _0x3226b0[_0x2a5541(0x13e)](_0x3226b0[_0x2a5541(0x13e)](this[_0x2a5541(0x146)](_0xee3db7),'-'),_0xee3db7[_0x2a5541(0x173)]);}static[a55_0x33d050(0x143)](_0x4ff715){const _0x3aae81=a55_0x33d050,_0xbb718a={'TLdjD':function(_0x259e26,_0x3f0654,_0x57e88e){return _0x259e26(_0x3f0654,_0x57e88e);},'lxUsD':_0x3aae81(0x16d),'xvtit':_0x3aae81(0x15b),'WGHRu':_0x3aae81(0x11b),'NpyPO':_0x3aae81(0x134)};return _0xbb718a['TLdjD'](nestedKeyValue,_0x4ff715,[_0xbb718a['lxUsD'],_0xbb718a[_0x3aae81(0x154)]])||_0xbb718a[_0x3aae81(0x128)](nestedKeyValue,_0x4ff715,[_0xbb718a[_0x3aae81(0x16a)],_0xbb718a[_0x3aae81(0x139)]]);}static[a55_0x33d050(0x146)](_0x24f964){const _0x578d5a=a55_0x33d050,_0x32dc2c={'fJygC':function(_0x10cf82,_0x257984,_0x3bdd71){return _0x10cf82(_0x257984,_0x3bdd71);},'EGWkG':'_test'};return _0x32dc2c[_0x578d5a(0x12e)](nestedKeyValue,_0x24f964,[_0x32dc2c[_0x578d5a(0x170)],'id'])||_0x24f964['testId'];}static['getTestUUID'](_0x3a8d49){const _0x153a4a=a55_0x33d050,_0x1bf125={'rhigk':function(_0x2ec10e,_0x1b38e7){return _0x2ec10e===_0x1b38e7;},'WomXe':_0x153a4a(0x144),'jtqNk':function(_0xb24215){return _0xb24215();}};if(this[_0x153a4a(0x138)][_0x3a8d49]&&_0x1bf125['rhigk'](typeof this[_0x153a4a(0x138)][_0x3a8d49][_0x153a4a(0x14f)],_0x1bf125[_0x153a4a(0x150)]))return this[_0x153a4a(0x138)][_0x3a8d49][_0x153a4a(0x14f)];const _0x2d967c=this[_0x153a4a(0x126)](_0x3a8d49);if(_0x2d967c&&fs['existsSync'](_0x2d967c)){const _0x564fa8=JSON[_0x153a4a(0x167)](fs[_0x153a4a(0x129)](_0x2d967c)['toString']());return this[_0x153a4a(0x138)][_0x3a8d49]=_0x564fa8,this[_0x153a4a(0x138)][_0x3a8d49][_0x153a4a(0x14f)];}return this['tests'][_0x3a8d49]={'uuid':_0x1bf125[_0x153a4a(0x119)](uuidv4)},fs['writeFileSync'](_0x2d967c,JSON[_0x153a4a(0x118)](this['tests'][_0x3a8d49])),this[_0x153a4a(0x138)][_0x3a8d49][_0x153a4a(0x14f)];}static['getAccessibilityPlatformValidation'](_0x185930){const _0x53183c=a55_0x33d050,_0x468bd2=path[_0x53183c(0x16e)](this[_0x53183c(0x12c)](),_0x185930+_0x53183c(0x11d));if(_0x468bd2&&fs[_0x53183c(0x15f)](_0x468bd2))return fs[_0x53183c(0x129)](_0x468bd2)[_0x53183c(0x142)]();}static[a55_0x33d050(0x169)](_0x44a522,_0x3b78c7){const _0x4deae6=a55_0x33d050,_0x556476=path[_0x4deae6(0x16e)](this[_0x4deae6(0x12c)](),_0x3b78c7+'_platformDetails.json');fs['writeFileSync'](_0x556476,_0x44a522[_0x4deae6(0x142)]());}static[a55_0x33d050(0x125)](_0xbe760a){const _0x4927fe=a55_0x33d050,_0x578e09=path[_0x4927fe(0x16e)](this[_0x4927fe(0x12c)](),_0xbe760a+_0x4927fe(0x14a));if(_0x578e09&&fs[_0x4927fe(0x15f)](_0x578e09))try{return JSON['parse'](fs[_0x4927fe(0x129)](_0x578e09)[_0x4927fe(0x142)]());}catch(_0x2c6466){return logger[_0x4927fe(0x161)]('Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20'+_0xbe760a+':\x20'+(_0x2c6466&&_0x2c6466[_0x4927fe(0x124)])),null;}return null;}static[a55_0x33d050(0x158)](_0x4c68b6,_0x648c42){const _0x3ee92f=a55_0x33d050,_0x196281={};_0x196281[_0x3ee92f(0x123)]=function(_0x3f3e24,_0x2f3f2e){return _0x3f3e24||_0x2f3f2e;};const _0xf6e60b=_0x196281;if(_0xf6e60b['oYIvs'](!_0x4c68b6,!_0x648c42))return;try{const _0x3a2cb1=this[_0x3ee92f(0x12c)](),_0x56a387={};_0x56a387[_0x3ee92f(0x130)]=!![],fs[_0x3ee92f(0x11f)](_0x3a2cb1,_0x56a387);const _0x412a4b=path[_0x3ee92f(0x16e)](_0x3a2cb1,_0x4c68b6+_0x3ee92f(0x14a));fs[_0x3ee92f(0x12b)](_0x412a4b,JSON['stringify'](_0x648c42));}catch(_0x28829a){logger[_0x3ee92f(0x161)](_0x3ee92f(0x140)+_0x4c68b6+':\x20'+(_0x28829a&&_0x28829a['message']));}}static[a55_0x33d050(0x137)](){const _0x34ac58=a55_0x33d050,_0x54fd0d={};_0x54fd0d[_0x34ac58(0x130)]=!![],_0x54fd0d[_0x34ac58(0x153)]=!![],fs[_0x34ac58(0x13b)](this['getDirPath'](),_0x54fd0d);}static[a55_0x33d050(0x14c)](_0x1b4476){const _0x28a8fa=a55_0x33d050;if(this[_0x28a8fa(0x138)][_0x1b4476])return this['tests'][_0x1b4476];const _0x2a9676=this[_0x28a8fa(0x126)](_0x1b4476);if(_0x2a9676&&fs['existsSync'](_0x2a9676)){const _0x4b9c65=JSON[_0x28a8fa(0x167)](fs['readFileSync'](_0x2a9676)[_0x28a8fa(0x142)]());return this['tests'][_0x1b4476]=_0x4b9c65,_0x4b9c65;}return{};}static['setTestDetails'](_0x4aaf15,_0x5021e4){const _0x41f742=a55_0x33d050,_0x57217b=this['getFilePath'](_0x4aaf15);if(_0x57217b&&fs['existsSync'](_0x57217b)){const _0x5a3438=JSON[_0x41f742(0x167)](fs[_0x41f742(0x129)](_0x57217b)[_0x41f742(0x142)]()),_0x53b7d6={..._0x5a3438,..._0x5021e4};this[_0x41f742(0x138)][_0x4aaf15]=_0x53b7d6;}else this[_0x41f742(0x138)][_0x4aaf15]=_0x5021e4;fs['writeFileSync'](_0x57217b,this[_0x41f742(0x138)][_0x4aaf15]);}static[a55_0x33d050(0x122)](_0x5e24c0){const _0x58ba2c=a55_0x33d050,_0xff1b73={};_0xff1b73[_0x58ba2c(0x162)]='Error\x20handling\x20trace\x20file\x20paths:\x20';const _0x2d8e0a=_0xff1b73;try{const _0x52778d=process[_0x58ba2c(0x149)],_0x41fa92=path[_0x58ba2c(0x16e)](TestDetails[_0x58ba2c(0x131)](),_0x52778d+'_traceZipPaths.json');let _0x5a190f=[];_0x41fa92&&fs['existsSync'](_0x41fa92)&&(_0x5a190f=JSON[_0x58ba2c(0x167)](fs['readFileSync'](_0x41fa92)[_0x58ba2c(0x142)]())),!_0x5a190f['some'](_0x559768=>_0x559768[_0x58ba2c(0x13a)]===_0x5e24c0['filePath'])&&(_0x5a190f[_0x58ba2c(0x15e)](_0x5e24c0),fs[_0x58ba2c(0x12b)](_0x41fa92,JSON[_0x58ba2c(0x118)](_0x5a190f)));}catch(_0x2ddcc5){logger['error'](_0x2d8e0a['ekDSJ'],_0x2ddcc5);}}static['getTraceFilePaths'](){const _0x5a7a1b=a55_0x33d050,_0x49f9f7={};_0x49f9f7[_0x5a7a1b(0x15c)]=_0x5a7a1b(0x152),_0x49f9f7[_0x5a7a1b(0x151)]=_0x5a7a1b(0x117);const _0x46f6ac=_0x49f9f7,_0x22d1da=[];try{const _0xd0622=TestDetails['getTraceZipDir']();if(_0xd0622&&!fs['existsSync'](_0xd0622))return _0x22d1da;const _0x435593=fs[_0x5a7a1b(0x172)](_0xd0622);_0x435593['forEach'](_0x59184c=>{const _0x11ca64=_0x5a7a1b;if(_0x59184c&&_0x59184c[_0x11ca64(0x165)](_0x46f6ac[_0x11ca64(0x15c)])){const _0x2c1b7d=JSON[_0x11ca64(0x167)](fs[_0x11ca64(0x129)](path[_0x11ca64(0x16e)](_0xd0622,_0x59184c))['toString']());_0x22d1da['push'](..._0x2c1b7d);}});}catch(_0x5eaba8){logger['error'](util['format'](_0x46f6ac[_0x5a7a1b(0x151)],_0x5eaba8));}const _0x365847={};return _0x22d1da[_0x5a7a1b(0x168)](_0x572308=>{_0x365847[_0x572308['filePath']]=_0x572308;}),Object[_0x5a7a1b(0x15d)](_0x365847);}static['appendToTracePaths'](_0xe53b19,_0x1e973c){const _0xf3d440=a55_0x33d050,_0x3adc55={};_0x3adc55['aXgfL']='.browserstack',_0x3adc55['MNaIm']='utf8';const _0x320c8b=_0x3adc55;try{const _0x5a1188=path[_0xf3d440(0x16e)](helper['homedir'](),_0x320c8b[_0xf3d440(0x16c)]);if(!fs[_0xf3d440(0x15f)](_0x5a1188)){const _0x5cbada={};_0x5cbada[_0xf3d440(0x130)]=!![],fs['mkdirSync'](_0x5a1188,_0x5cbada);}fs[_0xf3d440(0x171)](path[_0xf3d440(0x16e)](_0x5a1188,_0xf3d440(0x12a)+_0x1e973c+_0xf3d440(0x13f)),_0xe53b19+'\x0a',_0x320c8b['MNaIm']);}catch(_0x13f062){console[_0xf3d440(0x14d)](_0xf3d440(0x141)+_0x13f062[_0xf3d440(0x124)]);}}}module[a55_0x33d050(0x163)]=TestDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a56_0x2a9f(_0x186a60,_0x192683){const _0x38b629=a56_0x38b6();return a56_0x2a9f=function(_0x2a9fe9,_0x1f0fa3){_0x2a9fe9=_0x2a9fe9-0x158;let _0x5b5eaa=_0x38b629[_0x2a9fe9];return _0x5b5eaa;},a56_0x2a9f(_0x186a60,_0x192683);}const a56_0x804b85=a56_0x2a9f;(function(_0x399cec,_0x4a3f64){const _0x5146b9=a56_0x2a9f,_0xd97e75=_0x399cec();while(!![]){try{const _0x16fa5e=parseInt(_0x5146b9(0x195))/0x1*(parseInt(_0x5146b9(0x1d3))/0x2)+parseInt(_0x5146b9(0x1e8))/0x3*(parseInt(_0x5146b9(0x19b))/0x4)+-parseInt(_0x5146b9(0x1d2))/0x5+parseInt(_0x5146b9(0x1dd))/0x6*(parseInt(_0x5146b9(0x1ff))/0x7)+parseInt(_0x5146b9(0x1b2))/0x8*(-parseInt(_0x5146b9(0x1a2))/0x9)+-parseInt(_0x5146b9(0x19e))/0xa+parseInt(_0x5146b9(0x1c4))/0xb*(parseInt(_0x5146b9(0x221))/0xc);if(_0x16fa5e===_0x4a3f64)break;else _0xd97e75['push'](_0xd97e75['shift']());}catch(_0x12ce8c){_0xd97e75['push'](_0xd97e75['shift']());}}}(a56_0x38b6,0xe296c));const path=require(a56_0x804b85(0x16c)),url=require(a56_0x804b85(0x20f)),util=require(a56_0x804b85(0x18d)),helper=require(a56_0x804b85(0x201)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a56_0x804b85(0x201)),{o11yErrorHandler}=require(a56_0x804b85(0x1c3)),{debug,getPlatformDetails}=require(a56_0x804b85(0x162)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a56_0x804b85(0x219)),{FRAMEWORKS}=require(a56_0x804b85(0x1b8)),logger=require('../../helpers/logger')['winstonLogger'],scripts=require(a56_0x804b85(0x218)),{browserStackExecuteDriver}=require(a56_0x804b85(0x1d0)),AccessibilityHelper=require(a56_0x804b85(0x1fc)),constants=require(a56_0x804b85(0x1bc)),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require(a56_0x804b85(0x18b)),HookState=require(a56_0x804b85(0x1a5)),{performScanWithRetry}=require(a56_0x804b85(0x188)),ClientTroubleShootingService=require('../utils/clientTroubleshootingService.js'),getBrowserNameFromChannel=_0x4f564f=>{const _0x4f4e64=a56_0x804b85,_0x15de70={};_0x15de70['DQPYS']=_0x4f4e64(0x1c2),_0x15de70[_0x4f4e64(0x1f0)]=_0x4f4e64(0x199),_0x15de70[_0x4f4e64(0x1ba)]=_0x4f4e64(0x187),_0x15de70[_0x4f4e64(0x197)]=_0x4f4e64(0x1c7),_0x15de70[_0x4f4e64(0x203)]=function(_0x45302d,_0x2c7e7f){return _0x45302d===_0x2c7e7f;},_0x15de70['bLENc']=_0x4f4e64(0x1b6),_0x15de70['vmWhM']=_0x4f4e64(0x1a7),_0x15de70[_0x4f4e64(0x17b)]=_0x4f4e64(0x1a3);const _0x281ae1=_0x15de70,_0x36a50f=_0x281ae1[_0x4f4e64(0x168)][_0x4f4e64(0x186)]('|');let _0x5c00ea=0x0;while(!![]){switch(_0x36a50f[_0x5c00ea++]){case'0':if(_0x4f564f[_0x4f4e64(0x16f)](_0x281ae1[_0x4f4e64(0x1f0)]))return _0x281ae1[_0x4f4e64(0x1f0)];continue;case'1':if(_0x4f564f[_0x4f4e64(0x16f)](_0x281ae1['xLXVT']))return _0x281ae1[_0x4f4e64(0x1ba)];continue;case'2':if(_0x4f564f['includes'](_0x281ae1[_0x4f4e64(0x197)]))return _0x281ae1['KkrDi'];continue;case'3':if(_0x281ae1['ZIMQZ'](_0x4f564f,_0x281ae1[_0x4f4e64(0x160)]))return _0x281ae1[_0x4f4e64(0x160)];continue;case'4':if(_0x4f564f[_0x4f4e64(0x16f)](_0x281ae1[_0x4f4e64(0x1c1)]))return _0x281ae1[_0x4f4e64(0x1c1)];continue;case'5':if(_0x4f564f[_0x4f4e64(0x16f)](_0x281ae1['QuVdh']))return _0x281ae1['QuVdh'];continue;}break;}},getBrowserFromWSEndpoint=_0x5a8708=>{const _0x21b406=a56_0x804b85,_0x19f775={'iVyLa':_0x21b406(0x187),'cAkMf':function(_0x55e6a9,_0x297bfb){return _0x55e6a9(_0x297bfb);}};try{const _0x1d0284=url[_0x21b406(0x1cd)](_0x5a8708),_0x3e4707=new URLSearchParams(_0x1d0284[_0x21b406(0x1a0)]),_0x2b4e2e=Object[_0x21b406(0x1a8)](_0x3e4707[_0x21b406(0x1b5)]()),_0x59381f=JSON[_0x21b406(0x1cd)](_0x2b4e2e['caps']);if(_0x59381f&&(_0x59381f[_0x21b406(0x20d)]||_0x59381f[_0x21b406(0x1d8)]))return _0x59381f['browser']||_0x59381f[_0x21b406(0x1d8)];return _0x19f775[_0x21b406(0x200)];}catch(_0x1b813d){_0x19f775[_0x21b406(0x1ab)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x1b813d[_0x21b406(0x1d5)]());}},getCloudProviderFromWsEndpoint=_0x5f08fd=>{const _0x7e06=a56_0x804b85,_0x1ab78f={};_0x1ab78f[_0x7e06(0x19d)]=_0x7e06(0x19c),_0x1ab78f[_0x7e06(0x192)]='unknown_grid';const _0x346dd7=_0x1ab78f;if(_0x5f08fd[_0x7e06(0x16f)](constants[_0x7e06(0x17f)])||_0x5f08fd[_0x7e06(0x16f)](constants[_0x7e06(0x15c)]))return _0x346dd7['WZBnE'];return _0x346dd7[_0x7e06(0x192)];},a56_0x3174eb={};a56_0x3174eb[a56_0x804b85(0x178)]=undefined,a56_0x3174eb['bsSessionId']=undefined,a56_0x3174eb[a56_0x804b85(0x20d)]=undefined,a56_0x3174eb[a56_0x804b85(0x216)]=undefined,a56_0x3174eb['platform']=undefined,a56_0x3174eb[a56_0x804b85(0x1fe)]=undefined,a56_0x3174eb['product']=undefined,a56_0x3174eb['capabilities']={};class PlaywrightSessionDetails{static ['currentSessionDetails']=a56_0x3174eb;constructor(){const _0x180381=a56_0x804b85,_0x5ecdf6={};_0x5ecdf6[_0x180381(0x17e)]=_0x180381(0x1e7);const _0x457aaf=_0x5ecdf6;throw new Error(_0x457aaf[_0x180381(0x17e)]);}static [a56_0x804b85(0x1ad)]=null;static[a56_0x804b85(0x211)](_0x160758,_0xde4986,_0x233678=null){const _0x2b5c1f=a56_0x804b85,_0x1a83b3={'jusED':function(_0x2317a6,_0xaa139c){return _0x2317a6===_0xaa139c;},'vXzcd':_0x2b5c1f(0x1e6),'MfrUZ':_0x2b5c1f(0x191),'IgBVF':'Device\x20Model\x20is\x20not\x20available','iJTYa':_0x2b5c1f(0x1a4),'oggkT':function(_0x323a55,_0x3c7c05,_0x4c1173){return _0x323a55(_0x3c7c05,_0x4c1173);},'KSDwy':_0x2b5c1f(0x20b),'AiQDj':_0x2b5c1f(0x174),'honKl':function(_0x48e23a,_0x4d376e,_0x15266f){return _0x48e23a(_0x4d376e,_0x15266f);},'Pjhie':_0x2b5c1f(0x19f),'xuugZ':_0x2b5c1f(0x204),'tfUkj':_0x2b5c1f(0x207),'GWYXT':function(_0x2fe07b,_0x433693){return _0x2fe07b(_0x433693);},'ixUPf':function(_0x221b4d,_0x40b239){return _0x221b4d===_0x40b239;},'NFgFH':_0x2b5c1f(0x19c),'LqpbV':'turboscale','bxYhz':_0x2b5c1f(0x163),'Xwlpf':function(_0x5e1243){return _0x5e1243();},'GlZNw':function(_0x281ee5,_0x59da9c){return _0x281ee5&&_0x59da9c;},'NQlxy':function(_0x53df16){return _0x53df16();},'ZwWaC':function(_0x535154){return _0x535154();},'duehn':function(_0x153d10,_0x3ae896){return _0x153d10(_0x3ae896);},'UIPuK':function(_0x5090a4,_0x508894){return _0x5090a4+_0x508894;},'vpbvR':_0x2b5c1f(0x1f5),'uIrbb':function(_0x1ec420){return _0x1ec420();},'frXnz':_0x2b5c1f(0x211)},_0x17499b=this;return _0x1a83b3[_0x2b5c1f(0x172)](o11yErrorHandler,async function _0x3a5243(_0x65c049,_0x19e152,_0x56c018=null){const _0x42424e=_0x2b5c1f;let _0x4a0207=_0x65c049[_0x42424e(0x1b0)],_0x2f581d=null;_0x65c049&&_0x1a83b3['jusED'](typeof _0x65c049['version'],_0x1a83b3[_0x42424e(0x1ee)])?_0x2f581d=_0x65c049['version']():logger[_0x42424e(0x158)](_0x1a83b3['MfrUZ']);let _0x29e0dc=null;_0x65c049&&_0x1a83b3[_0x42424e(0x208)](typeof _0x65c049[_0x42424e(0x1cf)],_0x1a83b3['vXzcd'])?_0x29e0dc=_0x65c049[_0x42424e(0x1cf)]():logger[_0x42424e(0x158)](_0x1a83b3['IgBVF']);let _0x40762b=null,_0x31c866=null,_0x28c151=null,_0x1ebb78=_0x1a83b3[_0x42424e(0x184)];if(_0x65c049['_connection']['isRemote']()||global[_0x42424e(0x171)]&&!process['env'][_0x42424e(0x16b)]){let _0x2befb4=null;_0x1a83b3[_0x42424e(0x21f)](nestedKeyValue,_0x65c049,[_0x1a83b3['KSDwy'],_0x1a83b3['AiQDj']])?_0x2befb4=_0x65c049['_browserType'][_0x42424e(0x174)]:_0x2befb4=_0x1a83b3[_0x42424e(0x172)](nestedKeyValue,_0x19e152,[_0x1a83b3[_0x42424e(0x175)],_0x1a83b3[_0x42424e(0x1e2)],_0x1a83b3[_0x42424e(0x1db)]]);const _0x2e0b14=_0x56c018||_0x2befb4&&_0x2befb4[_0x42424e(0x1b9)];if(_0x2e0b14){_0x1ebb78=_0x1a83b3[_0x42424e(0x15e)](getCloudProviderFromWsEndpoint,_0x2e0b14);if(_0x1a83b3[_0x42424e(0x1f1)](_0x1ebb78,_0x1a83b3['NFgFH']))_0x28c151=constants['ATS_WSS_URL_REGEX'][_0x42424e(0x213)](_0x2e0b14)?_0x1a83b3[_0x42424e(0x1c9)]:_0x1a83b3[_0x42424e(0x1df)],_0x4a0207=_0x1a83b3['GWYXT'](getBrowserFromWSEndpoint,_0x2e0b14)||_0x4a0207,_0x40762b=_0x17499b[_0x42424e(0x1bd)][_0x42424e(0x1cc)],_0x31c866=_0x17499b[_0x42424e(0x1bd)]['platform_version'];else{const _0x16a2ce=await _0x1a83b3[_0x42424e(0x161)](getPlatformDetails);_0x40762b=_0x16a2ce[_0x42424e(0x1da)],_0x31c866=_0x16a2ce[_0x42424e(0x1d6)];}}if(_0x1a83b3[_0x42424e(0x21a)](!_0x40762b,!_0x31c866)&&!_0x1a83b3[_0x42424e(0x1e0)](isBrowserstackInfra)){const _0x42102a=await _0x1a83b3[_0x42424e(0x17c)](getPlatformDetails);_0x40762b=_0x42102a[_0x42424e(0x1da)],_0x31c866=_0x42102a[_0x42424e(0x1d6)];}}else{_0x19e152&&_0x19e152[_0x42424e(0x19f)]['use'][_0x42424e(0x1c6)]?_0x4a0207=_0x1a83b3[_0x42424e(0x1ef)](getBrowserNameFromChannel,_0x19e152['project'][_0x42424e(0x204)][_0x42424e(0x1c6)]):_0x4a0207=_0x1a83b3['UIPuK'](_0x1a83b3[_0x42424e(0x1ae)],_0x4a0207['toLowerCase']());const _0x516765=await _0x1a83b3[_0x42424e(0x18e)](getPlatformDetails);_0x40762b=_0x516765[_0x42424e(0x1da)],_0x31c866=_0x516765[_0x42424e(0x1d6)];}const _0x3cc17d={};_0x3cc17d[_0x42424e(0x20d)]=_0x4a0207,_0x3cc17d[_0x42424e(0x216)]=_0x2f581d,_0x3cc17d[_0x42424e(0x1ce)]={},_0x3cc17d[_0x42424e(0x1cc)]=_0x40762b,_0x3cc17d['platform_version']=_0x31c866,_0x3cc17d[_0x42424e(0x1be)]=_0x28c151;const _0x50def1=_0x3cc17d;_0x29e0dc&&(_0x50def1[_0x42424e(0x1ce)]['deviceModel']=_0x29e0dc);const _0x6165fb={};_0x6165fb[_0x42424e(0x178)]=_0x1ebb78,_0x17499b[_0x42424e(0x1bd)]=Object['assign']({},_0x17499b[_0x42424e(0x1bd)],_0x6165fb,_0x50def1);},_0x1a83b3[_0x2b5c1f(0x166)])(_0x160758,_0xde4986,_0x233678);}static[a56_0x804b85(0x206)](){this['patchConnection'](),this['patchCRConnection']();}static['patchConnection'](){const _0x1b5064=a56_0x804b85,_0x530e95={'QzREv':function(_0xa006fd,_0x1d9db2,_0x3e3ed6){return _0xa006fd(_0x1d9db2,_0x3e3ed6);},'aFzDN':'currentTest','IidnR':_0x1b5064(0x215),'aCcBJ':'titlePath','oiwVo':function(_0x3b5b11,_0xf42cae,_0x29afea){return _0x3b5b11(_0xf42cae,_0x29afea);},'wQHaJ':_0x1b5064(0x194),'ywIOm':'pwPage','BwhPz':function(_0x3441e8,_0x2c263d,_0x3caf4e){return _0x3441e8(_0x2c263d,_0x3caf4e);},'TADKh':function(_0x3376dd,_0x6f740a){return _0x3376dd===_0x6f740a;},'XtFqP':_0x1b5064(0x159),'nvDwA':function(_0x473091,_0x4f6fcf,_0x1ebe6a,_0x1b63d8){return _0x473091(_0x4f6fcf,_0x1ebe6a,_0x1b63d8);},'jkIst':function(_0x2776f8,_0x4caa3c){return _0x2776f8||_0x4caa3c;},'EOgqM':function(_0x271c28,_0x18de40){return _0x271c28(_0x18de40);},'RQqRf':_0x1b5064(0x20e),'oBsOO':function(_0x225f84,_0x1421ff){return _0x225f84!=_0x1421ff;},'gDfbA':function(_0x155fce){return _0x155fce();},'YDjVI':_0x1b5064(0x1b1),'jdwpF':function(_0xc2cef9,_0x3b979b){return _0xc2cef9(_0x3b979b);},'HujBD':_0x1b5064(0x1d1),'oTpdm':_0x1b5064(0x1c5),'yalxE':function(_0x1b3c0d,_0x16fd13){return _0x1b3c0d(_0x16fd13);}},_0x45111e=this;!this[_0x1b5064(0x16e)]&&(this[_0x1b5064(0x16e)]=helper[_0x1b5064(0x190)](),!this['Connection']&&_0x530e95[_0x1b5064(0x17a)](debug,_0x530e95[_0x1b5064(0x1d9)]));const _0x2934a6=this[_0x1b5064(0x16e)];if(_0x530e95[_0x1b5064(0x177)](_0x2934a6,null)&&_0x2934a6[_0x1b5064(0x1ed)][_0x1b5064(0x1eb)])return;try{if(_0x530e95['oBsOO'](_0x2934a6,null)){const _0x59b214=_0x2934a6[_0x1b5064(0x1ed)]['dispatch'],_0x4eb2ef=_0x2934a6[_0x1b5064(0x1ed)]['sendMessageToServer'];_0x530e95[_0x1b5064(0x1fd)](isAccessibilityAutomationSession)&&Object['defineProperty'](_0x2934a6[_0x1b5064(0x1ed)],_0x530e95[_0x1b5064(0x173)],{'get':function(){return async function(){const _0x188f3c=a56_0x2a9f;try{if(!global['bstackPerformA11yScan']&&global[_0x188f3c(0x171)]&&_0x530e95['QzREv'](nestedKeyValue,global[_0x188f3c(0x194)],[_0x530e95[_0x188f3c(0x179)],_0x530e95['IidnR'],_0x530e95[_0x188f3c(0x169)]])&&_0x530e95['oiwVo'](shouldScanTestForAccessibility,global[_0x188f3c(0x194)][_0x188f3c(0x1ea)][_0x188f3c(0x215)]['titlePath'],!![])&&scripts[_0x188f3c(0x1b3)](arguments[0x1])){logger[_0x188f3c(0x158)](_0x188f3c(0x181)+arguments[0x1]),global[_0x188f3c(0x217)]=!![];const _0x1d9f14=_0x530e95[_0x188f3c(0x1fa)](nestedKeyValue,global,[_0x530e95['wQHaJ'],_0x530e95[_0x188f3c(0x183)]]);_0x1d9f14&&logger[_0x188f3c(0x1f8)](_0x188f3c(0x1af)+util[_0x188f3c(0x15f)](await _0x530e95['BwhPz'](performScanWithRetry,_0x1d9f14,arguments[0x1]))),_0x530e95[_0x188f3c(0x1f3)](arguments[0x0][_0x188f3c(0x1e1)],_0x530e95[_0x188f3c(0x18c)])&&global[_0x188f3c(0x15d)]&&logger['info'](_0x188f3c(0x1f6)+util['format'](await _0x530e95[_0x188f3c(0x1ca)](performScanWithRetry,global[_0x188f3c(0x15d)],arguments[0x1],scripts[_0x188f3c(0x16d)])));}}catch(_0x432a0a){logger[_0x188f3c(0x158)](_0x188f3c(0x1a9)+util['format'](_0x432a0a));}return global[_0x188f3c(0x217)]=![],_0x4eb2ef[_0x188f3c(0x1a1)](this,arguments);};}}),!_0x530e95[_0x1b5064(0x1e5)](isFalse,process[_0x1b5064(0x193)][_0x1b5064(0x180)])&&Object[_0x1b5064(0x21b)](_0x2934a6['prototype'],_0x530e95[_0x1b5064(0x1a6)],{'get':function(){return async function _0x4928fc(_0x334b6e){const _0x411f83=a56_0x2a9f;if(BrowserstackCLI[_0x411f83(0x167)]()[_0x411f83(0x196)]()){const _0x5eb91e={};_0x5eb91e[_0x411f83(0x1d4)]=_0x334b6e,await BrowserstackCLI[_0x411f83(0x167)]()[_0x411f83(0x164)]()[_0x411f83(0x1fb)](AutomationFrameworkState[_0x411f83(0x1cb)],HookState[_0x411f83(0x1c8)],_0x5eb91e);}else{const _0x4eaaa9=_0x334b6e&&_0x334b6e[_0x411f83(0x1f7)]&&_0x334b6e[_0x411f83(0x1f7)][_0x411f83(0x165)];if(_0x4eaaa9){const _0x480648=_0x4eaaa9['sessionId'],_0x5b7feb=_0x4eaaa9[_0x411f83(0x18a)];_0x530e95[_0x411f83(0x20a)](!_0x480648,!_0x5b7feb)&&await ClientTroubleShootingService['reportSessionLinkingIssue'](),_0x5b7feb&&(_0x530e95[_0x411f83(0x17a)](debug,_0x411f83(0x17d)+_0x5b7feb[_0x411f83(0x1d5)]()),_0x45111e['currentSessionDetails'][_0x411f83(0x1cc)]=_0x5b7feb[_0x411f83(0x1da)],_0x45111e[_0x411f83(0x1bd)][_0x411f83(0x1fe)]=_0x5b7feb[_0x411f83(0x1d6)]),_0x480648&&(_0x530e95[_0x411f83(0x17a)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x480648),_0x45111e[_0x411f83(0x1bd)][_0x411f83(0x19a)]=_0x480648);}}return _0x59b214[_0x411f83(0x1a1)](this,arguments);};}}),_0x2934a6['prototype'][_0x1b5064(0x1eb)]=!![],logger[_0x1b5064(0x158)](_0x530e95[_0x1b5064(0x1b4)]);}}catch(_0x2da841){_0x530e95[_0x1b5064(0x1c0)](debug,_0x1b5064(0x220)+_0x2da841),_0x45111e['sessionError']=_0x2da841['toString']();}}static[a56_0x804b85(0x1d7)](){const _0x1aa556=a56_0x804b85,_0x190a3e={'AJQia':function(_0x3ba894,_0x1782ff){return _0x3ba894(_0x1782ff);},'bSATE':function(_0xca1ad1,_0x217257){return _0xca1ad1(_0x217257);},'NPpzZ':function(_0x9adecc,_0x567004){return _0x9adecc(_0x567004);},'CYBsc':function(_0x2f86bf){return _0x2f86bf();},'nFdDT':function(_0x5b752a,_0xc75db8){return _0x5b752a>=_0xc75db8;},'YQdJG':_0x1aa556(0x210),'ofrQE':function(_0x38b6ab,_0x649544){return _0x38b6ab(_0x649544);},'LntDu':function(_0x4d0c21,_0x28b0aa){return _0x4d0c21(_0x28b0aa);},'vRtTX':_0x1aa556(0x21c),'EdSZi':_0x1aa556(0x1bf),'LiOZH':_0x1aa556(0x1e4),'FFqsV':_0x1aa556(0x1a3),'DsuUA':'crConnection.js','ZNRQB':'Not\x20able\x20to\x20import\x20crConnection','GUOtz':function(_0x3d4b4f,_0x43a919){return _0x3d4b4f(_0x43a919);},'eYjZI':_0x1aa556(0x1e9),'IBUXY':function(_0x2f373f,_0x1a884d){return _0x2f373f!=_0x1a884d;},'YzzvX':_0x1aa556(0x1b7),'dvZnu':function(_0x50d1df,_0xd096f4){return _0x50d1df(_0xd096f4);}},_0x371aaf=this;if(_0x190a3e['CYBsc'](isAccessibilityAutomationSession)){let _0x39b6d8=null,_0x417b4e=![];try{const _0x2f7eaf=helper[_0x1aa556(0x1f2)](FRAMEWORKS[_0x1aa556(0x170)]);_0x417b4e=_0x190a3e[_0x1aa556(0x1dc)](helper['compareVersions'](_0x2f7eaf,_0x190a3e[_0x1aa556(0x198)]),0x0);}catch(_0x9fdc0b){_0x190a3e[_0x1aa556(0x15a)](debug,_0x1aa556(0x189)+_0x9fdc0b[_0x1aa556(0x1d5)]());}if(_0x417b4e)_0x190a3e['LntDu'](debug,_0x190a3e[_0x1aa556(0x1ec)]);else try{const _0x164611=path['join'](_0x190a3e[_0x1aa556(0x214)],_0x190a3e[_0x1aa556(0x202)],_0x190a3e[_0x1aa556(0x20c)],_0x190a3e[_0x1aa556(0x176)]),_0x393320=_0x190a3e[_0x1aa556(0x21d)](importFileFromPWCore,_0x164611);!_0x393320?_0x190a3e[_0x1aa556(0x1de)](debug,_0x190a3e['ZNRQB']):_0x39b6d8=_0x393320[_0x1aa556(0x15b)];}catch(_0x1394b4){_0x190a3e[_0x1aa556(0x1e3)](debug,_0x190a3e[_0x1aa556(0x1f9)]);}try{if(_0x190a3e[_0x1aa556(0x205)](_0x39b6d8,null)){const _0x13c654=_0x39b6d8[_0x1aa556(0x1ed)][_0x1aa556(0x1b7)];Object[_0x1aa556(0x21b)](_0x39b6d8[_0x1aa556(0x1ed)],_0x190a3e[_0x1aa556(0x1bb)],{'get':function(){const _0x468871={'MdLFg':function(_0x5133bb,_0x26c6bf){const _0x293b8b=a56_0x2a9f;return _0x190a3e[_0x293b8b(0x21d)](_0x5133bb,_0x26c6bf);},'pZuyh':function(_0x33cbeb,_0x15086b){return _0x190a3e['bSATE'](_0x33cbeb,_0x15086b);},'rCVoR':function(_0x1654dc,_0x1073b5){const _0x18f100=a56_0x2a9f;return _0x190a3e[_0x18f100(0x212)](_0x1654dc,_0x1073b5);}};return async function _0x3de047(_0x291113){const _0x46e618=a56_0x2a9f;try{if(BrowserstackCLI[_0x46e618(0x167)]()['isRunning']()){const _0x193742={};_0x193742['message']=_0x291113,await BrowserstackCLI[_0x46e618(0x167)]()[_0x46e618(0x164)]()[_0x46e618(0x1fb)](AutomationFrameworkState[_0x46e618(0x1cb)],HookState[_0x46e618(0x1c8)],_0x193742),delete _0x291113[_0x46e618(0x185)];}else{const _0x15894a=_0x291113[_0x46e618(0x185)];if(_0x15894a){delete _0x291113[_0x46e618(0x185)];const _0x388729=_0x15894a[_0x46e618(0x182)],_0x3bf6c0=_0x15894a[_0x46e618(0x18a)];_0x3bf6c0&&(_0x468871[_0x46e618(0x16a)](debug,_0x46e618(0x18f)+_0x3bf6c0[_0x46e618(0x1d5)]()),_0x371aaf[_0x46e618(0x1bd)][_0x46e618(0x1cc)]=_0x3bf6c0[_0x46e618(0x1da)],_0x371aaf['currentSessionDetails'][_0x46e618(0x1fe)]=_0x3bf6c0[_0x46e618(0x1d6)]),_0x388729&&(_0x468871[_0x46e618(0x1ac)](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x388729),_0x371aaf['currentSessionDetails'][_0x46e618(0x19a)]=_0x388729);}}}catch(_0x4bfc51){_0x468871['rCVoR'](debug,_0x46e618(0x1f4)+_0x4bfc51[_0x46e618(0x1d5)]());}return _0x13c654[_0x46e618(0x1a1)](this,arguments);};}});}}catch(_0x37e74a){_0x190a3e['dvZnu'](debug,_0x1aa556(0x1aa)+_0x37e74a),_0x371aaf[_0x1aa556(0x1ad)]=_0x37e74a[_0x1aa556(0x1d5)]();}}}static[a56_0x804b85(0x21e)](){return this['currentSessionDetails'];}}module[a56_0x804b85(0x209)]=PlaywrightSessionDetails;function a56_0x38b6(){const _0x5ee069=['fromEntries','Failed\x20to\x20perform\x20scan\x20','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','cAkMf','pZuyh','sessionError','vpbvR','Page\x20Scan\x20result=','_name','sendMessageToServer','12122104bqCStb','shouldWrapCommand','oTpdm','entries','webkit','_onMessage','../../helpers/test-observability/constants','wsEndpoint','xLXVT','YzzvX','../utils/constants','currentSessionDetails','product','lib','yalxE','vmWhM','5|1|2|4|0|3','../../helpers/test-observability/error-handler','23452319JAFNXt','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','channel','edge','POST','LqpbV','nvDwA','PLAYWRIGHT_DISPATCH','platform','parse','capabilities','model','../../bin/playwright/accessibility-helper','dispatch','9127895SumzCO','2aEyzIF','message','toString','platformVersion','patchCRConnection','browserName','RQqRf','platformName','tfUkj','nFdDT','5082942oaEUqH','bSATE','bxYhz','NQlxy','_type','xuugZ','GUOtz','server','jdwpF','function','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','9VZohyi','Error\x20in\x20importing\x20crConnection','currentTest','_bstackDispatchPatched','vRtTX','prototype','vXzcd','duehn','aYdYL','ixUPf','getFrameworkVersion','TADKh','Error\x20in\x20finding\x20platform\x20details\x20','playwright-','Driver\x20Scan\x20result=','params','info','eYjZI','oiwVo','trackEvent','./accessibility-helper','gDfbA','platform_version','14UpYfFd','iVyLa','../../helpers/helper','LiOZH','ZIMQZ','use','IBUXY','patch','connectOptions','jusED','exports','jkIst','_browserType','FFqsV','browser','Not\x20able\x20to\x20resolve\x20Connection\x20class','url','1.60.0','setupBrowserDetails','NPpzZ','test','EdSZi','testInfo','browser_version','bstackPerformA11yScan','../../helpers/accessibility-automation/scripts','../../helpers/accessibility-automation/helper','GlZNw','defineProperty','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','AJQia','getDetails','oggkT','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','12DSfxEr','debug','Page','ofrQE','CRConnection','BSTACK_ATS_URL','__driver','GWYXT','format','bLENc','Xwlpf','../../helpers/test-observability/utils','automate','getAutomationFramework','bsParams','frXnz','getInstance','DQPYS','aCcBJ','MdLFg','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','path','performScan','Connection','includes','PLAYWRIGHT','accessibilityPlatform','honKl','YDjVI','_defaultConnectOptions','Pjhie','DsuUA','oBsOO','cloudProvider','aFzDN','EOgqM','QuVdh','ZwWaC','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','hqwDw','BSTACK_URL','BROWSERSTACK_TEST_OBSERVABILITY','Performing\x20scan\x20for\x20','sessionId','ywIOm','iJTYa','bStackParams','split','chrome','../../helpers/accessibility-automation/accessibilityRetryHelper.js','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','platformDetails','../v2/state/automationFrameworkState.js','XtFqP','util','uIrbb','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','resolveConnectionClass','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','Axjtm','env','__workerDetails','729896iQuaGW','isRunning','KkrDi','YQdJG','safari','bsSessionId','824884ZaKzrW','browserstack','WZBnE','9059520nHYfcd','project','query','apply','9tGoyyg','chromium','local_grid','../v2/state/hookState.js','HujBD','firefox'];a56_0x38b6=function(){return _0x5ee069;};return a56_0x38b6();}
|
|
1
|
+
function a56_0xef5d(_0x5d6ae9,_0xffb141){const _0x30cb8b=a56_0x30cb();return a56_0xef5d=function(_0xef5d09,_0x5a51fa){_0xef5d09=_0xef5d09-0xc2;let _0x42982c=_0x30cb8b[_0xef5d09];return _0x42982c;},a56_0xef5d(_0x5d6ae9,_0xffb141);}const a56_0x4f5722=a56_0xef5d;(function(_0x3c7aa4,_0x3845ba){const _0x52ae78=a56_0xef5d,_0x2d5dc6=_0x3c7aa4();while(!![]){try{const _0x22ebe7=-parseInt(_0x52ae78(0x139))/0x1+parseInt(_0x52ae78(0x184))/0x2*(parseInt(_0x52ae78(0x114))/0x3)+-parseInt(_0x52ae78(0x117))/0x4*(-parseInt(_0x52ae78(0x143))/0x5)+parseInt(_0x52ae78(0xda))/0x6+-parseInt(_0x52ae78(0xdb))/0x7*(parseInt(_0x52ae78(0x18b))/0x8)+parseInt(_0x52ae78(0xf9))/0x9*(parseInt(_0x52ae78(0x17b))/0xa)+-parseInt(_0x52ae78(0xd3))/0xb;if(_0x22ebe7===_0x3845ba)break;else _0x2d5dc6['push'](_0x2d5dc6['shift']());}catch(_0x12cf11){_0x2d5dc6['push'](_0x2d5dc6['shift']());}}}(a56_0x30cb,0x8cce3));const path=require(a56_0x4f5722(0x10b)),url=require(a56_0x4f5722(0xe9)),util=require(a56_0x4f5722(0x178)),helper=require(a56_0x4f5722(0x179)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a56_0x4f5722(0x179)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a56_0x4f5722(0x191)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),logger=require('../../helpers/logger')['winstonLogger'],scripts=require(a56_0x4f5722(0xd5)),{browserStackExecuteDriver}=require(a56_0x4f5722(0x12d)),AccessibilityHelper=require(a56_0x4f5722(0x17f)),constants=require(a56_0x4f5722(0x18f)),BrowserstackCLI=require(a56_0x4f5722(0x157)),AutomationFrameworkState=require(a56_0x4f5722(0xc6)),HookState=require(a56_0x4f5722(0x11e)),{performScanWithRetry}=require(a56_0x4f5722(0x13d)),ClientTroubleShootingService=require(a56_0x4f5722(0x136)),getBrowserNameFromChannel=_0x676e7a=>{const _0x4be523=a56_0x4f5722,_0x514b67={};_0x514b67[_0x4be523(0x151)]=_0x4be523(0x13e),_0x514b67[_0x4be523(0x129)]=_0x4be523(0x160),_0x514b67[_0x4be523(0x14b)]=_0x4be523(0xc3),_0x514b67[_0x4be523(0x171)]=_0x4be523(0x14d),_0x514b67['UxyBJ']=function(_0x2682c2,_0x465609){return _0x2682c2===_0x465609;},_0x514b67[_0x4be523(0x18c)]='webkit',_0x514b67['mYvPd']=_0x4be523(0x183),_0x514b67['SXZsB']=_0x4be523(0x103);const _0x6aab4e=_0x514b67,_0x34982=_0x6aab4e[_0x4be523(0x151)][_0x4be523(0xeb)]('|');let _0x7b6d10=0x0;while(!![]){switch(_0x34982[_0x7b6d10++]){case'0':if(_0x676e7a[_0x4be523(0x15d)](_0x6aab4e[_0x4be523(0x129)]))return _0x6aab4e[_0x4be523(0x129)];continue;case'1':if(_0x676e7a[_0x4be523(0x15d)](_0x6aab4e[_0x4be523(0x14b)]))return _0x6aab4e[_0x4be523(0x14b)];continue;case'2':if(_0x676e7a['includes'](_0x6aab4e['obNEU']))return _0x6aab4e[_0x4be523(0x171)];continue;case'3':if(_0x6aab4e['UxyBJ'](_0x676e7a,_0x6aab4e[_0x4be523(0x18c)]))return _0x6aab4e[_0x4be523(0x18c)];continue;case'4':if(_0x676e7a[_0x4be523(0x15d)](_0x6aab4e[_0x4be523(0xf5)]))return _0x6aab4e[_0x4be523(0xf5)];continue;case'5':if(_0x676e7a['includes'](_0x6aab4e['SXZsB']))return _0x6aab4e['SXZsB'];continue;}break;}},getBrowserFromWSEndpoint=_0x355aa7=>{const _0x154710=a56_0x4f5722,_0x3fd4b7={'raYvK':_0x154710(0xc3),'BYCKS':function(_0x486f01,_0x21e92f){return _0x486f01(_0x21e92f);}};try{const _0x5a53ad=url[_0x154710(0x108)](_0x355aa7),_0x3f8a09=new URLSearchParams(_0x5a53ad[_0x154710(0x10c)]),_0x352800=Object[_0x154710(0xd0)](_0x3f8a09[_0x154710(0x14e)]()),_0x58c7f2=JSON['parse'](_0x352800[_0x154710(0x180)]);if(_0x58c7f2&&(_0x58c7f2[_0x154710(0x13f)]||_0x58c7f2['browserName']))return _0x58c7f2[_0x154710(0x13f)]||_0x58c7f2[_0x154710(0x14c)];return _0x3fd4b7['raYvK'];}catch(_0x274b8c){_0x3fd4b7[_0x154710(0x15b)](debug,_0x154710(0xe7)+_0x274b8c[_0x154710(0x156)]());}},getCloudProviderFromWsEndpoint=_0x2b3804=>{const _0x478bcd=a56_0x4f5722,_0x326870={};_0x326870[_0x478bcd(0xd9)]=_0x478bcd(0x13b),_0x326870[_0x478bcd(0x15e)]=_0x478bcd(0x127);const _0x873527=_0x326870;if(_0x2b3804[_0x478bcd(0x15d)](constants['BSTACK_URL'])||_0x2b3804['includes'](constants[_0x478bcd(0x14f)]))return _0x873527[_0x478bcd(0xd9)];return _0x873527['eWxwP'];},a56_0x6b6f0={};a56_0x6b6f0[a56_0x4f5722(0x11f)]=undefined,a56_0x6b6f0['bsSessionId']=undefined,a56_0x6b6f0[a56_0x4f5722(0x13f)]=undefined,a56_0x6b6f0[a56_0x4f5722(0x131)]=undefined,a56_0x6b6f0[a56_0x4f5722(0x165)]=undefined,a56_0x6b6f0[a56_0x4f5722(0x17d)]=undefined,a56_0x6b6f0[a56_0x4f5722(0x104)]=undefined,a56_0x6b6f0[a56_0x4f5722(0xd8)]={};class PlaywrightSessionDetails{static [a56_0x4f5722(0xfa)]=a56_0x6b6f0;constructor(){const _0x4be9f0=a56_0x4f5722,_0x13fc06={};_0x13fc06[_0x4be9f0(0x111)]=_0x4be9f0(0x11b);const _0x18914c=_0x13fc06;throw new Error(_0x18914c[_0x4be9f0(0x111)]);}static [a56_0x4f5722(0xdd)]=null;static[a56_0x4f5722(0x164)](_0x5e75c7,_0x3b57db,_0x206fe8=null){const _0x4361ef=a56_0x4f5722,_0x3bde8e={'IUTsR':function(_0x149c2a,_0x2e65b0){return _0x149c2a===_0x2e65b0;},'wkTaD':'function','dBOjI':_0x4361ef(0xfd),'UcdHU':_0x4361ef(0xc5),'HAmSQ':_0x4361ef(0x124),'ePhAM':function(_0x3dd158,_0xc270ac,_0x23d56b){return _0x3dd158(_0xc270ac,_0x23d56b);},'gIYJa':_0x4361ef(0x112),'Bcxct':_0x4361ef(0x188),'PfRjX':function(_0x4f31d5,_0x21460c,_0x1856e4){return _0x4f31d5(_0x21460c,_0x1856e4);},'BhqjH':'project','PoGmS':_0x4361ef(0xff),'daWtX':_0x4361ef(0x107),'fpJyZ':function(_0x25542c,_0x1a1a54){return _0x25542c(_0x1a1a54);},'fQhIy':function(_0x195bc2,_0x7698d8){return _0x195bc2===_0x7698d8;},'oanVy':_0x4361ef(0x13b),'SkRTP':_0x4361ef(0xc2),'nuEZd':_0x4361ef(0xf8),'klecJ':function(_0x59286c,_0x2771af){return _0x59286c(_0x2771af);},'iklWG':function(_0x3314a7){return _0x3314a7();},'IAdyW':function(_0x14393b,_0x304426){return _0x14393b&&_0x304426;},'oJCjx':function(_0x1776a7){return _0x1776a7();},'PCLFz':function(_0x495539,_0xa17308){return _0x495539(_0xa17308);},'SbQcp':function(_0x232688,_0x472e41){return _0x232688+_0x472e41;},'DNWYF':_0x4361ef(0x18e),'OAxQr':_0x4361ef(0x164)},_0x153fd8=this;return _0x3bde8e[_0x4361ef(0x12e)](o11yErrorHandler,async function _0x22bb9d(_0x1b1b9f,_0x128274,_0x4dc410=null){const _0x478531=_0x4361ef;let _0x13c4b6=_0x1b1b9f[_0x478531(0x144)],_0xee44ab=null;_0x1b1b9f&&_0x3bde8e[_0x478531(0x122)](typeof _0x1b1b9f['version'],_0x3bde8e['wkTaD'])?_0xee44ab=_0x1b1b9f[_0x478531(0xd1)]():logger[_0x478531(0xea)](_0x3bde8e[_0x478531(0xd2)]);let _0x5a4479=null;_0x1b1b9f&&_0x3bde8e[_0x478531(0x122)](typeof _0x1b1b9f[_0x478531(0x125)],_0x3bde8e['wkTaD'])?_0x5a4479=_0x1b1b9f['model']():logger['debug'](_0x3bde8e['UcdHU']);let _0x767d0d=null,_0x32b6ff=null,_0x16b243=null,_0x3f8282=_0x3bde8e[_0x478531(0x173)];if(_0x1b1b9f['_connection']['isRemote']()||global[_0x478531(0x155)]&&!process[_0x478531(0x146)][_0x478531(0xca)]){let _0x4371ff=null;_0x3bde8e[_0x478531(0x12e)](nestedKeyValue,_0x1b1b9f,[_0x3bde8e[_0x478531(0x134)],_0x3bde8e[_0x478531(0x166)]])?_0x4371ff=_0x1b1b9f[_0x478531(0x112)][_0x478531(0x188)]:_0x4371ff=_0x3bde8e[_0x478531(0x17a)](nestedKeyValue,_0x128274,[_0x3bde8e[_0x478531(0xed)],_0x3bde8e[_0x478531(0x113)],_0x3bde8e[_0x478531(0xc8)]]);const _0x4fbb12=_0x4dc410||_0x4371ff&&_0x4371ff[_0x478531(0x154)];if(_0x4fbb12){_0x3f8282=_0x3bde8e[_0x478531(0xe8)](getCloudProviderFromWsEndpoint,_0x4fbb12);if(_0x3bde8e[_0x478531(0xe6)](_0x3f8282,_0x3bde8e[_0x478531(0x15a)]))_0x16b243=constants[_0x478531(0x137)][_0x478531(0x16a)](_0x4fbb12)?_0x3bde8e['SkRTP']:_0x3bde8e[_0x478531(0x105)],_0x13c4b6=_0x3bde8e[_0x478531(0xf0)](getBrowserFromWSEndpoint,_0x4fbb12)||_0x13c4b6,_0x767d0d=_0x153fd8[_0x478531(0xfa)][_0x478531(0x165)],_0x32b6ff=_0x153fd8[_0x478531(0xfa)]['platform_version'];else{const _0x1ec281=await _0x3bde8e[_0x478531(0x110)](getPlatformDetails);_0x767d0d=_0x1ec281[_0x478531(0x185)],_0x32b6ff=_0x1ec281[_0x478531(0x172)];}}if(_0x3bde8e[_0x478531(0xef)](!_0x767d0d,!_0x32b6ff)&&!_0x3bde8e['oJCjx'](isBrowserstackInfra)){const _0x30514e=await _0x3bde8e['iklWG'](getPlatformDetails);_0x767d0d=_0x30514e[_0x478531(0x185)],_0x32b6ff=_0x30514e['platformVersion'];}}else{_0x128274&&_0x128274[_0x478531(0x132)][_0x478531(0xff)][_0x478531(0xd6)]?_0x13c4b6=_0x3bde8e[_0x478531(0x163)](getBrowserNameFromChannel,_0x128274[_0x478531(0x132)][_0x478531(0xff)][_0x478531(0xd6)]):_0x13c4b6=_0x3bde8e[_0x478531(0x123)](_0x3bde8e[_0x478531(0xcf)],_0x13c4b6[_0x478531(0x145)]());const _0x29267f=await _0x3bde8e[_0x478531(0x110)](getPlatformDetails);_0x767d0d=_0x29267f[_0x478531(0x185)],_0x32b6ff=_0x29267f[_0x478531(0x172)];}const _0x3a1aac={};_0x3a1aac[_0x478531(0x13f)]=_0x13c4b6,_0x3a1aac[_0x478531(0x131)]=_0xee44ab,_0x3a1aac['capabilities']={},_0x3a1aac[_0x478531(0x165)]=_0x767d0d,_0x3a1aac[_0x478531(0x17d)]=_0x32b6ff,_0x3a1aac['product']=_0x16b243;const _0x17f715=_0x3a1aac;_0x5a4479&&(_0x17f715['capabilities'][_0x478531(0xe2)]=_0x5a4479);const _0x1a0a1a={};_0x1a0a1a['cloudProvider']=_0x3f8282,_0x153fd8['currentSessionDetails']=Object[_0x478531(0xe4)]({},_0x153fd8[_0x478531(0xfa)],_0x1a0a1a,_0x17f715);},_0x3bde8e[_0x4361ef(0xf7)])(_0x5e75c7,_0x3b57db,_0x206fe8);}static[a56_0x4f5722(0xc9)](){const _0x2dbb72=a56_0x4f5722;this[_0x2dbb72(0x102)](),this[_0x2dbb72(0x16b)]();}static[a56_0x4f5722(0x102)](){const _0x24186d=a56_0x4f5722,_0x35e548={'YonhK':function(_0x38268c,_0x5b813a,_0x49e7eb){return _0x38268c(_0x5b813a,_0x49e7eb);},'amzcE':'currentTest','nDsDR':_0x24186d(0xf1),'ZPTtt':_0x24186d(0x115),'OMnHl':function(_0x5cb421,_0x1ca1b3,_0x5996a5){return _0x5cb421(_0x1ca1b3,_0x5996a5);},'PojvK':_0x24186d(0xdc),'cqmJi':'pwPage','BNRnW':function(_0x564a19,_0x4f459a){return _0x564a19===_0x4f459a;},'IFMzI':_0x24186d(0xe0),'XSApq':function(_0x44381b,_0x52f34c,_0x574aae,_0x127bfd){return _0x44381b(_0x52f34c,_0x574aae,_0x127bfd);},'PmYcj':function(_0x4f47ed,_0x33b31c){return _0x4f47ed||_0x33b31c;},'amNnc':function(_0x113bb7,_0x533ada){return _0x113bb7(_0x533ada);},'AbbDM':'Not\x20able\x20to\x20resolve\x20Connection\x20class','hbjGk':function(_0x56f26a,_0x2fe347){return _0x56f26a!=_0x2fe347;},'UoBYu':function(_0x5374a5){return _0x5374a5();},'RCwWB':'sendMessageToServer','odtzf':function(_0x5e0f55,_0x1f3d93){return _0x5e0f55(_0x1f3d93);},'wSgrd':_0x24186d(0x100),'tPVVo':_0x24186d(0x17c),'jGCRo':function(_0xca6183,_0x4b38e5){return _0xca6183(_0x4b38e5);}},_0x175d4c=this;!this[_0x24186d(0xf3)]&&(this['Connection']=helper[_0x24186d(0x149)](),!this[_0x24186d(0xf3)]&&_0x35e548[_0x24186d(0x150)](debug,_0x35e548[_0x24186d(0x126)]));const _0x3fd538=this[_0x24186d(0xf3)];if(_0x35e548[_0x24186d(0x182)](_0x3fd538,null)&&_0x3fd538[_0x24186d(0x141)][_0x24186d(0x190)])return;try{if(_0x35e548[_0x24186d(0x182)](_0x3fd538,null)){const _0x4cea3a=_0x3fd538[_0x24186d(0x141)][_0x24186d(0x100)],_0x33cfcc=_0x3fd538[_0x24186d(0x141)][_0x24186d(0x135)];_0x35e548[_0x24186d(0x148)](isAccessibilityAutomationSession)&&Object[_0x24186d(0x169)](_0x3fd538[_0x24186d(0x141)],_0x35e548[_0x24186d(0xec)],{'get':function(){const _0x291200=_0x24186d,_0x4bb3ed={'yxxeG':function(_0xf3d9db,_0x3ad9e9,_0x1ef4a9){const _0x569cbc=a56_0xef5d;return _0x35e548[_0x569cbc(0x153)](_0xf3d9db,_0x3ad9e9,_0x1ef4a9);},'OzhDf':_0x35e548[_0x291200(0x16d)],'YpfPX':_0x35e548[_0x291200(0x176)],'jBWBB':_0x35e548[_0x291200(0xfc)],'JfylS':function(_0x4955f5,_0x1598f3,_0x569d88){return _0x35e548['OMnHl'](_0x4955f5,_0x1598f3,_0x569d88);},'ekDyO':_0x35e548[_0x291200(0xe5)],'zcjlM':_0x35e548[_0x291200(0x10d)],'tkPTZ':function(_0x514e74,_0x3a8b5f){const _0x558815=_0x291200;return _0x35e548[_0x558815(0x109)](_0x514e74,_0x3a8b5f);},'lRjyA':_0x35e548[_0x291200(0x11d)],'xVXqJ':function(_0x3a65e2,_0x5d0b3b,_0x5eb5e1,_0x1892ec){const _0x3ac0f7=_0x291200;return _0x35e548[_0x3ac0f7(0x186)](_0x3a65e2,_0x5d0b3b,_0x5eb5e1,_0x1892ec);}};return async function(){const _0x4738b7=_0x291200;try{if(!global[_0x4738b7(0x15f)]&&global[_0x4738b7(0x155)]&&_0x4bb3ed[_0x4738b7(0xc4)](nestedKeyValue,global['__workerDetails'],[_0x4bb3ed['OzhDf'],_0x4bb3ed[_0x4738b7(0x133)],_0x4bb3ed['jBWBB']])&&_0x4bb3ed['yxxeG'](shouldScanTestForAccessibility,global['__workerDetails'][_0x4738b7(0x130)][_0x4738b7(0xf1)][_0x4738b7(0x115)],!![])&&scripts[_0x4738b7(0x12a)](arguments[0x1])){logger[_0x4738b7(0xea)](_0x4738b7(0x13a)+arguments[0x1]),global['bstackPerformA11yScan']=!![];const _0x3ccea9=_0x4bb3ed[_0x4738b7(0xf6)](nestedKeyValue,global,[_0x4bb3ed[_0x4738b7(0x12c)],_0x4bb3ed[_0x4738b7(0x18d)]]);_0x3ccea9&&logger[_0x4738b7(0x16c)](_0x4738b7(0x177)+util[_0x4738b7(0xcd)](await _0x4bb3ed[_0x4738b7(0xc4)](performScanWithRetry,_0x3ccea9,arguments[0x1]))),_0x4bb3ed[_0x4738b7(0x181)](arguments[0x0][_0x4738b7(0x101)],_0x4bb3ed[_0x4738b7(0x128)])&&global[_0x4738b7(0xfe)]&&logger[_0x4738b7(0x16c)](_0x4738b7(0x10f)+util[_0x4738b7(0xcd)](await _0x4bb3ed['xVXqJ'](performScanWithRetry,global[_0x4738b7(0xfe)],arguments[0x1],scripts[_0x4738b7(0xfb)])));}}catch(_0x4213de){logger[_0x4738b7(0xea)](_0x4738b7(0x17e)+util[_0x4738b7(0xcd)](_0x4213de));}return global['bstackPerformA11yScan']=![],_0x33cfcc[_0x4738b7(0xde)](this,arguments);};}}),!_0x35e548[_0x24186d(0x15c)](isFalse,process[_0x24186d(0x146)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&Object[_0x24186d(0x169)](_0x3fd538[_0x24186d(0x141)],_0x35e548[_0x24186d(0x147)],{'get':function(){return async function _0x31c2f8(_0x13622f){const _0x4743b8=a56_0xef5d;if(BrowserstackCLI[_0x4743b8(0x12f)]()['isRunning']()){const _0x1e5e0d={};_0x1e5e0d[_0x4743b8(0xce)]=_0x13622f,await BrowserstackCLI[_0x4743b8(0x12f)]()[_0x4743b8(0x106)]()['trackEvent'](AutomationFrameworkState[_0x4743b8(0xe3)],HookState[_0x4743b8(0xcb)],_0x1e5e0d);}else{const _0x1dc174=_0x13622f&&_0x13622f[_0x4743b8(0xee)]&&_0x13622f[_0x4743b8(0xee)][_0x4743b8(0x174)];if(_0x1dc174){const _0x8369b3=_0x1dc174['sessionId'],_0x2e477e=_0x1dc174[_0x4743b8(0x167)];_0x35e548[_0x4743b8(0xe1)](!_0x8369b3,!_0x2e477e)&&await ClientTroubleShootingService[_0x4743b8(0x140)](),_0x2e477e&&(_0x35e548['amNnc'](debug,_0x4743b8(0x11c)+_0x2e477e[_0x4743b8(0x156)]()),_0x175d4c[_0x4743b8(0xfa)][_0x4743b8(0x165)]=_0x2e477e[_0x4743b8(0x185)],_0x175d4c[_0x4743b8(0xfa)][_0x4743b8(0x17d)]=_0x2e477e[_0x4743b8(0x172)]),_0x8369b3&&(_0x35e548['amNnc'](debug,_0x4743b8(0x120)+_0x8369b3),_0x175d4c[_0x4743b8(0xfa)][_0x4743b8(0xd4)]=_0x8369b3);}}return _0x4cea3a[_0x4743b8(0xde)](this,arguments);};}}),_0x3fd538[_0x24186d(0x141)]['_bstackDispatchPatched']=!![],logger[_0x24186d(0xea)](_0x35e548[_0x24186d(0x14a)]);}}catch(_0x1985cd){_0x35e548[_0x24186d(0x12b)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x1985cd),_0x175d4c[_0x24186d(0xdd)]=_0x1985cd[_0x24186d(0x156)]();}}static['patchCRConnection'](){const _0x1c0ea1=a56_0x4f5722,_0x478e3e={'SHHcy':function(_0x405e78,_0x3082d8){return _0x405e78(_0x3082d8);},'QDGHs':function(_0x1e0194,_0x26854f){return _0x1e0194(_0x26854f);},'nPchJ':function(_0x5e903a){return _0x5e903a();},'mXXvd':function(_0x3a410b,_0x2366b2){return _0x3a410b>=_0x2366b2;},'zpZJY':'1.60.0','qftIL':function(_0x29eb83,_0x30e1a8){return _0x29eb83(_0x30e1a8);},'yqdwH':_0x1c0ea1(0x13c),'wQiWk':'lib','hmkIc':_0x1c0ea1(0x175),'JqUCf':_0x1c0ea1(0x103),'haiIY':_0x1c0ea1(0x189),'Jixqz':function(_0x16617f,_0x3b07cf){return _0x16617f(_0x3b07cf);},'hDMaU':_0x1c0ea1(0x168),'vqQwl':function(_0x584c9b,_0x390577){return _0x584c9b(_0x390577);},'sNCce':_0x1c0ea1(0x152),'Hrtwx':function(_0x15fe3d,_0x1b4fef){return _0x15fe3d!=_0x1b4fef;},'EVGKO':_0x1c0ea1(0x159)},_0x20c05a=this;if(_0x478e3e['nPchJ'](isAccessibilityAutomationSession)){let _0x47369e=null,_0x4b86d1=![];try{const _0x338260=helper['getFrameworkVersion'](FRAMEWORKS[_0x1c0ea1(0x158)]);_0x4b86d1=_0x478e3e['mXXvd'](helper[_0x1c0ea1(0xdf)](_0x338260,_0x478e3e[_0x1c0ea1(0xc7)]),0x0);}catch(_0x5a37b4){_0x478e3e['SHHcy'](debug,'Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20'+_0x5a37b4[_0x1c0ea1(0x156)]());}if(_0x4b86d1)_0x478e3e['qftIL'](debug,_0x478e3e[_0x1c0ea1(0x162)]);else try{const _0x7b5ba4=path['join'](_0x478e3e[_0x1c0ea1(0x18a)],_0x478e3e['hmkIc'],_0x478e3e['JqUCf'],_0x478e3e[_0x1c0ea1(0x16f)]),_0x3e3c63=_0x478e3e[_0x1c0ea1(0x11a)](importFileFromPWCore,_0x7b5ba4);!_0x3e3c63?_0x478e3e[_0x1c0ea1(0x11a)](debug,_0x478e3e[_0x1c0ea1(0x170)]):_0x47369e=_0x3e3c63[_0x1c0ea1(0xf2)];}catch(_0xddc608){_0x478e3e[_0x1c0ea1(0x121)](debug,_0x478e3e['sNCce']);}try{if(_0x478e3e[_0x1c0ea1(0x161)](_0x47369e,null)){const _0x19c5d9=_0x47369e['prototype'][_0x1c0ea1(0x159)];Object[_0x1c0ea1(0x169)](_0x47369e['prototype'],_0x478e3e[_0x1c0ea1(0x10a)],{'get':function(){const _0xaf7b4d={'JbiZQ':function(_0x54f26a,_0x186d91){return _0x478e3e['SHHcy'](_0x54f26a,_0x186d91);},'wpBbC':function(_0x29a12b,_0x38249f){const _0x2b1261=a56_0xef5d;return _0x478e3e[_0x2b1261(0x116)](_0x29a12b,_0x38249f);},'uHABI':function(_0xb232c8,_0x24f14d){const _0x35aed9=a56_0xef5d;return _0x478e3e[_0x35aed9(0x16e)](_0xb232c8,_0x24f14d);}};return async function _0x4e3416(_0x37e654){const _0x5c96cf=a56_0xef5d;try{if(BrowserstackCLI[_0x5c96cf(0x12f)]()[_0x5c96cf(0xcc)]()){const _0x2e7d72={};_0x2e7d72[_0x5c96cf(0xce)]=_0x37e654,await BrowserstackCLI['getInstance']()[_0x5c96cf(0x106)]()[_0x5c96cf(0x10e)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState['POST'],_0x2e7d72),delete _0x37e654['bStackParams'];}else{const _0x47035d=_0x37e654[_0x5c96cf(0x187)];if(_0x47035d){delete _0x37e654['bStackParams'];const _0x1c57ed=_0x47035d['sessionId'],_0x2a9a6b=_0x47035d[_0x5c96cf(0x167)];_0x2a9a6b&&(_0xaf7b4d['JbiZQ'](debug,_0x5c96cf(0x142)+_0x2a9a6b[_0x5c96cf(0x156)]()),_0x20c05a['currentSessionDetails'][_0x5c96cf(0x165)]=_0x2a9a6b[_0x5c96cf(0x185)],_0x20c05a['currentSessionDetails']['platform_version']=_0x2a9a6b[_0x5c96cf(0x172)]),_0x1c57ed&&(_0xaf7b4d[_0x5c96cf(0x118)](debug,_0x5c96cf(0x138)+_0x1c57ed),_0x20c05a[_0x5c96cf(0xfa)][_0x5c96cf(0xd4)]=_0x1c57ed);}}}catch(_0x2b2daa){_0xaf7b4d['uHABI'](debug,'Error\x20in\x20finding\x20platform\x20details\x20'+_0x2b2daa[_0x5c96cf(0x156)]());}return _0x19c5d9['apply'](this,arguments);};}});}}catch(_0x23c61a){_0x478e3e[_0x1c0ea1(0x16e)](debug,_0x1c0ea1(0xd7)+_0x23c61a),_0x20c05a[_0x1c0ea1(0xdd)]=_0x23c61a[_0x1c0ea1(0x156)]();}}}static[a56_0x4f5722(0x119)](){return this['currentSessionDetails'];}}function a56_0x30cb(){const _0x2218fc=['BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','POST','isRunning','format','message','DNWYF','fromEntries','version','dBOjI','11287276PMSTjo','bsSessionId','../../helpers/accessibility-automation/scripts','channel','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','capabilities','DLGqs','6783246KbHkfm','329861NFqzdw','__workerDetails','sessionError','apply','compareVersions','Page','PmYcj','deviceModel','PLAYWRIGHT_DISPATCH','assign','PojvK','fQhIy','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','fpJyZ','url','debug','split','RCwWB','BhqjH','params','IAdyW','klecJ','testInfo','CRConnection','Connection','exports','mYvPd','JfylS','OAxQr','automate','2290779HPPinj','currentSessionDetails','performScan','ZPTtt','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','__driver','use','dispatch','_type','patchConnection','chromium','product','nuEZd','getAutomationFramework','connectOptions','parse','BNRnW','EVGKO','path','query','cqmJi','trackEvent','Driver\x20Scan\x20result=','iklWG','yXpyY','_browserType','PoGmS','214791FxudnP','titlePath','SHHcy','4rdZbiB','wpBbC','getDetails','Jixqz','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','IFMzI','../v2/state/hookState.js','cloudProvider','Setting\x20session\x20id\x20received\x20from\x20BS\x20','vqQwl','IUTsR','SbQcp','local_grid','model','AbbDM','unknown_grid','lRjyA','WxCEJ','shouldWrapCommand','jGCRo','ekDyO','../../bin/playwright/accessibility-helper','ePhAM','getInstance','currentTest','browser_version','project','YpfPX','gIYJa','sendMessageToServer','../utils/clientTroubleshootingService.js','ATS_WSS_URL_REGEX','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','609825KSLaZn','Performing\x20scan\x20for\x20','browserstack','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','../../helpers/accessibility-automation/accessibilityRetryHelper.js','5|1|0|4|2|3','browser','reportSessionLinkingIssue','prototype','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','4910005ChyDLX','_name','toLowerCase','env','wSgrd','UoBYu','resolveConnectionClass','tPVVo','ZdAnb','browserName','safari','entries','BSTACK_ATS_URL','amNnc','yyKRj','Error\x20in\x20importing\x20crConnection','YonhK','wsEndpoint','accessibilityPlatform','toString','../v2/browserstackCLI','PLAYWRIGHT','_onMessage','oanVy','BYCKS','odtzf','includes','eWxwP','bstackPerformA11yScan','edge','Hrtwx','yqdwH','PCLFz','setupBrowserDetails','platform','Bcxct','platformDetails','Not\x20able\x20to\x20import\x20crConnection','defineProperty','test','patchCRConnection','info','amzcE','QDGHs','haiIY','hDMaU','obNEU','platformVersion','HAmSQ','bsParams','server','nDsDR','Page\x20Scan\x20result=','util','../../helpers/helper','PfRjX','40OVrrjw','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','platform_version','Failed\x20to\x20perform\x20scan\x20','./accessibility-helper','caps','tkPTZ','hbjGk','firefox','2HIbppb','platformName','XSApq','bStackParams','_defaultConnectOptions','crConnection.js','wQiWk','168HERAIi','zOWcQ','zcjlM','playwright-','../utils/constants','_bstackDispatchPatched','../../helpers/accessibility-automation/helper','turboscale','chrome','yxxeG','Device\x20Model\x20is\x20not\x20available','../v2/state/automationFrameworkState.js','zpZJY','daWtX','patch'];a56_0x30cb=function(){return _0x2218fc;};return a56_0x30cb();}module[a56_0x4f5722(0xf4)]=PlaywrightSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a57_0x2d8c(_0x4bae7f,_0x2ae3cc){const _0x2c15e1=a57_0x2c15();return a57_0x2d8c=function(_0x2d8c09,_0xf2135a){_0x2d8c09=_0x2d8c09-0x7b;let _0x3e5600=_0x2c15e1[_0x2d8c09];return _0x3e5600;},a57_0x2d8c(_0x4bae7f,_0x2ae3cc);}const a57_0xe8dd48=a57_0x2d8c;function a57_0x2c15(){const _0x26689d=['../v2/customTagManager','../../helpers/performance/performance-tester','FfbIT','dLtPS','SYNC','farKG','bind','5159780UQOrDz','pkLrN','newPage','BROWSERSTACK_TEST_OBSERVABILITY','1739036IqqFUb','waTBh','isRunning','6249660PrWHZm','apply','573651SsEEoS','njBFK','4304877QFgbaO','8oToNBb','__workerDetails','../../helpers/logger','../../helpers/test-observability/error-handler','setCustomTags','30522DuUcHl','ybrkg','evaluate','patchBrowserNewPage','getInstance','1113cGbqNe','../v2/uploadAttachmentsManager','1049532mjLQHG','debug','browserstack_executor:\x20','Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20','_bstackNewPagePatched','pwPage'];a57_0x2c15=function(){return _0x26689d;};return a57_0x2c15();}(function(_0x422084,_0x1d2736){const _0xd5ad36=a57_0x2d8c,_0x435d4a=_0x422084();while(!![]){try{const _0xcfdbb1=parseInt(_0xd5ad36(0x98))/0x1+-parseInt(_0xd5ad36(0x84))/0x2+parseInt(_0xd5ad36(0x8b))/0x3+-parseInt(_0xd5ad36(0x80))/0x4+parseInt(_0xd5ad36(0x87))/0x5+parseInt(_0xd5ad36(0x91))/0x6*(-parseInt(_0xd5ad36(0x96))/0x7)+parseInt(_0xd5ad36(0x8c))/0x8*(parseInt(_0xd5ad36(0x89))/0x9);if(_0xcfdbb1===_0x1d2736)break;else _0x435d4a['push'](_0x435d4a['shift']());}catch(_0x1e2f48){_0x435d4a['push'](_0x435d4a['shift']());}}}(a57_0x2c15,0xca9aa));const util=require('util'),logger=require(a57_0xe8dd48(0x8e)),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{o11yErrorHandler}=require(a57_0xe8dd48(0x8f)),PerformanceTester=require(a57_0xe8dd48(0x9f)),{O11y_EVENTS:PerformanceO11yEvents}=require('../../helpers/performance/constants'),BrowserstackCLI=require('../v2/browserstackCLI'),CustomTagManager=require(a57_0xe8dd48(0x9e)),uploadAttachmentsManager=require(a57_0xe8dd48(0x97)),doo11ySync=PerformanceTester['measureWrapper'](PerformanceO11yEvents[a57_0xe8dd48(0x7d)],o11yErrorHandler(async function doo11ySync(_0x52d9e0){const _0x5dffe4=a57_0xe8dd48,_0x216329={'pkLrN':function(_0xc77ad8,_0x100856,_0x1b9ec0){return _0xc77ad8(_0x100856,_0x1b9ec0);},'ybrkg':'__workerDetails','farKG':'o11ySyncDone','FfbIT':'annotate','njBFK':_0x5dffe4(0x99)};if(_0x216329[_0x5dffe4(0x81)](nestedKeyValue,global,[_0x216329[_0x5dffe4(0x92)],_0x216329[_0x5dffe4(0x7e)]]))return;await _0x52d9e0[_0x5dffe4(0x93)](_0x5ac4d8=>{},_0x5dffe4(0x9a)+JSON['stringify']({'action':_0x216329[_0x5dffe4(0x7b)],'arguments':{'data':'ObservabilitySync:'+Date['now'](),'level':_0x216329[_0x5dffe4(0x8a)]}})),global[_0x5dffe4(0x8d)]['o11ySyncDone']=!![];},'doo11ySync'));exports[a57_0xe8dd48(0x94)]=_0x173bfc=>{const _0x4483c2=a57_0xe8dd48,_0x33d856={'dLtPS':function(_0x2edd85,_0x38af14){return _0x2edd85(_0x38af14);},'waTBh':function(_0x5a8cb0,_0x490c36,_0x4d0aeb){return _0x5a8cb0(_0x490c36,_0x4d0aeb);},'PxVXm':_0x4483c2(0x8d)};if(!_0x173bfc||_0x173bfc[_0x4483c2(0x9c)])return;const _0x4362de=_0x173bfc['newPage'][_0x4483c2(0x7f)](_0x173bfc);_0x173bfc[_0x4483c2(0x82)]=async function _0x4413b1(){const _0x28b4d4=_0x4483c2,_0x5f0ca3=await _0x4362de[_0x28b4d4(0x88)](_0x173bfc,arguments);try{!BrowserstackCLI[_0x28b4d4(0x95)]()['isRunning']()&&!_0x33d856[_0x28b4d4(0x7c)](isFalse,process['env'][_0x28b4d4(0x83)])&&await _0x33d856[_0x28b4d4(0x7c)](doo11ySync,_0x5f0ca3),BrowserstackCLI[_0x28b4d4(0x95)]()[_0x28b4d4(0x86)]()&&(_0x5f0ca3[_0x28b4d4(0x90)]=async(_0xeacbd7,_0x45556a,_0x524fe8=![])=>{await CustomTagManager['setCustomTags'](_0xeacbd7,_0x45556a,_0x524fe8);},_0x5f0ca3['uploadAttachment']=async(_0x55149d,_0x23429a=![])=>{await uploadAttachmentsManager['uploadAttachments'](_0x55149d,_0x23429a);});}catch(_0x2f0415){logger[_0x28b4d4(0x99)](_0x28b4d4(0x9b)+util['format'](_0x2f0415));}return _0x33d856[_0x28b4d4(0x85)](nestedKeyValue,global,[_0x33d856['PxVXm']])&&(global[_0x28b4d4(0x8d)][_0x28b4d4(0x9d)]=_0x5f0ca3),_0x5f0ca3;},_0x173bfc[_0x4483c2(0x9c)]=!![];};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a58_0x2364(_0x421def,_0x4b3162){const _0x5d37a3=a58_0x5d37();return a58_0x2364=function(_0x236423,_0x517efb){_0x236423=_0x236423-0x19a;let _0x5571b8=_0x5d37a3[_0x236423];return _0x5571b8;},a58_0x2364(_0x421def,_0x4b3162);}const a58_0xdc0aed=a58_0x2364;(function(_0x492e54,_0x5e514b){const _0x2ecf86=a58_0x2364,_0x35e739=_0x492e54();while(!![]){try{const _0x56e4c8=-parseInt(_0x2ecf86(0x1be))/0x1+-parseInt(_0x2ecf86(0x19e))/0x2*(-parseInt(_0x2ecf86(0x1cc))/0x3)+-parseInt(_0x2ecf86(0x1d2))/0x4*(parseInt(_0x2ecf86(0x1b4))/0x5)+parseInt(_0x2ecf86(0x1d0))/0x6+-parseInt(_0x2ecf86(0x19f))/0x7+parseInt(_0x2ecf86(0x1bd))/0x8+parseInt(_0x2ecf86(0x1ce))/0x9;if(_0x56e4c8===_0x5e514b)break;else _0x35e739['push'](_0x35e739['shift']());}catch(_0x143215){_0x35e739['push'](_0x35e739['shift']());}}}(a58_0x5d37,0xb533f));function a58_0x5d37(){const _0x152e20=['7242824BmkfFm','1222813oTXFtz','OspzJ','connection','bStackParams','../../helpers/test-observability/utils','includes','parse','trackEvent','BSTACK_URL','unknown_grid','lgrjl','YhMKR','ATS_WSS_URL_REGEX','FSZcg','3910656AiBCNC','SwvPD','55458ZWHncs','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','4157220WPzhxs','currentSessionDetails','16FFNEBL','PLAYWRIGHT_DISPATCH','turboscale','toString','getDetails','oFGsw','getInstance','assign','cloudProvider','format','Bmpmo','_connection','local_grid','stringify','platformVersion','params','BSTACK_ATS_URL','browser_version','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','../v2/state/automationFrameworkState.js','platformName','exports','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','yhViw','POST','query','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','test','url','browser','platform','../utils/constants','xINJq','hDOYA','string','RIwEz','result','kAvxw','capabilities','chrome','2WWtXYK','243747giZaXS','util','platform_version','entries','patchConnection','isRunning','winstonLogger','sessionError','getAutomationFramework','message','product','OuBgW','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','browserstack','UZLJc','bsParams','../v2/state/hookState.js','OfhBf','fromEntries','browserName','setupBrowserDetails','1135120FllcRM','qhVkm','onmessage','platformDetails','apply','Error\x20in\x20setupBrowserDetails:\x20','automate','Setting\x20session\x20id\x20received\x20from\x20BS\x20','../v2/browserstackCLI'];a58_0x5d37=function(){return _0x152e20;};return a58_0x5d37();}const path=require('path'),url=require(a58_0xdc0aed(0x1ee)),util=require(a58_0xdc0aed(0x1a0)),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{debug,getPlatformDetails}=require(a58_0xdc0aed(0x1c2)),logger=require('../../helpers/logger')[a58_0xdc0aed(0x1a5)],constants=require(a58_0xdc0aed(0x1f1)),BrowserstackCLI=require(a58_0xdc0aed(0x1bc)),AutomationFrameworkState=require(a58_0xdc0aed(0x1e5)),HookState=require(a58_0xdc0aed(0x1af)),getBrowserFromWSEndpoint=_0x2e8e81=>{const _0xf869b0=a58_0xdc0aed,_0x29de1c={'bAyyG':'chrome','yhViw':function(_0x4514f9,_0x7fb0a3){return _0x4514f9(_0x7fb0a3);}};try{const _0x136e0f=url['parse'](_0x2e8e81),_0x1a82a5=new URLSearchParams(_0x136e0f[_0xf869b0(0x1eb)]),_0x3c6c61=Object[_0xf869b0(0x1b1)](_0x1a82a5[_0xf869b0(0x1a2)]()),_0xe0a3c4=JSON[_0xf869b0(0x1c4)](_0x3c6c61['caps']);if(_0xe0a3c4&&(_0xe0a3c4[_0xf869b0(0x1ef)]||_0xe0a3c4[_0xf869b0(0x1b2)]))return _0xe0a3c4[_0xf869b0(0x1ef)]||_0xe0a3c4[_0xf869b0(0x1b2)];return _0x29de1c['bAyyG'];}catch(_0x2c9b54){_0x29de1c[_0xf869b0(0x1e9)](debug,_0xf869b0(0x1e4)+_0x2c9b54[_0xf869b0(0x1d5)]());}},getCloudProviderFromWsEndpoint=_0x343956=>{const _0x455cdd=a58_0xdc0aed,_0x361b9a={};_0x361b9a[_0x455cdd(0x1cd)]=_0x455cdd(0x1ac),_0x361b9a[_0x455cdd(0x1b5)]=_0x455cdd(0x1c7);const _0x32f9cb=_0x361b9a;if(_0x343956[_0x455cdd(0x1c3)](constants[_0x455cdd(0x1c6)])||_0x343956['includes'](constants[_0x455cdd(0x1e2)]))return _0x32f9cb[_0x455cdd(0x1cd)];return _0x32f9cb[_0x455cdd(0x1b5)];},a58_0x19ca8b={};a58_0x19ca8b[a58_0xdc0aed(0x1da)]=undefined,a58_0x19ca8b['bsSessionId']=undefined,a58_0x19ca8b[a58_0xdc0aed(0x1ef)]=undefined,a58_0x19ca8b[a58_0xdc0aed(0x1e3)]=undefined,a58_0x19ca8b[a58_0xdc0aed(0x1f0)]=undefined,a58_0x19ca8b[a58_0xdc0aed(0x1a1)]=undefined,a58_0x19ca8b['product']=undefined,a58_0x19ca8b[a58_0xdc0aed(0x19c)]={};class PuppeteerSessionDetails{static [a58_0xdc0aed(0x1d1)]=a58_0x19ca8b;constructor(){const _0x38d55f=a58_0xdc0aed,_0x1f38f8={};_0x1f38f8[_0x38d55f(0x1f2)]=_0x38d55f(0x1ec);const _0x319f91=_0x1f38f8;throw new Error(_0x319f91[_0x38d55f(0x1f2)]);}static [a58_0xdc0aed(0x1a6)]=null;static async[a58_0xdc0aed(0x1b3)](_0x504327,_0x548774){const _0x182153=a58_0xdc0aed,_0x210997={'RIwEz':_0x182153(0x19d),'OuBgW':function(_0x5bc1f4,_0xcc9ac5){return _0x5bc1f4===_0xcc9ac5;},'NWnbq':'function','hDOYA':_0x182153(0x1de),'FSZcg':function(_0x5ee171,_0x83dd12){return _0x5ee171(_0x83dd12);},'YhMKR':function(_0x4cd982,_0x37309c){return _0x4cd982===_0x37309c;},'OspzJ':_0x182153(0x1ac),'kAvxw':_0x182153(0x1d4),'lgrjl':_0x182153(0x1ba),'Bmpmo':function(_0x243493){return _0x243493();},'VsGWw':function(_0x564227){return _0x564227();},'mCzOs':function(_0x568583,_0x572264){return _0x568583(_0x572264);}};try{let _0x4ba967=_0x210997[_0x182153(0x1f5)],_0x25e7ac=null;_0x504327&&_0x210997[_0x182153(0x1aa)](typeof _0x504327['version'],_0x210997['NWnbq'])&&(_0x25e7ac=await _0x504327['version']());let _0x1a1409=null,_0x448758=null,_0x2354b0=null,_0x338805=_0x210997[_0x182153(0x1f3)];if(_0x548774){_0x338805=_0x210997[_0x182153(0x1cb)](getCloudProviderFromWsEndpoint,_0x548774);if(_0x210997[_0x182153(0x1c9)](_0x338805,_0x210997[_0x182153(0x1bf)]))_0x2354b0=constants['ATS_WSS_URL_REGEX']?constants[_0x182153(0x1ca)][_0x182153(0x1ed)](_0x548774)?_0x210997[_0x182153(0x19b)]:_0x210997[_0x182153(0x1c8)]:_0x210997[_0x182153(0x1c8)],_0x4ba967=_0x210997[_0x182153(0x1cb)](getBrowserFromWSEndpoint,_0x548774)||_0x4ba967,_0x1a1409=this[_0x182153(0x1d1)][_0x182153(0x1f0)],_0x448758=this[_0x182153(0x1d1)][_0x182153(0x1a1)];else{const _0xa736da=await _0x210997[_0x182153(0x1dc)](getPlatformDetails);_0x1a1409=_0xa736da['platformName'],_0x448758=_0xa736da[_0x182153(0x1e0)];}}else{const _0x2359dc=await _0x210997['VsGWw'](getPlatformDetails);_0x1a1409=_0x2359dc[_0x182153(0x1e6)],_0x448758=_0x2359dc[_0x182153(0x1e0)];}const _0x3d6874={};_0x3d6874[_0x182153(0x1ef)]=_0x4ba967,_0x3d6874[_0x182153(0x1e3)]=_0x25e7ac,_0x3d6874[_0x182153(0x19c)]={},_0x3d6874[_0x182153(0x1f0)]=_0x1a1409,_0x3d6874['platform_version']=_0x448758,_0x3d6874[_0x182153(0x1a9)]=_0x2354b0;const _0x78e517=_0x3d6874,_0x3e848c={};_0x3e848c['cloudProvider']=_0x338805,this[_0x182153(0x1d1)]=Object[_0x182153(0x1d9)]({},this[_0x182153(0x1d1)],_0x3e848c,_0x78e517);}catch(_0x225504){_0x210997['mCzOs'](debug,_0x182153(0x1b9)+util[_0x182153(0x1db)](_0x225504)),this[_0x182153(0x1a6)]=_0x225504['toString']();}}static[a58_0xdc0aed(0x1a3)](_0x307059){const _0x744663=a58_0xdc0aed,_0x28d5ad={'OfhBf':function(_0x11ef45,_0x474f97){return _0x11ef45===_0x474f97;},'UZLJc':_0x744663(0x1f4),'oFGsw':function(_0xb376ab,_0x2e62ac){return _0xb376ab(_0x2e62ac);},'CDzFL':_0x744663(0x1ab)},_0x46643e=this;try{const _0x1556ff=_0x307059[_0x744663(0x1dd)]||_0x307059[_0x744663(0x1c0)];if(!_0x1556ff||_0x1556ff['_bstackPatched'])return;const _0x516905=_0x1556ff[_0x744663(0x1b6)];_0x1556ff[_0x744663(0x1b6)]=function(_0x411c95){const _0x49a343=_0x744663;try{const _0x567000=_0x28d5ad[_0x49a343(0x1b0)](typeof _0x411c95,_0x28d5ad['UZLJc'])?JSON[_0x49a343(0x1c4)](_0x411c95):_0x411c95,_0x392fe6=_0x567000?.[_0x49a343(0x1c1)]||_0x567000?.[_0x49a343(0x1ae)]||_0x567000?.['params']?.['bsParams']||_0x567000?.['params']?.[_0x49a343(0x1c1)]||_0x567000?.[_0x49a343(0x19a)]?.[_0x49a343(0x1ae)]||_0x567000?.[_0x49a343(0x19a)]?.[_0x49a343(0x1c1)];if(_0x392fe6){if(BrowserstackCLI['getInstance']()[_0x49a343(0x1a4)]()){const _0x169aad={};_0x169aad[_0x49a343(0x1a8)]=_0x567000,BrowserstackCLI[_0x49a343(0x1d8)]()[_0x49a343(0x1a7)]()[_0x49a343(0x1c5)](AutomationFrameworkState[_0x49a343(0x1d3)],HookState[_0x49a343(0x1ea)],_0x169aad);}else{const _0x1de475=_0x392fe6['sessionId'],_0x1b0c71=_0x392fe6[_0x49a343(0x1b7)];_0x1b0c71&&(_0x28d5ad[_0x49a343(0x1d7)](debug,_0x49a343(0x1e8)+JSON[_0x49a343(0x1df)](_0x1b0c71)),_0x46643e[_0x49a343(0x1d1)]['platform']=_0x1b0c71[_0x49a343(0x1e6)],_0x46643e[_0x49a343(0x1d1)][_0x49a343(0x1a1)]=_0x1b0c71['platformVersion']),_0x1de475&&(_0x28d5ad[_0x49a343(0x1d7)](debug,_0x49a343(0x1bb)+_0x1de475),_0x46643e[_0x49a343(0x1d1)]['bsSessionId']=_0x1de475);}_0x28d5ad[_0x49a343(0x1b0)](typeof _0x411c95,_0x28d5ad[_0x49a343(0x1ad)])&&(delete _0x567000[_0x49a343(0x1c1)],delete _0x567000[_0x49a343(0x1ae)],_0x567000[_0x49a343(0x1e1)]&&(delete _0x567000[_0x49a343(0x1e1)][_0x49a343(0x1ae)],delete _0x567000[_0x49a343(0x1e1)][_0x49a343(0x1c1)]),_0x567000[_0x49a343(0x19a)]&&(delete _0x567000[_0x49a343(0x19a)][_0x49a343(0x1ae)],delete _0x567000[_0x49a343(0x19a)]['bStackParams']));}}catch(_0x3ec2b8){_0x28d5ad['oFGsw'](debug,_0x49a343(0x1cf)+_0x3ec2b8[_0x49a343(0x1a8)]);}return _0x516905?.[_0x49a343(0x1b8)](this,arguments);},_0x1556ff['_bstackPatched']=!![],logger['debug'](_0x28d5ad['CDzFL']);}catch(_0x1ecb99){_0x28d5ad[_0x744663(0x1d7)](debug,'Error\x20in\x20patchConnection:\x20'+util[_0x744663(0x1db)](_0x1ecb99)),_0x46643e[_0x744663(0x1a6)]=_0x1ecb99[_0x744663(0x1d5)]();}}static[a58_0xdc0aed(0x1d6)](){const _0x431bc2=a58_0xdc0aed;return this[_0x431bc2(0x1d1)];}}module[a58_0xdc0aed(0x1e7)]=PuppeteerSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a59_0x290f32=a59_0x144f;(function(_0x1ffad9,_0x853a80){const _0x40b65a=a59_0x144f,_0x9e8cfa=_0x1ffad9();while(!![]){try{const _0x5cd6a8=-parseInt(_0x40b65a(0x137))/0x1*(parseInt(_0x40b65a(0x145))/0x2)+-parseInt(_0x40b65a(0x123))/0x3*(parseInt(_0x40b65a(0x131))/0x4)+parseInt(_0x40b65a(0x147))/0x5+parseInt(_0x40b65a(0x134))/0x6*(parseInt(_0x40b65a(0x142))/0x7)+parseInt(_0x40b65a(0x13b))/0x8+parseInt(_0x40b65a(0x140))/0x9*(-parseInt(_0x40b65a(0x13e))/0xa)+-parseInt(_0x40b65a(0x126))/0xb;if(_0x5cd6a8===_0x853a80)break;else _0x9e8cfa['push'](_0x9e8cfa['shift']());}catch(_0x5f5277){_0x9e8cfa['push'](_0x9e8cfa['shift']());}}}(a59_0xe0e3,0xa11da));const {isTrue,isBrowserstackInfra}=require(a59_0x290f32(0x13c)),setKeepAlive=require(a59_0x290f32(0x11e)),util=require(a59_0x290f32(0x11b)),logger=require(a59_0x290f32(0x139))[a59_0x290f32(0x14a)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),{addRequestSpy}=require('../../helpers/test-observability/utils'),a59_0x1b0e6e={};function a59_0x144f(_0x1547f,_0x30d1ba){const _0xe0e383=a59_0xe0e3();return a59_0x144f=function(_0x144f42,_0x242096){_0x144f42=_0x144f42-0x119;let _0x23573c=_0xe0e383[_0x144f42];return _0x23573c;},a59_0x144f(_0x1547f,_0x30d1ba);}a59_0x1b0e6e[a59_0x290f32(0x125)]=undefined,a59_0x1b0e6e[a59_0x290f32(0x149)]={},a59_0x1b0e6e[a59_0x290f32(0x129)]=![],a59_0x1b0e6e[a59_0x290f32(0x143)]=null,a59_0x1b0e6e[a59_0x290f32(0x122)]=![],a59_0x1b0e6e[a59_0x290f32(0x149)]['id']=undefined,a59_0x1b0e6e[a59_0x290f32(0x149)]['testInfo']=undefined;function a59_0xe0e3(){const _0x40aa9b=['5054346LWmwBE','env','initializePuppeteerPatching','o11ySyncDone','format','__skipSessionName','puppeteer-core','getInstance','getPackageVersion','__skipSessionStatus','../utils/constants','4JRhShr','puppeteer','true','3138954bRLqYe','__workerDetails','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','223018Euqoze','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','../../helpers/logger','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','5844312eBiudV','../../helpers/helper','jestConfig','3758210ZvyMAy','BROWSERSTACK_PUPPETEER','9GEhUAQ','debug','14IBCyyU','pwPage','../v2/browserstackCLI','10ZyAQkk','../utils/puppeteer-patcher','5995075VZvpfV','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','currentTest','winstonLogger','setFrameworkDetail','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','util','isCliEnabled','bootstrap','../../helpers/setKeepAlive','skipSessionName','PUPPETEER','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','isPageFixture','1096635uTocgv','JEST','workerInfo'];a59_0xe0e3=function(){return _0x40aa9b;};return a59_0xe0e3();}const workerDetails=a59_0x1b0e6e;global[a59_0x290f32(0x135)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a59_0x290f32(0x12b)]=isTrue(global[a59_0x290f32(0x13d)]?.[a59_0x290f32(0x11f)]),global[a59_0x290f32(0x12f)]=isTrue(global[a59_0x290f32(0x13d)]?.['skipSessionStatus'])):(global['__skipSessionName']=!![],global[a59_0x290f32(0x12f)]=!![]);const helper=require(a59_0x290f32(0x13c)),puppeteerVersion=helper[a59_0x290f32(0x12e)](a59_0x290f32(0x132))||helper['getPackageVersion'](a59_0x290f32(0x12c));if(puppeteerVersion)try{logger[a59_0x290f32(0x141)](a59_0x290f32(0x11a)),puppeteerPatcher=require(a59_0x290f32(0x146)),puppeteerPatcher[a59_0x290f32(0x128)](global[a59_0x290f32(0x13d)]),logger[a59_0x290f32(0x141)]('[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized');}catch(a59_0x3282ed){logger['debug']('[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20'+util[a59_0x290f32(0x12a)](a59_0x3282ed));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a59_0x290f32(0x144)),CLIUtils=require('../v2/cliUtils'),{FRAMEWORKS}=require(a59_0x290f32(0x130));BrowserstackCLI[a59_0x290f32(0x12d)]()[a59_0x290f32(0x11c)]()&&(logger[a59_0x290f32(0x141)](a59_0x290f32(0x121)),process[a59_0x290f32(0x127)][a59_0x290f32(0x13f)]=a59_0x290f32(0x133),CLIUtils[a59_0x290f32(0x119)](FRAMEWORKS[a59_0x290f32(0x124)],FRAMEWORKS[a59_0x290f32(0x120)]),BrowserstackCLI[a59_0x290f32(0x12d)]()[a59_0x290f32(0x11d)]()['catch'](_0x20bc10=>{const _0xad3220=a59_0x290f32;logger[_0xad3220(0x141)](_0xad3220(0x13a)+util[_0xad3220(0x12a)](_0x20bc10));}));}catch(a59_0x1d07cd){logger[a59_0x290f32(0x141)](a59_0x290f32(0x148)+util[a59_0x290f32(0x12a)](a59_0x1d07cd));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a59_0x54bbc1){logger[a59_0x290f32(0x141)](a59_0x290f32(0x136)+util['format'](a59_0x54bbc1));}logger[a59_0x290f32(0x141)](a59_0x290f32(0x138));
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a60_0x11aa08=a60_0x1d01;(function(_0x29b4e1,_0xf0f35f){const _0x2b21cb=a60_0x1d01,_0x3587ba=_0x29b4e1();while(!![]){try{const _0x296b2e=parseInt(_0x2b21cb(0x1fd))/0x1*(-parseInt(_0x2b21cb(0x208))/0x2)+-parseInt(_0x2b21cb(0x20c))/0x3+parseInt(_0x2b21cb(0x254))/0x4+parseInt(_0x2b21cb(0x22e))/0x5*(parseInt(_0x2b21cb(0x210))/0x6)+parseInt(_0x2b21cb(0x253))/0x7*(-parseInt(_0x2b21cb(0x1ef))/0x8)+parseInt(_0x2b21cb(0x246))/0x9*(parseInt(_0x2b21cb(0x1d7))/0xa)+parseInt(_0x2b21cb(0x24c))/0xb;if(_0x296b2e===_0xf0f35f)break;else _0x3587ba['push'](_0x3587ba['shift']());}catch(_0x1957cf){_0x3587ba['push'](_0x3587ba['shift']());}}}(a60_0x39a3,0x7f4ba));const fs=require('fs'),path=require(a60_0x11aa08(0x269)),util=require(a60_0x11aa08(0x264)),spawn=require(a60_0x11aa08(0x25a))[a60_0x11aa08(0x1eb)],{requireModule}=require('../helpers/helper'),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a60_0x11aa08(0x24b))[a60_0x11aa08(0x267)],helper=require(a60_0x11aa08(0x1fa)),utilities=require(a60_0x11aa08(0x218)),{default:BrowserStackSetup}=require(a60_0x11aa08(0x1d8)),{FRAMEWORKS}=require(a60_0x11aa08(0x230)),runIntegrations=require(a60_0x11aa08(0x1ec)),yargs=require(a60_0x11aa08(0x239)),Constants=require('./utils/constants'),BrowserstackCLI=require(a60_0x11aa08(0x1fe)),{isNewman}=require('./newman/helper'),logger=require('../helpers/logger')[a60_0x11aa08(0x220)],origArgs=Object[a60_0x11aa08(0x219)]([],process[a60_0x11aa08(0x247)]),captureError=async(_0x2543ef,_0x5304c6,_0xa75649,_0x230883=null,_0x12041a=![])=>{const _0x1b9780=a60_0x11aa08,_0x2eabf3={'vYskJ':function(_0x2eee26,_0x216e63,_0x83ac2c,_0x5efc5c){return _0x2eee26(_0x216e63,_0x83ac2c,_0x5efc5c);},'hIMhd':_0x1b9780(0x20f)};try{logger[_0x1b9780(0x26d)](_0x1b9780(0x259)+origArgs[_0x1b9780(0x242)]('\x20')),await _0x2eabf3[_0x1b9780(0x1f3)](_0x2543ef,_0x5304c6,_0x230883,_0xa75649);}catch(_0x2cb4fb){process[_0x1b9780(0x1f4)]=0x1,logger[_0x1b9780(0x21c)](util[_0x1b9780(0x215)](_0x2cb4fb));const _0x542f00={'globalException':util['format']('%j',_0x2cb4fb)};PerformanceTester[_0x1b9780(0x1e6)](PerformanceEvents[_0x1b9780(0x271)],![],util[_0x1b9780(0x215)](_0x2cb4fb));if(helper['isUndefined'](global['config'])&&helper[_0x1b9780(0x276)](global[_0x1b9780(0x270)]))return;try{utilities['fireFunnelTestEvent'](_0x2eabf3['hIMhd'],_0x542f00,global[_0x1b9780(0x211)],global[_0x1b9780(0x270)]);}catch(_0x4262f6){logger[_0x1b9780(0x27a)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x4262f6[_0x1b9780(0x280)]);}try{await helper[_0x1b9780(0x27c)](global[_0x1b9780(0x211)]);}catch(_0x3dcc95){logger[_0x1b9780(0x27a)](_0x1b9780(0x1dd)+_0x3dcc95[_0x1b9780(0x280)]);}PerformanceTester[_0x1b9780(0x1e6)](PerformanceEvents[_0x1b9780(0x271)],![],util[_0x1b9780(0x215)](_0x2cb4fb));}finally{!_0x12041a&&await BrowserstackCLI[_0x1b9780(0x227)]()['stop'](),PerformanceTester[_0x1b9780(0x277)](PerformanceEvents[_0x1b9780(0x209)]);}};try{const browserstackFolderPath=path['join'](helper[a60_0x11aa08(0x238)](),a60_0x11aa08(0x275));if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a60_0x11aa08(0x242)](browserstackFolderPath,a60_0x11aa08(0x1ff));fs[a60_0x11aa08(0x1fb)](filePath)&&fs[a60_0x11aa08(0x260)](filePath);}}catch(a60_0x4b1a5c){logger[a60_0x11aa08(0x27a)]('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a60_0x4b1a5c[a60_0x11aa08(0x1e7)]);}function a60_0x1d01(_0x10236d,_0x49e2a7){const _0x39a31=a60_0x39a3();return a60_0x1d01=function(_0x1d015c,_0x3f6352){_0x1d015c=_0x1d015c-0x1d7;let _0x5d523d=_0x39a31[_0x1d015c];return _0x5d523d;},a60_0x1d01(_0x10236d,_0x49e2a7);}process[a60_0x11aa08(0x247)][a60_0x11aa08(0x26f)](a60_0x11aa08(0x236))&&(!process[a60_0x11aa08(0x247)][a60_0x11aa08(0x26f)](a60_0x11aa08(0x1f0))&&process[a60_0x11aa08(0x247)][a60_0x11aa08(0x1f1)](a60_0x11aa08(0x1e2)),!process[a60_0x11aa08(0x247)][a60_0x11aa08(0x25c)](_0x12fd0e=>_0x12fd0e[a60_0x11aa08(0x26f)](a60_0x11aa08(0x25f)))&&process[a60_0x11aa08(0x247)][a60_0x11aa08(0x1f1)](a60_0x11aa08(0x226)),!process[a60_0x11aa08(0x247)][a60_0x11aa08(0x26f)](a60_0x11aa08(0x1da))&&process[a60_0x11aa08(0x247)][a60_0x11aa08(0x1f1)](a60_0x11aa08(0x240)),helper['findAndReplace'](process[a60_0x11aa08(0x247)],'--require',a60_0x11aa08(0x1f5)));PerformanceTester[a60_0x11aa08(0x277)](PerformanceEvents[a60_0x11aa08(0x271)]);const a60_0xa74459={};a60_0xa74459[a60_0x11aa08(0x251)]=![];const argv=yargs[a60_0x11aa08(0x1e5)](a60_0xa74459)['usage']('usage:\x20$0\x20<command>\x20[args]')['alias']('v',a60_0x11aa08(0x257))['describe']('v')[a60_0x11aa08(0x266)]('h',a60_0x11aa08(0x207))[a60_0x11aa08(0x207)]('help')['showHelpOnFail'](!![],Constants[a60_0x11aa08(0x258)][a60_0x11aa08(0x23c)])[a60_0x11aa08(0x228)](a60_0x11aa08(0x231),Constants[a60_0x11aa08(0x22c)]['INFO'],function(_0x451dc6){const _0x53ce37=a60_0x11aa08,_0x8b700d={'Ntvde':'jest','Sauef':function(_0x43bd26,_0x515249,_0x3a55cd,_0x30170c,_0x49a5fd,_0x12a02c){return _0x43bd26(_0x515249,_0x3a55cd,_0x30170c,_0x49a5fd,_0x12a02c);},'AmKyI':function(_0x320813,_0x265a92){return _0x320813(_0x265a92);},'TBiJe':'./jest/command'},_0x275f43=process[_0x53ce37(0x247)][_0x53ce37(0x221)](0x2);helper[_0x53ce37(0x225)](),helper[_0x53ce37(0x1f6)](),_0x451dc6['strict'](![]);const _0x45efd5=new BrowserStackSetup(_0x451dc6['argv'],_0x8b700d[_0x53ce37(0x222)]);return _0x8b700d[_0x53ce37(0x273)](captureError,_0x8b700d['AmKyI'](require,_0x8b700d['TBiJe']),_0x451dc6[_0x53ce37(0x247)],_0x45efd5,_0x275f43,!![]);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x1e1),Constants[a60_0x11aa08(0x26b)][a60_0x11aa08(0x278)],function(_0x3abd10){const _0x3dc24a=a60_0x11aa08,_0x251fdc={'qgDnY':_0x3dc24a(0x1e1),'KKhye':function(_0xa86152,_0x596c03,_0x4db11b,_0x4c9bcb,_0x27f214,_0x4c03bd){return _0xa86152(_0x596c03,_0x4db11b,_0x4c9bcb,_0x27f214,_0x4c03bd);},'ZEKjZ':function(_0x1d1b1a,_0x2268ed){return _0x1d1b1a(_0x2268ed);},'VcOnn':_0x3dc24a(0x22d)},_0x392d9e=process['argv'][_0x3dc24a(0x221)](0x2);helper[_0x3dc24a(0x225)](),helper[_0x3dc24a(0x1f6)](),_0x3abd10[_0x3dc24a(0x213)](![]);const _0x5600f1=new BrowserStackSetup(_0x3abd10[_0x3dc24a(0x247)],_0x251fdc[_0x3dc24a(0x23f)]);return _0x251fdc[_0x3dc24a(0x1d9)](captureError,_0x251fdc[_0x3dc24a(0x1ea)](require,_0x251fdc[_0x3dc24a(0x26c)]),_0x3abd10[_0x3dc24a(0x247)],_0x5600f1,_0x392d9e,!![]);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x236),Constants[a60_0x11aa08(0x255)][a60_0x11aa08(0x278)],_0x49ccb9=>{const _0x5c7265=a60_0x11aa08,_0x44d426={'GEplw':function(_0x1da8b1,_0x356085,_0x133991,_0x1ee667){return _0x1da8b1(_0x356085,_0x133991,_0x1ee667);},'tsPRl':function(_0x5851d4,_0x87d03b){return _0x5851d4(_0x87d03b);},'qECjh':_0x5c7265(0x243),'egjGJ':_0x5c7265(0x236),'bEKum':_0x5c7265(0x214),'kRWMV':function(_0x3f8c89,_0x2661ba,_0x5aadd8){return _0x3f8c89(_0x2661ba,_0x5aadd8);},'zSUdr':_0x5c7265(0x26a),'OJXzC':_0x5c7265(0x249),'JdpRp':function(_0xf0cd56,_0x41c015,_0x4c15c6){return _0xf0cd56(_0x41c015,_0x4c15c6);},'hnXNi':'mocha/lib/cli/cli.js','FcfRQ':function(_0x21a941){return _0x21a941();}};process[_0x5c7265(0x247)]=process[_0x5c7265(0x247)][_0x5c7265(0x221)](0x1),helper['setTestObservabilityDisable'](),helper[_0x5c7265(0x1f6)]();const _0x241c11=new BrowserStackSetup(_0x49ccb9[_0x5c7265(0x247)],_0x44d426['egjGJ']);logger[_0x5c7265(0x27a)](_0x44d426[_0x5c7265(0x1f2)]);const _0x51b4a8=_0x44d426[_0x5c7265(0x223)](requireModule,_0x44d426[_0x5c7265(0x27f)],_0x44d426[_0x5c7265(0x21a)]),_0x1c748f=_0x44d426[_0x5c7265(0x223)](requireModule,_0x44d426['OJXzC'],_0x44d426[_0x5c7265(0x21a)]);delete _0x51b4a8['handler'],_0x51b4a8[_0x5c7265(0x272)]=function(_0x188184){const _0x3c540b=_0x5c7265;return _0x44d426[_0x3c540b(0x25d)](captureError,_0x44d426[_0x3c540b(0x24a)](require,_0x44d426[_0x3c540b(0x202)]),_0x188184,_0x241c11);},_0x1c748f['run']=_0x51b4a8;const {main:_0x314b37}=_0x44d426[_0x5c7265(0x27d)](requireModule,_0x44d426[_0x5c7265(0x22a)],_0x44d426[_0x5c7265(0x21a)]);_0x44d426['FcfRQ'](_0x314b37);})['command']('cucumber-js',Constants[a60_0x11aa08(0x22f)][a60_0x11aa08(0x278)],function(_0xedea6e){const _0x121b03=a60_0x11aa08,_0x57f90e={'vMJHQ':'cucumber-js','bXovU':function(_0x541ffd,_0x58a601,_0x31d36d,_0x4f40b1,_0x1d62d9,_0x32176e){return _0x541ffd(_0x58a601,_0x31d36d,_0x4f40b1,_0x1d62d9,_0x32176e);},'TLgZL':function(_0x301d4c,_0x586aa8){return _0x301d4c(_0x586aa8);},'QmoWr':_0x121b03(0x1de)},_0x39beaf=process[_0x121b03(0x247)][_0x121b03(0x221)](0x2),_0x187af2=new BrowserStackSetup(_0xedea6e[_0x121b03(0x247)],_0x57f90e[_0x121b03(0x244)]);return _0x57f90e['bXovU'](captureError,_0x57f90e['TLgZL'](require,_0x57f90e[_0x121b03(0x233)]),_0xedea6e[_0x121b03(0x247)],_0x187af2,_0x39beaf,!![]);})['command'](a60_0x11aa08(0x261),Constants[a60_0x11aa08(0x1e3)]['INFO'],function(_0x15b68e){const _0x37abdc=a60_0x11aa08,_0x1b342b={'azoQG':_0x37abdc(0x27b),'sfrDz':function(_0x11419b,_0x5c76a8){return _0x11419b(_0x5c76a8);},'YrfOh':'newman','DHqet':function(_0x54a0bd,_0x1fcecd,_0x3385e2,_0x24296b,_0x3fdbc7){return _0x54a0bd(_0x1fcecd,_0x3385e2,_0x24296b,_0x3fdbc7);},'vXVZL':function(_0x21cdb,_0x47bd23){return _0x21cdb(_0x47bd23);},'nTJqU':_0x37abdc(0x201),'ZYZNz':function(_0x5544dc,_0x49d5b1){return _0x5544dc(_0x49d5b1);},'jOXWU':_0x37abdc(0x23e)},_0x2b53fb=process[_0x37abdc(0x247)][_0x37abdc(0x221)](0x2),_0x1104d3=new BrowserStackSetup(_0x15b68e[_0x37abdc(0x247)],_0x1b342b[_0x37abdc(0x23a)]),_0xcb78f1=_0x1104d3?_0x1104d3[_0x37abdc(0x211)]:null;if(_0x1b342b[_0x37abdc(0x212)](isNewman,_0xcb78f1))return _0x1104d3[_0x37abdc(0x270)]=_0x1b342b[_0x37abdc(0x25e)],global[_0x37abdc(0x270)]=_0x1b342b[_0x37abdc(0x25e)],_0x1b342b['DHqet'](captureError,_0x1b342b['vXVZL'](require,_0x1b342b['nTJqU']),_0x15b68e[_0x37abdc(0x247)],_0x1104d3,_0x2b53fb);return _0x1b342b['DHqet'](captureError,_0x1b342b['ZYZNz'](require,_0x1b342b[_0x37abdc(0x1ed)]),_0x15b68e[_0x37abdc(0x247)],_0x1104d3,_0x2b53fb);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x268),Constants[a60_0x11aa08(0x1df)][a60_0x11aa08(0x278)],function(_0x378da3){const _0x1cdba9=a60_0x11aa08,_0x205117={'OtnEc':_0x1cdba9(0x268),'AoRQM':function(_0x99ccf5,_0x106aa0,_0x44314f,_0x65f360,_0x502e77){return _0x99ccf5(_0x106aa0,_0x44314f,_0x65f360,_0x502e77);},'jNYMC':function(_0x2a4cbe,_0xd50816){return _0x2a4cbe(_0xd50816);},'GDpjJ':'./nightwatch/command'},_0x3ef34d=process[_0x1cdba9(0x247)][_0x1cdba9(0x221)](0x2),_0xfd749b=new BrowserStackSetup(_0x378da3[_0x1cdba9(0x247)],_0x205117[_0x1cdba9(0x232)]);return _0x205117['AoRQM'](captureError,_0x205117['jNYMC'](require,_0x205117['GDpjJ']),_0x378da3[_0x1cdba9(0x247)],_0xfd749b,_0x3ef34d);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x23b),Constants[a60_0x11aa08(0x23d)][a60_0x11aa08(0x278)],function(_0x327a72){const _0xce8d43=a60_0x11aa08,_0x1e2877={'wukZS':_0xce8d43(0x23b),'yskwj':function(_0x21fafa,_0x45d175,_0x409835,_0x26df18,_0x52f652){return _0x21fafa(_0x45d175,_0x409835,_0x26df18,_0x52f652);},'ijQlx':function(_0x5f65fc,_0x3dd07d){return _0x5f65fc(_0x3dd07d);},'ylCzE':_0xce8d43(0x256)},_0x4da1e6=process[_0xce8d43(0x247)][_0xce8d43(0x221)](0x2),_0x4367ed=new BrowserStackSetup(_0x327a72[_0xce8d43(0x247)],_0x1e2877[_0xce8d43(0x20d)]);return _0x1e2877[_0xce8d43(0x1f7)](captureError,_0x1e2877['ijQlx'](require,_0x1e2877[_0xce8d43(0x274)]),_0x327a72[_0xce8d43(0x247)],_0x4367ed,_0x4da1e6);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x25b),Constants[a60_0x11aa08(0x252)][a60_0x11aa08(0x278)],function(_0x45bd49){const _0x45ec78=a60_0x11aa08,_0x3d76b8={'StLXI':function(_0x3336ef,_0x2ceb84,_0x257501){return _0x3336ef(_0x2ceb84,_0x257501);},'GlTkb':function(_0x787144,_0x44a336){return _0x787144(_0x44a336);},'kxERS':'../../ats/src/index'},_0x3c261f=process[_0x45ec78(0x247)][_0x45ec78(0x221)](0x2);return _0x3d76b8['StLXI'](captureError,_0x3d76b8[_0x45ec78(0x237)](require,_0x3d76b8[_0x45ec78(0x1dc)]),_0x45bd49);})['command'](a60_0x11aa08(0x206),Constants['INTEGRATIONS'][a60_0x11aa08(0x278)],function(_0x11baae){const _0x1dbb5d={'zgbdp':function(_0x5c998f,_0xd97a20){return _0x5c998f(_0xd97a20);}};return _0x1dbb5d['zgbdp'](runIntegrations,_0x11baae);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x234),Constants[a60_0x11aa08(0x250)][a60_0x11aa08(0x278)],function(_0x2163bc){const _0xa6343f=a60_0x11aa08,_0x58e6ba={'GqaYV':_0xa6343f(0x21e),'mNXDm':function(_0x49b9b9,_0x14473d){return _0x49b9b9&&_0x14473d;},'YjirM':function(_0x3f11ed,_0x3ebc62,_0x30f4f0,_0x5bd047,_0x2b29b4,_0x4af6fe){return _0x3f11ed(_0x3ebc62,_0x30f4f0,_0x5bd047,_0x2b29b4,_0x4af6fe);},'kmHQH':function(_0x541931,_0x34b6f0){return _0x541931(_0x34b6f0);},'pFxyc':_0xa6343f(0x1e4)},_0x2c9d85=process[_0xa6343f(0x247)][_0xa6343f(0x221)](0x2);helper[_0xa6343f(0x27e)](process[_0xa6343f(0x247)])&&(process[_0xa6343f(0x217)][_0xa6343f(0x224)]=helper[_0xa6343f(0x27e)](process[_0xa6343f(0x247)]));helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable']();const _0x448140=new BrowserStackSetup(_0x2163bc[_0xa6343f(0x247)],FRAMEWORKS[_0xa6343f(0x250)]);try{if(!_0x448140[_0xa6343f(0x211)]||!_0x448140[_0xa6343f(0x211)][_0xa6343f(0x1e9)]){const _0x101f41=_0x58e6ba[_0xa6343f(0x200)],_0x33f38f=process[_0xa6343f(0x217)][_0xa6343f(0x1e8)]||'',_0xbe7089=_0x33f38f['split'](',')['map'](_0x114df4=>_0x114df4['trim']())[_0xa6343f(0x203)](Boolean),_0x3826b7=_0xbe7089['some'](_0x57db0c=>_0x57db0c===_0xa6343f(0x1db)||_0x57db0c===_0xa6343f(0x22b)||_0x57db0c==='-*'),_0x2a0d30=_0xbe7089['some'](_0x40271d=>_0x40271d===_0x101f41||_0x40271d===_0xa6343f(0x262)||_0x40271d==='*');if(_0x58e6ba[_0xa6343f(0x21d)](!_0x3826b7,!_0x2a0d30)){const _0x4dcb94=helper['getPwChannelLogPath']();_0x4dcb94&&(process['env']['DEBUG']=_0x33f38f?_0x33f38f+','+_0x101f41:_0x101f41,!process[_0xa6343f(0x217)][_0xa6343f(0x204)]&&(process[_0xa6343f(0x217)][_0xa6343f(0x204)]=_0x4dcb94));}}}catch(_0x19d8d6){logger['debug'](_0xa6343f(0x245)+util[_0xa6343f(0x215)](_0x19d8d6));}return _0x58e6ba['YjirM'](captureError,_0x58e6ba[_0xa6343f(0x205)](require,_0x58e6ba['pFxyc']),_0x2163bc['argv'],_0x448140,_0x2c9d85,!![]);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x1ee),Constants['TESTCAFE'][a60_0x11aa08(0x278)],function(_0x20eec7){const _0x111bd5=a60_0x11aa08,_0x454d7d={'rHtOV':'testcafe','sptAM':function(_0x56235e,_0x5c43e9,_0x228619,_0xbd38d8,_0xcd2339,_0x2ef4ce){return _0x56235e(_0x5c43e9,_0x228619,_0xbd38d8,_0xcd2339,_0x2ef4ce);},'oXeEe':function(_0xd35b8c,_0x5e12fb){return _0xd35b8c(_0x5e12fb);},'ZlUQF':'./testcafe/command'},_0x4242e7=process[_0x111bd5(0x247)]['slice'](0x2),_0x17a21c=new BrowserStackSetup(_0x20eec7[_0x111bd5(0x247)],_0x454d7d[_0x111bd5(0x20b)]);return _0x454d7d[_0x111bd5(0x235)](captureError,_0x454d7d['oXeEe'](require,_0x454d7d[_0x111bd5(0x279)]),_0x20eec7['argv'],_0x17a21c,_0x4242e7,!![]);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x1f8),a60_0x11aa08(0x1e0),function(_0x13e543){const _0x2266fd=a60_0x11aa08,_0x2709f1={};_0x2709f1[_0x2266fd(0x216)]=_0x2266fd(0x207),_0x2709f1['vupMZ']=_0x2266fd(0x26e),_0x2709f1[_0x2266fd(0x21f)]=_0x2266fd(0x20a);const _0x6e99a4=_0x2709f1;return _0x13e543[_0x2266fd(0x207)](![])[_0x2266fd(0x1fc)](_0x6e99a4[_0x2266fd(0x216)],{'alias':'h','type':_0x6e99a4[_0x2266fd(0x1f9)],'describe':_0x6e99a4[_0x2266fd(0x21f)]})[_0x2266fd(0x213)](![])[_0x2266fd(0x241)](![]);},function(_0x290b37){const _0x5b5b78=a60_0x11aa08,_0x2af561={'rkaQe':function(_0x330f6f,_0x31299c,_0x99c993){return _0x330f6f(_0x31299c,_0x99c993);},'DrLqr':function(_0x308c2b,_0x199a51){return _0x308c2b(_0x199a51);},'HXPLm':_0x5b5b78(0x24d)},_0x2da727={};return _0x2da727[_0x5b5b78(0x247)]=_0x290b37,_0x2af561[_0x5b5b78(0x21b)](captureError,_0x2af561['DrLqr'](require,_0x2af561['HXPLm']),_0x2da727);})['command'](a60_0x11aa08(0x263),Constants[a60_0x11aa08(0x24f)][a60_0x11aa08(0x278)],function(_0x1f3d4e){const _0xf7f3ab=a60_0x11aa08,_0x7778cc={'AJENP':_0xf7f3ab(0x263),'RrIEh':function(_0x37ddad,_0x57c1ee,_0x396512,_0x190008,_0x40ad33){return _0x37ddad(_0x57c1ee,_0x396512,_0x190008,_0x40ad33);},'ZncEW':function(_0x1c50b6,_0x3f143d){return _0x1c50b6(_0x3f143d);},'ejIsi':'./newman/command'},_0x4ee0b2=process[_0xf7f3ab(0x247)][_0xf7f3ab(0x221)](0x2);helper[_0xf7f3ab(0x225)](),helper[_0xf7f3ab(0x1f6)](),_0x1f3d4e[_0xf7f3ab(0x213)](![]);const _0x231ea3=new BrowserStackSetup(_0x1f3d4e[_0xf7f3ab(0x247)],_0x7778cc[_0xf7f3ab(0x265)]);return _0x7778cc['RrIEh'](captureError,_0x7778cc[_0xf7f3ab(0x229)](require,_0x7778cc[_0xf7f3ab(0x24e)]),_0x1f3d4e[_0xf7f3ab(0x247)],_0x231ea3,_0x4ee0b2);})['demandCommand'](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a60_0x11aa08(0x20e)](null)[a60_0x11aa08(0x247)];function a60_0x39a3(){const _0xfedae1=['pw:*','newman','util','AJENP','alias','EVENTS','nightwatch','path','mocha/lib/cli/run.js','JASMINE','VcOnn','info','boolean','includes','framework','SDK_SETUP','handler','Sauef','ylCzE','.browserstack','isUndefined','start','INFO','ZlUQF','debug','vanilla','sendLogs','JdpRp','getConfigPath','zSUdr','stack','10VECalx','../helpers/BrowserStackSetup','KKhye','--package','-pw:channel','kxERS','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','./cucumber-js/command','NIGHTWATCH','Runs\x20the\x20binary\x20with\x20load\x20command','jasmine','--no-opts','VANILLA','./playwright/command','parserConfiguration','end','message','DEBUG','disableAutoCaptureLogs','ZEKjZ','spawn','./integrations/command','jOXWU','testcafe','2712616XjwuKk','--opts','push','bEKum','vYskJ','exitCode','--mochaRequire','setBrowserStackAutomationDisable','yskwj','load\x20[subcommand]','vupMZ','../helpers/helper','existsSync','option','514103jNYPdp','./v2/browserstackCLI','.local-not-set.json','GqaYV','./newman/command','qECjh','filter','DEBUG_FILE','kmHQH','integrations','help','2irKcQb','SDK_CLEANUP','Show\x20help','rHtOV','1296459bRIhZi','wukZS','wrap','SDKTestSuccessful','1938ngVByf','config','sfrDz','strict','Parsing\x20command\x20line\x20arguments','format','tbVYq','env','../helpers/utilities','assign','egjGJ','rkaQe','error','mNXDm','pw:channel','WNxHk','winstonLogger','slice','Ntvde','kRWMV','BROWSERSTACK_CONFIG_FILE_PATH','setTestObservabilityDisable','--no-config','getInstance','command','ZncEW','hnXNi','-pw:*','JEST','./jasmine/command','13765AqGnXU','CUCUMBER','../helpers/test-observability/constants','jest','OtnEc','QmoWr','playwright','sptAM','mocha','GlTkb','homedir','yargs','azoQG','codeceptjs','HELP','CODECEPTJS','./vanilla-js/command','qgDnY','--no-package','exitProcess','join','./mocha/command','vMJHQ','pw:channel\x20auto-capture\x20seed\x20failed:\x20','7742853SyKcIf','argv','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','mocha/lib/cli/commands.js','tsPRl','../helpers/performance/constants','7128473SqiOUh','./load/index','ejIsi','NEWMAN','PLAYWRIGHT','dot-notation','HST','21enrHzs','349240cdopWa','MOCHA','./codeceptjs/command','version','VERSION','Running\x20SDK\x20with\x20args\x20','child_process','ats','find','GEplw','YrfOh','--config','unlinkSync','node'];a60_0x39a3=function(){return _0xfedae1;};return a60_0x39a3();}!helper[a60_0x11aa08(0x276)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x11aa08(0x25b)&&console[a60_0x11aa08(0x21c)](a60_0x11aa08(0x248));
|
|
2
|
+
'use strict';const a60_0x51d78f=a60_0x4cbf;(function(_0x12b5d1,_0x10c866){const _0x19de91=a60_0x4cbf,_0x2e1ac3=_0x12b5d1();while(!![]){try{const _0x259400=parseInt(_0x19de91(0xcf))/0x1*(parseInt(_0x19de91(0xe5))/0x2)+parseInt(_0x19de91(0x10c))/0x3*(-parseInt(_0x19de91(0xe1))/0x4)+-parseInt(_0x19de91(0xd9))/0x5+parseInt(_0x19de91(0x118))/0x6*(parseInt(_0x19de91(0xfa))/0x7)+-parseInt(_0x19de91(0xb6))/0x8+parseInt(_0x19de91(0xec))/0x9*(parseInt(_0x19de91(0xd7))/0xa)+-parseInt(_0x19de91(0x91))/0xb*(-parseInt(_0x19de91(0x77))/0xc);if(_0x259400===_0x10c866)break;else _0x2e1ac3['push'](_0x2e1ac3['shift']());}catch(_0xe4b1ee){_0x2e1ac3['push'](_0x2e1ac3['shift']());}}}(a60_0x4756,0xc0550));const fs=require('fs'),path=require('path'),util=require(a60_0x51d78f(0x10d)),spawn=require('child_process')[a60_0x51d78f(0xb0)],{requireModule}=require(a60_0x51d78f(0x116)),PerformanceTester=require(a60_0x51d78f(0x76)),PerformanceEvents=require(a60_0x51d78f(0xd2))['EVENTS'],helper=require(a60_0x51d78f(0x116)),utilities=require(a60_0x51d78f(0x7a)),{default:BrowserStackSetup}=require(a60_0x51d78f(0x111)),{FRAMEWORKS}=require(a60_0x51d78f(0xa3)),runIntegrations=require('./integrations/command'),yargs=require(a60_0x51d78f(0x95)),Constants=require(a60_0x51d78f(0x96)),BrowserstackCLI=require('./v2/browserstackCLI'),{isNewman}=require('./newman/helper'),logger=require(a60_0x51d78f(0x8d))[a60_0x51d78f(0xd0)],origArgs=Object[a60_0x51d78f(0xb5)]([],process[a60_0x51d78f(0x8f)]),captureError=async(_0x955fcf,_0x32d1de,_0x44edba,_0x1effcd=null,_0xe517ae=![])=>{const _0x53b1d6=a60_0x51d78f,_0x4b5c9d={'LPAZG':function(_0x70c0b2,_0x499903,_0x433335,_0x15e147){return _0x70c0b2(_0x499903,_0x433335,_0x15e147);},'IUHVC':'SDKTestSuccessful'};try{logger[_0x53b1d6(0x8b)](_0x53b1d6(0x108)+origArgs['join']('\x20')),await _0x4b5c9d['LPAZG'](_0x955fcf,_0x32d1de,_0x1effcd,_0x44edba);}catch(_0x155139){process[_0x53b1d6(0xa1)]=0x1,logger[_0x53b1d6(0x90)](util['format'](_0x155139));const _0x410472={'globalException':util['format']('%j',_0x155139)};PerformanceTester[_0x53b1d6(0x109)](PerformanceEvents[_0x53b1d6(0x73)],![],util['format'](_0x155139));if(helper[_0x53b1d6(0xa5)](global[_0x53b1d6(0xf8)])&&helper[_0x53b1d6(0xa5)](global[_0x53b1d6(0xd6)]))return;try{utilities['fireFunnelTestEvent'](_0x4b5c9d[_0x53b1d6(0xbb)],_0x410472,global['config'],global[_0x53b1d6(0xd6)]);}catch(_0x1ce397){logger[_0x53b1d6(0x80)](_0x53b1d6(0xcb)+_0x1ce397[_0x53b1d6(0xac)]);}try{await helper[_0x53b1d6(0x78)](global[_0x53b1d6(0xf8)]);}catch(_0x3b5302){logger[_0x53b1d6(0x80)](_0x53b1d6(0x94)+_0x3b5302[_0x53b1d6(0xac)]);}PerformanceTester[_0x53b1d6(0x109)](PerformanceEvents[_0x53b1d6(0x73)],![],util[_0x53b1d6(0x7d)](_0x155139));}finally{!_0xe517ae&&await BrowserstackCLI['getInstance']()['stop'](),PerformanceTester[_0x53b1d6(0x81)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path['join'](helper[a60_0x51d78f(0x86)](),a60_0x51d78f(0xa7));if(fs[a60_0x51d78f(0x102)](browserstackFolderPath)){const filePath=path['join'](browserstackFolderPath,'.local-not-set.json');fs[a60_0x51d78f(0x102)](filePath)&&fs[a60_0x51d78f(0x92)](filePath);}}catch(a60_0x358a6d){logger[a60_0x51d78f(0x80)](a60_0x51d78f(0xae)+a60_0x358a6d[a60_0x51d78f(0xaf)]);}process[a60_0x51d78f(0x8f)]['includes'](a60_0x51d78f(0x105))&&(!process[a60_0x51d78f(0x8f)][a60_0x51d78f(0x8a)](a60_0x51d78f(0x71))&&process['argv']['push'](a60_0x51d78f(0xf4)),!process[a60_0x51d78f(0x8f)][a60_0x51d78f(0xef)](_0x664f93=>_0x664f93[a60_0x51d78f(0x8a)](a60_0x51d78f(0x85)))&&process[a60_0x51d78f(0x8f)][a60_0x51d78f(0x88)]('--no-config'),!process[a60_0x51d78f(0x8f)]['includes'](a60_0x51d78f(0xf0))&&process[a60_0x51d78f(0x8f)][a60_0x51d78f(0x88)](a60_0x51d78f(0xca)),helper[a60_0x51d78f(0x97)](process[a60_0x51d78f(0x8f)],a60_0x51d78f(0x74),a60_0x51d78f(0xb2)));PerformanceTester['start'](PerformanceEvents['SDK_SETUP']);const a60_0x4facb4={};a60_0x4facb4[a60_0x51d78f(0xcd)]=![];const argv=yargs[a60_0x51d78f(0xf2)](a60_0x4facb4)[a60_0x51d78f(0xf7)](a60_0x51d78f(0x9a))['alias']('v','version')[a60_0x51d78f(0xa6)]('v')[a60_0x51d78f(0xd4)]('h',a60_0x51d78f(0x87))['help']('help')[a60_0x51d78f(0x9b)](!![],Constants[a60_0x51d78f(0xde)]['HELP'])['command'](a60_0x51d78f(0x10a),Constants[a60_0x51d78f(0xb7)][a60_0x51d78f(0x6e)],function(_0x11fac6){const _0xcfd348=a60_0x51d78f,_0x559c11={'WaugA':'jest','KWVAn':function(_0x280625,_0x45a6c3,_0x469bf4,_0x2a2c27,_0x258d4f,_0x3a8a05){return _0x280625(_0x45a6c3,_0x469bf4,_0x2a2c27,_0x258d4f,_0x3a8a05);},'hWzTf':function(_0x292038,_0x4fc445){return _0x292038(_0x4fc445);},'rdmnQ':_0xcfd348(0xfd)},_0x56a878=process[_0xcfd348(0x8f)][_0xcfd348(0x93)](0x2);helper[_0xcfd348(0x10b)](),helper[_0xcfd348(0x115)](),_0x11fac6[_0xcfd348(0xc2)](![]);const _0xd60438=new BrowserStackSetup(_0x11fac6[_0xcfd348(0x8f)],_0x559c11['WaugA']);return _0x559c11[_0xcfd348(0x9e)](captureError,_0x559c11[_0xcfd348(0xbf)](require,_0x559c11[_0xcfd348(0xd1)]),_0x11fac6[_0xcfd348(0x8f)],_0xd60438,_0x56a878,!![]);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xee),Constants['JASMINE']['INFO'],function(_0xa86c3b){const _0x4e6bd7=a60_0x51d78f,_0x4a6b2d={'UcQvy':_0x4e6bd7(0xee),'VOHPQ':function(_0x4ba03b,_0x4cd113,_0x2553b6,_0xb38f52,_0x16079a,_0x451650){return _0x4ba03b(_0x4cd113,_0x2553b6,_0xb38f52,_0x16079a,_0x451650);},'dLjix':function(_0xda46a1,_0xf909b){return _0xda46a1(_0xf909b);},'NrMcE':_0x4e6bd7(0xa2)},_0xe7b763=process[_0x4e6bd7(0x8f)][_0x4e6bd7(0x93)](0x2);helper[_0x4e6bd7(0x10b)](),helper['setBrowserStackAutomationDisable'](),_0xa86c3b[_0x4e6bd7(0xc2)](![]);const _0x5b533f=new BrowserStackSetup(_0xa86c3b['argv'],_0x4a6b2d[_0x4e6bd7(0xc5)]);return _0x4a6b2d[_0x4e6bd7(0x8c)](captureError,_0x4a6b2d[_0x4e6bd7(0xe4)](require,_0x4a6b2d['NrMcE']),_0xa86c3b[_0x4e6bd7(0x8f)],_0x5b533f,_0xe7b763,!![]);})['command'](a60_0x51d78f(0x105),Constants[a60_0x51d78f(0x6f)][a60_0x51d78f(0x6e)],_0x5de1c5=>{const _0xbb9fb5=a60_0x51d78f,_0x1d569d={'xWyTj':function(_0x95b1e5,_0x4807da,_0x2230ef,_0x35355d){return _0x95b1e5(_0x4807da,_0x2230ef,_0x35355d);},'wcpfu':function(_0x336951,_0x3bd5a3){return _0x336951(_0x3bd5a3);},'mcNtk':'./mocha/command','YzWJV':'mocha','XNqUh':_0xbb9fb5(0xe9),'kTXrk':function(_0x39d742,_0x30112d,_0x3e7148){return _0x39d742(_0x30112d,_0x3e7148);},'yGuSD':'mocha/lib/cli/run.js','TtZXD':function(_0x45a37e,_0x3ef704,_0x4cb248){return _0x45a37e(_0x3ef704,_0x4cb248);},'Bizzw':_0xbb9fb5(0x89),'FYNXS':_0xbb9fb5(0x75),'vFSFe':function(_0xca70d3){return _0xca70d3();}};process['argv']=process[_0xbb9fb5(0x8f)]['slice'](0x1),helper[_0xbb9fb5(0x10b)](),helper[_0xbb9fb5(0x115)]();const _0x5606cf=new BrowserStackSetup(_0x5de1c5[_0xbb9fb5(0x8f)],_0x1d569d[_0xbb9fb5(0xa0)]);logger['debug'](_0x1d569d[_0xbb9fb5(0xed)]);const _0x2ecc65=_0x1d569d[_0xbb9fb5(0xc4)](requireModule,_0x1d569d[_0xbb9fb5(0xe3)],_0x1d569d['YzWJV']),_0x5b0a25=_0x1d569d[_0xbb9fb5(0x103)](requireModule,_0x1d569d['Bizzw'],_0x1d569d[_0xbb9fb5(0xa0)]);delete _0x2ecc65[_0xbb9fb5(0xc0)],_0x2ecc65[_0xbb9fb5(0xc0)]=function(_0x39e500){const _0x41b433=_0xbb9fb5;return _0x1d569d[_0x41b433(0xa8)](captureError,_0x1d569d[_0x41b433(0xab)](require,_0x1d569d[_0x41b433(0xb4)]),_0x39e500,_0x5606cf);},_0x5b0a25[_0xbb9fb5(0x101)]=_0x2ecc65;const {main:_0x17011}=_0x1d569d['TtZXD'](requireModule,_0x1d569d['FYNXS'],_0x1d569d['YzWJV']);_0x1d569d[_0xbb9fb5(0x7c)](_0x17011);})['command'](a60_0x51d78f(0xdf),Constants[a60_0x51d78f(0xea)]['INFO'],function(_0x1b580b){const _0x35071d=a60_0x51d78f,_0x5d396b={'NsDex':_0x35071d(0xdf),'QoPEj':function(_0x4b5574,_0x5625a2,_0x328ea6,_0x21e638,_0x397a85,_0x390e8f){return _0x4b5574(_0x5625a2,_0x328ea6,_0x21e638,_0x397a85,_0x390e8f);},'LLLtB':function(_0x30ab64,_0x30b4f5){return _0x30ab64(_0x30b4f5);},'YpBRQ':'./cucumber-js/command'},_0x40b0af=process[_0x35071d(0x8f)][_0x35071d(0x93)](0x2),_0x7e11c5=new BrowserStackSetup(_0x1b580b[_0x35071d(0x8f)],_0x5d396b[_0x35071d(0xf5)]);return _0x5d396b[_0x35071d(0xba)](captureError,_0x5d396b[_0x35071d(0xf3)](require,_0x5d396b['YpBRQ']),_0x1b580b[_0x35071d(0x8f)],_0x7e11c5,_0x40b0af,!![]);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xdb),Constants[a60_0x51d78f(0xda)][a60_0x51d78f(0x6e)],function(_0x35d40f){const _0x2eff84=a60_0x51d78f,_0x15fa9a={'GrCix':'vanilla','vrkUS':function(_0x191c4c,_0x45bbd0){return _0x191c4c(_0x45bbd0);},'XsPzy':_0x2eff84(0xb1),'KCbuL':function(_0x4b12b9,_0x588343,_0x4608b4,_0x3af628,_0x1150da){return _0x4b12b9(_0x588343,_0x4608b4,_0x3af628,_0x1150da);},'VfUMl':function(_0x311c9b,_0x2e1d36){return _0x311c9b(_0x2e1d36);},'JXHSD':_0x2eff84(0xdc),'WDstP':_0x2eff84(0xc7)},_0x230331=process[_0x2eff84(0x8f)][_0x2eff84(0x93)](0x2),_0xaeab8f=new BrowserStackSetup(_0x35d40f[_0x2eff84(0x8f)],_0x15fa9a['GrCix']),_0x5910d5=_0xaeab8f?_0xaeab8f['config']:null;if(_0x15fa9a[_0x2eff84(0x82)](isNewman,_0x5910d5))return _0xaeab8f[_0x2eff84(0xd6)]=_0x15fa9a[_0x2eff84(0xbd)],global[_0x2eff84(0xd6)]=_0x15fa9a['XsPzy'],_0x15fa9a['KCbuL'](captureError,_0x15fa9a['VfUMl'](require,_0x15fa9a[_0x2eff84(0xb3)]),_0x35d40f[_0x2eff84(0x8f)],_0xaeab8f,_0x230331);return _0x15fa9a['KCbuL'](captureError,_0x15fa9a[_0x2eff84(0x82)](require,_0x15fa9a[_0x2eff84(0x99)]),_0x35d40f['argv'],_0xaeab8f,_0x230331);})['command']('nightwatch',Constants[a60_0x51d78f(0xe2)][a60_0x51d78f(0x6e)],function(_0x2c0f9b){const _0x4d5116=a60_0x51d78f,_0x43a304={'Ohcjg':_0x4d5116(0x106),'StImF':function(_0xb2daf8,_0x3403ab,_0x1011ec,_0xef686d,_0x315737){return _0xb2daf8(_0x3403ab,_0x1011ec,_0xef686d,_0x315737);},'lBjka':function(_0x3defbc,_0x38ea78){return _0x3defbc(_0x38ea78);},'rFFhn':_0x4d5116(0x8e)},_0x25e817=process[_0x4d5116(0x8f)][_0x4d5116(0x93)](0x2),_0x915cf=new BrowserStackSetup(_0x2c0f9b[_0x4d5116(0x8f)],_0x43a304['Ohcjg']);return _0x43a304[_0x4d5116(0x107)](captureError,_0x43a304['lBjka'](require,_0x43a304[_0x4d5116(0xeb)]),_0x2c0f9b['argv'],_0x915cf,_0x25e817);})[a60_0x51d78f(0x9d)]('codeceptjs',Constants[a60_0x51d78f(0x9f)]['INFO'],function(_0x4ad14a){const _0x47e7dd=a60_0x51d78f,_0xaf56be={'pJIWB':_0x47e7dd(0xbc),'qKsMY':function(_0x97d204,_0x89faac,_0x3390fd,_0x193463,_0x390023){return _0x97d204(_0x89faac,_0x3390fd,_0x193463,_0x390023);},'MPRac':function(_0x5d34b0,_0x353f8d){return _0x5d34b0(_0x353f8d);},'damqM':_0x47e7dd(0xc3)},_0x3244a2=process[_0x47e7dd(0x8f)][_0x47e7dd(0x93)](0x2),_0x3f165b=new BrowserStackSetup(_0x4ad14a['argv'],_0xaf56be[_0x47e7dd(0xe6)]);return _0xaf56be[_0x47e7dd(0xfb)](captureError,_0xaf56be['MPRac'](require,_0xaf56be[_0x47e7dd(0x7e)]),_0x4ad14a[_0x47e7dd(0x8f)],_0x3f165b,_0x3244a2);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xd5),Constants['HST'][a60_0x51d78f(0x6e)],function(_0x1fd6f8){const _0x599c14=a60_0x51d78f,_0x52928e={'NzuUa':function(_0x1ac416,_0x43454e,_0x53cbf1){return _0x1ac416(_0x43454e,_0x53cbf1);},'pGCKg':function(_0x4a8f10,_0x5f52cf){return _0x4a8f10(_0x5f52cf);},'AIpCn':'../../ats/src/index'},_0x51f8db=process['argv']['slice'](0x2);return _0x52928e[_0x599c14(0x7f)](captureError,_0x52928e['pGCKg'](require,_0x52928e[_0x599c14(0xf9)]),_0x1fd6f8);})['command'](a60_0x51d78f(0x119),Constants[a60_0x51d78f(0x70)][a60_0x51d78f(0x6e)],function(_0x54838b){const _0x32cffe={'ouRLM':function(_0x5309d4,_0x1122d5){return _0x5309d4(_0x1122d5);}};return _0x32cffe['ouRLM'](runIntegrations,_0x54838b);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0x84),Constants[a60_0x51d78f(0xb8)][a60_0x51d78f(0x6e)],function(_0x2db04a){const _0x29e861=a60_0x51d78f,_0x2628b7={'QEmoj':_0x29e861(0xb9),'vbbMI':function(_0x1f2d8d,_0x5cb53c){return _0x1f2d8d&&_0x5cb53c;},'mcJRj':function(_0x316f04,_0x2b432c,_0x477fd4,_0x31f7b1,_0x1c3076,_0x3a1a41){return _0x316f04(_0x2b432c,_0x477fd4,_0x31f7b1,_0x1c3076,_0x3a1a41);},'frlCi':function(_0x4e5308,_0x16ebd5){return _0x4e5308(_0x16ebd5);},'pdMYi':_0x29e861(0x104)},_0x488a9b=process['argv'][_0x29e861(0x93)](0x2);helper[_0x29e861(0x83)](process[_0x29e861(0x8f)])&&(process[_0x29e861(0xa4)][_0x29e861(0xe7)]=helper[_0x29e861(0x83)](process[_0x29e861(0x8f)]));helper['setTestObservabilityDisable'](),helper[_0x29e861(0x115)]();const _0x393b20=new BrowserStackSetup(_0x2db04a[_0x29e861(0x8f)],FRAMEWORKS[_0x29e861(0xb8)]);try{if(!_0x393b20[_0x29e861(0xf8)]||!_0x393b20[_0x29e861(0xf8)][_0x29e861(0xdd)]){const _0xfb1ba7=_0x2628b7['QEmoj'],_0x54c5c4=process[_0x29e861(0xa4)]['DEBUG']||'',_0x3408f9=_0x54c5c4['split'](',')[_0x29e861(0xbe)](_0x2d67f2=>_0x2d67f2[_0x29e861(0x110)]())[_0x29e861(0x79)](Boolean),_0x183bbf=_0x3408f9[_0x29e861(0x113)](_0x429faf=>_0x429faf==='-pw:channel'||_0x429faf==='-pw:*'||_0x429faf==='-*'),_0x4ff87a=_0x3408f9['some'](_0x4bd348=>_0x4bd348===_0xfb1ba7||_0x4bd348===_0x29e861(0x100)||_0x4bd348==='*');if(_0x2628b7[_0x29e861(0x9c)](!_0x183bbf,!_0x4ff87a)){const _0xcd4a65=helper[_0x29e861(0xff)]();_0xcd4a65&&(process[_0x29e861(0xa4)]['DEBUG']=_0x54c5c4?_0x54c5c4+','+_0xfb1ba7:_0xfb1ba7,!process['env'][_0x29e861(0x7b)]&&(process[_0x29e861(0xa4)]['DEBUG_FILE']=_0xcd4a65));}}}catch(_0x26f4cf){logger[_0x29e861(0x80)](_0x29e861(0xc9)+util[_0x29e861(0x7d)](_0x26f4cf));}return _0x2628b7[_0x29e861(0x98)](captureError,_0x2628b7['frlCi'](require,_0x2628b7[_0x29e861(0xa9)]),_0x2db04a[_0x29e861(0x8f)],_0x393b20,_0x488a9b,!![]);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xe0),Constants[a60_0x51d78f(0xc6)][a60_0x51d78f(0x6e)],function(_0x2b8a80){const _0x3349a9=a60_0x51d78f,_0xc3502f={'WlLWj':'testcafe','DAgiU':function(_0x430e5c,_0x481aa8,_0x76f314,_0x2e691d,_0x5a3f1d,_0x2ef9db){return _0x430e5c(_0x481aa8,_0x76f314,_0x2e691d,_0x5a3f1d,_0x2ef9db);},'vFAZT':function(_0x9dfe3,_0x3b04eb){return _0x9dfe3(_0x3b04eb);},'bkpPw':_0x3349a9(0x112)},_0x524e66=process[_0x3349a9(0x8f)][_0x3349a9(0x93)](0x2),_0x55f956=new BrowserStackSetup(_0x2b8a80[_0x3349a9(0x8f)],_0xc3502f['WlLWj']);return _0xc3502f[_0x3349a9(0xd8)](captureError,_0xc3502f[_0x3349a9(0x11a)](require,_0xc3502f[_0x3349a9(0xc8)]),_0x2b8a80[_0x3349a9(0x8f)],_0x55f956,_0x524e66,!![]);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0x114),a60_0x51d78f(0xd3),function(_0x264862){const _0x47f5af=a60_0x51d78f,_0x24b1a9={};_0x24b1a9[_0x47f5af(0xce)]=_0x47f5af(0x87),_0x24b1a9[_0x47f5af(0xe8)]=_0x47f5af(0x117),_0x24b1a9['oJRfG']=_0x47f5af(0x10f);const _0xaf82f6=_0x24b1a9;return _0x264862['help'](![])[_0x47f5af(0xf1)](_0xaf82f6['QpsCx'],{'alias':'h','type':_0xaf82f6[_0x47f5af(0xe8)],'describe':_0xaf82f6['oJRfG']})[_0x47f5af(0xc2)](![])[_0x47f5af(0xc1)](![]);},function(_0x2cc8f0){const _0x473cb8=a60_0x51d78f,_0x3b0382={'WpwSV':function(_0x205f96,_0x19207f,_0x5bb3f2){return _0x205f96(_0x19207f,_0x5bb3f2);},'qhFzE':function(_0x3ea0db,_0x59c44e){return _0x3ea0db(_0x59c44e);},'rhwKV':_0x473cb8(0xad)},_0x4b042d={};return _0x4b042d['argv']=_0x2cc8f0,_0x3b0382['WpwSV'](captureError,_0x3b0382[_0x473cb8(0xf6)](require,_0x3b0382[_0x473cb8(0xcc)]),_0x4b042d);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xb1),Constants[a60_0x51d78f(0xaa)][a60_0x51d78f(0x6e)],function(_0x403ff6){const _0x4d4555=a60_0x51d78f,_0x990f03={'XCqBN':_0x4d4555(0xb1),'ykznC':function(_0xa0e277,_0x1722c6,_0x208d44,_0x3f1c3e,_0x12cfad){return _0xa0e277(_0x1722c6,_0x208d44,_0x3f1c3e,_0x12cfad);},'brUdT':function(_0x69a7c6,_0x14ac8c){return _0x69a7c6(_0x14ac8c);},'kzQgm':_0x4d4555(0xdc)},_0x4abfaf=process[_0x4d4555(0x8f)][_0x4d4555(0x93)](0x2);helper[_0x4d4555(0x10b)](),helper[_0x4d4555(0x115)](),_0x403ff6[_0x4d4555(0xc2)](![]);const _0x153ad1=new BrowserStackSetup(_0x403ff6[_0x4d4555(0x8f)],_0x990f03[_0x4d4555(0x72)]);return _0x990f03[_0x4d4555(0xfe)](captureError,_0x990f03['brUdT'](require,_0x990f03['kzQgm']),_0x403ff6['argv'],_0x153ad1,_0x4abfaf);})['demandCommand'](0x1,a60_0x51d78f(0xfc))['wrap'](null)[a60_0x51d78f(0x8f)];function a60_0x4cbf(_0x35bf0f,_0x4e49d6){const _0x475679=a60_0x4756();return a60_0x4cbf=function(_0x4cbf24,_0x3bd6c8){_0x4cbf24=_0x4cbf24-0x6e;let _0x49533c=_0x475679[_0x4cbf24];return _0x49533c;},a60_0x4cbf(_0x35bf0f,_0x4e49d6);}!helper[a60_0x51d78f(0xa5)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x51d78f(0xd5)&&console['error'](a60_0x51d78f(0x10e));function a60_0x4756(){const _0x2cc4d2=['existsSync','TtZXD','./playwright/command','mocha','nightwatch','StImF','Running\x20SDK\x20with\x20args\x20','end','jest','setTestObservabilityDisable','5727HpeIno','util','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','Show\x20help','trim','../helpers/BrowserStackSetup','./testcafe/command','some','load\x20[subcommand]','setBrowserStackAutomationDisable','../helpers/helper','boolean','5492334jOiUAJ','integrations','vFAZT','INFO','MOCHA','INTEGRATIONS','--opts','XCqBN','SDK_SETUP','--require','mocha/lib/cli/cli.js','../helpers/performance/performance-tester','38379204UDwKgE','sendLogs','filter','../helpers/utilities','DEBUG_FILE','vFSFe','format','damqM','NzuUa','debug','start','vrkUS','getConfigPath','playwright','--config','homedir','help','push','mocha/lib/cli/commands.js','includes','info','VOHPQ','../helpers/logger','./nightwatch/command','argv','error','11LLoZnY','unlinkSync','slice','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','yargs','./utils/constants','findAndReplace','mcJRj','WDstP','usage:\x20$0\x20<command>\x20[args]','showHelpOnFail','vbbMI','command','KWVAn','CODECEPTJS','YzWJV','exitCode','./jasmine/command','../helpers/test-observability/constants','env','isUndefined','describe','.browserstack','xWyTj','pdMYi','NEWMAN','wcpfu','stack','./load/index','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','message','spawn','newman','--mochaRequire','JXHSD','mcNtk','assign','11670712USPMnX','JEST','PLAYWRIGHT','pw:channel','QoPEj','IUHVC','codeceptjs','XsPzy','map','hWzTf','handler','exitProcess','strict','./codeceptjs/command','kTXrk','UcQvy','TESTCAFE','./vanilla-js/command','bkpPw','pw:channel\x20auto-capture\x20seed\x20failed:\x20','--no-package','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','rhwKV','dot-notation','QpsCx','2oQaDOG','winstonLogger','rdmnQ','../helpers/performance/constants','Runs\x20the\x20binary\x20with\x20load\x20command','alias','ats','framework','1040skEdnq','DAgiU','7520800pwFmyb','VANILLA','node','./newman/command','disableAutoCaptureLogs','VERSION','cucumber-js','testcafe','2476jzvFMM','NIGHTWATCH','yGuSD','dLjix','508782foroXn','pJIWB','BROWSERSTACK_CONFIG_FILE_PATH','onebm','Parsing\x20command\x20line\x20arguments','CUCUMBER','rFFhn','26829iuUcip','XNqUh','jasmine','find','--package','option','parserConfiguration','LLLtB','--no-opts','NsDex','qhFzE','usage','config','AIpCn','7OmfoPI','qKsMY','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','./jest/command','ykznC','getPwChannelLogPath','pw:*','run'];a60_0x4756=function(){return _0x2cc4d2;};return a60_0x4756();}
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a61_0x2d3b36=a61_0x9385;(function(_0x1e269c,_0x5e8c9d){const _0x533666=a61_0x9385,_0x529c7f=_0x1e269c();while(!![]){try{const _0x4d2495=parseInt(_0x533666(0xdf))/0x1+parseInt(_0x533666(0xab))/0x2+parseInt(_0x533666(0xc0))/0x3+parseInt(_0x533666(0xaa))/0x4*(parseInt(_0x533666(0xd1))/0x5)+-parseInt(_0x533666(0xc8))/0x6*(parseInt(_0x533666(0xe2))/0x7)+-parseInt(_0x533666(0xe8))/0x8+parseInt(_0x533666(0xba))/0x9*(-parseInt(_0x533666(0xea))/0xa);if(_0x4d2495===_0x5e8c9d)break;else _0x529c7f['push'](_0x529c7f['shift']());}catch(_0x6ce50e){_0x529c7f['push'](_0x529c7f['shift']());}}}(a61_0x3eac,0x40dd0));const fs=require('fs'),helper=require(a61_0x2d3b36(0xbd)),utilities=require(a61_0x2d3b36(0xb7)),yaml=require(a61_0x2d3b36(0xb3)),yargs=require(a61_0x2d3b36(0xd5)),logger=require('../helpers/logger')[a61_0x2d3b36(0xc6)],configFileTemplate=__dirname+a61_0x2d3b36(0xd3),configFileTemplatePW=__dirname+a61_0x2d3b36(0xb9),configFile=process[a61_0x2d3b36(0xdd)]()+a61_0x2d3b36(0xac),packageFile=process['cwd']()+a61_0x2d3b36(0xd9),frameworks=[a61_0x2d3b36(0xe9),a61_0x2d3b36(0xe1),'cucumber-js','node','nightwatch',a61_0x2d3b36(0xe4),'playwright'];let config;logger[a61_0x2d3b36(0xd7)](a61_0x2d3b36(0xb4)),createConfigurationFile(yargs[a61_0x2d3b36(0xce)]['username'],yargs['argv'][a61_0x2d3b36(0xd4)],yargs[a61_0x2d3b36(0xce)]['playwright']);try{sdkSetup();}catch(a61_0x2933d4){logger['debug']('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+a61_0x2933d4);}addScriptInPackageJson();function createConfigurationFile(_0x267a05,_0x258265,_0x423237=![]){const _0x46aeac=a61_0x2d3b36,_0x3022c5={};_0x3022c5[_0x46aeac(0xc5)]='utf8',_0x3022c5[_0x46aeac(0xd6)]='YOUR_USERNAME',_0x3022c5[_0x46aeac(0xc9)]='YOUR_ACCESS_KEY';const _0x328585=_0x3022c5;try{let _0x286588=fs['readFileSync'](_0x423237?configFileTemplatePW:configFileTemplate,_0x328585[_0x46aeac(0xc5)]);_0x267a05&&(_0x286588=_0x286588['replace'](_0x328585['ffFrs'],_0x267a05)),_0x258265&&(_0x286588=_0x286588['replace'](_0x328585[_0x46aeac(0xc9)],_0x258265)),config=yaml[_0x46aeac(0xb1)](_0x286588),fs['writeFileSync'](configFile,_0x286588,_0x2ae9d4=>{const _0x458269=_0x46aeac;_0x2ae9d4&&logger[_0x458269(0xd2)](_0x2ae9d4);});}catch(_0x48dbf2){logger['error'](_0x48dbf2);}}function addPostInstallScript(_0x311a22,_0x460d2f){const _0x1a06fe=a61_0x2d3b36,_0x2f5d8c={};_0x2f5d8c['dKDWk']=_0x1a06fe(0xbb),_0x2f5d8c[_0x1a06fe(0xeb)]=_0x1a06fe(0xed),_0x2f5d8c[_0x1a06fe(0xb6)]=_0x1a06fe(0xc2);const _0x42b1a2=_0x2f5d8c;let _0x3d4f22=_0x311a22[_0x42b1a2[_0x1a06fe(0xcf)]];if(_0x3d4f22&&_0x3d4f22[_0x1a06fe(0xe5)](_0x42b1a2['xXVAj']))return;!_0x3d4f22?_0x3d4f22=_0x42b1a2[_0x1a06fe(0xeb)]:_0x3d4f22+=_0x42b1a2['hZJib'],_0x460d2f[_0x1a06fe(0xa9)]([_0x42b1a2[_0x1a06fe(0xcf)],_0x3d4f22]);}function a61_0x9385(_0x59f98d,_0x1ea912){const _0x3eac25=a61_0x3eac();return a61_0x9385=function(_0x938576,_0x3c172f){_0x938576=_0x938576-0xa6;let _0x51070b=_0x3eac25[_0x938576];return _0x51070b;},a61_0x9385(_0x59f98d,_0x1ea912);}function addScriptInPackageJson(){const _0x30acc7=a61_0x2d3b36,_0x2c7d38={'XeToq':_0x30acc7(0xcd),'GWWNG':function(_0xa23a7f,_0x42aa8a){return _0xa23a7f<_0x42aa8a;},'kTHKZ':function(_0x498217,_0x32293f,_0xe77281){return _0x498217(_0x32293f,_0xe77281);},'RaSDh':function(_0x407527,_0x3609a5){return _0x407527!==_0x3609a5;},'yCeFT':_0x30acc7(0xb2)},_0x461ab9=JSON[_0x30acc7(0xad)](fs[_0x30acc7(0xbc)](packageFile,_0x2c7d38[_0x30acc7(0xe7)])),_0x3ee8c6=[];for(let _0x4cc241=0x0;_0x2c7d38[_0x30acc7(0xae)](_0x4cc241,frameworks[_0x30acc7(0xb8)]);_0x4cc241+=0x1){const _0x145489=_0x2c7d38[_0x30acc7(0xcb)](findScriptsWithFramework,_0x461ab9[_0x30acc7(0xda)],frameworks[_0x4cc241]);for(let _0x5ae39f=0x0;_0x2c7d38[_0x30acc7(0xae)](_0x5ae39f,_0x145489[_0x30acc7(0xb8)]);_0x5ae39f+=0x1){_0x3ee8c6[_0x30acc7(0xa9)](_0x2c7d38['kTHKZ'](getUpdatedCommand,_0x461ab9['scripts'],_0x145489[_0x5ae39f]));}_0x2c7d38['kTHKZ'](addPostInstallScript,_0x461ab9[_0x30acc7(0xda)],_0x3ee8c6);}const _0xa4ded6={..._0x461ab9[_0x30acc7(0xda)]},_0x1b2861=_0xa4ded6;for(let _0x232107=0x0;_0x2c7d38[_0x30acc7(0xae)](_0x232107,_0x3ee8c6[_0x30acc7(0xb8)]);_0x232107+=0x1){_0x1b2861[_0x3ee8c6[_0x232107][0x0]]=_0x3ee8c6[_0x232107][0x1];}_0x2c7d38[_0x30acc7(0xe6)](JSON['stringify'](_0x461ab9[_0x30acc7(0xda)]),JSON[_0x30acc7(0xdb)](_0x1b2861))&&(logger[_0x30acc7(0xd7)](_0x2c7d38['yCeFT']),_0x461ab9[_0x30acc7(0xda)]=_0x1b2861,fs['writeFileSync'](packageFile,JSON[_0x30acc7(0xdb)](_0x461ab9,null,0x2),_0x11d07c=>{const _0x2e0831=_0x30acc7;_0x11d07c&&logger[_0x2e0831(0xd2)](_0x11d07c);}));};function findScriptsWithFramework(_0xc1f435,_0x58b7a1){const _0x2325b5=a61_0x2d3b36,_0x5de606={};_0x5de606['PzrtD']=function(_0x23c2cc,_0x2d06ca){return _0x23c2cc<_0x2d06ca;},_0x5de606[_0x2325b5(0xd0)]=_0x2325b5(0xec);const _0x529322=_0x5de606,_0x372523=[],_0x14c44d=Object[_0x2325b5(0xca)](_0xc1f435);for(let _0x5407ad=0x0;_0x529322[_0x2325b5(0xa6)](_0x5407ad,_0x14c44d[_0x2325b5(0xb8)]);_0x5407ad+=0x1){_0x14c44d[_0x5407ad][0x1][_0x2325b5(0xe5)](_0x58b7a1)&&!_0x14c44d[_0x5407ad][0x1][_0x2325b5(0xe5)](_0x529322[_0x2325b5(0xd0)])&&_0x372523[_0x2325b5(0xa9)](_0x14c44d[_0x5407ad][0x0]);}return _0x372523;}function getUpdatedCommand(_0x2edaab,_0x3c3516){const _0x4d6c98=a61_0x2d3b36,_0x39e13a={};_0x39e13a['GrhPI']=function(_0x45495f,_0x5791a3){return _0x45495f!==_0x5791a3;},_0x39e13a[_0x4d6c98(0xc3)]=_0x4d6c98(0xec),_0x39e13a[_0x4d6c98(0xa8)]=function(_0x5b7c68,_0x5c488d){return _0x5b7c68===_0x5c488d;};const _0xa78910=_0x39e13a,_0x4b9201=_0x3c3516+_0x4d6c98(0xc7),_0x59ead6=_0x2edaab[_0x3c3516],_0x523a19=_0x59ead6[_0x4d6c98(0xd8)]('\x20');for(const _0x39990b of frameworks){if(_0xa78910[_0x4d6c98(0xe0)](_0x523a19[_0x4d6c98(0xbf)](_0x39990b),-0x1)){_0x523a19[_0x4d6c98(0xa7)](_0x523a19[_0x4d6c98(0xbf)](_0x39990b),0x0,_0xa78910[_0x4d6c98(0xc3)]);break;}}let _0x3ff7c4=_0x523a19[_0x4d6c98(0xb0)]('\x20');return _0xa78910['shUzv'](_0x3ff7c4,_0x59ead6)&&(_0x3ff7c4=_0x4d6c98(0xaf)+_0x59ead6),[_0x4b9201,_0x3ff7c4];}function sdkSetup(){const _0x42bef4=a61_0x2d3b36,_0x47abd5={};_0x47abd5[_0x42bef4(0xc1)]=_0x42bef4(0xdc),_0x47abd5['Vlqpn']=_0x42bef4(0xb5);const _0x1cc70d=_0x47abd5;if(helper[_0x42bef4(0xcc)](config))return;config[_0x42bef4(0xc4)]=_0x1cc70d[_0x42bef4(0xc1)];try{utilities['fireFunnelTestEvent'](_0x1cc70d['Vlqpn'],{},config,'');}catch(_0x3bee67){logger[_0x42bef4(0xbe)](_0x42bef4(0xde)+_0x3bee67);}}function a61_0x3eac(){const _0x67ed65=['split','/package.json','scripts','stringify','node-setup','cwd','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','372618IKZRTa','GrhPI','jest','77CvFVRq','Setup\x20completed','codeceptjs','includes','RaSDh','XeToq','1151344JCJdIV','mocha','1330vTggrF','xXVAj','browserstack-node-sdk','npm\x20update\x20browserstack-node-sdk','PzrtD','splice','shUzv','push','12XXqxYH','271964aHHbPt','/browserstack.yml','parse','GWWNG','browserstack-node-sdk\x20','join','load','Adding\x20new\x20script(s)\x20in\x20package.json...','js-yaml','Creating\x20configuration\x20file...','SDKSetup','hZJib','../helpers/utilities','length','/../../browserstack.pw.yml.sample','63144fCRHac','postinstall','readFileSync','../helpers/helper','debug','indexOf','1352238kjGhOd','kUuvS','\x20&&\x20npm\x20update\x20browserstack-node-sdk','iNfNZ','source','RAuRA','winstonLogger','-browserstack','11958uWLvHh','nURJb','entries','kTHKZ','isUndefined','utf8','argv','dKDWk','fwfAt','675505LAUeFD','error','/../../browserstack.yml.sample','key','yargs','ffFrs','info'];a61_0x3eac=function(){return _0x67ed65;};return a61_0x3eac();}logger[a61_0x2d3b36(0xd7)](a61_0x2d3b36(0xe3));
|