browserstack-node-sdk 1.63.1 → 1.63.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_0x33d050=a55_0x9191;function a55_0x9191(_0x373086,_0x336b7f){const _0x164649=a55_0x1646();return a55_0x9191=function(_0x919167,_0x582b55){_0x919167=_0x919167-0x117;let _0x10d0c5=_0x164649[_0x919167];return _0x10d0c5;},a55_0x9191(_0x373086,_0x336b7f);}(function(_0x494ab9,_0x163468){const _0x71a04c=a55_0x9191,_0x5caf14=_0x494ab9();while(!![]){try{const _0x534985=-parseInt(_0x71a04c(0x133))/0x1*(-parseInt(_0x71a04c(0x11e))/0x2)+parseInt(_0x71a04c(0x174))/0x3*(-parseInt(_0x71a04c(0x164))/0x4)+-parseInt(_0x71a04c(0x11a))/0x5+-parseInt(_0x71a04c(0x136))/0x6*(-parseInt(_0x71a04c(0x14b))/0x7)+-parseInt(_0x71a04c(0x12d))/0x8+parseInt(_0x71a04c(0x147))/0x9*(parseInt(_0x71a04c(0x13d))/0xa)+-parseInt(_0x71a04c(0x14e))/0xb;if(_0x534985===_0x163468)break;else _0x5caf14['push'](_0x5caf14['shift']());}catch(_0xe497a){_0x5caf14['push'](_0x5caf14['shift']());}}}(a55_0x1646,0xcfa36));function a55_0x1646(){const _0x582a40=['parse','forEach','setAccessibilityPlatformValidation','WGHRu','CmVAO','aXgfL','_test','join','UoJwM','EGWkG','appendFileSync','readdirSync','retry','813wGZEsP','Error\x20reading\x20trace\x20file\x20paths:\x20%s','stringify','jtqNk','2800875hDedXZ','project','../../../helpers/test-observability/constants','_platformDetails.json','95372mbVmaW','mkdirSync','../../../helpers/helper','.json','addTraceFilePath','oYIvs','message','getIntegrations','getFilePath','ZYIHa','TLdjD','readFileSync','trace_','writeFileSync','getDirPath','1678792GzVYZE','fJygC','getStoreDirName','recursive','getTraceZipDir','setup','31gTNpGS','__projectId','PYzRp','66AIGGkN','shutdown','tests','NpyPO','filePath','rmSync','winstonLogger','40llqKnz','siLLX','.txt','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','Error\x20writing\x20trace\x20file:\x20','toString','getProjectIdFromTestInfo','string','getStoreDirPath','getTestIdFromTestInfo','1034217SOGvuS','util','pid','_integrations.json','12719gzWZyA','getTestDetails','error','918148sKYCSv','uuid','WomXe','qJWEL','_traceZipPaths.json','force','xvtit','default','env','BS_TESTOPS_BUILD_HASHED_ID','setIntegrations','path','lBxMk','_projectId','ExBlZ','values','push','existsSync','yMewW','debug','ekDSJ','exports','3748CdkXcz','endsWith','traceZipPaths'];a55_0x1646=function(){return _0x582a40;};return a55_0x1646();}const fs=require('fs'),path=require(a55_0x33d050(0x159)),{v4:uuidv4}=require(a55_0x33d050(0x14f)),{TEMP_STORE_DIR_NAME}=require(a55_0x33d050(0x11c)),{nestedKeyValue}=require('../../../helpers/helper'),logger=require('../../../helpers/logger')[a55_0x33d050(0x13c)],{getLogDir}=require('../../../helpers/logger'),util=require(a55_0x33d050(0x148)),helper=require(a55_0x33d050(0x120));class TestDetails{static ['tests']={};static[a55_0x33d050(0x132)](){const _0x49e0c1=a55_0x33d050;this[_0x49e0c1(0x137)]();const _0x452395={};_0x452395[_0x49e0c1(0x130)]=!![],fs[_0x49e0c1(0x11f)](this[_0x49e0c1(0x12c)](),_0x452395);const _0x60059b={};_0x60059b[_0x49e0c1(0x130)]=!![],fs[_0x49e0c1(0x11f)](this[_0x49e0c1(0x131)](),_0x60059b);}static['getStoreDirName'](){const _0x44b5a2=a55_0x33d050,_0x513389={};_0x513389[_0x44b5a2(0x135)]=function(_0x51612b,_0x3a68e3){return _0x51612b+_0x3a68e3;},_0x513389[_0x44b5a2(0x160)]=function(_0x565046,_0x330bd8){return _0x565046+_0x330bd8;};const _0x5a7499=_0x513389;return _0x5a7499['PYzRp'](_0x5a7499[_0x44b5a2(0x160)](TEMP_STORE_DIR_NAME,'-'),process[_0x44b5a2(0x156)]['BS_TESTOPS_BUILD_HASHED_ID']);}static[a55_0x33d050(0x145)](){const _0x490201=a55_0x33d050,_0x3f1f8e={};_0x3f1f8e[_0x490201(0x16b)]=function(_0x3cb878,_0x57a4a1){return _0x3cb878+_0x57a4a1;},_0x3f1f8e['lLEhZ']=function(_0x4ab831,_0x12e173){return _0x4ab831+_0x12e173;},_0x3f1f8e[_0x490201(0x15a)]=_0x490201(0x155);const _0x682645=_0x3f1f8e;return path['join'](_0x682645[_0x490201(0x16b)](_0x682645['lLEhZ'](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x490201(0x157)]||_0x682645[_0x490201(0x15a)]));}static[a55_0x33d050(0x131)](){const _0x18dfc9=a55_0x33d050,_0x30fed6={};_0x30fed6['ZYIHa']=_0x18dfc9(0x166);const _0x20df3e=_0x30fed6;return path[_0x18dfc9(0x16e)](this[_0x18dfc9(0x145)](),_0x20df3e[_0x18dfc9(0x127)]);}static[a55_0x33d050(0x12c)](){const _0x24a48d=a55_0x33d050;return TestDetails[_0x24a48d(0x12f)]();}static[a55_0x33d050(0x126)](_0x1597b8){const _0x25e4d2=a55_0x33d050,_0x321008={};_0x321008['ZHuFG']=function(_0x36bb47,_0x4f0de7){return _0x36bb47+_0x4f0de7;},_0x321008[_0x25e4d2(0x16f)]=_0x25e4d2(0x121);const _0x10d1c7=_0x321008;return path[_0x25e4d2(0x16e)](this[_0x25e4d2(0x12c)](),_0x10d1c7['ZHuFG'](_0x1597b8,_0x10d1c7['UoJwM']));}static['getTestRunIdFromTestInfo'](_0xee3db7){const _0x2a5541=a55_0x33d050,_0x1e5767={};_0x1e5767['siLLX']=function(_0x30a5df,_0x1fd47e){return _0x30a5df+_0x1fd47e;};const _0x3226b0=_0x1e5767;return _0x3226b0[_0x2a5541(0x13e)](_0x3226b0[_0x2a5541(0x13e)](this[_0x2a5541(0x146)](_0xee3db7),'-'),_0xee3db7[_0x2a5541(0x173)]);}static[a55_0x33d050(0x143)](_0x4ff715){const _0x3aae81=a55_0x33d050,_0xbb718a={'TLdjD':function(_0x259e26,_0x3f0654,_0x57e88e){return _0x259e26(_0x3f0654,_0x57e88e);},'lxUsD':_0x3aae81(0x16d),'xvtit':_0x3aae81(0x15b),'WGHRu':_0x3aae81(0x11b),'NpyPO':_0x3aae81(0x134)};return _0xbb718a['TLdjD'](nestedKeyValue,_0x4ff715,[_0xbb718a['lxUsD'],_0xbb718a[_0x3aae81(0x154)]])||_0xbb718a[_0x3aae81(0x128)](nestedKeyValue,_0x4ff715,[_0xbb718a[_0x3aae81(0x16a)],_0xbb718a[_0x3aae81(0x139)]]);}static[a55_0x33d050(0x146)](_0x24f964){const _0x578d5a=a55_0x33d050,_0x32dc2c={'fJygC':function(_0x10cf82,_0x257984,_0x3bdd71){return _0x10cf82(_0x257984,_0x3bdd71);},'EGWkG':'_test'};return _0x32dc2c[_0x578d5a(0x12e)](nestedKeyValue,_0x24f964,[_0x32dc2c[_0x578d5a(0x170)],'id'])||_0x24f964['testId'];}static['getTestUUID'](_0x3a8d49){const _0x153a4a=a55_0x33d050,_0x1bf125={'rhigk':function(_0x2ec10e,_0x1b38e7){return _0x2ec10e===_0x1b38e7;},'WomXe':_0x153a4a(0x144),'jtqNk':function(_0xb24215){return _0xb24215();}};if(this[_0x153a4a(0x138)][_0x3a8d49]&&_0x1bf125['rhigk'](typeof this[_0x153a4a(0x138)][_0x3a8d49][_0x153a4a(0x14f)],_0x1bf125[_0x153a4a(0x150)]))return this[_0x153a4a(0x138)][_0x3a8d49][_0x153a4a(0x14f)];const _0x2d967c=this[_0x153a4a(0x126)](_0x3a8d49);if(_0x2d967c&&fs['existsSync'](_0x2d967c)){const _0x564fa8=JSON[_0x153a4a(0x167)](fs[_0x153a4a(0x129)](_0x2d967c)['toString']());return this[_0x153a4a(0x138)][_0x3a8d49]=_0x564fa8,this[_0x153a4a(0x138)][_0x3a8d49][_0x153a4a(0x14f)];}return this['tests'][_0x3a8d49]={'uuid':_0x1bf125[_0x153a4a(0x119)](uuidv4)},fs['writeFileSync'](_0x2d967c,JSON[_0x153a4a(0x118)](this['tests'][_0x3a8d49])),this[_0x153a4a(0x138)][_0x3a8d49][_0x153a4a(0x14f)];}static['getAccessibilityPlatformValidation'](_0x185930){const _0x53183c=a55_0x33d050,_0x468bd2=path[_0x53183c(0x16e)](this[_0x53183c(0x12c)](),_0x185930+_0x53183c(0x11d));if(_0x468bd2&&fs[_0x53183c(0x15f)](_0x468bd2))return fs[_0x53183c(0x129)](_0x468bd2)[_0x53183c(0x142)]();}static[a55_0x33d050(0x169)](_0x44a522,_0x3b78c7){const _0x4deae6=a55_0x33d050,_0x556476=path[_0x4deae6(0x16e)](this[_0x4deae6(0x12c)](),_0x3b78c7+'_platformDetails.json');fs['writeFileSync'](_0x556476,_0x44a522[_0x4deae6(0x142)]());}static[a55_0x33d050(0x125)](_0xbe760a){const _0x4927fe=a55_0x33d050,_0x578e09=path[_0x4927fe(0x16e)](this[_0x4927fe(0x12c)](),_0xbe760a+_0x4927fe(0x14a));if(_0x578e09&&fs[_0x4927fe(0x15f)](_0x578e09))try{return JSON['parse'](fs[_0x4927fe(0x129)](_0x578e09)[_0x4927fe(0x142)]());}catch(_0x2c6466){return logger[_0x4927fe(0x161)]('Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20'+_0xbe760a+':\x20'+(_0x2c6466&&_0x2c6466[_0x4927fe(0x124)])),null;}return null;}static[a55_0x33d050(0x158)](_0x4c68b6,_0x648c42){const _0x3ee92f=a55_0x33d050,_0x196281={};_0x196281[_0x3ee92f(0x123)]=function(_0x3f3e24,_0x2f3f2e){return _0x3f3e24||_0x2f3f2e;};const _0xf6e60b=_0x196281;if(_0xf6e60b['oYIvs'](!_0x4c68b6,!_0x648c42))return;try{const _0x3a2cb1=this[_0x3ee92f(0x12c)](),_0x56a387={};_0x56a387[_0x3ee92f(0x130)]=!![],fs[_0x3ee92f(0x11f)](_0x3a2cb1,_0x56a387);const _0x412a4b=path[_0x3ee92f(0x16e)](_0x3a2cb1,_0x4c68b6+_0x3ee92f(0x14a));fs[_0x3ee92f(0x12b)](_0x412a4b,JSON['stringify'](_0x648c42));}catch(_0x28829a){logger[_0x3ee92f(0x161)](_0x3ee92f(0x140)+_0x4c68b6+':\x20'+(_0x28829a&&_0x28829a['message']));}}static[a55_0x33d050(0x137)](){const _0x34ac58=a55_0x33d050,_0x54fd0d={};_0x54fd0d[_0x34ac58(0x130)]=!![],_0x54fd0d[_0x34ac58(0x153)]=!![],fs[_0x34ac58(0x13b)](this['getDirPath'](),_0x54fd0d);}static[a55_0x33d050(0x14c)](_0x1b4476){const _0x28a8fa=a55_0x33d050;if(this[_0x28a8fa(0x138)][_0x1b4476])return this['tests'][_0x1b4476];const _0x2a9676=this[_0x28a8fa(0x126)](_0x1b4476);if(_0x2a9676&&fs['existsSync'](_0x2a9676)){const _0x4b9c65=JSON[_0x28a8fa(0x167)](fs['readFileSync'](_0x2a9676)[_0x28a8fa(0x142)]());return this['tests'][_0x1b4476]=_0x4b9c65,_0x4b9c65;}return{};}static['setTestDetails'](_0x4aaf15,_0x5021e4){const _0x41f742=a55_0x33d050,_0x57217b=this['getFilePath'](_0x4aaf15);if(_0x57217b&&fs['existsSync'](_0x57217b)){const _0x5a3438=JSON[_0x41f742(0x167)](fs[_0x41f742(0x129)](_0x57217b)[_0x41f742(0x142)]()),_0x53b7d6={..._0x5a3438,..._0x5021e4};this[_0x41f742(0x138)][_0x4aaf15]=_0x53b7d6;}else this[_0x41f742(0x138)][_0x4aaf15]=_0x5021e4;fs['writeFileSync'](_0x57217b,this[_0x41f742(0x138)][_0x4aaf15]);}static[a55_0x33d050(0x122)](_0x5e24c0){const _0x58ba2c=a55_0x33d050,_0xff1b73={};_0xff1b73[_0x58ba2c(0x162)]='Error\x20handling\x20trace\x20file\x20paths:\x20';const _0x2d8e0a=_0xff1b73;try{const _0x52778d=process[_0x58ba2c(0x149)],_0x41fa92=path[_0x58ba2c(0x16e)](TestDetails[_0x58ba2c(0x131)](),_0x52778d+'_traceZipPaths.json');let _0x5a190f=[];_0x41fa92&&fs['existsSync'](_0x41fa92)&&(_0x5a190f=JSON[_0x58ba2c(0x167)](fs['readFileSync'](_0x41fa92)[_0x58ba2c(0x142)]())),!_0x5a190f['some'](_0x559768=>_0x559768[_0x58ba2c(0x13a)]===_0x5e24c0['filePath'])&&(_0x5a190f[_0x58ba2c(0x15e)](_0x5e24c0),fs[_0x58ba2c(0x12b)](_0x41fa92,JSON[_0x58ba2c(0x118)](_0x5a190f)));}catch(_0x2ddcc5){logger['error'](_0x2d8e0a['ekDSJ'],_0x2ddcc5);}}static['getTraceFilePaths'](){const _0x5a7a1b=a55_0x33d050,_0x49f9f7={};_0x49f9f7[_0x5a7a1b(0x15c)]=_0x5a7a1b(0x152),_0x49f9f7[_0x5a7a1b(0x151)]=_0x5a7a1b(0x117);const _0x46f6ac=_0x49f9f7,_0x22d1da=[];try{const _0xd0622=TestDetails['getTraceZipDir']();if(_0xd0622&&!fs['existsSync'](_0xd0622))return _0x22d1da;const _0x435593=fs[_0x5a7a1b(0x172)](_0xd0622);_0x435593['forEach'](_0x59184c=>{const _0x11ca64=_0x5a7a1b;if(_0x59184c&&_0x59184c[_0x11ca64(0x165)](_0x46f6ac[_0x11ca64(0x15c)])){const _0x2c1b7d=JSON[_0x11ca64(0x167)](fs[_0x11ca64(0x129)](path[_0x11ca64(0x16e)](_0xd0622,_0x59184c))['toString']());_0x22d1da['push'](..._0x2c1b7d);}});}catch(_0x5eaba8){logger['error'](util['format'](_0x46f6ac[_0x5a7a1b(0x151)],_0x5eaba8));}const _0x365847={};return _0x22d1da[_0x5a7a1b(0x168)](_0x572308=>{_0x365847[_0x572308['filePath']]=_0x572308;}),Object[_0x5a7a1b(0x15d)](_0x365847);}static['appendToTracePaths'](_0xe53b19,_0x1e973c){const _0xf3d440=a55_0x33d050,_0x3adc55={};_0x3adc55['aXgfL']='.browserstack',_0x3adc55['MNaIm']='utf8';const _0x320c8b=_0x3adc55;try{const _0x5a1188=path[_0xf3d440(0x16e)](helper['homedir'](),_0x320c8b[_0xf3d440(0x16c)]);if(!fs[_0xf3d440(0x15f)](_0x5a1188)){const _0x5cbada={};_0x5cbada[_0xf3d440(0x130)]=!![],fs['mkdirSync'](_0x5a1188,_0x5cbada);}fs[_0xf3d440(0x171)](path[_0xf3d440(0x16e)](_0x5a1188,_0xf3d440(0x12a)+_0x1e973c+_0xf3d440(0x13f)),_0xe53b19+'\x0a',_0x320c8b['MNaIm']);}catch(_0x13f062){console[_0xf3d440(0x14d)](_0xf3d440(0x141)+_0x13f062[_0xf3d440(0x124)]);}}}module[a55_0x33d050(0x163)]=TestDetails;
|
|
1
|
+
function a55_0x1335(){const _0x106bb2=['GFGnu','pid','19265pqTqPG','tests','recursive','_integrations.json','../../../helpers/logger','testId','TtHgg','WkBrN','default','getAccessibilityPlatformValidation','Error\x20reading\x20trace\x20file\x20paths:\x20%s','getTestRunIdFromTestInfo','getProjectIdFromTestInfo','rmSync','setTestDetails','traceZipPaths','getDirPath','mkdirSync','uuid','_test','PtqAK','4151229DcdObP','getTestIdFromTestInfo','error','wcQGY','46347kNrfgC','aKaXk','BEger','shutdown','message','trace_','push','Error\x20writing\x20trace\x20file:\x20','.json','addTraceFilePath','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','EDNsb','7871418KKVYSl','debug','join','Error\x20handling\x20trace\x20file\x20paths:\x20','__projectId','utf8','winstonLogger','appendToTracePaths','parse','MVKAx','setIntegrations','project','getFilePath','appendFileSync','env','getIntegrations','.txt','IHYpW','mDCXh','jIRuk','readdirSync','format','4ozDqgV','IZRMK','bfJnE','sKeFs','43528750MiZRrb','readFileSync','getStoreDirName','filePath','sfYnN','_platformDetails.json','HfHKj','toString','1816tdHcIe','util','BRPjk','stringify','8EqPRzY','EqTxI','_traceZipPaths.json','BS_TESTOPS_BUILD_HASHED_ID','getTraceZipDir','5348125xdmPDT','7860933PrZjmt','../../../helpers/helper','getStoreDirPath','some','endsWith','VEZYb','fbzls','ePNSA','getTraceFilePaths','kkIGH','LTpDW','writeFileSync','existsSync','values','path'];a55_0x1335=function(){return _0x106bb2;};return a55_0x1335();}const a55_0xfa9499=a55_0x2040;function a55_0x2040(_0x2f0570,_0x5c5696){const _0x133531=a55_0x1335();return a55_0x2040=function(_0x204038,_0xc5b0f7){_0x204038=_0x204038-0x8e;let _0x5828dd=_0x133531[_0x204038];return _0x5828dd;},a55_0x2040(_0x2f0570,_0x5c5696);}(function(_0x584273,_0x47cf65){const _0x32611e=a55_0x2040,_0x3f8b0b=_0x584273();while(!![]){try{const _0x29abe9=parseInt(_0x32611e(0xee))/0x1*(-parseInt(_0x32611e(0xd7))/0x2)+parseInt(_0x32611e(0xa1))/0x3*(-parseInt(_0x32611e(0xc7))/0x4)+-parseInt(_0x32611e(0xdc))/0x5+parseInt(_0x32611e(0xb1))/0x6+parseInt(_0x32611e(0xa5))/0x7*(-parseInt(_0x32611e(0xd3))/0x8)+-parseInt(_0x32611e(0xdd))/0x9+parseInt(_0x32611e(0xcb))/0xa;if(_0x29abe9===_0x47cf65)break;else _0x3f8b0b['push'](_0x3f8b0b['shift']());}catch(_0x5c27a7){_0x3f8b0b['push'](_0x3f8b0b['shift']());}}}(a55_0x1335,0xb90ba));const fs=require('fs'),path=require(a55_0xfa9499(0xeb)),{v4:uuidv4}=require(a55_0xfa9499(0x9e)),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require(a55_0xfa9499(0xde)),logger=require(a55_0xfa9499(0x90))[a55_0xfa9499(0xb7)],{getLogDir}=require(a55_0xfa9499(0x90)),util=require(a55_0xfa9499(0xd4)),helper=require('../../../helpers/helper');class TestDetails{static [a55_0xfa9499(0xef)]={};static['setup'](){const _0x166659=a55_0xfa9499;this[_0x166659(0xa8)]();const _0x142d91={};_0x142d91[_0x166659(0x8e)]=!![],fs['mkdirSync'](this[_0x166659(0x9c)](),_0x142d91);const _0xd75133={};_0xd75133['recursive']=!![],fs[_0x166659(0x9d)](this['getTraceZipDir'](),_0xd75133);}static['getStoreDirName'](){const _0x53f8d2=a55_0xfa9499,_0xb7256d={};_0xb7256d[_0x53f8d2(0xe4)]=function(_0x209040,_0x1806da){return _0x209040+_0x1806da;},_0xb7256d[_0x53f8d2(0xa6)]=function(_0x176451,_0x42a482){return _0x176451+_0x42a482;};const _0x369592=_0xb7256d;return _0x369592[_0x53f8d2(0xe4)](_0x369592[_0x53f8d2(0xa6)](TEMP_STORE_DIR_NAME,'-'),process[_0x53f8d2(0xbf)][_0x53f8d2(0xda)]);}static[a55_0xfa9499(0xdf)](){const _0x3fb90b=a55_0xfa9499,_0x4d92ea={};_0x4d92ea['mDCXh']=function(_0x37445f,_0x4013a7){return _0x37445f+_0x4013a7;},_0x4d92ea[_0x3fb90b(0xc8)]=function(_0x5cc1d4,_0x49e574){return _0x5cc1d4+_0x49e574;},_0x4d92ea[_0x3fb90b(0xc4)]=_0x3fb90b(0x94);const _0x235b27=_0x4d92ea;return path['join'](_0x235b27[_0x3fb90b(0xc3)](_0x235b27[_0x3fb90b(0xc8)](TEMP_STORE_DIR_NAME,'-'),process[_0x3fb90b(0xbf)][_0x3fb90b(0xda)]||_0x235b27['jIRuk']));}static[a55_0xfa9499(0xdb)](){const _0x37efef=a55_0xfa9499,_0x2c8cd3={};_0x2c8cd3['sfYnN']=_0x37efef(0x9b);const _0x501078=_0x2c8cd3;return path['join'](this[_0x37efef(0xdf)](),_0x501078[_0x37efef(0xcf)]);}static['getDirPath'](){const _0x32883f=a55_0xfa9499;return TestDetails[_0x32883f(0xcd)]();}static['getFilePath'](_0x3ecbb0){const _0x17052a=a55_0xfa9499,_0x810d85={};_0x810d85[_0x17052a(0xec)]=function(_0x5b9ffe,_0x58c6d5){return _0x5b9ffe+_0x58c6d5;},_0x810d85[_0x17052a(0x93)]=_0x17052a(0xad);const _0x5d6e30=_0x810d85;return path[_0x17052a(0xb3)](this[_0x17052a(0x9c)](),_0x5d6e30[_0x17052a(0xec)](_0x3ecbb0,_0x5d6e30['WkBrN']));}static[a55_0xfa9499(0x97)](_0x12012f){const _0x4b3d46=a55_0xfa9499,_0x3dcd34={};_0x3dcd34[_0x4b3d46(0xe6)]=function(_0x2323de,_0x3da533){return _0x2323de+_0x3da533;};const _0x28738d=_0x3dcd34;return _0x28738d[_0x4b3d46(0xe6)](_0x28738d[_0x4b3d46(0xe6)](this[_0x4b3d46(0xa2)](_0x12012f),'-'),_0x12012f['retry']);}static[a55_0xfa9499(0x98)](_0x5a36dd){const _0x5e759f=a55_0xfa9499,_0x5c1240={'DWzvo':function(_0x3b635c,_0x33674c,_0x16ffbc){return _0x3b635c(_0x33674c,_0x16ffbc);},'MVKAx':'_test','bfJnE':'_projectId','BEger':function(_0x5373fc,_0x1c1543,_0x2f986a){return _0x5373fc(_0x1c1543,_0x2f986a);},'sKeFs':_0x5e759f(0xbc),'HfHKj':_0x5e759f(0xb5)};return _0x5c1240['DWzvo'](nestedKeyValue,_0x5a36dd,[_0x5c1240[_0x5e759f(0xba)],_0x5c1240[_0x5e759f(0xc9)]])||_0x5c1240[_0x5e759f(0xa7)](nestedKeyValue,_0x5a36dd,[_0x5c1240[_0x5e759f(0xca)],_0x5c1240[_0x5e759f(0xd1)]]);}static[a55_0xfa9499(0xa2)](_0x59be21){const _0x3d6326=a55_0xfa9499,_0x461e7a={'quXhi':function(_0x491dca,_0x7f9f51,_0x27ccdb){return _0x491dca(_0x7f9f51,_0x27ccdb);},'LTpDW':_0x3d6326(0x9f)};return _0x461e7a['quXhi'](nestedKeyValue,_0x59be21,[_0x461e7a[_0x3d6326(0xe7)],'id'])||_0x59be21[_0x3d6326(0x91)];}static['getTestUUID'](_0x1219bb){const _0x20589e=a55_0xfa9499,_0x5a4bbe={'EDNsb':function(_0xde1f59,_0x13a4d9){return _0xde1f59===_0x13a4d9;},'EqTxI':'string','fbzls':function(_0x5d1e81){return _0x5d1e81();}};if(this[_0x20589e(0xef)][_0x1219bb]&&_0x5a4bbe[_0x20589e(0xb0)](typeof this[_0x20589e(0xef)][_0x1219bb][_0x20589e(0x9e)],_0x5a4bbe[_0x20589e(0xd8)]))return this['tests'][_0x1219bb]['uuid'];const _0x6a79b7=this[_0x20589e(0xbd)](_0x1219bb);if(_0x6a79b7&&fs[_0x20589e(0xe9)](_0x6a79b7)){const _0x5ca9e3=JSON[_0x20589e(0xb9)](fs[_0x20589e(0xcc)](_0x6a79b7)[_0x20589e(0xd2)]());return this['tests'][_0x1219bb]=_0x5ca9e3,this['tests'][_0x1219bb][_0x20589e(0x9e)];}return this[_0x20589e(0xef)][_0x1219bb]={'uuid':_0x5a4bbe[_0x20589e(0xe3)](uuidv4)},fs[_0x20589e(0xe8)](_0x6a79b7,JSON[_0x20589e(0xd6)](this['tests'][_0x1219bb])),this[_0x20589e(0xef)][_0x1219bb][_0x20589e(0x9e)];}static[a55_0xfa9499(0x95)](_0x27c84b){const _0x559b19=a55_0xfa9499,_0x3d8d85=path['join'](this[_0x559b19(0x9c)](),_0x27c84b+_0x559b19(0xd0));if(_0x3d8d85&&fs['existsSync'](_0x3d8d85))return fs[_0x559b19(0xcc)](_0x3d8d85)[_0x559b19(0xd2)]();}static['setAccessibilityPlatformValidation'](_0x1ba48c,_0x423dd2){const _0xdcfc11=a55_0xfa9499,_0x18a81b=path[_0xdcfc11(0xb3)](this[_0xdcfc11(0x9c)](),_0x423dd2+_0xdcfc11(0xd0));fs['writeFileSync'](_0x18a81b,_0x1ba48c['toString']());}static[a55_0xfa9499(0xc0)](_0x4bed15){const _0x5dd504=a55_0xfa9499,_0x23c2c0=path[_0x5dd504(0xb3)](this[_0x5dd504(0x9c)](),_0x4bed15+_0x5dd504(0x8f));if(_0x23c2c0&&fs['existsSync'](_0x23c2c0))try{return JSON['parse'](fs[_0x5dd504(0xcc)](_0x23c2c0)['toString']());}catch(_0x1235a8){return logger[_0x5dd504(0xb2)](_0x5dd504(0xaf)+_0x4bed15+':\x20'+(_0x1235a8&&_0x1235a8[_0x5dd504(0xa9)])),null;}return null;}static[a55_0xfa9499(0xbb)](_0x43f7bf,_0x57154c){const _0x373755=a55_0xfa9499,_0x515b65={};_0x515b65[_0x373755(0xe2)]=function(_0x48f849,_0x314eb4){return _0x48f849||_0x314eb4;};const _0x5e2132=_0x515b65;if(_0x5e2132[_0x373755(0xe2)](!_0x43f7bf,!_0x57154c))return;try{const _0x5661d2=this[_0x373755(0x9c)](),_0x304ab5={};_0x304ab5['recursive']=!![],fs[_0x373755(0x9d)](_0x5661d2,_0x304ab5);const _0x307691=path[_0x373755(0xb3)](_0x5661d2,_0x43f7bf+_0x373755(0x8f));fs[_0x373755(0xe8)](_0x307691,JSON[_0x373755(0xd6)](_0x57154c));}catch(_0x3ca865){logger[_0x373755(0xb2)]('Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20'+_0x43f7bf+':\x20'+(_0x3ca865&&_0x3ca865['message']));}}static['shutdown'](){const _0x3b2460=a55_0xfa9499,_0x526d33={};_0x526d33[_0x3b2460(0x8e)]=!![],_0x526d33['force']=!![],fs[_0x3b2460(0x99)](this[_0x3b2460(0x9c)](),_0x526d33);}static['getTestDetails'](_0x49d445){const _0x2d924e=a55_0xfa9499;if(this[_0x2d924e(0xef)][_0x49d445])return this['tests'][_0x49d445];const _0x5d1d6d=this[_0x2d924e(0xbd)](_0x49d445);if(_0x5d1d6d&&fs[_0x2d924e(0xe9)](_0x5d1d6d)){const _0x5e721e=JSON['parse'](fs['readFileSync'](_0x5d1d6d)['toString']());return this[_0x2d924e(0xef)][_0x49d445]=_0x5e721e,_0x5e721e;}return{};}static[a55_0xfa9499(0x9a)](_0x3e0084,_0x49e2a0){const _0x1ed838=a55_0xfa9499,_0x49dd06=this['getFilePath'](_0x3e0084);if(_0x49dd06&&fs['existsSync'](_0x49dd06)){const _0x5eede7=JSON['parse'](fs['readFileSync'](_0x49dd06)[_0x1ed838(0xd2)]()),_0x376a23={..._0x5eede7,..._0x49e2a0};this[_0x1ed838(0xef)][_0x3e0084]=_0x376a23;}else this[_0x1ed838(0xef)][_0x3e0084]=_0x49e2a0;fs['writeFileSync'](_0x49dd06,this[_0x1ed838(0xef)][_0x3e0084]);}static[a55_0xfa9499(0xae)](_0x34d2ec){const _0x4997f2=a55_0xfa9499,_0x3efe70={};_0x3efe70[_0x4997f2(0x92)]=_0x4997f2(0xb4);const _0x11e905=_0x3efe70;try{const _0x52ef80=process[_0x4997f2(0xed)],_0x5c03df=path[_0x4997f2(0xb3)](TestDetails['getTraceZipDir'](),_0x52ef80+_0x4997f2(0xd9));let _0x1252a8=[];_0x5c03df&&fs[_0x4997f2(0xe9)](_0x5c03df)&&(_0x1252a8=JSON['parse'](fs[_0x4997f2(0xcc)](_0x5c03df)['toString']())),!_0x1252a8[_0x4997f2(0xe0)](_0x594ef3=>_0x594ef3[_0x4997f2(0xce)]===_0x34d2ec['filePath'])&&(_0x1252a8['push'](_0x34d2ec),fs[_0x4997f2(0xe8)](_0x5c03df,JSON[_0x4997f2(0xd6)](_0x1252a8)));}catch(_0x493bbc){logger['error'](_0x11e905[_0x4997f2(0x92)],_0x493bbc);}}static[a55_0xfa9499(0xe5)](){const _0x5b12df=a55_0xfa9499,_0x24293a={};_0x24293a[_0x5b12df(0xa4)]=_0x5b12df(0xd9),_0x24293a[_0x5b12df(0xc2)]=_0x5b12df(0x96);const _0x2e4f34=_0x24293a,_0x40f2a3=[];try{const _0x227db1=TestDetails[_0x5b12df(0xdb)]();if(_0x227db1&&!fs[_0x5b12df(0xe9)](_0x227db1))return _0x40f2a3;const _0x7f3049=fs[_0x5b12df(0xc5)](_0x227db1);_0x7f3049['forEach'](_0x19f14a=>{const _0x4db5f4=_0x5b12df;if(_0x19f14a&&_0x19f14a[_0x4db5f4(0xe1)](_0x2e4f34[_0x4db5f4(0xa4)])){const _0x355dbe=JSON[_0x4db5f4(0xb9)](fs[_0x4db5f4(0xcc)](path[_0x4db5f4(0xb3)](_0x227db1,_0x19f14a))[_0x4db5f4(0xd2)]());_0x40f2a3[_0x4db5f4(0xab)](..._0x355dbe);}});}catch(_0x39f0ae){logger[_0x5b12df(0xa3)](util[_0x5b12df(0xc6)](_0x2e4f34['IHYpW'],_0x39f0ae));}const _0x5a1f92={};return _0x40f2a3['forEach'](_0x15f7d6=>{const _0x8debc4=_0x5b12df;_0x5a1f92[_0x15f7d6[_0x8debc4(0xce)]]=_0x15f7d6;}),Object[_0x5b12df(0xea)](_0x5a1f92);}static[a55_0xfa9499(0xb8)](_0x5893a4,_0x1841bd){const _0x2b4bff=a55_0xfa9499,_0x4bdc60={};_0x4bdc60['PtqAK']='.browserstack',_0x4bdc60[_0x2b4bff(0xd5)]=_0x2b4bff(0xb6);const _0xca04d0=_0x4bdc60;try{const _0x219293=path['join'](helper['homedir'](),_0xca04d0[_0x2b4bff(0xa0)]);if(!fs[_0x2b4bff(0xe9)](_0x219293)){const _0x3614a4={};_0x3614a4['recursive']=!![],fs['mkdirSync'](_0x219293,_0x3614a4);}fs[_0x2b4bff(0xbe)](path['join'](_0x219293,_0x2b4bff(0xaa)+_0x1841bd+_0x2b4bff(0xc1)),_0x5893a4+'\x0a',_0xca04d0['BRPjk']);}catch(_0x37033f){console[_0x2b4bff(0xa3)](_0x2b4bff(0xac)+_0x37033f[_0x2b4bff(0xa9)]);}}}module['exports']=TestDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a56_0xef5d(_0x5d6ae9,_0xffb141){const _0x30cb8b=a56_0x30cb();return a56_0xef5d=function(_0xef5d09,_0x5a51fa){_0xef5d09=_0xef5d09-0xc2;let _0x42982c=_0x30cb8b[_0xef5d09];return _0x42982c;},a56_0xef5d(_0x5d6ae9,_0xffb141);}const a56_0x4f5722=a56_0xef5d;(function(_0x3c7aa4,_0x3845ba){const _0x52ae78=a56_0xef5d,_0x2d5dc6=_0x3c7aa4();while(!![]){try{const _0x22ebe7=-parseInt(_0x52ae78(0x139))/0x1+parseInt(_0x52ae78(0x184))/0x2*(parseInt(_0x52ae78(0x114))/0x3)+-parseInt(_0x52ae78(0x117))/0x4*(-parseInt(_0x52ae78(0x143))/0x5)+parseInt(_0x52ae78(0xda))/0x6+-parseInt(_0x52ae78(0xdb))/0x7*(parseInt(_0x52ae78(0x18b))/0x8)+parseInt(_0x52ae78(0xf9))/0x9*(parseInt(_0x52ae78(0x17b))/0xa)+-parseInt(_0x52ae78(0xd3))/0xb;if(_0x22ebe7===_0x3845ba)break;else _0x2d5dc6['push'](_0x2d5dc6['shift']());}catch(_0x12cf11){_0x2d5dc6['push'](_0x2d5dc6['shift']());}}}(a56_0x30cb,0x8cce3));const path=require(a56_0x4f5722(0x10b)),url=require(a56_0x4f5722(0xe9)),util=require(a56_0x4f5722(0x178)),helper=require(a56_0x4f5722(0x179)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a56_0x4f5722(0x179)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a56_0x4f5722(0x191)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),logger=require('../../helpers/logger')['winstonLogger'],scripts=require(a56_0x4f5722(0xd5)),{browserStackExecuteDriver}=require(a56_0x4f5722(0x12d)),AccessibilityHelper=require(a56_0x4f5722(0x17f)),constants=require(a56_0x4f5722(0x18f)),BrowserstackCLI=require(a56_0x4f5722(0x157)),AutomationFrameworkState=require(a56_0x4f5722(0xc6)),HookState=require(a56_0x4f5722(0x11e)),{performScanWithRetry}=require(a56_0x4f5722(0x13d)),ClientTroubleShootingService=require(a56_0x4f5722(0x136)),getBrowserNameFromChannel=_0x676e7a=>{const _0x4be523=a56_0x4f5722,_0x514b67={};_0x514b67[_0x4be523(0x151)]=_0x4be523(0x13e),_0x514b67[_0x4be523(0x129)]=_0x4be523(0x160),_0x514b67[_0x4be523(0x14b)]=_0x4be523(0xc3),_0x514b67[_0x4be523(0x171)]=_0x4be523(0x14d),_0x514b67['UxyBJ']=function(_0x2682c2,_0x465609){return _0x2682c2===_0x465609;},_0x514b67[_0x4be523(0x18c)]='webkit',_0x514b67['mYvPd']=_0x4be523(0x183),_0x514b67['SXZsB']=_0x4be523(0x103);const _0x6aab4e=_0x514b67,_0x34982=_0x6aab4e[_0x4be523(0x151)][_0x4be523(0xeb)]('|');let _0x7b6d10=0x0;while(!![]){switch(_0x34982[_0x7b6d10++]){case'0':if(_0x676e7a[_0x4be523(0x15d)](_0x6aab4e[_0x4be523(0x129)]))return _0x6aab4e[_0x4be523(0x129)];continue;case'1':if(_0x676e7a[_0x4be523(0x15d)](_0x6aab4e[_0x4be523(0x14b)]))return _0x6aab4e[_0x4be523(0x14b)];continue;case'2':if(_0x676e7a['includes'](_0x6aab4e['obNEU']))return _0x6aab4e[_0x4be523(0x171)];continue;case'3':if(_0x6aab4e['UxyBJ'](_0x676e7a,_0x6aab4e[_0x4be523(0x18c)]))return _0x6aab4e[_0x4be523(0x18c)];continue;case'4':if(_0x676e7a[_0x4be523(0x15d)](_0x6aab4e[_0x4be523(0xf5)]))return _0x6aab4e[_0x4be523(0xf5)];continue;case'5':if(_0x676e7a['includes'](_0x6aab4e['SXZsB']))return _0x6aab4e['SXZsB'];continue;}break;}},getBrowserFromWSEndpoint=_0x355aa7=>{const _0x154710=a56_0x4f5722,_0x3fd4b7={'raYvK':_0x154710(0xc3),'BYCKS':function(_0x486f01,_0x21e92f){return _0x486f01(_0x21e92f);}};try{const _0x5a53ad=url[_0x154710(0x108)](_0x355aa7),_0x3f8a09=new URLSearchParams(_0x5a53ad[_0x154710(0x10c)]),_0x352800=Object[_0x154710(0xd0)](_0x3f8a09[_0x154710(0x14e)]()),_0x58c7f2=JSON['parse'](_0x352800[_0x154710(0x180)]);if(_0x58c7f2&&(_0x58c7f2[_0x154710(0x13f)]||_0x58c7f2['browserName']))return _0x58c7f2[_0x154710(0x13f)]||_0x58c7f2[_0x154710(0x14c)];return _0x3fd4b7['raYvK'];}catch(_0x274b8c){_0x3fd4b7[_0x154710(0x15b)](debug,_0x154710(0xe7)+_0x274b8c[_0x154710(0x156)]());}},getCloudProviderFromWsEndpoint=_0x2b3804=>{const _0x478bcd=a56_0x4f5722,_0x326870={};_0x326870[_0x478bcd(0xd9)]=_0x478bcd(0x13b),_0x326870[_0x478bcd(0x15e)]=_0x478bcd(0x127);const _0x873527=_0x326870;if(_0x2b3804[_0x478bcd(0x15d)](constants['BSTACK_URL'])||_0x2b3804['includes'](constants[_0x478bcd(0x14f)]))return _0x873527[_0x478bcd(0xd9)];return _0x873527['eWxwP'];},a56_0x6b6f0={};a56_0x6b6f0[a56_0x4f5722(0x11f)]=undefined,a56_0x6b6f0['bsSessionId']=undefined,a56_0x6b6f0[a56_0x4f5722(0x13f)]=undefined,a56_0x6b6f0[a56_0x4f5722(0x131)]=undefined,a56_0x6b6f0[a56_0x4f5722(0x165)]=undefined,a56_0x6b6f0[a56_0x4f5722(0x17d)]=undefined,a56_0x6b6f0[a56_0x4f5722(0x104)]=undefined,a56_0x6b6f0[a56_0x4f5722(0xd8)]={};class PlaywrightSessionDetails{static [a56_0x4f5722(0xfa)]=a56_0x6b6f0;constructor(){const _0x4be9f0=a56_0x4f5722,_0x13fc06={};_0x13fc06[_0x4be9f0(0x111)]=_0x4be9f0(0x11b);const _0x18914c=_0x13fc06;throw new Error(_0x18914c[_0x4be9f0(0x111)]);}static [a56_0x4f5722(0xdd)]=null;static[a56_0x4f5722(0x164)](_0x5e75c7,_0x3b57db,_0x206fe8=null){const _0x4361ef=a56_0x4f5722,_0x3bde8e={'IUTsR':function(_0x149c2a,_0x2e65b0){return _0x149c2a===_0x2e65b0;},'wkTaD':'function','dBOjI':_0x4361ef(0xfd),'UcdHU':_0x4361ef(0xc5),'HAmSQ':_0x4361ef(0x124),'ePhAM':function(_0x3dd158,_0xc270ac,_0x23d56b){return _0x3dd158(_0xc270ac,_0x23d56b);},'gIYJa':_0x4361ef(0x112),'Bcxct':_0x4361ef(0x188),'PfRjX':function(_0x4f31d5,_0x21460c,_0x1856e4){return _0x4f31d5(_0x21460c,_0x1856e4);},'BhqjH':'project','PoGmS':_0x4361ef(0xff),'daWtX':_0x4361ef(0x107),'fpJyZ':function(_0x25542c,_0x1a1a54){return _0x25542c(_0x1a1a54);},'fQhIy':function(_0x195bc2,_0x7698d8){return _0x195bc2===_0x7698d8;},'oanVy':_0x4361ef(0x13b),'SkRTP':_0x4361ef(0xc2),'nuEZd':_0x4361ef(0xf8),'klecJ':function(_0x59286c,_0x2771af){return _0x59286c(_0x2771af);},'iklWG':function(_0x3314a7){return _0x3314a7();},'IAdyW':function(_0x14393b,_0x304426){return _0x14393b&&_0x304426;},'oJCjx':function(_0x1776a7){return _0x1776a7();},'PCLFz':function(_0x495539,_0xa17308){return _0x495539(_0xa17308);},'SbQcp':function(_0x232688,_0x472e41){return _0x232688+_0x472e41;},'DNWYF':_0x4361ef(0x18e),'OAxQr':_0x4361ef(0x164)},_0x153fd8=this;return _0x3bde8e[_0x4361ef(0x12e)](o11yErrorHandler,async function _0x22bb9d(_0x1b1b9f,_0x128274,_0x4dc410=null){const _0x478531=_0x4361ef;let _0x13c4b6=_0x1b1b9f[_0x478531(0x144)],_0xee44ab=null;_0x1b1b9f&&_0x3bde8e[_0x478531(0x122)](typeof _0x1b1b9f['version'],_0x3bde8e['wkTaD'])?_0xee44ab=_0x1b1b9f[_0x478531(0xd1)]():logger[_0x478531(0xea)](_0x3bde8e[_0x478531(0xd2)]);let _0x5a4479=null;_0x1b1b9f&&_0x3bde8e[_0x478531(0x122)](typeof _0x1b1b9f[_0x478531(0x125)],_0x3bde8e['wkTaD'])?_0x5a4479=_0x1b1b9f['model']():logger['debug'](_0x3bde8e['UcdHU']);let _0x767d0d=null,_0x32b6ff=null,_0x16b243=null,_0x3f8282=_0x3bde8e[_0x478531(0x173)];if(_0x1b1b9f['_connection']['isRemote']()||global[_0x478531(0x155)]&&!process[_0x478531(0x146)][_0x478531(0xca)]){let _0x4371ff=null;_0x3bde8e[_0x478531(0x12e)](nestedKeyValue,_0x1b1b9f,[_0x3bde8e[_0x478531(0x134)],_0x3bde8e[_0x478531(0x166)]])?_0x4371ff=_0x1b1b9f[_0x478531(0x112)][_0x478531(0x188)]:_0x4371ff=_0x3bde8e[_0x478531(0x17a)](nestedKeyValue,_0x128274,[_0x3bde8e[_0x478531(0xed)],_0x3bde8e[_0x478531(0x113)],_0x3bde8e[_0x478531(0xc8)]]);const _0x4fbb12=_0x4dc410||_0x4371ff&&_0x4371ff[_0x478531(0x154)];if(_0x4fbb12){_0x3f8282=_0x3bde8e[_0x478531(0xe8)](getCloudProviderFromWsEndpoint,_0x4fbb12);if(_0x3bde8e[_0x478531(0xe6)](_0x3f8282,_0x3bde8e[_0x478531(0x15a)]))_0x16b243=constants[_0x478531(0x137)][_0x478531(0x16a)](_0x4fbb12)?_0x3bde8e['SkRTP']:_0x3bde8e[_0x478531(0x105)],_0x13c4b6=_0x3bde8e[_0x478531(0xf0)](getBrowserFromWSEndpoint,_0x4fbb12)||_0x13c4b6,_0x767d0d=_0x153fd8[_0x478531(0xfa)][_0x478531(0x165)],_0x32b6ff=_0x153fd8[_0x478531(0xfa)]['platform_version'];else{const _0x1ec281=await _0x3bde8e[_0x478531(0x110)](getPlatformDetails);_0x767d0d=_0x1ec281[_0x478531(0x185)],_0x32b6ff=_0x1ec281[_0x478531(0x172)];}}if(_0x3bde8e[_0x478531(0xef)](!_0x767d0d,!_0x32b6ff)&&!_0x3bde8e['oJCjx'](isBrowserstackInfra)){const _0x30514e=await _0x3bde8e['iklWG'](getPlatformDetails);_0x767d0d=_0x30514e[_0x478531(0x185)],_0x32b6ff=_0x30514e['platformVersion'];}}else{_0x128274&&_0x128274[_0x478531(0x132)][_0x478531(0xff)][_0x478531(0xd6)]?_0x13c4b6=_0x3bde8e[_0x478531(0x163)](getBrowserNameFromChannel,_0x128274[_0x478531(0x132)][_0x478531(0xff)][_0x478531(0xd6)]):_0x13c4b6=_0x3bde8e[_0x478531(0x123)](_0x3bde8e[_0x478531(0xcf)],_0x13c4b6[_0x478531(0x145)]());const _0x29267f=await _0x3bde8e[_0x478531(0x110)](getPlatformDetails);_0x767d0d=_0x29267f[_0x478531(0x185)],_0x32b6ff=_0x29267f[_0x478531(0x172)];}const _0x3a1aac={};_0x3a1aac[_0x478531(0x13f)]=_0x13c4b6,_0x3a1aac[_0x478531(0x131)]=_0xee44ab,_0x3a1aac['capabilities']={},_0x3a1aac[_0x478531(0x165)]=_0x767d0d,_0x3a1aac[_0x478531(0x17d)]=_0x32b6ff,_0x3a1aac['product']=_0x16b243;const _0x17f715=_0x3a1aac;_0x5a4479&&(_0x17f715['capabilities'][_0x478531(0xe2)]=_0x5a4479);const _0x1a0a1a={};_0x1a0a1a['cloudProvider']=_0x3f8282,_0x153fd8['currentSessionDetails']=Object[_0x478531(0xe4)]({},_0x153fd8[_0x478531(0xfa)],_0x1a0a1a,_0x17f715);},_0x3bde8e[_0x4361ef(0xf7)])(_0x5e75c7,_0x3b57db,_0x206fe8);}static[a56_0x4f5722(0xc9)](){const _0x2dbb72=a56_0x4f5722;this[_0x2dbb72(0x102)](),this[_0x2dbb72(0x16b)]();}static[a56_0x4f5722(0x102)](){const _0x24186d=a56_0x4f5722,_0x35e548={'YonhK':function(_0x38268c,_0x5b813a,_0x49e7eb){return _0x38268c(_0x5b813a,_0x49e7eb);},'amzcE':'currentTest','nDsDR':_0x24186d(0xf1),'ZPTtt':_0x24186d(0x115),'OMnHl':function(_0x5cb421,_0x1ca1b3,_0x5996a5){return _0x5cb421(_0x1ca1b3,_0x5996a5);},'PojvK':_0x24186d(0xdc),'cqmJi':'pwPage','BNRnW':function(_0x564a19,_0x4f459a){return _0x564a19===_0x4f459a;},'IFMzI':_0x24186d(0xe0),'XSApq':function(_0x44381b,_0x52f34c,_0x574aae,_0x127bfd){return _0x44381b(_0x52f34c,_0x574aae,_0x127bfd);},'PmYcj':function(_0x4f47ed,_0x33b31c){return _0x4f47ed||_0x33b31c;},'amNnc':function(_0x113bb7,_0x533ada){return _0x113bb7(_0x533ada);},'AbbDM':'Not\x20able\x20to\x20resolve\x20Connection\x20class','hbjGk':function(_0x56f26a,_0x2fe347){return _0x56f26a!=_0x2fe347;},'UoBYu':function(_0x5374a5){return _0x5374a5();},'RCwWB':'sendMessageToServer','odtzf':function(_0x5e0f55,_0x1f3d93){return _0x5e0f55(_0x1f3d93);},'wSgrd':_0x24186d(0x100),'tPVVo':_0x24186d(0x17c),'jGCRo':function(_0xca6183,_0x4b38e5){return _0xca6183(_0x4b38e5);}},_0x175d4c=this;!this[_0x24186d(0xf3)]&&(this['Connection']=helper[_0x24186d(0x149)](),!this[_0x24186d(0xf3)]&&_0x35e548[_0x24186d(0x150)](debug,_0x35e548[_0x24186d(0x126)]));const _0x3fd538=this[_0x24186d(0xf3)];if(_0x35e548[_0x24186d(0x182)](_0x3fd538,null)&&_0x3fd538[_0x24186d(0x141)][_0x24186d(0x190)])return;try{if(_0x35e548[_0x24186d(0x182)](_0x3fd538,null)){const _0x4cea3a=_0x3fd538[_0x24186d(0x141)][_0x24186d(0x100)],_0x33cfcc=_0x3fd538[_0x24186d(0x141)][_0x24186d(0x135)];_0x35e548[_0x24186d(0x148)](isAccessibilityAutomationSession)&&Object[_0x24186d(0x169)](_0x3fd538[_0x24186d(0x141)],_0x35e548[_0x24186d(0xec)],{'get':function(){const _0x291200=_0x24186d,_0x4bb3ed={'yxxeG':function(_0xf3d9db,_0x3ad9e9,_0x1ef4a9){const _0x569cbc=a56_0xef5d;return _0x35e548[_0x569cbc(0x153)](_0xf3d9db,_0x3ad9e9,_0x1ef4a9);},'OzhDf':_0x35e548[_0x291200(0x16d)],'YpfPX':_0x35e548[_0x291200(0x176)],'jBWBB':_0x35e548[_0x291200(0xfc)],'JfylS':function(_0x4955f5,_0x1598f3,_0x569d88){return _0x35e548['OMnHl'](_0x4955f5,_0x1598f3,_0x569d88);},'ekDyO':_0x35e548[_0x291200(0xe5)],'zcjlM':_0x35e548[_0x291200(0x10d)],'tkPTZ':function(_0x514e74,_0x3a8b5f){const _0x558815=_0x291200;return _0x35e548[_0x558815(0x109)](_0x514e74,_0x3a8b5f);},'lRjyA':_0x35e548[_0x291200(0x11d)],'xVXqJ':function(_0x3a65e2,_0x5d0b3b,_0x5eb5e1,_0x1892ec){const _0x3ac0f7=_0x291200;return _0x35e548[_0x3ac0f7(0x186)](_0x3a65e2,_0x5d0b3b,_0x5eb5e1,_0x1892ec);}};return async function(){const _0x4738b7=_0x291200;try{if(!global[_0x4738b7(0x15f)]&&global[_0x4738b7(0x155)]&&_0x4bb3ed[_0x4738b7(0xc4)](nestedKeyValue,global['__workerDetails'],[_0x4bb3ed['OzhDf'],_0x4bb3ed[_0x4738b7(0x133)],_0x4bb3ed['jBWBB']])&&_0x4bb3ed['yxxeG'](shouldScanTestForAccessibility,global['__workerDetails'][_0x4738b7(0x130)][_0x4738b7(0xf1)][_0x4738b7(0x115)],!![])&&scripts[_0x4738b7(0x12a)](arguments[0x1])){logger[_0x4738b7(0xea)](_0x4738b7(0x13a)+arguments[0x1]),global['bstackPerformA11yScan']=!![];const _0x3ccea9=_0x4bb3ed[_0x4738b7(0xf6)](nestedKeyValue,global,[_0x4bb3ed[_0x4738b7(0x12c)],_0x4bb3ed[_0x4738b7(0x18d)]]);_0x3ccea9&&logger[_0x4738b7(0x16c)](_0x4738b7(0x177)+util[_0x4738b7(0xcd)](await _0x4bb3ed[_0x4738b7(0xc4)](performScanWithRetry,_0x3ccea9,arguments[0x1]))),_0x4bb3ed[_0x4738b7(0x181)](arguments[0x0][_0x4738b7(0x101)],_0x4bb3ed[_0x4738b7(0x128)])&&global[_0x4738b7(0xfe)]&&logger[_0x4738b7(0x16c)](_0x4738b7(0x10f)+util[_0x4738b7(0xcd)](await _0x4bb3ed['xVXqJ'](performScanWithRetry,global[_0x4738b7(0xfe)],arguments[0x1],scripts[_0x4738b7(0xfb)])));}}catch(_0x4213de){logger[_0x4738b7(0xea)](_0x4738b7(0x17e)+util[_0x4738b7(0xcd)](_0x4213de));}return global['bstackPerformA11yScan']=![],_0x33cfcc[_0x4738b7(0xde)](this,arguments);};}}),!_0x35e548[_0x24186d(0x15c)](isFalse,process[_0x24186d(0x146)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&Object[_0x24186d(0x169)](_0x3fd538[_0x24186d(0x141)],_0x35e548[_0x24186d(0x147)],{'get':function(){return async function _0x31c2f8(_0x13622f){const _0x4743b8=a56_0xef5d;if(BrowserstackCLI[_0x4743b8(0x12f)]()['isRunning']()){const _0x1e5e0d={};_0x1e5e0d[_0x4743b8(0xce)]=_0x13622f,await BrowserstackCLI[_0x4743b8(0x12f)]()[_0x4743b8(0x106)]()['trackEvent'](AutomationFrameworkState[_0x4743b8(0xe3)],HookState[_0x4743b8(0xcb)],_0x1e5e0d);}else{const _0x1dc174=_0x13622f&&_0x13622f[_0x4743b8(0xee)]&&_0x13622f[_0x4743b8(0xee)][_0x4743b8(0x174)];if(_0x1dc174){const _0x8369b3=_0x1dc174['sessionId'],_0x2e477e=_0x1dc174[_0x4743b8(0x167)];_0x35e548[_0x4743b8(0xe1)](!_0x8369b3,!_0x2e477e)&&await ClientTroubleShootingService[_0x4743b8(0x140)](),_0x2e477e&&(_0x35e548['amNnc'](debug,_0x4743b8(0x11c)+_0x2e477e[_0x4743b8(0x156)]()),_0x175d4c[_0x4743b8(0xfa)][_0x4743b8(0x165)]=_0x2e477e[_0x4743b8(0x185)],_0x175d4c[_0x4743b8(0xfa)][_0x4743b8(0x17d)]=_0x2e477e[_0x4743b8(0x172)]),_0x8369b3&&(_0x35e548['amNnc'](debug,_0x4743b8(0x120)+_0x8369b3),_0x175d4c[_0x4743b8(0xfa)][_0x4743b8(0xd4)]=_0x8369b3);}}return _0x4cea3a[_0x4743b8(0xde)](this,arguments);};}}),_0x3fd538[_0x24186d(0x141)]['_bstackDispatchPatched']=!![],logger[_0x24186d(0xea)](_0x35e548[_0x24186d(0x14a)]);}}catch(_0x1985cd){_0x35e548[_0x24186d(0x12b)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x1985cd),_0x175d4c[_0x24186d(0xdd)]=_0x1985cd[_0x24186d(0x156)]();}}static['patchCRConnection'](){const _0x1c0ea1=a56_0x4f5722,_0x478e3e={'SHHcy':function(_0x405e78,_0x3082d8){return _0x405e78(_0x3082d8);},'QDGHs':function(_0x1e0194,_0x26854f){return _0x1e0194(_0x26854f);},'nPchJ':function(_0x5e903a){return _0x5e903a();},'mXXvd':function(_0x3a410b,_0x2366b2){return _0x3a410b>=_0x2366b2;},'zpZJY':'1.60.0','qftIL':function(_0x29eb83,_0x30e1a8){return _0x29eb83(_0x30e1a8);},'yqdwH':_0x1c0ea1(0x13c),'wQiWk':'lib','hmkIc':_0x1c0ea1(0x175),'JqUCf':_0x1c0ea1(0x103),'haiIY':_0x1c0ea1(0x189),'Jixqz':function(_0x16617f,_0x3b07cf){return _0x16617f(_0x3b07cf);},'hDMaU':_0x1c0ea1(0x168),'vqQwl':function(_0x584c9b,_0x390577){return _0x584c9b(_0x390577);},'sNCce':_0x1c0ea1(0x152),'Hrtwx':function(_0x15fe3d,_0x1b4fef){return _0x15fe3d!=_0x1b4fef;},'EVGKO':_0x1c0ea1(0x159)},_0x20c05a=this;if(_0x478e3e['nPchJ'](isAccessibilityAutomationSession)){let _0x47369e=null,_0x4b86d1=![];try{const _0x338260=helper['getFrameworkVersion'](FRAMEWORKS[_0x1c0ea1(0x158)]);_0x4b86d1=_0x478e3e['mXXvd'](helper[_0x1c0ea1(0xdf)](_0x338260,_0x478e3e[_0x1c0ea1(0xc7)]),0x0);}catch(_0x5a37b4){_0x478e3e['SHHcy'](debug,'Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20'+_0x5a37b4[_0x1c0ea1(0x156)]());}if(_0x4b86d1)_0x478e3e['qftIL'](debug,_0x478e3e[_0x1c0ea1(0x162)]);else try{const _0x7b5ba4=path['join'](_0x478e3e[_0x1c0ea1(0x18a)],_0x478e3e['hmkIc'],_0x478e3e['JqUCf'],_0x478e3e[_0x1c0ea1(0x16f)]),_0x3e3c63=_0x478e3e[_0x1c0ea1(0x11a)](importFileFromPWCore,_0x7b5ba4);!_0x3e3c63?_0x478e3e[_0x1c0ea1(0x11a)](debug,_0x478e3e[_0x1c0ea1(0x170)]):_0x47369e=_0x3e3c63[_0x1c0ea1(0xf2)];}catch(_0xddc608){_0x478e3e[_0x1c0ea1(0x121)](debug,_0x478e3e['sNCce']);}try{if(_0x478e3e[_0x1c0ea1(0x161)](_0x47369e,null)){const _0x19c5d9=_0x47369e['prototype'][_0x1c0ea1(0x159)];Object[_0x1c0ea1(0x169)](_0x47369e['prototype'],_0x478e3e[_0x1c0ea1(0x10a)],{'get':function(){const _0xaf7b4d={'JbiZQ':function(_0x54f26a,_0x186d91){return _0x478e3e['SHHcy'](_0x54f26a,_0x186d91);},'wpBbC':function(_0x29a12b,_0x38249f){const _0x2b1261=a56_0xef5d;return _0x478e3e[_0x2b1261(0x116)](_0x29a12b,_0x38249f);},'uHABI':function(_0xb232c8,_0x24f14d){const _0x35aed9=a56_0xef5d;return _0x478e3e[_0x35aed9(0x16e)](_0xb232c8,_0x24f14d);}};return async function _0x4e3416(_0x37e654){const _0x5c96cf=a56_0xef5d;try{if(BrowserstackCLI[_0x5c96cf(0x12f)]()[_0x5c96cf(0xcc)]()){const _0x2e7d72={};_0x2e7d72[_0x5c96cf(0xce)]=_0x37e654,await BrowserstackCLI['getInstance']()[_0x5c96cf(0x106)]()[_0x5c96cf(0x10e)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState['POST'],_0x2e7d72),delete _0x37e654['bStackParams'];}else{const _0x47035d=_0x37e654[_0x5c96cf(0x187)];if(_0x47035d){delete _0x37e654['bStackParams'];const _0x1c57ed=_0x47035d['sessionId'],_0x2a9a6b=_0x47035d[_0x5c96cf(0x167)];_0x2a9a6b&&(_0xaf7b4d['JbiZQ'](debug,_0x5c96cf(0x142)+_0x2a9a6b[_0x5c96cf(0x156)]()),_0x20c05a['currentSessionDetails'][_0x5c96cf(0x165)]=_0x2a9a6b[_0x5c96cf(0x185)],_0x20c05a['currentSessionDetails']['platform_version']=_0x2a9a6b[_0x5c96cf(0x172)]),_0x1c57ed&&(_0xaf7b4d[_0x5c96cf(0x118)](debug,_0x5c96cf(0x138)+_0x1c57ed),_0x20c05a[_0x5c96cf(0xfa)][_0x5c96cf(0xd4)]=_0x1c57ed);}}}catch(_0x2b2daa){_0xaf7b4d['uHABI'](debug,'Error\x20in\x20finding\x20platform\x20details\x20'+_0x2b2daa[_0x5c96cf(0x156)]());}return _0x19c5d9['apply'](this,arguments);};}});}}catch(_0x23c61a){_0x478e3e[_0x1c0ea1(0x16e)](debug,_0x1c0ea1(0xd7)+_0x23c61a),_0x20c05a[_0x1c0ea1(0xdd)]=_0x23c61a[_0x1c0ea1(0x156)]();}}}static[a56_0x4f5722(0x119)](){return this['currentSessionDetails'];}}function a56_0x30cb(){const _0x2218fc=['BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','POST','isRunning','format','message','DNWYF','fromEntries','version','dBOjI','11287276PMSTjo','bsSessionId','../../helpers/accessibility-automation/scripts','channel','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','capabilities','DLGqs','6783246KbHkfm','329861NFqzdw','__workerDetails','sessionError','apply','compareVersions','Page','PmYcj','deviceModel','PLAYWRIGHT_DISPATCH','assign','PojvK','fQhIy','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','fpJyZ','url','debug','split','RCwWB','BhqjH','params','IAdyW','klecJ','testInfo','CRConnection','Connection','exports','mYvPd','JfylS','OAxQr','automate','2290779HPPinj','currentSessionDetails','performScan','ZPTtt','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','__driver','use','dispatch','_type','patchConnection','chromium','product','nuEZd','getAutomationFramework','connectOptions','parse','BNRnW','EVGKO','path','query','cqmJi','trackEvent','Driver\x20Scan\x20result=','iklWG','yXpyY','_browserType','PoGmS','214791FxudnP','titlePath','SHHcy','4rdZbiB','wpBbC','getDetails','Jixqz','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','IFMzI','../v2/state/hookState.js','cloudProvider','Setting\x20session\x20id\x20received\x20from\x20BS\x20','vqQwl','IUTsR','SbQcp','local_grid','model','AbbDM','unknown_grid','lRjyA','WxCEJ','shouldWrapCommand','jGCRo','ekDyO','../../bin/playwright/accessibility-helper','ePhAM','getInstance','currentTest','browser_version','project','YpfPX','gIYJa','sendMessageToServer','../utils/clientTroubleshootingService.js','ATS_WSS_URL_REGEX','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','609825KSLaZn','Performing\x20scan\x20for\x20','browserstack','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','../../helpers/accessibility-automation/accessibilityRetryHelper.js','5|1|0|4|2|3','browser','reportSessionLinkingIssue','prototype','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','4910005ChyDLX','_name','toLowerCase','env','wSgrd','UoBYu','resolveConnectionClass','tPVVo','ZdAnb','browserName','safari','entries','BSTACK_ATS_URL','amNnc','yyKRj','Error\x20in\x20importing\x20crConnection','YonhK','wsEndpoint','accessibilityPlatform','toString','../v2/browserstackCLI','PLAYWRIGHT','_onMessage','oanVy','BYCKS','odtzf','includes','eWxwP','bstackPerformA11yScan','edge','Hrtwx','yqdwH','PCLFz','setupBrowserDetails','platform','Bcxct','platformDetails','Not\x20able\x20to\x20import\x20crConnection','defineProperty','test','patchCRConnection','info','amzcE','QDGHs','haiIY','hDMaU','obNEU','platformVersion','HAmSQ','bsParams','server','nDsDR','Page\x20Scan\x20result=','util','../../helpers/helper','PfRjX','40OVrrjw','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','platform_version','Failed\x20to\x20perform\x20scan\x20','./accessibility-helper','caps','tkPTZ','hbjGk','firefox','2HIbppb','platformName','XSApq','bStackParams','_defaultConnectOptions','crConnection.js','wQiWk','168HERAIi','zOWcQ','zcjlM','playwright-','../utils/constants','_bstackDispatchPatched','../../helpers/accessibility-automation/helper','turboscale','chrome','yxxeG','Device\x20Model\x20is\x20not\x20available','../v2/state/automationFrameworkState.js','zpZJY','daWtX','patch'];a56_0x30cb=function(){return _0x2218fc;};return a56_0x30cb();}module[a56_0x4f5722(0xf4)]=PlaywrightSessionDetails;
|
|
1
|
+
const a56_0x2cab08=a56_0x599c;(function(_0x5d4bdc,_0x1c79ae){const _0x4440bb=a56_0x599c,_0x3aa05d=_0x5d4bdc();while(!![]){try{const _0x59f433=parseInt(_0x4440bb(0xce))/0x1*(-parseInt(_0x4440bb(0x14a))/0x2)+parseInt(_0x4440bb(0x122))/0x3*(-parseInt(_0x4440bb(0x11c))/0x4)+parseInt(_0x4440bb(0x10d))/0x5+-parseInt(_0x4440bb(0xfb))/0x6*(-parseInt(_0x4440bb(0x135))/0x7)+parseInt(_0x4440bb(0xd3))/0x8+-parseInt(_0x4440bb(0xf5))/0x9*(parseInt(_0x4440bb(0x185))/0xa)+parseInt(_0x4440bb(0xc6))/0xb;if(_0x59f433===_0x1c79ae)break;else _0x3aa05d['push'](_0x3aa05d['shift']());}catch(_0x172936){_0x3aa05d['push'](_0x3aa05d['shift']());}}}(a56_0x2f33,0x59dc2));const path=require(a56_0x2cab08(0xd6)),url=require(a56_0x2cab08(0xdb)),util=require('util'),helper=require(a56_0x2cab08(0xff)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a56_0x2cab08(0xff)),{o11yErrorHandler}=require(a56_0x2cab08(0xf9)),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a56_0x2cab08(0xc2)),{FRAMEWORKS}=require(a56_0x2cab08(0xe1)),logger=require(a56_0x2cab08(0x130))[a56_0x2cab08(0x169)],scripts=require(a56_0x2cab08(0x118)),{browserStackExecuteDriver}=require(a56_0x2cab08(0x15f)),AccessibilityHelper=require('./accessibility-helper'),constants=require(a56_0x2cab08(0x12a)),BrowserstackCLI=require(a56_0x2cab08(0x136)),AutomationFrameworkState=require(a56_0x2cab08(0x13e)),HookState=require(a56_0x2cab08(0xe7)),{performScanWithRetry}=require(a56_0x2cab08(0x151)),ClientTroubleShootingService=require(a56_0x2cab08(0x158)),getBrowserNameFromChannel=_0x52d489=>{const _0x309eac=a56_0x2cab08,_0x4889b4={};_0x4889b4[_0x309eac(0xd2)]=_0x309eac(0x104),_0x4889b4[_0x309eac(0x10c)]=_0x309eac(0x13d),_0x4889b4['EltYf']=_0x309eac(0x109),_0x4889b4[_0x309eac(0xed)]=_0x309eac(0x112),_0x4889b4[_0x309eac(0x162)]=function(_0xa2ee52,_0x2f0edd){return _0xa2ee52===_0x2f0edd;},_0x4889b4[_0x309eac(0x140)]=_0x309eac(0x164),_0x4889b4['xVKKI']=_0x309eac(0x165),_0x4889b4[_0x309eac(0x119)]='firefox';const _0x5b403d=_0x4889b4,_0x13d912=_0x5b403d[_0x309eac(0xd2)][_0x309eac(0x12e)]('|');let _0xcd2548=0x0;while(!![]){switch(_0x13d912[_0xcd2548++]){case'0':if(_0x52d489['includes'](_0x5b403d[_0x309eac(0x10c)]))return _0x5b403d[_0x309eac(0x10c)];continue;case'1':if(_0x52d489[_0x309eac(0x134)](_0x5b403d[_0x309eac(0x182)]))return _0x5b403d[_0x309eac(0x182)];continue;case'2':if(_0x52d489[_0x309eac(0x134)](_0x5b403d[_0x309eac(0xed)]))return _0x5b403d[_0x309eac(0xed)];continue;case'3':if(_0x5b403d['WkOwH'](_0x52d489,_0x5b403d['gTEKt']))return _0x5b403d[_0x309eac(0x140)];continue;case'4':if(_0x52d489['includes'](_0x5b403d[_0x309eac(0xe2)]))return _0x5b403d[_0x309eac(0xe2)];continue;case'5':if(_0x52d489[_0x309eac(0x134)](_0x5b403d[_0x309eac(0x119)]))return _0x5b403d[_0x309eac(0x119)];continue;}break;}},getBrowserFromWSEndpoint=_0x223f10=>{const _0x2479d5=a56_0x2cab08,_0x5d44d4={'ddeSA':_0x2479d5(0x13d),'VZNSK':function(_0x6e9b8c,_0x462087){return _0x6e9b8c(_0x462087);}};try{const _0x2e8031=url['parse'](_0x223f10),_0x3f7e2b=new URLSearchParams(_0x2e8031[_0x2479d5(0x110)]),_0x5773a5=Object['fromEntries'](_0x3f7e2b[_0x2479d5(0x14e)]()),_0x278c29=JSON[_0x2479d5(0x102)](_0x5773a5[_0x2479d5(0xc0)]);if(_0x278c29&&(_0x278c29['browser']||_0x278c29['browserName']))return _0x278c29[_0x2479d5(0x15d)]||_0x278c29['browserName'];return _0x5d44d4[_0x2479d5(0xd9)];}catch(_0x342847){_0x5d44d4[_0x2479d5(0x144)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x342847['toString']());}},getCloudProviderFromWsEndpoint=_0x3c40e5=>{const _0x2d1512=a56_0x2cab08,_0x45c9eb={};_0x45c9eb['YTfOV']=_0x2d1512(0xbd),_0x45c9eb[_0x2d1512(0x139)]=_0x2d1512(0x126);const _0x37d988=_0x45c9eb;if(_0x3c40e5[_0x2d1512(0x134)](constants[_0x2d1512(0x16c)])||_0x3c40e5[_0x2d1512(0x134)](constants[_0x2d1512(0x10b)]))return _0x37d988[_0x2d1512(0xeb)];return _0x37d988[_0x2d1512(0x139)];},a56_0x4ea6fc={};function a56_0x599c(_0x4e0ef0,_0x4fb775){const _0x2f337c=a56_0x2f33();return a56_0x599c=function(_0x599ce5,_0x16f945){_0x599ce5=_0x599ce5-0xbb;let _0x5a3831=_0x2f337c[_0x599ce5];return _0x5a3831;},a56_0x599c(_0x4e0ef0,_0x4fb775);}a56_0x4ea6fc['cloudProvider']=undefined,a56_0x4ea6fc['bsSessionId']=undefined,a56_0x4ea6fc['browser']=undefined,a56_0x4ea6fc['browser_version']=undefined,a56_0x4ea6fc['platform']=undefined,a56_0x4ea6fc[a56_0x2cab08(0x159)]=undefined,a56_0x4ea6fc[a56_0x2cab08(0x152)]=undefined,a56_0x4ea6fc[a56_0x2cab08(0x16a)]={};function a56_0x2f33(){const _0x4e4e8d=['_type','message','trackEvent','automate','defineProperty','JOdWT','IwGLG','VxQAs','QhjEA','CRConnection','testInfo','XYTgo','Error\x20in\x20importing\x20crConnection','info','wACUM','POST','MRjzn','_onMessage','_defaultConnectOptions','EltYf','nHnwR','connectOptions','10VmGtWk','patch','platformVersion','toLowerCase','browserstack','getDetails','stFRE','caps','UKyJw','../../helpers/accessibility-automation/helper','BROWSERSTACK_TEST_OBSERVABILITY','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','local_grid','13317106ymhFmQ','playwright-','bstackPerformA11yScan','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','resolveConnectionClass','qkmpy','urrGu','5jipyrj','pwPage','MPliY','shouldWrapCommand','psflj','66840UznyXJ','_browserType','PLAYWRIGHT_DISPATCH','path','test','PWMHm','ddeSA','hmDZP','url','setupBrowserDetails','platform','eSLLv','sEaKC','xBCEG','../../helpers/test-observability/constants','xVKKI','oNrYn','NnYkh','__workerDetails','_bstackDispatchPatched','../v2/state/hookState.js','NEOwe','sendMessageToServer','reportSessionLinkingIssue','YTfOV','KWYnE','KPPHq','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','getFrameworkVersion','BhQIO','kxHiz','UKnwn','channel','__driver','1107972kJLtPs','sessionError','apply','mFAFb','../../helpers/test-observability/error-handler','Failed\x20to\x20perform\x20scan\x20','604794CkIRmZ','BMqGm','PVjSC','model','../../helpers/helper','KkJvJ','RpnoM','parse','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','4|0|1|5|2|3','lib','bsParams','IJFfY','iCzJi','edge','NsCId','BSTACK_ATS_URL','BpHmP','572805QpCmjk','crConnection.js','project','query','BSHlo','safari','Error\x20in\x20finding\x20platform\x20details\x20','MVOnh','params','version','ATS_WSS_URL_REGEX','../../helpers/accessibility-automation/scripts','mXGuU','server','join','408QEtray','gQpPu','deviceModel','exports','SXDHO','Connection','20019eXYGok','Setting\x20session\x20id\x20received\x20from\x20BS\x20','platformDetails','dDBUB','unknown_grid','use','hsNSh','Driver\x20Scan\x20result=','../utils/constants','UwIOf','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','VCJbp','split','uLFxX','../../helpers/logger','PLAYWRIGHT','fmSzV','accessibilityPlatform','includes','14bzdWgl','../v2/browserstackCLI','patchCRConnection','cloudProvider','WnnYM','_name','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','sessionId','chrome','../v2/state/automationFrameworkState.js','debug','gTEKt','currentTest','Not\x20able\x20to\x20resolve\x20Connection\x20class','Page','VZNSK','qAzDU','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','currentSessionDetails','SWRRz','eoweR','145336NtBDRt','prototype','platformName','assign','entries','isRunning','bStackParams','../../helpers/accessibility-automation/accessibilityRetryHelper.js','product','xRAap','Device\x20Model\x20is\x20not\x20available','titlePath','qaWvt','Hwric','../utils/clientTroubleshootingService.js','platform_version','VFlrx','pqKFj','turboscale','browser','format','../../bin/playwright/accessibility-helper','lMzvS','getInstance','WkOwH','dispatch','webkit','chromium','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','browser_version','env','winstonLogger','capabilities','toString','BSTACK_URL','qvGck','KIbwl'];a56_0x2f33=function(){return _0x4e4e8d;};return a56_0x2f33();}class PlaywrightSessionDetails{static [a56_0x2cab08(0x147)]=a56_0x4ea6fc;constructor(){const _0x220514=a56_0x2cab08,_0x37e1c3={};_0x37e1c3[_0x220514(0x156)]=_0x220514(0xee);const _0x36f3ed=_0x37e1c3;throw new Error(_0x36f3ed['qaWvt']);}static [a56_0x2cab08(0xf6)]=null;static['setupBrowserDetails'](_0x3a2814,_0x35779f,_0x1c8d3d=null){const _0x4bccfc=a56_0x2cab08,_0x2efbc8={'oNrYn':function(_0x294376,_0x540370){return _0x294376===_0x540370;},'IwGLG':'function','XYTgo':'Browser\x20is\x20not\x20defined\x20or\x20not\x20available','UwIOf':_0x4bccfc(0x154),'myKXP':_0x4bccfc(0xc5),'UKyJw':function(_0x346732,_0x1e7b3c,_0x248759){return _0x346732(_0x1e7b3c,_0x248759);},'clQdb':_0x4bccfc(0xd4),'uLFxX':_0x4bccfc(0x181),'NEOwe':'project','UKnwn':'use','HPrBR':_0x4bccfc(0x184),'lMzvS':function(_0x309767,_0x5d5239){return _0x309767(_0x5d5239);},'hDhtj':_0x4bccfc(0xbd),'dCLdm':_0x4bccfc(0x15c),'stFRE':_0x4bccfc(0x172),'pqKFj':function(_0xf22b24){return _0xf22b24();},'NsCId':function(_0x18e037,_0xc0bfe8){return _0x18e037&&_0xc0bfe8;},'KWYnE':function(_0x35055f){return _0x35055f();},'qAzDU':function(_0x46d31b){return _0x46d31b();},'vyxdx':function(_0x2006cb,_0x4ba306){return _0x2006cb(_0x4ba306);},'xBCEG':function(_0x3efa61,_0x1ce8af){return _0x3efa61+_0x1ce8af;},'VxQAs':_0x4bccfc(0xc7),'hsNSh':function(_0x21121){return _0x21121();},'BhQIO':function(_0x5d8c08,_0x5dd99d,_0x4305e){return _0x5d8c08(_0x5dd99d,_0x4305e);},'kxHiz':_0x4bccfc(0xdc)},_0x241254=this;return _0x2efbc8[_0x4bccfc(0xf0)](o11yErrorHandler,async function _0x1c2c49(_0x5148ed,_0x29d0e0,_0x41680c=null){const _0x398aaf=_0x4bccfc;let _0x1bf41a=_0x5148ed[_0x398aaf(0x13a)],_0x56bfc2=null;_0x5148ed&&_0x2efbc8[_0x398aaf(0xe3)](typeof _0x5148ed[_0x398aaf(0x116)],_0x2efbc8[_0x398aaf(0x175)])?_0x56bfc2=_0x5148ed[_0x398aaf(0x116)]():logger[_0x398aaf(0x13f)](_0x2efbc8[_0x398aaf(0x17a)]);let _0x315e5f=null;_0x5148ed&&_0x2efbc8[_0x398aaf(0xe3)](typeof _0x5148ed[_0x398aaf(0xfe)],_0x2efbc8[_0x398aaf(0x175)])?_0x315e5f=_0x5148ed[_0x398aaf(0xfe)]():logger['debug'](_0x2efbc8[_0x398aaf(0x12b)]);let _0x29ede9=null,_0x3f4b78=null,_0x1abaad=null,_0x3a5c8f=_0x2efbc8['myKXP'];if(_0x5148ed['_connection']['isRemote']()||global[_0x398aaf(0x133)]&&!process['env'][_0x398aaf(0xc4)]){let _0x48dfe7=null;_0x2efbc8['UKyJw'](nestedKeyValue,_0x5148ed,[_0x2efbc8['clQdb'],_0x2efbc8[_0x398aaf(0x12f)]])?_0x48dfe7=_0x5148ed['_browserType'][_0x398aaf(0x181)]:_0x48dfe7=_0x2efbc8[_0x398aaf(0xc1)](nestedKeyValue,_0x29d0e0,[_0x2efbc8[_0x398aaf(0xe8)],_0x2efbc8[_0x398aaf(0xf2)],_0x2efbc8['HPrBR']]);const _0x57cda7=_0x41680c||_0x48dfe7&&_0x48dfe7['wsEndpoint'];if(_0x57cda7){_0x3a5c8f=_0x2efbc8[_0x398aaf(0x160)](getCloudProviderFromWsEndpoint,_0x57cda7);if(_0x2efbc8[_0x398aaf(0xe3)](_0x3a5c8f,_0x2efbc8['hDhtj']))_0x1abaad=constants[_0x398aaf(0x117)][_0x398aaf(0xd7)](_0x57cda7)?_0x2efbc8['dCLdm']:_0x2efbc8[_0x398aaf(0xbf)],_0x1bf41a=_0x2efbc8[_0x398aaf(0x160)](getBrowserFromWSEndpoint,_0x57cda7)||_0x1bf41a,_0x29ede9=_0x241254[_0x398aaf(0x147)]['platform'],_0x3f4b78=_0x241254['currentSessionDetails'][_0x398aaf(0x159)];else{const _0x1a65cd=await _0x2efbc8[_0x398aaf(0x15b)](getPlatformDetails);_0x29ede9=_0x1a65cd[_0x398aaf(0x14c)],_0x3f4b78=_0x1a65cd[_0x398aaf(0xbb)];}}if(_0x2efbc8[_0x398aaf(0x10a)](!_0x29ede9,!_0x3f4b78)&&!_0x2efbc8[_0x398aaf(0xec)](isBrowserstackInfra)){const _0x1c07c3=await _0x2efbc8[_0x398aaf(0x145)](getPlatformDetails);_0x29ede9=_0x1c07c3[_0x398aaf(0x14c)],_0x3f4b78=_0x1c07c3[_0x398aaf(0xbb)];}}else{_0x29d0e0&&_0x29d0e0[_0x398aaf(0x10f)][_0x398aaf(0x127)][_0x398aaf(0xf3)]?_0x1bf41a=_0x2efbc8['vyxdx'](getBrowserNameFromChannel,_0x29d0e0[_0x398aaf(0x10f)][_0x398aaf(0x127)]['channel']):_0x1bf41a=_0x2efbc8[_0x398aaf(0xe0)](_0x2efbc8[_0x398aaf(0x176)],_0x1bf41a[_0x398aaf(0xbc)]());const _0xc42f16=await _0x2efbc8[_0x398aaf(0x128)](getPlatformDetails);_0x29ede9=_0xc42f16[_0x398aaf(0x14c)],_0x3f4b78=_0xc42f16[_0x398aaf(0xbb)];}const _0x4ef8b1={};_0x4ef8b1[_0x398aaf(0x15d)]=_0x1bf41a,_0x4ef8b1[_0x398aaf(0x167)]=_0x56bfc2,_0x4ef8b1['capabilities']={},_0x4ef8b1[_0x398aaf(0xdd)]=_0x29ede9,_0x4ef8b1[_0x398aaf(0x159)]=_0x3f4b78,_0x4ef8b1[_0x398aaf(0x152)]=_0x1abaad;const _0x3aaa0e=_0x4ef8b1;_0x315e5f&&(_0x3aaa0e[_0x398aaf(0x16a)][_0x398aaf(0x11e)]=_0x315e5f);const _0x11c212={};_0x11c212[_0x398aaf(0x138)]=_0x3a5c8f,_0x241254[_0x398aaf(0x147)]=Object[_0x398aaf(0x14d)]({},_0x241254['currentSessionDetails'],_0x11c212,_0x3aaa0e);},_0x2efbc8[_0x4bccfc(0xf1)])(_0x3a2814,_0x35779f,_0x1c8d3d);}static[a56_0x2cab08(0x186)](){this['patchConnection'](),this['patchCRConnection']();}static['patchConnection'](){const _0x4dc535=a56_0x2cab08,_0x4c6db9={'gQpPu':function(_0x4d3e27,_0x593293,_0x5be825){return _0x4d3e27(_0x593293,_0x5be825);},'MPliY':_0x4dc535(0x141),'VFlrx':'testInfo','nHnwR':_0x4dc535(0x155),'RpnoM':_0x4dc535(0xe5),'aTRSM':_0x4dc535(0xcf),'wACUM':function(_0x58fdf7,_0xc760e8){return _0x58fdf7===_0xc760e8;},'BMqGm':_0x4dc535(0x143),'sEaKC':function(_0x461808,_0xc49f1,_0xa007c8,_0x341963){return _0x461808(_0xc49f1,_0xa007c8,_0x341963);},'iCzJi':function(_0xf08a76,_0x2dac6){return _0xf08a76||_0x2dac6;},'Hwric':function(_0x12aa68,_0x3a9772){return _0x12aa68(_0x3a9772);},'eSLLv':function(_0x40d1b0,_0x44481d){return _0x40d1b0(_0x44481d);},'yrvYu':_0x4dc535(0x142),'MVOnh':function(_0x4d9b1b,_0x38d711){return _0x4d9b1b!=_0x38d711;},'RPzvr':function(_0xded702,_0x54e0fb){return _0xded702!=_0x54e0fb;},'QhjEA':function(_0xb1959a){return _0xb1959a();},'fmSzV':'sendMessageToServer','KIbwl':function(_0x30341c,_0x28d509){return _0x30341c(_0x28d509);},'NnYkh':_0x4dc535(0x163),'mFAFb':_0x4dc535(0xca)},_0x28f9d5=this;!this[_0x4dc535(0x121)]&&(this[_0x4dc535(0x121)]=helper[_0x4dc535(0xcb)](),!this['Connection']&&_0x4c6db9[_0x4dc535(0xde)](debug,_0x4c6db9['yrvYu']));const _0x3194a4=this[_0x4dc535(0x121)];if(_0x4c6db9[_0x4dc535(0x114)](_0x3194a4,null)&&_0x3194a4[_0x4dc535(0x14b)][_0x4dc535(0xe6)])return;try{if(_0x4c6db9['RPzvr'](_0x3194a4,null)){const _0x13f711=_0x3194a4[_0x4dc535(0x14b)][_0x4dc535(0x163)],_0x3cdded=_0x3194a4[_0x4dc535(0x14b)][_0x4dc535(0xe9)];_0x4c6db9[_0x4dc535(0x177)](isAccessibilityAutomationSession)&&Object[_0x4dc535(0x173)](_0x3194a4['prototype'],_0x4c6db9[_0x4dc535(0x132)],{'get':function(){const _0x2a9f7f=_0x4dc535,_0x5778be={'SWRRz':function(_0x134e4e,_0x40cf21,_0xfad6c3){const _0x92b7b3=a56_0x599c;return _0x4c6db9[_0x92b7b3(0x11d)](_0x134e4e,_0x40cf21,_0xfad6c3);},'PssxS':_0x4c6db9[_0x2a9f7f(0xd0)],'IJFfY':_0x4c6db9[_0x2a9f7f(0x15a)],'MRjzn':_0x4c6db9[_0x2a9f7f(0x183)],'idBOl':function(_0x469b6a,_0x407e7b,_0x2977c7){const _0x353767=_0x2a9f7f;return _0x4c6db9[_0x353767(0x11d)](_0x469b6a,_0x407e7b,_0x2977c7);},'cjacw':_0x4c6db9[_0x2a9f7f(0x101)],'lXzKj':_0x4c6db9['aTRSM'],'JOdWT':function(_0x114a63,_0x3065ab){const _0x3133b6=_0x2a9f7f;return _0x4c6db9[_0x3133b6(0x17d)](_0x114a63,_0x3065ab);},'XsmEw':_0x4c6db9[_0x2a9f7f(0xfc)],'KkJvJ':function(_0x526a69,_0x55a766,_0x1a99eb,_0x4e4836){const _0x1991d5=_0x2a9f7f;return _0x4c6db9[_0x1991d5(0xdf)](_0x526a69,_0x55a766,_0x1a99eb,_0x4e4836);}};return async function(){const _0x44927f=_0x2a9f7f;try{if(!global[_0x44927f(0xc8)]&&global[_0x44927f(0x133)]&&_0x5778be[_0x44927f(0x148)](nestedKeyValue,global[_0x44927f(0xe5)],[_0x5778be['PssxS'],_0x5778be[_0x44927f(0x107)],_0x5778be[_0x44927f(0x17f)]])&&_0x5778be['idBOl'](shouldScanTestForAccessibility,global[_0x44927f(0xe5)][_0x44927f(0x141)][_0x44927f(0x179)]['titlePath'],!![])&&scripts[_0x44927f(0xd1)](arguments[0x1])){logger['debug']('Performing\x20scan\x20for\x20'+arguments[0x1]),global[_0x44927f(0xc8)]=!![];const _0x20f81b=_0x5778be[_0x44927f(0x148)](nestedKeyValue,global,[_0x5778be['cjacw'],_0x5778be['lXzKj']]);_0x20f81b&&logger[_0x44927f(0x17c)]('Page\x20Scan\x20result='+util['format'](await _0x5778be[_0x44927f(0x148)](performScanWithRetry,_0x20f81b,arguments[0x1]))),_0x5778be[_0x44927f(0x174)](arguments[0x0][_0x44927f(0x16f)],_0x5778be['XsmEw'])&&global[_0x44927f(0xf4)]&&logger[_0x44927f(0x17c)](_0x44927f(0x129)+util[_0x44927f(0x15e)](await _0x5778be[_0x44927f(0x100)](performScanWithRetry,global[_0x44927f(0xf4)],arguments[0x1],scripts['performScan'])));}}catch(_0x5ee051){logger[_0x44927f(0x13f)](_0x44927f(0xfa)+util['format'](_0x5ee051));}return global[_0x44927f(0xc8)]=![],_0x3cdded[_0x44927f(0xf7)](this,arguments);};}}),!_0x4c6db9[_0x4dc535(0x16e)](isFalse,process[_0x4dc535(0x168)][_0x4dc535(0xc3)])&&Object[_0x4dc535(0x173)](_0x3194a4['prototype'],_0x4c6db9[_0x4dc535(0xe4)],{'get':function(){return async function _0x1bf3a5(_0x4919c1){const _0x409b61=a56_0x599c;if(BrowserstackCLI[_0x409b61(0x161)]()[_0x409b61(0x14f)]()){const _0x512265={};_0x512265[_0x409b61(0x170)]=_0x4919c1,await BrowserstackCLI['getInstance']()['getAutomationFramework']()['trackEvent'](AutomationFrameworkState[_0x409b61(0xd5)],HookState['POST'],_0x512265);}else{const _0x55e2f1=_0x4919c1&&_0x4919c1[_0x409b61(0x115)]&&_0x4919c1[_0x409b61(0x115)][_0x409b61(0x106)];if(_0x55e2f1){const _0x41d54c=_0x55e2f1[_0x409b61(0x13c)],_0x1ec493=_0x55e2f1[_0x409b61(0x124)];_0x4c6db9[_0x409b61(0x108)](!_0x41d54c,!_0x1ec493)&&await ClientTroubleShootingService[_0x409b61(0xea)](),_0x1ec493&&(_0x4c6db9[_0x409b61(0x157)](debug,_0x409b61(0x146)+_0x1ec493[_0x409b61(0x16b)]()),_0x28f9d5[_0x409b61(0x147)][_0x409b61(0xdd)]=_0x1ec493[_0x409b61(0x14c)],_0x28f9d5[_0x409b61(0x147)]['platform_version']=_0x1ec493[_0x409b61(0xbb)]),_0x41d54c&&(_0x4c6db9[_0x409b61(0xde)](debug,_0x409b61(0x123)+_0x41d54c),_0x28f9d5[_0x409b61(0x147)]['bsSessionId']=_0x41d54c);}}return _0x13f711[_0x409b61(0xf7)](this,arguments);};}}),_0x3194a4[_0x4dc535(0x14b)][_0x4dc535(0xe6)]=!![],logger[_0x4dc535(0x13f)](_0x4c6db9[_0x4dc535(0xf8)]);}}catch(_0x137bc1){_0x4c6db9[_0x4dc535(0x157)](debug,_0x4dc535(0x13b)+_0x137bc1),_0x28f9d5[_0x4dc535(0xf6)]=_0x137bc1[_0x4dc535(0x16b)]();}}static[a56_0x2cab08(0x137)](){const _0x483c02=a56_0x2cab08,_0x487190={'NRyCp':function(_0x5e6548,_0x4bb53a){return _0x5e6548(_0x4bb53a);},'qkmpy':function(_0x17a9eb,_0x3bb51f){return _0x17a9eb(_0x3bb51f);},'dDBUB':function(_0x4423e5){return _0x4423e5();},'qvGck':function(_0x1702ae,_0x53e36f){return _0x1702ae>=_0x53e36f;},'PVjSC':'1.60.0','VCJbp':function(_0x5eebd8,_0x348232){return _0x5eebd8(_0x348232);},'SXDHO':_0x483c02(0x166),'urrGu':_0x483c02(0x105),'BSHlo':_0x483c02(0x11a),'hmDZP':_0x483c02(0x165),'DZWdf':_0x483c02(0x10e),'uDFqc':'Not\x20able\x20to\x20import\x20crConnection','xRAap':_0x483c02(0x17b),'PWMHm':function(_0x303001,_0x2f2771){return _0x303001!=_0x2f2771;},'eoweR':'_onMessage'},_0x1c6a68=this;if(_0x487190[_0x483c02(0x125)](isAccessibilityAutomationSession)){let _0x11b437=null,_0x47968b=![];try{const _0xdc68ab=helper[_0x483c02(0xef)](FRAMEWORKS[_0x483c02(0x131)]);_0x47968b=_0x487190[_0x483c02(0x16d)](helper['compareVersions'](_0xdc68ab,_0x487190[_0x483c02(0xfd)]),0x0);}catch(_0x53b16e){_0x487190['NRyCp'](debug,_0x483c02(0xc9)+_0x53b16e['toString']());}if(_0x47968b)_0x487190[_0x483c02(0x12d)](debug,_0x487190[_0x483c02(0x120)]);else try{const _0x3976e2=path[_0x483c02(0x11b)](_0x487190[_0x483c02(0xcd)],_0x487190[_0x483c02(0x111)],_0x487190[_0x483c02(0xda)],_0x487190['DZWdf']),_0x1dac43=_0x487190[_0x483c02(0x12d)](importFileFromPWCore,_0x3976e2);!_0x1dac43?_0x487190['NRyCp'](debug,_0x487190['uDFqc']):_0x11b437=_0x1dac43[_0x483c02(0x178)];}catch(_0x26e5bc){_0x487190['VCJbp'](debug,_0x487190[_0x483c02(0x153)]);}try{if(_0x487190[_0x483c02(0xd8)](_0x11b437,null)){const _0x1e9964=_0x11b437[_0x483c02(0x14b)][_0x483c02(0x180)];Object[_0x483c02(0x173)](_0x11b437[_0x483c02(0x14b)],_0x487190[_0x483c02(0x149)],{'get':function(){return async function _0xd8b589(_0x4b6c70){const _0xa57d8f=a56_0x599c;try{if(BrowserstackCLI[_0xa57d8f(0x161)]()[_0xa57d8f(0x14f)]()){const _0x3cf07a={};_0x3cf07a['message']=_0x4b6c70,await BrowserstackCLI['getInstance']()['getAutomationFramework']()[_0xa57d8f(0x171)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0xa57d8f(0x17e)],_0x3cf07a),delete _0x4b6c70[_0xa57d8f(0x150)];}else{const _0x41a20e=_0x4b6c70[_0xa57d8f(0x150)];if(_0x41a20e){delete _0x4b6c70[_0xa57d8f(0x150)];const _0x478f79=_0x41a20e[_0xa57d8f(0x13c)],_0x415cc3=_0x41a20e[_0xa57d8f(0x124)];_0x415cc3&&(_0x487190['NRyCp'](debug,_0xa57d8f(0x12c)+_0x415cc3[_0xa57d8f(0x16b)]()),_0x1c6a68['currentSessionDetails'][_0xa57d8f(0xdd)]=_0x415cc3[_0xa57d8f(0x14c)],_0x1c6a68[_0xa57d8f(0x147)]['platform_version']=_0x415cc3[_0xa57d8f(0xbb)]),_0x478f79&&(_0x487190['NRyCp'](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x478f79),_0x1c6a68[_0xa57d8f(0x147)]['bsSessionId']=_0x478f79);}}}catch(_0x3e61f7){_0x487190[_0xa57d8f(0xcc)](debug,_0xa57d8f(0x113)+_0x3e61f7[_0xa57d8f(0x16b)]());}return _0x1e9964[_0xa57d8f(0xf7)](this,arguments);};}});}}catch(_0x319806){_0x487190[_0x483c02(0xcc)](debug,_0x483c02(0x103)+_0x319806),_0x1c6a68[_0x483c02(0xf6)]=_0x319806[_0x483c02(0x16b)]();}}}static[a56_0x2cab08(0xbe)](){const _0x46897e=a56_0x2cab08;return this[_0x46897e(0x147)];}}module[a56_0x2cab08(0x11f)]=PlaywrightSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a57_0x1f36cf=a57_0x5470;function a57_0x3383(){const _0x175b80=['../v2/browserstackCLI','annotate','1837068XYjtxN','../v2/uploadAttachmentsManager','77594eopMfq','patchBrowserNewPage','__workerDetails','apply','setCustomTags','PgYrx','4qkuOBp','SYNC','557391hpcSbR','904131IlWejh','170307BEmVoO','BROWSERSTACK_TEST_OBSERVABILITY','uploadAttachment','_bstackNewPagePatched','util','format','browserstack_executor:\x20','gPRlj','Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20','evaluate','../../helpers/test-observability/error-handler','../v2/customTagManager','ObservabilitySync:','now','70BSrrvM','1380162kYHdDH','env','../../helpers/helper','../../helpers/performance/constants','ZuxJt','5oGEuRI','debug','bind','DWUkb','mirWq','QdoJw','doo11ySync','getInstance','4148280VLiHpm','measureWrapper','pwPage'];a57_0x3383=function(){return _0x175b80;};return a57_0x3383();}(function(_0x1e9746,_0x22f4e2){const _0x2ec5aa=a57_0x5470,_0x21dc83=_0x1e9746();while(!![]){try{const _0x2da574=-parseInt(_0x2ec5aa(0xde))/0x1+parseInt(_0x2ec5aa(0xd4))/0x2+-parseInt(_0x2ec5aa(0xdc))/0x3*(parseInt(_0x2ec5aa(0xda))/0x4)+-parseInt(_0x2ec5aa(0xc5))/0x5*(-parseInt(_0x2ec5aa(0xd2))/0x6)+parseInt(_0x2ec5aa(0xc0))/0x7+-parseInt(_0x2ec5aa(0xcd))/0x8+parseInt(_0x2ec5aa(0xdd))/0x9*(parseInt(_0x2ec5aa(0xbf))/0xa);if(_0x2da574===_0x22f4e2)break;else _0x21dc83['push'](_0x21dc83['shift']());}catch(_0x517fc1){_0x21dc83['push'](_0x21dc83['shift']());}}}(a57_0x3383,0x5a81b));function a57_0x5470(_0x509bcb,_0x1758af){const _0x338354=a57_0x3383();return a57_0x5470=function(_0x547011,_0x4d7e24){_0x547011=_0x547011-0xbc;let _0xf1bbdb=_0x338354[_0x547011];return _0xf1bbdb;},a57_0x5470(_0x509bcb,_0x1758af);}const util=require(a57_0x1f36cf(0xe2)),logger=require('../../helpers/logger'),{nestedKeyValue,isFalse}=require(a57_0x1f36cf(0xc2)),{o11yErrorHandler}=require(a57_0x1f36cf(0xe8)),PerformanceTester=require('../../helpers/performance/performance-tester'),{O11y_EVENTS:PerformanceO11yEvents}=require(a57_0x1f36cf(0xc3)),BrowserstackCLI=require(a57_0x1f36cf(0xd0)),CustomTagManager=require(a57_0x1f36cf(0xbc)),uploadAttachmentsManager=require(a57_0x1f36cf(0xd3)),doo11ySync=PerformanceTester[a57_0x1f36cf(0xce)](PerformanceO11yEvents[a57_0x1f36cf(0xdb)],o11yErrorHandler(async function doo11ySync(_0x274619){const _0x29c2be=a57_0x1f36cf,_0x46f8f1={'gPRlj':function(_0x4411e5,_0x49b9f2,_0x462203){return _0x4411e5(_0x49b9f2,_0x462203);},'mirWq':_0x29c2be(0xd6),'ZuxJt':'o11ySyncDone','qAVhU':_0x29c2be(0xd1),'mWtOQ':_0x29c2be(0xc6)};if(_0x46f8f1[_0x29c2be(0xe5)](nestedKeyValue,global,[_0x46f8f1[_0x29c2be(0xc9)],_0x46f8f1[_0x29c2be(0xc4)]]))return;await _0x274619[_0x29c2be(0xe7)](_0x4e3ab9=>{},_0x29c2be(0xe4)+JSON['stringify']({'action':_0x46f8f1['qAVhU'],'arguments':{'data':_0x29c2be(0xbd)+Date[_0x29c2be(0xbe)](),'level':_0x46f8f1['mWtOQ']}})),global[_0x29c2be(0xd6)]['o11ySyncDone']=!![];},a57_0x1f36cf(0xcb)));exports[a57_0x1f36cf(0xd5)]=_0x5e5bd3=>{const _0x44f6df=a57_0x1f36cf,_0x921bdb={'QdoJw':function(_0x10b846,_0x444165){return _0x10b846(_0x444165);},'MgdCQ':function(_0x4aa453,_0x34a6a5){return _0x4aa453(_0x34a6a5);},'DWUkb':function(_0x598bb4,_0x1afd1b,_0x1d9137){return _0x598bb4(_0x1afd1b,_0x1d9137);},'PgYrx':'__workerDetails'};if(!_0x5e5bd3||_0x5e5bd3[_0x44f6df(0xe1)])return;const _0x2eeb5a=_0x5e5bd3['newPage'][_0x44f6df(0xc7)](_0x5e5bd3);_0x5e5bd3['newPage']=async function _0x4688df(){const _0x3e3d68=_0x44f6df,_0x107438=await _0x2eeb5a[_0x3e3d68(0xd7)](_0x5e5bd3,arguments);try{!BrowserstackCLI[_0x3e3d68(0xcc)]()['isRunning']()&&!_0x921bdb[_0x3e3d68(0xca)](isFalse,process[_0x3e3d68(0xc1)][_0x3e3d68(0xdf)])&&await _0x921bdb['MgdCQ'](doo11ySync,_0x107438),BrowserstackCLI['getInstance']()['isRunning']()&&(_0x107438[_0x3e3d68(0xd8)]=async(_0x3f7c66,_0x26a397,_0x3890e4=![])=>{const _0x3c9af7=_0x3e3d68;await CustomTagManager[_0x3c9af7(0xd8)](_0x3f7c66,_0x26a397,_0x3890e4);},_0x107438[_0x3e3d68(0xe0)]=async(_0x36df51,_0x212089=![])=>{await uploadAttachmentsManager['uploadAttachments'](_0x36df51,_0x212089);});}catch(_0x4796bf){logger[_0x3e3d68(0xc6)](_0x3e3d68(0xe6)+util[_0x3e3d68(0xe3)](_0x4796bf));}return _0x921bdb[_0x3e3d68(0xc8)](nestedKeyValue,global,[_0x921bdb[_0x3e3d68(0xd9)]])&&(global[_0x3e3d68(0xd6)][_0x3e3d68(0xcf)]=_0x107438),_0x107438;},_0x5e5bd3[_0x44f6df(0xe1)]=!![];};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a58_0x56e3(_0xf1d12c,_0x3825d8){const _0x286d39=a58_0x286d();return a58_0x56e3=function(_0x56e33b,_0x4f2544){_0x56e33b=_0x56e33b-0x16a;let _0x7672dd=_0x286d39[_0x56e33b];return _0x7672dd;},a58_0x56e3(_0xf1d12c,_0x3825d8);}function a58_0x286d(){const _0x1ac260=['Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','cloudProvider','query','../v2/state/hookState.js','758jIQsOV','4IVSjJK','platform_version','ZdzuQ','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','browserName','4253472fSjcqx','_bstackPatched','automate','../../helpers/helper','88227nvYTZn','zMqAu','version','YXDAZ','jvDzD','params','local_grid','exports','../v2/state/automationFrameworkState.js','capabilities','includes','format','BSTACK_URL','qNZjk','browser_version','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','BSTACK_ATS_URL','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','fromEntries','browserstack','hYCJl','function','ATS_WSS_URL_REGEX','eTCvT','POST','toString','bsSessionId','FdVWE','sessionError','1768458tyaAJF','patchConnection','chrome','parse','result','bStackParams','JbjhQ','PLAYWRIGHT_DISPATCH','currentSessionDetails','entries','path','stringify','url','640GDghFd','dUSSK','Setting\x20session\x20id\x20received\x20from\x20BS\x20','getDetails','bsParams','test','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','14644509WaLmYL','platform','getAutomationFramework','platformVersion','../../helpers/logger','connection','sessionId','assign','snREn','winstonLogger','string','platformName','message','1669bsiKgs','browser','YBbwM','turboscale','1057kbHJfu','3600995EJaVMW','apply','smGPs','SHkpD','getInstance','wlApF','platformDetails','trackEvent','dQAFy','setupBrowserDetails','onmessage','product','_connection','../../helpers/test-observability/utils','../utils/constants','28494JBriwJ'];a58_0x286d=function(){return _0x1ac260;};return a58_0x286d();}const a58_0x5e9e3b=a58_0x56e3;(function(_0x34a886,_0x42ffe8){const _0x1237ed=a58_0x56e3,_0x302460=_0x34a886();while(!![]){try{const _0x6c993d=parseInt(_0x1237ed(0x175))/0x1*(-parseInt(_0x1237ed(0x18e))/0x2)+-parseInt(_0x1237ed(0x1b5))/0x3*(parseInt(_0x1237ed(0x18f))/0x4)+parseInt(_0x1237ed(0x17a))/0x5+-parseInt(_0x1237ed(0x189))/0x6*(-parseInt(_0x1237ed(0x179))/0x7)+-parseInt(_0x1237ed(0x194))/0x8+parseInt(_0x1237ed(0x198))/0x9*(-parseInt(_0x1237ed(0x1c2))/0xa)+parseInt(_0x1237ed(0x1c9))/0xb;if(_0x6c993d===_0x42ffe8)break;else _0x302460['push'](_0x302460['shift']());}catch(_0x5e8512){_0x302460['push'](_0x302460['shift']());}}}(a58_0x286d,0x5e9b0));const path=require(a58_0x5e9e3b(0x1bf)),url=require(a58_0x5e9e3b(0x1c1)),util=require('util'),{nestedKeyValue,isFalse}=require(a58_0x5e9e3b(0x197)),{debug,getPlatformDetails}=require(a58_0x5e9e3b(0x187)),logger=require(a58_0x5e9e3b(0x16c))[a58_0x5e9e3b(0x171)],constants=require(a58_0x5e9e3b(0x188)),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require(a58_0x5e9e3b(0x1a0)),HookState=require(a58_0x5e9e3b(0x18d)),getBrowserFromWSEndpoint=_0x4c1bf7=>{const _0x8bae4a=a58_0x5e9e3b,_0x137d96={'eTCvT':_0x8bae4a(0x1b7),'FdVWE':function(_0x37ca19,_0xf41a49){return _0x37ca19(_0xf41a49);}};try{const _0xf9f5e0=url[_0x8bae4a(0x1b8)](_0x4c1bf7),_0x3b0c8d=new URLSearchParams(_0xf9f5e0[_0x8bae4a(0x18c)]),_0x4311c9=Object[_0x8bae4a(0x1aa)](_0x3b0c8d[_0x8bae4a(0x1be)]()),_0x5072a5=JSON[_0x8bae4a(0x1b8)](_0x4311c9['caps']);if(_0x5072a5&&(_0x5072a5['browser']||_0x5072a5['browserName']))return _0x5072a5['browser']||_0x5072a5[_0x8bae4a(0x193)];return _0x137d96[_0x8bae4a(0x1af)];}catch(_0x6dbc0c){_0x137d96[_0x8bae4a(0x1b3)](debug,_0x8bae4a(0x18a)+_0x6dbc0c['toString']());}},getCloudProviderFromWsEndpoint=_0x4bf319=>{const _0x559b1c=a58_0x5e9e3b,_0x194a39={};_0x194a39[_0x559b1c(0x182)]=_0x559b1c(0x1ab),_0x194a39['JbjhQ']='unknown_grid';const _0x128579=_0x194a39;if(_0x4bf319[_0x559b1c(0x1a2)](constants[_0x559b1c(0x1a4)])||_0x4bf319[_0x559b1c(0x1a2)](constants[_0x559b1c(0x1a8)]))return _0x128579[_0x559b1c(0x182)];return _0x128579[_0x559b1c(0x1bb)];},a58_0x45388d={};a58_0x45388d[a58_0x5e9e3b(0x18b)]=undefined,a58_0x45388d[a58_0x5e9e3b(0x1b2)]=undefined,a58_0x45388d[a58_0x5e9e3b(0x176)]=undefined,a58_0x45388d[a58_0x5e9e3b(0x1a6)]=undefined,a58_0x45388d[a58_0x5e9e3b(0x1ca)]=undefined,a58_0x45388d[a58_0x5e9e3b(0x190)]=undefined,a58_0x45388d[a58_0x5e9e3b(0x185)]=undefined,a58_0x45388d[a58_0x5e9e3b(0x1a1)]={};class PuppeteerSessionDetails{static ['currentSessionDetails']=a58_0x45388d;constructor(){const _0x44ccbc=a58_0x5e9e3b,_0xe518b1={};_0xe518b1[_0x44ccbc(0x19b)]=_0x44ccbc(0x192);const _0x52fcbf=_0xe518b1;throw new Error(_0x52fcbf[_0x44ccbc(0x19b)]);}static [a58_0x5e9e3b(0x1b4)]=null;static async[a58_0x5e9e3b(0x183)](_0x46b9b0,_0x5a17bf){const _0x3fbf15=a58_0x5e9e3b,_0x5b2522={'YGNNV':'chrome','BYKGF':function(_0x454f1b,_0x5504a5){return _0x454f1b===_0x5504a5;},'hYCJl':_0x3fbf15(0x1ad),'AkNlx':_0x3fbf15(0x19e),'YBbwM':function(_0x1fbf5f,_0x2d6bab){return _0x1fbf5f(_0x2d6bab);},'wsnVs':function(_0x57787c,_0x4d067a){return _0x57787c===_0x4d067a;},'CiBzY':_0x3fbf15(0x1ab),'WiZsB':_0x3fbf15(0x178),'SHkpD':_0x3fbf15(0x196),'smGPs':function(_0x328beb,_0x3d339a){return _0x328beb(_0x3d339a);},'wlApF':function(_0x311441){return _0x311441();},'zMqAu':function(_0x5e7a97){return _0x5e7a97();}};try{let _0x8488e6=_0x5b2522['YGNNV'],_0x5bd708=null;_0x46b9b0&&_0x5b2522['BYKGF'](typeof _0x46b9b0[_0x3fbf15(0x19a)],_0x5b2522[_0x3fbf15(0x1ac)])&&(_0x5bd708=await _0x46b9b0[_0x3fbf15(0x19a)]());let _0x8396d6=null,_0xc8d1c0=null,_0x3464b4=null,_0x2ecdfd=_0x5b2522['AkNlx'];if(_0x5a17bf){_0x2ecdfd=_0x5b2522[_0x3fbf15(0x177)](getCloudProviderFromWsEndpoint,_0x5a17bf);if(_0x5b2522['wsnVs'](_0x2ecdfd,_0x5b2522['CiBzY']))_0x3464b4=constants['ATS_WSS_URL_REGEX']?constants[_0x3fbf15(0x1ae)][_0x3fbf15(0x1c7)](_0x5a17bf)?_0x5b2522['WiZsB']:_0x5b2522[_0x3fbf15(0x17d)]:_0x5b2522[_0x3fbf15(0x17d)],_0x8488e6=_0x5b2522[_0x3fbf15(0x17c)](getBrowserFromWSEndpoint,_0x5a17bf)||_0x8488e6,_0x8396d6=this[_0x3fbf15(0x1bd)][_0x3fbf15(0x1ca)],_0xc8d1c0=this['currentSessionDetails'][_0x3fbf15(0x190)];else{const _0xd09924=await _0x5b2522[_0x3fbf15(0x17f)](getPlatformDetails);_0x8396d6=_0xd09924[_0x3fbf15(0x173)],_0xc8d1c0=_0xd09924[_0x3fbf15(0x16b)];}}else{const _0x5e7eb6=await _0x5b2522[_0x3fbf15(0x199)](getPlatformDetails);_0x8396d6=_0x5e7eb6[_0x3fbf15(0x173)],_0xc8d1c0=_0x5e7eb6[_0x3fbf15(0x16b)];}const _0x4a6156={};_0x4a6156[_0x3fbf15(0x176)]=_0x8488e6,_0x4a6156[_0x3fbf15(0x1a6)]=_0x5bd708,_0x4a6156[_0x3fbf15(0x1a1)]={},_0x4a6156[_0x3fbf15(0x1ca)]=_0x8396d6,_0x4a6156[_0x3fbf15(0x190)]=_0xc8d1c0,_0x4a6156[_0x3fbf15(0x185)]=_0x3464b4;const _0x46c7f5=_0x4a6156,_0x10ef2b={};_0x10ef2b[_0x3fbf15(0x18b)]=_0x2ecdfd,this[_0x3fbf15(0x1bd)]=Object[_0x3fbf15(0x16f)]({},this['currentSessionDetails'],_0x10ef2b,_0x46c7f5);}catch(_0x11d67e){_0x5b2522[_0x3fbf15(0x177)](debug,'Error\x20in\x20setupBrowserDetails:\x20'+util['format'](_0x11d67e)),this[_0x3fbf15(0x1b4)]=_0x11d67e['toString']();}}static[a58_0x5e9e3b(0x1b6)](_0x3e3c6f){const _0xab3d37=a58_0x5e9e3b,_0x10c1c7={'snREn':function(_0x2f4666,_0x2b8127){return _0x2f4666===_0x2b8127;},'jvDzD':_0xab3d37(0x172),'TmXiv':function(_0x57ddc4,_0x591491){return _0x57ddc4(_0x591491);},'ZdzuQ':function(_0x382498,_0x5deb65){return _0x382498(_0x5deb65);},'dUSSK':function(_0x2e0345,_0x21678c){return _0x2e0345===_0x21678c;},'qNZjk':_0xab3d37(0x1a7)},_0x307ae3=this;try{const _0x3db788=_0x3e3c6f[_0xab3d37(0x186)]||_0x3e3c6f[_0xab3d37(0x16d)];if(!_0x3db788||_0x3db788[_0xab3d37(0x195)])return;const _0x3954a4=_0x3db788[_0xab3d37(0x184)];_0x3db788['onmessage']=function(_0x5aad54){const _0xf1d570=_0xab3d37;try{const _0xe11782=_0x10c1c7[_0xf1d570(0x170)](typeof _0x5aad54,_0x10c1c7['jvDzD'])?JSON[_0xf1d570(0x1b8)](_0x5aad54):_0x5aad54,_0x1b368c=_0xe11782?.[_0xf1d570(0x1ba)]||_0xe11782?.[_0xf1d570(0x1c6)]||_0xe11782?.[_0xf1d570(0x19d)]?.[_0xf1d570(0x1c6)]||_0xe11782?.[_0xf1d570(0x19d)]?.[_0xf1d570(0x1ba)]||_0xe11782?.[_0xf1d570(0x1b9)]?.[_0xf1d570(0x1c6)]||_0xe11782?.['result']?.[_0xf1d570(0x1ba)];if(_0x1b368c){if(BrowserstackCLI[_0xf1d570(0x17e)]()['isRunning']()){const _0x3a606f={};_0x3a606f['message']=_0xe11782,BrowserstackCLI[_0xf1d570(0x17e)]()[_0xf1d570(0x16a)]()[_0xf1d570(0x181)](AutomationFrameworkState[_0xf1d570(0x1bc)],HookState[_0xf1d570(0x1b0)],_0x3a606f);}else{const _0x49af8f=_0x1b368c[_0xf1d570(0x16e)],_0x542863=_0x1b368c[_0xf1d570(0x180)];_0x542863&&(_0x10c1c7['TmXiv'](debug,_0xf1d570(0x1a9)+JSON[_0xf1d570(0x1c0)](_0x542863)),_0x307ae3[_0xf1d570(0x1bd)][_0xf1d570(0x1ca)]=_0x542863[_0xf1d570(0x173)],_0x307ae3[_0xf1d570(0x1bd)][_0xf1d570(0x190)]=_0x542863[_0xf1d570(0x16b)]),_0x49af8f&&(_0x10c1c7[_0xf1d570(0x191)](debug,_0xf1d570(0x1c4)+_0x49af8f),_0x307ae3[_0xf1d570(0x1bd)]['bsSessionId']=_0x49af8f);}_0x10c1c7[_0xf1d570(0x1c3)](typeof _0x5aad54,_0x10c1c7[_0xf1d570(0x19c)])&&(delete _0xe11782[_0xf1d570(0x1ba)],delete _0xe11782[_0xf1d570(0x1c6)],_0xe11782[_0xf1d570(0x19d)]&&(delete _0xe11782[_0xf1d570(0x19d)][_0xf1d570(0x1c6)],delete _0xe11782[_0xf1d570(0x19d)]['bStackParams']),_0xe11782[_0xf1d570(0x1b9)]&&(delete _0xe11782[_0xf1d570(0x1b9)][_0xf1d570(0x1c6)],delete _0xe11782[_0xf1d570(0x1b9)][_0xf1d570(0x1ba)]));}}catch(_0x4aa02d){_0x10c1c7['TmXiv'](debug,_0xf1d570(0x1c8)+_0x4aa02d[_0xf1d570(0x174)]);}return _0x3954a4?.[_0xf1d570(0x17b)](this,arguments);},_0x3db788[_0xab3d37(0x195)]=!![],logger['debug'](_0x10c1c7[_0xab3d37(0x1a5)]);}catch(_0x3b6301){_0x10c1c7[_0xab3d37(0x191)](debug,'Error\x20in\x20patchConnection:\x20'+util[_0xab3d37(0x1a3)](_0x3b6301)),_0x307ae3[_0xab3d37(0x1b4)]=_0x3b6301[_0xab3d37(0x1b1)]();}}static[a58_0x5e9e3b(0x1c5)](){const _0x48b817=a58_0x5e9e3b;return this[_0x48b817(0x1bd)];}}module[a58_0x5e9e3b(0x19f)]=PuppeteerSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a59_0x9520c9=a59_0x1bc6;(function(_0x2f6a78,_0x2c9985){const _0x1ba827=a59_0x1bc6,_0x1aec88=_0x2f6a78();while(!![]){try{const _0x2c431a=parseInt(_0x1ba827(0x1a2))/0x1+parseInt(_0x1ba827(0x1b1))/0x2*(-parseInt(_0x1ba827(0x197))/0x3)+parseInt(_0x1ba827(0x194))/0x4+-parseInt(_0x1ba827(0x1b3))/0x5+-parseInt(_0x1ba827(0x19a))/0x6*(parseInt(_0x1ba827(0x1a5))/0x7)+parseInt(_0x1ba827(0x190))/0x8+-parseInt(_0x1ba827(0x18e))/0x9*(-parseInt(_0x1ba827(0x1a8))/0xa);if(_0x2c431a===_0x2c9985)break;else _0x1aec88['push'](_0x1aec88['shift']());}catch(_0x2ad8d6){_0x1aec88['push'](_0x1aec88['shift']());}}}(a59_0x38bd,0xba14f));const {isTrue,isBrowserstackInfra}=require(a59_0x9520c9(0x1af)),setKeepAlive=require(a59_0x9520c9(0x1a6)),util=require(a59_0x9520c9(0x1b4)),logger=require(a59_0x9520c9(0x18c))['winstonLogger'],{shouldProcessEventForTesthub}=require(a59_0x9520c9(0x192)),{addRequestSpy}=require('../../helpers/test-observability/utils'),a59_0x4486d5={};a59_0x4486d5[a59_0x9520c9(0x19e)]=undefined,a59_0x4486d5[a59_0x9520c9(0x18d)]={},a59_0x4486d5[a59_0x9520c9(0x195)]=![],a59_0x4486d5[a59_0x9520c9(0x199)]=null,a59_0x4486d5[a59_0x9520c9(0x1b6)]=![],a59_0x4486d5[a59_0x9520c9(0x18d)]['id']=undefined,a59_0x4486d5[a59_0x9520c9(0x18d)][a59_0x9520c9(0x1a7)]=undefined;const workerDetails=a59_0x4486d5;global[a59_0x9520c9(0x189)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a59_0x9520c9(0x1b0)]=isTrue(global[a59_0x9520c9(0x18a)]?.[a59_0x9520c9(0x1b5)]),global['__skipSessionStatus']=isTrue(global['jestConfig']?.[a59_0x9520c9(0x191)])):(global[a59_0x9520c9(0x1b0)]=!![],global[a59_0x9520c9(0x19d)]=!![]);const helper=require(a59_0x9520c9(0x1af)),puppeteerVersion=helper[a59_0x9520c9(0x1a1)](a59_0x9520c9(0x1b7))||helper[a59_0x9520c9(0x1a1)]('puppeteer-core');if(puppeteerVersion)try{logger[a59_0x9520c9(0x193)]('[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest'),puppeteerPatcher=require(a59_0x9520c9(0x18b)),puppeteerPatcher[a59_0x9520c9(0x1b2)](global[a59_0x9520c9(0x18a)]),logger['debug'](a59_0x9520c9(0x19c));}catch(a59_0x108053){logger[a59_0x9520c9(0x193)](a59_0x9520c9(0x1aa)+util['format'](a59_0x108053));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a59_0x9520c9(0x1ae)),CLIUtils=require(a59_0x9520c9(0x18f)),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI['getInstance']()[a59_0x9520c9(0x19b)]()&&(logger['debug']('[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker'),process[a59_0x9520c9(0x1a9)][a59_0x9520c9(0x1ab)]=a59_0x9520c9(0x1ad),CLIUtils[a59_0x9520c9(0x1a3)](FRAMEWORKS['JEST'],FRAMEWORKS[a59_0x9520c9(0x198)]),BrowserstackCLI['getInstance']()['bootstrap']()[a59_0x9520c9(0x1ac)](_0xc02ecd=>{const _0x318571=a59_0x9520c9;logger[_0x318571(0x193)](_0x318571(0x19f)+util[_0x318571(0x1a4)](_0xc02ecd));}));}catch(a59_0x25242b){logger[a59_0x9520c9(0x193)](a59_0x9520c9(0x1a0)+util['format'](a59_0x25242b));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a59_0x5de333){logger['debug'](a59_0x9520c9(0x196)+util[a59_0x9520c9(0x1a4)](a59_0x5de333));}function a59_0x1bc6(_0x211b0e,_0x9e5ccb){const _0x38bded=a59_0x38bd();return a59_0x1bc6=function(_0x1bc66f,_0x57539){_0x1bc66f=_0x1bc66f-0x188;let _0xffc09c=_0x38bded[_0x1bc66f];return _0xffc09c;},a59_0x1bc6(_0x211b0e,_0x9e5ccb);}function a59_0x38bd(){const _0x54943a=['720IEviAb','../v2/cliUtils','10714496zCCwyy','skipSessionStatus','../../helpers/testhub/utils','debug','4089372iaMsYM','o11ySyncDone','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','870dVlWLz','PUPPETEER','pwPage','24ZCiCaz','isCliEnabled','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','__skipSessionStatus','workerInfo','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','getPackageVersion','614974NvLJhR','setFrameworkDetail','format','505918yKWnGl','../../helpers/setKeepAlive','testInfo','75890nyDjJs','env','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','BROWSERSTACK_PUPPETEER','catch','true','../v2/browserstackCLI','../../helpers/helper','__skipSessionName','9938GOHUOb','initializePuppeteerPatching','5457260IwBDfj','util','skipSessionName','isPageFixture','puppeteer','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','__workerDetails','jestConfig','../utils/puppeteer-patcher','../../helpers/logger','currentTest'];a59_0x38bd=function(){return _0x54943a;};return a59_0x38bd();}logger[a59_0x9520c9(0x193)](a59_0x9520c9(0x188));
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a60_0x51d78f=a60_0x4cbf;(function(_0x12b5d1,_0x10c866){const _0x19de91=a60_0x4cbf,_0x2e1ac3=_0x12b5d1();while(!![]){try{const _0x259400=parseInt(_0x19de91(0xcf))/0x1*(parseInt(_0x19de91(0xe5))/0x2)+parseInt(_0x19de91(0x10c))/0x3*(-parseInt(_0x19de91(0xe1))/0x4)+-parseInt(_0x19de91(0xd9))/0x5+parseInt(_0x19de91(0x118))/0x6*(parseInt(_0x19de91(0xfa))/0x7)+-parseInt(_0x19de91(0xb6))/0x8+parseInt(_0x19de91(0xec))/0x9*(parseInt(_0x19de91(0xd7))/0xa)+-parseInt(_0x19de91(0x91))/0xb*(-parseInt(_0x19de91(0x77))/0xc);if(_0x259400===_0x10c866)break;else _0x2e1ac3['push'](_0x2e1ac3['shift']());}catch(_0xe4b1ee){_0x2e1ac3['push'](_0x2e1ac3['shift']());}}}(a60_0x4756,0xc0550));const fs=require('fs'),path=require('path'),util=require(a60_0x51d78f(0x10d)),spawn=require('child_process')[a60_0x51d78f(0xb0)],{requireModule}=require(a60_0x51d78f(0x116)),PerformanceTester=require(a60_0x51d78f(0x76)),PerformanceEvents=require(a60_0x51d78f(0xd2))['EVENTS'],helper=require(a60_0x51d78f(0x116)),utilities=require(a60_0x51d78f(0x7a)),{default:BrowserStackSetup}=require(a60_0x51d78f(0x111)),{FRAMEWORKS}=require(a60_0x51d78f(0xa3)),runIntegrations=require('./integrations/command'),yargs=require(a60_0x51d78f(0x95)),Constants=require(a60_0x51d78f(0x96)),BrowserstackCLI=require('./v2/browserstackCLI'),{isNewman}=require('./newman/helper'),logger=require(a60_0x51d78f(0x8d))[a60_0x51d78f(0xd0)],origArgs=Object[a60_0x51d78f(0xb5)]([],process[a60_0x51d78f(0x8f)]),captureError=async(_0x955fcf,_0x32d1de,_0x44edba,_0x1effcd=null,_0xe517ae=![])=>{const _0x53b1d6=a60_0x51d78f,_0x4b5c9d={'LPAZG':function(_0x70c0b2,_0x499903,_0x433335,_0x15e147){return _0x70c0b2(_0x499903,_0x433335,_0x15e147);},'IUHVC':'SDKTestSuccessful'};try{logger[_0x53b1d6(0x8b)](_0x53b1d6(0x108)+origArgs['join']('\x20')),await _0x4b5c9d['LPAZG'](_0x955fcf,_0x32d1de,_0x1effcd,_0x44edba);}catch(_0x155139){process[_0x53b1d6(0xa1)]=0x1,logger[_0x53b1d6(0x90)](util['format'](_0x155139));const _0x410472={'globalException':util['format']('%j',_0x155139)};PerformanceTester[_0x53b1d6(0x109)](PerformanceEvents[_0x53b1d6(0x73)],![],util['format'](_0x155139));if(helper[_0x53b1d6(0xa5)](global[_0x53b1d6(0xf8)])&&helper[_0x53b1d6(0xa5)](global[_0x53b1d6(0xd6)]))return;try{utilities['fireFunnelTestEvent'](_0x4b5c9d[_0x53b1d6(0xbb)],_0x410472,global['config'],global[_0x53b1d6(0xd6)]);}catch(_0x1ce397){logger[_0x53b1d6(0x80)](_0x53b1d6(0xcb)+_0x1ce397[_0x53b1d6(0xac)]);}try{await helper[_0x53b1d6(0x78)](global[_0x53b1d6(0xf8)]);}catch(_0x3b5302){logger[_0x53b1d6(0x80)](_0x53b1d6(0x94)+_0x3b5302[_0x53b1d6(0xac)]);}PerformanceTester[_0x53b1d6(0x109)](PerformanceEvents[_0x53b1d6(0x73)],![],util[_0x53b1d6(0x7d)](_0x155139));}finally{!_0xe517ae&&await BrowserstackCLI['getInstance']()['stop'](),PerformanceTester[_0x53b1d6(0x81)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path['join'](helper[a60_0x51d78f(0x86)](),a60_0x51d78f(0xa7));if(fs[a60_0x51d78f(0x102)](browserstackFolderPath)){const filePath=path['join'](browserstackFolderPath,'.local-not-set.json');fs[a60_0x51d78f(0x102)](filePath)&&fs[a60_0x51d78f(0x92)](filePath);}}catch(a60_0x358a6d){logger[a60_0x51d78f(0x80)](a60_0x51d78f(0xae)+a60_0x358a6d[a60_0x51d78f(0xaf)]);}process[a60_0x51d78f(0x8f)]['includes'](a60_0x51d78f(0x105))&&(!process[a60_0x51d78f(0x8f)][a60_0x51d78f(0x8a)](a60_0x51d78f(0x71))&&process['argv']['push'](a60_0x51d78f(0xf4)),!process[a60_0x51d78f(0x8f)][a60_0x51d78f(0xef)](_0x664f93=>_0x664f93[a60_0x51d78f(0x8a)](a60_0x51d78f(0x85)))&&process[a60_0x51d78f(0x8f)][a60_0x51d78f(0x88)]('--no-config'),!process[a60_0x51d78f(0x8f)]['includes'](a60_0x51d78f(0xf0))&&process[a60_0x51d78f(0x8f)][a60_0x51d78f(0x88)](a60_0x51d78f(0xca)),helper[a60_0x51d78f(0x97)](process[a60_0x51d78f(0x8f)],a60_0x51d78f(0x74),a60_0x51d78f(0xb2)));PerformanceTester['start'](PerformanceEvents['SDK_SETUP']);const a60_0x4facb4={};a60_0x4facb4[a60_0x51d78f(0xcd)]=![];const argv=yargs[a60_0x51d78f(0xf2)](a60_0x4facb4)[a60_0x51d78f(0xf7)](a60_0x51d78f(0x9a))['alias']('v','version')[a60_0x51d78f(0xa6)]('v')[a60_0x51d78f(0xd4)]('h',a60_0x51d78f(0x87))['help']('help')[a60_0x51d78f(0x9b)](!![],Constants[a60_0x51d78f(0xde)]['HELP'])['command'](a60_0x51d78f(0x10a),Constants[a60_0x51d78f(0xb7)][a60_0x51d78f(0x6e)],function(_0x11fac6){const _0xcfd348=a60_0x51d78f,_0x559c11={'WaugA':'jest','KWVAn':function(_0x280625,_0x45a6c3,_0x469bf4,_0x2a2c27,_0x258d4f,_0x3a8a05){return _0x280625(_0x45a6c3,_0x469bf4,_0x2a2c27,_0x258d4f,_0x3a8a05);},'hWzTf':function(_0x292038,_0x4fc445){return _0x292038(_0x4fc445);},'rdmnQ':_0xcfd348(0xfd)},_0x56a878=process[_0xcfd348(0x8f)][_0xcfd348(0x93)](0x2);helper[_0xcfd348(0x10b)](),helper[_0xcfd348(0x115)](),_0x11fac6[_0xcfd348(0xc2)](![]);const _0xd60438=new BrowserStackSetup(_0x11fac6[_0xcfd348(0x8f)],_0x559c11['WaugA']);return _0x559c11[_0xcfd348(0x9e)](captureError,_0x559c11[_0xcfd348(0xbf)](require,_0x559c11[_0xcfd348(0xd1)]),_0x11fac6[_0xcfd348(0x8f)],_0xd60438,_0x56a878,!![]);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xee),Constants['JASMINE']['INFO'],function(_0xa86c3b){const _0x4e6bd7=a60_0x51d78f,_0x4a6b2d={'UcQvy':_0x4e6bd7(0xee),'VOHPQ':function(_0x4ba03b,_0x4cd113,_0x2553b6,_0xb38f52,_0x16079a,_0x451650){return _0x4ba03b(_0x4cd113,_0x2553b6,_0xb38f52,_0x16079a,_0x451650);},'dLjix':function(_0xda46a1,_0xf909b){return _0xda46a1(_0xf909b);},'NrMcE':_0x4e6bd7(0xa2)},_0xe7b763=process[_0x4e6bd7(0x8f)][_0x4e6bd7(0x93)](0x2);helper[_0x4e6bd7(0x10b)](),helper['setBrowserStackAutomationDisable'](),_0xa86c3b[_0x4e6bd7(0xc2)](![]);const _0x5b533f=new BrowserStackSetup(_0xa86c3b['argv'],_0x4a6b2d[_0x4e6bd7(0xc5)]);return _0x4a6b2d[_0x4e6bd7(0x8c)](captureError,_0x4a6b2d[_0x4e6bd7(0xe4)](require,_0x4a6b2d['NrMcE']),_0xa86c3b[_0x4e6bd7(0x8f)],_0x5b533f,_0xe7b763,!![]);})['command'](a60_0x51d78f(0x105),Constants[a60_0x51d78f(0x6f)][a60_0x51d78f(0x6e)],_0x5de1c5=>{const _0xbb9fb5=a60_0x51d78f,_0x1d569d={'xWyTj':function(_0x95b1e5,_0x4807da,_0x2230ef,_0x35355d){return _0x95b1e5(_0x4807da,_0x2230ef,_0x35355d);},'wcpfu':function(_0x336951,_0x3bd5a3){return _0x336951(_0x3bd5a3);},'mcNtk':'./mocha/command','YzWJV':'mocha','XNqUh':_0xbb9fb5(0xe9),'kTXrk':function(_0x39d742,_0x30112d,_0x3e7148){return _0x39d742(_0x30112d,_0x3e7148);},'yGuSD':'mocha/lib/cli/run.js','TtZXD':function(_0x45a37e,_0x3ef704,_0x4cb248){return _0x45a37e(_0x3ef704,_0x4cb248);},'Bizzw':_0xbb9fb5(0x89),'FYNXS':_0xbb9fb5(0x75),'vFSFe':function(_0xca70d3){return _0xca70d3();}};process['argv']=process[_0xbb9fb5(0x8f)]['slice'](0x1),helper[_0xbb9fb5(0x10b)](),helper[_0xbb9fb5(0x115)]();const _0x5606cf=new BrowserStackSetup(_0x5de1c5[_0xbb9fb5(0x8f)],_0x1d569d[_0xbb9fb5(0xa0)]);logger['debug'](_0x1d569d[_0xbb9fb5(0xed)]);const _0x2ecc65=_0x1d569d[_0xbb9fb5(0xc4)](requireModule,_0x1d569d[_0xbb9fb5(0xe3)],_0x1d569d['YzWJV']),_0x5b0a25=_0x1d569d[_0xbb9fb5(0x103)](requireModule,_0x1d569d['Bizzw'],_0x1d569d[_0xbb9fb5(0xa0)]);delete _0x2ecc65[_0xbb9fb5(0xc0)],_0x2ecc65[_0xbb9fb5(0xc0)]=function(_0x39e500){const _0x41b433=_0xbb9fb5;return _0x1d569d[_0x41b433(0xa8)](captureError,_0x1d569d[_0x41b433(0xab)](require,_0x1d569d[_0x41b433(0xb4)]),_0x39e500,_0x5606cf);},_0x5b0a25[_0xbb9fb5(0x101)]=_0x2ecc65;const {main:_0x17011}=_0x1d569d['TtZXD'](requireModule,_0x1d569d['FYNXS'],_0x1d569d['YzWJV']);_0x1d569d[_0xbb9fb5(0x7c)](_0x17011);})['command'](a60_0x51d78f(0xdf),Constants[a60_0x51d78f(0xea)]['INFO'],function(_0x1b580b){const _0x35071d=a60_0x51d78f,_0x5d396b={'NsDex':_0x35071d(0xdf),'QoPEj':function(_0x4b5574,_0x5625a2,_0x328ea6,_0x21e638,_0x397a85,_0x390e8f){return _0x4b5574(_0x5625a2,_0x328ea6,_0x21e638,_0x397a85,_0x390e8f);},'LLLtB':function(_0x30ab64,_0x30b4f5){return _0x30ab64(_0x30b4f5);},'YpBRQ':'./cucumber-js/command'},_0x40b0af=process[_0x35071d(0x8f)][_0x35071d(0x93)](0x2),_0x7e11c5=new BrowserStackSetup(_0x1b580b[_0x35071d(0x8f)],_0x5d396b[_0x35071d(0xf5)]);return _0x5d396b[_0x35071d(0xba)](captureError,_0x5d396b[_0x35071d(0xf3)](require,_0x5d396b['YpBRQ']),_0x1b580b[_0x35071d(0x8f)],_0x7e11c5,_0x40b0af,!![]);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xdb),Constants[a60_0x51d78f(0xda)][a60_0x51d78f(0x6e)],function(_0x35d40f){const _0x2eff84=a60_0x51d78f,_0x15fa9a={'GrCix':'vanilla','vrkUS':function(_0x191c4c,_0x45bbd0){return _0x191c4c(_0x45bbd0);},'XsPzy':_0x2eff84(0xb1),'KCbuL':function(_0x4b12b9,_0x588343,_0x4608b4,_0x3af628,_0x1150da){return _0x4b12b9(_0x588343,_0x4608b4,_0x3af628,_0x1150da);},'VfUMl':function(_0x311c9b,_0x2e1d36){return _0x311c9b(_0x2e1d36);},'JXHSD':_0x2eff84(0xdc),'WDstP':_0x2eff84(0xc7)},_0x230331=process[_0x2eff84(0x8f)][_0x2eff84(0x93)](0x2),_0xaeab8f=new BrowserStackSetup(_0x35d40f[_0x2eff84(0x8f)],_0x15fa9a['GrCix']),_0x5910d5=_0xaeab8f?_0xaeab8f['config']:null;if(_0x15fa9a[_0x2eff84(0x82)](isNewman,_0x5910d5))return _0xaeab8f[_0x2eff84(0xd6)]=_0x15fa9a[_0x2eff84(0xbd)],global[_0x2eff84(0xd6)]=_0x15fa9a['XsPzy'],_0x15fa9a['KCbuL'](captureError,_0x15fa9a['VfUMl'](require,_0x15fa9a[_0x2eff84(0xb3)]),_0x35d40f[_0x2eff84(0x8f)],_0xaeab8f,_0x230331);return _0x15fa9a['KCbuL'](captureError,_0x15fa9a[_0x2eff84(0x82)](require,_0x15fa9a[_0x2eff84(0x99)]),_0x35d40f['argv'],_0xaeab8f,_0x230331);})['command']('nightwatch',Constants[a60_0x51d78f(0xe2)][a60_0x51d78f(0x6e)],function(_0x2c0f9b){const _0x4d5116=a60_0x51d78f,_0x43a304={'Ohcjg':_0x4d5116(0x106),'StImF':function(_0xb2daf8,_0x3403ab,_0x1011ec,_0xef686d,_0x315737){return _0xb2daf8(_0x3403ab,_0x1011ec,_0xef686d,_0x315737);},'lBjka':function(_0x3defbc,_0x38ea78){return _0x3defbc(_0x38ea78);},'rFFhn':_0x4d5116(0x8e)},_0x25e817=process[_0x4d5116(0x8f)][_0x4d5116(0x93)](0x2),_0x915cf=new BrowserStackSetup(_0x2c0f9b[_0x4d5116(0x8f)],_0x43a304['Ohcjg']);return _0x43a304[_0x4d5116(0x107)](captureError,_0x43a304['lBjka'](require,_0x43a304[_0x4d5116(0xeb)]),_0x2c0f9b['argv'],_0x915cf,_0x25e817);})[a60_0x51d78f(0x9d)]('codeceptjs',Constants[a60_0x51d78f(0x9f)]['INFO'],function(_0x4ad14a){const _0x47e7dd=a60_0x51d78f,_0xaf56be={'pJIWB':_0x47e7dd(0xbc),'qKsMY':function(_0x97d204,_0x89faac,_0x3390fd,_0x193463,_0x390023){return _0x97d204(_0x89faac,_0x3390fd,_0x193463,_0x390023);},'MPRac':function(_0x5d34b0,_0x353f8d){return _0x5d34b0(_0x353f8d);},'damqM':_0x47e7dd(0xc3)},_0x3244a2=process[_0x47e7dd(0x8f)][_0x47e7dd(0x93)](0x2),_0x3f165b=new BrowserStackSetup(_0x4ad14a['argv'],_0xaf56be[_0x47e7dd(0xe6)]);return _0xaf56be[_0x47e7dd(0xfb)](captureError,_0xaf56be['MPRac'](require,_0xaf56be[_0x47e7dd(0x7e)]),_0x4ad14a[_0x47e7dd(0x8f)],_0x3f165b,_0x3244a2);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xd5),Constants['HST'][a60_0x51d78f(0x6e)],function(_0x1fd6f8){const _0x599c14=a60_0x51d78f,_0x52928e={'NzuUa':function(_0x1ac416,_0x43454e,_0x53cbf1){return _0x1ac416(_0x43454e,_0x53cbf1);},'pGCKg':function(_0x4a8f10,_0x5f52cf){return _0x4a8f10(_0x5f52cf);},'AIpCn':'../../ats/src/index'},_0x51f8db=process['argv']['slice'](0x2);return _0x52928e[_0x599c14(0x7f)](captureError,_0x52928e['pGCKg'](require,_0x52928e[_0x599c14(0xf9)]),_0x1fd6f8);})['command'](a60_0x51d78f(0x119),Constants[a60_0x51d78f(0x70)][a60_0x51d78f(0x6e)],function(_0x54838b){const _0x32cffe={'ouRLM':function(_0x5309d4,_0x1122d5){return _0x5309d4(_0x1122d5);}};return _0x32cffe['ouRLM'](runIntegrations,_0x54838b);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0x84),Constants[a60_0x51d78f(0xb8)][a60_0x51d78f(0x6e)],function(_0x2db04a){const _0x29e861=a60_0x51d78f,_0x2628b7={'QEmoj':_0x29e861(0xb9),'vbbMI':function(_0x1f2d8d,_0x5cb53c){return _0x1f2d8d&&_0x5cb53c;},'mcJRj':function(_0x316f04,_0x2b432c,_0x477fd4,_0x31f7b1,_0x1c3076,_0x3a1a41){return _0x316f04(_0x2b432c,_0x477fd4,_0x31f7b1,_0x1c3076,_0x3a1a41);},'frlCi':function(_0x4e5308,_0x16ebd5){return _0x4e5308(_0x16ebd5);},'pdMYi':_0x29e861(0x104)},_0x488a9b=process['argv'][_0x29e861(0x93)](0x2);helper[_0x29e861(0x83)](process[_0x29e861(0x8f)])&&(process[_0x29e861(0xa4)][_0x29e861(0xe7)]=helper[_0x29e861(0x83)](process[_0x29e861(0x8f)]));helper['setTestObservabilityDisable'](),helper[_0x29e861(0x115)]();const _0x393b20=new BrowserStackSetup(_0x2db04a[_0x29e861(0x8f)],FRAMEWORKS[_0x29e861(0xb8)]);try{if(!_0x393b20[_0x29e861(0xf8)]||!_0x393b20[_0x29e861(0xf8)][_0x29e861(0xdd)]){const _0xfb1ba7=_0x2628b7['QEmoj'],_0x54c5c4=process[_0x29e861(0xa4)]['DEBUG']||'',_0x3408f9=_0x54c5c4['split'](',')[_0x29e861(0xbe)](_0x2d67f2=>_0x2d67f2[_0x29e861(0x110)]())[_0x29e861(0x79)](Boolean),_0x183bbf=_0x3408f9[_0x29e861(0x113)](_0x429faf=>_0x429faf==='-pw:channel'||_0x429faf==='-pw:*'||_0x429faf==='-*'),_0x4ff87a=_0x3408f9['some'](_0x4bd348=>_0x4bd348===_0xfb1ba7||_0x4bd348===_0x29e861(0x100)||_0x4bd348==='*');if(_0x2628b7[_0x29e861(0x9c)](!_0x183bbf,!_0x4ff87a)){const _0xcd4a65=helper[_0x29e861(0xff)]();_0xcd4a65&&(process[_0x29e861(0xa4)]['DEBUG']=_0x54c5c4?_0x54c5c4+','+_0xfb1ba7:_0xfb1ba7,!process['env'][_0x29e861(0x7b)]&&(process[_0x29e861(0xa4)]['DEBUG_FILE']=_0xcd4a65));}}}catch(_0x26f4cf){logger[_0x29e861(0x80)](_0x29e861(0xc9)+util[_0x29e861(0x7d)](_0x26f4cf));}return _0x2628b7[_0x29e861(0x98)](captureError,_0x2628b7['frlCi'](require,_0x2628b7[_0x29e861(0xa9)]),_0x2db04a[_0x29e861(0x8f)],_0x393b20,_0x488a9b,!![]);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xe0),Constants[a60_0x51d78f(0xc6)][a60_0x51d78f(0x6e)],function(_0x2b8a80){const _0x3349a9=a60_0x51d78f,_0xc3502f={'WlLWj':'testcafe','DAgiU':function(_0x430e5c,_0x481aa8,_0x76f314,_0x2e691d,_0x5a3f1d,_0x2ef9db){return _0x430e5c(_0x481aa8,_0x76f314,_0x2e691d,_0x5a3f1d,_0x2ef9db);},'vFAZT':function(_0x9dfe3,_0x3b04eb){return _0x9dfe3(_0x3b04eb);},'bkpPw':_0x3349a9(0x112)},_0x524e66=process[_0x3349a9(0x8f)][_0x3349a9(0x93)](0x2),_0x55f956=new BrowserStackSetup(_0x2b8a80[_0x3349a9(0x8f)],_0xc3502f['WlLWj']);return _0xc3502f[_0x3349a9(0xd8)](captureError,_0xc3502f[_0x3349a9(0x11a)](require,_0xc3502f[_0x3349a9(0xc8)]),_0x2b8a80[_0x3349a9(0x8f)],_0x55f956,_0x524e66,!![]);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0x114),a60_0x51d78f(0xd3),function(_0x264862){const _0x47f5af=a60_0x51d78f,_0x24b1a9={};_0x24b1a9[_0x47f5af(0xce)]=_0x47f5af(0x87),_0x24b1a9[_0x47f5af(0xe8)]=_0x47f5af(0x117),_0x24b1a9['oJRfG']=_0x47f5af(0x10f);const _0xaf82f6=_0x24b1a9;return _0x264862['help'](![])[_0x47f5af(0xf1)](_0xaf82f6['QpsCx'],{'alias':'h','type':_0xaf82f6[_0x47f5af(0xe8)],'describe':_0xaf82f6['oJRfG']})[_0x47f5af(0xc2)](![])[_0x47f5af(0xc1)](![]);},function(_0x2cc8f0){const _0x473cb8=a60_0x51d78f,_0x3b0382={'WpwSV':function(_0x205f96,_0x19207f,_0x5bb3f2){return _0x205f96(_0x19207f,_0x5bb3f2);},'qhFzE':function(_0x3ea0db,_0x59c44e){return _0x3ea0db(_0x59c44e);},'rhwKV':_0x473cb8(0xad)},_0x4b042d={};return _0x4b042d['argv']=_0x2cc8f0,_0x3b0382['WpwSV'](captureError,_0x3b0382[_0x473cb8(0xf6)](require,_0x3b0382[_0x473cb8(0xcc)]),_0x4b042d);})[a60_0x51d78f(0x9d)](a60_0x51d78f(0xb1),Constants[a60_0x51d78f(0xaa)][a60_0x51d78f(0x6e)],function(_0x403ff6){const _0x4d4555=a60_0x51d78f,_0x990f03={'XCqBN':_0x4d4555(0xb1),'ykznC':function(_0xa0e277,_0x1722c6,_0x208d44,_0x3f1c3e,_0x12cfad){return _0xa0e277(_0x1722c6,_0x208d44,_0x3f1c3e,_0x12cfad);},'brUdT':function(_0x69a7c6,_0x14ac8c){return _0x69a7c6(_0x14ac8c);},'kzQgm':_0x4d4555(0xdc)},_0x4abfaf=process[_0x4d4555(0x8f)][_0x4d4555(0x93)](0x2);helper[_0x4d4555(0x10b)](),helper[_0x4d4555(0x115)](),_0x403ff6[_0x4d4555(0xc2)](![]);const _0x153ad1=new BrowserStackSetup(_0x403ff6[_0x4d4555(0x8f)],_0x990f03[_0x4d4555(0x72)]);return _0x990f03[_0x4d4555(0xfe)](captureError,_0x990f03['brUdT'](require,_0x990f03['kzQgm']),_0x403ff6['argv'],_0x153ad1,_0x4abfaf);})['demandCommand'](0x1,a60_0x51d78f(0xfc))['wrap'](null)[a60_0x51d78f(0x8f)];function a60_0x4cbf(_0x35bf0f,_0x4e49d6){const _0x475679=a60_0x4756();return a60_0x4cbf=function(_0x4cbf24,_0x3bd6c8){_0x4cbf24=_0x4cbf24-0x6e;let _0x49533c=_0x475679[_0x4cbf24];return _0x49533c;},a60_0x4cbf(_0x35bf0f,_0x4e49d6);}!helper[a60_0x51d78f(0xa5)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x51d78f(0xd5)&&console['error'](a60_0x51d78f(0x10e));function a60_0x4756(){const _0x2cc4d2=['existsSync','TtZXD','./playwright/command','mocha','nightwatch','StImF','Running\x20SDK\x20with\x20args\x20','end','jest','setTestObservabilityDisable','5727HpeIno','util','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','Show\x20help','trim','../helpers/BrowserStackSetup','./testcafe/command','some','load\x20[subcommand]','setBrowserStackAutomationDisable','../helpers/helper','boolean','5492334jOiUAJ','integrations','vFAZT','INFO','MOCHA','INTEGRATIONS','--opts','XCqBN','SDK_SETUP','--require','mocha/lib/cli/cli.js','../helpers/performance/performance-tester','38379204UDwKgE','sendLogs','filter','../helpers/utilities','DEBUG_FILE','vFSFe','format','damqM','NzuUa','debug','start','vrkUS','getConfigPath','playwright','--config','homedir','help','push','mocha/lib/cli/commands.js','includes','info','VOHPQ','../helpers/logger','./nightwatch/command','argv','error','11LLoZnY','unlinkSync','slice','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','yargs','./utils/constants','findAndReplace','mcJRj','WDstP','usage:\x20$0\x20<command>\x20[args]','showHelpOnFail','vbbMI','command','KWVAn','CODECEPTJS','YzWJV','exitCode','./jasmine/command','../helpers/test-observability/constants','env','isUndefined','describe','.browserstack','xWyTj','pdMYi','NEWMAN','wcpfu','stack','./load/index','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','message','spawn','newman','--mochaRequire','JXHSD','mcNtk','assign','11670712USPMnX','JEST','PLAYWRIGHT','pw:channel','QoPEj','IUHVC','codeceptjs','XsPzy','map','hWzTf','handler','exitProcess','strict','./codeceptjs/command','kTXrk','UcQvy','TESTCAFE','./vanilla-js/command','bkpPw','pw:channel\x20auto-capture\x20seed\x20failed:\x20','--no-package','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','rhwKV','dot-notation','QpsCx','2oQaDOG','winstonLogger','rdmnQ','../helpers/performance/constants','Runs\x20the\x20binary\x20with\x20load\x20command','alias','ats','framework','1040skEdnq','DAgiU','7520800pwFmyb','VANILLA','node','./newman/command','disableAutoCaptureLogs','VERSION','cucumber-js','testcafe','2476jzvFMM','NIGHTWATCH','yGuSD','dLjix','508782foroXn','pJIWB','BROWSERSTACK_CONFIG_FILE_PATH','onebm','Parsing\x20command\x20line\x20arguments','CUCUMBER','rFFhn','26829iuUcip','XNqUh','jasmine','find','--package','option','parserConfiguration','LLLtB','--no-opts','NsDex','qhFzE','usage','config','AIpCn','7OmfoPI','qKsMY','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','./jest/command','ykznC','getPwChannelLogPath','pw:*','run'];a60_0x4756=function(){return _0x2cc4d2;};return a60_0x4756();}
|
|
2
|
+
'use strict';const a60_0x3e6f2a=a60_0x1bb0;(function(_0x20dbaf,_0x62bd97){const _0x17a75=a60_0x1bb0,_0x19a35e=_0x20dbaf();while(!![]){try{const _0x56f686=parseInt(_0x17a75(0x15b))/0x1+-parseInt(_0x17a75(0x168))/0x2*(parseInt(_0x17a75(0x1a4))/0x3)+-parseInt(_0x17a75(0x1c9))/0x4+parseInt(_0x17a75(0x1e0))/0x5*(-parseInt(_0x17a75(0x1c4))/0x6)+-parseInt(_0x17a75(0x1f7))/0x7+parseInt(_0x17a75(0x167))/0x8+parseInt(_0x17a75(0x150))/0x9*(parseInt(_0x17a75(0x1a1))/0xa);if(_0x56f686===_0x62bd97)break;else _0x19a35e['push'](_0x19a35e['shift']());}catch(_0x4a4bfd){_0x19a35e['push'](_0x19a35e['shift']());}}}(a60_0x54e6,0xdf39b));const fs=require('fs'),path=require(a60_0x3e6f2a(0x1e6)),util=require(a60_0x3e6f2a(0x1fb)),spawn=require(a60_0x3e6f2a(0x151))[a60_0x3e6f2a(0x1de)],{requireModule}=require(a60_0x3e6f2a(0x17b)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require('../helpers/performance/constants')['EVENTS'],helper=require(a60_0x3e6f2a(0x17b)),utilities=require('../helpers/utilities'),{default:BrowserStackSetup}=require(a60_0x3e6f2a(0x1f4)),{FRAMEWORKS}=require(a60_0x3e6f2a(0x1aa)),runIntegrations=require(a60_0x3e6f2a(0x19b)),yargs=require(a60_0x3e6f2a(0x156)),Constants=require(a60_0x3e6f2a(0x200)),BrowserstackCLI=require('./v2/browserstackCLI'),{isNewman}=require('./newman/helper'),logger=require(a60_0x3e6f2a(0x16d))[a60_0x3e6f2a(0x178)],origArgs=Object[a60_0x3e6f2a(0x1ea)]([],process['argv']),captureError=async(_0x5edd42,_0x13a990,_0x550ef8,_0x521863=null,_0x2ad1ca=![])=>{const _0x470b4d=a60_0x3e6f2a,_0x4d2856={'iAgQg':function(_0x3640d6,_0x7656b4,_0x24b335,_0x29d7c4){return _0x3640d6(_0x7656b4,_0x24b335,_0x29d7c4);},'IaChg':_0x470b4d(0x1e1)};try{logger['info'](_0x470b4d(0x1a9)+origArgs[_0x470b4d(0x157)]('\x20')),await _0x4d2856[_0x470b4d(0x154)](_0x5edd42,_0x13a990,_0x521863,_0x550ef8);}catch(_0x56d994){process['exitCode']=0x1,logger[_0x470b4d(0x189)](util[_0x470b4d(0x14f)](_0x56d994));const _0x338f7e={'globalException':util[_0x470b4d(0x14f)]('%j',_0x56d994)};PerformanceTester[_0x470b4d(0x1d5)](PerformanceEvents[_0x470b4d(0x1bd)],![],util[_0x470b4d(0x14f)](_0x56d994));if(helper[_0x470b4d(0x181)](global[_0x470b4d(0x1ee)])&&helper[_0x470b4d(0x181)](global[_0x470b4d(0x1f6)]))return;try{utilities[_0x470b4d(0x19f)](_0x4d2856[_0x470b4d(0x172)],_0x338f7e,global[_0x470b4d(0x1ee)],global['framework']);}catch(_0x3c175c){logger[_0x470b4d(0x16c)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x3c175c[_0x470b4d(0x1c1)]);}try{await helper['sendLogs'](global['config']);}catch(_0x55f1f9){logger[_0x470b4d(0x16c)]('Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20'+_0x55f1f9[_0x470b4d(0x1c1)]);}PerformanceTester[_0x470b4d(0x1d5)](PerformanceEvents[_0x470b4d(0x1bd)],![],util['format'](_0x56d994));}finally{!_0x2ad1ca&&await BrowserstackCLI[_0x470b4d(0x1e7)]()['stop'](),PerformanceTester[_0x470b4d(0x18a)](PerformanceEvents[_0x470b4d(0x1a3)]);}};try{const browserstackFolderPath=path[a60_0x3e6f2a(0x157)](helper[a60_0x3e6f2a(0x155)](),a60_0x3e6f2a(0x1dd));if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a60_0x3e6f2a(0x157)](browserstackFolderPath,'.local-not-set.json');fs[a60_0x3e6f2a(0x1ed)](filePath)&&fs[a60_0x3e6f2a(0x1d9)](filePath);}}catch(a60_0x3a4f61){logger[a60_0x3e6f2a(0x16c)](a60_0x3e6f2a(0x182)+a60_0x3a4f61['message']);}process['argv'][a60_0x3e6f2a(0x170)](a60_0x3e6f2a(0x159))&&(!process[a60_0x3e6f2a(0x19d)][a60_0x3e6f2a(0x170)](a60_0x3e6f2a(0x1bf))&&process[a60_0x3e6f2a(0x19d)][a60_0x3e6f2a(0x1b1)](a60_0x3e6f2a(0x171)),!process['argv'][a60_0x3e6f2a(0x191)](_0x30c23d=>_0x30c23d[a60_0x3e6f2a(0x170)](a60_0x3e6f2a(0x1fc)))&&process[a60_0x3e6f2a(0x19d)][a60_0x3e6f2a(0x1b1)](a60_0x3e6f2a(0x1dc)),!process[a60_0x3e6f2a(0x19d)][a60_0x3e6f2a(0x170)](a60_0x3e6f2a(0x1c8))&&process[a60_0x3e6f2a(0x19d)][a60_0x3e6f2a(0x1b1)](a60_0x3e6f2a(0x18c)),helper['findAndReplace'](process[a60_0x3e6f2a(0x19d)],a60_0x3e6f2a(0x18f),a60_0x3e6f2a(0x1be)));PerformanceTester['start'](PerformanceEvents[a60_0x3e6f2a(0x1bd)]);function a60_0x1bb0(_0x4a5b9b,_0x180703){const _0x54e6c0=a60_0x54e6();return a60_0x1bb0=function(_0x1bb075,_0xdccca4){_0x1bb075=_0x1bb075-0x14d;let _0x201a65=_0x54e6c0[_0x1bb075];return _0x201a65;},a60_0x1bb0(_0x4a5b9b,_0x180703);}const a60_0x3dc910={};function a60_0x54e6(){const _0x2f8c32=['xNDLE','tMUmk','EfjhY','sdygD','some','HELP','run','./jasmine/command','mocha/lib/cli/run.js','testcafe','SDK_SETUP','--mochaRequire','--opts','PLAYWRIGHT','stack','pw:channel\x20auto-capture\x20seed\x20failed:\x20','getPwChannelLogPath','30YKjMBN','./mocha/command','./load/index','iQuqr','--package','5563612UZyWMg','TESTCAFE','BGahl','option','dLoXL','pw:channel','JEST','XAcBH','./jest/command','env','vAhtc','../../ats/src/index','end','gvFtm','dot-notation','BTrqK','unlinkSync','hlsfJ','help','--no-config','.browserstack','spawn','slice','684425hNSaWQ','SDKTestSuccessful','strict','./vanilla-js/command','usage:\x20$0\x20<command>\x20[args]','newman','path','getInstance','SWSVn','Show\x20help','assign','codeceptjs','playwright','existsSync','config','mCtbr','cqiDO','./codeceptjs/command','jasmine','oQuJy','../helpers/BrowserStackSetup','GtUCn','framework','11439750Svsecu','TruEq','lxaXH','getConfigPath','util','--config','fIHbD','LXyPH','./newman/command','./utils/constants','GHbxs','VANILLA','format','15477138SkHcra','child_process','MCEkO','setTestObservabilityDisable','iAgQg','homedir','yargs','join','Parsing\x20command\x20line\x20arguments','mocha','NIGHTWATCH','1646803AzblrF','./cucumber-js/command','ikaXv','nightwatch','./testcafe/command','DEBUG','RrctK','vdFeY','Ojlps','command','-pw:*','xJoHx','6878720WnQdVW','4pEDIrZ','LZmKg','INFO','pw:*','debug','../helpers/logger','GRtYV','HST','includes','--no-opts','IaChg','MOCHA','handler','version','RAecI','oOcqd','winstonLogger','nGcvl','split','../helpers/helper','tpdXV','CwruQ','vanilla','JASMINE','demandCommand','isUndefined','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','PMpRj','cucumber-js','Qkyck','DEBUG_FILE','NBhhE','djEMB','error','start','wGFom','--no-package','NkyMu','integrations','--require','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','find','vNDdN','./playwright/command','CUCUMBER','Runs\x20the\x20binary\x20with\x20load\x20command','setBrowserStackAutomationDisable','ZEwxe','ats','exitProcess','NYIaO','./integrations/command','node','argv','jest','fireFunnelTestEvent','IBPbQ','20WyBZOV','JEchb','SDK_CLEANUP','1983147NLdfGL','alias','rpyNv','boolean','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','Running\x20SDK\x20with\x20args\x20','../helpers/test-observability/constants','Xuzqk','IIcZW','DwjAB','map','vnXUa','-pw:channel','push','filter'];a60_0x54e6=function(){return _0x2f8c32;};return a60_0x54e6();}a60_0x3dc910[a60_0x3e6f2a(0x1d7)]=![];const argv=yargs['parserConfiguration'](a60_0x3dc910)['usage'](a60_0x3e6f2a(0x1e4))['alias']('v',a60_0x3e6f2a(0x175))['describe']('v')[a60_0x3e6f2a(0x1a5)]('h','help')['help'](a60_0x3e6f2a(0x1db))['showHelpOnFail'](!![],Constants['VERSION'][a60_0x3e6f2a(0x1b8)])[a60_0x3e6f2a(0x164)](a60_0x3e6f2a(0x19e),Constants[a60_0x3e6f2a(0x1cf)][a60_0x3e6f2a(0x16a)],function(_0x131ce4){const _0x57d5dc=a60_0x3e6f2a,_0x480f77={'cqiDO':_0x57d5dc(0x19e),'SWSVn':function(_0x448111,_0x5710bb,_0x20889d,_0x3af448,_0xdd50e0,_0x8b3a05){return _0x448111(_0x5710bb,_0x20889d,_0x3af448,_0xdd50e0,_0x8b3a05);},'MCEkO':function(_0x3fff3c,_0xfff416){return _0x3fff3c(_0xfff416);},'IBPbQ':_0x57d5dc(0x1d1)},_0x533c8f=process[_0x57d5dc(0x19d)][_0x57d5dc(0x1df)](0x2);helper['setTestObservabilityDisable'](),helper[_0x57d5dc(0x196)](),_0x131ce4[_0x57d5dc(0x1e2)](![]);const _0x2ba831=new BrowserStackSetup(_0x131ce4[_0x57d5dc(0x19d)],_0x480f77[_0x57d5dc(0x1f0)]);return _0x480f77[_0x57d5dc(0x1e8)](captureError,_0x480f77[_0x57d5dc(0x152)](require,_0x480f77[_0x57d5dc(0x1a0)]),_0x131ce4[_0x57d5dc(0x19d)],_0x2ba831,_0x533c8f,!![]);})['command']('jasmine',Constants[a60_0x3e6f2a(0x17f)][a60_0x3e6f2a(0x16a)],function(_0x2d2ded){const _0x2ac343=a60_0x3e6f2a,_0x3d077a={'ZwhgC':_0x2ac343(0x1f2),'TPknJ':function(_0x21e206,_0x310f29,_0x476f27,_0x4b773d,_0x5ee91c,_0xd09dcf){return _0x21e206(_0x310f29,_0x476f27,_0x4b773d,_0x5ee91c,_0xd09dcf);},'ZEwxe':function(_0x16adcf,_0x57b46c){return _0x16adcf(_0x57b46c);},'NBhhE':_0x2ac343(0x1ba)},_0x42faff=process[_0x2ac343(0x19d)][_0x2ac343(0x1df)](0x2);helper[_0x2ac343(0x153)](),helper[_0x2ac343(0x196)](),_0x2d2ded['strict'](![]);const _0x26c465=new BrowserStackSetup(_0x2d2ded[_0x2ac343(0x19d)],_0x3d077a['ZwhgC']);return _0x3d077a['TPknJ'](captureError,_0x3d077a[_0x2ac343(0x197)](require,_0x3d077a[_0x2ac343(0x187)]),_0x2d2ded[_0x2ac343(0x19d)],_0x26c465,_0x42faff,!![]);})[a60_0x3e6f2a(0x164)]('mocha',Constants[a60_0x3e6f2a(0x173)][a60_0x3e6f2a(0x16a)],_0x53bf78=>{const _0x4b3ed5=a60_0x3e6f2a,_0x3b0886={'oOcqd':function(_0x1c8b24,_0x462248,_0x5a3e18,_0x35158b){return _0x1c8b24(_0x462248,_0x5a3e18,_0x35158b);},'vdFeY':function(_0x305098,_0x51c773){return _0x305098(_0x51c773);},'BWiqg':_0x4b3ed5(0x1c5),'Ojlps':_0x4b3ed5(0x159),'xJoHx':_0x4b3ed5(0x158),'NYIaO':function(_0x4d001a,_0x497f44,_0x4a55ec){return _0x4d001a(_0x497f44,_0x4a55ec);},'BGahl':_0x4b3ed5(0x1bb),'djEMB':function(_0x271e80,_0x1e1fdb,_0x14da97){return _0x271e80(_0x1e1fdb,_0x14da97);},'tMUmk':'mocha/lib/cli/commands.js','lxaXH':'mocha/lib/cli/cli.js','ZCNLs':function(_0x52c0c5){return _0x52c0c5();}};process[_0x4b3ed5(0x19d)]=process[_0x4b3ed5(0x19d)]['slice'](0x1),helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable']();const _0x40eaac=new BrowserStackSetup(_0x53bf78[_0x4b3ed5(0x19d)],_0x3b0886[_0x4b3ed5(0x163)]);logger['debug'](_0x3b0886[_0x4b3ed5(0x166)]);const _0x13874d=_0x3b0886[_0x4b3ed5(0x19a)](requireModule,_0x3b0886[_0x4b3ed5(0x1cb)],_0x3b0886[_0x4b3ed5(0x163)]),_0x2dd3cf=_0x3b0886['djEMB'](requireModule,_0x3b0886[_0x4b3ed5(0x1b4)],_0x3b0886[_0x4b3ed5(0x163)]);delete _0x13874d[_0x4b3ed5(0x174)],_0x13874d['handler']=function(_0x17eb3a){const _0x28e5e6=_0x4b3ed5;return _0x3b0886[_0x28e5e6(0x177)](captureError,_0x3b0886[_0x28e5e6(0x162)](require,_0x3b0886['BWiqg']),_0x17eb3a,_0x40eaac);},_0x2dd3cf[_0x4b3ed5(0x1b9)]=_0x13874d;const {main:_0x47634f}=_0x3b0886[_0x4b3ed5(0x188)](requireModule,_0x3b0886[_0x4b3ed5(0x1f9)],_0x3b0886[_0x4b3ed5(0x163)]);_0x3b0886['ZCNLs'](_0x47634f);})[a60_0x3e6f2a(0x164)]('cucumber-js',Constants[a60_0x3e6f2a(0x194)][a60_0x3e6f2a(0x16a)],function(_0x287af8){const _0x2872f2=a60_0x3e6f2a,_0x14fbc8={'UeffJ':_0x2872f2(0x184),'vNDdN':function(_0x556528,_0x38e619,_0x41d7fc,_0x29deb3,_0x540a0e,_0x28b410){return _0x556528(_0x38e619,_0x41d7fc,_0x29deb3,_0x540a0e,_0x28b410);},'oQuJy':function(_0x5e9e1a,_0x40a90e){return _0x5e9e1a(_0x40a90e);},'LZmKg':_0x2872f2(0x15c)},_0x7520f2=process[_0x2872f2(0x19d)][_0x2872f2(0x1df)](0x2),_0x5aace2=new BrowserStackSetup(_0x287af8[_0x2872f2(0x19d)],_0x14fbc8['UeffJ']);return _0x14fbc8[_0x2872f2(0x192)](captureError,_0x14fbc8[_0x2872f2(0x1f3)](require,_0x14fbc8[_0x2872f2(0x169)]),_0x287af8['argv'],_0x5aace2,_0x7520f2,!![]);})[a60_0x3e6f2a(0x164)](a60_0x3e6f2a(0x19c),Constants[a60_0x3e6f2a(0x14e)][a60_0x3e6f2a(0x16a)],function(_0x42340b){const _0x3b87b1=a60_0x3e6f2a,_0x3985c6={'Xuzqk':_0x3b87b1(0x17e),'TruEq':function(_0x8b906a,_0x36e780){return _0x8b906a(_0x36e780);},'nGcvl':_0x3b87b1(0x1e5),'rpyNv':function(_0xfff90,_0x121bf1,_0x576803,_0x3d7574,_0x18d84e){return _0xfff90(_0x121bf1,_0x576803,_0x3d7574,_0x18d84e);},'ikaXv':function(_0x306959,_0x1d0c63){return _0x306959(_0x1d0c63);},'IIcZW':_0x3b87b1(0x1ff),'dLoXL':function(_0x25184a,_0x46603f,_0x58fea2,_0x271391,_0x1357a9){return _0x25184a(_0x46603f,_0x58fea2,_0x271391,_0x1357a9);},'gXaUN':_0x3b87b1(0x1e3)},_0x2874bd=process[_0x3b87b1(0x19d)][_0x3b87b1(0x1df)](0x2),_0xb68e12=new BrowserStackSetup(_0x42340b[_0x3b87b1(0x19d)],_0x3985c6[_0x3b87b1(0x1ab)]),_0x52e67d=_0xb68e12?_0xb68e12[_0x3b87b1(0x1ee)]:null;if(_0x3985c6[_0x3b87b1(0x1f8)](isNewman,_0x52e67d))return _0xb68e12[_0x3b87b1(0x1f6)]=_0x3985c6[_0x3b87b1(0x179)],global[_0x3b87b1(0x1f6)]=_0x3985c6[_0x3b87b1(0x179)],_0x3985c6[_0x3b87b1(0x1a6)](captureError,_0x3985c6['ikaXv'](require,_0x3985c6[_0x3b87b1(0x1ac)]),_0x42340b['argv'],_0xb68e12,_0x2874bd);return _0x3985c6[_0x3b87b1(0x1cd)](captureError,_0x3985c6[_0x3b87b1(0x15d)](require,_0x3985c6['gXaUN']),_0x42340b['argv'],_0xb68e12,_0x2874bd);})[a60_0x3e6f2a(0x164)](a60_0x3e6f2a(0x15e),Constants[a60_0x3e6f2a(0x15a)][a60_0x3e6f2a(0x16a)],function(_0x1d957e){const _0xdc3779=a60_0x3e6f2a,_0x5a1949={'gCCZu':_0xdc3779(0x15e),'mZmWc':function(_0x7b1e,_0x1adb6b,_0x545fe5,_0x4c4ecd,_0x269469){return _0x7b1e(_0x1adb6b,_0x545fe5,_0x4c4ecd,_0x269469);},'NkyMu':function(_0x2f10e7,_0x5942f1){return _0x2f10e7(_0x5942f1);},'lHRPs':'./nightwatch/command'},_0x340eb0=process['argv'][_0xdc3779(0x1df)](0x2),_0x56879f=new BrowserStackSetup(_0x1d957e[_0xdc3779(0x19d)],_0x5a1949['gCCZu']);return _0x5a1949['mZmWc'](captureError,_0x5a1949[_0xdc3779(0x18d)](require,_0x5a1949['lHRPs']),_0x1d957e[_0xdc3779(0x19d)],_0x56879f,_0x340eb0);})[a60_0x3e6f2a(0x164)](a60_0x3e6f2a(0x1eb),Constants['CODECEPTJS'][a60_0x3e6f2a(0x16a)],function(_0x129c3a){const _0x159531=a60_0x3e6f2a,_0x15e80b={'EfjhY':_0x159531(0x1eb),'CwruQ':function(_0x1518d3,_0xeba36c,_0x11d668,_0x2d0549,_0x22f583){return _0x1518d3(_0xeba36c,_0x11d668,_0x2d0549,_0x22f583);},'fIHbD':function(_0x14993a,_0x3654c4){return _0x14993a(_0x3654c4);},'Ozypd':_0x159531(0x1f1)},_0x813784=process['argv']['slice'](0x2),_0x3bcf1d=new BrowserStackSetup(_0x129c3a[_0x159531(0x19d)],_0x15e80b[_0x159531(0x1b5)]);return _0x15e80b[_0x159531(0x17d)](captureError,_0x15e80b[_0x159531(0x1fd)](require,_0x15e80b['Ozypd']),_0x129c3a['argv'],_0x3bcf1d,_0x813784);})[a60_0x3e6f2a(0x164)](a60_0x3e6f2a(0x198),Constants[a60_0x3e6f2a(0x16f)]['INFO'],function(_0x19af71){const _0x1310c6=a60_0x3e6f2a,_0x1d0df5={'wGFom':function(_0x2bbb74,_0xb51739,_0x4d1fe9){return _0x2bbb74(_0xb51739,_0x4d1fe9);},'vAhtc':function(_0x12511a,_0x182f97){return _0x12511a(_0x182f97);},'mCtbr':_0x1310c6(0x1d4)},_0x136b73=process['argv'][_0x1310c6(0x1df)](0x2);return _0x1d0df5[_0x1310c6(0x18b)](captureError,_0x1d0df5[_0x1310c6(0x1d3)](require,_0x1d0df5[_0x1310c6(0x1ef)]),_0x19af71);})[a60_0x3e6f2a(0x164)](a60_0x3e6f2a(0x18e),Constants['INTEGRATIONS'][a60_0x3e6f2a(0x16a)],function(_0x2cb33f){const _0x4e814d={'tyOEn':function(_0x47931f,_0x5a4a82){return _0x47931f(_0x5a4a82);}};return _0x4e814d['tyOEn'](runIntegrations,_0x2cb33f);})['command'](a60_0x3e6f2a(0x1ec),Constants[a60_0x3e6f2a(0x1c0)][a60_0x3e6f2a(0x16a)],function(_0x3e02b1){const _0x30bc20=a60_0x3e6f2a,_0x9aa545={'DwjAB':_0x30bc20(0x1ce),'Qkyck':function(_0x3e3643,_0x4c37b4){return _0x3e3643&&_0x4c37b4;},'iQuqr':function(_0x349a7,_0x4ccfdf,_0x17f412,_0x5d4191,_0x18c7be,_0x32bb8f){return _0x349a7(_0x4ccfdf,_0x17f412,_0x5d4191,_0x18c7be,_0x32bb8f);},'RAecI':function(_0x878d93,_0x87c460){return _0x878d93(_0x87c460);},'GHbxs':_0x30bc20(0x193)},_0x2d8871=process[_0x30bc20(0x19d)][_0x30bc20(0x1df)](0x2);helper[_0x30bc20(0x1fa)](process[_0x30bc20(0x19d)])&&(process[_0x30bc20(0x1d2)]['BROWSERSTACK_CONFIG_FILE_PATH']=helper[_0x30bc20(0x1fa)](process[_0x30bc20(0x19d)]));helper[_0x30bc20(0x153)](),helper[_0x30bc20(0x196)]();const _0x4745c2=new BrowserStackSetup(_0x3e02b1[_0x30bc20(0x19d)],FRAMEWORKS['PLAYWRIGHT']);try{if(!_0x4745c2[_0x30bc20(0x1ee)]||!_0x4745c2[_0x30bc20(0x1ee)]['disableAutoCaptureLogs']){const _0x4cc38b=_0x9aa545[_0x30bc20(0x1ad)],_0x3b5f05=process[_0x30bc20(0x1d2)][_0x30bc20(0x160)]||'',_0x60d3aa=_0x3b5f05[_0x30bc20(0x17a)](',')[_0x30bc20(0x1ae)](_0x4d96ec=>_0x4d96ec['trim']())[_0x30bc20(0x1b2)](Boolean),_0x37c428=_0x60d3aa['some'](_0x5715a8=>_0x5715a8===_0x30bc20(0x1b0)||_0x5715a8===_0x30bc20(0x165)||_0x5715a8==='-*'),_0x2f9b33=_0x60d3aa[_0x30bc20(0x1b7)](_0x521214=>_0x521214===_0x4cc38b||_0x521214===_0x30bc20(0x16b)||_0x521214==='*');if(_0x9aa545[_0x30bc20(0x185)](!_0x37c428,!_0x2f9b33)){const _0x32debd=helper[_0x30bc20(0x1c3)]();_0x32debd&&(process[_0x30bc20(0x1d2)][_0x30bc20(0x160)]=_0x3b5f05?_0x3b5f05+','+_0x4cc38b:_0x4cc38b,!process[_0x30bc20(0x1d2)][_0x30bc20(0x186)]&&(process[_0x30bc20(0x1d2)]['DEBUG_FILE']=_0x32debd));}}}catch(_0x4d0833){logger[_0x30bc20(0x16c)](_0x30bc20(0x1c2)+util[_0x30bc20(0x14f)](_0x4d0833));}return _0x9aa545[_0x30bc20(0x1c7)](captureError,_0x9aa545[_0x30bc20(0x176)](require,_0x9aa545[_0x30bc20(0x14d)]),_0x3e02b1['argv'],_0x4745c2,_0x2d8871,!![]);})['command'](a60_0x3e6f2a(0x1bc),Constants[a60_0x3e6f2a(0x1ca)]['INFO'],function(_0x984a51){const _0x68b229=a60_0x3e6f2a,_0x196218={'vnXUa':_0x68b229(0x1bc),'RrctK':function(_0x24a910,_0x21282e,_0xbfc545,_0x1319be,_0x49609b,_0x1c8600){return _0x24a910(_0x21282e,_0xbfc545,_0x1319be,_0x49609b,_0x1c8600);},'gvFtm':function(_0x2f1e8c,_0x48a0db){return _0x2f1e8c(_0x48a0db);},'LXyPH':_0x68b229(0x15f)},_0x45351f=process[_0x68b229(0x19d)]['slice'](0x2),_0x2e6372=new BrowserStackSetup(_0x984a51[_0x68b229(0x19d)],_0x196218[_0x68b229(0x1af)]);return _0x196218[_0x68b229(0x161)](captureError,_0x196218[_0x68b229(0x1d6)](require,_0x196218[_0x68b229(0x1fe)]),_0x984a51['argv'],_0x2e6372,_0x45351f,!![]);})[a60_0x3e6f2a(0x164)]('load\x20[subcommand]',a60_0x3e6f2a(0x195),function(_0x380731){const _0x5b88fc=a60_0x3e6f2a,_0x19046c={};_0x19046c[_0x5b88fc(0x1d8)]='help',_0x19046c[_0x5b88fc(0x183)]=_0x5b88fc(0x1a7),_0x19046c[_0x5b88fc(0x1f5)]=_0x5b88fc(0x1e9);const _0x12460a=_0x19046c;return _0x380731[_0x5b88fc(0x1db)](![])[_0x5b88fc(0x1cc)](_0x12460a[_0x5b88fc(0x1d8)],{'alias':'h','type':_0x12460a[_0x5b88fc(0x183)],'describe':_0x12460a[_0x5b88fc(0x1f5)]})[_0x5b88fc(0x1e2)](![])[_0x5b88fc(0x199)](![]);},function(_0x104e91){const _0x505e99=a60_0x3e6f2a,_0xabd43c={'hlsfJ':function(_0x13ce34,_0x1f8574,_0x4fabb2){return _0x13ce34(_0x1f8574,_0x4fabb2);},'xNDLE':function(_0x53dc8c,_0x355609){return _0x53dc8c(_0x355609);},'sdygD':_0x505e99(0x1c6)},_0x3dc0b0={};return _0x3dc0b0[_0x505e99(0x19d)]=_0x104e91,_0xabd43c[_0x505e99(0x1da)](captureError,_0xabd43c[_0x505e99(0x1b3)](require,_0xabd43c[_0x505e99(0x1b6)]),_0x3dc0b0);})[a60_0x3e6f2a(0x164)]('newman',Constants['NEWMAN'][a60_0x3e6f2a(0x16a)],function(_0x157cdd){const _0x13dfbe=a60_0x3e6f2a,_0x5e15b0={'tpdXV':'newman','JEchb':function(_0x33c3df,_0xb253a5,_0x48bca6,_0xf061fc,_0x28d0fb){return _0x33c3df(_0xb253a5,_0x48bca6,_0xf061fc,_0x28d0fb);},'XAcBH':function(_0x244941,_0x300aa9){return _0x244941(_0x300aa9);},'GRtYV':_0x13dfbe(0x1ff)},_0x33f308=process[_0x13dfbe(0x19d)][_0x13dfbe(0x1df)](0x2);helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable'](),_0x157cdd[_0x13dfbe(0x1e2)](![]);const _0x143a1a=new BrowserStackSetup(_0x157cdd['argv'],_0x5e15b0[_0x13dfbe(0x17c)]);return _0x5e15b0[_0x13dfbe(0x1a2)](captureError,_0x5e15b0[_0x13dfbe(0x1d0)](require,_0x5e15b0[_0x13dfbe(0x16e)]),_0x157cdd['argv'],_0x143a1a,_0x33f308);})[a60_0x3e6f2a(0x180)](0x1,a60_0x3e6f2a(0x1a8))['wrap'](null)['argv'];!helper[a60_0x3e6f2a(0x181)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x3e6f2a(0x198)&&console[a60_0x3e6f2a(0x189)](a60_0x3e6f2a(0x190));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a61_0x57b66f=a61_0x39f1;(function(_0x5b9a32,_0x4f9497){const _0x280d84=a61_0x39f1,_0x3a3d71=_0x5b9a32();while(!![]){try{const _0x558f11=-parseInt(_0x280d84(0x1da))/0x1*(parseInt(_0x280d84(0x1e7))/0x2)+-parseInt(_0x280d84(0x1e4))/0x3*(-parseInt(_0x280d84(0x1d8))/0x4)+-parseInt(_0x280d84(0x1cf))/0x5+parseInt(_0x280d84(0x1e8))/0x6*(parseInt(_0x280d84(0x1b3))/0x7)+-parseInt(_0x280d84(0x1b5))/0x8*(-parseInt(_0x280d84(0x1b4))/0x9)+-parseInt(_0x280d84(0x1db))/0xa*(parseInt(_0x280d84(0x1d2))/0xb)+parseInt(_0x280d84(0x1d0))/0xc*(parseInt(_0x280d84(0x1cb))/0xd);if(_0x558f11===_0x4f9497)break;else _0x3a3d71['push'](_0x3a3d71['shift']());}catch(_0x1ab628){_0x3a3d71['push'](_0x3a3d71['shift']());}}}(a61_0x15e7,0x837f6));const fs=require('fs'),helper=require(a61_0x57b66f(0x1ec)),utilities=require(a61_0x57b66f(0x1dc)),yaml=require(a61_0x57b66f(0x1e1)),yargs=require(a61_0x57b66f(0x1b7)),logger=require(a61_0x57b66f(0x1ad))['winstonLogger'],configFileTemplate=__dirname+a61_0x57b66f(0x1b9),configFileTemplatePW=__dirname+a61_0x57b66f(0x1a7),configFile=process[a61_0x57b66f(0x1ac)]()+a61_0x57b66f(0x1f5),packageFile=process['cwd']()+a61_0x57b66f(0x1ca),frameworks=['mocha',a61_0x57b66f(0x1ed),a61_0x57b66f(0x1d5),a61_0x57b66f(0x1d1),a61_0x57b66f(0x1be),a61_0x57b66f(0x1b1),a61_0x57b66f(0x1b0)];let config;logger[a61_0x57b66f(0x1bc)](a61_0x57b66f(0x1ae)),createConfigurationFile(yargs[a61_0x57b66f(0x1b2)][a61_0x57b66f(0x1d4)],yargs[a61_0x57b66f(0x1b2)]['key'],yargs[a61_0x57b66f(0x1b2)][a61_0x57b66f(0x1b0)]);function a61_0x39f1(_0x2d19c3,_0x279f75){const _0x15e74c=a61_0x15e7();return a61_0x39f1=function(_0x39f1e8,_0x72d264){_0x39f1e8=_0x39f1e8-0x1a6;let _0x1393c6=_0x15e74c[_0x39f1e8];return _0x1393c6;},a61_0x39f1(_0x2d19c3,_0x279f75);}try{sdkSetup();}catch(a61_0x4b8433){logger[a61_0x57b66f(0x1c0)](a61_0x57b66f(0x1ee)+a61_0x4b8433);}addScriptInPackageJson();function createConfigurationFile(_0x1b48d3,_0x24e723,_0x292801=![]){const _0x597564=a61_0x57b66f,_0x3f7b1d={};_0x3f7b1d['NLUYX']=_0x597564(0x1f7),_0x3f7b1d[_0x597564(0x1bb)]=_0x597564(0x1cc),_0x3f7b1d[_0x597564(0x1f1)]=_0x597564(0x1e0);const _0x5ce693=_0x3f7b1d;try{let _0x430928=fs[_0x597564(0x1c5)](_0x292801?configFileTemplatePW:configFileTemplate,_0x5ce693[_0x597564(0x1af)]);_0x1b48d3&&(_0x430928=_0x430928[_0x597564(0x1e2)](_0x5ce693[_0x597564(0x1bb)],_0x1b48d3)),_0x24e723&&(_0x430928=_0x430928[_0x597564(0x1e2)](_0x5ce693[_0x597564(0x1f1)],_0x24e723)),config=yaml[_0x597564(0x1f4)](_0x430928),fs[_0x597564(0x1c9)](configFile,_0x430928,_0x1e25f3=>{const _0x17d5c6=_0x597564;_0x1e25f3&&logger[_0x17d5c6(0x1e3)](_0x1e25f3);});}catch(_0x48b271){logger[_0x597564(0x1e3)](_0x48b271);}}function a61_0x15e7(){const _0x816773=['HniGS','RgbHM','writeFileSync','/package.json','14599jhkhpP','YOUR_USERNAME','scripts','SDKSetup','5251450lVWmUn','11016LnAggE','node','1199rjPHhq','isUndefined','username','cucumber-js','\x20&&\x20npm\x20update\x20browserstack-node-sdk','gbYkw','4EWhNNT','length','37XynGLK','67570uTMvWH','../helpers/utilities','aTvON','djwBd','postinstall','YOUR_ACCESS_KEY','js-yaml','replace','error','882237ewMDmO','includes','browserstack-node-sdk','16706IivkyR','5164548aZzkMt','split','gumWr','EQVvk','../helpers/helper','jest','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','splice','push','mubnl','-browserstack','node-setup','load','/browserstack.yml','indexOf','utf8','Setup\x20completed','/../../browserstack.pw.yml.sample','npm\x20update\x20browserstack-node-sdk','browserstack-node-sdk\x20','parse','cFMiM','cwd','../helpers/logger','Creating\x20configuration\x20file...','NLUYX','playwright','codeceptjs','argv','7USqmcv','4038543Qxnjyb','8WvquWX','BZQTL','yargs','mDJec','/../../browserstack.yml.sample','sEQxp','aHIoQ','info','stringify','nightwatch','eCPMU','debug','JZLlR','fireFunnelTestEvent','cpdes','entries','readFileSync','join'];a61_0x15e7=function(){return _0x816773;};return a61_0x15e7();}function addPostInstallScript(_0x31673d,_0x3777b8){const _0x47cead=a61_0x57b66f,_0x5ca60e={};_0x5ca60e[_0x47cead(0x1b8)]=_0x47cead(0x1df),_0x5ca60e[_0x47cead(0x1c1)]=_0x47cead(0x1a8),_0x5ca60e[_0x47cead(0x1c8)]=_0x47cead(0x1d6);const _0x4815ce=_0x5ca60e;let _0x174cf1=_0x31673d[_0x4815ce[_0x47cead(0x1b8)]];if(_0x174cf1&&_0x174cf1[_0x47cead(0x1e5)](_0x4815ce[_0x47cead(0x1c1)]))return;!_0x174cf1?_0x174cf1=_0x4815ce[_0x47cead(0x1c1)]:_0x174cf1+=_0x4815ce[_0x47cead(0x1c8)],_0x3777b8['push']([_0x4815ce[_0x47cead(0x1b8)],_0x174cf1]);}function addScriptInPackageJson(){const _0x174d93=a61_0x57b66f,_0xce5714={'cFMiM':'utf8','cpdes':function(_0x4d74fd,_0x30952d){return _0x4d74fd<_0x30952d;},'gbYkw':function(_0x13d010,_0x20027c,_0x194685){return _0x13d010(_0x20027c,_0x194685);},'sEQxp':function(_0x5d5964,_0x47f5c2){return _0x5d5964<_0x47f5c2;},'EQVvk':function(_0x32b0e2,_0x4f71a1){return _0x32b0e2!==_0x4f71a1;},'aTvON':'Adding\x20new\x20script(s)\x20in\x20package.json...'},_0xffa78f=JSON[_0x174d93(0x1aa)](fs[_0x174d93(0x1c5)](packageFile,_0xce5714[_0x174d93(0x1ab)])),_0x128cad=[];for(let _0x127718=0x0;_0xce5714[_0x174d93(0x1c3)](_0x127718,frameworks[_0x174d93(0x1d9)]);_0x127718+=0x1){const _0x4d8977=_0xce5714[_0x174d93(0x1d7)](findScriptsWithFramework,_0xffa78f[_0x174d93(0x1cd)],frameworks[_0x127718]);for(let _0x8b827c=0x0;_0xce5714['sEQxp'](_0x8b827c,_0x4d8977[_0x174d93(0x1d9)]);_0x8b827c+=0x1){_0x128cad['push'](_0xce5714[_0x174d93(0x1d7)](getUpdatedCommand,_0xffa78f[_0x174d93(0x1cd)],_0x4d8977[_0x8b827c]));}_0xce5714[_0x174d93(0x1d7)](addPostInstallScript,_0xffa78f[_0x174d93(0x1cd)],_0x128cad);}const _0x265ab8={..._0xffa78f[_0x174d93(0x1cd)]},_0x453560=_0x265ab8;for(let _0x5c6ae8=0x0;_0xce5714[_0x174d93(0x1ba)](_0x5c6ae8,_0x128cad[_0x174d93(0x1d9)]);_0x5c6ae8+=0x1){_0x453560[_0x128cad[_0x5c6ae8][0x0]]=_0x128cad[_0x5c6ae8][0x1];}_0xce5714[_0x174d93(0x1eb)](JSON[_0x174d93(0x1bd)](_0xffa78f[_0x174d93(0x1cd)]),JSON[_0x174d93(0x1bd)](_0x453560))&&(logger[_0x174d93(0x1bc)](_0xce5714[_0x174d93(0x1dd)]),_0xffa78f[_0x174d93(0x1cd)]=_0x453560,fs[_0x174d93(0x1c9)](packageFile,JSON['stringify'](_0xffa78f,null,0x2),_0x49b069=>{const _0x94e991=_0x174d93;_0x49b069&&logger[_0x94e991(0x1e3)](_0x49b069);}));};function findScriptsWithFramework(_0x99c9db,_0x2010a2){const _0x34618c=a61_0x57b66f,_0xfad000={};_0xfad000['djwBd']=function(_0x53c544,_0x31c7dd){return _0x53c544<_0x31c7dd;},_0xfad000[_0x34618c(0x1bf)]=_0x34618c(0x1e6);const _0x1f585c=_0xfad000,_0x598e1e=[],_0x1a1487=Object[_0x34618c(0x1c4)](_0x99c9db);for(let _0xd68382=0x0;_0x1f585c[_0x34618c(0x1de)](_0xd68382,_0x1a1487['length']);_0xd68382+=0x1){_0x1a1487[_0xd68382][0x1]['includes'](_0x2010a2)&&!_0x1a1487[_0xd68382][0x1][_0x34618c(0x1e5)](_0x1f585c[_0x34618c(0x1bf)])&&_0x598e1e[_0x34618c(0x1f0)](_0x1a1487[_0xd68382][0x0]);}return _0x598e1e;}function getUpdatedCommand(_0x39386d,_0x168416){const _0x5d8182=a61_0x57b66f,_0x11da81={};_0x11da81['yWckl']=function(_0x1795a6,_0x251986){return _0x1795a6!==_0x251986;},_0x11da81[_0x5d8182(0x1ea)]=_0x5d8182(0x1e6),_0x11da81[_0x5d8182(0x1c7)]=function(_0x4907a2,_0xfe4769){return _0x4907a2===_0xfe4769;};const _0x5cfd01=_0x11da81,_0x28fc93=_0x168416+_0x5d8182(0x1f2),_0x22eaa1=_0x39386d[_0x168416],_0x4f2137=_0x22eaa1[_0x5d8182(0x1e9)]('\x20');for(const _0x1c5d04 of frameworks){if(_0x5cfd01['yWckl'](_0x4f2137[_0x5d8182(0x1f6)](_0x1c5d04),-0x1)){_0x4f2137[_0x5d8182(0x1ef)](_0x4f2137[_0x5d8182(0x1f6)](_0x1c5d04),0x0,_0x5cfd01['gumWr']);break;}}let _0x499acc=_0x4f2137[_0x5d8182(0x1c6)]('\x20');return _0x5cfd01[_0x5d8182(0x1c7)](_0x499acc,_0x22eaa1)&&(_0x499acc=_0x5d8182(0x1a9)+_0x22eaa1),[_0x28fc93,_0x499acc];}function sdkSetup(){const _0x260374=a61_0x57b66f,_0xa4a783={};_0xa4a783['BZQTL']=_0x260374(0x1f3),_0xa4a783['FedYT']=_0x260374(0x1ce);const _0x1f55d6=_0xa4a783;if(helper[_0x260374(0x1d3)](config))return;config['source']=_0x1f55d6[_0x260374(0x1b6)];try{utilities[_0x260374(0x1c2)](_0x1f55d6['FedYT'],{},config,'');}catch(_0x3e44fb){logger[_0x260374(0x1c0)](_0x260374(0x1ee)+_0x3e44fb);}}logger[a61_0x57b66f(0x1bc)](a61_0x57b66f(0x1a6));
|