browserstack-node-sdk 1.64.1 → 1.64.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a55_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 a55_0x538e03=a55_0x5b3f;function a55_0x5b3f(_0x58a4f1,_0x3437e7){const _0x1ee331=a55_0x1ee3();return a55_0x5b3f=function(_0x5b3f45,_0x2c0a03){_0x5b3f45=_0x5b3f45-0x96;let _0x25d692=_0x1ee331[_0x5b3f45];return _0x25d692;},a55_0x5b3f(_0x58a4f1,_0x3437e7);}(function(_0x22bdbc,_0x4a0eb7){const _0x1bc1af=a55_0x5b3f,_0x4a35a3=_0x22bdbc();while(!![]){try{const _0x20ff7=parseInt(_0x1bc1af(0x98))/0x1*(-parseInt(_0x1bc1af(0xeb))/0x2)+-parseInt(_0x1bc1af(0xb9))/0x3+parseInt(_0x1bc1af(0xe0))/0x4*(-parseInt(_0x1bc1af(0x97))/0x5)+-parseInt(_0x1bc1af(0xd4))/0x6*(-parseInt(_0x1bc1af(0xba))/0x7)+parseInt(_0x1bc1af(0xd6))/0x8*(parseInt(_0x1bc1af(0xcc))/0x9)+parseInt(_0x1bc1af(0xbf))/0xa+parseInt(_0x1bc1af(0x9e))/0xb*(-parseInt(_0x1bc1af(0xad))/0xc);if(_0x20ff7===_0x4a0eb7)break;else _0x4a35a3['push'](_0x4a35a3['shift']());}catch(_0x1445e8){_0x4a35a3['push'](_0x4a35a3['shift']());}}}(a55_0x1ee3,0x85c36));const fs=require('fs'),path=require(a55_0x538e03(0xf0)),{v4:uuidv4}=require('uuid'),{TEMP_STORE_DIR_NAME}=require(a55_0x538e03(0xa5)),{nestedKeyValue}=require('../../../helpers/helper'),logger=require('../../../helpers/logger')['winstonLogger'],{getLogDir}=require(a55_0x538e03(0xa2)),util=require(a55_0x538e03(0x9c)),helper=require(a55_0x538e03(0xee));function a55_0x1ee3(){const _0x3743f6=['setTestDetails','OgKdh','traceZipPaths','_traceZipPaths.json','getFilePath','3498vjIMVk','.browserstack','3304BZIAaa','getTraceZipDir','testId','OWVjo','Error\x20reading\x20trace\x20file\x20paths:\x20%s','env','appendToTracePaths','exports','_projectId','message','1168JXOllW','ZGgGV','debug','setIntegrations','trace_','endsWith','toString','QUCjd','.json','GdIXo','getStoreDirName','12254bvblmM','rVETN','error','../../../helpers/helper','stringify','path','some','default','join','retry','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','_integrations.json','.txt','7900wRWqgq','13juGezL','parse','setup','Error\x20handling\x20trace\x20file\x20paths:\x20','util','getProjectIdFromTestInfo','22eEHecw','getTraceFilePaths','jlJFG','jRwjj','../../../helpers/logger','format','getStoreDirPath','../../../helpers/test-observability/constants','getTestIdFromTestInfo','filePath','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','getTestUUID','FkbBp','_test','forEach','1597044MykWec','readFileSync','getDirPath','_platformDetails.json','tests','homedir','getTestDetails','setAccessibilityPlatformValidation','existsSync','LVBOD','getAccessibilityPlatformValidation','mkdirSync','1776531hrAwqG','658ApOPaL','CZKbM','getTestRunIdFromTestInfo','qFwlO','addTraceFilePath','10796700hJPKJM','recursive','WdedA','readdirSync','aiqLH','shutdown','push','TvUtH','rmSync','zjIRs','pid','writeFileSync','OuhDu','17712yZDxoJ','uuid','wQOwH'];a55_0x1ee3=function(){return _0x3743f6;};return a55_0x1ee3();}class TestDetails{static [a55_0x538e03(0xb1)]={};static[a55_0x538e03(0x9a)](){const _0x5decc3=a55_0x538e03;this['shutdown']();const _0xb51181={};_0xb51181['recursive']=!![],fs[_0x5decc3(0xb8)](this[_0x5decc3(0xaf)](),_0xb51181);const _0x541d6b={};_0x541d6b[_0x5decc3(0xc0)]=!![],fs['mkdirSync'](this[_0x5decc3(0xd7)](),_0x541d6b);}static['getStoreDirName'](){const _0x4731bc=a55_0x538e03,_0x38336b={};_0x38336b['GdIXo']=function(_0x2a581b,_0x2ae48d){return _0x2a581b+_0x2ae48d;};const _0x24df97=_0x38336b;return _0x24df97[_0x4731bc(0xe9)](_0x24df97[_0x4731bc(0xe9)](TEMP_STORE_DIR_NAME,'-'),process[_0x4731bc(0xdb)]['BS_TESTOPS_BUILD_HASHED_ID']);}static[a55_0x538e03(0xa4)](){const _0x1ca980=a55_0x538e03,_0x530b05={};_0x530b05[_0x1ca980(0xa0)]=function(_0xd4f1ca,_0x482fb7){return _0xd4f1ca+_0x482fb7;},_0x530b05[_0x1ca980(0xd9)]=_0x1ca980(0xf2);const _0x5e6755=_0x530b05;return path['join'](_0x5e6755[_0x1ca980(0xa0)](_0x5e6755[_0x1ca980(0xa0)](TEMP_STORE_DIR_NAME,'-'),process['env']['BS_TESTOPS_BUILD_HASHED_ID']||_0x5e6755['OWVjo']));}static[a55_0x538e03(0xd7)](){const _0x5bf722=a55_0x538e03,_0x1f1c23={};_0x1f1c23[_0x5bf722(0xec)]=_0x5bf722(0xd1);const _0x2a5d8b=_0x1f1c23;return path[_0x5bf722(0xf3)](this[_0x5bf722(0xa4)](),_0x2a5d8b['rVETN']);}static[a55_0x538e03(0xaf)](){const _0x3e7dac=a55_0x538e03;return TestDetails[_0x3e7dac(0xea)]();}static[a55_0x538e03(0xd3)](_0x18ab51){const _0x326db9=a55_0x538e03,_0x2f4400={};_0x2f4400[_0x326db9(0xc8)]=function(_0x3731c6,_0x5c6715){return _0x3731c6+_0x5c6715;},_0x2f4400[_0x326db9(0xaa)]=_0x326db9(0xe8);const _0x5721c3=_0x2f4400;return path[_0x326db9(0xf3)](this[_0x326db9(0xaf)](),_0x5721c3[_0x326db9(0xc8)](_0x18ab51,_0x5721c3['FkbBp']));}static[a55_0x538e03(0xbc)](_0x212f0f){const _0x106cec=a55_0x538e03,_0x249a62={};_0x249a62[_0x106cec(0xbd)]=function(_0x1ab850,_0x79795f){return _0x1ab850+_0x79795f;};const _0x579665=_0x249a62;return _0x579665[_0x106cec(0xbd)](_0x579665[_0x106cec(0xbd)](this[_0x106cec(0xa6)](_0x212f0f),'-'),_0x212f0f[_0x106cec(0xf4)]);}static[a55_0x538e03(0x9d)](_0x4cc529){const _0x119dc3=a55_0x538e03,_0x40dfa8={'aiqLH':function(_0x2505fd,_0x2eec4b,_0x267564){return _0x2505fd(_0x2eec4b,_0x267564);},'uJnlt':'_test','pKpse':_0x119dc3(0xde),'LVBOD':'project','wQOwH':'__projectId'};return _0x40dfa8[_0x119dc3(0xc3)](nestedKeyValue,_0x4cc529,[_0x40dfa8['uJnlt'],_0x40dfa8['pKpse']])||_0x40dfa8[_0x119dc3(0xc3)](nestedKeyValue,_0x4cc529,[_0x40dfa8[_0x119dc3(0xb6)],_0x40dfa8[_0x119dc3(0xce)]]);}static[a55_0x538e03(0xa6)](_0x123ec7){const _0x30ae08=a55_0x538e03,_0x377e77={'TvUtH':function(_0x38caca,_0x23d4b8,_0x450d4d){return _0x38caca(_0x23d4b8,_0x450d4d);},'ZGgGV':_0x30ae08(0xab)};return _0x377e77[_0x30ae08(0xc6)](nestedKeyValue,_0x123ec7,[_0x377e77[_0x30ae08(0xe1)],'id'])||_0x123ec7[_0x30ae08(0xd8)];}static[a55_0x538e03(0xa9)](_0x1ccc86){const _0x3fc254=a55_0x538e03,_0x45b494={'EXjxo':function(_0x276d2c,_0x4ce8bf){return _0x276d2c===_0x4ce8bf;},'OuhDu':'string','zRnYT':function(_0x448885){return _0x448885();}};if(this['tests'][_0x1ccc86]&&_0x45b494['EXjxo'](typeof this['tests'][_0x1ccc86]['uuid'],_0x45b494[_0x3fc254(0xcb)]))return this[_0x3fc254(0xb1)][_0x1ccc86]['uuid'];const _0x4d3caf=this[_0x3fc254(0xd3)](_0x1ccc86);if(_0x4d3caf&&fs[_0x3fc254(0xb5)](_0x4d3caf)){const _0x56bed5=JSON['parse'](fs[_0x3fc254(0xae)](_0x4d3caf)[_0x3fc254(0xe6)]());return this['tests'][_0x1ccc86]=_0x56bed5,this['tests'][_0x1ccc86]['uuid'];}return this[_0x3fc254(0xb1)][_0x1ccc86]={'uuid':_0x45b494['zRnYT'](uuidv4)},fs[_0x3fc254(0xca)](_0x4d3caf,JSON[_0x3fc254(0xef)](this['tests'][_0x1ccc86])),this[_0x3fc254(0xb1)][_0x1ccc86][_0x3fc254(0xcd)];}static[a55_0x538e03(0xb7)](_0x2b5465){const _0x5a1e43=a55_0x538e03,_0x55df97=path[_0x5a1e43(0xf3)](this[_0x5a1e43(0xaf)](),_0x2b5465+_0x5a1e43(0xb0));if(_0x55df97&&fs[_0x5a1e43(0xb5)](_0x55df97))return fs[_0x5a1e43(0xae)](_0x55df97)['toString']();}static[a55_0x538e03(0xb4)](_0xffbd25,_0x2e68af){const _0x3547cc=a55_0x538e03,_0x5410f0=path[_0x3547cc(0xf3)](this[_0x3547cc(0xaf)](),_0x2e68af+_0x3547cc(0xb0));fs[_0x3547cc(0xca)](_0x5410f0,_0xffbd25['toString']());}static['getIntegrations'](_0x46e339){const _0x3943c0=a55_0x538e03,_0x47a5c2=path[_0x3943c0(0xf3)](this[_0x3943c0(0xaf)](),_0x46e339+_0x3943c0(0xf6));if(_0x47a5c2&&fs[_0x3943c0(0xb5)](_0x47a5c2))try{return JSON[_0x3943c0(0x99)](fs[_0x3943c0(0xae)](_0x47a5c2)[_0x3943c0(0xe6)]());}catch(_0x2656eb){return logger[_0x3943c0(0xe2)](_0x3943c0(0xf5)+_0x46e339+':\x20'+(_0x2656eb&&_0x2656eb['message'])),null;}return null;}static[a55_0x538e03(0xe3)](_0x30f500,_0x2f0d20){const _0x49c0c8=a55_0x538e03,_0x5bf14f={};_0x5bf14f[_0x49c0c8(0xd0)]=function(_0x259dd7,_0x2c66c0){return _0x259dd7||_0x2c66c0;};const _0x4cf96d=_0x5bf14f;if(_0x4cf96d[_0x49c0c8(0xd0)](!_0x30f500,!_0x2f0d20))return;try{const _0xcc944d=this[_0x49c0c8(0xaf)](),_0x2cbc56={};_0x2cbc56[_0x49c0c8(0xc0)]=!![],fs[_0x49c0c8(0xb8)](_0xcc944d,_0x2cbc56);const _0x203d44=path['join'](_0xcc944d,_0x30f500+_0x49c0c8(0xf6));fs[_0x49c0c8(0xca)](_0x203d44,JSON[_0x49c0c8(0xef)](_0x2f0d20));}catch(_0x154d1f){logger[_0x49c0c8(0xe2)](_0x49c0c8(0xa8)+_0x30f500+':\x20'+(_0x154d1f&&_0x154d1f[_0x49c0c8(0xdf)]));}}static[a55_0x538e03(0xc4)](){const _0x692bae=a55_0x538e03,_0x51a534={};_0x51a534[_0x692bae(0xc0)]=!![],_0x51a534['force']=!![],fs[_0x692bae(0xc7)](this[_0x692bae(0xaf)](),_0x51a534);}static[a55_0x538e03(0xb3)](_0x25ed4c){const _0x3d5ae7=a55_0x538e03;if(this['tests'][_0x25ed4c])return this[_0x3d5ae7(0xb1)][_0x25ed4c];const _0x526a81=this[_0x3d5ae7(0xd3)](_0x25ed4c);if(_0x526a81&&fs['existsSync'](_0x526a81)){const _0x201b3b=JSON[_0x3d5ae7(0x99)](fs['readFileSync'](_0x526a81)[_0x3d5ae7(0xe6)]());return this['tests'][_0x25ed4c]=_0x201b3b,_0x201b3b;}return{};}static[a55_0x538e03(0xcf)](_0x3306e7,_0x9f7295){const _0x137beb=a55_0x538e03,_0x3c3e48=this[_0x137beb(0xd3)](_0x3306e7);if(_0x3c3e48&&fs[_0x137beb(0xb5)](_0x3c3e48)){const _0x4cec99=JSON['parse'](fs[_0x137beb(0xae)](_0x3c3e48)['toString']()),_0x2079dc={..._0x4cec99,..._0x9f7295};this[_0x137beb(0xb1)][_0x3306e7]=_0x2079dc;}else this[_0x137beb(0xb1)][_0x3306e7]=_0x9f7295;fs[_0x137beb(0xca)](_0x3c3e48,this[_0x137beb(0xb1)][_0x3306e7]);}static[a55_0x538e03(0xbe)](_0x4a9755){const _0x537085=a55_0x538e03,_0xf72232={};_0xf72232[_0x537085(0xe7)]=_0x537085(0x9b);const _0x4201c7=_0xf72232;try{const _0x48aeea=process[_0x537085(0xc9)],_0x493761=path[_0x537085(0xf3)](TestDetails[_0x537085(0xd7)](),_0x48aeea+_0x537085(0xd2));let _0x29c6a5=[];_0x493761&&fs[_0x537085(0xb5)](_0x493761)&&(_0x29c6a5=JSON[_0x537085(0x99)](fs[_0x537085(0xae)](_0x493761)['toString']())),!_0x29c6a5[_0x537085(0xf1)](_0x259a17=>_0x259a17[_0x537085(0xa7)]===_0x4a9755['filePath'])&&(_0x29c6a5[_0x537085(0xc5)](_0x4a9755),fs['writeFileSync'](_0x493761,JSON['stringify'](_0x29c6a5)));}catch(_0x501d20){logger[_0x537085(0xed)](_0x4201c7[_0x537085(0xe7)],_0x501d20);}}static[a55_0x538e03(0x9f)](){const _0x3c9792=a55_0x538e03,_0x3ee390={};_0x3ee390['IlpFZ']='_traceZipPaths.json',_0x3ee390[_0x3c9792(0xc1)]=_0x3c9792(0xda);const _0x4a95f2=_0x3ee390,_0x2fd3ea=[];try{const _0x21bf8a=TestDetails[_0x3c9792(0xd7)]();if(_0x21bf8a&&!fs[_0x3c9792(0xb5)](_0x21bf8a))return _0x2fd3ea;const _0x67ac6b=fs[_0x3c9792(0xc2)](_0x21bf8a);_0x67ac6b[_0x3c9792(0xac)](_0x59e0d8=>{const _0x5aa3be=_0x3c9792;if(_0x59e0d8&&_0x59e0d8[_0x5aa3be(0xe5)](_0x4a95f2['IlpFZ'])){const _0x2dba0c=JSON[_0x5aa3be(0x99)](fs[_0x5aa3be(0xae)](path['join'](_0x21bf8a,_0x59e0d8))['toString']());_0x2fd3ea[_0x5aa3be(0xc5)](..._0x2dba0c);}});}catch(_0x546d74){logger[_0x3c9792(0xed)](util[_0x3c9792(0xa3)](_0x4a95f2[_0x3c9792(0xc1)],_0x546d74));}const _0x36bf6c={};return _0x2fd3ea[_0x3c9792(0xac)](_0x52d033=>{const _0x2c770b=_0x3c9792;_0x36bf6c[_0x52d033[_0x2c770b(0xa7)]]=_0x52d033;}),Object['values'](_0x36bf6c);}static[a55_0x538e03(0xdc)](_0x17a1f7,_0x2bc40c){const _0x129072=a55_0x538e03,_0x564db9={};_0x564db9[_0x129072(0xa1)]=_0x129072(0xd5),_0x564db9[_0x129072(0xbb)]='utf8';const _0xe2d345=_0x564db9;try{const _0x52c7ca=path['join'](helper[_0x129072(0xb2)](),_0xe2d345[_0x129072(0xa1)]);if(!fs[_0x129072(0xb5)](_0x52c7ca)){const _0x536a2c={};_0x536a2c[_0x129072(0xc0)]=!![],fs[_0x129072(0xb8)](_0x52c7ca,_0x536a2c);}fs['appendFileSync'](path[_0x129072(0xf3)](_0x52c7ca,_0x129072(0xe4)+_0x2bc40c+_0x129072(0x96)),_0x17a1f7+'\x0a',_0xe2d345[_0x129072(0xbb)]);}catch(_0x2bd353){console['error']('Error\x20writing\x20trace\x20file:\x20'+_0x2bd353['message']);}}}module[a55_0x538e03(0xdd)]=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 a56_0x17caf8=a56_0x2f82;(function(_0x1a16fb,_0x933119){const _0x48370e=a56_0x2f82,_0x32954a=_0x1a16fb();while(!![]){try{const _0x386a8e=parseInt(_0x48370e(0x1fd))/0x1*(-parseInt(_0x48370e(0x1e7))/0x2)+-parseInt(_0x48370e(0x292))/0x3*(parseInt(_0x48370e(0x27a))/0x4)+-parseInt(_0x48370e(0x278))/0x5+parseInt(_0x48370e(0x207))/0x6*(-parseInt(_0x48370e(0x28a))/0x7)+-parseInt(_0x48370e(0x1ed))/0x8+-parseInt(_0x48370e(0x25b))/0x9+parseInt(_0x48370e(0x21d))/0xa*(parseInt(_0x48370e(0x20f))/0xb);if(_0x386a8e===_0x933119)break;else _0x32954a['push'](_0x32954a['shift']());}catch(_0x1a254e){_0x32954a['push'](_0x32954a['shift']());}}}(a56_0x10e9,0x3a2ab));const path=require('path'),url=require(a56_0x17caf8(0x291)),util=require(a56_0x17caf8(0x27c)),helper=require(a56_0x17caf8(0x23f)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a56_0x17caf8(0x23f)),{o11yErrorHandler}=require(a56_0x17caf8(0x1db)),{debug,getPlatformDetails}=require(a56_0x17caf8(0x28d)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{FRAMEWORKS}=require(a56_0x17caf8(0x26d)),logger=require(a56_0x17caf8(0x266))[a56_0x17caf8(0x282)],scripts=require('../../helpers/accessibility-automation/scripts'),{browserStackExecuteDriver}=require(a56_0x17caf8(0x1f3)),AccessibilityHelper=require(a56_0x17caf8(0x288)),constants=require(a56_0x17caf8(0x258)),BrowserstackCLI=require(a56_0x17caf8(0x264)),AutomationFrameworkState=require(a56_0x17caf8(0x1f5)),HookState=require('../v2/state/hookState.js'),{performScanWithRetry}=require(a56_0x17caf8(0x28f)),ClientTroubleShootingService=require(a56_0x17caf8(0x263)),getBrowserNameFromChannel=_0x3123a2=>{const _0x526d3c=a56_0x17caf8,_0x7650cf={};_0x7650cf[_0x526d3c(0x23e)]='6|0|1|2|4|7|5|3',_0x7650cf[_0x526d3c(0x29b)]=_0x526d3c(0x2a1),_0x7650cf[_0x526d3c(0x271)]=_0x526d3c(0x203),_0x7650cf[_0x526d3c(0x220)]=_0x526d3c(0x2a2),_0x7650cf[_0x526d3c(0x2a6)]='firefox',_0x7650cf[_0x526d3c(0x256)]=function(_0x994eeb,_0x2a9595){return _0x994eeb===_0x2a9595;},_0x7650cf[_0x526d3c(0x285)]=_0x526d3c(0x200),_0x7650cf[_0x526d3c(0x2a3)]=function(_0x4baff2,_0x2d503e){return _0x4baff2!==_0x2d503e;},_0x7650cf[_0x526d3c(0x1de)]=_0x526d3c(0x259),_0x7650cf[_0x526d3c(0x21a)]=_0x526d3c(0x294);const _0x4cbf2b=_0x7650cf,_0x585e37=_0x4cbf2b[_0x526d3c(0x23e)][_0x526d3c(0x283)]('|');let _0x4a9bf2=0x0;while(!![]){switch(_0x585e37[_0x4a9bf2++]){case'0':if(_0x3123a2[_0x526d3c(0x26f)](_0x4cbf2b['SEzAU']))return _0x4cbf2b[_0x526d3c(0x29b)];continue;case'1':if(_0x3123a2['includes'](_0x4cbf2b[_0x526d3c(0x271)]))return _0x4cbf2b['LHvHw'];continue;case'2':if(_0x3123a2[_0x526d3c(0x26f)](_0x4cbf2b[_0x526d3c(0x220)]))return _0x4cbf2b['iksRO'];continue;case'3':return _0x3123a2;case'4':if(_0x3123a2[_0x526d3c(0x26f)](_0x4cbf2b['BknQc']))return _0x4cbf2b[_0x526d3c(0x2a6)];continue;case'5':if(_0x4cbf2b[_0x526d3c(0x256)](_0x3123a2,_0x4cbf2b['DJrCR']))return _0x4cbf2b[_0x526d3c(0x285)];continue;case'6':if(!_0x3123a2||_0x4cbf2b['uMeBu'](typeof _0x3123a2,_0x4cbf2b[_0x526d3c(0x1de)]))return _0x4cbf2b['SEzAU'];continue;case'7':if(_0x3123a2[_0x526d3c(0x26f)](_0x4cbf2b[_0x526d3c(0x21a)]))return _0x4cbf2b[_0x526d3c(0x21a)];continue;}break;}},getBrowserFromWSEndpoint=_0x5d7961=>{const _0x14e6fc=a56_0x17caf8,_0x16897a={'LJPgn':_0x14e6fc(0x203),'zvwse':function(_0xd10d53,_0x309b80){return _0xd10d53(_0x309b80);}};try{const _0x4289bb=url['parse'](_0x5d7961),_0x40d4da=new URLSearchParams(_0x4289bb[_0x14e6fc(0x24e)]),_0x48c9b3=Object[_0x14e6fc(0x237)](_0x40d4da['entries']()),_0x5f0e77=JSON[_0x14e6fc(0x276)](_0x48c9b3[_0x14e6fc(0x2a4)]);if(_0x5f0e77&&(_0x5f0e77[_0x14e6fc(0x204)]||_0x5f0e77[_0x14e6fc(0x232)]))return _0x5f0e77[_0x14e6fc(0x204)]||_0x5f0e77[_0x14e6fc(0x232)];return _0x16897a[_0x14e6fc(0x227)];}catch(_0x5d79f9){_0x16897a[_0x14e6fc(0x209)](debug,_0x14e6fc(0x1e6)+_0x5d79f9[_0x14e6fc(0x268)]());}},getCloudProviderFromWsEndpoint=_0x120fa2=>{const _0x150f80=a56_0x17caf8,_0x1d5ee9={};_0x1d5ee9[_0x150f80(0x261)]=_0x150f80(0x21c),_0x1d5ee9[_0x150f80(0x1ee)]=_0x150f80(0x255);const _0x50fba1=_0x1d5ee9;if(_0x120fa2[_0x150f80(0x26f)](constants[_0x150f80(0x1f6)])||_0x120fa2[_0x150f80(0x26f)](constants[_0x150f80(0x1e8)]))return _0x50fba1[_0x150f80(0x261)];return _0x50fba1[_0x150f80(0x1ee)];},a56_0x103a65={};a56_0x103a65[a56_0x17caf8(0x246)]=undefined,a56_0x103a65[a56_0x17caf8(0x287)]=undefined,a56_0x103a65[a56_0x17caf8(0x204)]=undefined,a56_0x103a65['browser_version']=undefined,a56_0x103a65[a56_0x17caf8(0x1e0)]=undefined,a56_0x103a65[a56_0x17caf8(0x29e)]=undefined,a56_0x103a65[a56_0x17caf8(0x290)]=undefined,a56_0x103a65[a56_0x17caf8(0x249)]={};function a56_0x2f82(_0x5660c4,_0xd3c193){const _0x10e96c=a56_0x10e9();return a56_0x2f82=function(_0x2f823b,_0x5cf7ee){_0x2f823b=_0x2f823b-0x1da;let _0x4791a9=_0x10e96c[_0x2f823b];return _0x4791a9;},a56_0x2f82(_0x5660c4,_0xd3c193);}class PlaywrightSessionDetails{static [a56_0x17caf8(0x229)]=a56_0x103a65;constructor(){const _0x2097b4=a56_0x17caf8,_0x3361ea={};_0x3361ea[_0x2097b4(0x29a)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x481fd8=_0x3361ea;throw new Error(_0x481fd8[_0x2097b4(0x29a)]);}static [a56_0x17caf8(0x2a0)]=null;static[a56_0x17caf8(0x295)](_0x6d6e21,_0x2309b8,_0x2b8a5e=null){const _0x3cf381=a56_0x17caf8,_0x21bf77={'TZXiJ':_0x3cf381(0x248),'WUOIM':function(_0x41983e){return _0x41983e();},'uWDmk':_0x3cf381(0x21c),'aFybY':_0x3cf381(0x299),'sZSUT':_0x3cf381(0x270),'pCpvj':_0x3cf381(0x269),'bhRbI':function(_0x4b101b,_0x47f3be){return _0x4b101b===_0x47f3be;},'VRyJF':_0x3cf381(0x1e3),'HSPQX':_0x3cf381(0x1e1),'HHQoQ':function(_0x58306d,_0x2d5bae){return _0x58306d===_0x2d5bae;},'FLYcO':'Device\x20Model\x20is\x20not\x20available','CEdZZ':function(_0x3474b4,_0x42d987,_0x5de80a){return _0x3474b4(_0x42d987,_0x5de80a);},'socDE':'_browserType','nurCT':'_defaultConnectOptions','TmAie':function(_0x2655c6,_0x331846,_0x14b761){return _0x2655c6(_0x331846,_0x14b761);},'krpVd':_0x3cf381(0x293),'OFXyz':_0x3cf381(0x26c),'cDObX':_0x3cf381(0x201),'hgQaZ':function(_0x2fe89c,_0x23db53){return _0x2fe89c(_0x23db53);},'XIane':function(_0x51d09a,_0x3e00d6){return _0x51d09a===_0x3e00d6;},'xfUbb':_0x3cf381(0x22b),'DaXBh':'automate','jaric':function(_0x487d06,_0x52e07f){return _0x487d06&&_0x52e07f;},'kKkxK':function(_0x13ccbe){return _0x13ccbe();},'eSCzz':function(_0x5e0dba,_0x1a2006){return _0x5e0dba(_0x1a2006);},'pHkXF':function(_0x3d4e00,_0x50be4f){return _0x3d4e00+_0x50be4f;},'HSMtJ':_0x3cf381(0x284),'kAoiE':function(_0x6138a,_0x4d4ba4){return _0x6138a||_0x4d4ba4;},'jbdXs':_0x3cf381(0x295)},_0x4ab70=this;return _0x21bf77['TmAie'](o11yErrorHandler,async function _0x413ffd(_0x2b82cf,_0x1815bc,_0x2c9acf=null){const _0x4e846f=_0x3cf381;if(!_0x2b82cf){logger['debug'](_0x21bf77[_0x4e846f(0x26e)]),_0x4ab70[_0x4e846f(0x229)]=Object[_0x4e846f(0x1f1)]({},_0x4ab70[_0x4e846f(0x229)],{'cloudProvider':_0x21bf77[_0x4e846f(0x21f)](isBrowserstackInfra)?_0x21bf77[_0x4e846f(0x1ef)]:_0x21bf77['aFybY'],'browser':_0x21bf77[_0x4e846f(0x244)],'browser_version':_0x21bf77[_0x4e846f(0x24d)]});return;}let _0x44b2f6=_0x2b82cf[_0x4e846f(0x24c)],_0x48b6e1=null;_0x2b82cf&&_0x21bf77[_0x4e846f(0x1f2)](typeof _0x2b82cf['version'],_0x21bf77[_0x4e846f(0x298)])?_0x48b6e1=_0x2b82cf['version']():logger[_0x4e846f(0x279)](_0x21bf77[_0x4e846f(0x253)]);let _0x46187f=null;_0x2b82cf&&_0x21bf77[_0x4e846f(0x25c)](typeof _0x2b82cf[_0x4e846f(0x218)],_0x21bf77[_0x4e846f(0x298)])?_0x46187f=_0x2b82cf[_0x4e846f(0x218)]():logger['debug'](_0x21bf77[_0x4e846f(0x240)]);let _0xf9865b=null,_0x24f69c=null,_0x6c3136=null,_0x34f87b=_0x21bf77[_0x4e846f(0x243)];const _0x3ddf80=_0x2b82cf['_connection']&&_0x21bf77[_0x4e846f(0x25c)](typeof _0x2b82cf[_0x4e846f(0x1fe)][_0x4e846f(0x211)],_0x21bf77[_0x4e846f(0x298)])?_0x2b82cf[_0x4e846f(0x1fe)][_0x4e846f(0x211)]():![];if(_0x3ddf80||global['accessibilityPlatform']&&!process[_0x4e846f(0x22a)][_0x4e846f(0x260)]){let _0x143eb=null;_0x21bf77[_0x4e846f(0x251)](nestedKeyValue,_0x2b82cf,[_0x21bf77['socDE'],_0x21bf77[_0x4e846f(0x226)]])?_0x143eb=_0x2b82cf[_0x4e846f(0x205)]['_defaultConnectOptions']:_0x143eb=_0x21bf77['TmAie'](nestedKeyValue,_0x1815bc,[_0x21bf77[_0x4e846f(0x1fb)],_0x21bf77[_0x4e846f(0x20b)],_0x21bf77[_0x4e846f(0x20c)]]);const _0x4d24b2=_0x2c9acf||_0x143eb&&_0x143eb['wsEndpoint'];if(_0x4d24b2){_0x34f87b=_0x21bf77[_0x4e846f(0x20d)](getCloudProviderFromWsEndpoint,_0x4d24b2);if(_0x21bf77[_0x4e846f(0x1e9)](_0x34f87b,_0x21bf77[_0x4e846f(0x1ef)]))_0x6c3136=constants[_0x4e846f(0x296)][_0x4e846f(0x273)](_0x4d24b2)?_0x21bf77[_0x4e846f(0x25d)]:_0x21bf77[_0x4e846f(0x257)],_0x44b2f6=_0x21bf77[_0x4e846f(0x20d)](getBrowserFromWSEndpoint,_0x4d24b2)||_0x44b2f6,_0xf9865b=_0x4ab70['currentSessionDetails'][_0x4e846f(0x1e0)],_0x24f69c=_0x4ab70[_0x4e846f(0x229)][_0x4e846f(0x29e)];else{const _0x155c38=await _0x21bf77[_0x4e846f(0x21f)](getPlatformDetails);_0xf9865b=_0x155c38['platformName'],_0x24f69c=_0x155c38['platformVersion'];}}if(_0x21bf77[_0x4e846f(0x24f)](!_0xf9865b,!_0x24f69c)&&!_0x21bf77[_0x4e846f(0x21f)](isBrowserstackInfra)){const _0x7d04d5=await _0x21bf77['kKkxK'](getPlatformDetails);_0xf9865b=_0x7d04d5['platformName'],_0x24f69c=_0x7d04d5[_0x4e846f(0x1e5)];}}else{_0x1815bc&&_0x1815bc[_0x4e846f(0x293)][_0x4e846f(0x26c)][_0x4e846f(0x219)]?_0x44b2f6=_0x21bf77['eSCzz'](getBrowserNameFromChannel,_0x1815bc['project'][_0x4e846f(0x26c)][_0x4e846f(0x219)]):_0x44b2f6=_0x21bf77[_0x4e846f(0x224)](_0x21bf77['HSMtJ'],_0x21bf77['kAoiE'](_0x44b2f6,_0x21bf77[_0x4e846f(0x24d)])[_0x4e846f(0x25f)]());const _0x35cff5=await _0x21bf77[_0x4e846f(0x21f)](getPlatformDetails);_0xf9865b=_0x35cff5[_0x4e846f(0x228)],_0x24f69c=_0x35cff5[_0x4e846f(0x1e5)];}const _0x2822f2={};_0x2822f2[_0x4e846f(0x204)]=_0x44b2f6,_0x2822f2[_0x4e846f(0x2a5)]=_0x48b6e1,_0x2822f2['capabilities']={},_0x2822f2['platform']=_0xf9865b,_0x2822f2[_0x4e846f(0x29e)]=_0x24f69c,_0x2822f2[_0x4e846f(0x290)]=_0x6c3136;const _0x237c15=_0x2822f2;_0x46187f&&(_0x237c15[_0x4e846f(0x249)]['deviceModel']=_0x46187f);const _0x4918ae={};_0x4918ae[_0x4e846f(0x246)]=_0x34f87b,_0x4ab70[_0x4e846f(0x229)]=Object['assign']({},_0x4ab70[_0x4e846f(0x229)],_0x4918ae,_0x237c15);},_0x21bf77[_0x3cf381(0x22f)])(_0x6d6e21,_0x2309b8,_0x2b8a5e);}static[a56_0x17caf8(0x28c)](){const _0x3f9782=a56_0x17caf8;this[_0x3f9782(0x1f8)](),this[_0x3f9782(0x286)]();}static[a56_0x17caf8(0x1f8)](){const _0x3c2a9a=a56_0x17caf8,_0x3f4caa={'hXjyA':function(_0x3f6672,_0x2d5873,_0x2e9e61){return _0x3f6672(_0x2d5873,_0x2e9e61);},'rWovA':'currentTest','PErLQ':_0x3c2a9a(0x272),'OqaCI':'titlePath','VAijB':'__workerDetails','BWrkU':_0x3c2a9a(0x281),'XLgBv':function(_0x27cb0c,_0x40bad4){return _0x27cb0c===_0x40bad4;},'Kimtq':'Page','mKdWF':function(_0x11cfd7,_0x199e52,_0x3b1c0e,_0x2922f3){return _0x11cfd7(_0x199e52,_0x3b1c0e,_0x2922f3);},'XEydA':function(_0x58b25f,_0x1003c3){return _0x58b25f||_0x1003c3;},'YRcMo':function(_0x4c11ab,_0x36220b){return _0x4c11ab(_0x36220b);},'rlWMb':function(_0x57e16a,_0x1aa47d){return _0x57e16a(_0x1aa47d);},'qzixi':function(_0x3407cf,_0x3eaa3e){return _0x3407cf(_0x3eaa3e);},'uhojy':_0x3c2a9a(0x1fc),'mNebQ':function(_0x1b8f99,_0x8160ab){return _0x1b8f99!=_0x8160ab;},'ckzaJ':function(_0x335777){return _0x335777();},'HPCVU':'sendMessageToServer','xBqrq':_0x3c2a9a(0x202),'fKeUI':_0x3c2a9a(0x230),'hlGTJ':function(_0x5bde3f,_0x2505ac){return _0x5bde3f(_0x2505ac);}},_0x25eb53=this;!this[_0x3c2a9a(0x29c)]&&(this['Connection']=helper[_0x3c2a9a(0x22e)](),!this[_0x3c2a9a(0x29c)]&&_0x3f4caa[_0x3c2a9a(0x24b)](debug,_0x3f4caa[_0x3c2a9a(0x23a)]));const _0x516298=this[_0x3c2a9a(0x29c)];if(_0x3f4caa[_0x3c2a9a(0x222)](_0x516298,null)&&_0x516298['prototype']['_bstackDispatchPatched'])return;try{if(_0x3f4caa['mNebQ'](_0x516298,null)){const _0x2c9adc=_0x516298['prototype'][_0x3c2a9a(0x202)],_0x544df9=_0x516298[_0x3c2a9a(0x22d)][_0x3c2a9a(0x274)];_0x3f4caa[_0x3c2a9a(0x1f7)](isAccessibilityAutomationSession)&&Object[_0x3c2a9a(0x25a)](_0x516298[_0x3c2a9a(0x22d)],_0x3f4caa[_0x3c2a9a(0x28e)],{'get':function(){return async function(){const _0x338e03=a56_0x2f82;try{if(!global[_0x338e03(0x1dd)]&&global['accessibilityPlatform']&&_0x3f4caa[_0x338e03(0x212)](nestedKeyValue,global[_0x338e03(0x262)],[_0x3f4caa['rWovA'],_0x3f4caa[_0x338e03(0x241)],_0x3f4caa['OqaCI']])&&_0x3f4caa['hXjyA'](shouldScanTestForAccessibility,global[_0x338e03(0x262)][_0x338e03(0x275)]['testInfo'][_0x338e03(0x1ec)],!![])&&scripts[_0x338e03(0x1ea)](arguments[0x1])){logger[_0x338e03(0x279)](_0x338e03(0x20e)+arguments[0x1]),global[_0x338e03(0x1dd)]=!![];const _0x459368=_0x3f4caa['hXjyA'](nestedKeyValue,global,[_0x3f4caa['VAijB'],_0x3f4caa[_0x338e03(0x1fa)]]);_0x459368&&logger[_0x338e03(0x208)](_0x338e03(0x215)+util[_0x338e03(0x245)](await _0x3f4caa[_0x338e03(0x212)](performScanWithRetry,_0x459368,arguments[0x1]))),_0x3f4caa[_0x338e03(0x206)](arguments[0x0]['_type'],_0x3f4caa[_0x338e03(0x223)])&&global[_0x338e03(0x221)]&&logger[_0x338e03(0x208)]('Driver\x20Scan\x20result='+util[_0x338e03(0x245)](await _0x3f4caa[_0x338e03(0x1ff)](performScanWithRetry,global[_0x338e03(0x221)],arguments[0x1],scripts[_0x338e03(0x1f0)])));}}catch(_0x139c1e){logger[_0x338e03(0x279)]('Failed\x20to\x20perform\x20scan\x20'+util['format'](_0x139c1e));}return global[_0x338e03(0x1dd)]=![],_0x544df9[_0x338e03(0x231)](this,arguments);};}}),!_0x3f4caa[_0x3c2a9a(0x24b)](isFalse,process['env'][_0x3c2a9a(0x234)])&&Object[_0x3c2a9a(0x25a)](_0x516298[_0x3c2a9a(0x22d)],_0x3f4caa['xBqrq'],{'get':function(){const _0x863f00={'oHWbp':function(_0x31b1ed,_0x37b5de){const _0x347ad9=a56_0x2f82;return _0x3f4caa[_0x347ad9(0x235)](_0x31b1ed,_0x37b5de);},'OUsbF':function(_0x1088bd,_0x1640f1){const _0x333c19=a56_0x2f82;return _0x3f4caa[_0x333c19(0x29d)](_0x1088bd,_0x1640f1);},'BzYVY':function(_0x205b01,_0xdad4f4){const _0x50b46c=a56_0x2f82;return _0x3f4caa[_0x50b46c(0x289)](_0x205b01,_0xdad4f4);}};return async function _0x3a57d7(_0x3def5f){const _0x1d040f=a56_0x2f82,_0x21be40=_0x2c9adc['apply'](this,arguments);if(BrowserstackCLI[_0x1d040f(0x27f)]()['isRunning']()){const _0x219d58={};_0x219d58[_0x1d040f(0x238)]=_0x3def5f,await BrowserstackCLI[_0x1d040f(0x27f)]()[_0x1d040f(0x225)]()['trackEvent'](AutomationFrameworkState[_0x1d040f(0x23b)],HookState[_0x1d040f(0x213)],_0x219d58);}else{const _0x3077cd=_0x3def5f&&_0x3def5f['params']&&_0x3def5f[_0x1d040f(0x242)][_0x1d040f(0x239)];if(_0x3077cd){const _0xe1c85c=_0x3077cd[_0x1d040f(0x1e4)],_0x1cd399=_0x3077cd['platformDetails'];_0x863f00[_0x1d040f(0x1e2)](!_0xe1c85c,!_0x1cd399)&&await ClientTroubleShootingService[_0x1d040f(0x297)](),_0x1cd399&&(_0x863f00[_0x1d040f(0x254)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x1cd399['toString']()),_0x25eb53[_0x1d040f(0x229)][_0x1d040f(0x1e0)]=_0x1cd399[_0x1d040f(0x228)],_0x25eb53[_0x1d040f(0x229)][_0x1d040f(0x29e)]=_0x1cd399[_0x1d040f(0x1e5)]),_0xe1c85c&&(_0x863f00[_0x1d040f(0x1f4)](debug,_0x1d040f(0x29f)+_0xe1c85c),_0x25eb53[_0x1d040f(0x229)][_0x1d040f(0x287)]=_0xe1c85c);}}return _0x21be40;};}}),_0x516298[_0x3c2a9a(0x22d)][_0x3c2a9a(0x27e)]=!![],logger['debug'](_0x3f4caa[_0x3c2a9a(0x233)]);}}catch(_0x134714){_0x3f4caa[_0x3c2a9a(0x20a)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x134714),_0x25eb53[_0x3c2a9a(0x2a0)]=_0x134714['toString']();}}static[a56_0x17caf8(0x286)](){const _0x5bed5b=a56_0x17caf8,_0x55727d={'kWzUr':function(_0x198116,_0x451a48){return _0x198116(_0x451a48);},'AWbvh':function(_0x160f90,_0x3812a3){return _0x160f90(_0x3812a3);},'nUqtR':function(_0x1ff336){return _0x1ff336();},'jVRhb':function(_0x35386f,_0x1952b1){return _0x35386f>=_0x1952b1;},'AUpZp':_0x5bed5b(0x26a),'bRuHh':function(_0x5cb170,_0x4cff30){return _0x5cb170(_0x4cff30);},'OamBg':function(_0x2c259c,_0x35c623){return _0x2c259c(_0x35c623);},'QXAmz':'CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','IsIwL':_0x5bed5b(0x1eb),'tFZqb':'server','xFHVj':_0x5bed5b(0x2a1),'mICgv':_0x5bed5b(0x1f9),'sOxAe':function(_0x41a53b,_0x6747dd){return _0x41a53b(_0x6747dd);},'mNlMw':_0x5bed5b(0x21e),'UNxtV':function(_0x44bf10,_0x20a516){return _0x44bf10(_0x20a516);},'JiuYo':'Error\x20in\x20importing\x20crConnection','WBQqS':function(_0x2d1970,_0xdd7f1){return _0x2d1970!=_0xdd7f1;},'AcMlK':_0x5bed5b(0x23c),'HVgcq':function(_0x491b88,_0x3e01eb){return _0x491b88(_0x3e01eb);}},_0x508be6=this;if(_0x55727d['nUqtR'](isAccessibilityAutomationSession)){let _0x30e83c=null,_0x443ade=![];try{const _0x31197a=helper['getFrameworkVersion'](FRAMEWORKS[_0x5bed5b(0x216)]);_0x443ade=_0x55727d['jVRhb'](helper[_0x5bed5b(0x236)](_0x31197a,_0x55727d[_0x5bed5b(0x280)]),0x0);}catch(_0x5b975a){_0x55727d[_0x5bed5b(0x27d)](debug,_0x5bed5b(0x265)+_0x5b975a[_0x5bed5b(0x268)]());}if(_0x443ade)_0x55727d[_0x5bed5b(0x28b)](debug,_0x55727d['QXAmz']);else try{const _0x40e297=path[_0x5bed5b(0x1da)](_0x55727d[_0x5bed5b(0x214)],_0x55727d['tFZqb'],_0x55727d[_0x5bed5b(0x26b)],_0x55727d[_0x5bed5b(0x27b)]),_0x5cf06e=_0x55727d[_0x5bed5b(0x217)](importFileFromPWCore,_0x40e297);!_0x5cf06e?_0x55727d[_0x5bed5b(0x277)](debug,_0x55727d[_0x5bed5b(0x21b)]):_0x30e83c=_0x5cf06e['CRConnection'];}catch(_0x344638){_0x55727d[_0x5bed5b(0x250)](debug,_0x55727d[_0x5bed5b(0x210)]);}try{if(_0x55727d['WBQqS'](_0x30e83c,null)){const _0x14e502=_0x30e83c['prototype'][_0x5bed5b(0x23c)];Object[_0x5bed5b(0x25a)](_0x30e83c[_0x5bed5b(0x22d)],_0x55727d['AcMlK'],{'get':function(){return async function _0x11ef96(_0x475253){const _0x3674e2=a56_0x2f82;try{if(BrowserstackCLI['getInstance']()[_0x3674e2(0x24a)]()){const _0x3be7d5={};_0x3be7d5['message']=_0x475253,await BrowserstackCLI[_0x3674e2(0x27f)]()[_0x3674e2(0x225)]()[_0x3674e2(0x267)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x3674e2(0x213)],_0x3be7d5),delete _0x475253['bStackParams'];}else{const _0x39d40d=_0x475253['bStackParams'];if(_0x39d40d){delete _0x475253[_0x3674e2(0x1dc)];const _0x181803=_0x39d40d[_0x3674e2(0x1e4)],_0x587dc5=_0x39d40d['platformDetails'];_0x587dc5&&(_0x55727d['kWzUr'](debug,_0x3674e2(0x247)+_0x587dc5[_0x3674e2(0x268)]()),_0x508be6[_0x3674e2(0x229)][_0x3674e2(0x1e0)]=_0x587dc5[_0x3674e2(0x228)],_0x508be6[_0x3674e2(0x229)][_0x3674e2(0x29e)]=_0x587dc5['platformVersion']),_0x181803&&(_0x55727d['kWzUr'](debug,_0x3674e2(0x22c)+_0x181803),_0x508be6[_0x3674e2(0x229)][_0x3674e2(0x287)]=_0x181803);}}}catch(_0x5478e1){_0x55727d[_0x3674e2(0x217)](debug,_0x3674e2(0x252)+_0x5478e1[_0x3674e2(0x268)]());}return _0x14e502['apply'](this,arguments);};}});}}catch(_0x5c5852){_0x55727d['HVgcq'](debug,_0x5bed5b(0x25e)+_0x5c5852),_0x508be6[_0x5bed5b(0x2a0)]=_0x5c5852[_0x5bed5b(0x268)]();}}}static[a56_0x17caf8(0x23d)](){return this['currentSessionDetails'];}}module[a56_0x17caf8(0x1df)]=PlaywrightSessionDetails;function a56_0x10e9(){const _0x39bb2d=['BWrkU','krpVd','Not\x20able\x20to\x20resolve\x20Connection\x20class','288319mspgRj','_connection','mKdWF','webkit','connectOptions','dispatch','chrome','browser','_browserType','XLgBv','39180svyzDV','info','zvwse','hlGTJ','OFXyz','cDObX','hgQaZ','Performing\x20scan\x20for\x20','11YXsHNY','JiuYo','isRemote','hXjyA','POST','IsIwL','Page\x20Scan\x20result=','PLAYWRIGHT','AWbvh','model','channel','hKwhm','mNlMw','browserstack','13009180rkOxOM','Not\x20able\x20to\x20import\x20crConnection','WUOIM','iksRO','__driver','mNebQ','Kimtq','pHkXF','getAutomationFramework','nurCT','LJPgn','platformName','currentSessionDetails','env','turboscale','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','prototype','resolveConnectionClass','jbdXs','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','apply','browserName','fKeUI','BROWSERSTACK_TEST_OBSERVABILITY','XEydA','compareVersions','fromEntries','message','bsParams','uhojy','PLAYWRIGHT_DISPATCH','_onMessage','getDetails','zyweP','../../helpers/helper','FLYcO','PErLQ','params','aFybY','sZSUT','format','cloudProvider','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','setupBrowserDetails:\x20browser\x20param\x20is\x20nil;\x20populating\x20playwright\x20fallback\x20so\x20TRA\x20does\x20not\x20render\x20\x22Unknown\x22','capabilities','isRunning','qzixi','_name','pCpvj','query','jaric','UNxtV','CEdZZ','Error\x20in\x20finding\x20platform\x20details\x20','HSPQX','OUsbF','unknown_grid','WgwVn','DaXBh','../utils/constants','string','defineProperty','519210jwDXQE','HHQoQ','xfUbb','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','toLowerCase','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','EwdVR','__workerDetails','../utils/clientTroubleshootingService.js','../v2/browserstackCLI','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','../../helpers/logger','trackEvent','toString','unknown','1.60.0','xFHVj','use','../../helpers/test-observability/constants','TZXiJ','includes','playwright','LHvHw','testInfo','test','sendMessageToServer','currentTest','parse','sOxAe','2054885JZTMID','debug','148ccQjUA','mICgv','util','bRuHh','_bstackDispatchPatched','getInstance','AUpZp','pwPage','winstonLogger','split','playwright-','DJrCR','patchCRConnection','bsSessionId','./accessibility-helper','rlWMb','7vpdwry','OamBg','patch','../../helpers/test-observability/utils','HPCVU','../../helpers/accessibility-automation/accessibilityRetryHelper.js','product','url','4902aJtVDt','project','safari','setupBrowserDetails','ATS_WSS_URL_REGEX','reportSessionLinkingIssue','VRyJF','local_grid','fPAen','SEzAU','Connection','YRcMo','platform_version','Setting\x20session\x20id\x20received\x20from\x20BS\x20','sessionError','chromium','edge','uMeBu','caps','browser_version','BknQc','join','../../helpers/test-observability/error-handler','bStackParams','bstackPerformA11yScan','FwUZD','exports','platform','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','oHWbp','function','sessionId','platformVersion','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','2gTqaSo','BSTACK_ATS_URL','XIane','shouldWrapCommand','lib','titlePath','1909544DulMBM','Nxsjr','uWDmk','performScan','assign','bhRbI','../../bin/playwright/accessibility-helper','BzYVY','../v2/state/automationFrameworkState.js','BSTACK_URL','ckzaJ','patchConnection','crConnection.js'];a56_0x10e9=function(){return _0x39bb2d;};return a56_0x10e9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a57_0x537b84=a57_0x32b4;(function(_0x8f47ac,_0x2ee2d9){const _0x30aa94=a57_0x32b4,_0x567862=_0x8f47ac();while(!![]){try{const _0x524c1f=-parseInt(_0x30aa94(0x137))/0x1*(parseInt(_0x30aa94(0x127))/0x2)+-parseInt(_0x30aa94(0x12f))/0x3+-parseInt(_0x30aa94(0x130))/0x4+parseInt(_0x30aa94(0x142))/0x5*(parseInt(_0x30aa94(0x12c))/0x6)+parseInt(_0x30aa94(0x12b))/0x7+-parseInt(_0x30aa94(0x143))/0x8+parseInt(_0x30aa94(0x11a))/0x9;if(_0x524c1f===_0x2ee2d9)break;else _0x567862['push'](_0x567862['shift']());}catch(_0x42bcbf){_0x567862['push'](_0x567862['shift']());}}}(a57_0x2889,0xad001));const util=require(a57_0x537b84(0x13a)),logger=require(a57_0x537b84(0x13b)),{nestedKeyValue,isFalse}=require(a57_0x537b84(0x13f)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),PerformanceTester=require(a57_0x537b84(0x141)),{O11y_EVENTS:PerformanceO11yEvents}=require(a57_0x537b84(0x11c)),BrowserstackCLI=require('../v2/browserstackCLI'),CustomTagManager=require(a57_0x537b84(0x136)),uploadAttachmentsManager=require(a57_0x537b84(0x13c)),doo11ySync=PerformanceTester[a57_0x537b84(0x12a)](PerformanceO11yEvents[a57_0x537b84(0x11d)],o11yErrorHandler(async function doo11ySync(_0x19420d){const _0x547f4c=a57_0x537b84,_0x2d32d2={'GCTNJ':function(_0x52031b,_0x3d38e6,_0x57ff47){return _0x52031b(_0x3d38e6,_0x57ff47);},'ECPUH':_0x547f4c(0x124),'LZmAG':_0x547f4c(0x121),'qeSxv':_0x547f4c(0x139),'LJqsK':_0x547f4c(0x11b)};if(_0x2d32d2[_0x547f4c(0x11e)](nestedKeyValue,global,[_0x2d32d2[_0x547f4c(0x126)],_0x2d32d2[_0x547f4c(0x138)]]))return;await _0x19420d['evaluate'](_0x118688=>{},_0x547f4c(0x128)+JSON[_0x547f4c(0x133)]({'action':_0x2d32d2['qeSxv'],'arguments':{'data':_0x547f4c(0x11f)+Date['now'](),'level':_0x2d32d2[_0x547f4c(0x129)]}})),global['__workerDetails'][_0x547f4c(0x121)]=!![];},a57_0x537b84(0x13d)));function a57_0x2889(){const _0x41f49f=['ObservabilitySync:','yRWWO','o11ySyncDone','isRunning','ktEDC','__workerDetails','pwPage','ECPUH','150994ccIKue','browserstack_executor:\x20','LJqsK','measureWrapper','2441992tkhdMe','24UBEVcz','BROWSERSTACK_TEST_OBSERVABILITY','LOgzb','389451EvRYBj','4498324TnglfC','uploadAttachments','bind','stringify','format','uploadAttachment','../v2/customTagManager','11ZgSOwI','LZmAG','annotate','util','../../helpers/logger','../v2/uploadAttachmentsManager','doo11ySync','setCustomTags','../../helpers/helper','env','../../helpers/performance/performance-tester','136520iHIwra','5322608oeeQcY','getInstance','_bstackNewPagePatched','newPage','patchBrowserNewPage','27006552JntCLw','debug','../../helpers/performance/constants','SYNC','GCTNJ'];a57_0x2889=function(){return _0x41f49f;};return a57_0x2889();}function a57_0x32b4(_0x4daa68,_0x8d52e7){const _0x28896e=a57_0x2889();return a57_0x32b4=function(_0x32b47a,_0x4c3d5e){_0x32b47a=_0x32b47a-0x116;let _0x1f35da=_0x28896e[_0x32b47a];return _0x1f35da;},a57_0x32b4(_0x4daa68,_0x8d52e7);}exports[a57_0x537b84(0x119)]=_0x1245aa=>{const _0x465bd2=a57_0x537b84,_0x34cc62={'Oibyw':function(_0x18da9e,_0x8416a8){return _0x18da9e(_0x8416a8);},'ktEDC':function(_0x29aa2b,_0x1dbf95){return _0x29aa2b(_0x1dbf95);},'yRWWO':function(_0x2492f1,_0x34eedb,_0x15a476){return _0x2492f1(_0x34eedb,_0x15a476);},'LOgzb':_0x465bd2(0x124)};if(!_0x1245aa||_0x1245aa[_0x465bd2(0x117)])return;const _0x361e32=_0x1245aa[_0x465bd2(0x118)][_0x465bd2(0x132)](_0x1245aa);_0x1245aa[_0x465bd2(0x118)]=async function _0x34d2e3(){const _0x324080=_0x465bd2,_0x52b7c3=await _0x361e32['apply'](_0x1245aa,arguments);try{!BrowserstackCLI[_0x324080(0x116)]()[_0x324080(0x122)]()&&!_0x34cc62['Oibyw'](isFalse,process[_0x324080(0x140)][_0x324080(0x12d)])&&await _0x34cc62[_0x324080(0x123)](doo11ySync,_0x52b7c3),BrowserstackCLI[_0x324080(0x116)]()['isRunning']()&&(_0x52b7c3[_0x324080(0x13e)]=async(_0x255b45,_0x337906,_0x51e555=![])=>{const _0x23acc9=_0x324080;await CustomTagManager[_0x23acc9(0x13e)](_0x255b45,_0x337906,_0x51e555);},_0x52b7c3[_0x324080(0x135)]=async(_0x10476d,_0x1b207e=![])=>{const _0x56de23=_0x324080;await uploadAttachmentsManager[_0x56de23(0x131)](_0x10476d,_0x1b207e);});}catch(_0x7d424){logger[_0x324080(0x11b)]('Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20'+util[_0x324080(0x134)](_0x7d424));}return _0x34cc62[_0x324080(0x120)](nestedKeyValue,global,[_0x34cc62[_0x324080(0x12e)]])&&(global[_0x324080(0x124)][_0x324080(0x125)]=_0x52b7c3),_0x52b7c3;},_0x1245aa[_0x465bd2(0x117)]=!![];};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0x4918ad=a58_0x506b;function a58_0x506b(_0x2a8e5e,_0x17a245){const _0x46bd26=a58_0x46bd();return a58_0x506b=function(_0x506bc5,_0x11253a){_0x506bc5=_0x506bc5-0x127;let _0x396296=_0x46bd26[_0x506bc5];return _0x396296;},a58_0x506b(_0x2a8e5e,_0x17a245);}(function(_0x424c55,_0x3f4b04){const _0x4d82da=a58_0x506b,_0x37690a=_0x424c55();while(!![]){try{const _0x1d1676=parseInt(_0x4d82da(0x176))/0x1+-parseInt(_0x4d82da(0x156))/0x2+parseInt(_0x4d82da(0x164))/0x3+-parseInt(_0x4d82da(0x179))/0x4*(parseInt(_0x4d82da(0x17f))/0x5)+parseInt(_0x4d82da(0x141))/0x6*(parseInt(_0x4d82da(0x17d))/0x7)+-parseInt(_0x4d82da(0x184))/0x8+parseInt(_0x4d82da(0x172))/0x9;if(_0x1d1676===_0x3f4b04)break;else _0x37690a['push'](_0x37690a['shift']());}catch(_0x4daf84){_0x37690a['push'](_0x37690a['shift']());}}}(a58_0x46bd,0x89e28));const path=require(a58_0x4918ad(0x166)),url=require(a58_0x4918ad(0x127)),util=require(a58_0x4918ad(0x163)),{nestedKeyValue,isFalse}=require(a58_0x4918ad(0x128)),{debug,getPlatformDetails}=require(a58_0x4918ad(0x160)),logger=require('../../helpers/logger')[a58_0x4918ad(0x157)],constants=require(a58_0x4918ad(0x13e)),BrowserstackCLI=require(a58_0x4918ad(0x15c)),AutomationFrameworkState=require(a58_0x4918ad(0x16c)),HookState=require('../v2/state/hookState.js'),getBrowserFromWSEndpoint=_0x18b813=>{const _0x5b243e=a58_0x4918ad,_0x2e85ef={'UqZuy':_0x5b243e(0x12c),'IkUeI':function(_0x1b3d42,_0x57a074){return _0x1b3d42(_0x57a074);}};try{const _0x4d2099=url['parse'](_0x18b813),_0x30251c=new URLSearchParams(_0x4d2099[_0x5b243e(0x138)]),_0x5c9fdb=Object[_0x5b243e(0x150)](_0x30251c['entries']()),_0x41f9ee=JSON[_0x5b243e(0x142)](_0x5c9fdb['caps']);if(_0x41f9ee&&(_0x41f9ee['browser']||_0x41f9ee['browserName']))return _0x41f9ee[_0x5b243e(0x14a)]||_0x41f9ee[_0x5b243e(0x14d)];return _0x2e85ef[_0x5b243e(0x14c)];}catch(_0x2070fa){_0x2e85ef[_0x5b243e(0x17b)](debug,_0x5b243e(0x12f)+_0x2070fa[_0x5b243e(0x152)]());}},getCloudProviderFromWsEndpoint=_0x478ad0=>{const _0x4c46ed=a58_0x4918ad,_0x2632ff={};_0x2632ff[_0x4c46ed(0x161)]='browserstack',_0x2632ff[_0x4c46ed(0x151)]=_0x4c46ed(0x129);const _0x19a432=_0x2632ff;if(_0x478ad0['includes'](constants['BSTACK_URL'])||_0x478ad0[_0x4c46ed(0x16a)](constants[_0x4c46ed(0x15f)]))return _0x19a432[_0x4c46ed(0x161)];return _0x19a432[_0x4c46ed(0x151)];},a58_0x3aed82={};a58_0x3aed82[a58_0x4918ad(0x131)]=undefined,a58_0x3aed82[a58_0x4918ad(0x162)]=undefined,a58_0x3aed82[a58_0x4918ad(0x14a)]=undefined,a58_0x3aed82['browser_version']=undefined,a58_0x3aed82[a58_0x4918ad(0x139)]=undefined,a58_0x3aed82[a58_0x4918ad(0x135)]=undefined,a58_0x3aed82['product']=undefined,a58_0x3aed82[a58_0x4918ad(0x136)]={};class PuppeteerSessionDetails{static ['currentSessionDetails']=a58_0x3aed82;constructor(){const _0x178ea4=a58_0x4918ad,_0xfd4085={};_0xfd4085['asvII']=_0x178ea4(0x17c);const _0x179297=_0xfd4085;throw new Error(_0x179297[_0x178ea4(0x174)]);}static ['sessionError']=null;static async[a58_0x4918ad(0x13c)](_0x2b5967,_0x5eec9a){const _0x44c8bc=a58_0x4918ad,_0x322cad={'NUUoS':_0x44c8bc(0x12c),'wLXsH':function(_0x361c46,_0x12a88d){return _0x361c46===_0x12a88d;},'DZpzy':_0x44c8bc(0x177),'lXGqn':_0x44c8bc(0x15e),'aIxcD':function(_0x31c274,_0x3c5a8c){return _0x31c274(_0x3c5a8c);},'pAWUs':function(_0x2b19e0,_0x50a87f){return _0x2b19e0===_0x50a87f;},'ZcYsF':_0x44c8bc(0x175),'yYmOF':_0x44c8bc(0x16d),'iUjRn':_0x44c8bc(0x169),'zaRbg':function(_0x475190,_0x7b74da){return _0x475190(_0x7b74da);},'RdIYu':function(_0x34b0e3){return _0x34b0e3();}};try{let _0x155afc=_0x322cad[_0x44c8bc(0x130)],_0x5cb971=null;_0x2b5967&&_0x322cad['wLXsH'](typeof _0x2b5967['version'],_0x322cad[_0x44c8bc(0x133)])&&(_0x5cb971=await _0x2b5967[_0x44c8bc(0x146)]());let _0x4eccd4=null,_0x3270c5=null,_0x352a9a=null,_0x1617d6=_0x322cad[_0x44c8bc(0x13d)];if(_0x5eec9a){_0x1617d6=_0x322cad[_0x44c8bc(0x140)](getCloudProviderFromWsEndpoint,_0x5eec9a);if(_0x322cad[_0x44c8bc(0x12a)](_0x1617d6,_0x322cad[_0x44c8bc(0x16f)]))_0x352a9a=constants[_0x44c8bc(0x158)]?constants[_0x44c8bc(0x158)][_0x44c8bc(0x167)](_0x5eec9a)?_0x322cad[_0x44c8bc(0x14f)]:_0x322cad[_0x44c8bc(0x13a)]:_0x322cad[_0x44c8bc(0x13a)],_0x155afc=_0x322cad['zaRbg'](getBrowserFromWSEndpoint,_0x5eec9a)||_0x155afc,_0x4eccd4=this[_0x44c8bc(0x17e)][_0x44c8bc(0x139)],_0x3270c5=this[_0x44c8bc(0x17e)]['platform_version'];else{const _0x522842=await _0x322cad['RdIYu'](getPlatformDetails);_0x4eccd4=_0x522842['platformName'],_0x3270c5=_0x522842[_0x44c8bc(0x171)];}}else{const _0x3fc4eb=await _0x322cad[_0x44c8bc(0x154)](getPlatformDetails);_0x4eccd4=_0x3fc4eb[_0x44c8bc(0x12d)],_0x3270c5=_0x3fc4eb['platformVersion'];}const _0x32b038={};_0x32b038[_0x44c8bc(0x14a)]=_0x155afc,_0x32b038['browser_version']=_0x5cb971,_0x32b038[_0x44c8bc(0x136)]={},_0x32b038[_0x44c8bc(0x139)]=_0x4eccd4,_0x32b038[_0x44c8bc(0x135)]=_0x3270c5,_0x32b038[_0x44c8bc(0x180)]=_0x352a9a;const _0x495df8=_0x32b038,_0x47622c={};_0x47622c[_0x44c8bc(0x131)]=_0x1617d6,this[_0x44c8bc(0x17e)]=Object[_0x44c8bc(0x134)]({},this['currentSessionDetails'],_0x47622c,_0x495df8);}catch(_0x4bd497){_0x322cad[_0x44c8bc(0x12b)](debug,'Error\x20in\x20setupBrowserDetails:\x20'+util[_0x44c8bc(0x183)](_0x4bd497)),this[_0x44c8bc(0x168)]=_0x4bd497['toString']();}}static[a58_0x4918ad(0x17a)](_0x209aca){const _0x354115=a58_0x4918ad,_0x1d3b48={'HQZRl':function(_0x50cf3a,_0x40e2f1){return _0x50cf3a===_0x40e2f1;},'AMPwF':_0x354115(0x173),'aNLzw':function(_0x244d57,_0xcd46d7){return _0x244d57(_0xcd46d7);},'XYsJH':_0x354115(0x147),'xnQBe':function(_0xc77899,_0x1be278){return _0xc77899(_0x1be278);}},_0x322679=this;try{const _0x2c8bd5=_0x209aca[_0x354115(0x159)]||_0x209aca[_0x354115(0x132)];if(!_0x2c8bd5||_0x2c8bd5[_0x354115(0x153)])return;const _0xc4188e=_0x2c8bd5[_0x354115(0x13b)];_0x2c8bd5[_0x354115(0x13b)]=function(_0x5f0734){const _0x343142=_0x354115;try{const _0x453de6=_0x1d3b48[_0x343142(0x16e)](typeof _0x5f0734,_0x1d3b48[_0x343142(0x14e)])?JSON[_0x343142(0x142)](_0x5f0734):_0x5f0734,_0x169d63=_0x453de6?.[_0x343142(0x14b)]||_0x453de6?.[_0x343142(0x155)]||_0x453de6?.[_0x343142(0x165)]?.[_0x343142(0x155)]||_0x453de6?.[_0x343142(0x165)]?.[_0x343142(0x14b)]||_0x453de6?.['result']?.[_0x343142(0x155)]||_0x453de6?.[_0x343142(0x16b)]?.[_0x343142(0x14b)];if(_0x169d63){if(BrowserstackCLI[_0x343142(0x145)]()[_0x343142(0x144)]()){const _0x3869b4={};_0x3869b4[_0x343142(0x137)]=_0x453de6,BrowserstackCLI[_0x343142(0x145)]()['getAutomationFramework']()['trackEvent'](AutomationFrameworkState[_0x343142(0x149)],HookState[_0x343142(0x15a)],_0x3869b4);}else{const _0x117ebf=_0x169d63[_0x343142(0x182)],_0x4d286d=_0x169d63[_0x343142(0x12e)];_0x4d286d&&(_0x1d3b48[_0x343142(0x170)](debug,_0x343142(0x148)+JSON[_0x343142(0x143)](_0x4d286d)),_0x322679['currentSessionDetails']['platform']=_0x4d286d[_0x343142(0x12d)],_0x322679[_0x343142(0x17e)]['platform_version']=_0x4d286d[_0x343142(0x171)]),_0x117ebf&&(_0x1d3b48[_0x343142(0x170)](debug,_0x343142(0x181)+_0x117ebf),_0x322679[_0x343142(0x17e)][_0x343142(0x162)]=_0x117ebf);}_0x1d3b48[_0x343142(0x16e)](typeof _0x5f0734,_0x1d3b48[_0x343142(0x14e)])&&(delete _0x453de6[_0x343142(0x14b)],delete _0x453de6[_0x343142(0x155)],_0x453de6[_0x343142(0x165)]&&(delete _0x453de6[_0x343142(0x165)][_0x343142(0x155)],delete _0x453de6['params'][_0x343142(0x14b)]),_0x453de6[_0x343142(0x16b)]&&(delete _0x453de6[_0x343142(0x16b)][_0x343142(0x155)],delete _0x453de6[_0x343142(0x16b)]['bStackParams']));}}catch(_0x5b8091){_0x1d3b48[_0x343142(0x170)](debug,'Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20'+_0x5b8091[_0x343142(0x137)]);}return _0xc4188e?.[_0x343142(0x15d)](this,arguments);},_0x2c8bd5[_0x354115(0x153)]=!![],logger['debug'](_0x1d3b48['XYsJH']);}catch(_0x9a561e){_0x1d3b48[_0x354115(0x15b)](debug,_0x354115(0x178)+util[_0x354115(0x183)](_0x9a561e)),_0x322679[_0x354115(0x168)]=_0x9a561e[_0x354115(0x152)]();}}static['getDetails'](){return this['currentSessionDetails'];}}function a58_0x46bd(){const _0xa71f60=['lXGqn','../utils/constants','exports','aIxcD','30QURgiY','parse','stringify','isRunning','getInstance','version','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','PLAYWRIGHT_DISPATCH','browser','bStackParams','UqZuy','browserName','AMPwF','yYmOF','fromEntries','TctLD','toString','_bstackPatched','RdIYu','bsParams','966920AYiQfj','winstonLogger','ATS_WSS_URL_REGEX','_connection','POST','xnQBe','../v2/browserstackCLI','apply','local_grid','BSTACK_ATS_URL','../../helpers/test-observability/utils','SMjGp','bsSessionId','util','1842267EglgYY','params','path','test','sessionError','automate','includes','result','../v2/state/automationFrameworkState.js','turboscale','HQZRl','ZcYsF','aNLzw','platformVersion','16239429rYaIkb','string','asvII','browserstack','149384MVSFqV','function','Error\x20in\x20patchConnection:\x20','1468osiRrW','patchConnection','IkUeI','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','905807vBqHlY','currentSessionDetails','14795fpVAox','product','Setting\x20session\x20id\x20received\x20from\x20BS\x20','sessionId','format','8645360lVsYtw','url','../../helpers/helper','unknown_grid','pAWUs','zaRbg','chrome','platformName','platformDetails','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','NUUoS','cloudProvider','connection','DZpzy','assign','platform_version','capabilities','message','query','platform','iUjRn','onmessage','setupBrowserDetails'];a58_0x46bd=function(){return _0xa71f60;};return a58_0x46bd();}module[a58_0x4918ad(0x13f)]=PuppeteerSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a59_0x34b9ba=a59_0x3146;function a59_0x3146(_0x2da179,_0x5532e7){const _0x47fbd9=a59_0x47fb();return a59_0x3146=function(_0x31461f,_0x482a27){_0x31461f=_0x31461f-0x148;let _0x230fe3=_0x47fbd9[_0x31461f];return _0x230fe3;},a59_0x3146(_0x2da179,_0x5532e7);}(function(_0x1cd58a,_0x5d925f){const _0xb726dc=a59_0x3146,_0x2a887d=_0x1cd58a();while(!![]){try{const _0x159828=-parseInt(_0xb726dc(0x16c))/0x1*(-parseInt(_0xb726dc(0x166))/0x2)+parseInt(_0xb726dc(0x163))/0x3+parseInt(_0xb726dc(0x174))/0x4+-parseInt(_0xb726dc(0x165))/0x5+-parseInt(_0xb726dc(0x169))/0x6+parseInt(_0xb726dc(0x177))/0x7*(-parseInt(_0xb726dc(0x15e))/0x8)+parseInt(_0xb726dc(0x14c))/0x9;if(_0x159828===_0x5d925f)break;else _0x2a887d['push'](_0x2a887d['shift']());}catch(_0x5825a0){_0x2a887d['push'](_0x2a887d['shift']());}}}(a59_0x47fb,0x902ac));function a59_0x47fb(){const _0x24b381=['../utils/constants','17129dQCTYG','bootstrap','jestConfig','isCliEnabled','../../helpers/helper','../v2/browserstackCLI','3433581GVOEBs','pwPage','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','getInstance','JEST','isPageFixture','catch','BROWSERSTACK_PUPPETEER','winstonLogger','getPackageVersion','__skipSessionStatus','setFrameworkDetail','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','o11ySyncDone','../../helpers/logger','initializePuppeteerPatching','debug','util','24IWEFWn','__skipSessionName','format','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','../utils/puppeteer-patcher','852228IdhFPr','testInfo','1608475wSilUO','2282xAyeVq','../../helpers/testhub/utils','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','3587922XMcerR','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','__workerDetails','340hmeAJw','../v2/cliUtils','PUPPETEER','env','currentTest','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','../../helpers/test-observability/utils','true','1856024AkWtUk','skipSessionStatus'];a59_0x47fb=function(){return _0x24b381;};return a59_0x47fb();}const {isTrue,isBrowserstackInfra}=require(a59_0x34b9ba(0x14a)),setKeepAlive=require('../../helpers/setKeepAlive'),util=require(a59_0x34b9ba(0x15d)),logger=require(a59_0x34b9ba(0x15a))[a59_0x34b9ba(0x154)],{shouldProcessEventForTesthub}=require(a59_0x34b9ba(0x167)),{addRequestSpy}=require(a59_0x34b9ba(0x172)),a59_0x1518c9={};a59_0x1518c9['workerInfo']=undefined,a59_0x1518c9[a59_0x34b9ba(0x170)]={},a59_0x1518c9[a59_0x34b9ba(0x159)]=![],a59_0x1518c9[a59_0x34b9ba(0x14d)]=null,a59_0x1518c9[a59_0x34b9ba(0x151)]=![],a59_0x1518c9[a59_0x34b9ba(0x170)]['id']=undefined,a59_0x1518c9[a59_0x34b9ba(0x170)][a59_0x34b9ba(0x164)]=undefined;const workerDetails=a59_0x1518c9;global[a59_0x34b9ba(0x16b)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a59_0x34b9ba(0x15f)]=isTrue(global[a59_0x34b9ba(0x148)]?.['skipSessionName']),global[a59_0x34b9ba(0x156)]=isTrue(global[a59_0x34b9ba(0x148)]?.[a59_0x34b9ba(0x175)])):(global[a59_0x34b9ba(0x15f)]=!![],global['__skipSessionStatus']=!![]);const helper=require(a59_0x34b9ba(0x14a)),puppeteerVersion=helper['getPackageVersion']('puppeteer')||helper[a59_0x34b9ba(0x155)]('puppeteer-core');if(puppeteerVersion)try{logger[a59_0x34b9ba(0x15c)](a59_0x34b9ba(0x171)),puppeteerPatcher=require(a59_0x34b9ba(0x162)),puppeteerPatcher[a59_0x34b9ba(0x15b)](global[a59_0x34b9ba(0x148)]),logger['debug']('[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized');}catch(a59_0x26f615){logger[a59_0x34b9ba(0x15c)](a59_0x34b9ba(0x158)+util[a59_0x34b9ba(0x160)](a59_0x26f615));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a59_0x34b9ba(0x14b)),CLIUtils=require(a59_0x34b9ba(0x16d)),{FRAMEWORKS}=require(a59_0x34b9ba(0x176));BrowserstackCLI[a59_0x34b9ba(0x14f)]()[a59_0x34b9ba(0x149)]()&&(logger[a59_0x34b9ba(0x15c)](a59_0x34b9ba(0x161)),process[a59_0x34b9ba(0x16f)][a59_0x34b9ba(0x153)]=a59_0x34b9ba(0x173),CLIUtils[a59_0x34b9ba(0x157)](FRAMEWORKS[a59_0x34b9ba(0x150)],FRAMEWORKS[a59_0x34b9ba(0x16e)]),BrowserstackCLI['getInstance']()[a59_0x34b9ba(0x178)]()[a59_0x34b9ba(0x152)](_0xe43a26=>{const _0x7aa40=a59_0x34b9ba;logger[_0x7aa40(0x15c)](_0x7aa40(0x168)+util['format'](_0xe43a26));}));}catch(a59_0x39decf){logger[a59_0x34b9ba(0x15c)](a59_0x34b9ba(0x16a)+util[a59_0x34b9ba(0x160)](a59_0x39decf));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a59_0xe02faf){logger[a59_0x34b9ba(0x15c)]('[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20'+util[a59_0x34b9ba(0x160)](a59_0xe02faf));}logger[a59_0x34b9ba(0x15c)](a59_0x34b9ba(0x14e));
|
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 a60_0x5cafcf=a60_0x538a;(function(_0x250d1b,_0x277b68){const _0x4c11b9=a60_0x538a,_0x31d102=_0x250d1b();while(!![]){try{const _0x5da823=parseInt(_0x4c11b9(0x102))/0x1*(parseInt(_0x4c11b9(0x15b))/0x2)+-parseInt(_0x4c11b9(0x176))/0x3+parseInt(_0x4c11b9(0x178))/0x4*(parseInt(_0x4c11b9(0x12e))/0x5)+parseInt(_0x4c11b9(0x116))/0x6*(-parseInt(_0x4c11b9(0x10f))/0x7)+parseInt(_0x4c11b9(0x119))/0x8*(-parseInt(_0x4c11b9(0x11d))/0x9)+parseInt(_0x4c11b9(0x100))/0xa+-parseInt(_0x4c11b9(0x188))/0xb*(-parseInt(_0x4c11b9(0xef))/0xc);if(_0x5da823===_0x277b68)break;else _0x31d102['push'](_0x31d102['shift']());}catch(_0x448690){_0x31d102['push'](_0x31d102['shift']());}}}(a60_0x5176,0x4f83a));const fs=require('fs'),path=require(a60_0x5cafcf(0x180)),util=require(a60_0x5cafcf(0x17a)),spawn=require(a60_0x5cafcf(0x154))[a60_0x5cafcf(0x18c)],{requireModule}=require(a60_0x5cafcf(0x105)),PerformanceTester=require(a60_0x5cafcf(0xfb)),PerformanceEvents=require(a60_0x5cafcf(0x12c))['EVENTS'],helper=require(a60_0x5cafcf(0x105)),utilities=require(a60_0x5cafcf(0x14f)),{default:BrowserStackSetup}=require(a60_0x5cafcf(0x174)),{FRAMEWORKS}=require('../helpers/test-observability/constants'),runIntegrations=require(a60_0x5cafcf(0x13c)),yargs=require(a60_0x5cafcf(0x173)),Constants=require(a60_0x5cafcf(0x17c)),BrowserstackCLI=require(a60_0x5cafcf(0x134)),{isNewman}=require(a60_0x5cafcf(0x192)),logger=require('../helpers/logger')[a60_0x5cafcf(0x11f)],origArgs=Object[a60_0x5cafcf(0x120)]([],process[a60_0x5cafcf(0x11c)]),captureError=async(_0x5d7771,_0x1a1e30,_0x15e8f3,_0x576b1a=null,_0x39f60a=![])=>{const _0x271dd5=a60_0x5cafcf,_0x246b04={'VKbbz':function(_0x597ae7,_0x5d9d18,_0x21fcf2,_0x271e5a){return _0x597ae7(_0x5d9d18,_0x21fcf2,_0x271e5a);},'XACpS':_0x271dd5(0x10a)};try{logger[_0x271dd5(0x136)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0x271dd5(0x17d)]('\x20')),await _0x246b04[_0x271dd5(0x179)](_0x5d7771,_0x1a1e30,_0x576b1a,_0x15e8f3);}catch(_0x5e273c){process['exitCode']=0x1,logger[_0x271dd5(0x115)](util[_0x271dd5(0x10c)](_0x5e273c));const _0x202bc5={'globalException':util[_0x271dd5(0x10c)]('%j',_0x5e273c)};PerformanceTester[_0x271dd5(0x140)](PerformanceEvents[_0x271dd5(0x184)],![],util[_0x271dd5(0x10c)](_0x5e273c));if(helper[_0x271dd5(0x147)](global[_0x271dd5(0x103)])&&helper['isUndefined'](global['framework']))return;try{utilities[_0x271dd5(0x106)](_0x246b04[_0x271dd5(0x13e)],_0x202bc5,global[_0x271dd5(0x103)],global[_0x271dd5(0x152)]);}catch(_0x5332a8){logger['debug'](_0x271dd5(0x141)+_0x5332a8[_0x271dd5(0x107)]);}try{await helper[_0x271dd5(0x17b)](global[_0x271dd5(0x103)]);}catch(_0x31016e){logger[_0x271dd5(0x195)](_0x271dd5(0x161)+_0x31016e[_0x271dd5(0x107)]);}PerformanceTester[_0x271dd5(0x140)](PerformanceEvents['SDK_SETUP'],![],util[_0x271dd5(0x10c)](_0x5e273c));}finally{!_0x39f60a&&await BrowserstackCLI['getInstance']()[_0x271dd5(0x189)](),PerformanceTester[_0x271dd5(0xea)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path[a60_0x5cafcf(0x17d)](helper['homedir'](),'.browserstack');if(fs[a60_0x5cafcf(0xfa)](browserstackFolderPath)){const filePath=path[a60_0x5cafcf(0x17d)](browserstackFolderPath,a60_0x5cafcf(0xf2));fs[a60_0x5cafcf(0xfa)](filePath)&&fs[a60_0x5cafcf(0x11e)](filePath);}}catch(a60_0x90dda){logger[a60_0x5cafcf(0x195)](a60_0x5cafcf(0x144)+a60_0x90dda['message']);}function a60_0x5176(){const _0x40a04e=['unlinkSync','winstonLogger','assign','BduTT','ePWDV','eeatq','tYnaZ','oKyHh','usage:\x20$0\x20<command>\x20[args]','showHelpOnFail','zQMTO','cNwDB','pw:channel\x20auto-capture\x20seed\x20failed:\x20','BbVBN','../helpers/performance/constants','CODECEPTJS','135sHFlQZ','-pw:channel','getConfigPath','WxDGR','mjocF','tyWTH','./v2/browserstackCLI','vanilla','info','JASMINE','IUNBE','JEST','newman','./jasmine/command','./integrations/command','nwWkC','XACpS','Tckzi','end','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','wrap','XOOTR','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','mocha','env','isUndefined','describe','jest','ZnACC','NDGTd','zDRBK','strict','load\x20[subcommand]','../helpers/utilities','command','--require','framework','alias','child_process','MOCHA','run','LCsBG','./playwright/command','handler','nightwatch','6WwaHzH','--mochaRequire','pw:*','ErngB','--no-opts','DNrRW','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','push','PaKJG','some','MCFCh','version','cucumber-js','ChDxu','INFO','../../ats/src/index','OSZMf','iPtnX','parserConfiguration','NIGHTWATCH','mkisK','eaQHD','LLSXw','pKfhR','yargs','../helpers/BrowserStackSetup','ffbvU','1070817MWZhHw','kiGlA','35356QjhcCp','VKbbz','util','sendLogs','./utils/constants','join','kzrgn','setBrowserStackAutomationDisable','path','mocha/lib/cli/cli.js','getPwChannelLogPath','FSVRV','SDK_SETUP','mzkvq','find','includes','22539JAFrTK','stop','slice','./cucumber-js/command','spawn','ats','KfpAr','./nightwatch/command','jasmine','--package','./newman/helper','disableAutoCaptureLogs','HST','debug','IIQGG','./vanilla-js/command','setTestObservabilityDisable','Parsing\x20command\x20line\x20arguments','YOPvQ','SLtkA','ChCCR','start','--opts','help','eHJdl','./jest/command','1560IyjcYl','CUCUMBER','filter','.local-not-set.json','codeceptjs','DEBUG_FILE','PLAYWRIGHT','DryLH','mocha/lib/cli/run.js','BROWSERSTACK_CONFIG_FILE_PATH','./testcafe/command','existsSync','../helpers/performance/performance-tester','option','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','boolean','1071510IvPscT','dot-notation','195787WolHSl','config','VIfkh','../helpers/helper','fireFunnelTestEvent','stack','Runs\x20the\x20binary\x20with\x20load\x20command','DEBUG','SDKTestSuccessful','testcafe','format','xLuAs','dEUeU','126uzUkrm','zLmMc','eKCVR','split','CHrtF','myRbg','error','112188LSuDog','./newman/command','--no-package','688FKgtsj','miUVm','findAndReplace','argv','18873CKxxLj'];a60_0x5176=function(){return _0x40a04e;};return a60_0x5176();}process[a60_0x5cafcf(0x11c)][a60_0x5cafcf(0x187)](a60_0x5cafcf(0x145))&&(!process[a60_0x5cafcf(0x11c)][a60_0x5cafcf(0x187)](a60_0x5cafcf(0xeb))&&process[a60_0x5cafcf(0x11c)][a60_0x5cafcf(0x162)](a60_0x5cafcf(0x15f)),!process[a60_0x5cafcf(0x11c)][a60_0x5cafcf(0x186)](_0x5e974d=>_0x5e974d[a60_0x5cafcf(0x187)]('--config'))&&process[a60_0x5cafcf(0x11c)][a60_0x5cafcf(0x162)]('--no-config'),!process['argv'][a60_0x5cafcf(0x187)](a60_0x5cafcf(0x191))&&process[a60_0x5cafcf(0x11c)][a60_0x5cafcf(0x162)](a60_0x5cafcf(0x118)),helper[a60_0x5cafcf(0x11b)](process[a60_0x5cafcf(0x11c)],a60_0x5cafcf(0x151),a60_0x5cafcf(0x15c)));PerformanceTester[a60_0x5cafcf(0xea)](PerformanceEvents[a60_0x5cafcf(0x184)]);const a60_0x2ffbcc={};a60_0x2ffbcc[a60_0x5cafcf(0x101)]=![];function a60_0x538a(_0x3a100f,_0x16e265){const _0x517650=a60_0x5176();return a60_0x538a=function(_0x538a97,_0x3a4290){_0x538a97=_0x538a97-0xe4;let _0x4e4f30=_0x517650[_0x538a97];return _0x4e4f30;},a60_0x538a(_0x3a100f,_0x16e265);}const argv=yargs[a60_0x5cafcf(0x16d)](a60_0x2ffbcc)['usage'](a60_0x5cafcf(0x126))[a60_0x5cafcf(0x153)]('v',a60_0x5cafcf(0x166))[a60_0x5cafcf(0x148)]('v')[a60_0x5cafcf(0x153)]('h','help')['help'](a60_0x5cafcf(0xec))[a60_0x5cafcf(0x127)](!![],Constants['VERSION']['HELP'])[a60_0x5cafcf(0x150)](a60_0x5cafcf(0x149),Constants[a60_0x5cafcf(0x139)][a60_0x5cafcf(0x169)],function(_0x5b1117){const _0x58d064=a60_0x5cafcf,_0x17cb13={'kiGlA':'jest','KfpAr':function(_0x3f07c0,_0x2ed89e,_0x522efc,_0x4b0bb1,_0x5af128,_0xfe13d9){return _0x3f07c0(_0x2ed89e,_0x522efc,_0x4b0bb1,_0x5af128,_0xfe13d9);},'BduTT':function(_0x50c74e,_0x21f7f3){return _0x50c74e(_0x21f7f3);},'LLSXw':_0x58d064(0xee)},_0x30a460=process[_0x58d064(0x11c)][_0x58d064(0x18a)](0x2);helper[_0x58d064(0xe5)](),helper[_0x58d064(0x17f)](),_0x5b1117[_0x58d064(0x14d)](![]);const _0x20131f=new BrowserStackSetup(_0x5b1117[_0x58d064(0x11c)],_0x17cb13[_0x58d064(0x177)]);return _0x17cb13[_0x58d064(0x18e)](captureError,_0x17cb13[_0x58d064(0x121)](require,_0x17cb13[_0x58d064(0x171)]),_0x5b1117[_0x58d064(0x11c)],_0x20131f,_0x30a460,!![]);})[a60_0x5cafcf(0x150)](a60_0x5cafcf(0x190),Constants[a60_0x5cafcf(0x137)][a60_0x5cafcf(0x169)],function(_0x26aeaf){const _0x2df409=a60_0x5cafcf,_0x429fac={'ixARa':'jasmine','SLtkA':function(_0xe2c3e4,_0x37a046,_0x127c79,_0x26d6b9,_0x2afe8b,_0x5c7575){return _0xe2c3e4(_0x37a046,_0x127c79,_0x26d6b9,_0x2afe8b,_0x5c7575);},'YOPvQ':function(_0x26b9a2,_0x440adf){return _0x26b9a2(_0x440adf);},'dEUeU':_0x2df409(0x13b)},_0x59ff81=process[_0x2df409(0x11c)][_0x2df409(0x18a)](0x2);helper[_0x2df409(0xe5)](),helper['setBrowserStackAutomationDisable'](),_0x26aeaf[_0x2df409(0x14d)](![]);const _0x3f4638=new BrowserStackSetup(_0x26aeaf[_0x2df409(0x11c)],_0x429fac['ixARa']);return _0x429fac[_0x2df409(0xe8)](captureError,_0x429fac[_0x2df409(0xe7)](require,_0x429fac[_0x2df409(0x10e)]),_0x26aeaf[_0x2df409(0x11c)],_0x3f4638,_0x59ff81,!![]);})[a60_0x5cafcf(0x150)](a60_0x5cafcf(0x145),Constants[a60_0x5cafcf(0x155)]['INFO'],_0x5962d0=>{const _0x5191bc=a60_0x5cafcf,_0x268c2e={'mkisK':function(_0x3804b8,_0x24e76f,_0x4dc8f5,_0x33655d){return _0x3804b8(_0x24e76f,_0x4dc8f5,_0x33655d);},'ChDxu':function(_0x15cacb,_0x35494b){return _0x15cacb(_0x35494b);},'tYnaZ':'./mocha/command','ChCCR':_0x5191bc(0x145),'IUNBE':_0x5191bc(0xe6),'VIfkh':function(_0x5a1484,_0x28ac05,_0x473bc8){return _0x5a1484(_0x28ac05,_0x473bc8);},'tAZum':_0x5191bc(0xf7),'iMpJh':'mocha/lib/cli/commands.js','mzkvq':function(_0x3cd26d,_0x5218e9,_0x46b490){return _0x3cd26d(_0x5218e9,_0x46b490);},'oKyHh':_0x5191bc(0x181),'ZnACC':function(_0xd53146){return _0xd53146();}};process['argv']=process[_0x5191bc(0x11c)][_0x5191bc(0x18a)](0x1),helper['setTestObservabilityDisable'](),helper[_0x5191bc(0x17f)]();const _0x1be83e=new BrowserStackSetup(_0x5962d0[_0x5191bc(0x11c)],_0x268c2e['ChCCR']);logger[_0x5191bc(0x195)](_0x268c2e[_0x5191bc(0x138)]);const _0x482c5b=_0x268c2e['VIfkh'](requireModule,_0x268c2e['tAZum'],_0x268c2e[_0x5191bc(0xe9)]),_0x214f6=_0x268c2e[_0x5191bc(0x104)](requireModule,_0x268c2e['iMpJh'],_0x268c2e[_0x5191bc(0xe9)]);delete _0x482c5b['handler'],_0x482c5b[_0x5191bc(0x159)]=function(_0x381c2a){const _0x4d42f2=_0x5191bc;return _0x268c2e[_0x4d42f2(0x16f)](captureError,_0x268c2e[_0x4d42f2(0x168)](require,_0x268c2e[_0x4d42f2(0x124)]),_0x381c2a,_0x1be83e);},_0x214f6[_0x5191bc(0x156)]=_0x482c5b;const {main:_0x512b4c}=_0x268c2e[_0x5191bc(0x185)](requireModule,_0x268c2e[_0x5191bc(0x125)],_0x268c2e[_0x5191bc(0xe9)]);_0x268c2e[_0x5191bc(0x14a)](_0x512b4c);})[a60_0x5cafcf(0x150)](a60_0x5cafcf(0x167),Constants[a60_0x5cafcf(0xf0)]['INFO'],function(_0x36e1a7){const _0x2d5c27=a60_0x5cafcf,_0x55ade7={'WxDGR':_0x2d5c27(0x167),'ePWDV':function(_0x4bb72d,_0x57392c,_0x125b70,_0x4f0c0e,_0x12a1d3,_0x33f2a0){return _0x4bb72d(_0x57392c,_0x125b70,_0x4f0c0e,_0x12a1d3,_0x33f2a0);},'Tckzi':function(_0x4ea9ea,_0x437484){return _0x4ea9ea(_0x437484);},'nwWkC':_0x2d5c27(0x18b)},_0x4e4e31=process['argv'][_0x2d5c27(0x18a)](0x2),_0x5a41d8=new BrowserStackSetup(_0x36e1a7[_0x2d5c27(0x11c)],_0x55ade7[_0x2d5c27(0x131)]);return _0x55ade7[_0x2d5c27(0x122)](captureError,_0x55ade7[_0x2d5c27(0x13f)](require,_0x55ade7[_0x2d5c27(0x13d)]),_0x36e1a7['argv'],_0x5a41d8,_0x4e4e31,!![]);})[a60_0x5cafcf(0x150)]('node',Constants['VANILLA'][a60_0x5cafcf(0x169)],function(_0x100f4a){const _0x40a410=a60_0x5cafcf,_0x2a0d4b={'FgQaU':_0x40a410(0x135),'eHJdl':function(_0x256928,_0x587e57){return _0x256928(_0x587e57);},'ErngB':_0x40a410(0x13a),'SAUKV':function(_0x5f22c0,_0x588fe9,_0x7efd0f,_0xc35c9a,_0x389a3b){return _0x5f22c0(_0x588fe9,_0x7efd0f,_0xc35c9a,_0x389a3b);},'AMadc':function(_0x3468bd,_0x145ad5){return _0x3468bd(_0x145ad5);},'CHrtF':_0x40a410(0x117),'uUAuz':function(_0x313d58,_0x5924f9,_0x13d978,_0x5431ef,_0x5bde6a){return _0x313d58(_0x5924f9,_0x13d978,_0x5431ef,_0x5bde6a);},'pKfhR':function(_0xb0ef36,_0x222ca4){return _0xb0ef36(_0x222ca4);},'NDGTd':_0x40a410(0xe4)},_0x2fdc42=process['argv'][_0x40a410(0x18a)](0x2),_0x3125ee=new BrowserStackSetup(_0x100f4a[_0x40a410(0x11c)],_0x2a0d4b['FgQaU']),_0x601bfc=_0x3125ee?_0x3125ee[_0x40a410(0x103)]:null;if(_0x2a0d4b[_0x40a410(0xed)](isNewman,_0x601bfc))return _0x3125ee[_0x40a410(0x152)]=_0x2a0d4b[_0x40a410(0x15e)],global[_0x40a410(0x152)]=_0x2a0d4b[_0x40a410(0x15e)],_0x2a0d4b['SAUKV'](captureError,_0x2a0d4b['AMadc'](require,_0x2a0d4b[_0x40a410(0x113)]),_0x100f4a[_0x40a410(0x11c)],_0x3125ee,_0x2fdc42);return _0x2a0d4b['uUAuz'](captureError,_0x2a0d4b[_0x40a410(0x172)](require,_0x2a0d4b[_0x40a410(0x14b)]),_0x100f4a[_0x40a410(0x11c)],_0x3125ee,_0x2fdc42);})[a60_0x5cafcf(0x150)](a60_0x5cafcf(0x15a),Constants[a60_0x5cafcf(0x16e)]['INFO'],function(_0x11da8c){const _0x3bb14c=a60_0x5cafcf,_0x30e00e={'kpuRp':_0x3bb14c(0x15a),'FSVRV':function(_0xc2c3af,_0x21e772,_0x54e9e6,_0x58d639,_0x4581f1){return _0xc2c3af(_0x21e772,_0x54e9e6,_0x58d639,_0x4581f1);},'MCFCh':function(_0x487e51,_0x1c34d2){return _0x487e51(_0x1c34d2);},'iPtnX':_0x3bb14c(0x18f)},_0x55ecb0=process[_0x3bb14c(0x11c)][_0x3bb14c(0x18a)](0x2),_0xf8a40a=new BrowserStackSetup(_0x11da8c[_0x3bb14c(0x11c)],_0x30e00e['kpuRp']);return _0x30e00e[_0x3bb14c(0x183)](captureError,_0x30e00e[_0x3bb14c(0x165)](require,_0x30e00e[_0x3bb14c(0x16c)]),_0x11da8c[_0x3bb14c(0x11c)],_0xf8a40a,_0x55ecb0);})[a60_0x5cafcf(0x150)]('codeceptjs',Constants[a60_0x5cafcf(0x12d)][a60_0x5cafcf(0x169)],function(_0x250ba0){const _0x2f999e=a60_0x5cafcf,_0x23ea84={'cSAAz':_0x2f999e(0xf3),'eKCVR':function(_0x4980b3,_0x470f80,_0x597c5c,_0x5d1a73,_0x18b07b){return _0x4980b3(_0x470f80,_0x597c5c,_0x5d1a73,_0x18b07b);},'cNwDB':function(_0x3c4f7c,_0x2cb9b5){return _0x3c4f7c(_0x2cb9b5);},'bYCrQ':'./codeceptjs/command'},_0x3f33ce=process['argv']['slice'](0x2),_0x46dfa3=new BrowserStackSetup(_0x250ba0['argv'],_0x23ea84['cSAAz']);return _0x23ea84[_0x2f999e(0x111)](captureError,_0x23ea84[_0x2f999e(0x129)](require,_0x23ea84['bYCrQ']),_0x250ba0[_0x2f999e(0x11c)],_0x46dfa3,_0x3f33ce);})[a60_0x5cafcf(0x150)](a60_0x5cafcf(0x18d),Constants[a60_0x5cafcf(0x194)]['INFO'],function(_0x3991c2){const _0x5a6a7a=a60_0x5cafcf,_0x3044a9={'mjocF':function(_0x493d0b,_0x3f20ae,_0x449cd9){return _0x493d0b(_0x3f20ae,_0x449cd9);},'PaKJG':function(_0x52479a,_0x1b69c7){return _0x52479a(_0x1b69c7);},'DryLH':_0x5a6a7a(0x16a)},_0x2b92b6=process[_0x5a6a7a(0x11c)]['slice'](0x2);return _0x3044a9[_0x5a6a7a(0x132)](captureError,_0x3044a9[_0x5a6a7a(0x163)](require,_0x3044a9[_0x5a6a7a(0xf6)]),_0x3991c2);})[a60_0x5cafcf(0x150)]('integrations',Constants['INTEGRATIONS'][a60_0x5cafcf(0x169)],function(_0x2e5ea2){const _0x3e3db0=a60_0x5cafcf,_0x2613cd={'eeatq':function(_0x2099c2,_0x274a66){return _0x2099c2(_0x274a66);}};return _0x2613cd[_0x3e3db0(0x123)](runIntegrations,_0x2e5ea2);})[a60_0x5cafcf(0x150)]('playwright',Constants[a60_0x5cafcf(0xf5)][a60_0x5cafcf(0x169)],function(_0x405d90){const _0x2dee73=a60_0x5cafcf,_0x42c529={'vhmbt':'pw:channel','BbVBN':function(_0x558546,_0x5b783d){return _0x558546&&_0x5b783d;},'hbhcs':function(_0x4d2984,_0x2560c9,_0x32ec42,_0x37f0e5,_0x472ec0,_0x85fa6c){return _0x4d2984(_0x2560c9,_0x32ec42,_0x37f0e5,_0x472ec0,_0x85fa6c);},'zDRBK':function(_0x36a8e7,_0x3ab51f){return _0x36a8e7(_0x3ab51f);},'XOOTR':_0x2dee73(0x158)},_0x1ea48b=process[_0x2dee73(0x11c)][_0x2dee73(0x18a)](0x2);helper[_0x2dee73(0x130)](process[_0x2dee73(0x11c)])&&(process[_0x2dee73(0x146)][_0x2dee73(0xf8)]=helper[_0x2dee73(0x130)](process['argv']));helper[_0x2dee73(0xe5)](),helper[_0x2dee73(0x17f)]();const _0x713a12=new BrowserStackSetup(_0x405d90[_0x2dee73(0x11c)],FRAMEWORKS[_0x2dee73(0xf5)]);try{if(!_0x713a12[_0x2dee73(0x103)]||!_0x713a12['config'][_0x2dee73(0x193)]){const _0x401047=_0x42c529['vhmbt'],_0x532366=process[_0x2dee73(0x146)][_0x2dee73(0x109)]||'',_0x4d65d8=_0x532366[_0x2dee73(0x112)](',')['map'](_0x43d0af=>_0x43d0af['trim']())[_0x2dee73(0xf1)](Boolean),_0x20f95b=_0x4d65d8[_0x2dee73(0x164)](_0x3a1707=>_0x3a1707===_0x2dee73(0x12f)||_0x3a1707==='-pw:*'||_0x3a1707==='-*'),_0x5d72e6=_0x4d65d8[_0x2dee73(0x164)](_0x10dce2=>_0x10dce2===_0x401047||_0x10dce2===_0x2dee73(0x15d)||_0x10dce2==='*');if(_0x42c529[_0x2dee73(0x12b)](!_0x20f95b,!_0x5d72e6)){const _0x430854=helper[_0x2dee73(0x182)]();_0x430854&&(process[_0x2dee73(0x146)][_0x2dee73(0x109)]=_0x532366?_0x532366+','+_0x401047:_0x401047,!process[_0x2dee73(0x146)][_0x2dee73(0xf4)]&&(process[_0x2dee73(0x146)][_0x2dee73(0xf4)]=_0x430854));}}}catch(_0x390286){logger[_0x2dee73(0x195)](_0x2dee73(0x12a)+util[_0x2dee73(0x10c)](_0x390286));}return _0x42c529['hbhcs'](captureError,_0x42c529[_0x2dee73(0x14c)](require,_0x42c529[_0x2dee73(0x143)]),_0x405d90[_0x2dee73(0x11c)],_0x713a12,_0x1ea48b,!![]);})[a60_0x5cafcf(0x150)](a60_0x5cafcf(0x10b),Constants['TESTCAFE']['INFO'],function(_0x330f69){const _0x449780=a60_0x5cafcf,_0x4e88c2={'tyWTH':_0x449780(0x10b),'IIQGG':function(_0x3da8a6,_0xcf7065,_0x33c4d1,_0x23ba54,_0x1ede2a,_0x3936ff){return _0x3da8a6(_0xcf7065,_0x33c4d1,_0x23ba54,_0x1ede2a,_0x3936ff);},'UmfcQ':function(_0x1c6a7c,_0x2206e6){return _0x1c6a7c(_0x2206e6);},'DNrRW':_0x449780(0xf9)},_0x4b87fb=process[_0x449780(0x11c)]['slice'](0x2),_0x5f695f=new BrowserStackSetup(_0x330f69[_0x449780(0x11c)],_0x4e88c2[_0x449780(0x133)]);return _0x4e88c2[_0x449780(0x196)](captureError,_0x4e88c2['UmfcQ'](require,_0x4e88c2[_0x449780(0x160)]),_0x330f69[_0x449780(0x11c)],_0x5f695f,_0x4b87fb,!![]);})[a60_0x5cafcf(0x150)](a60_0x5cafcf(0x14e),a60_0x5cafcf(0x108),function(_0x2790d0){const _0x2566a2=a60_0x5cafcf,_0x51a5e0={};_0x51a5e0[_0x2566a2(0x157)]=_0x2566a2(0xec),_0x51a5e0[_0x2566a2(0x128)]=_0x2566a2(0xff),_0x51a5e0[_0x2566a2(0x16b)]='Show\x20help';const _0x467c1d=_0x51a5e0;return _0x2790d0[_0x2566a2(0xec)](![])[_0x2566a2(0xfc)](_0x467c1d[_0x2566a2(0x157)],{'alias':'h','type':_0x467c1d[_0x2566a2(0x128)],'describe':_0x467c1d['OSZMf']})[_0x2566a2(0x14d)](![])['exitProcess'](![]);},function(_0x4b7d6b){const _0x521b68=a60_0x5cafcf,_0x565b1c={'xLuAs':function(_0x11b348,_0x5089f0,_0x5d845c){return _0x11b348(_0x5089f0,_0x5d845c);},'miUVm':function(_0x564ec2,_0x5597b2){return _0x564ec2(_0x5597b2);},'myRbg':'./load/index'},_0x1d22de={};return _0x1d22de[_0x521b68(0x11c)]=_0x4b7d6b,_0x565b1c[_0x521b68(0x10d)](captureError,_0x565b1c[_0x521b68(0x11a)](require,_0x565b1c[_0x521b68(0x114)]),_0x1d22de);})[a60_0x5cafcf(0x150)](a60_0x5cafcf(0x13a),Constants['NEWMAN'][a60_0x5cafcf(0x169)],function(_0x42d11d){const _0x46a880=a60_0x5cafcf,_0x598247={'ffbvU':_0x46a880(0x13a),'kzrgn':function(_0x90d4fc,_0x24b187,_0x3fa57d,_0x4b0a83,_0x24d4b0){return _0x90d4fc(_0x24b187,_0x3fa57d,_0x4b0a83,_0x24d4b0);},'zLmMc':function(_0x3255b0,_0xa32196){return _0x3255b0(_0xa32196);},'eaQHD':'./newman/command'},_0x2595ab=process[_0x46a880(0x11c)][_0x46a880(0x18a)](0x2);helper[_0x46a880(0xe5)](),helper[_0x46a880(0x17f)](),_0x42d11d['strict'](![]);const _0x47c04a=new BrowserStackSetup(_0x42d11d['argv'],_0x598247[_0x46a880(0x175)]);return _0x598247[_0x46a880(0x17e)](captureError,_0x598247[_0x46a880(0x110)](require,_0x598247[_0x46a880(0x170)]),_0x42d11d[_0x46a880(0x11c)],_0x47c04a,_0x2595ab);})['demandCommand'](0x1,a60_0x5cafcf(0xfe))[a60_0x5cafcf(0x142)](null)[a60_0x5cafcf(0x11c)];!helper[a60_0x5cafcf(0x147)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x5cafcf(0x18d)&&console[a60_0x5cafcf(0x115)](a60_0x5cafcf(0xfd));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a61_0x4fb2c9=a61_0x3488;(function(_0x370bd9,_0x396162){const _0x354b2e=a61_0x3488,_0x1c2a6e=_0x370bd9();while(!![]){try{const _0x1d09c9=-parseInt(_0x354b2e(0x1ec))/0x1*(-parseInt(_0x354b2e(0x1cb))/0x2)+-parseInt(_0x354b2e(0x1ed))/0x3+parseInt(_0x354b2e(0x1d4))/0x4+-parseInt(_0x354b2e(0x1cd))/0x5*(parseInt(_0x354b2e(0x1c2))/0x6)+parseInt(_0x354b2e(0x1d8))/0x7*(parseInt(_0x354b2e(0x1b9))/0x8)+parseInt(_0x354b2e(0x1bd))/0x9+-parseInt(_0x354b2e(0x1d1))/0xa;if(_0x1d09c9===_0x396162)break;else _0x1c2a6e['push'](_0x1c2a6e['shift']());}catch(_0x31ed29){_0x1c2a6e['push'](_0x1c2a6e['shift']());}}}(a61_0x1637,0x88d17));const fs=require('fs'),helper=require(a61_0x4fb2c9(0x1c4)),utilities=require(a61_0x4fb2c9(0x1de)),yaml=require('js-yaml'),yargs=require(a61_0x4fb2c9(0x1eb)),logger=require(a61_0x4fb2c9(0x1e3))[a61_0x4fb2c9(0x1f0)],configFileTemplate=__dirname+a61_0x4fb2c9(0x1e5),configFileTemplatePW=__dirname+a61_0x4fb2c9(0x1d3),configFile=process[a61_0x4fb2c9(0x1f9)]()+a61_0x4fb2c9(0x1f3),packageFile=process['cwd']()+a61_0x4fb2c9(0x1ba),frameworks=[a61_0x4fb2c9(0x1da),'jest',a61_0x4fb2c9(0x1c0),a61_0x4fb2c9(0x1b5),a61_0x4fb2c9(0x1ee),'codeceptjs',a61_0x4fb2c9(0x1d5)];function a61_0x3488(_0x8a2735,_0x442e8c){const _0x163784=a61_0x1637();return a61_0x3488=function(_0x348888,_0x36493f){_0x348888=_0x348888-0x1b0;let _0x3c17fa=_0x163784[_0x348888];return _0x3c17fa;},a61_0x3488(_0x8a2735,_0x442e8c);}let config;logger[a61_0x4fb2c9(0x1dc)](a61_0x4fb2c9(0x1cf)),createConfigurationFile(yargs[a61_0x4fb2c9(0x1db)][a61_0x4fb2c9(0x1b7)],yargs['argv']['key'],yargs['argv'][a61_0x4fb2c9(0x1d5)]);try{sdkSetup();}catch(a61_0x4a26a7){logger[a61_0x4fb2c9(0x1f7)](a61_0x4fb2c9(0x1d0)+a61_0x4a26a7);}addScriptInPackageJson();function createConfigurationFile(_0x19df1d,_0x4e76ef,_0x5cdd02=![]){const _0x2ed8b9=a61_0x4fb2c9,_0x174c0c={};_0x174c0c[_0x2ed8b9(0x1dd)]=_0x2ed8b9(0x1c8),_0x174c0c[_0x2ed8b9(0x1c1)]=_0x2ed8b9(0x1c6),_0x174c0c['qAist']=_0x2ed8b9(0x1e0);const _0x39d1f4=_0x174c0c;try{let _0xf3e138=fs[_0x2ed8b9(0x1b6)](_0x5cdd02?configFileTemplatePW:configFileTemplate,_0x39d1f4[_0x2ed8b9(0x1dd)]);_0x19df1d&&(_0xf3e138=_0xf3e138[_0x2ed8b9(0x1ea)](_0x39d1f4[_0x2ed8b9(0x1c1)],_0x19df1d)),_0x4e76ef&&(_0xf3e138=_0xf3e138[_0x2ed8b9(0x1ea)](_0x39d1f4[_0x2ed8b9(0x1ef)],_0x4e76ef)),config=yaml[_0x2ed8b9(0x1f5)](_0xf3e138),fs[_0x2ed8b9(0x1bc)](configFile,_0xf3e138,_0x378157=>{const _0x2b246f=_0x2ed8b9;_0x378157&&logger[_0x2b246f(0x1d9)](_0x378157);});}catch(_0x3a14d2){logger[_0x2ed8b9(0x1d9)](_0x3a14d2);}}function addPostInstallScript(_0x594c68,_0x1d9562){const _0x8f3bb2=a61_0x4fb2c9,_0x3e5f9c={};_0x3e5f9c[_0x8f3bb2(0x1f2)]=_0x8f3bb2(0x1df),_0x3e5f9c[_0x8f3bb2(0x1f8)]=_0x8f3bb2(0x1e1),_0x3e5f9c['ameIS']='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0x430727=_0x3e5f9c;let _0x5361a5=_0x594c68[_0x430727[_0x8f3bb2(0x1f2)]];if(_0x5361a5&&_0x5361a5[_0x8f3bb2(0x1f4)](_0x430727[_0x8f3bb2(0x1f8)]))return;!_0x5361a5?_0x5361a5=_0x430727[_0x8f3bb2(0x1f8)]:_0x5361a5+=_0x430727['ameIS'],_0x1d9562[_0x8f3bb2(0x1b2)]([_0x430727[_0x8f3bb2(0x1f2)],_0x5361a5]);}function addScriptInPackageJson(){const _0x2e048a=a61_0x4fb2c9,_0x2be90e={'bjGPg':_0x2e048a(0x1c8),'YXrEd':function(_0x3bffc5,_0x39dc56){return _0x3bffc5<_0x39dc56;},'RLKtW':function(_0x2bbb31,_0x53581a,_0x3422ce){return _0x2bbb31(_0x53581a,_0x3422ce);},'lTdIg':function(_0x570b64,_0x5685da,_0x597067){return _0x570b64(_0x5685da,_0x597067);},'lDyYb':function(_0x4abff5,_0x4c8c20){return _0x4abff5!==_0x4c8c20;},'wOWyI':'Adding\x20new\x20script(s)\x20in\x20package.json...'},_0x363f7a=JSON[_0x2e048a(0x1bb)](fs[_0x2e048a(0x1b6)](packageFile,_0x2be90e[_0x2e048a(0x1e6)])),_0x22cfea=[];for(let _0x1d2b18=0x0;_0x2be90e['YXrEd'](_0x1d2b18,frameworks[_0x2e048a(0x1e9)]);_0x1d2b18+=0x1){const _0x433bc6=_0x2be90e['RLKtW'](findScriptsWithFramework,_0x363f7a[_0x2e048a(0x1ce)],frameworks[_0x1d2b18]);for(let _0x25c109=0x0;_0x2be90e[_0x2e048a(0x1b4)](_0x25c109,_0x433bc6[_0x2e048a(0x1e9)]);_0x25c109+=0x1){_0x22cfea[_0x2e048a(0x1b2)](_0x2be90e[_0x2e048a(0x1e4)](getUpdatedCommand,_0x363f7a[_0x2e048a(0x1ce)],_0x433bc6[_0x25c109]));}_0x2be90e[_0x2e048a(0x1e4)](addPostInstallScript,_0x363f7a[_0x2e048a(0x1ce)],_0x22cfea);}const _0xce0e11={..._0x363f7a[_0x2e048a(0x1ce)]},_0x3f8c03=_0xce0e11;for(let _0x2776dc=0x0;_0x2be90e[_0x2e048a(0x1b4)](_0x2776dc,_0x22cfea[_0x2e048a(0x1e9)]);_0x2776dc+=0x1){_0x3f8c03[_0x22cfea[_0x2776dc][0x0]]=_0x22cfea[_0x2776dc][0x1];}_0x2be90e[_0x2e048a(0x1be)](JSON[_0x2e048a(0x1e8)](_0x363f7a[_0x2e048a(0x1ce)]),JSON[_0x2e048a(0x1e8)](_0x3f8c03))&&(logger['info'](_0x2be90e[_0x2e048a(0x1d6)]),_0x363f7a[_0x2e048a(0x1ce)]=_0x3f8c03,fs[_0x2e048a(0x1bc)](packageFile,JSON['stringify'](_0x363f7a,null,0x2),_0x456e0f=>{const _0x26737c=_0x2e048a;_0x456e0f&&logger[_0x26737c(0x1d9)](_0x456e0f);}));};function a61_0x1637(){const _0x3c5c2f=['/../../browserstack.pw.yml.sample','1174284oYGdOs','playwright','wOWyI','join','5857327zdbrTQ','error','mocha','argv','info','WCGHK','../helpers/utilities','postinstall','YOUR_ACCESS_KEY','npm\x20update\x20browserstack-node-sdk','AhekP','../helpers/logger','lTdIg','/../../browserstack.yml.sample','bjGPg','oZmHO','stringify','length','replace','yargs','505AdJWCx','2823174TFxWae','nightwatch','qAist','winstonLogger','jTgQD','ZHKDx','/browserstack.yml','includes','load','node-setup','debug','FXZxc','cwd','amBeh','browserstack-node-sdk','splice','push','browserstack-node-sdk\x20','YXrEd','node','readFileSync','username','SDKSetup','8qTrwAZ','/package.json','parse','writeFileSync','3134979inkvqZ','lDyYb','lSMLH','cucumber-js','TAzcU','49782tFLYbU','indexOf','../helpers/helper','uAQbi','YOUR_USERNAME','GRZPO','utf8','isUndefined','entries','1450OVYZaM','fireFunnelTestEvent','170SdJPgH','scripts','Creating\x20configuration\x20file...','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','612250QDDJzX','-browserstack'];a61_0x1637=function(){return _0x3c5c2f;};return a61_0x1637();}function findScriptsWithFramework(_0x22f16d,_0x4ce745){const _0x3c2520=a61_0x4fb2c9,_0x22f4f0={};_0x22f4f0['lSMLH']=function(_0x224ecb,_0x5f3a8c){return _0x224ecb<_0x5f3a8c;},_0x22f4f0[_0x3c2520(0x1fa)]=_0x3c2520(0x1b0);const _0x49ba42=_0x22f4f0,_0x2e1dad=[],_0x2c559c=Object[_0x3c2520(0x1ca)](_0x22f16d);for(let _0x3b7590=0x0;_0x49ba42[_0x3c2520(0x1bf)](_0x3b7590,_0x2c559c[_0x3c2520(0x1e9)]);_0x3b7590+=0x1){_0x2c559c[_0x3b7590][0x1][_0x3c2520(0x1f4)](_0x4ce745)&&!_0x2c559c[_0x3b7590][0x1][_0x3c2520(0x1f4)](_0x49ba42[_0x3c2520(0x1fa)])&&_0x2e1dad[_0x3c2520(0x1b2)](_0x2c559c[_0x3b7590][0x0]);}return _0x2e1dad;}function getUpdatedCommand(_0x188645,_0x25f3bd){const _0x196328=a61_0x4fb2c9,_0x330afe={};_0x330afe['uAQbi']=function(_0x514e9a,_0x1ff604){return _0x514e9a!==_0x1ff604;},_0x330afe[_0x196328(0x1e2)]=_0x196328(0x1b0),_0x330afe[_0x196328(0x1f1)]=function(_0x15b031,_0x38c10f){return _0x15b031===_0x38c10f;};const _0x12efb2=_0x330afe,_0x104b4d=_0x25f3bd+_0x196328(0x1d2),_0x35a73b=_0x188645[_0x25f3bd],_0x227a75=_0x35a73b['split']('\x20');for(const _0x4d9e2f of frameworks){if(_0x12efb2[_0x196328(0x1c5)](_0x227a75[_0x196328(0x1c3)](_0x4d9e2f),-0x1)){_0x227a75[_0x196328(0x1b1)](_0x227a75['indexOf'](_0x4d9e2f),0x0,_0x12efb2['AhekP']);break;}}let _0x292c13=_0x227a75[_0x196328(0x1d7)]('\x20');return _0x12efb2[_0x196328(0x1f1)](_0x292c13,_0x35a73b)&&(_0x292c13=_0x196328(0x1b3)+_0x35a73b),[_0x104b4d,_0x292c13];}function sdkSetup(){const _0x49b649=a61_0x4fb2c9,_0x4b57c4={};_0x4b57c4[_0x49b649(0x1e7)]=_0x49b649(0x1f6),_0x4b57c4[_0x49b649(0x1c7)]=_0x49b649(0x1b8);const _0x43eb46=_0x4b57c4;if(helper[_0x49b649(0x1c9)](config))return;config['source']=_0x43eb46['oZmHO'];try{utilities[_0x49b649(0x1cc)](_0x43eb46['GRZPO'],{},config,'');}catch(_0x7a3198){logger[_0x49b649(0x1f7)](_0x49b649(0x1d0)+_0x7a3198);}}logger[a61_0x4fb2c9(0x1dc)]('Setup\x20completed');
|