browserstack-node-sdk 1.64.1 → 1.64.3
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/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/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/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/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
- package/src/ai-sdk-node/bundle.js +0 -1
- package/src/ai-sdk-node/extensions/chrome_extension.crx +0 -0
- package/src/bin/mocha/test-observability/builderPatch.js +0 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +0 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +0 -1
- package/src/helpers/timeoutPromise.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a55_0x5f1070=a55_0x5ee0;(function(_0x1bdb96,_0x32f2f3){const _0x163984=a55_0x5ee0,_0x3182ac=_0x1bdb96();while(!![]){try{const _0x55c516=-parseInt(_0x163984(0x16d))/0x1+-parseInt(_0x163984(0x17c))/0x2+parseInt(_0x163984(0x144))/0x3+-parseInt(_0x163984(0x161))/0x4*(parseInt(_0x163984(0x180))/0x5)+parseInt(_0x163984(0x12f))/0x6+-parseInt(_0x163984(0x167))/0x7*(-parseInt(_0x163984(0x16e))/0x8)+parseInt(_0x163984(0x124))/0x9*(parseInt(_0x163984(0x132))/0xa);if(_0x55c516===_0x32f2f3)break;else _0x3182ac['push'](_0x3182ac['shift']());}catch(_0x106021){_0x3182ac['push'](_0x3182ac['shift']());}}}(a55_0xf537,0x423b2));const fs=require('fs'),path=require(a55_0x5f1070(0x138)),{v4:uuidv4}=require(a55_0x5f1070(0x13e)),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require('../../../helpers/helper'),logger=require(a55_0x5f1070(0x156))[a55_0x5f1070(0x123)],{getLogDir}=require(a55_0x5f1070(0x156)),util=require(a55_0x5f1070(0x12a)),helper=require(a55_0x5f1070(0x13b));function a55_0xf537(){const _0x166632=['setTestDetails','Error\x20handling\x20trace\x20file\x20paths:\x20','__projectId','hZMwu','winstonLogger','205137AnSWUh','filePath','project','ecqbd','rmSync','qghWq','util','MJNfE','endsWith','push','.json','3049866yZMkjo','message','IoPbH','10BVVqZj','existsSync','kIvKQ','getStoreDirPath','string','shutdown','path','XbbhI','_platformDetails.json','../../../helpers/helper','DThzI','setup','uuid','_integrations.json','getIntegrations','eHlmQ','exports','tjFje','241998kHpOAL','retry','getAccessibilityPlatformValidation','recursive','getStoreDirName','GocxL','trace_','setAccessibilityPlatformValidation','aNgcw','getTestIdFromTestInfo','rUYVA','_test','getTestUUID','env','_projectId','VAdiv','values','bjNXI','../../../helpers/logger','getTraceFilePaths','ZJoJp','uvGJb','error','writeFileSync','_traceZipPaths.json','Error\x20writing\x20trace\x20file:\x20','debug','parse','stringify','4696bPIzhJ','WHIoJ','DagFc','appendToTracePaths','dPrke','KyZSl','175Hmxijm','tests','readdirSync','mkdirSync','homedir','getProjectIdFromTestInfo','76169mfuUKC','132152SjnDtv','readFileSync','AmbDp','some','default','getFilePath','getDirPath','utf8','Error\x20reading\x20trace\x20file\x20paths:\x20%s','getTraceZipDir','toString','BS_TESTOPS_BUILD_HASHED_ID','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','testId','521048ZCbDpV','fuGrD','format','appendFileSync','1775McCIRG','forEach','join'];a55_0xf537=function(){return _0x166632;};return a55_0xf537();}class TestDetails{static [a55_0x5f1070(0x168)]={};static[a55_0x5f1070(0x13d)](){const _0x5e23a3=a55_0x5f1070;this[_0x5e23a3(0x137)]();const _0x3d3c5d={};_0x3d3c5d[_0x5e23a3(0x147)]=!![],fs[_0x5e23a3(0x16a)](this[_0x5e23a3(0x174)](),_0x3d3c5d);const _0x3b3176={};_0x3b3176[_0x5e23a3(0x147)]=!![],fs[_0x5e23a3(0x16a)](this[_0x5e23a3(0x177)](),_0x3b3176);}static[a55_0x5f1070(0x148)](){const _0x1d94d3=a55_0x5f1070,_0x129001={};_0x129001[_0x1d94d3(0x12b)]=function(_0x46fb16,_0x3fe3b5){return _0x46fb16+_0x3fe3b5;};const _0x687ce5=_0x129001;return _0x687ce5[_0x1d94d3(0x12b)](_0x687ce5['MJNfE'](TEMP_STORE_DIR_NAME,'-'),process[_0x1d94d3(0x151)][_0x1d94d3(0x179)]);}static[a55_0x5f1070(0x135)](){const _0x4c9d8d=a55_0x5f1070,_0xf3d4d5={};_0xf3d4d5[_0x4c9d8d(0x17d)]=function(_0x2020f2,_0x2b2c22){return _0x2020f2+_0x2b2c22;},_0xf3d4d5[_0x4c9d8d(0x162)]=function(_0x10486c,_0x3119c8){return _0x10486c+_0x3119c8;},_0xf3d4d5[_0x4c9d8d(0x166)]=_0x4c9d8d(0x172);const _0x45c872=_0xf3d4d5;return path[_0x4c9d8d(0x182)](_0x45c872[_0x4c9d8d(0x17d)](_0x45c872[_0x4c9d8d(0x162)](TEMP_STORE_DIR_NAME,'-'),process[_0x4c9d8d(0x151)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x45c872['KyZSl']));}static[a55_0x5f1070(0x177)](){const _0xf74cd4=a55_0x5f1070,_0x494539={};_0x494539[_0xf74cd4(0x134)]='traceZipPaths';const _0xa6ab98=_0x494539;return path[_0xf74cd4(0x182)](this[_0xf74cd4(0x135)](),_0xa6ab98['kIvKQ']);}static[a55_0x5f1070(0x174)](){const _0x5e9a94=a55_0x5f1070;return TestDetails[_0x5e9a94(0x148)]();}static[a55_0x5f1070(0x173)](_0x3d8c2d){const _0x1eca4e=a55_0x5f1070,_0x571035={};_0x571035[_0x1eca4e(0x139)]=function(_0x2c7350,_0x26024b){return _0x2c7350+_0x26024b;},_0x571035['DagFc']=_0x1eca4e(0x12e);const _0xa76bf2=_0x571035;return path[_0x1eca4e(0x182)](this[_0x1eca4e(0x174)](),_0xa76bf2[_0x1eca4e(0x139)](_0x3d8c2d,_0xa76bf2[_0x1eca4e(0x163)]));}static['getTestRunIdFromTestInfo'](_0x475d38){const _0x2d96f1=a55_0x5f1070,_0x492a63={};_0x492a63[_0x2d96f1(0x14c)]=function(_0xab6cea,_0x5ae04){return _0xab6cea+_0x5ae04;};const _0x2876fb=_0x492a63;return _0x2876fb[_0x2d96f1(0x14c)](_0x2876fb[_0x2d96f1(0x14c)](this[_0x2d96f1(0x14d)](_0x475d38),'-'),_0x475d38[_0x2d96f1(0x145)]);}static[a55_0x5f1070(0x16c)](_0x228dae){const _0x1ffcc1=a55_0x5f1070,_0x1ecd6b={'tjFje':function(_0x545273,_0x131fe9,_0x1262d7){return _0x545273(_0x131fe9,_0x1262d7);},'dPrke':'_test','AmbDp':_0x1ffcc1(0x152),'bjNXI':_0x1ffcc1(0x126),'VAdiv':_0x1ffcc1(0x185)};return _0x1ecd6b[_0x1ffcc1(0x143)](nestedKeyValue,_0x228dae,[_0x1ecd6b[_0x1ffcc1(0x165)],_0x1ecd6b[_0x1ffcc1(0x170)]])||_0x1ecd6b[_0x1ffcc1(0x143)](nestedKeyValue,_0x228dae,[_0x1ecd6b[_0x1ffcc1(0x155)],_0x1ecd6b[_0x1ffcc1(0x153)]]);}static['getTestIdFromTestInfo'](_0x4b5ed3){const _0xe1187c=a55_0x5f1070,_0x1b82ce={'gDPdI':function(_0x54f679,_0x55ab26,_0x399b08){return _0x54f679(_0x55ab26,_0x399b08);},'eHlmQ':_0xe1187c(0x14f)};return _0x1b82ce['gDPdI'](nestedKeyValue,_0x4b5ed3,[_0x1b82ce[_0xe1187c(0x141)],'id'])||_0x4b5ed3[_0xe1187c(0x17b)];}static[a55_0x5f1070(0x150)](_0x34b47b){const _0x4705dc=a55_0x5f1070,_0x39dcfb={'rUYVA':function(_0x2b7c2e,_0x2f385b){return _0x2b7c2e===_0x2f385b;},'ecqbd':_0x4705dc(0x136),'qghWq':function(_0x41b4f3){return _0x41b4f3();}};if(this[_0x4705dc(0x168)][_0x34b47b]&&_0x39dcfb[_0x4705dc(0x14e)](typeof this[_0x4705dc(0x168)][_0x34b47b][_0x4705dc(0x13e)],_0x39dcfb[_0x4705dc(0x127)]))return this[_0x4705dc(0x168)][_0x34b47b][_0x4705dc(0x13e)];const _0x2028d5=this[_0x4705dc(0x173)](_0x34b47b);if(_0x2028d5&&fs['existsSync'](_0x2028d5)){const _0x12dce9=JSON[_0x4705dc(0x15f)](fs[_0x4705dc(0x16f)](_0x2028d5)[_0x4705dc(0x178)]());return this[_0x4705dc(0x168)][_0x34b47b]=_0x12dce9,this[_0x4705dc(0x168)][_0x34b47b][_0x4705dc(0x13e)];}return this[_0x4705dc(0x168)][_0x34b47b]={'uuid':_0x39dcfb[_0x4705dc(0x129)](uuidv4)},fs['writeFileSync'](_0x2028d5,JSON[_0x4705dc(0x160)](this['tests'][_0x34b47b])),this[_0x4705dc(0x168)][_0x34b47b][_0x4705dc(0x13e)];}static[a55_0x5f1070(0x146)](_0x46f014){const _0x464b95=a55_0x5f1070,_0x408ce8=path['join'](this[_0x464b95(0x174)](),_0x46f014+_0x464b95(0x13a));if(_0x408ce8&&fs['existsSync'](_0x408ce8))return fs['readFileSync'](_0x408ce8)[_0x464b95(0x178)]();}static[a55_0x5f1070(0x14b)](_0x9cd3bb,_0x2d0115){const _0x3ea40c=a55_0x5f1070,_0x3d0f41=path[_0x3ea40c(0x182)](this[_0x3ea40c(0x174)](),_0x2d0115+'_platformDetails.json');fs[_0x3ea40c(0x15b)](_0x3d0f41,_0x9cd3bb['toString']());}static[a55_0x5f1070(0x140)](_0x30bdae){const _0x22162c=a55_0x5f1070,_0x106528=path[_0x22162c(0x182)](this[_0x22162c(0x174)](),_0x30bdae+_0x22162c(0x13f));if(_0x106528&&fs[_0x22162c(0x133)](_0x106528))try{return JSON[_0x22162c(0x15f)](fs[_0x22162c(0x16f)](_0x106528)[_0x22162c(0x178)]());}catch(_0x57543e){return logger[_0x22162c(0x15e)](_0x22162c(0x17a)+_0x30bdae+':\x20'+(_0x57543e&&_0x57543e[_0x22162c(0x130)])),null;}return null;}static['setIntegrations'](_0x1f1069,_0xc5501e){const _0x64c7dc=a55_0x5f1070,_0x5b0414={};_0x5b0414[_0x64c7dc(0x158)]=function(_0x5d5e99,_0x59d3dd){return _0x5d5e99||_0x59d3dd;};const _0x1d3016=_0x5b0414;if(_0x1d3016['ZJoJp'](!_0x1f1069,!_0xc5501e))return;try{const _0x4d1662=this[_0x64c7dc(0x174)](),_0x43bd71={};_0x43bd71[_0x64c7dc(0x147)]=!![],fs['mkdirSync'](_0x4d1662,_0x43bd71);const _0x28812a=path['join'](_0x4d1662,_0x1f1069+_0x64c7dc(0x13f));fs[_0x64c7dc(0x15b)](_0x28812a,JSON[_0x64c7dc(0x160)](_0xc5501e));}catch(_0x327d2b){logger[_0x64c7dc(0x15e)]('Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20'+_0x1f1069+':\x20'+(_0x327d2b&&_0x327d2b['message']));}}static[a55_0x5f1070(0x137)](){const _0x3fcd42=a55_0x5f1070,_0x5d981c={};_0x5d981c[_0x3fcd42(0x147)]=!![],_0x5d981c['force']=!![],fs[_0x3fcd42(0x128)](this['getDirPath'](),_0x5d981c);}static['getTestDetails'](_0x1bdb5f){const _0x729a5e=a55_0x5f1070;if(this[_0x729a5e(0x168)][_0x1bdb5f])return this['tests'][_0x1bdb5f];const _0x16630b=this[_0x729a5e(0x173)](_0x1bdb5f);if(_0x16630b&&fs[_0x729a5e(0x133)](_0x16630b)){const _0x48003a=JSON['parse'](fs['readFileSync'](_0x16630b)[_0x729a5e(0x178)]());return this['tests'][_0x1bdb5f]=_0x48003a,_0x48003a;}return{};}static[a55_0x5f1070(0x183)](_0x13d298,_0x166673){const _0x13fc15=a55_0x5f1070,_0x5560f3=this[_0x13fc15(0x173)](_0x13d298);if(_0x5560f3&&fs['existsSync'](_0x5560f3)){const _0x56fe00=JSON['parse'](fs[_0x13fc15(0x16f)](_0x5560f3)[_0x13fc15(0x178)]()),_0x2edcef={..._0x56fe00,..._0x166673};this['tests'][_0x13d298]=_0x2edcef;}else this[_0x13fc15(0x168)][_0x13d298]=_0x166673;fs['writeFileSync'](_0x5560f3,this[_0x13fc15(0x168)][_0x13d298]);}static['addTraceFilePath'](_0x5deb22){const _0x3bd8de=a55_0x5f1070,_0x1f90d4={};_0x1f90d4[_0x3bd8de(0x149)]=_0x3bd8de(0x184);const _0x183e1b=_0x1f90d4;try{const _0xeac0b6=process['pid'],_0x54d21c=path[_0x3bd8de(0x182)](TestDetails['getTraceZipDir'](),_0xeac0b6+_0x3bd8de(0x15c));let _0xb903c0=[];_0x54d21c&&fs[_0x3bd8de(0x133)](_0x54d21c)&&(_0xb903c0=JSON['parse'](fs[_0x3bd8de(0x16f)](_0x54d21c)['toString']())),!_0xb903c0[_0x3bd8de(0x171)](_0x250a25=>_0x250a25[_0x3bd8de(0x125)]===_0x5deb22['filePath'])&&(_0xb903c0[_0x3bd8de(0x12d)](_0x5deb22),fs[_0x3bd8de(0x15b)](_0x54d21c,JSON[_0x3bd8de(0x160)](_0xb903c0)));}catch(_0x2e0895){logger['error'](_0x183e1b[_0x3bd8de(0x149)],_0x2e0895);}}static[a55_0x5f1070(0x157)](){const _0x182c39=a55_0x5f1070,_0x22791b={};_0x22791b[_0x182c39(0x122)]=_0x182c39(0x15c),_0x22791b[_0x182c39(0x13c)]=_0x182c39(0x176);const _0x3e62fc=_0x22791b,_0x5c41f5=[];try{const _0x3e7343=TestDetails[_0x182c39(0x177)]();if(_0x3e7343&&!fs['existsSync'](_0x3e7343))return _0x5c41f5;const _0x2b5ea4=fs[_0x182c39(0x169)](_0x3e7343);_0x2b5ea4[_0x182c39(0x181)](_0xfade39=>{const _0x2eed98=_0x182c39;if(_0xfade39&&_0xfade39[_0x2eed98(0x12c)](_0x3e62fc[_0x2eed98(0x122)])){const _0x31f7b0=JSON[_0x2eed98(0x15f)](fs[_0x2eed98(0x16f)](path['join'](_0x3e7343,_0xfade39))[_0x2eed98(0x178)]());_0x5c41f5['push'](..._0x31f7b0);}});}catch(_0x1cd207){logger[_0x182c39(0x15a)](util[_0x182c39(0x17e)](_0x3e62fc['DThzI'],_0x1cd207));}const _0x2e5306={};return _0x5c41f5[_0x182c39(0x181)](_0x4f9dd3=>{_0x2e5306[_0x4f9dd3['filePath']]=_0x4f9dd3;}),Object[_0x182c39(0x154)](_0x2e5306);}static[a55_0x5f1070(0x164)](_0x358899,_0x4bcf78){const _0x10fdf5=a55_0x5f1070,_0x4e51c1={};_0x4e51c1[_0x10fdf5(0x131)]='.browserstack',_0x4e51c1['uvGJb']=_0x10fdf5(0x175);const _0x71a095=_0x4e51c1;try{const _0x1f2c47=path[_0x10fdf5(0x182)](helper[_0x10fdf5(0x16b)](),_0x71a095[_0x10fdf5(0x131)]);if(!fs[_0x10fdf5(0x133)](_0x1f2c47)){const _0x1c54a6={};_0x1c54a6[_0x10fdf5(0x147)]=!![],fs[_0x10fdf5(0x16a)](_0x1f2c47,_0x1c54a6);}fs[_0x10fdf5(0x17f)](path[_0x10fdf5(0x182)](_0x1f2c47,_0x10fdf5(0x14a)+_0x4bcf78+'.txt'),_0x358899+'\x0a',_0x71a095[_0x10fdf5(0x159)]);}catch(_0x5ea4f6){console[_0x10fdf5(0x15a)](_0x10fdf5(0x15d)+_0x5ea4f6[_0x10fdf5(0x130)]);}}}function a55_0x5ee0(_0x33ae5f,_0x408ac5){const _0xf537b=a55_0xf537();return a55_0x5ee0=function(_0x5ee04c,_0x1f1e32){_0x5ee04c=_0x5ee04c-0x122;let _0x1a47c6=_0xf537b[_0x5ee04c];return _0x1a47c6;},a55_0x5ee0(_0x33ae5f,_0x408ac5);}module[a55_0x5f1070(0x142)]=TestDetails;
|
|
1
|
+
const a53_0x35413e=a53_0x58ad;function a53_0x21b8(){const _0x312e61=['parse','getTraceZipDir','uXzAE','tests','getProjectIdFromTestInfo','homedir','MGDus','stringify','getIntegrations','yJfWV','error','getTestUUID','getStoreDirName','shutdown','BS_TESTOPS_BUILD_HASHED_ID','skvma','uuid','values','361352bkpnLK','default','recursive','string','mkdirSync','Swtpv','setIntegrations','existsSync','appendToTracePaths','106560UNmmKs','getTestDetails','writeFileSync','format','force','retry','getTestIdFromTestInfo','930768SxccFt','.txt','AQIeZ','winstonLogger','wiRTz','getTraceFilePaths','_platformDetails.json','rmSync','82TvjXdl','12866VTTHtz','WXmWs','../../../helpers/helper','forEach','addTraceFilePath','wLXwX','ecpGt','readdirSync','Error\x20reading\x20trace\x20file\x20paths:\x20%s','../../../helpers/logger','traceZipPaths','riHKD','filePath','2753937GBLblj','VJeyt','_test','CZSkj','toString','bbVio','DcaPs','push','setTestDetails','YnbqA','getTestRunIdFromTestInfo','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','getFilePath','Error\x20writing\x20trace\x20file:\x20','.json','__projectId','5RrAjoP','debug','1101196xqqWFA','_traceZipPaths.json','path','CbHwj','getStoreDirPath','TNjvm','util','some','exports','BBNpO','getDirPath','_projectId','Error\x20handling\x20trace\x20file\x20paths:\x20','2011lYFHbM','readFileSync','join','appendFileSync','fZezR','sxmzs','project','setup','message','_integrations.json','MyPsT','utf8','trace_','testId','186CteWWZ','env'];a53_0x21b8=function(){return _0x312e61;};return a53_0x21b8();}function a53_0x58ad(_0x26cfe7,_0x1e5d25){const _0x21b8a0=a53_0x21b8();return a53_0x58ad=function(_0x58ad55,_0x3620fe){_0x58ad55=_0x58ad55-0x17e;let _0x37d96a=_0x21b8a0[_0x58ad55];return _0x37d96a;},a53_0x58ad(_0x26cfe7,_0x1e5d25);}(function(_0x5ce151,_0x568542){const _0x4b983d=a53_0x58ad,_0x33d314=_0x5ce151();while(!![]){try{const _0x57ff07=-parseInt(_0x4b983d(0x188))/0x1*(parseInt(_0x4b983d(0x1c2))/0x2)+-parseInt(_0x4b983d(0x1ba))/0x3+-parseInt(_0x4b983d(0x1e2))/0x4*(-parseInt(_0x4b983d(0x1e0))/0x5)+parseInt(_0x4b983d(0x196))/0x6*(-parseInt(_0x4b983d(0x1c3))/0x7)+parseInt(_0x4b983d(0x1aa))/0x8+parseInt(_0x4b983d(0x1d0))/0x9+-parseInt(_0x4b983d(0x1b3))/0xa;if(_0x57ff07===_0x568542)break;else _0x33d314['push'](_0x33d314['shift']());}catch(_0x58e727){_0x33d314['push'](_0x33d314['shift']());}}}(a53_0x21b8,0x288e8));const fs=require('fs'),path=require(a53_0x35413e(0x1e4)),{v4:uuidv4}=require(a53_0x35413e(0x1a8)),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require(a53_0x35413e(0x1c5)),logger=require(a53_0x35413e(0x1cc))[a53_0x35413e(0x1bd)],{getLogDir}=require(a53_0x35413e(0x1cc)),util=require(a53_0x35413e(0x181)),helper=require('../../../helpers/helper');class TestDetails{static [a53_0x35413e(0x19b)]={};static[a53_0x35413e(0x18f)](){const _0x1510ef=a53_0x35413e;this['shutdown']();const _0x1f94f0={};_0x1f94f0[_0x1510ef(0x1ac)]=!![],fs['mkdirSync'](this[_0x1510ef(0x185)](),_0x1f94f0);const _0x53f58e={};_0x53f58e['recursive']=!![],fs[_0x1510ef(0x1ae)](this['getTraceZipDir'](),_0x53f58e);}static['getStoreDirName'](){const _0x4ef2e8=a53_0x35413e,_0x5961cf={};_0x5961cf[_0x4ef2e8(0x192)]=function(_0x331543,_0x268029){return _0x331543+_0x268029;},_0x5961cf[_0x4ef2e8(0x19e)]=function(_0x2752a8,_0x1e590b){return _0x2752a8+_0x1e590b;};const _0x3fb102=_0x5961cf;return _0x3fb102['MyPsT'](_0x3fb102[_0x4ef2e8(0x19e)](TEMP_STORE_DIR_NAME,'-'),process[_0x4ef2e8(0x197)][_0x4ef2e8(0x1a6)]);}static[a53_0x35413e(0x17f)](){const _0x1e4cfc=a53_0x35413e,_0xa00c7b={};_0xa00c7b[_0x1e4cfc(0x1c9)]=function(_0xefd341,_0x54a9b0){return _0xefd341+_0x54a9b0;},_0xa00c7b[_0x1e4cfc(0x18d)]=_0x1e4cfc(0x1ab);const _0x119538=_0xa00c7b;return path['join'](_0x119538[_0x1e4cfc(0x1c9)](_0x119538['ecpGt'](TEMP_STORE_DIR_NAME,'-'),process[_0x1e4cfc(0x197)][_0x1e4cfc(0x1a6)]||_0x119538[_0x1e4cfc(0x18d)]));}static[a53_0x35413e(0x199)](){const _0x26487d=a53_0x35413e,_0x181941={};_0x181941[_0x26487d(0x1d6)]=_0x26487d(0x1cd);const _0x35b6bc=_0x181941;return path[_0x26487d(0x18a)](this[_0x26487d(0x17f)](),_0x35b6bc['DcaPs']);}static[a53_0x35413e(0x185)](){const _0x11355e=a53_0x35413e;return TestDetails[_0x11355e(0x1a4)]();}static[a53_0x35413e(0x1dc)](_0x9b0186){const _0x55438a=a53_0x35413e,_0x3ee223={};_0x3ee223[_0x55438a(0x180)]=function(_0x5baacd,_0x111c2c){return _0x5baacd+_0x111c2c;},_0x3ee223['WXmWs']=_0x55438a(0x1de);const _0x196ed8=_0x3ee223;return path[_0x55438a(0x18a)](this[_0x55438a(0x185)](),_0x196ed8[_0x55438a(0x180)](_0x9b0186,_0x196ed8[_0x55438a(0x1c4)]));}static[a53_0x35413e(0x1da)](_0x5785c2){const _0x1a537a=a53_0x35413e,_0x1868e0={};_0x1868e0[_0x1a537a(0x19a)]=function(_0x38b5c1,_0x12c69b){return _0x38b5c1+_0x12c69b;},_0x1868e0[_0x1a537a(0x1d3)]=function(_0x38b077,_0x11d4de){return _0x38b077+_0x11d4de;};const _0x5bf9ee=_0x1868e0;return _0x5bf9ee[_0x1a537a(0x19a)](_0x5bf9ee[_0x1a537a(0x1d3)](this['getTestIdFromTestInfo'](_0x5785c2),'-'),_0x5785c2[_0x1a537a(0x1b8)]);}static[a53_0x35413e(0x19c)](_0x3cdc26){const _0x5c0551=a53_0x35413e,_0x59d23d={'YnbqA':function(_0xbe0931,_0x6ead34,_0x4d232a){return _0xbe0931(_0x6ead34,_0x4d232a);},'ivIxo':'_test','wLXwX':_0x5c0551(0x186),'wiRTz':function(_0x4d7cd1,_0x5404e2,_0x4b5798){return _0x4d7cd1(_0x5404e2,_0x4b5798);},'ZqhEo':_0x5c0551(0x18e),'CbHwj':_0x5c0551(0x1df)};return _0x59d23d[_0x5c0551(0x1d9)](nestedKeyValue,_0x3cdc26,[_0x59d23d['ivIxo'],_0x59d23d[_0x5c0551(0x1c8)]])||_0x59d23d[_0x5c0551(0x1be)](nestedKeyValue,_0x3cdc26,[_0x59d23d['ZqhEo'],_0x59d23d[_0x5c0551(0x17e)]]);}static[a53_0x35413e(0x1b9)](_0x21a9a7){const _0x5f31b5=a53_0x35413e,_0x2494fb={'NtRcV':function(_0x497e68,_0x4fd932,_0x5919fd){return _0x497e68(_0x4fd932,_0x5919fd);},'VJeyt':_0x5f31b5(0x1d2)};return _0x2494fb['NtRcV'](nestedKeyValue,_0x21a9a7,[_0x2494fb[_0x5f31b5(0x1d1)],'id'])||_0x21a9a7[_0x5f31b5(0x195)];}static[a53_0x35413e(0x1a3)](_0x258d16){const _0x17354b=a53_0x35413e,_0x222e6c={'BBNpO':function(_0x74eaa9,_0x550741){return _0x74eaa9===_0x550741;},'AQIeZ':_0x17354b(0x1ad),'skvma':function(_0x4ba903){return _0x4ba903();}};if(this[_0x17354b(0x19b)][_0x258d16]&&_0x222e6c[_0x17354b(0x184)](typeof this[_0x17354b(0x19b)][_0x258d16][_0x17354b(0x1a8)],_0x222e6c[_0x17354b(0x1bc)]))return this['tests'][_0x258d16][_0x17354b(0x1a8)];const _0x202289=this[_0x17354b(0x1dc)](_0x258d16);if(_0x202289&&fs[_0x17354b(0x1b1)](_0x202289)){const _0x1205c0=JSON[_0x17354b(0x198)](fs[_0x17354b(0x189)](_0x202289)['toString']());return this[_0x17354b(0x19b)][_0x258d16]=_0x1205c0,this[_0x17354b(0x19b)][_0x258d16][_0x17354b(0x1a8)];}return this['tests'][_0x258d16]={'uuid':_0x222e6c[_0x17354b(0x1a7)](uuidv4)},fs[_0x17354b(0x1b5)](_0x202289,JSON['stringify'](this[_0x17354b(0x19b)][_0x258d16])),this[_0x17354b(0x19b)][_0x258d16]['uuid'];}static['getAccessibilityPlatformValidation'](_0x2eacc0){const _0x36f056=a53_0x35413e,_0x1e968b=path[_0x36f056(0x18a)](this['getDirPath'](),_0x2eacc0+'_platformDetails.json');if(_0x1e968b&&fs[_0x36f056(0x1b1)](_0x1e968b))return fs[_0x36f056(0x189)](_0x1e968b)[_0x36f056(0x1d4)]();}static['setAccessibilityPlatformValidation'](_0x444986,_0x1529e6){const _0x19bc9f=a53_0x35413e,_0x27aeaf=path['join'](this[_0x19bc9f(0x185)](),_0x1529e6+_0x19bc9f(0x1c0));fs['writeFileSync'](_0x27aeaf,_0x444986[_0x19bc9f(0x1d4)]());}static[a53_0x35413e(0x1a0)](_0x10f376){const _0x4d8c0f=a53_0x35413e,_0x1649de=path[_0x4d8c0f(0x18a)](this['getDirPath'](),_0x10f376+'_integrations.json');if(_0x1649de&&fs[_0x4d8c0f(0x1b1)](_0x1649de))try{return JSON[_0x4d8c0f(0x198)](fs['readFileSync'](_0x1649de)[_0x4d8c0f(0x1d4)]());}catch(_0x52f679){return logger[_0x4d8c0f(0x1e1)]('Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20'+_0x10f376+':\x20'+(_0x52f679&&_0x52f679[_0x4d8c0f(0x190)])),null;}return null;}static[a53_0x35413e(0x1b0)](_0x37c880,_0x13f78f){const _0x8c0b0=a53_0x35413e,_0x24dcc4={};_0x24dcc4[_0x8c0b0(0x18c)]=function(_0x3e9fd9,_0x4b5825){return _0x3e9fd9||_0x4b5825;};const _0x1d48d4=_0x24dcc4;if(_0x1d48d4[_0x8c0b0(0x18c)](!_0x37c880,!_0x13f78f))return;try{const _0x2f42a9=this[_0x8c0b0(0x185)](),_0x1362c6={};_0x1362c6[_0x8c0b0(0x1ac)]=!![],fs['mkdirSync'](_0x2f42a9,_0x1362c6);const _0x2617e9=path[_0x8c0b0(0x18a)](_0x2f42a9,_0x37c880+_0x8c0b0(0x191));fs[_0x8c0b0(0x1b5)](_0x2617e9,JSON[_0x8c0b0(0x19f)](_0x13f78f));}catch(_0x52c05f){logger[_0x8c0b0(0x1e1)](_0x8c0b0(0x1db)+_0x37c880+':\x20'+(_0x52c05f&&_0x52c05f[_0x8c0b0(0x190)]));}}static[a53_0x35413e(0x1a5)](){const _0xfede80=a53_0x35413e,_0x1e070a={};_0x1e070a['recursive']=!![],_0x1e070a[_0xfede80(0x1b7)]=!![],fs[_0xfede80(0x1c1)](this[_0xfede80(0x185)](),_0x1e070a);}static[a53_0x35413e(0x1b4)](_0x1ff8c1){const _0x568b9a=a53_0x35413e;if(this[_0x568b9a(0x19b)][_0x1ff8c1])return this[_0x568b9a(0x19b)][_0x1ff8c1];const _0x37d183=this['getFilePath'](_0x1ff8c1);if(_0x37d183&&fs[_0x568b9a(0x1b1)](_0x37d183)){const _0x2e617c=JSON['parse'](fs[_0x568b9a(0x189)](_0x37d183)[_0x568b9a(0x1d4)]());return this[_0x568b9a(0x19b)][_0x1ff8c1]=_0x2e617c,_0x2e617c;}return{};}static[a53_0x35413e(0x1d8)](_0x450b7a,_0x1d7dbc){const _0x22010b=a53_0x35413e,_0x23009b=this[_0x22010b(0x1dc)](_0x450b7a);if(_0x23009b&&fs[_0x22010b(0x1b1)](_0x23009b)){const _0x399782=JSON[_0x22010b(0x198)](fs[_0x22010b(0x189)](_0x23009b)[_0x22010b(0x1d4)]()),_0x47ee0f={..._0x399782,..._0x1d7dbc};this['tests'][_0x450b7a]=_0x47ee0f;}else this['tests'][_0x450b7a]=_0x1d7dbc;fs[_0x22010b(0x1b5)](_0x23009b,this[_0x22010b(0x19b)][_0x450b7a]);}static[a53_0x35413e(0x1c7)](_0x1bb28a){const _0x620ae2=a53_0x35413e,_0x1f5fa9={};_0x1f5fa9[_0x620ae2(0x1ce)]=_0x620ae2(0x187);const _0x5ca25f=_0x1f5fa9;try{const _0x104cca=process['pid'],_0x3d5850=path['join'](TestDetails['getTraceZipDir'](),_0x104cca+_0x620ae2(0x1e3));let _0x46b502=[];_0x3d5850&&fs[_0x620ae2(0x1b1)](_0x3d5850)&&(_0x46b502=JSON[_0x620ae2(0x198)](fs['readFileSync'](_0x3d5850)[_0x620ae2(0x1d4)]())),!_0x46b502[_0x620ae2(0x182)](_0x390162=>_0x390162[_0x620ae2(0x1cf)]===_0x1bb28a['filePath'])&&(_0x46b502[_0x620ae2(0x1d7)](_0x1bb28a),fs['writeFileSync'](_0x3d5850,JSON[_0x620ae2(0x19f)](_0x46b502)));}catch(_0x4ea9e0){logger[_0x620ae2(0x1a2)](_0x5ca25f['riHKD'],_0x4ea9e0);}}static[a53_0x35413e(0x1bf)](){const _0x581eb4=a53_0x35413e,_0x1f84ee={};_0x1f84ee[_0x581eb4(0x1af)]=_0x581eb4(0x1e3),_0x1f84ee[_0x581eb4(0x1a1)]=_0x581eb4(0x1cb);const _0xfefdde=_0x1f84ee,_0x1190ed=[];try{const _0x4a97c5=TestDetails[_0x581eb4(0x199)]();if(_0x4a97c5&&!fs[_0x581eb4(0x1b1)](_0x4a97c5))return _0x1190ed;const _0x1660ea=fs[_0x581eb4(0x1ca)](_0x4a97c5);_0x1660ea[_0x581eb4(0x1c6)](_0x3d355a=>{const _0x35aa6a=_0x581eb4;if(_0x3d355a&&_0x3d355a['endsWith'](_0xfefdde[_0x35aa6a(0x1af)])){const _0x8a3931=JSON[_0x35aa6a(0x198)](fs[_0x35aa6a(0x189)](path[_0x35aa6a(0x18a)](_0x4a97c5,_0x3d355a))['toString']());_0x1190ed[_0x35aa6a(0x1d7)](..._0x8a3931);}});}catch(_0x5803e6){logger[_0x581eb4(0x1a2)](util[_0x581eb4(0x1b6)](_0xfefdde[_0x581eb4(0x1a1)],_0x5803e6));}const _0x3a11a3={};return _0x1190ed['forEach'](_0x38cd3b=>{_0x3a11a3[_0x38cd3b['filePath']]=_0x38cd3b;}),Object[_0x581eb4(0x1a9)](_0x3a11a3);}static[a53_0x35413e(0x1b2)](_0x10ad3e,_0xc116ac){const _0x4b75de=a53_0x35413e,_0xec6efa={};_0xec6efa['VGCGi']='.browserstack',_0xec6efa[_0x4b75de(0x1d5)]=_0x4b75de(0x193);const _0x4bf63a=_0xec6efa;try{const _0x125231=path[_0x4b75de(0x18a)](helper[_0x4b75de(0x19d)](),_0x4bf63a['VGCGi']);if(!fs[_0x4b75de(0x1b1)](_0x125231)){const _0x3bf8ed={};_0x3bf8ed[_0x4b75de(0x1ac)]=!![],fs['mkdirSync'](_0x125231,_0x3bf8ed);}fs[_0x4b75de(0x18b)](path[_0x4b75de(0x18a)](_0x125231,_0x4b75de(0x194)+_0xc116ac+_0x4b75de(0x1bb)),_0x10ad3e+'\x0a',_0x4bf63a['bbVio']);}catch(_0x58b536){console[_0x4b75de(0x1a2)](_0x4b75de(0x1dd)+_0x58b536[_0x4b75de(0x190)]);}}}module[a53_0x35413e(0x183)]=TestDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a56_0x44e358=a56_0x1eae;(function(_0x3ae095,_0x582f14){const _0x1c9c60=a56_0x1eae,_0x56694b=_0x3ae095();while(!![]){try{const _0x1ba851=-parseInt(_0x1c9c60(0x19a))/0x1*(parseInt(_0x1c9c60(0x125))/0x2)+parseInt(_0x1c9c60(0x112))/0x3*(-parseInt(_0x1c9c60(0x186))/0x4)+-parseInt(_0x1c9c60(0x12f))/0x5+-parseInt(_0x1c9c60(0x11f))/0x6*(-parseInt(_0x1c9c60(0x1a7))/0x7)+parseInt(_0x1c9c60(0x194))/0x8+-parseInt(_0x1c9c60(0x17c))/0x9*(-parseInt(_0x1c9c60(0x172))/0xa)+parseInt(_0x1c9c60(0x18b))/0xb*(-parseInt(_0x1c9c60(0x144))/0xc);if(_0x1ba851===_0x582f14)break;else _0x56694b['push'](_0x56694b['shift']());}catch(_0x1d2eff){_0x56694b['push'](_0x56694b['shift']());}}}(a56_0x96cf,0xf1ab3));function a56_0x1eae(_0x1879e5,_0x2178bd){const _0x96cf49=a56_0x96cf();return a56_0x1eae=function(_0x1eae48,_0x5b5844){_0x1eae48=_0x1eae48-0x101;let _0x281f77=_0x96cf49[_0x1eae48];return _0x281f77;},a56_0x1eae(_0x1879e5,_0x2178bd);}const path=require(a56_0x44e358(0x162)),url=require(a56_0x44e358(0x19f)),util=require(a56_0x44e358(0x13d)),helper=require(a56_0x44e358(0x156)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a56_0x44e358(0x156)),{o11yErrorHandler}=require(a56_0x44e358(0x161)),{debug,getPlatformDetails}=require(a56_0x44e358(0x158)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{FRAMEWORKS}=require(a56_0x44e358(0x138)),logger=require(a56_0x44e358(0x165))[a56_0x44e358(0x123)],scripts=require(a56_0x44e358(0x15f)),{browserStackExecuteDriver}=require(a56_0x44e358(0x136)),AccessibilityHelper=require('./accessibility-helper'),constants=require(a56_0x44e358(0x19e)),BrowserstackCLI=require(a56_0x44e358(0x183)),AutomationFrameworkState=require(a56_0x44e358(0x180)),HookState=require(a56_0x44e358(0x1d2)),{performScanWithRetry}=require('../../helpers/accessibility-automation/accessibilityRetryHelper.js'),ClientTroubleShootingService=require(a56_0x44e358(0x15b)),getBrowserNameFromChannel=_0x30820f=>{const _0x52923c=a56_0x44e358,_0x5580f2={};_0x5580f2['Iizix']='6|1|0|7|2|3|5|4',_0x5580f2['NyjYu']=_0x52923c(0x17f),_0x5580f2[_0x52923c(0x147)]=_0x52923c(0x11a),_0x5580f2['PLUDX']=_0x52923c(0x12a),_0x5580f2[_0x52923c(0x1a1)]=_0x52923c(0x170),_0x5580f2[_0x52923c(0x184)]=function(_0x4e91a6,_0x3f57f1){return _0x4e91a6===_0x3f57f1;},_0x5580f2[_0x52923c(0x163)]=_0x52923c(0x187),_0x5580f2[_0x52923c(0x174)]=function(_0x1877a5,_0x60f2d){return _0x1877a5!==_0x60f2d;},_0x5580f2[_0x52923c(0x1bb)]=_0x52923c(0x1c8),_0x5580f2[_0x52923c(0x1b6)]='edge';const _0x5e6398=_0x5580f2,_0x332f2d=_0x5e6398['Iizix'][_0x52923c(0x130)]('|');let _0xe0af53=0x0;while(!![]){switch(_0x332f2d[_0xe0af53++]){case'0':if(_0x30820f[_0x52923c(0x16a)](_0x5e6398[_0x52923c(0x11b)]))return _0x5e6398['NyjYu'];continue;case'1':if(_0x30820f[_0x52923c(0x16a)](_0x5e6398['vaMND']))return _0x5e6398['vaMND'];continue;case'2':if(_0x30820f[_0x52923c(0x16a)](_0x5e6398[_0x52923c(0x17a)]))return _0x5e6398[_0x52923c(0x17a)];continue;case'3':if(_0x30820f[_0x52923c(0x16a)](_0x5e6398['yJJdQ']))return _0x5e6398[_0x52923c(0x1a1)];continue;case'4':return _0x30820f;case'5':if(_0x5e6398[_0x52923c(0x184)](_0x30820f,_0x5e6398[_0x52923c(0x163)]))return _0x5e6398[_0x52923c(0x163)];continue;case'6':if(!_0x30820f||_0x5e6398[_0x52923c(0x174)](typeof _0x30820f,_0x5e6398['GJgjM']))return _0x5e6398['vaMND'];continue;case'7':if(_0x30820f[_0x52923c(0x16a)](_0x5e6398[_0x52923c(0x1b6)]))return _0x5e6398['lnECc'];continue;}break;}},getBrowserFromWSEndpoint=_0x33685b=>{const _0xb028ec=a56_0x44e358,_0x3cf2b0={'hPjcj':_0xb028ec(0x17f),'CrVkA':function(_0x15ac3c,_0x32fc52){return _0x15ac3c(_0x32fc52);}};try{const _0x2dd71f=url['parse'](_0x33685b),_0x593037=new URLSearchParams(_0x2dd71f[_0xb028ec(0x1b2)]),_0x560133=Object[_0xb028ec(0x143)](_0x593037[_0xb028ec(0x188)]()),_0x118bb9=JSON[_0xb028ec(0x133)](_0x560133[_0xb028ec(0x109)]);if(_0x118bb9&&(_0x118bb9[_0xb028ec(0x121)]||_0x118bb9[_0xb028ec(0x1bd)]))return _0x118bb9[_0xb028ec(0x121)]||_0x118bb9[_0xb028ec(0x1bd)];return _0x3cf2b0[_0xb028ec(0x175)];}catch(_0x3be942){_0x3cf2b0['CrVkA'](debug,_0xb028ec(0x108)+_0x3be942['toString']());}},getCloudProviderFromWsEndpoint=_0x873e27=>{const _0x2ac085=a56_0x44e358,_0xa89ad2={};_0xa89ad2[_0x2ac085(0x1c2)]='browserstack',_0xa89ad2[_0x2ac085(0x1ae)]=_0x2ac085(0x1d1);const _0x5a4fc6=_0xa89ad2;if(_0x873e27[_0x2ac085(0x16a)](constants[_0x2ac085(0x104)])||_0x873e27['includes'](constants[_0x2ac085(0x105)]))return _0x5a4fc6[_0x2ac085(0x1c2)];return _0x5a4fc6[_0x2ac085(0x1ae)];},a56_0x19a660={};a56_0x19a660[a56_0x44e358(0x16c)]=undefined,a56_0x19a660[a56_0x44e358(0x18a)]=undefined,a56_0x19a660[a56_0x44e358(0x121)]=undefined,a56_0x19a660['browser_version']=undefined,a56_0x19a660['platform']=undefined,a56_0x19a660[a56_0x44e358(0x1b7)]=undefined,a56_0x19a660[a56_0x44e358(0x1b8)]=undefined,a56_0x19a660[a56_0x44e358(0x1cb)]={};class PlaywrightSessionDetails{static [a56_0x44e358(0x171)]=a56_0x19a660;constructor(){const _0x283e05=a56_0x44e358,_0x5708f3={};_0x5708f3['wZvbE']='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x77b95f=_0x5708f3;throw new Error(_0x77b95f[_0x283e05(0x1a2)]);}static [a56_0x44e358(0x191)]=null;static[a56_0x44e358(0x1ad)](_0x42e327,_0x4d39dc,_0x1c3e1f=null){const _0xbba7bb=a56_0x44e358,_0x2c913e={'xbaYv':_0xbba7bb(0x1a9),'eVYDM':function(_0x2170f3){return _0x2170f3();},'hYlqz':_0xbba7bb(0x1cc),'bPnlR':_0xbba7bb(0x1cd),'Cizyz':_0xbba7bb(0x1a5),'UcynH':'unknown','LdOBL':function(_0x5e859a,_0x5feb43){return _0x5e859a===_0x5feb43;},'jfgWm':_0xbba7bb(0x160),'DhXCZ':_0xbba7bb(0x151),'caBUb':_0xbba7bb(0x1c0),'vlNwn':function(_0x5cc27e,_0x297913){return _0x5cc27e===_0x297913;},'fGOhh':function(_0x10eb55,_0x2ca76a,_0x1a474a){return _0x10eb55(_0x2ca76a,_0x1a474a);},'uRJPs':_0xbba7bb(0x149),'ANiTl':'_defaultConnectOptions','loaOn':_0xbba7bb(0x1a8),'PjKaO':_0xbba7bb(0x15c),'lfHTb':_0xbba7bb(0x1ac),'BcAGX':function(_0x1ba170,_0xf9e765){return _0x1ba170(_0xf9e765);},'GTDjh':function(_0x2456e0,_0x577e9f){return _0x2456e0===_0x577e9f;},'UtIHU':_0xbba7bb(0x1c5),'vsuKl':_0xbba7bb(0x1c4),'NxaDJ':function(_0x4f9165,_0x2e2947){return _0x4f9165&&_0x2e2947;},'TVjjX':function(_0x130349){return _0x130349();},'FrhRF':function(_0x2edf43){return _0x2edf43();},'fbFQy':function(_0x2fdd09,_0x390e26){return _0x2fdd09(_0x390e26);},'FLwtO':function(_0x5a6200,_0x36a752){return _0x5a6200+_0x36a752;},'VfOvS':_0xbba7bb(0x155),'BOiXp':function(_0xc29f77,_0x349c57){return _0xc29f77||_0x349c57;},'EHBBp':'setupBrowserDetails'},_0xc3aa62=this;return _0x2c913e[_0xbba7bb(0x16d)](o11yErrorHandler,async function _0x302e07(_0x1cc633,_0x54a11e,_0x58bea2=null){const _0x2d353c=_0xbba7bb;if(!_0x1cc633){logger[_0x2d353c(0x17b)](_0x2c913e[_0x2d353c(0x14c)]),_0xc3aa62[_0x2d353c(0x171)]=Object[_0x2d353c(0x16e)]({},_0xc3aa62['currentSessionDetails'],{'cloudProvider':_0x2c913e[_0x2d353c(0x179)](isBrowserstackInfra)?_0x2c913e[_0x2d353c(0x1c1)]:_0x2c913e['bPnlR'],'browser':_0x2c913e[_0x2d353c(0x1c9)],'browser_version':_0x2c913e[_0x2d353c(0x17d)]});return;}let _0x2acb0b=_0x1cc633[_0x2d353c(0x197)],_0x1c63a5=null;_0x1cc633&&_0x2c913e['LdOBL'](typeof _0x1cc633[_0x2d353c(0x101)],_0x2c913e[_0x2d353c(0x1c3)])?_0x1c63a5=_0x1cc633['version']():logger[_0x2d353c(0x17b)](_0x2c913e[_0x2d353c(0x1cf)]);let _0x148967=null;_0x1cc633&&_0x2c913e[_0x2d353c(0x117)](typeof _0x1cc633[_0x2d353c(0x115)],_0x2c913e[_0x2d353c(0x1c3)])?_0x148967=_0x1cc633[_0x2d353c(0x115)]():logger[_0x2d353c(0x17b)](_0x2c913e[_0x2d353c(0x14f)]);let _0x511ba9=null,_0x2c9b93=null,_0x365960=null,_0x3cb0b1=_0x2c913e[_0x2d353c(0x1ab)];const _0x36f6fa=_0x1cc633['_connection']&&_0x2c913e[_0x2d353c(0x177)](typeof _0x1cc633[_0x2d353c(0x15d)][_0x2d353c(0x178)],_0x2c913e['jfgWm'])?_0x1cc633[_0x2d353c(0x15d)][_0x2d353c(0x178)]():![];if(_0x36f6fa||global[_0x2d353c(0x111)]&&!process[_0x2d353c(0x199)]['BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE']){let _0x12a196=null;_0x2c913e['fGOhh'](nestedKeyValue,_0x1cc633,[_0x2c913e[_0x2d353c(0x1b9)],_0x2c913e['ANiTl']])?_0x12a196=_0x1cc633[_0x2d353c(0x149)][_0x2d353c(0x189)]:_0x12a196=_0x2c913e[_0x2d353c(0x16d)](nestedKeyValue,_0x54a11e,[_0x2c913e[_0x2d353c(0x1ce)],_0x2c913e['PjKaO'],_0x2c913e[_0x2d353c(0x18c)]]);const _0x42b332=_0x58bea2||_0x12a196&&_0x12a196[_0x2d353c(0x13c)];if(_0x42b332){_0x3cb0b1=_0x2c913e['BcAGX'](getCloudProviderFromWsEndpoint,_0x42b332);if(_0x2c913e[_0x2d353c(0x1d0)](_0x3cb0b1,_0x2c913e[_0x2d353c(0x1c1)]))_0x365960=constants[_0x2d353c(0x10f)][_0x2d353c(0x16f)](_0x42b332)?_0x2c913e['UtIHU']:_0x2c913e[_0x2d353c(0x166)],_0x2acb0b=_0x2c913e['BcAGX'](getBrowserFromWSEndpoint,_0x42b332)||_0x2acb0b,_0x511ba9=_0xc3aa62[_0x2d353c(0x171)]['platform'],_0x2c9b93=_0xc3aa62['currentSessionDetails'][_0x2d353c(0x1b7)];else{const _0x6e8440=await _0x2c913e[_0x2d353c(0x179)](getPlatformDetails);_0x511ba9=_0x6e8440['platformName'],_0x2c9b93=_0x6e8440['platformVersion'];}}if(_0x2c913e[_0x2d353c(0x1bf)](!_0x511ba9,!_0x2c9b93)&&!_0x2c913e[_0x2d353c(0x12e)](isBrowserstackInfra)){const _0x5ce23a=await _0x2c913e[_0x2d353c(0x110)](getPlatformDetails);_0x511ba9=_0x5ce23a['platformName'],_0x2c9b93=_0x5ce23a['platformVersion'];}}else{_0x54a11e&&_0x54a11e['project'][_0x2d353c(0x15c)][_0x2d353c(0x137)]?_0x2acb0b=_0x2c913e[_0x2d353c(0x10a)](getBrowserNameFromChannel,_0x54a11e[_0x2d353c(0x1a8)][_0x2d353c(0x15c)][_0x2d353c(0x137)]):_0x2acb0b=_0x2c913e[_0x2d353c(0x150)](_0x2c913e[_0x2d353c(0x17e)],_0x2c913e[_0x2d353c(0x142)](_0x2acb0b,_0x2c913e[_0x2d353c(0x17d)])[_0x2d353c(0x196)]());const _0x4b0413=await _0x2c913e[_0x2d353c(0x110)](getPlatformDetails);_0x511ba9=_0x4b0413['platformName'],_0x2c9b93=_0x4b0413[_0x2d353c(0x19c)];}const _0x836bcd={};_0x836bcd['browser']=_0x2acb0b,_0x836bcd['browser_version']=_0x1c63a5,_0x836bcd[_0x2d353c(0x1cb)]={},_0x836bcd['platform']=_0x511ba9,_0x836bcd['platform_version']=_0x2c9b93,_0x836bcd[_0x2d353c(0x1b8)]=_0x365960;const _0x516a2f=_0x836bcd;_0x148967&&(_0x516a2f['capabilities'][_0x2d353c(0x12d)]=_0x148967);const _0x58a4a4={};_0x58a4a4[_0x2d353c(0x16c)]=_0x3cb0b1,_0xc3aa62[_0x2d353c(0x171)]=Object['assign']({},_0xc3aa62[_0x2d353c(0x171)],_0x58a4a4,_0x516a2f);},_0x2c913e[_0xbba7bb(0x13e)])(_0x42e327,_0x4d39dc,_0x1c3e1f);}static['patch'](){const _0x5144de=a56_0x44e358;this[_0x5144de(0x126)](),this['patchCRConnection']();}static[a56_0x44e358(0x126)](){const _0x574a0d=a56_0x44e358,_0x56ac19={'czDIH':function(_0x351e5f,_0x2be1ae,_0x40f317){return _0x351e5f(_0x2be1ae,_0x40f317);},'tEhPU':'currentTest','fyohe':_0x574a0d(0x12c),'nXjVG':_0x574a0d(0x14a),'nefHg':function(_0x3e1a28,_0x1f3213,_0x30297a){return _0x3e1a28(_0x1f3213,_0x30297a);},'WUouX':_0x574a0d(0x168),'QHdNy':_0x574a0d(0x10d),'AQADl':function(_0x24c1ae,_0x4e6d9b,_0xd3c7cb){return _0x24c1ae(_0x4e6d9b,_0xd3c7cb);},'JMfij':function(_0x4c5992,_0x5ef06f){return _0x4c5992===_0x5ef06f;},'oejNj':'Page','bRkoP':function(_0x52083b,_0x3263da,_0x310d64,_0x1e4e55){return _0x52083b(_0x3263da,_0x310d64,_0x1e4e55);},'LPAyz':function(_0x1e128c,_0x27fbd6){return _0x1e128c||_0x27fbd6;},'ThrnJ':function(_0x4d84e4,_0xec2e8b){return _0x4d84e4(_0xec2e8b);},'RznWF':_0x574a0d(0x118),'OSJRm':function(_0x3d96c4,_0x219062){return _0x3d96c4!=_0x219062;},'ngbgq':function(_0xa1ea9f){return _0xa1ea9f();},'WkHPo':_0x574a0d(0x1b0),'wigcq':_0x574a0d(0x14d),'KCGGp':_0x574a0d(0x146)},_0x3ddf03=this;!this[_0x574a0d(0x127)]&&(this[_0x574a0d(0x127)]=helper[_0x574a0d(0x18d)](),!this[_0x574a0d(0x127)]&&_0x56ac19['ThrnJ'](debug,_0x56ac19['RznWF']));const _0x360625=this[_0x574a0d(0x127)];if(_0x56ac19['OSJRm'](_0x360625,null)&&_0x360625[_0x574a0d(0x131)][_0x574a0d(0x1aa)])return;try{if(_0x56ac19['OSJRm'](_0x360625,null)){const _0x2edc63=_0x360625['prototype'][_0x574a0d(0x14d)],_0xa9813c=_0x360625[_0x574a0d(0x131)]['sendMessageToServer'];_0x56ac19[_0x574a0d(0x13b)](isAccessibilityAutomationSession)&&Object[_0x574a0d(0x157)](_0x360625['prototype'],_0x56ac19[_0x574a0d(0x10b)],{'get':function(){return async function(){const _0xe6f6e6=a56_0x1eae;try{if(!global['bstackPerformA11yScan']&&global[_0xe6f6e6(0x111)]&&_0x56ac19[_0xe6f6e6(0x120)](nestedKeyValue,global['__workerDetails'],[_0x56ac19[_0xe6f6e6(0x1b1)],_0x56ac19[_0xe6f6e6(0x1b3)],_0x56ac19[_0xe6f6e6(0x1bc)]])&&_0x56ac19['czDIH'](shouldScanTestForAccessibility,global[_0xe6f6e6(0x168)]['currentTest'][_0xe6f6e6(0x12c)]['titlePath'],!![])&&scripts['shouldWrapCommand'](arguments[0x1])){logger[_0xe6f6e6(0x17b)](_0xe6f6e6(0x19d)+arguments[0x1]),global[_0xe6f6e6(0x152)]=!![];const _0x4a5b7e=_0x56ac19[_0xe6f6e6(0x1a6)](nestedKeyValue,global,[_0x56ac19[_0xe6f6e6(0x102)],_0x56ac19[_0xe6f6e6(0x1af)]]);_0x4a5b7e&&logger['info']('Page\x20Scan\x20result='+util[_0xe6f6e6(0x15a)](await _0x56ac19[_0xe6f6e6(0x14b)](performScanWithRetry,_0x4a5b7e,arguments[0x1]))),_0x56ac19[_0xe6f6e6(0x139)](arguments[0x0][_0xe6f6e6(0x140)],_0x56ac19[_0xe6f6e6(0x192)])&&global[_0xe6f6e6(0x173)]&&logger[_0xe6f6e6(0x124)](_0xe6f6e6(0x1c7)+util[_0xe6f6e6(0x15a)](await _0x56ac19[_0xe6f6e6(0x181)](performScanWithRetry,global['__driver'],arguments[0x1],scripts[_0xe6f6e6(0x167)])));}}catch(_0x3bfb71){logger['debug'](_0xe6f6e6(0x182)+util[_0xe6f6e6(0x15a)](_0x3bfb71));}return global[_0xe6f6e6(0x152)]=![],_0xa9813c[_0xe6f6e6(0x185)](this,arguments);};}}),!_0x56ac19[_0x574a0d(0x19b)](isFalse,process[_0x574a0d(0x199)][_0x574a0d(0x1a4)])&&Object['defineProperty'](_0x360625['prototype'],_0x56ac19['wigcq'],{'get':function(){const _0x23a183={'JtrvB':function(_0x15bd79,_0x56452d){const _0xaba8c0=a56_0x1eae;return _0x56ac19[_0xaba8c0(0x1ca)](_0x15bd79,_0x56452d);},'OTjqk':function(_0x3ae24e,_0x3d317c){const _0x40be6e=a56_0x1eae;return _0x56ac19[_0x40be6e(0x19b)](_0x3ae24e,_0x3d317c);}};return async function _0x5badb4(_0x58f77c){const _0x329925=a56_0x1eae,_0x5c64c9=_0x2edc63[_0x329925(0x185)](this,arguments);if(BrowserstackCLI[_0x329925(0x16b)]()[_0x329925(0x148)]()){const _0x386055={};_0x386055['message']=_0x58f77c,await BrowserstackCLI[_0x329925(0x16b)]()[_0x329925(0x10e)]()[_0x329925(0x134)](AutomationFrameworkState[_0x329925(0x1a0)],HookState[_0x329925(0x145)],_0x386055);}else{const _0x5625ee=_0x58f77c&&_0x58f77c[_0x329925(0x18f)]&&_0x58f77c['params'][_0x329925(0x15e)];if(_0x5625ee){const _0x45433e=_0x5625ee[_0x329925(0x114)],_0x2123d8=_0x5625ee[_0x329925(0x11d)];_0x23a183[_0x329925(0x10c)](!_0x45433e,!_0x2123d8)&&await ClientTroubleShootingService[_0x329925(0x12b)](),_0x2123d8&&(_0x23a183[_0x329925(0x169)](debug,_0x329925(0x1ba)+_0x2123d8[_0x329925(0x190)]()),_0x3ddf03['currentSessionDetails'][_0x329925(0x103)]=_0x2123d8[_0x329925(0x195)],_0x3ddf03['currentSessionDetails'][_0x329925(0x1b7)]=_0x2123d8['platformVersion']),_0x45433e&&(_0x23a183[_0x329925(0x169)](debug,_0x329925(0x1b5)+_0x45433e),_0x3ddf03[_0x329925(0x171)]['bsSessionId']=_0x45433e);}}return _0x5c64c9;};}}),_0x360625['prototype']['_bstackDispatchPatched']=!![],logger[_0x574a0d(0x17b)](_0x56ac19['KCGGp']);}}catch(_0x5b5c99){_0x56ac19[_0x574a0d(0x19b)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x5b5c99),_0x3ddf03[_0x574a0d(0x191)]=_0x5b5c99['toString']();}}static[a56_0x44e358(0x13a)](){const _0x104d06=a56_0x44e358,_0x4b57d2={'yuyjI':function(_0x265667,_0x382310){return _0x265667(_0x382310);},'yfimW':function(_0x3462e5){return _0x3462e5();},'cFaml':function(_0x3c32d7,_0x111a2f){return _0x3c32d7>=_0x111a2f;},'lXuRp':_0x104d06(0x198),'JcnPX':function(_0x544e96,_0x225ef9){return _0x544e96(_0x225ef9);},'lNWVY':'CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','Bzron':_0x104d06(0x11c),'mCCrG':'server','XWrsU':_0x104d06(0x11a),'LJLmY':'crConnection.js','NGYgy':function(_0x3b9d8e,_0x185bcb){return _0x3b9d8e(_0x185bcb);},'JACQU':function(_0x187be2,_0x58d526){return _0x187be2(_0x58d526);},'lbXQx':'Not\x20able\x20to\x20import\x20crConnection','kwhsT':function(_0x17d5ef,_0x4456c6){return _0x17d5ef(_0x4456c6);},'XNtJn':_0x104d06(0x159),'vkuGh':function(_0x4efa4,_0x3e8930){return _0x4efa4!=_0x3e8930;},'IGqSF':_0x104d06(0x13f)},_0x25d719=this;if(_0x4b57d2[_0x104d06(0x135)](isAccessibilityAutomationSession)){let _0x353e7a=null,_0x21a837=![];try{const _0x892be3=helper[_0x104d06(0x164)](FRAMEWORKS[_0x104d06(0x107)]);_0x21a837=_0x4b57d2[_0x104d06(0x1be)](helper[_0x104d06(0x11e)](_0x892be3,_0x4b57d2['lXuRp']),0x0);}catch(_0x193c9d){_0x4b57d2[_0x104d06(0x18e)](debug,_0x104d06(0x14e)+_0x193c9d[_0x104d06(0x190)]());}if(_0x21a837)_0x4b57d2[_0x104d06(0x18e)](debug,_0x4b57d2[_0x104d06(0x128)]);else try{const _0x577528=path[_0x104d06(0x1a3)](_0x4b57d2['Bzron'],_0x4b57d2[_0x104d06(0x106)],_0x4b57d2[_0x104d06(0x122)],_0x4b57d2[_0x104d06(0x129)]),_0x12b235=_0x4b57d2[_0x104d06(0x141)](importFileFromPWCore,_0x577528);!_0x12b235?_0x4b57d2[_0x104d06(0x119)](debug,_0x4b57d2[_0x104d06(0x193)]):_0x353e7a=_0x12b235[_0x104d06(0x153)];}catch(_0x550619){_0x4b57d2[_0x104d06(0x1b4)](debug,_0x4b57d2[_0x104d06(0x113)]);}try{if(_0x4b57d2['vkuGh'](_0x353e7a,null)){const _0x5a43df=_0x353e7a[_0x104d06(0x131)][_0x104d06(0x13f)];Object[_0x104d06(0x157)](_0x353e7a['prototype'],_0x4b57d2['IGqSF'],{'get':function(){const _0x28954d={'FODCe':function(_0x3cb30a,_0x1bb800){return _0x4b57d2['yuyjI'](_0x3cb30a,_0x1bb800);}};return async function _0x2a996c(_0x61d05){const _0x12c704=a56_0x1eae;try{if(BrowserstackCLI[_0x12c704(0x16b)]()[_0x12c704(0x148)]()){const _0x265e00={};_0x265e00['message']=_0x61d05,await BrowserstackCLI['getInstance']()['getAutomationFramework']()['trackEvent'](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x12c704(0x145)],_0x265e00),delete _0x61d05[_0x12c704(0x132)];}else{const _0x23fe89=_0x61d05[_0x12c704(0x132)];if(_0x23fe89){delete _0x61d05[_0x12c704(0x132)];const _0x245ef9=_0x23fe89[_0x12c704(0x114)],_0xd69a05=_0x23fe89[_0x12c704(0x11d)];_0xd69a05&&(_0x28954d[_0x12c704(0x176)](debug,'Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20'+_0xd69a05['toString']()),_0x25d719['currentSessionDetails'][_0x12c704(0x103)]=_0xd69a05[_0x12c704(0x195)],_0x25d719[_0x12c704(0x171)][_0x12c704(0x1b7)]=_0xd69a05[_0x12c704(0x19c)]),_0x245ef9&&(_0x28954d[_0x12c704(0x176)](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x245ef9),_0x25d719[_0x12c704(0x171)]['bsSessionId']=_0x245ef9);}}}catch(_0x1e0090){_0x28954d[_0x12c704(0x176)](debug,_0x12c704(0x154)+_0x1e0090[_0x12c704(0x190)]());}return _0x5a43df['apply'](this,arguments);};}});}}catch(_0x427f69){_0x4b57d2[_0x104d06(0x1b4)](debug,_0x104d06(0x1c6)+_0x427f69),_0x25d719[_0x104d06(0x191)]=_0x427f69[_0x104d06(0x190)]();}}}static[a56_0x44e358(0x116)](){return this['currentSessionDetails'];}}function a56_0x96cf(){const _0x2ddeb0=['Setting\x20session\x20id\x20received\x20from\x20BS\x20','lnECc','platform_version','product','uRJPs','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','GJgjM','nXjVG','browserName','cFaml','NxaDJ','Device\x20Model\x20is\x20not\x20available','hYlqz','WAmGn','jfgWm','automate','turboscale','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','Driver\x20Scan\x20result=','string','Cizyz','LPAyz','capabilities','browserstack','local_grid','loaOn','DhXCZ','GTDjh','unknown_grid','../v2/state/hookState.js','exports','version','WUouX','platform','BSTACK_URL','BSTACK_ATS_URL','mCCrG','PLAYWRIGHT','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','caps','fbFQy','WkHPo','JtrvB','pwPage','getAutomationFramework','ATS_WSS_URL_REGEX','FrhRF','accessibilityPlatform','6hfgJlV','XNtJn','sessionId','model','getDetails','LdOBL','Not\x20able\x20to\x20resolve\x20Connection\x20class','JACQU','chromium','NyjYu','lib','platformDetails','compareVersions','6RKXEMJ','czDIH','browser','XWrsU','winstonLogger','info','2drWTtm','patchConnection','Connection','lNWVY','LJLmY','firefox','reportSessionLinkingIssue','testInfo','deviceModel','TVjjX','7870745vQdjQO','split','prototype','bStackParams','parse','trackEvent','yfimW','../../bin/playwright/accessibility-helper','channel','../../helpers/test-observability/constants','JMfij','patchCRConnection','ngbgq','wsEndpoint','util','EHBBp','_onMessage','_type','NGYgy','BOiXp','fromEntries','1044ZsnIlT','POST','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','vaMND','isRunning','_browserType','titlePath','AQADl','xbaYv','dispatch','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','caBUb','FLwtO','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','bstackPerformA11yScan','CRConnection','Error\x20in\x20finding\x20platform\x20details\x20','playwright-','../../helpers/helper','defineProperty','../../helpers/test-observability/utils','Error\x20in\x20importing\x20crConnection','format','../utils/clientTroubleshootingService.js','use','_connection','bsParams','../../helpers/accessibility-automation/scripts','function','../../helpers/test-observability/error-handler','path','bIyVP','getFrameworkVersion','../../helpers/logger','vsuKl','performScan','__workerDetails','OTjqk','includes','getInstance','cloudProvider','fGOhh','assign','test','safari','currentSessionDetails','1270tEMLNn','__driver','ErNbx','hPjcj','FODCe','vlNwn','isRemote','eVYDM','PLUDX','debug','139707mXvHWS','UcynH','VfOvS','chrome','../v2/state/automationFrameworkState.js','bRkoP','Failed\x20to\x20perform\x20scan\x20','../v2/browserstackCLI','IpCcm','apply','342088AXSItY','webkit','entries','_defaultConnectOptions','bsSessionId','76010YNhzXq','lfHTb','resolveConnectionClass','JcnPX','params','toString','sessionError','oejNj','lbXQx','3075672HyZtOG','platformName','toLowerCase','_name','1.60.0','env','582353rULRuF','ThrnJ','platformVersion','Performing\x20scan\x20for\x20','../utils/constants','url','PLAYWRIGHT_DISPATCH','yJJdQ','wZvbE','join','BROWSERSTACK_TEST_OBSERVABILITY','playwright','nefHg','10938977jVxYCi','project','setupBrowserDetails:\x20browser\x20param\x20is\x20nil;\x20populating\x20playwright\x20fallback\x20so\x20TRA\x20does\x20not\x20render\x20\x22Unknown\x22','_bstackDispatchPatched','bPnlR','connectOptions','setupBrowserDetails','vZDWq','QHdNy','sendMessageToServer','tEhPU','query','fyohe','kwhsT'];a56_0x96cf=function(){return _0x2ddeb0;};return a56_0x96cf();}module[a56_0x44e358(0x1d3)]=PlaywrightSessionDetails;
|
|
1
|
+
const a54_0x3c6080=a54_0x5ba5;(function(_0x2ce317,_0x5277a9){const _0x13d8f6=a54_0x5ba5,_0x56734b=_0x2ce317();while(!![]){try{const _0x129351=parseInt(_0x13d8f6(0x161))/0x1*(-parseInt(_0x13d8f6(0x166))/0x2)+parseInt(_0x13d8f6(0x1a3))/0x3+parseInt(_0x13d8f6(0x127))/0x4*(parseInt(_0x13d8f6(0x145))/0x5)+-parseInt(_0x13d8f6(0x1b2))/0x6*(parseInt(_0x13d8f6(0x129))/0x7)+parseInt(_0x13d8f6(0x1ea))/0x8+parseInt(_0x13d8f6(0x19a))/0x9*(-parseInt(_0x13d8f6(0x146))/0xa)+-parseInt(_0x13d8f6(0x156))/0xb*(-parseInt(_0x13d8f6(0x138))/0xc);if(_0x129351===_0x5277a9)break;else _0x56734b['push'](_0x56734b['shift']());}catch(_0x21707e){_0x56734b['push'](_0x56734b['shift']());}}}(a54_0x45d8,0x876a2));const path=require(a54_0x3c6080(0x1bb)),url=require(a54_0x3c6080(0x152)),util=require('util'),helper=require(a54_0x3c6080(0x167)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a54_0x3c6080(0x167)),{o11yErrorHandler}=require(a54_0x3c6080(0x177)),{debug,getPlatformDetails}=require(a54_0x3c6080(0x191)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a54_0x3c6080(0x1df)),{FRAMEWORKS}=require(a54_0x3c6080(0x189)),logger=require(a54_0x3c6080(0x16b))[a54_0x3c6080(0x1af)],scripts=require(a54_0x3c6080(0x1b8)),{browserStackExecuteDriver}=require(a54_0x3c6080(0x1b7)),AccessibilityHelper=require('./accessibility-helper'),constants=require(a54_0x3c6080(0x12f)),BrowserstackCLI=require(a54_0x3c6080(0x1e3)),AutomationFrameworkState=require(a54_0x3c6080(0x12e)),HookState=require('../v2/state/hookState.js'),{performScanWithRetry}=require('../../helpers/accessibility-automation/accessibilityRetryHelper.js'),ClientTroubleShootingService=require(a54_0x3c6080(0x137)),getBrowserNameFromChannel=_0x1f4bdf=>{const _0x28daeb=a54_0x3c6080,_0x51d1bd={};_0x51d1bd['JJuGH']='4|1|2|7|6|0|3|5',_0x51d1bd[_0x28daeb(0x197)]=_0x28daeb(0x196),_0x51d1bd['uneol']=_0x28daeb(0x1c7),_0x51d1bd['fgsKo']=_0x28daeb(0x1ba),_0x51d1bd[_0x28daeb(0x17a)]=function(_0x4c8475,_0x3ce801){return _0x4c8475===_0x3ce801;},_0x51d1bd[_0x28daeb(0x1f2)]='webkit',_0x51d1bd[_0x28daeb(0x133)]=function(_0x3c63f6,_0x3801e0){return _0x3c63f6!==_0x3801e0;},_0x51d1bd[_0x28daeb(0x14a)]=_0x28daeb(0x17d),_0x51d1bd['Iqion']=_0x28daeb(0x163),_0x51d1bd[_0x28daeb(0x18b)]=_0x28daeb(0x19d);const _0x4ae78d=_0x51d1bd,_0x17e3e9=_0x4ae78d[_0x28daeb(0x1de)]['split']('|');let _0x113c91=0x0;while(!![]){switch(_0x17e3e9[_0x113c91++]){case'0':if(_0x1f4bdf['includes'](_0x4ae78d[_0x28daeb(0x197)]))return _0x4ae78d[_0x28daeb(0x197)];continue;case'1':if(_0x1f4bdf[_0x28daeb(0x131)](_0x4ae78d[_0x28daeb(0x16e)]))return _0x4ae78d['uneol'];continue;case'2':if(_0x1f4bdf['includes'](_0x4ae78d[_0x28daeb(0x124)]))return _0x4ae78d[_0x28daeb(0x124)];continue;case'3':if(_0x4ae78d['CSfOi'](_0x1f4bdf,_0x4ae78d[_0x28daeb(0x1f2)]))return _0x4ae78d['lWOpe'];continue;case'4':if(!_0x1f4bdf||_0x4ae78d['ZwqQW'](typeof _0x1f4bdf,_0x4ae78d[_0x28daeb(0x14a)]))return _0x4ae78d[_0x28daeb(0x16e)];continue;case'5':return _0x1f4bdf;case'6':if(_0x1f4bdf[_0x28daeb(0x131)](_0x4ae78d[_0x28daeb(0x176)]))return _0x4ae78d[_0x28daeb(0x176)];continue;case'7':if(_0x1f4bdf['includes'](_0x4ae78d[_0x28daeb(0x18b)]))return _0x4ae78d[_0x28daeb(0x18b)];continue;}break;}},getBrowserFromWSEndpoint=_0x3815bd=>{const _0x4dfb44=a54_0x3c6080,_0x5b5e69={'CGpAT':'chrome','xWBHI':function(_0x5595af,_0x377745){return _0x5595af(_0x377745);}};try{const _0x2b7cc4=url['parse'](_0x3815bd),_0x203b6f=new URLSearchParams(_0x2b7cc4[_0x4dfb44(0x15f)]),_0x263b1e=Object[_0x4dfb44(0x164)](_0x203b6f[_0x4dfb44(0x1eb)]()),_0x2b1090=JSON[_0x4dfb44(0x1e8)](_0x263b1e[_0x4dfb44(0x179)]);if(_0x2b1090&&(_0x2b1090[_0x4dfb44(0x1a4)]||_0x2b1090['browserName']))return _0x2b1090[_0x4dfb44(0x1a4)]||_0x2b1090['browserName'];return _0x5b5e69[_0x4dfb44(0x1b3)];}catch(_0x2c0914){_0x5b5e69['xWBHI'](debug,_0x4dfb44(0x18a)+_0x2c0914['toString']());}},getCloudProviderFromWsEndpoint=_0x428f06=>{const _0x3cc8af=a54_0x3c6080,_0x46f569={};_0x46f569[_0x3cc8af(0x1b1)]=_0x3cc8af(0x158),_0x46f569['WSnoH']=_0x3cc8af(0x182);const _0xd379ab=_0x46f569;if(_0x428f06[_0x3cc8af(0x131)](constants[_0x3cc8af(0x1e2)])||_0x428f06['includes'](constants[_0x3cc8af(0x126)]))return _0xd379ab[_0x3cc8af(0x1b1)];return _0xd379ab[_0x3cc8af(0x184)];},a54_0x422827={};a54_0x422827[a54_0x3c6080(0x15d)]=undefined,a54_0x422827[a54_0x3c6080(0x155)]=undefined,a54_0x422827[a54_0x3c6080(0x1a4)]=undefined,a54_0x422827[a54_0x3c6080(0x1f4)]=undefined,a54_0x422827[a54_0x3c6080(0x144)]=undefined,a54_0x422827[a54_0x3c6080(0x16a)]=undefined,a54_0x422827['product']=undefined,a54_0x422827[a54_0x3c6080(0x1ad)]={};function a54_0x5ba5(_0x339dd7,_0x51ea8e){const _0x45d889=a54_0x45d8();return a54_0x5ba5=function(_0x5ba59f,_0x280e74){_0x5ba59f=_0x5ba59f-0x121;let _0x33d7e5=_0x45d889[_0x5ba59f];return _0x33d7e5;},a54_0x5ba5(_0x339dd7,_0x51ea8e);}function a54_0x45d8(){const _0x5e7fe1=['30WKVwnb','automate','gsKqP','qMscV','yAgBh','trackEvent','zgsGG','Driver\x20Scan\x20result=','CRConnection','pYaqd','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','TUiAO','url','_bstackDispatchPatched','pWNpg','bsSessionId','1221wFAVhO','aaLjN','browserstack','TggaL','version','use','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','cloudProvider','FPeRB','query','BBexu','286090xJEHjq','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','firefox','fromEntries','TTZbp','2ozvgpp','../../helpers/helper','patch','pwPage','platform_version','../../helpers/logger','kJpXt','__driver','uneol','_onMessage','Xseqg','playwright-','dispatch\x20instrumentation\x20error\x20(non-fatal):\x20','IHgUb','erQWZ','Error\x20in\x20importing\x20crConnection','Iqion','../../helpers/test-observability/error-handler','sessionId','caps','CSfOi','IhRIZ','getAutomationFramework','string','accessibilityPlatform','EyTYT','1.60.0','OGFVo','unknown_grid','Performing\x20scan\x20for\x20','WSnoH','PLAYWRIGHT','bstackPerformA11yScan','kUvxF','CiIoZ','../../helpers/test-observability/constants','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','QwSgo','toString','message','isRemote','aTbzg','setupBrowserDetails:\x20browser\x20param\x20is\x20nil;\x20populating\x20playwright\x20fallback\x20so\x20TRA\x20does\x20not\x20render\x20\x22Unknown\x22','../../helpers/test-observability/utils','hgqoB','sessionError','toLowerCase','qpZRw','safari','HLlWd','JiVdq','xGxTx','2524266MeQZpr','RDOzp','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','edge','env','exports','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','prototype','patchCRConnection','724029QolJJk','browser','params','info','YyBEa','platformDetails','format','PLAYWRIGHT_DISPATCH','awOEe','playwright','capabilities','_type','winstonLogger','Error\x20in\x20finding\x20platform\x20details\x20','PcpQG','414tSZOhI','CGpAT','shouldWrapCommand','assign','debug','../../bin/playwright/accessibility-helper','../../helpers/accessibility-automation/scripts','ZXjvA','chrome','path','getInstance','YleMx','resolve','giACa','platformName','channel','GylGf','turboscale','reportSessionLinkingIssue','eZgQV','_browserType','chromium','apply','testInfo','bStackParams','NVSdA','Not\x20able\x20to\x20import\x20crConnection','PKfWK','ixqGt','CwYwA','jGonv','VRYem','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','project','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','LbvAC','platformVersion','isRunning','Connection','tfQbp','crConnection.js','lib','Page\x20Scan\x20result=','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','JJuGH','../../helpers/accessibility-automation/helper','compareVersions','dispatch','BSTACK_URL','../v2/browserstackCLI','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','Device\x20Model\x20is\x20not\x20available','_connection','szlBF','parse','currentSessionDetails','4006672TMlGdQ','entries','BRUPd','join','CUFRp','CkXjk','function','_defaultConnectOptions','lWOpe','server','browser_version','GylId','fcaGV','AyizI','MzdiB','FPIEu','tVvKi','currentTest','setupBrowserDetails','defineProperty','fgsKo','yMNdv','BSTACK_ATS_URL','115788aNeUSN','model','805YHqtog','patchConnection','__workerDetails','product','ATS_WSS_URL_REGEX','../v2/state/automationFrameworkState.js','../utils/constants','hgOpW','includes','sendMessageToServer','ZwqQW','catch','vAIVK','POST','../utils/clientTroubleshootingService.js','43020mtYPLB','Jutqd','gCuoB','bQVzW','Setting\x20session\x20id\x20received\x20from\x20BS\x20','local_grid','tSQcz','WunDy','HcwFN','nQVpN','connectOptions','Not\x20able\x20to\x20resolve\x20Connection\x20class','platform','95MExbFL'];a54_0x45d8=function(){return _0x5e7fe1;};return a54_0x45d8();}class PlaywrightSessionDetails{static [a54_0x3c6080(0x1e9)]=a54_0x422827;constructor(){const _0x3c8447=a54_0x3c6080,_0x4892c8={};_0x4892c8[_0x3c8447(0x130)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x3bb65e=_0x4892c8;throw new Error(_0x3bb65e[_0x3c8447(0x130)]);}static [a54_0x3c6080(0x193)]=null;static[a54_0x3c6080(0x122)](_0x1ab9a9,_0x2c9381,_0x5026eb=null){const _0x45abbe=a54_0x3c6080,_0x15e1d8={'CiIoZ':_0x45abbe(0x190),'gCuoB':function(_0x2e557c){return _0x2e557c();},'Xseqg':_0x45abbe(0x158),'jGonv':_0x45abbe(0x13d),'GylId':_0x45abbe(0x1ac),'AyizI':'unknown','CwYwA':function(_0x7616a0,_0x1132e0){return _0x7616a0===_0x1132e0;},'GylGf':_0x45abbe(0x1f0),'JiVdq':_0x45abbe(0x1a0),'tVvKi':function(_0x4dbdf9,_0x4c5dcf){return _0x4dbdf9===_0x4c5dcf;},'PKfWK':_0x45abbe(0x1e5),'TTZbp':function(_0x22317b,_0x12afea,_0x4120b7){return _0x22317b(_0x12afea,_0x4120b7);},'vAIVK':_0x45abbe(0x1c6),'IHgUb':_0x45abbe(0x1f1),'qdSEP':_0x45abbe(0x1d3),'zgsGG':_0x45abbe(0x15b),'awOEe':_0x45abbe(0x142),'hgqoB':function(_0x462fb0,_0x128256){return _0x462fb0(_0x128256);},'tfQbp':function(_0x265e4f,_0x336911){return _0x265e4f===_0x336911;},'ixqGt':_0x45abbe(0x1c3),'szlBF':_0x45abbe(0x147),'yUrXT':function(_0x4d9997){return _0x4d9997();},'yMNdv':function(_0x25bf6d,_0x330457){return _0x25bf6d&&_0x330457;},'tSQcz':function(_0xf33203){return _0xf33203();},'JKaMx':function(_0x5be68b,_0x295f13){return _0x5be68b(_0x295f13);},'qpZRw':function(_0xd210d2,_0x115433){return _0xd210d2+_0x115433;},'RDOzp':_0x45abbe(0x171),'qoxHl':function(_0x46e8b6,_0x5abd0e){return _0x46e8b6||_0x5abd0e;},'erQWZ':function(_0x19c782){return _0x19c782();},'FPeRB':function(_0x361aad,_0x54297b,_0x1e6c8a){return _0x361aad(_0x54297b,_0x1e6c8a);},'OGFVo':_0x45abbe(0x122)},_0x273e41=this;return _0x15e1d8[_0x45abbe(0x15e)](o11yErrorHandler,async function _0x58b191(_0x58aecf,_0x364ff1,_0x561742=null){const _0x5791f9=_0x45abbe;if(!_0x58aecf){logger[_0x5791f9(0x1b6)](_0x15e1d8[_0x5791f9(0x188)]),_0x273e41[_0x5791f9(0x1e9)]=Object[_0x5791f9(0x1b5)]({},_0x273e41[_0x5791f9(0x1e9)],{'cloudProvider':_0x15e1d8[_0x5791f9(0x13a)](isBrowserstackInfra)?_0x15e1d8[_0x5791f9(0x170)]:_0x15e1d8[_0x5791f9(0x1d0)],'browser':_0x15e1d8[_0x5791f9(0x1f5)],'browser_version':_0x15e1d8['AyizI']});return;}let _0x4d9403=_0x58aecf['_name'],_0x4ea41a=null;_0x58aecf&&_0x15e1d8[_0x5791f9(0x1cf)](typeof _0x58aecf[_0x5791f9(0x15a)],_0x15e1d8[_0x5791f9(0x1c2)])?_0x4ea41a=_0x58aecf['version']():logger['debug'](_0x15e1d8[_0x5791f9(0x198)]);let _0x5c4390=null;_0x58aecf&&_0x15e1d8[_0x5791f9(0x1fa)](typeof _0x58aecf[_0x5791f9(0x128)],_0x15e1d8['GylGf'])?_0x5c4390=_0x58aecf['model']():logger[_0x5791f9(0x1b6)](_0x15e1d8[_0x5791f9(0x1cd)]);let _0x1ebfc6=null,_0x2ad04f=null,_0x2db584=null,_0x3f13a4=_0x15e1d8[_0x5791f9(0x1d0)];const _0x383324=_0x58aecf[_0x5791f9(0x1e6)]&&_0x15e1d8[_0x5791f9(0x1cf)](typeof _0x58aecf[_0x5791f9(0x1e6)][_0x5791f9(0x18e)],_0x15e1d8[_0x5791f9(0x1c2)])?_0x58aecf['_connection'][_0x5791f9(0x18e)]():![];if(_0x383324||global[_0x5791f9(0x17e)]&&!process[_0x5791f9(0x19e)][_0x5791f9(0x1d2)]){let _0x48a06f=null;_0x15e1d8[_0x5791f9(0x165)](nestedKeyValue,_0x58aecf,[_0x15e1d8[_0x5791f9(0x135)],_0x15e1d8[_0x5791f9(0x173)]])?_0x48a06f=_0x58aecf[_0x5791f9(0x1c6)][_0x5791f9(0x1f1)]:_0x48a06f=_0x15e1d8['TTZbp'](nestedKeyValue,_0x364ff1,[_0x15e1d8['qdSEP'],_0x15e1d8[_0x5791f9(0x14c)],_0x15e1d8[_0x5791f9(0x1ab)]]);const _0x2bbabe=_0x561742||_0x48a06f&&_0x48a06f['wsEndpoint'];if(_0x2bbabe){_0x3f13a4=_0x15e1d8['hgqoB'](getCloudProviderFromWsEndpoint,_0x2bbabe);if(_0x15e1d8[_0x5791f9(0x1d9)](_0x3f13a4,_0x15e1d8[_0x5791f9(0x170)]))_0x2db584=constants[_0x5791f9(0x12d)]['test'](_0x2bbabe)?_0x15e1d8[_0x5791f9(0x1ce)]:_0x15e1d8[_0x5791f9(0x1e7)],_0x4d9403=_0x15e1d8[_0x5791f9(0x192)](getBrowserFromWSEndpoint,_0x2bbabe)||_0x4d9403,_0x1ebfc6=_0x273e41[_0x5791f9(0x1e9)]['platform'],_0x2ad04f=_0x273e41[_0x5791f9(0x1e9)][_0x5791f9(0x16a)];else{const _0x114430=await _0x15e1d8['yUrXT'](getPlatformDetails);_0x1ebfc6=_0x114430[_0x5791f9(0x1c0)],_0x2ad04f=_0x114430[_0x5791f9(0x1d6)];}}if(_0x15e1d8[_0x5791f9(0x125)](!_0x1ebfc6,!_0x2ad04f)&&!_0x15e1d8['yUrXT'](isBrowserstackInfra)){const _0x145e27=await _0x15e1d8[_0x5791f9(0x13e)](getPlatformDetails);_0x1ebfc6=_0x145e27['platformName'],_0x2ad04f=_0x145e27[_0x5791f9(0x1d6)];}}else{_0x364ff1&&_0x364ff1['project']['use'][_0x5791f9(0x1c1)]?_0x4d9403=_0x15e1d8['JKaMx'](getBrowserNameFromChannel,_0x364ff1['project'][_0x5791f9(0x15b)][_0x5791f9(0x1c1)]):_0x4d9403=_0x15e1d8[_0x5791f9(0x195)](_0x15e1d8[_0x5791f9(0x19b)],_0x15e1d8['qoxHl'](_0x4d9403,_0x15e1d8[_0x5791f9(0x1f7)])[_0x5791f9(0x194)]());const _0x1fe001=await _0x15e1d8[_0x5791f9(0x174)](getPlatformDetails);_0x1ebfc6=_0x1fe001[_0x5791f9(0x1c0)],_0x2ad04f=_0x1fe001[_0x5791f9(0x1d6)];}const _0x50de8b={};_0x50de8b[_0x5791f9(0x1a4)]=_0x4d9403,_0x50de8b[_0x5791f9(0x1f4)]=_0x4ea41a,_0x50de8b['capabilities']={},_0x50de8b[_0x5791f9(0x144)]=_0x1ebfc6,_0x50de8b[_0x5791f9(0x16a)]=_0x2ad04f,_0x50de8b[_0x5791f9(0x12c)]=_0x2db584;const _0xa20eb=_0x50de8b;_0x5c4390&&(_0xa20eb['capabilities']['deviceModel']=_0x5c4390);const _0x6e8786={};_0x6e8786[_0x5791f9(0x15d)]=_0x3f13a4,_0x273e41[_0x5791f9(0x1e9)]=Object[_0x5791f9(0x1b5)]({},_0x273e41['currentSessionDetails'],_0x6e8786,_0xa20eb);},_0x15e1d8[_0x45abbe(0x181)])(_0x1ab9a9,_0x2c9381,_0x5026eb);}static[a54_0x3c6080(0x168)](){const _0x4d0eb2=a54_0x3c6080;this[_0x4d0eb2(0x12a)](),this['patchCRConnection']();}static[a54_0x3c6080(0x12a)](){const _0x1f8f7d=a54_0x3c6080,_0x15f093={'qMscV':function(_0x2b4151,_0x2eba98,_0xc31f90){return _0x2b4151(_0x2eba98,_0xc31f90);},'FQdIe':_0x1f8f7d(0x121),'fcaGV':'testInfo','kScPe':'titlePath','xGxTx':function(_0x18161b,_0x4f0686,_0x2ed52a){return _0x18161b(_0x4f0686,_0x2ed52a);},'HcwFN':_0x1f8f7d(0x12b),'YyBEa':_0x1f8f7d(0x169),'VRYem':function(_0x5baad6,_0x44a394){return _0x5baad6===_0x44a394;},'vVjmt':'Page','CkXjk':function(_0x52380d,_0x55e9b7,_0xd226cc,_0x514dc5){return _0x52380d(_0x55e9b7,_0xd226cc,_0x514dc5);},'giACa':function(_0x36775c,_0xa9eb01){return _0x36775c||_0xa9eb01;},'bQVzW':function(_0x1c1285,_0x1be859){return _0x1c1285(_0x1be859);},'gsKqP':function(_0x32514a,_0x5447a6){return _0x32514a(_0x5447a6);},'CUFRp':function(_0x47ffa8,_0x22b099){return _0x47ffa8(_0x22b099);},'NVSdA':_0x1f8f7d(0x143),'pYaqd':function(_0x4bd961,_0x32f60b){return _0x4bd961!=_0x32f60b;},'MzdiB':function(_0xd9789d){return _0xd9789d();},'EyTYT':_0x1f8f7d(0x132),'TggaL':function(_0x1f9092,_0x5b0c7c){return _0x1f9092(_0x5b0c7c);},'BBexu':'dispatch','pWNpg':_0x1f8f7d(0x150)},_0xa864b1=this;!this[_0x1f8f7d(0x1d8)]&&(this['Connection']=helper['resolveConnectionClass'](),!this['Connection']&&_0x15f093['gsKqP'](debug,_0x15f093[_0x1f8f7d(0x1cb)]));const _0x87df38=this[_0x1f8f7d(0x1d8)];if(_0x15f093[_0x1f8f7d(0x14f)](_0x87df38,null)&&_0x87df38[_0x1f8f7d(0x1a1)]['_bstackDispatchPatched'])return;try{if(_0x15f093[_0x1f8f7d(0x14f)](_0x87df38,null)){const _0x39a22a=_0x87df38[_0x1f8f7d(0x1a1)][_0x1f8f7d(0x1e1)],_0x5ddadd=_0x87df38['prototype']['sendMessageToServer'];_0x15f093[_0x1f8f7d(0x1f8)](isAccessibilityAutomationSession)&&Object[_0x1f8f7d(0x123)](_0x87df38['prototype'],_0x15f093[_0x1f8f7d(0x17f)],{'get':function(){return async function(){const _0x467d73=a54_0x5ba5;try{if(!global[_0x467d73(0x186)]&&global['accessibilityPlatform']&&_0x15f093[_0x467d73(0x149)](nestedKeyValue,global[_0x467d73(0x12b)],[_0x15f093['FQdIe'],_0x15f093[_0x467d73(0x1f6)],_0x15f093['kScPe']])&&_0x15f093[_0x467d73(0x149)](shouldScanTestForAccessibility,global[_0x467d73(0x12b)]['currentTest'][_0x467d73(0x1c9)]['titlePath'],!![])&&scripts[_0x467d73(0x1b4)](arguments[0x1])){logger[_0x467d73(0x1b6)](_0x467d73(0x183)+arguments[0x1]),global['bstackPerformA11yScan']=!![];const _0x3cd5ff=_0x15f093[_0x467d73(0x199)](nestedKeyValue,global,[_0x15f093[_0x467d73(0x140)],_0x15f093[_0x467d73(0x1a7)]]);_0x3cd5ff&&logger[_0x467d73(0x1a6)](_0x467d73(0x1dc)+util[_0x467d73(0x1a9)](await _0x15f093[_0x467d73(0x199)](performScanWithRetry,_0x3cd5ff,arguments[0x1]))),_0x15f093[_0x467d73(0x1d1)](arguments[0x0][_0x467d73(0x1ae)],_0x15f093['vVjmt'])&&global[_0x467d73(0x16d)]&&logger[_0x467d73(0x1a6)](_0x467d73(0x14d)+util[_0x467d73(0x1a9)](await _0x15f093[_0x467d73(0x1ef)](performScanWithRetry,global[_0x467d73(0x16d)],arguments[0x1],scripts['performScan'])));}}catch(_0x538769){logger[_0x467d73(0x1b6)]('Failed\x20to\x20perform\x20scan\x20'+util[_0x467d73(0x1a9)](_0x538769));}return global[_0x467d73(0x186)]=![],_0x5ddadd[_0x467d73(0x1c8)](this,arguments);};}}),!_0x15f093[_0x1f8f7d(0x159)](isFalse,process[_0x1f8f7d(0x19e)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&Object[_0x1f8f7d(0x123)](_0x87df38['prototype'],_0x15f093[_0x1f8f7d(0x160)],{'get':function(){const _0x563469={'kUvxF':function(_0x4021fa,_0x579bcd){const _0x1392f7=a54_0x5ba5;return _0x15f093[_0x1392f7(0x1bf)](_0x4021fa,_0x579bcd);},'aaLjN':function(_0x5c975f,_0x38a5d8){const _0xdd080d=a54_0x5ba5;return _0x15f093[_0xdd080d(0x13b)](_0x5c975f,_0x38a5d8);},'FPIEu':function(_0x1fcc5e,_0x5ce8c7){const _0x5d4dcf=a54_0x5ba5;return _0x15f093[_0x5d4dcf(0x148)](_0x1fcc5e,_0x5ce8c7);},'BRUPd':function(_0x10925d,_0x26d772){const _0x46762a=a54_0x5ba5;return _0x15f093[_0x46762a(0x1ee)](_0x10925d,_0x26d772);}};return function _0x271d63(_0x95bb29){const _0x33831a=a54_0x5ba5,_0x57edff=_0x39a22a[_0x33831a(0x1c8)](this,arguments);try{if(BrowserstackCLI[_0x33831a(0x1bc)]()[_0x33831a(0x1d7)]()){const _0x345ed8={};_0x345ed8[_0x33831a(0x18d)]=_0x95bb29,Promise[_0x33831a(0x1be)](BrowserstackCLI[_0x33831a(0x1bc)]()['getAutomationFramework']()[_0x33831a(0x14b)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x33831a(0x136)],_0x345ed8))[_0x33831a(0x134)](()=>{});}else{const _0x4cebb6=_0x95bb29&&_0x95bb29['params']&&_0x95bb29[_0x33831a(0x1a5)]['bsParams'];if(_0x4cebb6){const _0x3433fb=_0x4cebb6[_0x33831a(0x178)],_0x34600e=_0x4cebb6[_0x33831a(0x1a8)];_0x563469[_0x33831a(0x187)](!_0x3433fb,!_0x34600e)&&Promise['resolve'](ClientTroubleShootingService[_0x33831a(0x1c4)]())['catch'](()=>{}),_0x34600e&&(_0x563469[_0x33831a(0x157)](debug,_0x33831a(0x19c)+_0x34600e[_0x33831a(0x18c)]()),_0xa864b1[_0x33831a(0x1e9)][_0x33831a(0x144)]=_0x34600e['platformName'],_0xa864b1[_0x33831a(0x1e9)][_0x33831a(0x16a)]=_0x34600e[_0x33831a(0x1d6)]),_0x3433fb&&(_0x563469[_0x33831a(0x1f9)](debug,_0x33831a(0x13c)+_0x3433fb),_0xa864b1[_0x33831a(0x1e9)][_0x33831a(0x155)]=_0x3433fb);}}}catch(_0x2b5858){_0x563469[_0x33831a(0x1ec)](debug,_0x33831a(0x172)+(_0x2b5858&&_0x2b5858['toString']?_0x2b5858['toString']():_0x2b5858));}return _0x57edff;};}}),_0x87df38[_0x1f8f7d(0x1a1)][_0x1f8f7d(0x153)]=!![],logger['debug'](_0x15f093[_0x1f8f7d(0x154)]);}}catch(_0x1ea81a){_0x15f093[_0x1f8f7d(0x13b)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x1ea81a),_0xa864b1['sessionError']=_0x1ea81a[_0x1f8f7d(0x18c)]();}}static[a54_0x3c6080(0x1a2)](){const _0x407166=a54_0x3c6080,_0x317b4f={'aTbzg':function(_0x5c52eb,_0x3e48a2){return _0x5c52eb(_0x3e48a2);},'LbvAC':function(_0x85d840){return _0x85d840();},'IhRIZ':function(_0x484d06,_0x103047){return _0x484d06>=_0x103047;},'ByBHx':_0x407166(0x180),'nQVpN':function(_0x68c669,_0x25dd7c){return _0x68c669(_0x25dd7c);},'OWBnm':_0x407166(0x1dd),'IwCKl':_0x407166(0x1db),'Fxkuc':_0x407166(0x1f3),'YleMx':'chromium','Jutqd':_0x407166(0x1da),'ZXjvA':function(_0x13603a,_0x5256d6){return _0x13603a(_0x5256d6);},'TUiAO':_0x407166(0x1cc),'kJpXt':_0x407166(0x175),'eZgQV':function(_0x4deb31,_0x16a298){return _0x4deb31!=_0x16a298;},'jHOZe':_0x407166(0x16f)},_0x1aefef=this;if(_0x317b4f[_0x407166(0x1d5)](isAccessibilityAutomationSession)){let _0x1c25cb=null,_0x1ca862=![];try{const _0x5e8853=helper['getFrameworkVersion'](FRAMEWORKS[_0x407166(0x185)]);_0x1ca862=_0x317b4f[_0x407166(0x17b)](helper[_0x407166(0x1e0)](_0x5e8853,_0x317b4f['ByBHx']),0x0);}catch(_0x2db7b1){_0x317b4f['aTbzg'](debug,_0x407166(0x162)+_0x2db7b1['toString']());}if(_0x1ca862)_0x317b4f[_0x407166(0x141)](debug,_0x317b4f['OWBnm']);else try{const _0x3566e8=path[_0x407166(0x1ed)](_0x317b4f['IwCKl'],_0x317b4f['Fxkuc'],_0x317b4f[_0x407166(0x1bd)],_0x317b4f[_0x407166(0x139)]),_0x1f8287=_0x317b4f[_0x407166(0x18f)](importFileFromPWCore,_0x3566e8);!_0x1f8287?_0x317b4f[_0x407166(0x1b9)](debug,_0x317b4f[_0x407166(0x151)]):_0x1c25cb=_0x1f8287[_0x407166(0x14e)];}catch(_0x5dad43){_0x317b4f['ZXjvA'](debug,_0x317b4f[_0x407166(0x16c)]);}try{if(_0x317b4f[_0x407166(0x1c5)](_0x1c25cb,null)){const _0x49cfa5=_0x1c25cb[_0x407166(0x1a1)]['_onMessage'];Object[_0x407166(0x123)](_0x1c25cb[_0x407166(0x1a1)],_0x317b4f['jHOZe'],{'get':function(){const _0x3674ef={'WunDy':function(_0x4432f5,_0x23625f){const _0x76ca59=a54_0x5ba5;return _0x317b4f[_0x76ca59(0x18f)](_0x4432f5,_0x23625f);}};return async function _0x2aa211(_0x563780){const _0x34be0e=a54_0x5ba5;try{if(BrowserstackCLI[_0x34be0e(0x1bc)]()[_0x34be0e(0x1d7)]()){const _0x4706ef={};_0x4706ef[_0x34be0e(0x18d)]=_0x563780,await BrowserstackCLI[_0x34be0e(0x1bc)]()[_0x34be0e(0x17c)]()[_0x34be0e(0x14b)](AutomationFrameworkState[_0x34be0e(0x1aa)],HookState['POST'],_0x4706ef),delete _0x563780['bStackParams'];}else{const _0x25486c=_0x563780[_0x34be0e(0x1ca)];if(_0x25486c){delete _0x563780[_0x34be0e(0x1ca)];const _0x1038da=_0x25486c['sessionId'],_0x328600=_0x25486c[_0x34be0e(0x1a8)];_0x328600&&(_0x3674ef['WunDy'](debug,_0x34be0e(0x1e4)+_0x328600[_0x34be0e(0x18c)]()),_0x1aefef[_0x34be0e(0x1e9)][_0x34be0e(0x144)]=_0x328600[_0x34be0e(0x1c0)],_0x1aefef[_0x34be0e(0x1e9)][_0x34be0e(0x16a)]=_0x328600[_0x34be0e(0x1d6)]),_0x1038da&&(_0x3674ef[_0x34be0e(0x13f)](debug,_0x34be0e(0x15c)+_0x1038da),_0x1aefef['currentSessionDetails'][_0x34be0e(0x155)]=_0x1038da);}}}catch(_0x2f0e79){_0x3674ef[_0x34be0e(0x13f)](debug,_0x34be0e(0x1b0)+_0x2f0e79['toString']());}return _0x49cfa5['apply'](this,arguments);};}});}}catch(_0x1d49cc){_0x317b4f[_0x407166(0x18f)](debug,_0x407166(0x1d4)+_0x1d49cc),_0x1aefef['sessionError']=_0x1d49cc[_0x407166(0x18c)]();}}}static['getDetails'](){const _0x2113f6=a54_0x3c6080;return this[_0x2113f6(0x1e9)];}}module[a54_0x3c6080(0x19f)]=PlaywrightSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x2c982d=a55_0x9f68;(function(_0x25be84,_0x2c4166){const _0x190e69=a55_0x9f68,_0x490a27=_0x25be84();while(!![]){try{const _0x152d38=-parseInt(_0x190e69(0xc7))/0x1+-parseInt(_0x190e69(0xad))/0x2*(parseInt(_0x190e69(0xa5))/0x3)+parseInt(_0x190e69(0xa3))/0x4+parseInt(_0x190e69(0xc3))/0x5+parseInt(_0x190e69(0xb6))/0x6+-parseInt(_0x190e69(0xc0))/0x7+-parseInt(_0x190e69(0xb0))/0x8*(-parseInt(_0x190e69(0xb9))/0x9);if(_0x152d38===_0x2c4166)break;else _0x490a27['push'](_0x490a27['shift']());}catch(_0x51c1b1){_0x490a27['push'](_0x490a27['shift']());}}}(a55_0xb147,0xcf7b2));const util=require(a55_0x2c982d(0xc1)),logger=require(a55_0x2c982d(0xab)),{nestedKeyValue,isFalse}=require(a55_0x2c982d(0xaa)),{o11yErrorHandler}=require(a55_0x2c982d(0xca)),PerformanceTester=require(a55_0x2c982d(0xba)),{O11y_EVENTS:PerformanceO11yEvents}=require(a55_0x2c982d(0xc5)),BrowserstackCLI=require('../v2/browserstackCLI'),CustomTagManager=require(a55_0x2c982d(0xa8)),uploadAttachmentsManager=require('../v2/uploadAttachmentsManager'),doo11ySync=PerformanceTester[a55_0x2c982d(0xb2)](PerformanceO11yEvents[a55_0x2c982d(0xb4)],o11yErrorHandler(async function doo11ySync(_0x288769){const _0x546791=a55_0x2c982d,_0x766176={'zgjfi':function(_0x34f0a3,_0x2642d6,_0x72ab22){return _0x34f0a3(_0x2642d6,_0x72ab22);},'PnADa':_0x546791(0xb8),'qLWNc':_0x546791(0xa9),'QWkPq':'annotate','kbHmu':_0x546791(0xbf)};if(_0x766176[_0x546791(0xc6)](nestedKeyValue,global,[_0x766176['PnADa'],_0x766176['qLWNc']]))return;await _0x288769[_0x546791(0xbd)](_0x55f050=>{},'browserstack_executor:\x20'+JSON['stringify']({'action':_0x766176[_0x546791(0xb5)],'arguments':{'data':_0x546791(0xbb)+Date[_0x546791(0xcb)](),'level':_0x766176[_0x546791(0xaf)]}})),global['__workerDetails']['o11ySyncDone']=!![];},'doo11ySync'));function a55_0xb147(){const _0x5a3370=['240368tSwgCe','isRunning','QtOfv','../../helpers/test-observability/error-handler','now','setCustomTags','3308292pIIjIz','env','1020183YxNHDb','pwPage','newPage','../v2/customTagManager','o11ySyncDone','../../helpers/helper','../../helpers/logger','bind','4YZTGAM','BROWSERSTACK_TEST_OBSERVABILITY','kbHmu','8799944wvCqib','qapWB','measureWrapper','format','SYNC','QWkPq','4401108FSrItZ','apply','__workerDetails','9HnSIya','../../helpers/performance/performance-tester','ObservabilitySync:','getInstance','evaluate','uploadAttachment','debug','10793048hPxeTE','util','uploadAttachments','3258060SVXVGL','Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20','../../helpers/performance/constants','zgjfi'];a55_0xb147=function(){return _0x5a3370;};return a55_0xb147();}function a55_0x9f68(_0x5dc50b,_0x1b1a0d){const _0xb147e=a55_0xb147();return a55_0x9f68=function(_0x9f68e6,_0x2d1250){_0x9f68e6=_0x9f68e6-0xa2;let _0x26087f=_0xb147e[_0x9f68e6];return _0x26087f;},a55_0x9f68(_0x5dc50b,_0x1b1a0d);}exports['patchBrowserNewPage']=_0x38ca52=>{const _0x1d3e9e=a55_0x2c982d,_0x5f59ea={'qapWB':function(_0x5295fe,_0x5d479c){return _0x5295fe(_0x5d479c);},'gJLNY':function(_0x43e182,_0x4a7734,_0x163451){return _0x43e182(_0x4a7734,_0x163451);},'QtOfv':'__workerDetails'};if(!_0x38ca52||_0x38ca52['_bstackNewPagePatched'])return;const _0x10f0b3=_0x38ca52['newPage'][_0x1d3e9e(0xac)](_0x38ca52);_0x38ca52[_0x1d3e9e(0xa7)]=async function _0x458dd2(){const _0x458158=_0x1d3e9e,_0x4842db=await _0x10f0b3[_0x458158(0xb7)](_0x38ca52,arguments);try{!BrowserstackCLI[_0x458158(0xbc)]()[_0x458158(0xc8)]()&&!_0x5f59ea['qapWB'](isFalse,process[_0x458158(0xa4)][_0x458158(0xae)])&&await _0x5f59ea[_0x458158(0xb1)](doo11ySync,_0x4842db),BrowserstackCLI[_0x458158(0xbc)]()[_0x458158(0xc8)]()&&(_0x4842db['setCustomTags']=async(_0x35914e,_0x239092,_0x1212ef=![])=>{const _0x125dd6=_0x458158;await CustomTagManager[_0x125dd6(0xa2)](_0x35914e,_0x239092,_0x1212ef);},_0x4842db[_0x458158(0xbe)]=async(_0x6beb6b,_0x41c4ec=![])=>{const _0x3a69e6=_0x458158;await uploadAttachmentsManager[_0x3a69e6(0xc2)](_0x6beb6b,_0x41c4ec);});}catch(_0x2a9d2f){logger['debug'](_0x458158(0xc4)+util[_0x458158(0xb3)](_0x2a9d2f));}return _0x5f59ea['gJLNY'](nestedKeyValue,global,[_0x5f59ea[_0x458158(0xc9)]])&&(global['__workerDetails'][_0x458158(0xa6)]=_0x4842db),_0x4842db;},_0x38ca52['_bstackNewPagePatched']=!![];};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56_0x14d42d=a56_0x54ef;(function(_0xfc13a8,_0x4023bb){const _0x4d399a=a56_0x54ef,_0x1722d2=_0xfc13a8();while(!![]){try{const _0x794e8d=-parseInt(_0x4d399a(0x149))/0x1*(parseInt(_0x4d399a(0x127))/0x2)+parseInt(_0x4d399a(0x15b))/0x3*(-parseInt(_0x4d399a(0x126))/0x4)+-parseInt(_0x4d399a(0x12e))/0x5+-parseInt(_0x4d399a(0x139))/0x6+-parseInt(_0x4d399a(0x14c))/0x7*(-parseInt(_0x4d399a(0x151))/0x8)+-parseInt(_0x4d399a(0x116))/0x9*(-parseInt(_0x4d399a(0x135))/0xa)+parseInt(_0x4d399a(0x115))/0xb;if(_0x794e8d===_0x4023bb)break;else _0x1722d2['push'](_0x1722d2['shift']());}catch(_0x1dcd2f){_0x1722d2['push'](_0x1722d2['shift']());}}}(a56_0x4fa9,0x209c6));const path=require('path'),url=require(a56_0x14d42d(0x138)),util=require('util'),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),logger=require('../../helpers/logger')[a56_0x14d42d(0x114)],constants=require(a56_0x14d42d(0x125)),BrowserstackCLI=require(a56_0x14d42d(0x166)),AutomationFrameworkState=require(a56_0x14d42d(0x16a)),HookState=require(a56_0x14d42d(0x132)),getBrowserFromWSEndpoint=_0x27e2f8=>{const _0x57e9e=a56_0x14d42d,_0x4c6d78={'HMBRr':_0x57e9e(0x13c),'iHOju':function(_0x29eac3,_0x2dd4a4){return _0x29eac3(_0x2dd4a4);}};try{const _0x3be0a8=url[_0x57e9e(0x11d)](_0x27e2f8),_0x12a7d3=new URLSearchParams(_0x3be0a8[_0x57e9e(0x13d)]),_0x1819b7=Object[_0x57e9e(0x147)](_0x12a7d3[_0x57e9e(0x164)]()),_0x45d273=JSON[_0x57e9e(0x11d)](_0x1819b7[_0x57e9e(0x144)]);if(_0x45d273&&(_0x45d273[_0x57e9e(0x13a)]||_0x45d273[_0x57e9e(0x153)]))return _0x45d273[_0x57e9e(0x13a)]||_0x45d273[_0x57e9e(0x153)];return _0x4c6d78['HMBRr'];}catch(_0x371009){_0x4c6d78[_0x57e9e(0x133)](debug,_0x57e9e(0x117)+_0x371009[_0x57e9e(0x165)]());}},getCloudProviderFromWsEndpoint=_0x3ff588=>{const _0x35da10=a56_0x14d42d,_0x109990={};_0x109990[_0x35da10(0x161)]=_0x35da10(0x152),_0x109990[_0x35da10(0x13f)]=_0x35da10(0x131);const _0x38cf53=_0x109990;if(_0x3ff588[_0x35da10(0x156)](constants[_0x35da10(0x124)])||_0x3ff588[_0x35da10(0x156)](constants[_0x35da10(0x111)]))return _0x38cf53[_0x35da10(0x161)];return _0x38cf53[_0x35da10(0x13f)];},a56_0x14695e={};function a56_0x54ef(_0x44eadf,_0x278892){const _0x4fa9b2=a56_0x4fa9();return a56_0x54ef=function(_0x54effc,_0x21ff6c){_0x54effc=_0x54effc-0x10f;let _0x512f93=_0x4fa9b2[_0x54effc];return _0x512f93;},a56_0x54ef(_0x44eadf,_0x278892);}a56_0x14695e['cloudProvider']=undefined,a56_0x14695e[a56_0x14d42d(0x143)]=undefined,a56_0x14695e[a56_0x14d42d(0x13a)]=undefined,a56_0x14695e[a56_0x14d42d(0x13b)]=undefined,a56_0x14695e['platform']=undefined,a56_0x14695e[a56_0x14d42d(0x12b)]=undefined,a56_0x14695e[a56_0x14d42d(0x142)]=undefined,a56_0x14695e[a56_0x14d42d(0x15e)]={};class PuppeteerSessionDetails{static [a56_0x14d42d(0x15d)]=a56_0x14695e;constructor(){const _0x4c3f31=a56_0x14d42d,_0xf93f2d={};_0xf93f2d[_0x4c3f31(0x12f)]=_0x4c3f31(0x162);const _0x395e89=_0xf93f2d;throw new Error(_0x395e89[_0x4c3f31(0x12f)]);}static [a56_0x14d42d(0x16d)]=null;static async['setupBrowserDetails'](_0x391cf2,_0x224298){const _0x4e58d7=a56_0x14d42d,_0x31c9dc={'sSzrF':_0x4e58d7(0x13c),'HNnJx':function(_0x394aaa,_0x1f7542){return _0x394aaa===_0x1f7542;},'jsPpH':_0x4e58d7(0x137),'twVDr':_0x4e58d7(0x141),'hBCgV':function(_0x1e64de,_0x1b6590){return _0x1e64de(_0x1b6590);},'JVmfP':_0x4e58d7(0x152),'Cslhz':_0x4e58d7(0x110),'ecMYC':_0x4e58d7(0x14f),'JwAtK':function(_0x1c127e,_0x3908f1){return _0x1c127e(_0x3908f1);},'BcmBX':function(_0x4ce226){return _0x4ce226();},'saUrU':function(_0x2d2e72,_0x44f734){return _0x2d2e72(_0x44f734);}};try{let _0x385193=_0x31c9dc[_0x4e58d7(0x14d)],_0x4f3c4f=null;_0x391cf2&&_0x31c9dc[_0x4e58d7(0x169)](typeof _0x391cf2[_0x4e58d7(0x123)],_0x31c9dc[_0x4e58d7(0x157)])&&(_0x4f3c4f=await _0x391cf2[_0x4e58d7(0x123)]());let _0x1388b9=null,_0x2df5a1=null,_0x4f8921=null,_0x23c5f3=_0x31c9dc['twVDr'];if(_0x224298){_0x23c5f3=_0x31c9dc[_0x4e58d7(0x16b)](getCloudProviderFromWsEndpoint,_0x224298);if(_0x31c9dc[_0x4e58d7(0x169)](_0x23c5f3,_0x31c9dc[_0x4e58d7(0x136)]))_0x4f8921=constants['ATS_WSS_URL_REGEX']?constants[_0x4e58d7(0x15f)][_0x4e58d7(0x11f)](_0x224298)?_0x31c9dc['Cslhz']:_0x31c9dc[_0x4e58d7(0x11e)]:_0x31c9dc[_0x4e58d7(0x11e)],_0x385193=_0x31c9dc[_0x4e58d7(0x14a)](getBrowserFromWSEndpoint,_0x224298)||_0x385193,_0x1388b9=this[_0x4e58d7(0x15d)][_0x4e58d7(0x159)],_0x2df5a1=this[_0x4e58d7(0x15d)]['platform_version'];else{const _0x23ebde=await _0x31c9dc[_0x4e58d7(0x11b)](getPlatformDetails);_0x1388b9=_0x23ebde['platformName'],_0x2df5a1=_0x23ebde['platformVersion'];}}else{const _0x41d35c=await _0x31c9dc[_0x4e58d7(0x11b)](getPlatformDetails);_0x1388b9=_0x41d35c[_0x4e58d7(0x13e)],_0x2df5a1=_0x41d35c['platformVersion'];}const _0x4adada={};_0x4adada[_0x4e58d7(0x13a)]=_0x385193,_0x4adada[_0x4e58d7(0x13b)]=_0x4f3c4f,_0x4adada[_0x4e58d7(0x15e)]={},_0x4adada['platform']=_0x1388b9,_0x4adada[_0x4e58d7(0x12b)]=_0x2df5a1,_0x4adada[_0x4e58d7(0x142)]=_0x4f8921;const _0x2336a6=_0x4adada,_0x169981={};_0x169981[_0x4e58d7(0x158)]=_0x23c5f3,this[_0x4e58d7(0x15d)]=Object[_0x4e58d7(0x160)]({},this['currentSessionDetails'],_0x169981,_0x2336a6);}catch(_0x37ca0c){_0x31c9dc[_0x4e58d7(0x11a)](debug,'Error\x20in\x20setupBrowserDetails:\x20'+util[_0x4e58d7(0x150)](_0x37ca0c)),this[_0x4e58d7(0x16d)]=_0x37ca0c['toString']();}}static['patchConnection'](_0x288210){const _0x1ed8c0=a56_0x14d42d,_0x27a4d1={'dAetQ':function(_0x16f9be,_0x198311){return _0x16f9be===_0x198311;},'HRiaV':_0x1ed8c0(0x129),'lWfgH':function(_0x1a5ac8,_0x12634b){return _0x1a5ac8(_0x12634b);},'nvOCo':function(_0x1cdc67,_0x37cf3a){return _0x1cdc67(_0x37cf3a);},'PCqbh':function(_0x3a49c8,_0x41ab08){return _0x3a49c8(_0x41ab08);},'bgohN':_0x1ed8c0(0x12d)},_0x18afea=this;try{const _0x35fa3a=_0x288210[_0x1ed8c0(0x122)]||_0x288210[_0x1ed8c0(0x146)];if(!_0x35fa3a||_0x35fa3a[_0x1ed8c0(0x10f)])return;const _0x392538=_0x35fa3a[_0x1ed8c0(0x120)];_0x35fa3a[_0x1ed8c0(0x120)]=function(_0x5a7621){const _0x453a58=_0x1ed8c0;try{const _0x1a1aa1=_0x27a4d1[_0x453a58(0x148)](typeof _0x5a7621,_0x27a4d1['HRiaV'])?JSON['parse'](_0x5a7621):_0x5a7621,_0x2dfdae=_0x1a1aa1?.[_0x453a58(0x121)]||_0x1a1aa1?.[_0x453a58(0x167)]||_0x1a1aa1?.[_0x453a58(0x12a)]?.[_0x453a58(0x167)]||_0x1a1aa1?.[_0x453a58(0x12a)]?.['bStackParams']||_0x1a1aa1?.[_0x453a58(0x155)]?.[_0x453a58(0x167)]||_0x1a1aa1?.[_0x453a58(0x155)]?.[_0x453a58(0x121)];if(_0x2dfdae){if(BrowserstackCLI['getInstance']()[_0x453a58(0x118)]()){const _0x55b942={};_0x55b942[_0x453a58(0x12c)]=_0x1a1aa1,BrowserstackCLI[_0x453a58(0x11c)]()[_0x453a58(0x154)]()['trackEvent'](AutomationFrameworkState[_0x453a58(0x113)],HookState[_0x453a58(0x16c)],_0x55b942);}else{const _0x26bdc3=_0x2dfdae[_0x453a58(0x119)],_0x2298ae=_0x2dfdae[_0x453a58(0x112)];_0x2298ae&&(_0x27a4d1['lWfgH'](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+JSON[_0x453a58(0x163)](_0x2298ae)),_0x18afea['currentSessionDetails'][_0x453a58(0x159)]=_0x2298ae[_0x453a58(0x13e)],_0x18afea[_0x453a58(0x15d)][_0x453a58(0x12b)]=_0x2298ae['platformVersion']),_0x26bdc3&&(_0x27a4d1[_0x453a58(0x14e)](debug,_0x453a58(0x134)+_0x26bdc3),_0x18afea[_0x453a58(0x15d)]['bsSessionId']=_0x26bdc3);}_0x27a4d1[_0x453a58(0x148)](typeof _0x5a7621,_0x27a4d1[_0x453a58(0x130)])&&(delete _0x1a1aa1['bStackParams'],delete _0x1a1aa1['bsParams'],_0x1a1aa1['params']&&(delete _0x1a1aa1[_0x453a58(0x12a)][_0x453a58(0x167)],delete _0x1a1aa1[_0x453a58(0x12a)]['bStackParams']),_0x1a1aa1[_0x453a58(0x155)]&&(delete _0x1a1aa1[_0x453a58(0x155)][_0x453a58(0x167)],delete _0x1a1aa1[_0x453a58(0x155)][_0x453a58(0x121)]));}}catch(_0x356d5d){_0x27a4d1[_0x453a58(0x128)](debug,_0x453a58(0x140)+_0x356d5d[_0x453a58(0x12c)]);}return _0x392538?.['apply'](this,arguments);},_0x35fa3a[_0x1ed8c0(0x10f)]=!![],logger[_0x1ed8c0(0x15c)](_0x27a4d1[_0x1ed8c0(0x145)]);}catch(_0x2d7c47){_0x27a4d1[_0x1ed8c0(0x14b)](debug,'Error\x20in\x20patchConnection:\x20'+util['format'](_0x2d7c47)),_0x18afea[_0x1ed8c0(0x16d)]=_0x2d7c47['toString']();}}static[a56_0x14d42d(0x168)](){const _0x3ac9e3=a56_0x14d42d;return this[_0x3ac9e3(0x15d)];}}module[a56_0x14d42d(0x15a)]=PuppeteerSessionDetails;function a56_0x4fa9(){const _0x35bd1e=['assign','bSvqT','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','stringify','entries','toString','../v2/browserstackCLI','bsParams','getDetails','HNnJx','../v2/state/automationFrameworkState.js','hBCgV','POST','sessionError','_bstackPatched','turboscale','BSTACK_ATS_URL','platformDetails','PLAYWRIGHT_DISPATCH','winstonLogger','4630472mSincJ','94491MxJSoQ','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','isRunning','sessionId','saUrU','BcmBX','getInstance','parse','ecMYC','test','onmessage','bStackParams','_connection','version','BSTACK_URL','../utils/constants','12Fqgawp','654VFETcc','PCqbh','string','params','platform_version','message','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','688860hYcsok','MoxSH','HRiaV','unknown_grid','../v2/state/hookState.js','iHOju','Setting\x20session\x20id\x20received\x20from\x20BS\x20','70ZfhxpK','JVmfP','function','url','621420frAwGx','browser','browser_version','chrome','query','platformName','KstCK','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','local_grid','product','bsSessionId','caps','bgohN','connection','fromEntries','dAetQ','668nymOQT','JwAtK','lWfgH','26691hFbsNh','sSzrF','nvOCo','automate','format','232UaRfUh','browserstack','browserName','getAutomationFramework','result','includes','jsPpH','cloudProvider','platform','exports','11670TXUzJY','debug','currentSessionDetails','capabilities','ATS_WSS_URL_REGEX'];a56_0x4fa9=function(){return _0x35bd1e;};return a56_0x4fa9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a57_0x4bd88c=a57_0x2400;(function(_0x477218,_0x486184){const _0x3eed70=a57_0x2400,_0x551f84=_0x477218();while(!![]){try{const _0x26a63c=-parseInt(_0x3eed70(0x1e0))/0x1*(-parseInt(_0x3eed70(0x1f4))/0x2)+-parseInt(_0x3eed70(0x1cf))/0x3*(parseInt(_0x3eed70(0x1eb))/0x4)+parseInt(_0x3eed70(0x1da))/0x5*(parseInt(_0x3eed70(0x1d4))/0x6)+parseInt(_0x3eed70(0x1e3))/0x7+parseInt(_0x3eed70(0x1db))/0x8*(-parseInt(_0x3eed70(0x1d2))/0x9)+parseInt(_0x3eed70(0x1e1))/0xa+-parseInt(_0x3eed70(0x1dd))/0xb*(parseInt(_0x3eed70(0x1ee))/0xc);if(_0x26a63c===_0x486184)break;else _0x551f84['push'](_0x551f84['shift']());}catch(_0x7f7bd5){_0x551f84['push'](_0x551f84['shift']());}}}(a57_0x5495,0x6c11c));const {isTrue,isBrowserstackInfra}=require(a57_0x4bd88c(0x1e7)),setKeepAlive=require('../../helpers/setKeepAlive'),util=require(a57_0x4bd88c(0x1cb)),logger=require(a57_0x4bd88c(0x1cc))[a57_0x4bd88c(0x1ea)],{shouldProcessEventForTesthub}=require(a57_0x4bd88c(0x1ed)),{addRequestSpy}=require(a57_0x4bd88c(0x1e8)),a57_0x599d38={};function a57_0x5495(){const _0x5041c1=['12oPLslX','env','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','getInstance','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','jestConfig','402ujguQd','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','o11ySyncDone','isPageFixture','util','../../helpers/logger','initializePuppeteerPatching','puppeteer','109806UwDEvy','workerInfo','../utils/puppeteer-patcher','9XFiPIn','true','3330SeKgkE','debug','pwPage','bootstrap','isCliEnabled','testInfo','4765aNKUzi','4242512fGryyy','format','15677101SBBuym','catch','__workerDetails','4011NnjQMR','7078870rSmoGF','BROWSERSTACK_PUPPETEER','2998436eoKbqq','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','getPackageVersion','../../helpers/helper','../../helpers/test-observability/utils','currentTest','winstonLogger','8mUPlhF','JEST','../../helpers/testhub/utils'];a57_0x5495=function(){return _0x5041c1;};return a57_0x5495();}function a57_0x2400(_0xfff707,_0x8890b0){const _0x54953f=a57_0x5495();return a57_0x2400=function(_0x2400a8,_0x7f42b){_0x2400a8=_0x2400a8-0x1c8;let _0x353358=_0x54953f[_0x2400a8];return _0x353358;},a57_0x2400(_0xfff707,_0x8890b0);}a57_0x599d38[a57_0x4bd88c(0x1d0)]=undefined,a57_0x599d38[a57_0x4bd88c(0x1e9)]={},a57_0x599d38[a57_0x4bd88c(0x1c9)]=![],a57_0x599d38[a57_0x4bd88c(0x1d6)]=null,a57_0x599d38[a57_0x4bd88c(0x1ca)]=![],a57_0x599d38[a57_0x4bd88c(0x1e9)]['id']=undefined,a57_0x599d38[a57_0x4bd88c(0x1e9)][a57_0x4bd88c(0x1d9)]=undefined;const workerDetails=a57_0x599d38;global[a57_0x4bd88c(0x1df)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global[a57_0x4bd88c(0x1f3)])try{isBrowserstackInfra()?(global['__skipSessionName']=isTrue(global[a57_0x4bd88c(0x1f3)]?.['skipSessionName']),global['__skipSessionStatus']=isTrue(global[a57_0x4bd88c(0x1f3)]?.['skipSessionStatus'])):(global['__skipSessionName']=!![],global['__skipSessionStatus']=!![]);const helper=require(a57_0x4bd88c(0x1e7)),puppeteerVersion=helper[a57_0x4bd88c(0x1e6)](a57_0x4bd88c(0x1ce))||helper[a57_0x4bd88c(0x1e6)]('puppeteer-core');if(puppeteerVersion)try{logger[a57_0x4bd88c(0x1d5)](a57_0x4bd88c(0x1e4)),puppeteerPatcher=require(a57_0x4bd88c(0x1d1)),puppeteerPatcher[a57_0x4bd88c(0x1cd)](global[a57_0x4bd88c(0x1f3)]),logger[a57_0x4bd88c(0x1d5)](a57_0x4bd88c(0x1c8));}catch(a57_0x134899){logger[a57_0x4bd88c(0x1d5)](a57_0x4bd88c(0x1e5)+util['format'](a57_0x134899));}if(puppeteerPatcher)try{const BrowserstackCLI=require('../v2/browserstackCLI'),CLIUtils=require('../v2/cliUtils'),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI[a57_0x4bd88c(0x1f1)]()[a57_0x4bd88c(0x1d8)]()&&(logger[a57_0x4bd88c(0x1d5)]('[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker'),process[a57_0x4bd88c(0x1ef)][a57_0x4bd88c(0x1e2)]=a57_0x4bd88c(0x1d3),CLIUtils['setFrameworkDetail'](FRAMEWORKS[a57_0x4bd88c(0x1ec)],FRAMEWORKS['PUPPETEER']),BrowserstackCLI[a57_0x4bd88c(0x1f1)]()[a57_0x4bd88c(0x1d7)]()[a57_0x4bd88c(0x1de)](_0x103f1f=>{const _0x4fecce=a57_0x4bd88c;logger[_0x4fecce(0x1d5)]('[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20'+util['format'](_0x103f1f));}));}catch(a57_0x5eeb81){logger['debug'](a57_0x4bd88c(0x1f2)+util[a57_0x4bd88c(0x1dc)](a57_0x5eeb81));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a57_0x449c7e){logger[a57_0x4bd88c(0x1d5)]('[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20'+util[a57_0x4bd88c(0x1dc)](a57_0x449c7e));}logger[a57_0x4bd88c(0x1d5)](a57_0x4bd88c(0x1f0));
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a60_0x121a09=a60_0xd79c;(function(_0x27a8fe,_0xba0d90){const _0x1a34cd=a60_0xd79c,_0x2585f8=_0x27a8fe();while(!![]){try{const _0x3dbb97=parseInt(_0x1a34cd(0x14d))/0x1+parseInt(_0x1a34cd(0x13b))/0x2+-parseInt(_0x1a34cd(0x163))/0x3+-parseInt(_0x1a34cd(0x18d))/0x4+parseInt(_0x1a34cd(0x146))/0x5*(-parseInt(_0x1a34cd(0x175))/0x6)+-parseInt(_0x1a34cd(0x12d))/0x7*(-parseInt(_0x1a34cd(0x1a2))/0x8)+parseInt(_0x1a34cd(0x10e))/0x9*(-parseInt(_0x1a34cd(0x120))/0xa);if(_0x3dbb97===_0xba0d90)break;else _0x2585f8['push'](_0x2585f8['shift']());}catch(_0x2ce81c){_0x2585f8['push'](_0x2585f8['shift']());}}}(a60_0x21a9,0x5f83f));function a60_0xd79c(_0x922e8c,_0xe6fa9d){const _0x21a948=a60_0x21a9();return a60_0xd79c=function(_0xd79c99,_0x5f340c){_0xd79c99=_0xd79c99-0xf8;let _0x3e1f6a=_0x21a948[_0xd79c99];return _0x3e1f6a;},a60_0xd79c(_0x922e8c,_0xe6fa9d);}const fs=require('fs'),path=require(a60_0x121a09(0x196)),util=require(a60_0x121a09(0x159)),spawn=require(a60_0x121a09(0x115))[a60_0x121a09(0x129)],{requireModule}=require(a60_0x121a09(0x165)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a60_0x121a09(0x15a))[a60_0x121a09(0x17f)],helper=require('../helpers/helper'),utilities=require(a60_0x121a09(0x125)),{default:BrowserStackSetup}=require(a60_0x121a09(0x124)),{FRAMEWORKS}=require(a60_0x121a09(0x133)),runIntegrations=require('./integrations/command'),yargs=require(a60_0x121a09(0x10b)),Constants=require(a60_0x121a09(0x16f)),BrowserstackCLI=require(a60_0x121a09(0x1a6)),{isNewman}=require('./newman/helper'),logger=require(a60_0x121a09(0x190))[a60_0x121a09(0x171)],origArgs=Object[a60_0x121a09(0x198)]([],process[a60_0x121a09(0x10c)]),captureError=async(_0x4c6db3,_0x269fff,_0x3f5cec,_0x5d919d=null,_0x96ae2c=![])=>{const _0x4a9d06=a60_0x121a09,_0xd25668={'MiGlH':function(_0x2c9322,_0x3b130b,_0x1d6d8d,_0xf7ffe6){return _0x2c9322(_0x3b130b,_0x1d6d8d,_0xf7ffe6);},'DcYpn':_0x4a9d06(0x191)};try{logger[_0x4a9d06(0x153)](_0x4a9d06(0x101)+origArgs[_0x4a9d06(0x14c)]('\x20')),await _0xd25668[_0x4a9d06(0x19b)](_0x4c6db3,_0x269fff,_0x5d919d,_0x3f5cec);}catch(_0x1c21a0){process[_0x4a9d06(0x16a)]=0x1,logger[_0x4a9d06(0x174)](util[_0x4a9d06(0x11f)](_0x1c21a0));const _0x5217a1={'globalException':util['format']('%j',_0x1c21a0)};PerformanceTester[_0x4a9d06(0x1a3)](PerformanceEvents['SDK_SETUP'],![],util['format'](_0x1c21a0));if(helper[_0x4a9d06(0x177)](global['config'])&&helper[_0x4a9d06(0x177)](global[_0x4a9d06(0x145)]))return;try{utilities[_0x4a9d06(0x16e)](_0xd25668[_0x4a9d06(0x172)],_0x5217a1,global['config'],global[_0x4a9d06(0x145)]);}catch(_0x3da1c6){logger[_0x4a9d06(0x188)](_0x4a9d06(0x12b)+_0x3da1c6[_0x4a9d06(0xfd)]);}try{await helper[_0x4a9d06(0x15b)](global['config']);}catch(_0xa2718){logger['debug']('Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20'+_0xa2718[_0x4a9d06(0xfd)]);}PerformanceTester['end'](PerformanceEvents[_0x4a9d06(0x1ab)],![],util[_0x4a9d06(0x11f)](_0x1c21a0));}finally{!_0x96ae2c&&await BrowserstackCLI[_0x4a9d06(0x119)]()[_0x4a9d06(0x17c)](),PerformanceTester[_0x4a9d06(0x186)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path['join'](helper[a60_0x121a09(0x16d)](),a60_0x121a09(0x11e));if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a60_0x121a09(0x14c)](browserstackFolderPath,a60_0x121a09(0x10a));fs[a60_0x121a09(0x182)](filePath)&&fs[a60_0x121a09(0x108)](filePath);}}catch(a60_0x17411c){logger['debug']('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a60_0x17411c[a60_0x121a09(0x110)]);}process['argv'][a60_0x121a09(0x14b)](a60_0x121a09(0x1a4))&&(!process[a60_0x121a09(0x10c)][a60_0x121a09(0x14b)](a60_0x121a09(0x106))&&process[a60_0x121a09(0x10c)][a60_0x121a09(0x138)](a60_0x121a09(0x18e)),!process[a60_0x121a09(0x10c)]['find'](_0x3a455f=>_0x3a455f[a60_0x121a09(0x14b)]('--config'))&&process[a60_0x121a09(0x10c)]['push'](a60_0x121a09(0x176)),!process[a60_0x121a09(0x10c)]['includes'](a60_0x121a09(0x1a9))&&process[a60_0x121a09(0x10c)]['push'](a60_0x121a09(0x194)),helper[a60_0x121a09(0x197)](process[a60_0x121a09(0x10c)],a60_0x121a09(0x184),a60_0x121a09(0x109)));function a60_0x21a9(){const _0x345134=['mphYB','BROWSERSTACK_CONFIG_FILE_PATH','getPwChannelLogPath','exitProcess','EDwdS','mocha/lib/cli/cli.js','map','vIwdx','framework','26165PzTTBj','jTLkE','JASMINE','VERSION','handler','includes','join','756565hdMIXE','wZEwq','cucumber-js','Show\x20help','bQQrp','usage','info','JEST','command','pw:channel','CEGYv','setTestObservabilityDisable','util','../helpers/performance/constants','sendLogs','jest','slice','tIVbF','fMzKg','env','yCZgB','MOCHA','806112dChIMi','./codeceptjs/command','../helpers/helper','./jasmine/command','./mocha/command','ZzJKd','mZDhT','exitCode','./newman/command','vanilla','homedir','fireFunnelTestEvent','./utils/constants','pw:channel\x20auto-capture\x20seed\x20failed:\x20','winstonLogger','DcYpn','rzTvL','error','354IJLVfz','--no-config','isUndefined','JHSWW','szIjJ','run','YnnEP','stop','CODECEPTJS','DEBUG','EVENTS','load\x20[subcommand]','config','existsSync','zachy','--require','qJLLk','start','xGVhl','debug','HST','lylbH','NIGHTWATCH','Runs\x20the\x20binary\x20with\x20load\x20command','237552NsZCAQ','--no-opts','nuZdQ','../helpers/logger','SDKTestSuccessful','alias','PLAYWRIGHT','--no-package','boolean','path','findAndReplace','assign','jasmine','dot-notation','MiGlH','QkwjS','hZfRW','qGkHg','RAHcY','integrations','testcafe','168FcoSmZ','end','mocha','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','./v2/browserstackCLI','DEBUG_FILE','nightwatch','--package','nkcPY','SDK_SETUP','-pw:channel','wrap','parserConfiguration','node','RUXGD','TgYFZ','ObWIf','playwright','IHkFO','BegMl','stack','newman','help','tVEBl','Running\x20SDK\x20with\x20args\x20','INFO','mpJrl','./playwright/command','pEPEl','--opts','XyOHs','unlinkSync','--mochaRequire','.local-not-set.json','yargs','argv','LTmVU','12906IdSIhG','./testcafe/command','message','strict','getConfigPath','ats','version','child_process','usage:\x20$0\x20<command>\x20[args]','eheta','INTEGRATIONS','getInstance','disableAutoCaptureLogs','codeceptjs','pw:*','some','.browserstack','format','3540LBaHPX','../../ats/src/index','setBrowserStackAutomationDisable','describe','../helpers/BrowserStackSetup','../helpers/utilities','Rfnmh','otWaV','HELP','spawn','qRPWI','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','xGAMz','209867IhUnRC','fUkVi','sIDhb','./cucumber-js/command','trim','AlWbW','../helpers/test-observability/constants','./jest/command','mocha/lib/cli/run.js','SMVdr','split','push','VEKkU','yeCHJ','299080JaWCXk','CUCUMBER'];a60_0x21a9=function(){return _0x345134;};return a60_0x21a9();}PerformanceTester[a60_0x121a09(0x186)](PerformanceEvents[a60_0x121a09(0x1ab)]);const a60_0x13ff0e={};a60_0x13ff0e[a60_0x121a09(0x19a)]=![];const argv=yargs[a60_0x121a09(0x1ae)](a60_0x13ff0e)[a60_0x121a09(0x152)](a60_0x121a09(0x116))[a60_0x121a09(0x192)]('v',a60_0x121a09(0x114))[a60_0x121a09(0x123)]('v')[a60_0x121a09(0x192)]('h',a60_0x121a09(0xff))[a60_0x121a09(0xff)](a60_0x121a09(0xff))['showHelpOnFail'](!![],Constants[a60_0x121a09(0x149)][a60_0x121a09(0x128)])[a60_0x121a09(0x155)](a60_0x121a09(0x15c),Constants[a60_0x121a09(0x154)]['INFO'],function(_0x5c7e87){const _0x4f0cb1=a60_0x121a09,_0x2f2b22={'RAHcY':_0x4f0cb1(0x15c),'yeCHJ':function(_0x16e5d8,_0x1d0213,_0x42cbff,_0x4c031d,_0x3a6c98,_0x3054c5){return _0x16e5d8(_0x1d0213,_0x42cbff,_0x4c031d,_0x3a6c98,_0x3054c5);},'mphYB':function(_0x2ea6cf,_0x5431c7){return _0x2ea6cf(_0x5431c7);},'ZKYjm':_0x4f0cb1(0x134)},_0x495fd9=process[_0x4f0cb1(0x10c)][_0x4f0cb1(0x15d)](0x2);helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable'](),_0x5c7e87[_0x4f0cb1(0x111)](![]);const _0x5686b5=new BrowserStackSetup(_0x5c7e87['argv'],_0x2f2b22[_0x4f0cb1(0x19f)]);return _0x2f2b22[_0x4f0cb1(0x13a)](captureError,_0x2f2b22[_0x4f0cb1(0x13d)](require,_0x2f2b22['ZKYjm']),_0x5c7e87[_0x4f0cb1(0x10c)],_0x5686b5,_0x495fd9,!![]);})[a60_0x121a09(0x155)](a60_0x121a09(0x199),Constants[a60_0x121a09(0x148)][a60_0x121a09(0x102)],function(_0x4bf18b){const _0x250e91=a60_0x121a09,_0x364f92={'Rfnmh':_0x250e91(0x199),'SMVdr':function(_0x5d1d68,_0x1ec80c,_0x342a38,_0x236fec,_0x3c4c59,_0x154e0b){return _0x5d1d68(_0x1ec80c,_0x342a38,_0x236fec,_0x3c4c59,_0x154e0b);},'otWaV':function(_0x3fd6e7,_0x2839e2){return _0x3fd6e7(_0x2839e2);},'fUkVi':_0x250e91(0x166)},_0x2fe468=process['argv'][_0x250e91(0x15d)](0x2);helper[_0x250e91(0x158)](),helper[_0x250e91(0x122)](),_0x4bf18b['strict'](![]);const _0x3e40f2=new BrowserStackSetup(_0x4bf18b[_0x250e91(0x10c)],_0x364f92[_0x250e91(0x126)]);return _0x364f92[_0x250e91(0x136)](captureError,_0x364f92[_0x250e91(0x127)](require,_0x364f92[_0x250e91(0x12e)]),_0x4bf18b[_0x250e91(0x10c)],_0x3e40f2,_0x2fe468,!![]);})['command'](a60_0x121a09(0x1a4),Constants[a60_0x121a09(0x162)][a60_0x121a09(0x102)],_0x112611=>{const _0x2b6af5=a60_0x121a09,_0x1d9e7c={'mZDhT':function(_0x12191b,_0x5241b0,_0x7f48db,_0x25553e){return _0x12191b(_0x5241b0,_0x7f48db,_0x25553e);},'yCZgB':function(_0x149051,_0x4d6413){return _0x149051(_0x4d6413);},'wZEwq':_0x2b6af5(0x167),'szIjJ':_0x2b6af5(0x1a4),'XyOHs':'Parsing\x20command\x20line\x20arguments','qJLLk':function(_0x59a411,_0x2887b2,_0x5720af){return _0x59a411(_0x2887b2,_0x5720af);},'VEKkU':_0x2b6af5(0x135),'hZfRW':'mocha/lib/cli/commands.js','ZkjzV':function(_0x1c65b1,_0x9c427d,_0x17390e){return _0x1c65b1(_0x9c427d,_0x17390e);},'BegMl':_0x2b6af5(0x142),'ZzJKd':function(_0x369aa2){return _0x369aa2();}};process[_0x2b6af5(0x10c)]=process[_0x2b6af5(0x10c)][_0x2b6af5(0x15d)](0x1),helper[_0x2b6af5(0x158)](),helper['setBrowserStackAutomationDisable']();const _0x48a1f1=new BrowserStackSetup(_0x112611[_0x2b6af5(0x10c)],_0x1d9e7c[_0x2b6af5(0x179)]);logger['debug'](_0x1d9e7c[_0x2b6af5(0x107)]);const _0x4b1ca8=_0x1d9e7c['qJLLk'](requireModule,_0x1d9e7c[_0x2b6af5(0x139)],_0x1d9e7c[_0x2b6af5(0x179)]),_0x5d5c9d=_0x1d9e7c[_0x2b6af5(0x185)](requireModule,_0x1d9e7c[_0x2b6af5(0x19d)],_0x1d9e7c[_0x2b6af5(0x179)]);delete _0x4b1ca8['handler'],_0x4b1ca8[_0x2b6af5(0x14a)]=function(_0x133465){const _0x152d47=_0x2b6af5;return _0x1d9e7c[_0x152d47(0x169)](captureError,_0x1d9e7c[_0x152d47(0x161)](require,_0x1d9e7c[_0x152d47(0x14e)]),_0x133465,_0x48a1f1);},_0x5d5c9d[_0x2b6af5(0x17a)]=_0x4b1ca8;const {main:_0x1e1892}=_0x1d9e7c['ZkjzV'](requireModule,_0x1d9e7c[_0x2b6af5(0xfc)],_0x1d9e7c[_0x2b6af5(0x179)]);_0x1d9e7c[_0x2b6af5(0x168)](_0x1e1892);})[a60_0x121a09(0x155)](a60_0x121a09(0x14f),Constants[a60_0x121a09(0x13c)]['INFO'],function(_0x481ba2){const _0x4561b5=a60_0x121a09,_0x2c07c7={'mpJrl':_0x4561b5(0x14f),'qGkHg':function(_0x2db7dd,_0x3b3ccb,_0x2eaec6,_0x5e37a3,_0x3fb6fe,_0x5255d5){return _0x2db7dd(_0x3b3ccb,_0x2eaec6,_0x5e37a3,_0x3fb6fe,_0x5255d5);},'wyPKI':function(_0x3c8e3b,_0x365280){return _0x3c8e3b(_0x365280);},'JHSWW':_0x4561b5(0x130)},_0x225411=process['argv'][_0x4561b5(0x15d)](0x2),_0x464d31=new BrowserStackSetup(_0x481ba2[_0x4561b5(0x10c)],_0x2c07c7[_0x4561b5(0x103)]);return _0x2c07c7[_0x4561b5(0x19e)](captureError,_0x2c07c7['wyPKI'](require,_0x2c07c7[_0x4561b5(0x178)]),_0x481ba2['argv'],_0x464d31,_0x225411,!![]);})['command'](a60_0x121a09(0x1af),Constants['VANILLA'][a60_0x121a09(0x102)],function(_0x35c44a){const _0x25bfe8=a60_0x121a09,_0x23a2bf={'MTeJM':_0x25bfe8(0x16c),'bQQrp':function(_0x1d8937,_0x48a400){return _0x1d8937(_0x48a400);},'VvHjS':_0x25bfe8(0xfe),'VHjKr':function(_0x2fa75b,_0x30c3d4,_0x34d25f,_0x5d2f54,_0x4808d9){return _0x2fa75b(_0x30c3d4,_0x34d25f,_0x5d2f54,_0x4808d9);},'fMzKg':_0x25bfe8(0x16b),'nuZdQ':function(_0x508e8c,_0x47f443){return _0x508e8c(_0x47f443);},'yTTix':'./vanilla-js/command'},_0x1829fc=process[_0x25bfe8(0x10c)][_0x25bfe8(0x15d)](0x2),_0x1e4e21=new BrowserStackSetup(_0x35c44a[_0x25bfe8(0x10c)],_0x23a2bf['MTeJM']),_0xdfb9ad=_0x1e4e21?_0x1e4e21[_0x25bfe8(0x181)]:null;if(_0x23a2bf[_0x25bfe8(0x151)](isNewman,_0xdfb9ad))return _0x1e4e21['framework']=_0x23a2bf['VvHjS'],global[_0x25bfe8(0x145)]=_0x23a2bf['VvHjS'],_0x23a2bf['VHjKr'](captureError,_0x23a2bf[_0x25bfe8(0x151)](require,_0x23a2bf[_0x25bfe8(0x15f)]),_0x35c44a[_0x25bfe8(0x10c)],_0x1e4e21,_0x1829fc);return _0x23a2bf['VHjKr'](captureError,_0x23a2bf[_0x25bfe8(0x18f)](require,_0x23a2bf['yTTix']),_0x35c44a[_0x25bfe8(0x10c)],_0x1e4e21,_0x1829fc);})[a60_0x121a09(0x155)](a60_0x121a09(0x1a8),Constants[a60_0x121a09(0x18b)][a60_0x121a09(0x102)],function(_0x135166){const _0x5b271a=a60_0x121a09,_0x23c7c7={'lylbH':'nightwatch','AlWbW':function(_0x35e877,_0x1e4288,_0x5f4cb5,_0x488d16,_0x44534e){return _0x35e877(_0x1e4288,_0x5f4cb5,_0x488d16,_0x44534e);},'tIVbF':function(_0x38e99a,_0x1f42c9){return _0x38e99a(_0x1f42c9);},'LTmVU':'./nightwatch/command'},_0x8de792=process[_0x5b271a(0x10c)][_0x5b271a(0x15d)](0x2),_0xeb2adc=new BrowserStackSetup(_0x135166[_0x5b271a(0x10c)],_0x23c7c7[_0x5b271a(0x18a)]);return _0x23c7c7[_0x5b271a(0x132)](captureError,_0x23c7c7[_0x5b271a(0x15e)](require,_0x23c7c7[_0x5b271a(0x10d)]),_0x135166[_0x5b271a(0x10c)],_0xeb2adc,_0x8de792);})[a60_0x121a09(0x155)](a60_0x121a09(0x11b),Constants[a60_0x121a09(0x17d)][a60_0x121a09(0x102)],function(_0x1a7788){const _0x4ca2e1=a60_0x121a09,_0x4c4e28={'kNWFy':_0x4ca2e1(0x11b),'eItKo':function(_0x3014ce,_0x314cfb,_0x3934fc,_0x184214,_0x1e0336){return _0x3014ce(_0x314cfb,_0x3934fc,_0x184214,_0x1e0336);},'sIDhb':function(_0x3489ef,_0xab45d9){return _0x3489ef(_0xab45d9);},'TgYFZ':_0x4ca2e1(0x164)},_0x4f936c=process[_0x4ca2e1(0x10c)]['slice'](0x2),_0x573494=new BrowserStackSetup(_0x1a7788[_0x4ca2e1(0x10c)],_0x4c4e28['kNWFy']);return _0x4c4e28['eItKo'](captureError,_0x4c4e28[_0x4ca2e1(0x12f)](require,_0x4c4e28[_0x4ca2e1(0xf8)]),_0x1a7788[_0x4ca2e1(0x10c)],_0x573494,_0x4f936c);})[a60_0x121a09(0x155)](a60_0x121a09(0x113),Constants[a60_0x121a09(0x189)]['INFO'],function(_0x559ea3){const _0x1f4356=a60_0x121a09,_0x23f281={'eheta':function(_0x5559c6,_0x4e92cf,_0x3bd2fc){return _0x5559c6(_0x4e92cf,_0x3bd2fc);},'xGVhl':function(_0x19f9af,_0x26c698){return _0x19f9af(_0x26c698);},'jTLkE':_0x1f4356(0x121)},_0x4db977=process[_0x1f4356(0x10c)][_0x1f4356(0x15d)](0x2);return _0x23f281[_0x1f4356(0x117)](captureError,_0x23f281[_0x1f4356(0x187)](require,_0x23f281[_0x1f4356(0x147)]),_0x559ea3);})[a60_0x121a09(0x155)](a60_0x121a09(0x1a0),Constants[a60_0x121a09(0x118)][a60_0x121a09(0x102)],function(_0x24b15d){const _0x47165c=a60_0x121a09,_0x246c43={'ObWIf':function(_0x484980,_0x3bc92f){return _0x484980(_0x3bc92f);}};return _0x246c43[_0x47165c(0xf9)](runIntegrations,_0x24b15d);})[a60_0x121a09(0x155)](a60_0x121a09(0xfa),Constants[a60_0x121a09(0x193)][a60_0x121a09(0x102)],function(_0x210d76){const _0x59e8e8=a60_0x121a09,_0x551d80={'EDwdS':_0x59e8e8(0x156),'hvRac':function(_0x2c46f7,_0x58c47b){return _0x2c46f7&&_0x58c47b;},'rzTvL':function(_0x14c6aa,_0xd768ba,_0x339981,_0x53e997,_0xe6c4d6,_0x583337){return _0x14c6aa(_0xd768ba,_0x339981,_0x53e997,_0xe6c4d6,_0x583337);},'zachy':function(_0x52a6b7,_0x2c379a){return _0x52a6b7(_0x2c379a);},'LqzRi':_0x59e8e8(0x104)},_0x3fb15f=process[_0x59e8e8(0x10c)]['slice'](0x2);helper[_0x59e8e8(0x112)](process['argv'])&&(process['env'][_0x59e8e8(0x13e)]=helper[_0x59e8e8(0x112)](process[_0x59e8e8(0x10c)]));helper[_0x59e8e8(0x158)](),helper[_0x59e8e8(0x122)]();const _0x31be55=new BrowserStackSetup(_0x210d76['argv'],FRAMEWORKS[_0x59e8e8(0x193)]);try{if(!_0x31be55['config']||!_0x31be55[_0x59e8e8(0x181)][_0x59e8e8(0x11a)]){const _0x243056=_0x551d80[_0x59e8e8(0x141)],_0x336143=process['env']['DEBUG']||'',_0x41361a=_0x336143[_0x59e8e8(0x137)](',')[_0x59e8e8(0x143)](_0xa9c26e=>_0xa9c26e[_0x59e8e8(0x131)]())['filter'](Boolean),_0x1473d5=_0x41361a[_0x59e8e8(0x11d)](_0x5f57b2=>_0x5f57b2===_0x59e8e8(0x1ac)||_0x5f57b2==='-pw:*'||_0x5f57b2==='-*'),_0xe0293e=_0x41361a[_0x59e8e8(0x11d)](_0x3cf70c=>_0x3cf70c===_0x243056||_0x3cf70c===_0x59e8e8(0x11c)||_0x3cf70c==='*');if(_0x551d80['hvRac'](!_0x1473d5,!_0xe0293e)){const _0x65b28b=helper[_0x59e8e8(0x13f)]();_0x65b28b&&(process[_0x59e8e8(0x160)][_0x59e8e8(0x17e)]=_0x336143?_0x336143+','+_0x243056:_0x243056,!process[_0x59e8e8(0x160)][_0x59e8e8(0x1a7)]&&(process['env'][_0x59e8e8(0x1a7)]=_0x65b28b));}}}catch(_0x1c32ad){logger[_0x59e8e8(0x188)](_0x59e8e8(0x170)+util[_0x59e8e8(0x11f)](_0x1c32ad));}return _0x551d80[_0x59e8e8(0x173)](captureError,_0x551d80[_0x59e8e8(0x183)](require,_0x551d80['LqzRi']),_0x210d76[_0x59e8e8(0x10c)],_0x31be55,_0x3fb15f,!![]);})['command'](a60_0x121a09(0x1a1),Constants['TESTCAFE'][a60_0x121a09(0x102)],function(_0x19af1b){const _0x36afb1=a60_0x121a09,_0x97fdf5={'YnnEP':_0x36afb1(0x1a1),'qRPWI':function(_0x2dbd88,_0x215b79,_0x544501,_0x1a8db7,_0x1ca297,_0x1b4970){return _0x2dbd88(_0x215b79,_0x544501,_0x1a8db7,_0x1ca297,_0x1b4970);},'EUYtf':function(_0x2e2b4c,_0x1a2a25){return _0x2e2b4c(_0x1a2a25);},'xGAMz':_0x36afb1(0x10f)},_0x1d8765=process['argv'][_0x36afb1(0x15d)](0x2),_0x337f18=new BrowserStackSetup(_0x19af1b[_0x36afb1(0x10c)],_0x97fdf5[_0x36afb1(0x17b)]);return _0x97fdf5[_0x36afb1(0x12a)](captureError,_0x97fdf5['EUYtf'](require,_0x97fdf5[_0x36afb1(0x12c)]),_0x19af1b[_0x36afb1(0x10c)],_0x337f18,_0x1d8765,!![]);})[a60_0x121a09(0x155)](a60_0x121a09(0x180),a60_0x121a09(0x18c),function(_0x3259ac){const _0x3b7e14=a60_0x121a09,_0x55bdc9={};_0x55bdc9[_0x3b7e14(0x1aa)]='help',_0x55bdc9[_0x3b7e14(0xfb)]=_0x3b7e14(0x195),_0x55bdc9[_0x3b7e14(0x157)]=_0x3b7e14(0x150);const _0x3f7a66=_0x55bdc9;return _0x3259ac[_0x3b7e14(0xff)](![])['option'](_0x3f7a66['nkcPY'],{'alias':'h','type':_0x3f7a66[_0x3b7e14(0xfb)],'describe':_0x3f7a66[_0x3b7e14(0x157)]})[_0x3b7e14(0x111)](![])[_0x3b7e14(0x140)](![]);},function(_0x4fd557){const _0x311fff=a60_0x121a09,_0x1d6376={'QkwjS':function(_0x5744cc,_0x215d58,_0x209e70){return _0x5744cc(_0x215d58,_0x209e70);},'tVEBl':function(_0x62bbf6,_0x3ce30d){return _0x62bbf6(_0x3ce30d);},'pEPEl':'./load/index'},_0x709bb0={};return _0x709bb0[_0x311fff(0x10c)]=_0x4fd557,_0x1d6376[_0x311fff(0x19c)](captureError,_0x1d6376[_0x311fff(0x100)](require,_0x1d6376[_0x311fff(0x105)]),_0x709bb0);})[a60_0x121a09(0x155)](a60_0x121a09(0xfe),Constants['NEWMAN'][a60_0x121a09(0x102)],function(_0x5eccb4){const _0x11b872=a60_0x121a09,_0x4fd541={'kwiMy':_0x11b872(0xfe),'vIwdx':function(_0x2e6efb,_0x43c6d1,_0x50e778,_0x597ced,_0x2f10b9){return _0x2e6efb(_0x43c6d1,_0x50e778,_0x597ced,_0x2f10b9);},'hsFpG':function(_0x4a3f9b,_0x523da9){return _0x4a3f9b(_0x523da9);},'RUXGD':_0x11b872(0x16b)},_0x532ac9=process[_0x11b872(0x10c)]['slice'](0x2);helper['setTestObservabilityDisable'](),helper[_0x11b872(0x122)](),_0x5eccb4['strict'](![]);const _0x337510=new BrowserStackSetup(_0x5eccb4[_0x11b872(0x10c)],_0x4fd541['kwiMy']);return _0x4fd541[_0x11b872(0x144)](captureError,_0x4fd541['hsFpG'](require,_0x4fd541[_0x11b872(0x1b0)]),_0x5eccb4[_0x11b872(0x10c)],_0x337510,_0x532ac9);})['demandCommand'](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a60_0x121a09(0x1ad)](null)['argv'];!helper[a60_0x121a09(0x177)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x121a09(0x113)&&console[a60_0x121a09(0x174)](a60_0x121a09(0x1a5));
|
|
2
|
+
'use strict';const a58_0x30292f=a58_0x3ba1;(function(_0x388a00,_0x3aee0a){const _0x413cfd=a58_0x3ba1,_0x2927be=_0x388a00();while(!![]){try{const _0x58d352=parseInt(_0x413cfd(0x172))/0x1+parseInt(_0x413cfd(0x128))/0x2+-parseInt(_0x413cfd(0x14c))/0x3*(-parseInt(_0x413cfd(0x147))/0x4)+parseInt(_0x413cfd(0x130))/0x5+parseInt(_0x413cfd(0x145))/0x6+-parseInt(_0x413cfd(0x17d))/0x7+-parseInt(_0x413cfd(0x167))/0x8*(-parseInt(_0x413cfd(0x184))/0x9);if(_0x58d352===_0x3aee0a)break;else _0x2927be['push'](_0x2927be['shift']());}catch(_0x13f9c5){_0x2927be['push'](_0x2927be['shift']());}}}(a58_0x47cf,0xb91dc));function a58_0x47cf(){const _0x4a446e=['jkfvY','strict','Tebbh','INFO','../helpers/helper','getConfigPath','9HqCuMk','config','usage:\x20$0\x20<command>\x20[args]','framework','cucumber-js','debug','includes','./v2/browserstackCLI','fireFunnelTestEvent','findAndReplace','./newman/helper','handler','vijts','CDNkz','../helpers/utilities','nightwatch','YXaUj','nVXqj','./jest/command','NEWMAN','../../ats/src/index','KwybN','mocha/lib/cli/commands.js','../helpers/performance/performance-tester','newman','--no-opts','../helpers/BrowserStackSetup','VTQQl','./mocha/command','ats','boolean','setTestObservabilityDisable','KLSID','pw:channel','EVENTS','DEBUG','-pw:*','filter','wrap','help','mqgEr','--mochaRequire','util','ymyXJ','GEEBS','WFGow','SDK_SETUP','Vwbln','message','slice','getInstance','stop','ThzgP','path','load\x20[subcommand]','BmzjG','homedir','./codeceptjs/command','yargs','./load/index','playwright','QvdqA','vyyqo','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','ZsqqF','xszmc','vSvoD','VANILLA','./cucumber-js/command','start','CODECEPTJS','../helpers/test-observability/constants','version','./playwright/command','DVifr','mocha','jest','jasmine','TnJxB','.browserstack','nLarA','error','PLAYWRIGHT','env','mocha/lib/cli/run.js','exitProcess','assign','disableAutoCaptureLogs','showHelpOnFail','xxBzX','VYvpb','MOCHA','Runs\x20the\x20binary\x20with\x20load\x20command','2106082xdSYBt','argv','../helpers/performance/constants','HST','setBrowserStackAutomationDisable','CWNMg','mHeNZ','HELP','172090bLaIAs','end','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','join','OnxtU','vanilla','myEcA','ZeScB','exitCode','TESTCAFE','format','Parsing\x20command\x20line\x20arguments','zTvGF','SDK_CLEANUP','HzCBQ','NsOib','DEBUG_FILE','.local-not-set.json','bfOhW','uHGvM','UYHvg','26412rDpYEv','EsExw','25652IkOyig','./testcafe/command','mocha/lib/cli/cli.js','map','XtLev','159amXJKr','./integrations/command','JEST','aMTPm','Qmktn','./utils/constants','split','mVXYR','--no-config','VERSION','pw:channel\x20auto-capture\x20seed\x20failed:\x20','pw:*','CUCUMBER','BLTDn','JASMINE','some','push','command','parserConfiguration','gYZhY','demandCommand','isUndefined','ILdbf','find','sendLogs','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','--opts','1413848ZELBVD','EfwHS','Irbrd','BROWSERSTACK_CONFIG_FILE_PATH','existsSync','--config','integrations','child_process','./newman/command','trim','describe','281824bAFnbO','SDKTestSuccessful','alias','-pw:channel','IUioZ','./vanilla-js/command','info','stack','node','qmcxB','./jasmine/command','7924483iFHXOr'];a58_0x47cf=function(){return _0x4a446e;};return a58_0x47cf();}function a58_0x3ba1(_0x436b46,_0xa72a74){const _0x47cf9e=a58_0x47cf();return a58_0x3ba1=function(_0x3ba159,_0x1ee85b){_0x3ba159=_0x3ba159-0x119;let _0xf3093e=_0x47cf9e[_0x3ba159];return _0xf3093e;},a58_0x3ba1(_0x436b46,_0xa72a74);}const fs=require('fs'),path=require(a58_0x30292f(0x1b9)),util=require(a58_0x30292f(0x1ae)),spawn=require(a58_0x30292f(0x16e))['spawn'],{requireModule}=require(a58_0x30292f(0x182)),PerformanceTester=require(a58_0x30292f(0x19b)),PerformanceEvents=require(a58_0x30292f(0x12a))[a58_0x30292f(0x1a6)],helper=require(a58_0x30292f(0x182)),utilities=require(a58_0x30292f(0x192)),{default:BrowserStackSetup}=require(a58_0x30292f(0x19e)),{FRAMEWORKS}=require(a58_0x30292f(0x1cb)),runIntegrations=require(a58_0x30292f(0x14d)),yargs=require(a58_0x30292f(0x1be)),Constants=require(a58_0x30292f(0x151)),BrowserstackCLI=require(a58_0x30292f(0x18b)),{isNewman}=require(a58_0x30292f(0x18e)),logger=require('../helpers/logger')['winstonLogger'],origArgs=Object[a58_0x30292f(0x121)]([],process[a58_0x30292f(0x129)]),captureError=async(_0x80e61a,_0x449a93,_0x3ab38f,_0x10ddea=null,_0x560244=![])=>{const _0x22a3d6=a58_0x30292f,_0x562736={'ymyXJ':function(_0x2939a7,_0x13eece,_0x5e0d52,_0x32e573){return _0x2939a7(_0x13eece,_0x5e0d52,_0x32e573);},'UrbOn':_0x22a3d6(0x173)};try{logger[_0x22a3d6(0x178)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0x22a3d6(0x133)]('\x20')),await _0x562736[_0x22a3d6(0x1af)](_0x80e61a,_0x449a93,_0x10ddea,_0x3ab38f);}catch(_0x23b047){process[_0x22a3d6(0x138)]=0x1,logger['error'](util[_0x22a3d6(0x13a)](_0x23b047));const _0x3241d8={'globalException':util[_0x22a3d6(0x13a)]('%j',_0x23b047)};PerformanceTester['end'](PerformanceEvents[_0x22a3d6(0x1b2)],![],util['format'](_0x23b047));if(helper[_0x22a3d6(0x161)](global[_0x22a3d6(0x185)])&&helper[_0x22a3d6(0x161)](global[_0x22a3d6(0x187)]))return;try{utilities[_0x22a3d6(0x18c)](_0x562736['UrbOn'],_0x3241d8,global['config'],global[_0x22a3d6(0x187)]);}catch(_0x175cdd){logger[_0x22a3d6(0x189)](_0x22a3d6(0x132)+_0x175cdd[_0x22a3d6(0x179)]);}try{await helper[_0x22a3d6(0x164)](global[_0x22a3d6(0x185)]);}catch(_0x562861){logger['debug'](_0x22a3d6(0x1c3)+_0x562861['stack']);}PerformanceTester[_0x22a3d6(0x131)](PerformanceEvents['SDK_SETUP'],![],util[_0x22a3d6(0x13a)](_0x23b047));}finally{!_0x560244&&await BrowserstackCLI[_0x22a3d6(0x1b6)]()[_0x22a3d6(0x1b7)](),PerformanceTester[_0x22a3d6(0x1c9)](PerformanceEvents[_0x22a3d6(0x13d)]);}};try{const browserstackFolderPath=path[a58_0x30292f(0x133)](helper[a58_0x30292f(0x1bc)](),a58_0x30292f(0x11a));if(fs[a58_0x30292f(0x16b)](browserstackFolderPath)){const filePath=path[a58_0x30292f(0x133)](browserstackFolderPath,a58_0x30292f(0x141));fs[a58_0x30292f(0x16b)](filePath)&&fs['unlinkSync'](filePath);}}catch(a58_0x4c6a7f){logger[a58_0x30292f(0x189)]('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a58_0x4c6a7f[a58_0x30292f(0x1b4)]);}process[a58_0x30292f(0x129)][a58_0x30292f(0x18a)](a58_0x30292f(0x1cf))&&(!process[a58_0x30292f(0x129)][a58_0x30292f(0x18a)](a58_0x30292f(0x166))&&process[a58_0x30292f(0x129)][a58_0x30292f(0x15c)](a58_0x30292f(0x19d)),!process[a58_0x30292f(0x129)][a58_0x30292f(0x163)](_0xfa24e5=>_0xfa24e5[a58_0x30292f(0x18a)](a58_0x30292f(0x16c)))&&process[a58_0x30292f(0x129)][a58_0x30292f(0x15c)](a58_0x30292f(0x154)),!process[a58_0x30292f(0x129)][a58_0x30292f(0x18a)]('--package')&&process[a58_0x30292f(0x129)][a58_0x30292f(0x15c)]('--no-package'),helper[a58_0x30292f(0x18d)](process[a58_0x30292f(0x129)],'--require',a58_0x30292f(0x1ad)));PerformanceTester['start'](PerformanceEvents[a58_0x30292f(0x1b2)]);const a58_0x123885={};a58_0x123885['dot-notation']=![];const argv=yargs[a58_0x30292f(0x15e)](a58_0x123885)['usage'](a58_0x30292f(0x186))[a58_0x30292f(0x174)]('v',a58_0x30292f(0x1cc))[a58_0x30292f(0x171)]('v')[a58_0x30292f(0x174)]('h',a58_0x30292f(0x1ab))[a58_0x30292f(0x1ab)](a58_0x30292f(0x1ab))[a58_0x30292f(0x123)](!![],Constants[a58_0x30292f(0x155)][a58_0x30292f(0x12f)])[a58_0x30292f(0x15d)](a58_0x30292f(0x1d0),Constants[a58_0x30292f(0x14e)][a58_0x30292f(0x181)],function(_0x3635bd){const _0x40bf21=a58_0x30292f,_0x53498e={'nhjRN':'jest','BLTDn':function(_0x15e5b0,_0x2e5b1c,_0x376bbe,_0x5988cc,_0x4a7ea1,_0x17fe37){return _0x15e5b0(_0x2e5b1c,_0x376bbe,_0x5988cc,_0x4a7ea1,_0x17fe37);},'zTvGF':function(_0x2d8039,_0x2e2b8f){return _0x2d8039(_0x2e2b8f);},'NsOib':_0x40bf21(0x196)},_0x438f10=process[_0x40bf21(0x129)][_0x40bf21(0x1b5)](0x2);helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable'](),_0x3635bd[_0x40bf21(0x17f)](![]);const _0x5ed0d5=new BrowserStackSetup(_0x3635bd[_0x40bf21(0x129)],_0x53498e['nhjRN']);return _0x53498e[_0x40bf21(0x159)](captureError,_0x53498e[_0x40bf21(0x13c)](require,_0x53498e[_0x40bf21(0x13f)]),_0x3635bd['argv'],_0x5ed0d5,_0x438f10,!![]);})[a58_0x30292f(0x15d)](a58_0x30292f(0x1d1),Constants[a58_0x30292f(0x15a)][a58_0x30292f(0x181)],function(_0x2f7fa4){const _0x482bd8=a58_0x30292f,_0x2ac8b3={'gYZhY':_0x482bd8(0x1d1),'FxMew':function(_0x171362,_0x339044,_0x4ed6df,_0x16e904,_0x44c097,_0x225074){return _0x171362(_0x339044,_0x4ed6df,_0x16e904,_0x44c097,_0x225074);},'xENPV':function(_0x3870c4,_0x1fdbaf){return _0x3870c4(_0x1fdbaf);},'CDNkz':_0x482bd8(0x17c)},_0x1a5ea1=process[_0x482bd8(0x129)][_0x482bd8(0x1b5)](0x2);helper['setTestObservabilityDisable'](),helper[_0x482bd8(0x12c)](),_0x2f7fa4['strict'](![]);const _0xf4c435=new BrowserStackSetup(_0x2f7fa4[_0x482bd8(0x129)],_0x2ac8b3[_0x482bd8(0x15f)]);return _0x2ac8b3['FxMew'](captureError,_0x2ac8b3['xENPV'](require,_0x2ac8b3[_0x482bd8(0x191)]),_0x2f7fa4[_0x482bd8(0x129)],_0xf4c435,_0x1a5ea1,!![]);})['command'](a58_0x30292f(0x1cf),Constants[a58_0x30292f(0x126)][a58_0x30292f(0x181)],_0x228fb1=>{const _0x3b6c7a=a58_0x30292f,_0x27e47c={'AjkOd':function(_0x3fc9fd,_0x45766f,_0x10ecc1,_0x2c70a3){return _0x3fc9fd(_0x45766f,_0x10ecc1,_0x2c70a3);},'YXaUj':function(_0x396b4e,_0x23ba71){return _0x396b4e(_0x23ba71);},'Hocmw':_0x3b6c7a(0x1a0),'KwybN':_0x3b6c7a(0x1cf),'UCJRX':_0x3b6c7a(0x13b),'lkwZz':function(_0x33642b,_0x14b1fc,_0x35782b){return _0x33642b(_0x14b1fc,_0x35782b);},'WFGow':_0x3b6c7a(0x11f),'fhIOf':function(_0x4d4d57,_0x31fde2,_0x35a502){return _0x4d4d57(_0x31fde2,_0x35a502);},'HzCBQ':_0x3b6c7a(0x19a),'KLSID':function(_0x47fd73,_0x4813b7,_0x631567){return _0x47fd73(_0x4813b7,_0x631567);},'EsExw':_0x3b6c7a(0x149),'AcEpk':function(_0xa17991){return _0xa17991();}};process[_0x3b6c7a(0x129)]=process[_0x3b6c7a(0x129)]['slice'](0x1),helper[_0x3b6c7a(0x1a3)](),helper[_0x3b6c7a(0x12c)]();const _0x287ede=new BrowserStackSetup(_0x228fb1['argv'],_0x27e47c[_0x3b6c7a(0x199)]);logger[_0x3b6c7a(0x189)](_0x27e47c['UCJRX']);const _0x3eb232=_0x27e47c['lkwZz'](requireModule,_0x27e47c[_0x3b6c7a(0x1b1)],_0x27e47c[_0x3b6c7a(0x199)]),_0x311ced=_0x27e47c['fhIOf'](requireModule,_0x27e47c[_0x3b6c7a(0x13e)],_0x27e47c[_0x3b6c7a(0x199)]);delete _0x3eb232[_0x3b6c7a(0x18f)],_0x3eb232[_0x3b6c7a(0x18f)]=function(_0x4d0b9a){const _0x1cf82b=_0x3b6c7a;return _0x27e47c['AjkOd'](captureError,_0x27e47c[_0x1cf82b(0x194)](require,_0x27e47c['Hocmw']),_0x4d0b9a,_0x287ede);},_0x311ced['run']=_0x3eb232;const {main:_0xcb418a}=_0x27e47c[_0x3b6c7a(0x1a4)](requireModule,_0x27e47c[_0x3b6c7a(0x146)],_0x27e47c[_0x3b6c7a(0x199)]);_0x27e47c['AcEpk'](_0xcb418a);})[a58_0x30292f(0x15d)](a58_0x30292f(0x188),Constants[a58_0x30292f(0x158)][a58_0x30292f(0x181)],function(_0x5e847c){const _0x4dc27e=a58_0x30292f,_0x88156c={'vSvoD':_0x4dc27e(0x188),'lxLHt':function(_0x3350e1,_0x264877,_0x4cbfc7,_0x4f64e9,_0x25bf2c,_0x5ce7d6){return _0x3350e1(_0x264877,_0x4cbfc7,_0x4f64e9,_0x25bf2c,_0x5ce7d6);},'uHGvM':function(_0x46f3e4,_0x48ee56){return _0x46f3e4(_0x48ee56);},'vijts':_0x4dc27e(0x1c8)},_0xcf63de=process[_0x4dc27e(0x129)][_0x4dc27e(0x1b5)](0x2),_0x2fb614=new BrowserStackSetup(_0x5e847c['argv'],_0x88156c[_0x4dc27e(0x1c6)]);return _0x88156c['lxLHt'](captureError,_0x88156c[_0x4dc27e(0x143)](require,_0x88156c[_0x4dc27e(0x190)]),_0x5e847c[_0x4dc27e(0x129)],_0x2fb614,_0xcf63de,!![]);})[a58_0x30292f(0x15d)](a58_0x30292f(0x17a),Constants[a58_0x30292f(0x1c7)]['INFO'],function(_0x3610b9){const _0x1844c3=a58_0x30292f,_0x5ee703={'mVXYR':_0x1844c3(0x135),'xszmc':function(_0x1b6718,_0x58a8d0){return _0x1b6718(_0x58a8d0);},'GEEBS':_0x1844c3(0x19c),'TnJxB':function(_0xa46f5c,_0x6a8456,_0x49c20c,_0x5031c2,_0x3bb3c6){return _0xa46f5c(_0x6a8456,_0x49c20c,_0x5031c2,_0x3bb3c6);},'ZeScB':_0x1844c3(0x16f),'aMTPm':function(_0x297aae,_0x73516,_0x5702e5,_0x53ce9c,_0x589087){return _0x297aae(_0x73516,_0x5702e5,_0x53ce9c,_0x589087);},'mqgEr':function(_0x851f7c,_0x2fccd6){return _0x851f7c(_0x2fccd6);},'zrwBv':_0x1844c3(0x177)},_0x438aa3=process[_0x1844c3(0x129)][_0x1844c3(0x1b5)](0x2),_0x4e49ca=new BrowserStackSetup(_0x3610b9[_0x1844c3(0x129)],_0x5ee703[_0x1844c3(0x153)]),_0x4e607d=_0x4e49ca?_0x4e49ca[_0x1844c3(0x185)]:null;if(_0x5ee703['xszmc'](isNewman,_0x4e607d))return _0x4e49ca[_0x1844c3(0x187)]=_0x5ee703[_0x1844c3(0x1b0)],global[_0x1844c3(0x187)]=_0x5ee703[_0x1844c3(0x1b0)],_0x5ee703[_0x1844c3(0x119)](captureError,_0x5ee703[_0x1844c3(0x1c5)](require,_0x5ee703[_0x1844c3(0x137)]),_0x3610b9[_0x1844c3(0x129)],_0x4e49ca,_0x438aa3);return _0x5ee703[_0x1844c3(0x14f)](captureError,_0x5ee703[_0x1844c3(0x1ac)](require,_0x5ee703['zrwBv']),_0x3610b9[_0x1844c3(0x129)],_0x4e49ca,_0x438aa3);})[a58_0x30292f(0x15d)]('nightwatch',Constants['NIGHTWATCH'][a58_0x30292f(0x181)],function(_0x5f2a32){const _0x42a05d=a58_0x30292f,_0x41af20={'ThzgP':_0x42a05d(0x193),'rXfjq':function(_0x648861,_0x4812c4,_0x4b5242,_0x491e84,_0x37adf3){return _0x648861(_0x4812c4,_0x4b5242,_0x491e84,_0x37adf3);},'Irbrd':function(_0x2e6661,_0x1c535d){return _0x2e6661(_0x1c535d);},'Qmktn':'./nightwatch/command'},_0x1f7efe=process['argv']['slice'](0x2),_0x114d2f=new BrowserStackSetup(_0x5f2a32['argv'],_0x41af20[_0x42a05d(0x1b8)]);return _0x41af20['rXfjq'](captureError,_0x41af20[_0x42a05d(0x169)](require,_0x41af20[_0x42a05d(0x150)]),_0x5f2a32['argv'],_0x114d2f,_0x1f7efe);})[a58_0x30292f(0x15d)]('codeceptjs',Constants[a58_0x30292f(0x1ca)][a58_0x30292f(0x181)],function(_0x17c167){const _0x2f63ed=a58_0x30292f,_0x15fa56={'bfOhW':'codeceptjs','zBAMu':function(_0x2d109f,_0x5d9403,_0x313560,_0x4b845c,_0x13bb08){return _0x2d109f(_0x5d9403,_0x313560,_0x4b845c,_0x13bb08);},'HtTyp':function(_0x4cfbcd,_0x59e4f5){return _0x4cfbcd(_0x59e4f5);},'myEcA':_0x2f63ed(0x1bd)},_0x305c43=process[_0x2f63ed(0x129)][_0x2f63ed(0x1b5)](0x2),_0x546ce5=new BrowserStackSetup(_0x17c167[_0x2f63ed(0x129)],_0x15fa56[_0x2f63ed(0x142)]);return _0x15fa56['zBAMu'](captureError,_0x15fa56['HtTyp'](require,_0x15fa56[_0x2f63ed(0x136)]),_0x17c167[_0x2f63ed(0x129)],_0x546ce5,_0x305c43);})[a58_0x30292f(0x15d)](a58_0x30292f(0x1a1),Constants[a58_0x30292f(0x12b)][a58_0x30292f(0x181)],function(_0x128f4d){const _0x3ae032=a58_0x30292f,_0x1d58cb={'qmcxB':function(_0x3f861c,_0x3cb268,_0x27bafc){return _0x3f861c(_0x3cb268,_0x27bafc);},'ILdbf':function(_0x243380,_0x40f3e0){return _0x243380(_0x40f3e0);},'nVXqj':_0x3ae032(0x198)},_0x4298d2=process[_0x3ae032(0x129)][_0x3ae032(0x1b5)](0x2);return _0x1d58cb[_0x3ae032(0x17b)](captureError,_0x1d58cb[_0x3ae032(0x162)](require,_0x1d58cb[_0x3ae032(0x195)]),_0x128f4d);})[a58_0x30292f(0x15d)](a58_0x30292f(0x16d),Constants['INTEGRATIONS'][a58_0x30292f(0x181)],function(_0xa6052c){const _0x1b7839=a58_0x30292f,_0x239da8={'vyyqo':function(_0x5100bb,_0x52b7fe){return _0x5100bb(_0x52b7fe);}};return _0x239da8[_0x1b7839(0x1c2)](runIntegrations,_0xa6052c);})['command'](a58_0x30292f(0x1c0),Constants['PLAYWRIGHT']['INFO'],function(_0x3364e7){const _0x8653c5=a58_0x30292f,_0x97ccdb={'Vwbln':_0x8653c5(0x1a5),'EfwHS':function(_0x480665,_0x5b47af){return _0x480665&&_0x5b47af;},'OnxtU':function(_0x5bc972,_0x30c38c,_0x12d634,_0x39e5e6,_0x1d425f,_0x5a2d45){return _0x5bc972(_0x30c38c,_0x12d634,_0x39e5e6,_0x1d425f,_0x5a2d45);},'UYHvg':function(_0x431f90,_0x4ea2d4){return _0x431f90(_0x4ea2d4);},'DVifr':_0x8653c5(0x1cd)},_0x101485=process[_0x8653c5(0x129)]['slice'](0x2);helper[_0x8653c5(0x183)](process[_0x8653c5(0x129)])&&(process['env'][_0x8653c5(0x16a)]=helper['getConfigPath'](process['argv']));helper[_0x8653c5(0x1a3)](),helper['setBrowserStackAutomationDisable']();const _0x7ed538=new BrowserStackSetup(_0x3364e7[_0x8653c5(0x129)],FRAMEWORKS[_0x8653c5(0x11d)]);try{if(!_0x7ed538[_0x8653c5(0x185)]||!_0x7ed538[_0x8653c5(0x185)][_0x8653c5(0x122)]){const _0x27c3e6=_0x97ccdb[_0x8653c5(0x1b3)],_0x3fc1f0=process['env']['DEBUG']||'',_0x199ad8=_0x3fc1f0[_0x8653c5(0x152)](',')[_0x8653c5(0x14a)](_0x154316=>_0x154316[_0x8653c5(0x170)]())[_0x8653c5(0x1a9)](Boolean),_0x2a431d=_0x199ad8[_0x8653c5(0x15b)](_0x25fb21=>_0x25fb21===_0x8653c5(0x175)||_0x25fb21===_0x8653c5(0x1a8)||_0x25fb21==='-*'),_0x33b53a=_0x199ad8[_0x8653c5(0x15b)](_0x2952f2=>_0x2952f2===_0x27c3e6||_0x2952f2===_0x8653c5(0x157)||_0x2952f2==='*');if(_0x97ccdb[_0x8653c5(0x168)](!_0x2a431d,!_0x33b53a)){const _0x420bcf=helper['getPwChannelLogPath']();_0x420bcf&&(process[_0x8653c5(0x11e)][_0x8653c5(0x1a7)]=_0x3fc1f0?_0x3fc1f0+','+_0x27c3e6:_0x27c3e6,!process[_0x8653c5(0x11e)]['DEBUG_FILE']&&(process[_0x8653c5(0x11e)][_0x8653c5(0x140)]=_0x420bcf));}}}catch(_0x5ac419){logger[_0x8653c5(0x189)](_0x8653c5(0x156)+util[_0x8653c5(0x13a)](_0x5ac419));}return _0x97ccdb[_0x8653c5(0x134)](captureError,_0x97ccdb[_0x8653c5(0x144)](require,_0x97ccdb[_0x8653c5(0x1ce)]),_0x3364e7[_0x8653c5(0x129)],_0x7ed538,_0x101485,!![]);})['command']('testcafe',Constants[a58_0x30292f(0x139)][a58_0x30292f(0x181)],function(_0x2d1440){const _0x2a728a=a58_0x30292f,_0xa4d4df={'nLarA':'testcafe','mHeNZ':function(_0x1642eb,_0x33dca4,_0x3e341c,_0x300134,_0x52bd53,_0x918ab3){return _0x1642eb(_0x33dca4,_0x3e341c,_0x300134,_0x52bd53,_0x918ab3);},'VTQQl':function(_0x110273,_0x178979){return _0x110273(_0x178979);},'XtLev':_0x2a728a(0x148)},_0x4f0407=process[_0x2a728a(0x129)][_0x2a728a(0x1b5)](0x2),_0x563ffb=new BrowserStackSetup(_0x2d1440[_0x2a728a(0x129)],_0xa4d4df[_0x2a728a(0x11b)]);return _0xa4d4df[_0x2a728a(0x12e)](captureError,_0xa4d4df[_0x2a728a(0x19f)](require,_0xa4d4df[_0x2a728a(0x14b)]),_0x2d1440[_0x2a728a(0x129)],_0x563ffb,_0x4f0407,!![]);})[a58_0x30292f(0x15d)](a58_0x30292f(0x1ba),a58_0x30292f(0x127),function(_0x5f09e3){const _0x41e426=a58_0x30292f,_0x4789cb={};_0x4789cb[_0x41e426(0x12d)]=_0x41e426(0x1ab),_0x4789cb[_0x41e426(0x1bb)]=_0x41e426(0x1a2),_0x4789cb[_0x41e426(0x180)]='Show\x20help';const _0x22b1c1=_0x4789cb;return _0x5f09e3[_0x41e426(0x1ab)](![])['option'](_0x22b1c1[_0x41e426(0x12d)],{'alias':'h','type':_0x22b1c1[_0x41e426(0x1bb)],'describe':_0x22b1c1[_0x41e426(0x180)]})['strict'](![])[_0x41e426(0x120)](![]);},function(_0x29d404){const _0x376de3=a58_0x30292f,_0x3f0ba6={'QvdqA':function(_0x4380b4,_0xa220e2,_0x40ef1d){return _0x4380b4(_0xa220e2,_0x40ef1d);},'xxBzX':function(_0x5aba1d,_0x1cf9da){return _0x5aba1d(_0x1cf9da);},'IUioZ':_0x376de3(0x1bf)},_0x20f9ed={};return _0x20f9ed[_0x376de3(0x129)]=_0x29d404,_0x3f0ba6[_0x376de3(0x1c1)](captureError,_0x3f0ba6[_0x376de3(0x124)](require,_0x3f0ba6[_0x376de3(0x176)]),_0x20f9ed);})[a58_0x30292f(0x15d)](a58_0x30292f(0x19c),Constants[a58_0x30292f(0x197)]['INFO'],function(_0x1dd81d){const _0x11fc86=a58_0x30292f,_0x42e87b={'ZsqqF':_0x11fc86(0x19c),'VYvpb':function(_0x3b8730,_0x43a6eb,_0xedd777,_0x1ceb92,_0x161f0f){return _0x3b8730(_0x43a6eb,_0xedd777,_0x1ceb92,_0x161f0f);},'YQmmh':function(_0x580048,_0x53d7d2){return _0x580048(_0x53d7d2);},'jkfvY':'./newman/command'},_0x17930a=process[_0x11fc86(0x129)][_0x11fc86(0x1b5)](0x2);helper[_0x11fc86(0x1a3)](),helper[_0x11fc86(0x12c)](),_0x1dd81d[_0x11fc86(0x17f)](![]);const _0x30eb63=new BrowserStackSetup(_0x1dd81d[_0x11fc86(0x129)],_0x42e87b[_0x11fc86(0x1c4)]);return _0x42e87b[_0x11fc86(0x125)](captureError,_0x42e87b['YQmmh'](require,_0x42e87b[_0x11fc86(0x17e)]),_0x1dd81d[_0x11fc86(0x129)],_0x30eb63,_0x17930a);})[a58_0x30292f(0x160)](0x1,a58_0x30292f(0x165))[a58_0x30292f(0x1aa)](null)[a58_0x30292f(0x129)];!helper[a58_0x30292f(0x161)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console[a58_0x30292f(0x11c)]('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a59_0x18a8e8=a59_0x43e0;(function(_0xd830c9,_0x28933f){const _0x3310b4=a59_0x43e0,_0x3d0feb=_0xd830c9();while(!![]){try{const _0x269d34=-parseInt(_0x3310b4(0x8e))/0x1+parseInt(_0x3310b4(0xa6))/0x2*(parseInt(_0x3310b4(0x94))/0x3)+-parseInt(_0x3310b4(0xaa))/0x4*(-parseInt(_0x3310b4(0x75))/0x5)+-parseInt(_0x3310b4(0x8f))/0x6*(parseInt(_0x3310b4(0x72))/0x7)+parseInt(_0x3310b4(0x9c))/0x8+parseInt(_0x3310b4(0xa4))/0x9*(parseInt(_0x3310b4(0x8d))/0xa)+-parseInt(_0x3310b4(0x89))/0xb;if(_0x269d34===_0x28933f)break;else _0x3d0feb['push'](_0x3d0feb['shift']());}catch(_0x478bf3){_0x3d0feb['push'](_0x3d0feb['shift']());}}}(a59_0x1dcc,0x24e22));const fs=require('fs'),helper=require(a59_0x18a8e8(0xa7)),utilities=require(a59_0x18a8e8(0x6e)),yaml=require(a59_0x18a8e8(0x99)),yargs=require(a59_0x18a8e8(0x76)),logger=require('../helpers/logger')[a59_0x18a8e8(0x92)],configFileTemplate=__dirname+a59_0x18a8e8(0xae),configFileTemplatePW=__dirname+'/../../browserstack.pw.yml.sample',configFile=process[a59_0x18a8e8(0x96)]()+'/browserstack.yml',packageFile=process[a59_0x18a8e8(0x96)]()+a59_0x18a8e8(0x9e),frameworks=[a59_0x18a8e8(0xa9),a59_0x18a8e8(0x87),a59_0x18a8e8(0x7a),a59_0x18a8e8(0xa8),a59_0x18a8e8(0x77),'codeceptjs','playwright'];let config;logger[a59_0x18a8e8(0xac)](a59_0x18a8e8(0xa5)),createConfigurationFile(yargs[a59_0x18a8e8(0xa1)][a59_0x18a8e8(0x90)],yargs['argv']['key'],yargs['argv'][a59_0x18a8e8(0x91)]);try{sdkSetup();}catch(a59_0x4bb559){logger[a59_0x18a8e8(0xa0)](a59_0x18a8e8(0x69)+a59_0x4bb559);}addScriptInPackageJson();function createConfigurationFile(_0x58218e,_0x46123b,_0x49f98a=![]){const _0x3e2e14=a59_0x18a8e8,_0x27cede={};_0x27cede['LybxK']=_0x3e2e14(0x71),_0x27cede[_0x3e2e14(0x7d)]=_0x3e2e14(0x6f),_0x27cede[_0x3e2e14(0x70)]=_0x3e2e14(0x7f);const _0x35cefb=_0x27cede;try{let _0x5a29ba=fs['readFileSync'](_0x49f98a?configFileTemplatePW:configFileTemplate,_0x35cefb[_0x3e2e14(0x85)]);_0x58218e&&(_0x5a29ba=_0x5a29ba[_0x3e2e14(0x8a)](_0x35cefb[_0x3e2e14(0x7d)],_0x58218e)),_0x46123b&&(_0x5a29ba=_0x5a29ba['replace'](_0x35cefb[_0x3e2e14(0x70)],_0x46123b)),config=yaml[_0x3e2e14(0xab)](_0x5a29ba),fs['writeFileSync'](configFile,_0x5a29ba,_0x3fc9d5=>{const _0x309d8b=_0x3e2e14;_0x3fc9d5&&logger[_0x309d8b(0x6b)](_0x3fc9d5);});}catch(_0x3100c4){logger[_0x3e2e14(0x6b)](_0x3100c4);}}function addPostInstallScript(_0x403e73,_0x502128){const _0x8d6d77=a59_0x18a8e8,_0x25233f={};_0x25233f[_0x8d6d77(0x95)]=_0x8d6d77(0x6d),_0x25233f[_0x8d6d77(0xa3)]='npm\x20update\x20browserstack-node-sdk',_0x25233f['XAwDc']='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0x652812=_0x25233f;let _0x1a6ad0=_0x403e73[_0x652812['Eybaq']];if(_0x1a6ad0&&_0x1a6ad0[_0x8d6d77(0x67)](_0x652812['sOurF']))return;!_0x1a6ad0?_0x1a6ad0=_0x652812[_0x8d6d77(0xa3)]:_0x1a6ad0+=_0x652812[_0x8d6d77(0x98)],_0x502128['push']([_0x652812[_0x8d6d77(0x95)],_0x1a6ad0]);}function addScriptInPackageJson(){const _0x457a96=a59_0x18a8e8,_0x5df90f={'ZxYwJ':_0x457a96(0x71),'dNPau':function(_0x56a49e,_0x142418){return _0x56a49e<_0x142418;},'aRpBU':function(_0x22985a,_0x4e5373,_0x246a96){return _0x22985a(_0x4e5373,_0x246a96);},'lIlSw':function(_0x47613b,_0x560cc9){return _0x47613b<_0x560cc9;},'iMIGm':function(_0xb99119,_0x16b028,_0x279c2d){return _0xb99119(_0x16b028,_0x279c2d);},'AzkHW':function(_0x4e434f,_0x52c92d){return _0x4e434f<_0x52c92d;},'FiTcX':function(_0x4c84d8,_0x15f0e7){return _0x4c84d8!==_0x15f0e7;},'ECzcJ':_0x457a96(0x6a)},_0x4cc391=JSON[_0x457a96(0x8c)](fs['readFileSync'](packageFile,_0x5df90f[_0x457a96(0x8b)])),_0x7a07e6=[];for(let _0x317bfe=0x0;_0x5df90f['dNPau'](_0x317bfe,frameworks[_0x457a96(0x9f)]);_0x317bfe+=0x1){const _0x543257=_0x5df90f['aRpBU'](findScriptsWithFramework,_0x4cc391['scripts'],frameworks[_0x317bfe]);for(let _0x29a471=0x0;_0x5df90f[_0x457a96(0x86)](_0x29a471,_0x543257[_0x457a96(0x9f)]);_0x29a471+=0x1){_0x7a07e6[_0x457a96(0x93)](_0x5df90f[_0x457a96(0x82)](getUpdatedCommand,_0x4cc391[_0x457a96(0x88)],_0x543257[_0x29a471]));}_0x5df90f[_0x457a96(0x9d)](addPostInstallScript,_0x4cc391[_0x457a96(0x88)],_0x7a07e6);}const _0x48acd5={..._0x4cc391[_0x457a96(0x88)]},_0x4612e6=_0x48acd5;for(let _0x4613f2=0x0;_0x5df90f[_0x457a96(0x84)](_0x4613f2,_0x7a07e6[_0x457a96(0x9f)]);_0x4613f2+=0x1){_0x4612e6[_0x7a07e6[_0x4613f2][0x0]]=_0x7a07e6[_0x4613f2][0x1];}_0x5df90f[_0x457a96(0x73)](JSON[_0x457a96(0x6c)](_0x4cc391['scripts']),JSON[_0x457a96(0x6c)](_0x4612e6))&&(logger['info'](_0x5df90f[_0x457a96(0x68)]),_0x4cc391[_0x457a96(0x88)]=_0x4612e6,fs[_0x457a96(0x7e)](packageFile,JSON[_0x457a96(0x6c)](_0x4cc391,null,0x2),_0x495180=>{_0x495180&&logger['error'](_0x495180);}));};function a59_0x1dcc(){const _0x882e20=['stringify','postinstall','../helpers/utilities','YOUR_USERNAME','LohZE','utf8','308252KMgfvL','FiTcX','Hkdoi','343285QVZPJS','yargs','nightwatch','browserstack-node-sdk','sThUi','cucumber-js','EBEgP','isUndefined','iCJob','writeFileSync','YOUR_ACCESS_KEY','LailF','join','aRpBU','scZVV','AzkHW','LybxK','lIlSw','jest','scripts','735570XmuSWn','replace','ZxYwJ','parse','164950EEnHcj','226581uYXKsB','30uyoiLX','username','playwright','winstonLogger','push','823533opLxUz','Eybaq','cwd','SDKSetup','XAwDc','js-yaml','KQSBe','indexOf','1120736cKjEzH','iMIGm','/package.json','length','debug','argv','entries','sOurF','99fDCWxu','Creating\x20configuration\x20file...','2KPEMwm','../helpers/helper','node','mocha','4mwJizS','load','info','SBGnx','/../../browserstack.yml.sample','browserstack-node-sdk\x20','includes','ECzcJ','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','Adding\x20new\x20script(s)\x20in\x20package.json...','error'];a59_0x1dcc=function(){return _0x882e20;};return a59_0x1dcc();}function findScriptsWithFramework(_0x1b1bc6,_0x9646b6){const _0x1561d7=a59_0x18a8e8,_0x37a0e4={};_0x37a0e4[_0x1561d7(0x79)]=function(_0x25c35d,_0x4b5644){return _0x25c35d<_0x4b5644;},_0x37a0e4[_0x1561d7(0xad)]='browserstack-node-sdk';const _0x57bb58=_0x37a0e4,_0x1db278=[],_0x4b11fa=Object[_0x1561d7(0xa2)](_0x1b1bc6);for(let _0x44e245=0x0;_0x57bb58[_0x1561d7(0x79)](_0x44e245,_0x4b11fa[_0x1561d7(0x9f)]);_0x44e245+=0x1){_0x4b11fa[_0x44e245][0x1][_0x1561d7(0x67)](_0x9646b6)&&!_0x4b11fa[_0x44e245][0x1][_0x1561d7(0x67)](_0x57bb58[_0x1561d7(0xad)])&&_0x1db278[_0x1561d7(0x93)](_0x4b11fa[_0x44e245][0x0]);}return _0x1db278;}function getUpdatedCommand(_0x3193cf,_0x3f5e97){const _0x3b0197=a59_0x18a8e8,_0x2f184b={};_0x2f184b[_0x3b0197(0x83)]=function(_0x5b76ae,_0x4b8dc9){return _0x5b76ae!==_0x4b8dc9;},_0x2f184b[_0x3b0197(0x74)]=_0x3b0197(0x78),_0x2f184b[_0x3b0197(0x80)]=function(_0xfa0fcf,_0x37384e){return _0xfa0fcf===_0x37384e;};const _0x414c86=_0x2f184b,_0x253ac6=_0x3f5e97+'-browserstack',_0x36159f=_0x3193cf[_0x3f5e97],_0x3a64dc=_0x36159f['split']('\x20');for(const _0x2d056a of frameworks){if(_0x414c86['scZVV'](_0x3a64dc[_0x3b0197(0x9b)](_0x2d056a),-0x1)){_0x3a64dc['splice'](_0x3a64dc[_0x3b0197(0x9b)](_0x2d056a),0x0,_0x414c86[_0x3b0197(0x74)]);break;}}let _0x12872c=_0x3a64dc[_0x3b0197(0x81)]('\x20');return _0x414c86[_0x3b0197(0x80)](_0x12872c,_0x36159f)&&(_0x12872c=_0x3b0197(0xaf)+_0x36159f),[_0x253ac6,_0x12872c];}function a59_0x43e0(_0xf82355,_0x30df4f){const _0x1dcccc=a59_0x1dcc();return a59_0x43e0=function(_0x43e025,_0x2cdab9){_0x43e025=_0x43e025-0x67;let _0x1ff5c5=_0x1dcccc[_0x43e025];return _0x1ff5c5;},a59_0x43e0(_0xf82355,_0x30df4f);}function sdkSetup(){const _0x143a4d=a59_0x18a8e8,_0x48f63b={};_0x48f63b[_0x143a4d(0x9a)]='node-setup',_0x48f63b[_0x143a4d(0x7b)]=_0x143a4d(0x97);const _0x5a8145=_0x48f63b;if(helper[_0x143a4d(0x7c)](config))return;config['source']=_0x5a8145[_0x143a4d(0x9a)];try{utilities['fireFunnelTestEvent'](_0x5a8145['EBEgP'],{},config,'');}catch(_0xd8f354){logger['debug'](_0x143a4d(0x69)+_0xd8f354);}}logger[a59_0x18a8e8(0xac)]('Setup\x20completed');
|