browserstack-node-sdk 1.64.3 → 1.65.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages-accessibility_pb.d.ts +70 -0
- package/generated/sdk-messages-accessibility_pb.js +545 -1
- package/generated/sdk_grpc_pb.d.ts +5 -0
- package/generated/sdk_grpc_pb.js +33 -0
- package/package.json +3 -3
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.js +1 -0
- 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/reporterArgs.js +1 -0
- 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/nodeGenericTestFramework.js +1 -0
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53_0x35413e=a53_0x58ad;function a53_0x21b8(){const _0x312e61=['parse','getTraceZipDir','uXzAE','tests','getProjectIdFromTestInfo','homedir','MGDus','stringify','getIntegrations','yJfWV','error','getTestUUID','getStoreDirName','shutdown','BS_TESTOPS_BUILD_HASHED_ID','skvma','uuid','values','361352bkpnLK','default','recursive','string','mkdirSync','Swtpv','setIntegrations','existsSync','appendToTracePaths','106560UNmmKs','getTestDetails','writeFileSync','format','force','retry','getTestIdFromTestInfo','930768SxccFt','.txt','AQIeZ','winstonLogger','wiRTz','getTraceFilePaths','_platformDetails.json','rmSync','82TvjXdl','12866VTTHtz','WXmWs','../../../helpers/helper','forEach','addTraceFilePath','wLXwX','ecpGt','readdirSync','Error\x20reading\x20trace\x20file\x20paths:\x20%s','../../../helpers/logger','traceZipPaths','riHKD','filePath','2753937GBLblj','VJeyt','_test','CZSkj','toString','bbVio','DcaPs','push','setTestDetails','YnbqA','getTestRunIdFromTestInfo','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','getFilePath','Error\x20writing\x20trace\x20file:\x20','.json','__projectId','5RrAjoP','debug','1101196xqqWFA','_traceZipPaths.json','path','CbHwj','getStoreDirPath','TNjvm','util','some','exports','BBNpO','getDirPath','_projectId','Error\x20handling\x20trace\x20file\x20paths:\x20','2011lYFHbM','readFileSync','join','appendFileSync','fZezR','sxmzs','project','setup','message','_integrations.json','MyPsT','utf8','trace_','testId','186CteWWZ','env'];a53_0x21b8=function(){return _0x312e61;};return a53_0x21b8();}function a53_0x58ad(_0x26cfe7,_0x1e5d25){const _0x21b8a0=a53_0x21b8();return a53_0x58ad=function(_0x58ad55,_0x3620fe){_0x58ad55=_0x58ad55-0x17e;let _0x37d96a=_0x21b8a0[_0x58ad55];return _0x37d96a;},a53_0x58ad(_0x26cfe7,_0x1e5d25);}(function(_0x5ce151,_0x568542){const _0x4b983d=a53_0x58ad,_0x33d314=_0x5ce151();while(!![]){try{const _0x57ff07=-parseInt(_0x4b983d(0x188))/0x1*(parseInt(_0x4b983d(0x1c2))/0x2)+-parseInt(_0x4b983d(0x1ba))/0x3+-parseInt(_0x4b983d(0x1e2))/0x4*(-parseInt(_0x4b983d(0x1e0))/0x5)+parseInt(_0x4b983d(0x196))/0x6*(-parseInt(_0x4b983d(0x1c3))/0x7)+parseInt(_0x4b983d(0x1aa))/0x8+parseInt(_0x4b983d(0x1d0))/0x9+-parseInt(_0x4b983d(0x1b3))/0xa;if(_0x57ff07===_0x568542)break;else _0x33d314['push'](_0x33d314['shift']());}catch(_0x58e727){_0x33d314['push'](_0x33d314['shift']());}}}(a53_0x21b8,0x288e8));const fs=require('fs'),path=require(a53_0x35413e(0x1e4)),{v4:uuidv4}=require(a53_0x35413e(0x1a8)),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require(a53_0x35413e(0x1c5)),logger=require(a53_0x35413e(0x1cc))[a53_0x35413e(0x1bd)],{getLogDir}=require(a53_0x35413e(0x1cc)),util=require(a53_0x35413e(0x181)),helper=require('../../../helpers/helper');class TestDetails{static [a53_0x35413e(0x19b)]={};static[a53_0x35413e(0x18f)](){const _0x1510ef=a53_0x35413e;this['shutdown']();const _0x1f94f0={};_0x1f94f0[_0x1510ef(0x1ac)]=!![],fs['mkdirSync'](this[_0x1510ef(0x185)](),_0x1f94f0);const _0x53f58e={};_0x53f58e['recursive']=!![],fs[_0x1510ef(0x1ae)](this['getTraceZipDir'](),_0x53f58e);}static['getStoreDirName'](){const _0x4ef2e8=a53_0x35413e,_0x5961cf={};_0x5961cf[_0x4ef2e8(0x192)]=function(_0x331543,_0x268029){return _0x331543+_0x268029;},_0x5961cf[_0x4ef2e8(0x19e)]=function(_0x2752a8,_0x1e590b){return _0x2752a8+_0x1e590b;};const _0x3fb102=_0x5961cf;return _0x3fb102['MyPsT'](_0x3fb102[_0x4ef2e8(0x19e)](TEMP_STORE_DIR_NAME,'-'),process[_0x4ef2e8(0x197)][_0x4ef2e8(0x1a6)]);}static[a53_0x35413e(0x17f)](){const _0x1e4cfc=a53_0x35413e,_0xa00c7b={};_0xa00c7b[_0x1e4cfc(0x1c9)]=function(_0xefd341,_0x54a9b0){return _0xefd341+_0x54a9b0;},_0xa00c7b[_0x1e4cfc(0x18d)]=_0x1e4cfc(0x1ab);const _0x119538=_0xa00c7b;return path['join'](_0x119538[_0x1e4cfc(0x1c9)](_0x119538['ecpGt'](TEMP_STORE_DIR_NAME,'-'),process[_0x1e4cfc(0x197)][_0x1e4cfc(0x1a6)]||_0x119538[_0x1e4cfc(0x18d)]));}static[a53_0x35413e(0x199)](){const _0x26487d=a53_0x35413e,_0x181941={};_0x181941[_0x26487d(0x1d6)]=_0x26487d(0x1cd);const _0x35b6bc=_0x181941;return path[_0x26487d(0x18a)](this[_0x26487d(0x17f)](),_0x35b6bc['DcaPs']);}static[a53_0x35413e(0x185)](){const _0x11355e=a53_0x35413e;return TestDetails[_0x11355e(0x1a4)]();}static[a53_0x35413e(0x1dc)](_0x9b0186){const _0x55438a=a53_0x35413e,_0x3ee223={};_0x3ee223[_0x55438a(0x180)]=function(_0x5baacd,_0x111c2c){return _0x5baacd+_0x111c2c;},_0x3ee223['WXmWs']=_0x55438a(0x1de);const _0x196ed8=_0x3ee223;return path[_0x55438a(0x18a)](this[_0x55438a(0x185)](),_0x196ed8[_0x55438a(0x180)](_0x9b0186,_0x196ed8[_0x55438a(0x1c4)]));}static[a53_0x35413e(0x1da)](_0x5785c2){const _0x1a537a=a53_0x35413e,_0x1868e0={};_0x1868e0[_0x1a537a(0x19a)]=function(_0x38b5c1,_0x12c69b){return _0x38b5c1+_0x12c69b;},_0x1868e0[_0x1a537a(0x1d3)]=function(_0x38b077,_0x11d4de){return _0x38b077+_0x11d4de;};const _0x5bf9ee=_0x1868e0;return _0x5bf9ee[_0x1a537a(0x19a)](_0x5bf9ee[_0x1a537a(0x1d3)](this['getTestIdFromTestInfo'](_0x5785c2),'-'),_0x5785c2[_0x1a537a(0x1b8)]);}static[a53_0x35413e(0x19c)](_0x3cdc26){const _0x5c0551=a53_0x35413e,_0x59d23d={'YnbqA':function(_0xbe0931,_0x6ead34,_0x4d232a){return _0xbe0931(_0x6ead34,_0x4d232a);},'ivIxo':'_test','wLXwX':_0x5c0551(0x186),'wiRTz':function(_0x4d7cd1,_0x5404e2,_0x4b5798){return _0x4d7cd1(_0x5404e2,_0x4b5798);},'ZqhEo':_0x5c0551(0x18e),'CbHwj':_0x5c0551(0x1df)};return _0x59d23d[_0x5c0551(0x1d9)](nestedKeyValue,_0x3cdc26,[_0x59d23d['ivIxo'],_0x59d23d[_0x5c0551(0x1c8)]])||_0x59d23d[_0x5c0551(0x1be)](nestedKeyValue,_0x3cdc26,[_0x59d23d['ZqhEo'],_0x59d23d[_0x5c0551(0x17e)]]);}static[a53_0x35413e(0x1b9)](_0x21a9a7){const _0x5f31b5=a53_0x35413e,_0x2494fb={'NtRcV':function(_0x497e68,_0x4fd932,_0x5919fd){return _0x497e68(_0x4fd932,_0x5919fd);},'VJeyt':_0x5f31b5(0x1d2)};return _0x2494fb['NtRcV'](nestedKeyValue,_0x21a9a7,[_0x2494fb[_0x5f31b5(0x1d1)],'id'])||_0x21a9a7[_0x5f31b5(0x195)];}static[a53_0x35413e(0x1a3)](_0x258d16){const _0x17354b=a53_0x35413e,_0x222e6c={'BBNpO':function(_0x74eaa9,_0x550741){return _0x74eaa9===_0x550741;},'AQIeZ':_0x17354b(0x1ad),'skvma':function(_0x4ba903){return _0x4ba903();}};if(this[_0x17354b(0x19b)][_0x258d16]&&_0x222e6c[_0x17354b(0x184)](typeof this[_0x17354b(0x19b)][_0x258d16][_0x17354b(0x1a8)],_0x222e6c[_0x17354b(0x1bc)]))return this['tests'][_0x258d16][_0x17354b(0x1a8)];const _0x202289=this[_0x17354b(0x1dc)](_0x258d16);if(_0x202289&&fs[_0x17354b(0x1b1)](_0x202289)){const _0x1205c0=JSON[_0x17354b(0x198)](fs[_0x17354b(0x189)](_0x202289)['toString']());return this[_0x17354b(0x19b)][_0x258d16]=_0x1205c0,this[_0x17354b(0x19b)][_0x258d16][_0x17354b(0x1a8)];}return this['tests'][_0x258d16]={'uuid':_0x222e6c[_0x17354b(0x1a7)](uuidv4)},fs[_0x17354b(0x1b5)](_0x202289,JSON['stringify'](this[_0x17354b(0x19b)][_0x258d16])),this[_0x17354b(0x19b)][_0x258d16]['uuid'];}static['getAccessibilityPlatformValidation'](_0x2eacc0){const _0x36f056=a53_0x35413e,_0x1e968b=path[_0x36f056(0x18a)](this['getDirPath'](),_0x2eacc0+'_platformDetails.json');if(_0x1e968b&&fs[_0x36f056(0x1b1)](_0x1e968b))return fs[_0x36f056(0x189)](_0x1e968b)[_0x36f056(0x1d4)]();}static['setAccessibilityPlatformValidation'](_0x444986,_0x1529e6){const _0x19bc9f=a53_0x35413e,_0x27aeaf=path['join'](this[_0x19bc9f(0x185)](),_0x1529e6+_0x19bc9f(0x1c0));fs['writeFileSync'](_0x27aeaf,_0x444986[_0x19bc9f(0x1d4)]());}static[a53_0x35413e(0x1a0)](_0x10f376){const _0x4d8c0f=a53_0x35413e,_0x1649de=path[_0x4d8c0f(0x18a)](this['getDirPath'](),_0x10f376+'_integrations.json');if(_0x1649de&&fs[_0x4d8c0f(0x1b1)](_0x1649de))try{return JSON[_0x4d8c0f(0x198)](fs['readFileSync'](_0x1649de)[_0x4d8c0f(0x1d4)]());}catch(_0x52f679){return logger[_0x4d8c0f(0x1e1)]('Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20'+_0x10f376+':\x20'+(_0x52f679&&_0x52f679[_0x4d8c0f(0x190)])),null;}return null;}static[a53_0x35413e(0x1b0)](_0x37c880,_0x13f78f){const _0x8c0b0=a53_0x35413e,_0x24dcc4={};_0x24dcc4[_0x8c0b0(0x18c)]=function(_0x3e9fd9,_0x4b5825){return _0x3e9fd9||_0x4b5825;};const _0x1d48d4=_0x24dcc4;if(_0x1d48d4[_0x8c0b0(0x18c)](!_0x37c880,!_0x13f78f))return;try{const _0x2f42a9=this[_0x8c0b0(0x185)](),_0x1362c6={};_0x1362c6[_0x8c0b0(0x1ac)]=!![],fs['mkdirSync'](_0x2f42a9,_0x1362c6);const _0x2617e9=path[_0x8c0b0(0x18a)](_0x2f42a9,_0x37c880+_0x8c0b0(0x191));fs[_0x8c0b0(0x1b5)](_0x2617e9,JSON[_0x8c0b0(0x19f)](_0x13f78f));}catch(_0x52c05f){logger[_0x8c0b0(0x1e1)](_0x8c0b0(0x1db)+_0x37c880+':\x20'+(_0x52c05f&&_0x52c05f[_0x8c0b0(0x190)]));}}static[a53_0x35413e(0x1a5)](){const _0xfede80=a53_0x35413e,_0x1e070a={};_0x1e070a['recursive']=!![],_0x1e070a[_0xfede80(0x1b7)]=!![],fs[_0xfede80(0x1c1)](this[_0xfede80(0x185)](),_0x1e070a);}static[a53_0x35413e(0x1b4)](_0x1ff8c1){const _0x568b9a=a53_0x35413e;if(this[_0x568b9a(0x19b)][_0x1ff8c1])return this[_0x568b9a(0x19b)][_0x1ff8c1];const _0x37d183=this['getFilePath'](_0x1ff8c1);if(_0x37d183&&fs[_0x568b9a(0x1b1)](_0x37d183)){const _0x2e617c=JSON['parse'](fs[_0x568b9a(0x189)](_0x37d183)[_0x568b9a(0x1d4)]());return this[_0x568b9a(0x19b)][_0x1ff8c1]=_0x2e617c,_0x2e617c;}return{};}static[a53_0x35413e(0x1d8)](_0x450b7a,_0x1d7dbc){const _0x22010b=a53_0x35413e,_0x23009b=this[_0x22010b(0x1dc)](_0x450b7a);if(_0x23009b&&fs[_0x22010b(0x1b1)](_0x23009b)){const _0x399782=JSON[_0x22010b(0x198)](fs[_0x22010b(0x189)](_0x23009b)[_0x22010b(0x1d4)]()),_0x47ee0f={..._0x399782,..._0x1d7dbc};this['tests'][_0x450b7a]=_0x47ee0f;}else this['tests'][_0x450b7a]=_0x1d7dbc;fs[_0x22010b(0x1b5)](_0x23009b,this[_0x22010b(0x19b)][_0x450b7a]);}static[a53_0x35413e(0x1c7)](_0x1bb28a){const _0x620ae2=a53_0x35413e,_0x1f5fa9={};_0x1f5fa9[_0x620ae2(0x1ce)]=_0x620ae2(0x187);const _0x5ca25f=_0x1f5fa9;try{const _0x104cca=process['pid'],_0x3d5850=path['join'](TestDetails['getTraceZipDir'](),_0x104cca+_0x620ae2(0x1e3));let _0x46b502=[];_0x3d5850&&fs[_0x620ae2(0x1b1)](_0x3d5850)&&(_0x46b502=JSON[_0x620ae2(0x198)](fs['readFileSync'](_0x3d5850)[_0x620ae2(0x1d4)]())),!_0x46b502[_0x620ae2(0x182)](_0x390162=>_0x390162[_0x620ae2(0x1cf)]===_0x1bb28a['filePath'])&&(_0x46b502[_0x620ae2(0x1d7)](_0x1bb28a),fs['writeFileSync'](_0x3d5850,JSON[_0x620ae2(0x19f)](_0x46b502)));}catch(_0x4ea9e0){logger[_0x620ae2(0x1a2)](_0x5ca25f['riHKD'],_0x4ea9e0);}}static[a53_0x35413e(0x1bf)](){const _0x581eb4=a53_0x35413e,_0x1f84ee={};_0x1f84ee[_0x581eb4(0x1af)]=_0x581eb4(0x1e3),_0x1f84ee[_0x581eb4(0x1a1)]=_0x581eb4(0x1cb);const _0xfefdde=_0x1f84ee,_0x1190ed=[];try{const _0x4a97c5=TestDetails[_0x581eb4(0x199)]();if(_0x4a97c5&&!fs[_0x581eb4(0x1b1)](_0x4a97c5))return _0x1190ed;const _0x1660ea=fs[_0x581eb4(0x1ca)](_0x4a97c5);_0x1660ea[_0x581eb4(0x1c6)](_0x3d355a=>{const _0x35aa6a=_0x581eb4;if(_0x3d355a&&_0x3d355a['endsWith'](_0xfefdde[_0x35aa6a(0x1af)])){const _0x8a3931=JSON[_0x35aa6a(0x198)](fs[_0x35aa6a(0x189)](path[_0x35aa6a(0x18a)](_0x4a97c5,_0x3d355a))['toString']());_0x1190ed[_0x35aa6a(0x1d7)](..._0x8a3931);}});}catch(_0x5803e6){logger[_0x581eb4(0x1a2)](util[_0x581eb4(0x1b6)](_0xfefdde[_0x581eb4(0x1a1)],_0x5803e6));}const _0x3a11a3={};return _0x1190ed['forEach'](_0x38cd3b=>{_0x3a11a3[_0x38cd3b['filePath']]=_0x38cd3b;}),Object[_0x581eb4(0x1a9)](_0x3a11a3);}static[a53_0x35413e(0x1b2)](_0x10ad3e,_0xc116ac){const _0x4b75de=a53_0x35413e,_0xec6efa={};_0xec6efa['VGCGi']='.browserstack',_0xec6efa[_0x4b75de(0x1d5)]=_0x4b75de(0x193);const _0x4bf63a=_0xec6efa;try{const _0x125231=path[_0x4b75de(0x18a)](helper[_0x4b75de(0x19d)](),_0x4bf63a['VGCGi']);if(!fs[_0x4b75de(0x1b1)](_0x125231)){const _0x3bf8ed={};_0x3bf8ed[_0x4b75de(0x1ac)]=!![],fs['mkdirSync'](_0x125231,_0x3bf8ed);}fs[_0x4b75de(0x18b)](path[_0x4b75de(0x18a)](_0x125231,_0x4b75de(0x194)+_0xc116ac+_0x4b75de(0x1bb)),_0x10ad3e+'\x0a',_0x4bf63a['bbVio']);}catch(_0x58b536){console[_0x4b75de(0x1a2)](_0x4b75de(0x1dd)+_0x58b536[_0x4b75de(0x190)]);}}}module[a53_0x35413e(0x183)]=TestDetails;
|
|
1
|
+
const a54_0x580d7c=a54_0x9bcd;(function(_0x16bd7c,_0x2fee78){const _0x536fbe=a54_0x9bcd,_0x413588=_0x16bd7c();while(!![]){try{const _0xd3c863=-parseInt(_0x536fbe(0x132))/0x1*(parseInt(_0x536fbe(0x154))/0x2)+-parseInt(_0x536fbe(0xf6))/0x3+parseInt(_0x536fbe(0x120))/0x4+-parseInt(_0x536fbe(0x119))/0x5+-parseInt(_0x536fbe(0x11d))/0x6*(-parseInt(_0x536fbe(0x13d))/0x7)+parseInt(_0x536fbe(0x14f))/0x8*(-parseInt(_0x536fbe(0x117))/0x9)+parseInt(_0x536fbe(0x129))/0xa;if(_0xd3c863===_0x2fee78)break;else _0x413588['push'](_0x413588['shift']());}catch(_0x57eab3){_0x413588['push'](_0x413588['shift']());}}}(a54_0xa37a,0x8a84b));const fs=require('fs'),path=require('path'),{TEMP_STORE_DIR_NAME}=require(a54_0x580d7c(0xf4)),{nestedKeyValue}=require('../../../helpers/helper'),logger=require(a54_0x580d7c(0x14c))[a54_0x580d7c(0x139)],{getLogDir}=require(a54_0x580d7c(0x14c)),util=require(a54_0x580d7c(0x112)),helper=require(a54_0x580d7c(0x14d)),{deterministicTestUUID}=require(a54_0x580d7c(0xff));function a54_0x9bcd(_0x1bb02a,_0x4ec7f7){const _0xa37af8=a54_0xa37a();return a54_0x9bcd=function(_0x9bcdc0,_0x16bcd6){_0x9bcdc0=_0x9bcdc0-0xec;let _0x110464=_0xa37af8[_0x9bcdc0];return _0x110464;},a54_0x9bcd(_0x1bb02a,_0x4ec7f7);}class TestDetails{static [a54_0x580d7c(0x123)]={};static[a54_0x580d7c(0x138)](){const _0x4cd1fb=a54_0x580d7c;this[_0x4cd1fb(0x13a)]();const _0x35db9a={};_0x35db9a[_0x4cd1fb(0x113)]=!![],fs[_0x4cd1fb(0x151)](this[_0x4cd1fb(0x115)](),_0x35db9a);const _0x4e0cbf={};_0x4e0cbf[_0x4cd1fb(0x113)]=!![],fs['mkdirSync'](this[_0x4cd1fb(0x12c)](),_0x4e0cbf);}static[a54_0x580d7c(0x150)](){const _0x590103=a54_0x580d7c,_0x1c3391={};_0x1c3391['VfZie']=function(_0x24c04e,_0x52bcba){return _0x24c04e===_0x52bcba;},_0x1c3391['pLKeQ']=_0x590103(0x13b),_0x1c3391[_0x590103(0x105)]=function(_0x54a341,_0x23a34b){return _0x54a341===_0x23a34b;},_0x1c3391[_0x590103(0xf7)]='null',_0x1c3391[_0x590103(0xfd)]=_0x590103(0x14a);const _0xffe3b4=_0x1c3391,_0x5c946e=process[_0x590103(0x127)]['BS_TESTOPS_BUILD_HASHED_ID'];if(!_0x5c946e||_0xffe3b4[_0x590103(0xf1)](_0x5c946e,_0xffe3b4[_0x590103(0xec)])||_0xffe3b4[_0x590103(0x105)](_0x5c946e,_0xffe3b4[_0x590103(0xf7)]))return _0xffe3b4[_0x590103(0xfd)];return _0x5c946e;}static[a54_0x580d7c(0x109)](){const _0x1c8163=a54_0x580d7c,_0xf04ebc={};_0xf04ebc[_0x1c8163(0x13e)]=function(_0x463638,_0x9c895a){return _0x463638+_0x9c895a;};const _0x1a9e77=_0xf04ebc;return _0x1a9e77[_0x1c8163(0x13e)](_0x1a9e77['CJURZ'](TEMP_STORE_DIR_NAME,'-'),TestDetails[_0x1c8163(0x150)]());}static[a54_0x580d7c(0xef)](){const _0x287064=a54_0x580d7c,_0x5db34b={};_0x5db34b[_0x287064(0x133)]=function(_0x43d078,_0x24beeb){return _0x43d078+_0x24beeb;};const _0x3abd37=_0x5db34b;return path[_0x287064(0x13c)](_0x3abd37['wTnzz'](_0x3abd37[_0x287064(0x133)](TEMP_STORE_DIR_NAME,'-'),TestDetails[_0x287064(0x150)]()));}static['getTraceZipDir'](){const _0x3e9751=a54_0x580d7c,_0x1fa271={};_0x1fa271[_0x3e9751(0x107)]=_0x3e9751(0xfa);const _0x5b636f=_0x1fa271;return path['join'](this[_0x3e9751(0xef)](),_0x5b636f[_0x3e9751(0x107)]);}static[a54_0x580d7c(0x115)](){const _0x513c74=a54_0x580d7c;return TestDetails[_0x513c74(0x109)]();}static[a54_0x580d7c(0x102)](_0x23eb20){const _0x50d049=a54_0x580d7c,_0xe16846={};_0xe16846[_0x50d049(0x137)]=function(_0x253a9b,_0x13f06e){return _0x253a9b+_0x13f06e;},_0xe16846[_0x50d049(0x10c)]=_0x50d049(0x121);const _0x44c734=_0xe16846;return path['join'](this['getDirPath'](),_0x44c734[_0x50d049(0x137)](_0x23eb20,_0x44c734[_0x50d049(0x10c)]));}static[a54_0x580d7c(0x148)](_0x1ffaf7){const _0x14bd72=a54_0x580d7c,_0x4cfdc6={};_0x4cfdc6[_0x14bd72(0x135)]=function(_0x535d61,_0x1e5c55){return _0x535d61+_0x1e5c55;};const _0x2f8e66=_0x4cfdc6;return _0x2f8e66['JezRz'](_0x2f8e66[_0x14bd72(0x135)](this[_0x14bd72(0xf2)](_0x1ffaf7),'-'),_0x1ffaf7[_0x14bd72(0x14e)]);}static[a54_0x580d7c(0xf3)](_0x255748){const _0x303f7c=a54_0x580d7c,_0x28874a={'yysJB':function(_0x18f45d,_0x15403a,_0x49df97){return _0x18f45d(_0x15403a,_0x49df97);},'rOuSu':_0x303f7c(0x11a),'lrNjT':_0x303f7c(0xee),'NEbjt':_0x303f7c(0xf0),'MiDFJ':'__projectId'};return _0x28874a[_0x303f7c(0x136)](nestedKeyValue,_0x255748,[_0x28874a['rOuSu'],_0x28874a[_0x303f7c(0x128)]])||_0x28874a[_0x303f7c(0x136)](nestedKeyValue,_0x255748,[_0x28874a[_0x303f7c(0x142)],_0x28874a['MiDFJ']]);}static[a54_0x580d7c(0xf2)](_0x2fe8fe){const _0x594cdc=a54_0x580d7c,_0x3aa0f7={'EOJEZ':function(_0x6e5b58,_0x4cab92,_0x539438){return _0x6e5b58(_0x4cab92,_0x539438);},'gHwSE':_0x594cdc(0x11a)};return _0x3aa0f7[_0x594cdc(0xfe)](nestedKeyValue,_0x2fe8fe,[_0x3aa0f7[_0x594cdc(0x14b)],'id'])||_0x2fe8fe[_0x594cdc(0x11c)];}static['getTestUUID'](_0x36c40f){const _0x100a85=a54_0x580d7c,_0x1ec860={'SKash':function(_0x55ad21,_0x248ee3){return _0x55ad21(_0x248ee3);},'nyOda':function(_0x2bfa45,_0xd80781){return _0x2bfa45===_0xd80781;},'GDlYZ':_0x100a85(0x149)},_0x3c3dd0=_0x1ec860[_0x100a85(0x106)](deterministicTestUUID,_0x36c40f);try{if(this[_0x100a85(0x123)][_0x36c40f]&&_0x1ec860['nyOda'](typeof this['tests'][_0x36c40f][_0x100a85(0x134)],_0x1ec860[_0x100a85(0x12f)]))return this[_0x100a85(0x123)][_0x36c40f]['uuid'];const _0x336c2f=this[_0x100a85(0x102)](_0x36c40f);try{if(_0x336c2f&&fs[_0x100a85(0xf5)](_0x336c2f)){const _0x3fc2d0=JSON[_0x100a85(0x103)](fs[_0x100a85(0x144)](_0x336c2f)[_0x100a85(0x12b)]());if(_0x3fc2d0&&_0x1ec860[_0x100a85(0x141)](typeof _0x3fc2d0[_0x100a85(0x134)],_0x1ec860['GDlYZ']))return this[_0x100a85(0x123)][_0x36c40f]=_0x3fc2d0,_0x3fc2d0[_0x100a85(0x134)];}}catch(_0x3a3ea4){logger[_0x100a85(0x110)](_0x100a85(0x11b)+_0x36c40f+_0x100a85(0x12e)+_0x3a3ea4[_0x100a85(0x101)]);}const _0x9e557d={};_0x9e557d[_0x100a85(0x134)]=_0x3c3dd0,this[_0x100a85(0x123)][_0x36c40f]=_0x9e557d;try{fs['writeFileSync'](_0x336c2f,JSON['stringify'](this[_0x100a85(0x123)][_0x36c40f]));}catch(_0x17819f){logger[_0x100a85(0x110)](_0x100a85(0x10d)+_0x36c40f+':\x20'+_0x17819f['message']);}return _0x3c3dd0;}catch(_0xa3ea81){return logger[_0x100a85(0x110)]('getTestUUID\x20error\x20for\x20'+_0x36c40f+_0x100a85(0x12e)+_0xa3ea81[_0x100a85(0x101)]),_0x3c3dd0;}}static[a54_0x580d7c(0x108)](_0x4fbd67){const _0x541511=a54_0x580d7c,_0x566b29=path['join'](this[_0x541511(0x115)](),_0x4fbd67+_0x541511(0x118));if(_0x566b29&&fs['existsSync'](_0x566b29))return fs[_0x541511(0x144)](_0x566b29)['toString']();}static['setAccessibilityPlatformValidation'](_0x16949f,_0xddb185){const _0x3bc533=a54_0x580d7c;try{const _0x346f8a=this[_0x3bc533(0x115)](),_0x4c1eb5={};_0x4c1eb5[_0x3bc533(0x113)]=!![],fs['mkdirSync'](_0x346f8a,_0x4c1eb5);const _0x23fbf5=path['join'](_0x346f8a,_0xddb185+_0x3bc533(0x118));fs['writeFileSync'](_0x23fbf5,_0x16949f[_0x3bc533(0x12b)]());}catch(_0x46baae){logger[_0x3bc533(0x110)]('Failed\x20to\x20write\x20platform\x20validation\x20file\x20for\x20test\x20'+_0xddb185+':\x20'+(_0x46baae&&_0x46baae['message']));}}static['getIntegrations'](_0x5d05f7){const _0x83c786=a54_0x580d7c,_0xe07732=path[_0x83c786(0x13c)](this[_0x83c786(0x115)](),_0x5d05f7+_0x83c786(0x143));if(_0xe07732&&fs[_0x83c786(0xf5)](_0xe07732))try{return JSON['parse'](fs[_0x83c786(0x144)](_0xe07732)[_0x83c786(0x12b)]());}catch(_0xb2412c){return logger['debug'](_0x83c786(0x124)+_0x5d05f7+':\x20'+(_0xb2412c&&_0xb2412c[_0x83c786(0x101)])),null;}return null;}static['setIntegrations'](_0x256190,_0x17f1c9){const _0x1de6e0=a54_0x580d7c,_0x5d2038={};_0x5d2038[_0x1de6e0(0x11f)]=function(_0x46eed7,_0x31314e){return _0x46eed7||_0x31314e;};const _0x4529f2=_0x5d2038;if(_0x4529f2['BQQUm'](!_0x256190,!_0x17f1c9))return;try{const _0x420d12=this[_0x1de6e0(0x115)](),_0x2d14d9={};_0x2d14d9[_0x1de6e0(0x113)]=!![],fs[_0x1de6e0(0x151)](_0x420d12,_0x2d14d9);const _0x1a815c=path[_0x1de6e0(0x13c)](_0x420d12,_0x256190+_0x1de6e0(0x143));fs[_0x1de6e0(0x147)](_0x1a815c,JSON['stringify'](_0x17f1c9));}catch(_0x26655e){logger[_0x1de6e0(0x110)](_0x1de6e0(0x116)+_0x256190+':\x20'+(_0x26655e&&_0x26655e[_0x1de6e0(0x101)]));}}static[a54_0x580d7c(0x13a)](){const _0x21a475=a54_0x580d7c,_0x3661ea={};_0x3661ea[_0x21a475(0x113)]=!![],_0x3661ea[_0x21a475(0x146)]=!![],fs[_0x21a475(0xed)](this[_0x21a475(0x115)](),_0x3661ea);}static[a54_0x580d7c(0x11e)](_0x17db81){const _0x27cab2=a54_0x580d7c;if(this[_0x27cab2(0x123)][_0x17db81])return this[_0x27cab2(0x123)][_0x17db81];const _0x3741f4=this['getFilePath'](_0x17db81);if(_0x3741f4&&fs[_0x27cab2(0xf5)](_0x3741f4)){const _0x1687d6=JSON[_0x27cab2(0x103)](fs['readFileSync'](_0x3741f4)[_0x27cab2(0x12b)]());return this['tests'][_0x17db81]=_0x1687d6,_0x1687d6;}return{};}static[a54_0x580d7c(0x10f)](_0x59a3fc,_0x2dc3db){const _0xb4af43=a54_0x580d7c,_0x5621db=this[_0xb4af43(0x102)](_0x59a3fc);if(_0x5621db&&fs[_0xb4af43(0xf5)](_0x5621db)){const _0x3d07e2=JSON['parse'](fs['readFileSync'](_0x5621db)['toString']()),_0x3a8b46={..._0x3d07e2,..._0x2dc3db};this[_0xb4af43(0x123)][_0x59a3fc]=_0x3a8b46;}else this[_0xb4af43(0x123)][_0x59a3fc]=_0x2dc3db;fs['writeFileSync'](_0x5621db,this['tests'][_0x59a3fc]);}static[a54_0x580d7c(0x10a)](_0x596cfe){const _0x6c1dcc=a54_0x580d7c,_0x3a0c46={};_0x3a0c46[_0x6c1dcc(0x104)]=_0x6c1dcc(0x130);const _0x171788=_0x3a0c46;try{const _0x244228=process[_0x6c1dcc(0x131)],_0x1f2748=path[_0x6c1dcc(0x13c)](TestDetails[_0x6c1dcc(0x12c)](),_0x244228+_0x6c1dcc(0x122));let _0x12e3a5=[];_0x1f2748&&fs[_0x6c1dcc(0xf5)](_0x1f2748)&&(_0x12e3a5=JSON['parse'](fs[_0x6c1dcc(0x144)](_0x1f2748)[_0x6c1dcc(0x12b)]())),!_0x12e3a5[_0x6c1dcc(0x12a)](_0x18de6a=>_0x18de6a[_0x6c1dcc(0x140)]===_0x596cfe[_0x6c1dcc(0x140)])&&(_0x12e3a5[_0x6c1dcc(0x10e)](_0x596cfe),fs[_0x6c1dcc(0x147)](_0x1f2748,JSON[_0x6c1dcc(0xfc)](_0x12e3a5)));}catch(_0xc86b87){logger['error'](_0x171788[_0x6c1dcc(0x104)],_0xc86b87);}}static[a54_0x580d7c(0x114)](){const _0x2f7f35=a54_0x580d7c,_0x5a4797={};_0x5a4797[_0x2f7f35(0xf8)]=_0x2f7f35(0x122),_0x5a4797[_0x2f7f35(0xfb)]='Error\x20reading\x20trace\x20file\x20paths:\x20%s';const _0x3230f1=_0x5a4797,_0x365ff2=[];try{const _0x1bb30f=TestDetails[_0x2f7f35(0x12c)]();if(_0x1bb30f&&!fs['existsSync'](_0x1bb30f))return _0x365ff2;const _0x6ea9f6=fs[_0x2f7f35(0x126)](_0x1bb30f);_0x6ea9f6[_0x2f7f35(0x152)](_0x7ae431=>{const _0x50f795=_0x2f7f35;if(_0x7ae431&&_0x7ae431['endsWith'](_0x3230f1[_0x50f795(0xf8)])){const _0x56c30c=JSON[_0x50f795(0x103)](fs[_0x50f795(0x144)](path[_0x50f795(0x13c)](_0x1bb30f,_0x7ae431))[_0x50f795(0x12b)]());_0x365ff2[_0x50f795(0x10e)](..._0x56c30c);}});}catch(_0x5aaa02){logger['error'](util['format'](_0x3230f1[_0x2f7f35(0xfb)],_0x5aaa02));}const _0x4dcdec={};return _0x365ff2[_0x2f7f35(0x152)](_0x4ce60c=>{const _0x5067ba=_0x2f7f35;_0x4dcdec[_0x4ce60c[_0x5067ba(0x140)]]=_0x4ce60c;}),Object[_0x2f7f35(0x111)](_0x4dcdec);}static[a54_0x580d7c(0x12d)](_0x47e6c9,_0x55224f){const _0x1dde65=a54_0x580d7c,_0x19152a={};_0x19152a[_0x1dde65(0x10b)]='.browserstack',_0x19152a['ucNGM']='utf8';const _0x124bad=_0x19152a;try{const _0x5ececd=path[_0x1dde65(0x13c)](helper[_0x1dde65(0xf9)](),_0x124bad[_0x1dde65(0x10b)]);if(!fs[_0x1dde65(0xf5)](_0x5ececd)){const _0xb23275={};_0xb23275[_0x1dde65(0x113)]=!![],fs[_0x1dde65(0x151)](_0x5ececd,_0xb23275);}fs[_0x1dde65(0x100)](path[_0x1dde65(0x13c)](_0x5ececd,'trace_'+_0x55224f+_0x1dde65(0x13f)),_0x47e6c9+'\x0a',_0x124bad['ucNGM']);}catch(_0x594936){console[_0x1dde65(0x145)](_0x1dde65(0x125)+_0x594936[_0x1dde65(0x101)]);}}}function a54_0xa37a(){const _0x263ca6=['getTestIdFromTestInfo','getProjectIdFromTestInfo','../../../helpers/test-observability/constants','existsSync','2154261vNrrgo','EgKJh','uSfkD','homedir','traceZipPaths','qlQEJ','stringify','lerzX','EOJEZ','../../../helpers/test-observability/utils','appendFileSync','message','getFilePath','parse','ZxWqz','oobCH','SKash','FGZoq','getAccessibilityPlatformValidation','getStoreDirName','addTraceFilePath','mjqpl','zSIxC','getTestUUID:\x20could\x20not\x20persist\x20uuid\x20for\x20','push','setTestDetails','debug','values','util','recursive','getTraceFilePaths','getDirPath','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','3556503ZfVfJz','_platformDetails.json','464895zctZZG','_test','getTestUUID:\x20could\x20not\x20read\x20cached\x20uuid\x20for\x20','testId','954uQcrKk','getTestDetails','BQQUm','4035436maOhiR','.json','_traceZipPaths.json','tests','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','Error\x20writing\x20trace\x20file:\x20','readdirSync','env','lrNjT','4855950iztQZo','some','toString','getTraceZipDir','appendToTracePaths',',\x20using\x20deterministic\x20uuid:\x20','GDlYZ','Error\x20handling\x20trace\x20file\x20paths:\x20','pid','1huKXkZ','wTnzz','uuid','JezRz','yysJB','CIXps','setup','winstonLogger','shutdown','undefined','join','37359yFbRAm','CJURZ','.txt','filePath','nyOda','NEbjt','_integrations.json','readFileSync','error','force','writeFileSync','getTestRunIdFromTestInfo','string','default','gHwSE','../../../helpers/logger','../../../helpers/helper','retry','8IdQIzP','getStoreDirSuffix','mkdirSync','forEach','exports','1138866TBfiQY','pLKeQ','rmSync','_projectId','getStoreDirPath','project','VfZie'];a54_0xa37a=function(){return _0x263ca6;};return a54_0xa37a();}module[a54_0x580d7c(0x153)]=TestDetails;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const a55_0x1526d6=a55_0x33ee;(function(_0x1cc11d,_0x380d56){const _0x76f2e3=a55_0x33ee,_0xf9b4dd=_0x1cc11d();while(!![]){try{const _0xb1c390=-parseInt(_0x76f2e3(0x175))/0x1*(parseInt(_0x76f2e3(0x149))/0x2)+parseInt(_0x76f2e3(0x179))/0x3*(-parseInt(_0x76f2e3(0x151))/0x4)+-parseInt(_0x76f2e3(0x173))/0x5*(-parseInt(_0x76f2e3(0x16b))/0x6)+parseInt(_0x76f2e3(0x178))/0x7*(-parseInt(_0x76f2e3(0x17f))/0x8)+-parseInt(_0x76f2e3(0x152))/0x9*(-parseInt(_0x76f2e3(0x14b))/0xa)+-parseInt(_0x76f2e3(0x16d))/0xb*(-parseInt(_0x76f2e3(0x145))/0xc)+parseInt(_0x76f2e3(0x155))/0xd;if(_0xb1c390===_0x380d56)break;else _0xf9b4dd['push'](_0xf9b4dd['shift']());}catch(_0x1fcac5){_0xf9b4dd['push'](_0xf9b4dd['shift']());}}}(a55_0x1cbe,0xd5311));function a55_0x33ee(_0x404f7f,_0xf38c71){const _0x1cbe7d=a55_0x1cbe();return a55_0x33ee=function(_0x33ee40,_0x53f198){_0x33ee40=_0x33ee40-0x140;let _0x3cc592=_0x1cbe7d[_0x33ee40];return _0x3cc592;},a55_0x33ee(_0x404f7f,_0xf38c71);}function a55_0x1cbe(){const _0x3fc0c1=['jmKvm','49815WMkAZd','trim','1GYvuRi','prefix','ZsMiC','119CWuUIF','3cgtaKS','cTTzx','platform','vekdj','wuIUY','isArray','529544rWjFIg','--reporter=','debug','map','[BrowserStack]\x20Failed\x20to\x20merge\x20BrowserStack\x20reporter\x20into\x20CLI\x20--reporter\x20flag:\x20','./reporter/reporter.js','zgXvW','493104qyJfid','warn','join','JSEwD','2577028KICQfm','startsWith','70GVNaqs','some','exports','winstonLogger','Wpnwx','CKHWC','3633236yXICTM','25011ICJajR','BROWSERSTACK_PW_REPORTER_PATH','nKzbP','43278495uBQHKS','pzzzL','rHbUs','eiNJu','eNZJs','kqzoq','FyiiJ','string','win32','resolve','oNtPt','filter','push','CEQKs','vlEkL','GCsgK','XkcUf','jfLFF','split','RSfzX','util','length','114TbXzgZ','slice','176MgKAQu','flagIdx','includes','mergeBrowserstackReporterIntoCliReporterFlag','[BrowserStack]\x20CLI\x20reporter\x20arg\x20after\x20merge:\x20'];a55_0x1cbe=function(){return _0x3fc0c1;};return a55_0x1cbe();}const path=require('path'),{format}=require(a55_0x1526d6(0x169)),logger=require('../../helpers/logger')[a55_0x1526d6(0x14e)],BROWSERSTACK_PW_REPORTER_PATH=path[a55_0x1526d6(0x147)](__dirname,a55_0x1526d6(0x143)),INLINE_PREFIXES=[a55_0x1526d6(0x180)],BARE_FLAGS=['--reporter'],stripQuotes=_0x3678cf=>{const _0x2c0ae4=a55_0x1526d6,_0x356d89={'RSfzX':function(_0x38be90,_0x2aa381){return _0x38be90(_0x2aa381);},'XkcUf':function(_0x3510b0,_0x55c88d){return _0x3510b0>=_0x55c88d;},'jfLFF':function(_0x774c5e,_0x794e92){return _0x774c5e-_0x794e92;},'ZsMiC':function(_0x419875,_0x5885ee){return _0x419875===_0x5885ee;},'CKHWC':function(_0x303934,_0x2882fa){return _0x303934===_0x2882fa;},'CEQKs':function(_0x11f260,_0x308409){return _0x11f260===_0x308409;}},_0x3469b9=_0x356d89[_0x2c0ae4(0x168)](String,_0x3678cf);if(_0x356d89[_0x2c0ae4(0x165)](_0x3469b9['length'],0x2)){const _0x3700b5=_0x3469b9[0x0],_0x495108=_0x3469b9[_0x356d89[_0x2c0ae4(0x166)](_0x3469b9[_0x2c0ae4(0x16a)],0x1)];if(_0x356d89[_0x2c0ae4(0x177)](_0x3700b5,'\x22')&&_0x356d89[_0x2c0ae4(0x150)](_0x495108,'\x22')||_0x356d89[_0x2c0ae4(0x177)](_0x3700b5,'\x27')&&_0x356d89[_0x2c0ae4(0x162)](_0x495108,'\x27'))return _0x3469b9[_0x2c0ae4(0x16c)](0x1,-0x1);}return _0x3469b9;},resolveQuietly=_0x3f5daf=>{const _0x4fc12b=a55_0x1526d6;try{return path[_0x4fc12b(0x15e)](_0x3f5daf);}catch(_0x1b423f){return null;}},renderValue=(_0x289485,_0x4844c8)=>{const _0x222aad=a55_0x1526d6,_0x2a78f8={};_0x2a78f8[_0x222aad(0x154)]=function(_0x31d6fe,_0x1f926f){return _0x31d6fe===_0x1f926f;},_0x2a78f8[_0x222aad(0x164)]=_0x222aad(0x15d);const _0x1b627a=_0x2a78f8,_0x1ccb2b=_0x289485[_0x222aad(0x147)](',');return _0x1b627a[_0x222aad(0x154)](_0x4844c8,_0x1b627a['GCsgK'])?'\x22'+_0x1ccb2b+'\x22':_0x1ccb2b;},buildMergedList=(_0xe4f8b3,_0x1ba155)=>{const _0x2ce8e3=a55_0x1526d6,_0x353b93={'JSEwD':function(_0x339731,_0x1ac860){return _0x339731(_0x1ac860);},'TNQIi':function(_0x4b659d,_0x167356){return _0x4b659d===_0x167356;}};if(_0x353b93[_0x2ce8e3(0x148)](String,_0x1ba155)['includes'](','))return null;const _0x6b4a81=_0x353b93[_0x2ce8e3(0x148)](stripQuotes,_0xe4f8b3)[_0x2ce8e3(0x167)](',')[_0x2ce8e3(0x141)](_0x175d87=>_0x175d87[_0x2ce8e3(0x174)]())[_0x2ce8e3(0x160)](_0x50689d=>_0x50689d['length']>0x0);if(_0x353b93['TNQIi'](_0x6b4a81['length'],0x0))return null;const _0x83899d=_0x353b93[_0x2ce8e3(0x148)](resolveQuietly,_0x1ba155),_0x4e365e=_0x6b4a81[_0x2ce8e3(0x14c)](_0x139983=>_0x139983===_0x1ba155||_0x83899d!==null&&resolveQuietly(_0x139983)===_0x83899d);return!_0x4e365e&&_0x6b4a81[_0x2ce8e3(0x161)](_0x1ba155),_0x6b4a81;},findLastReporterFlag=_0x248f45=>{const _0x54ba86=a55_0x1526d6,_0x5756c0={};_0x5756c0['oNtPt']=function(_0x5dce2a,_0x611bc2){return _0x5dce2a-_0x611bc2;},_0x5756c0['cTTzx']=function(_0x26347b,_0x4bf51a){return _0x26347b>=_0x4bf51a;},_0x5756c0[_0x54ba86(0x14f)]=function(_0x431365,_0x2966c6){return _0x431365!==_0x2966c6;},_0x5756c0[_0x54ba86(0x172)]=_0x54ba86(0x15c);const _0x40ecdf=_0x5756c0;for(let _0x25dc08=_0x40ecdf[_0x54ba86(0x15f)](_0x248f45['length'],0x1);_0x40ecdf[_0x54ba86(0x17a)](_0x25dc08,0x0);_0x25dc08--){const _0xefd12c=_0x248f45[_0x25dc08];if(_0x40ecdf['Wpnwx'](typeof _0xefd12c,_0x40ecdf[_0x54ba86(0x172)]))continue;const _0x206050=INLINE_PREFIXES['find'](_0x37120e=>_0xefd12c[_0x54ba86(0x14a)](_0x37120e));if(_0x206050){const _0x4f5365={};return _0x4f5365[_0x54ba86(0x16e)]=_0x25dc08,_0x4f5365['prefix']=_0x206050,_0x4f5365;}if(BARE_FLAGS[_0x54ba86(0x16f)](_0xefd12c)){const _0x3700de={};return _0x3700de['flagIdx']=_0x25dc08,_0x3700de[_0x54ba86(0x176)]=null,_0x3700de;}}return null;},mergeBrowserstackReporterIntoCliReporterFlag=(_0x4484c3,_0xb5be4={})=>{const _0x21e7fb=a55_0x1526d6,_0x4c3931={'vlEkL':function(_0x131569,_0x57ebc6){return _0x131569===_0x57ebc6;},'vekdj':function(_0x1af9e5,_0x20c8a4){return _0x1af9e5(_0x20c8a4);},'WJVDP':function(_0x248284,_0x5ee584){return _0x248284===_0x5ee584;},'eNZJs':function(_0x4bee2f,_0x41bd32){return _0x4bee2f+_0x41bd32;},'zgXvW':function(_0x3b771a,_0x3a0d89){return _0x3b771a>=_0x3a0d89;},'eiNJu':function(_0x31836c,_0x74db79){return _0x31836c!==_0x74db79;},'wuIUY':_0x21e7fb(0x15c),'pzzzL':function(_0x2def01,_0xc77e18,_0x594bad){return _0x2def01(_0xc77e18,_0x594bad);},'rHbUs':function(_0x849561,_0x1aad0f){return _0x849561===_0x1aad0f;},'FyiiJ':function(_0x323447,_0x224216,_0x54308d){return _0x323447(_0x224216,_0x54308d);},'CaFuw':'[BrowserStack]\x20A\x20--reporter\x20flag\x20was\x20passed\x20on\x20the\x20Playwright\x20CLI;\x20it\x20overrides\x20the\x20config\x20reporter.\x20Merged\x20the\x20BrowserStack\x20Observability\x20reporter\x20into\x20it\x20so\x20test\x20events\x20are\x20captured.','kqzoq':function(_0x195ad6,_0x4b6ce7){return _0x195ad6(_0x4b6ce7);}};try{const {enabled:enabled=!![],reporterPath:reporterPath=BROWSERSTACK_PW_REPORTER_PATH,platform:platform=process[_0x21e7fb(0x17b)]}=_0xb5be4;if(_0x4c3931[_0x21e7fb(0x163)](enabled,![]))return;if(!Array[_0x21e7fb(0x17e)](_0x4484c3))return;const _0x44ab8d=_0x4c3931[_0x21e7fb(0x17c)](findLastReporterFlag,_0x4484c3);if(_0x4c3931['WJVDP'](_0x44ab8d,null))return;let _0x28d51e,_0x20f558;if(_0x44ab8d[_0x21e7fb(0x176)])_0x28d51e=_0x44ab8d[_0x21e7fb(0x16e)],_0x20f558=_0x4484c3[_0x44ab8d['flagIdx']][_0x21e7fb(0x16c)](_0x44ab8d[_0x21e7fb(0x176)][_0x21e7fb(0x16a)]);else{_0x28d51e=_0x4c3931[_0x21e7fb(0x159)](_0x44ab8d[_0x21e7fb(0x16e)],0x1);if(_0x4c3931[_0x21e7fb(0x144)](_0x28d51e,_0x4484c3[_0x21e7fb(0x16a)])||_0x4c3931[_0x21e7fb(0x158)](typeof _0x4484c3[_0x28d51e],_0x4c3931[_0x21e7fb(0x17d)])||_0x4484c3[_0x28d51e][_0x21e7fb(0x14a)]('-'))return;_0x20f558=_0x4484c3[_0x28d51e];}const _0x1c8939=_0x4c3931[_0x21e7fb(0x156)](buildMergedList,_0x20f558,reporterPath);if(_0x4c3931[_0x21e7fb(0x157)](_0x1c8939,null))return;const _0x30584d=_0x4c3931[_0x21e7fb(0x15b)](renderValue,_0x1c8939,platform);_0x4484c3[_0x28d51e]=_0x44ab8d[_0x21e7fb(0x176)]?''+_0x44ab8d[_0x21e7fb(0x176)]+_0x30584d:_0x30584d,logger[_0x21e7fb(0x146)](_0x4c3931['CaFuw']),logger[_0x21e7fb(0x140)](_0x21e7fb(0x171)+_0x4484c3[_0x28d51e]);}catch(_0x3ac407){logger[_0x21e7fb(0x140)](_0x21e7fb(0x142)+_0x4c3931[_0x21e7fb(0x15a)](format,_0x3ac407));}},a55_0x11ffca={};a55_0x11ffca[a55_0x1526d6(0x170)]=mergeBrowserstackReporterIntoCliReporterFlag,a55_0x11ffca[a55_0x1526d6(0x153)]=BROWSERSTACK_PW_REPORTER_PATH,module[a55_0x1526d6(0x14d)]=a55_0x11ffca;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54_0x3c6080=a54_0x5ba5;(function(_0x2ce317,_0x5277a9){const _0x13d8f6=a54_0x5ba5,_0x56734b=_0x2ce317();while(!![]){try{const _0x129351=parseInt(_0x13d8f6(0x161))/0x1*(-parseInt(_0x13d8f6(0x166))/0x2)+parseInt(_0x13d8f6(0x1a3))/0x3+parseInt(_0x13d8f6(0x127))/0x4*(parseInt(_0x13d8f6(0x145))/0x5)+-parseInt(_0x13d8f6(0x1b2))/0x6*(parseInt(_0x13d8f6(0x129))/0x7)+parseInt(_0x13d8f6(0x1ea))/0x8+parseInt(_0x13d8f6(0x19a))/0x9*(-parseInt(_0x13d8f6(0x146))/0xa)+-parseInt(_0x13d8f6(0x156))/0xb*(-parseInt(_0x13d8f6(0x138))/0xc);if(_0x129351===_0x5277a9)break;else _0x56734b['push'](_0x56734b['shift']());}catch(_0x21707e){_0x56734b['push'](_0x56734b['shift']());}}}(a54_0x45d8,0x876a2));const path=require(a54_0x3c6080(0x1bb)),url=require(a54_0x3c6080(0x152)),util=require('util'),helper=require(a54_0x3c6080(0x167)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a54_0x3c6080(0x167)),{o11yErrorHandler}=require(a54_0x3c6080(0x177)),{debug,getPlatformDetails}=require(a54_0x3c6080(0x191)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a54_0x3c6080(0x1df)),{FRAMEWORKS}=require(a54_0x3c6080(0x189)),logger=require(a54_0x3c6080(0x16b))[a54_0x3c6080(0x1af)],scripts=require(a54_0x3c6080(0x1b8)),{browserStackExecuteDriver}=require(a54_0x3c6080(0x1b7)),AccessibilityHelper=require('./accessibility-helper'),constants=require(a54_0x3c6080(0x12f)),BrowserstackCLI=require(a54_0x3c6080(0x1e3)),AutomationFrameworkState=require(a54_0x3c6080(0x12e)),HookState=require('../v2/state/hookState.js'),{performScanWithRetry}=require('../../helpers/accessibility-automation/accessibilityRetryHelper.js'),ClientTroubleShootingService=require(a54_0x3c6080(0x137)),getBrowserNameFromChannel=_0x1f4bdf=>{const _0x28daeb=a54_0x3c6080,_0x51d1bd={};_0x51d1bd['JJuGH']='4|1|2|7|6|0|3|5',_0x51d1bd[_0x28daeb(0x197)]=_0x28daeb(0x196),_0x51d1bd['uneol']=_0x28daeb(0x1c7),_0x51d1bd['fgsKo']=_0x28daeb(0x1ba),_0x51d1bd[_0x28daeb(0x17a)]=function(_0x4c8475,_0x3ce801){return _0x4c8475===_0x3ce801;},_0x51d1bd[_0x28daeb(0x1f2)]='webkit',_0x51d1bd[_0x28daeb(0x133)]=function(_0x3c63f6,_0x3801e0){return _0x3c63f6!==_0x3801e0;},_0x51d1bd[_0x28daeb(0x14a)]=_0x28daeb(0x17d),_0x51d1bd['Iqion']=_0x28daeb(0x163),_0x51d1bd[_0x28daeb(0x18b)]=_0x28daeb(0x19d);const _0x4ae78d=_0x51d1bd,_0x17e3e9=_0x4ae78d[_0x28daeb(0x1de)]['split']('|');let _0x113c91=0x0;while(!![]){switch(_0x17e3e9[_0x113c91++]){case'0':if(_0x1f4bdf['includes'](_0x4ae78d[_0x28daeb(0x197)]))return _0x4ae78d[_0x28daeb(0x197)];continue;case'1':if(_0x1f4bdf[_0x28daeb(0x131)](_0x4ae78d[_0x28daeb(0x16e)]))return _0x4ae78d['uneol'];continue;case'2':if(_0x1f4bdf['includes'](_0x4ae78d[_0x28daeb(0x124)]))return _0x4ae78d[_0x28daeb(0x124)];continue;case'3':if(_0x4ae78d['CSfOi'](_0x1f4bdf,_0x4ae78d[_0x28daeb(0x1f2)]))return _0x4ae78d['lWOpe'];continue;case'4':if(!_0x1f4bdf||_0x4ae78d['ZwqQW'](typeof _0x1f4bdf,_0x4ae78d[_0x28daeb(0x14a)]))return _0x4ae78d[_0x28daeb(0x16e)];continue;case'5':return _0x1f4bdf;case'6':if(_0x1f4bdf[_0x28daeb(0x131)](_0x4ae78d[_0x28daeb(0x176)]))return _0x4ae78d[_0x28daeb(0x176)];continue;case'7':if(_0x1f4bdf['includes'](_0x4ae78d[_0x28daeb(0x18b)]))return _0x4ae78d[_0x28daeb(0x18b)];continue;}break;}},getBrowserFromWSEndpoint=_0x3815bd=>{const _0x4dfb44=a54_0x3c6080,_0x5b5e69={'CGpAT':'chrome','xWBHI':function(_0x5595af,_0x377745){return _0x5595af(_0x377745);}};try{const _0x2b7cc4=url['parse'](_0x3815bd),_0x203b6f=new URLSearchParams(_0x2b7cc4[_0x4dfb44(0x15f)]),_0x263b1e=Object[_0x4dfb44(0x164)](_0x203b6f[_0x4dfb44(0x1eb)]()),_0x2b1090=JSON[_0x4dfb44(0x1e8)](_0x263b1e[_0x4dfb44(0x179)]);if(_0x2b1090&&(_0x2b1090[_0x4dfb44(0x1a4)]||_0x2b1090['browserName']))return _0x2b1090[_0x4dfb44(0x1a4)]||_0x2b1090['browserName'];return _0x5b5e69[_0x4dfb44(0x1b3)];}catch(_0x2c0914){_0x5b5e69['xWBHI'](debug,_0x4dfb44(0x18a)+_0x2c0914['toString']());}},getCloudProviderFromWsEndpoint=_0x428f06=>{const _0x3cc8af=a54_0x3c6080,_0x46f569={};_0x46f569[_0x3cc8af(0x1b1)]=_0x3cc8af(0x158),_0x46f569['WSnoH']=_0x3cc8af(0x182);const _0xd379ab=_0x46f569;if(_0x428f06[_0x3cc8af(0x131)](constants[_0x3cc8af(0x1e2)])||_0x428f06['includes'](constants[_0x3cc8af(0x126)]))return _0xd379ab[_0x3cc8af(0x1b1)];return _0xd379ab[_0x3cc8af(0x184)];},a54_0x422827={};a54_0x422827[a54_0x3c6080(0x15d)]=undefined,a54_0x422827[a54_0x3c6080(0x155)]=undefined,a54_0x422827[a54_0x3c6080(0x1a4)]=undefined,a54_0x422827[a54_0x3c6080(0x1f4)]=undefined,a54_0x422827[a54_0x3c6080(0x144)]=undefined,a54_0x422827[a54_0x3c6080(0x16a)]=undefined,a54_0x422827['product']=undefined,a54_0x422827[a54_0x3c6080(0x1ad)]={};function a54_0x5ba5(_0x339dd7,_0x51ea8e){const _0x45d889=a54_0x45d8();return a54_0x5ba5=function(_0x5ba59f,_0x280e74){_0x5ba59f=_0x5ba59f-0x121;let _0x33d7e5=_0x45d889[_0x5ba59f];return _0x33d7e5;},a54_0x5ba5(_0x339dd7,_0x51ea8e);}function a54_0x45d8(){const _0x5e7fe1=['30WKVwnb','automate','gsKqP','qMscV','yAgBh','trackEvent','zgsGG','Driver\x20Scan\x20result=','CRConnection','pYaqd','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','TUiAO','url','_bstackDispatchPatched','pWNpg','bsSessionId','1221wFAVhO','aaLjN','browserstack','TggaL','version','use','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','cloudProvider','FPeRB','query','BBexu','286090xJEHjq','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','firefox','fromEntries','TTZbp','2ozvgpp','../../helpers/helper','patch','pwPage','platform_version','../../helpers/logger','kJpXt','__driver','uneol','_onMessage','Xseqg','playwright-','dispatch\x20instrumentation\x20error\x20(non-fatal):\x20','IHgUb','erQWZ','Error\x20in\x20importing\x20crConnection','Iqion','../../helpers/test-observability/error-handler','sessionId','caps','CSfOi','IhRIZ','getAutomationFramework','string','accessibilityPlatform','EyTYT','1.60.0','OGFVo','unknown_grid','Performing\x20scan\x20for\x20','WSnoH','PLAYWRIGHT','bstackPerformA11yScan','kUvxF','CiIoZ','../../helpers/test-observability/constants','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','QwSgo','toString','message','isRemote','aTbzg','setupBrowserDetails:\x20browser\x20param\x20is\x20nil;\x20populating\x20playwright\x20fallback\x20so\x20TRA\x20does\x20not\x20render\x20\x22Unknown\x22','../../helpers/test-observability/utils','hgqoB','sessionError','toLowerCase','qpZRw','safari','HLlWd','JiVdq','xGxTx','2524266MeQZpr','RDOzp','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','edge','env','exports','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','prototype','patchCRConnection','724029QolJJk','browser','params','info','YyBEa','platformDetails','format','PLAYWRIGHT_DISPATCH','awOEe','playwright','capabilities','_type','winstonLogger','Error\x20in\x20finding\x20platform\x20details\x20','PcpQG','414tSZOhI','CGpAT','shouldWrapCommand','assign','debug','../../bin/playwright/accessibility-helper','../../helpers/accessibility-automation/scripts','ZXjvA','chrome','path','getInstance','YleMx','resolve','giACa','platformName','channel','GylGf','turboscale','reportSessionLinkingIssue','eZgQV','_browserType','chromium','apply','testInfo','bStackParams','NVSdA','Not\x20able\x20to\x20import\x20crConnection','PKfWK','ixqGt','CwYwA','jGonv','VRYem','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','project','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','LbvAC','platformVersion','isRunning','Connection','tfQbp','crConnection.js','lib','Page\x20Scan\x20result=','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','JJuGH','../../helpers/accessibility-automation/helper','compareVersions','dispatch','BSTACK_URL','../v2/browserstackCLI','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','Device\x20Model\x20is\x20not\x20available','_connection','szlBF','parse','currentSessionDetails','4006672TMlGdQ','entries','BRUPd','join','CUFRp','CkXjk','function','_defaultConnectOptions','lWOpe','server','browser_version','GylId','fcaGV','AyizI','MzdiB','FPIEu','tVvKi','currentTest','setupBrowserDetails','defineProperty','fgsKo','yMNdv','BSTACK_ATS_URL','115788aNeUSN','model','805YHqtog','patchConnection','__workerDetails','product','ATS_WSS_URL_REGEX','../v2/state/automationFrameworkState.js','../utils/constants','hgOpW','includes','sendMessageToServer','ZwqQW','catch','vAIVK','POST','../utils/clientTroubleshootingService.js','43020mtYPLB','Jutqd','gCuoB','bQVzW','Setting\x20session\x20id\x20received\x20from\x20BS\x20','local_grid','tSQcz','WunDy','HcwFN','nQVpN','connectOptions','Not\x20able\x20to\x20resolve\x20Connection\x20class','platform','95MExbFL'];a54_0x45d8=function(){return _0x5e7fe1;};return a54_0x45d8();}class PlaywrightSessionDetails{static [a54_0x3c6080(0x1e9)]=a54_0x422827;constructor(){const _0x3c8447=a54_0x3c6080,_0x4892c8={};_0x4892c8[_0x3c8447(0x130)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x3bb65e=_0x4892c8;throw new Error(_0x3bb65e[_0x3c8447(0x130)]);}static [a54_0x3c6080(0x193)]=null;static[a54_0x3c6080(0x122)](_0x1ab9a9,_0x2c9381,_0x5026eb=null){const _0x45abbe=a54_0x3c6080,_0x15e1d8={'CiIoZ':_0x45abbe(0x190),'gCuoB':function(_0x2e557c){return _0x2e557c();},'Xseqg':_0x45abbe(0x158),'jGonv':_0x45abbe(0x13d),'GylId':_0x45abbe(0x1ac),'AyizI':'unknown','CwYwA':function(_0x7616a0,_0x1132e0){return _0x7616a0===_0x1132e0;},'GylGf':_0x45abbe(0x1f0),'JiVdq':_0x45abbe(0x1a0),'tVvKi':function(_0x4dbdf9,_0x4c5dcf){return _0x4dbdf9===_0x4c5dcf;},'PKfWK':_0x45abbe(0x1e5),'TTZbp':function(_0x22317b,_0x12afea,_0x4120b7){return _0x22317b(_0x12afea,_0x4120b7);},'vAIVK':_0x45abbe(0x1c6),'IHgUb':_0x45abbe(0x1f1),'qdSEP':_0x45abbe(0x1d3),'zgsGG':_0x45abbe(0x15b),'awOEe':_0x45abbe(0x142),'hgqoB':function(_0x462fb0,_0x128256){return _0x462fb0(_0x128256);},'tfQbp':function(_0x265e4f,_0x336911){return _0x265e4f===_0x336911;},'ixqGt':_0x45abbe(0x1c3),'szlBF':_0x45abbe(0x147),'yUrXT':function(_0x4d9997){return _0x4d9997();},'yMNdv':function(_0x25bf6d,_0x330457){return _0x25bf6d&&_0x330457;},'tSQcz':function(_0xf33203){return _0xf33203();},'JKaMx':function(_0x5be68b,_0x295f13){return _0x5be68b(_0x295f13);},'qpZRw':function(_0xd210d2,_0x115433){return _0xd210d2+_0x115433;},'RDOzp':_0x45abbe(0x171),'qoxHl':function(_0x46e8b6,_0x5abd0e){return _0x46e8b6||_0x5abd0e;},'erQWZ':function(_0x19c782){return _0x19c782();},'FPeRB':function(_0x361aad,_0x54297b,_0x1e6c8a){return _0x361aad(_0x54297b,_0x1e6c8a);},'OGFVo':_0x45abbe(0x122)},_0x273e41=this;return _0x15e1d8[_0x45abbe(0x15e)](o11yErrorHandler,async function _0x58b191(_0x58aecf,_0x364ff1,_0x561742=null){const _0x5791f9=_0x45abbe;if(!_0x58aecf){logger[_0x5791f9(0x1b6)](_0x15e1d8[_0x5791f9(0x188)]),_0x273e41[_0x5791f9(0x1e9)]=Object[_0x5791f9(0x1b5)]({},_0x273e41[_0x5791f9(0x1e9)],{'cloudProvider':_0x15e1d8[_0x5791f9(0x13a)](isBrowserstackInfra)?_0x15e1d8[_0x5791f9(0x170)]:_0x15e1d8[_0x5791f9(0x1d0)],'browser':_0x15e1d8[_0x5791f9(0x1f5)],'browser_version':_0x15e1d8['AyizI']});return;}let _0x4d9403=_0x58aecf['_name'],_0x4ea41a=null;_0x58aecf&&_0x15e1d8[_0x5791f9(0x1cf)](typeof _0x58aecf[_0x5791f9(0x15a)],_0x15e1d8[_0x5791f9(0x1c2)])?_0x4ea41a=_0x58aecf['version']():logger['debug'](_0x15e1d8[_0x5791f9(0x198)]);let _0x5c4390=null;_0x58aecf&&_0x15e1d8[_0x5791f9(0x1fa)](typeof _0x58aecf[_0x5791f9(0x128)],_0x15e1d8['GylGf'])?_0x5c4390=_0x58aecf['model']():logger[_0x5791f9(0x1b6)](_0x15e1d8[_0x5791f9(0x1cd)]);let _0x1ebfc6=null,_0x2ad04f=null,_0x2db584=null,_0x3f13a4=_0x15e1d8[_0x5791f9(0x1d0)];const _0x383324=_0x58aecf[_0x5791f9(0x1e6)]&&_0x15e1d8[_0x5791f9(0x1cf)](typeof _0x58aecf[_0x5791f9(0x1e6)][_0x5791f9(0x18e)],_0x15e1d8[_0x5791f9(0x1c2)])?_0x58aecf['_connection'][_0x5791f9(0x18e)]():![];if(_0x383324||global[_0x5791f9(0x17e)]&&!process[_0x5791f9(0x19e)][_0x5791f9(0x1d2)]){let _0x48a06f=null;_0x15e1d8[_0x5791f9(0x165)](nestedKeyValue,_0x58aecf,[_0x15e1d8[_0x5791f9(0x135)],_0x15e1d8[_0x5791f9(0x173)]])?_0x48a06f=_0x58aecf[_0x5791f9(0x1c6)][_0x5791f9(0x1f1)]:_0x48a06f=_0x15e1d8['TTZbp'](nestedKeyValue,_0x364ff1,[_0x15e1d8['qdSEP'],_0x15e1d8[_0x5791f9(0x14c)],_0x15e1d8[_0x5791f9(0x1ab)]]);const _0x2bbabe=_0x561742||_0x48a06f&&_0x48a06f['wsEndpoint'];if(_0x2bbabe){_0x3f13a4=_0x15e1d8['hgqoB'](getCloudProviderFromWsEndpoint,_0x2bbabe);if(_0x15e1d8[_0x5791f9(0x1d9)](_0x3f13a4,_0x15e1d8[_0x5791f9(0x170)]))_0x2db584=constants[_0x5791f9(0x12d)]['test'](_0x2bbabe)?_0x15e1d8[_0x5791f9(0x1ce)]:_0x15e1d8[_0x5791f9(0x1e7)],_0x4d9403=_0x15e1d8[_0x5791f9(0x192)](getBrowserFromWSEndpoint,_0x2bbabe)||_0x4d9403,_0x1ebfc6=_0x273e41[_0x5791f9(0x1e9)]['platform'],_0x2ad04f=_0x273e41[_0x5791f9(0x1e9)][_0x5791f9(0x16a)];else{const _0x114430=await _0x15e1d8['yUrXT'](getPlatformDetails);_0x1ebfc6=_0x114430[_0x5791f9(0x1c0)],_0x2ad04f=_0x114430[_0x5791f9(0x1d6)];}}if(_0x15e1d8[_0x5791f9(0x125)](!_0x1ebfc6,!_0x2ad04f)&&!_0x15e1d8['yUrXT'](isBrowserstackInfra)){const _0x145e27=await _0x15e1d8[_0x5791f9(0x13e)](getPlatformDetails);_0x1ebfc6=_0x145e27['platformName'],_0x2ad04f=_0x145e27[_0x5791f9(0x1d6)];}}else{_0x364ff1&&_0x364ff1['project']['use'][_0x5791f9(0x1c1)]?_0x4d9403=_0x15e1d8['JKaMx'](getBrowserNameFromChannel,_0x364ff1['project'][_0x5791f9(0x15b)][_0x5791f9(0x1c1)]):_0x4d9403=_0x15e1d8[_0x5791f9(0x195)](_0x15e1d8[_0x5791f9(0x19b)],_0x15e1d8['qoxHl'](_0x4d9403,_0x15e1d8[_0x5791f9(0x1f7)])[_0x5791f9(0x194)]());const _0x1fe001=await _0x15e1d8[_0x5791f9(0x174)](getPlatformDetails);_0x1ebfc6=_0x1fe001[_0x5791f9(0x1c0)],_0x2ad04f=_0x1fe001[_0x5791f9(0x1d6)];}const _0x50de8b={};_0x50de8b[_0x5791f9(0x1a4)]=_0x4d9403,_0x50de8b[_0x5791f9(0x1f4)]=_0x4ea41a,_0x50de8b['capabilities']={},_0x50de8b[_0x5791f9(0x144)]=_0x1ebfc6,_0x50de8b[_0x5791f9(0x16a)]=_0x2ad04f,_0x50de8b[_0x5791f9(0x12c)]=_0x2db584;const _0xa20eb=_0x50de8b;_0x5c4390&&(_0xa20eb['capabilities']['deviceModel']=_0x5c4390);const _0x6e8786={};_0x6e8786[_0x5791f9(0x15d)]=_0x3f13a4,_0x273e41[_0x5791f9(0x1e9)]=Object[_0x5791f9(0x1b5)]({},_0x273e41['currentSessionDetails'],_0x6e8786,_0xa20eb);},_0x15e1d8[_0x45abbe(0x181)])(_0x1ab9a9,_0x2c9381,_0x5026eb);}static[a54_0x3c6080(0x168)](){const _0x4d0eb2=a54_0x3c6080;this[_0x4d0eb2(0x12a)](),this['patchCRConnection']();}static[a54_0x3c6080(0x12a)](){const _0x1f8f7d=a54_0x3c6080,_0x15f093={'qMscV':function(_0x2b4151,_0x2eba98,_0xc31f90){return _0x2b4151(_0x2eba98,_0xc31f90);},'FQdIe':_0x1f8f7d(0x121),'fcaGV':'testInfo','kScPe':'titlePath','xGxTx':function(_0x18161b,_0x4f0686,_0x2ed52a){return _0x18161b(_0x4f0686,_0x2ed52a);},'HcwFN':_0x1f8f7d(0x12b),'YyBEa':_0x1f8f7d(0x169),'VRYem':function(_0x5baad6,_0x44a394){return _0x5baad6===_0x44a394;},'vVjmt':'Page','CkXjk':function(_0x52380d,_0x55e9b7,_0xd226cc,_0x514dc5){return _0x52380d(_0x55e9b7,_0xd226cc,_0x514dc5);},'giACa':function(_0x36775c,_0xa9eb01){return _0x36775c||_0xa9eb01;},'bQVzW':function(_0x1c1285,_0x1be859){return _0x1c1285(_0x1be859);},'gsKqP':function(_0x32514a,_0x5447a6){return _0x32514a(_0x5447a6);},'CUFRp':function(_0x47ffa8,_0x22b099){return _0x47ffa8(_0x22b099);},'NVSdA':_0x1f8f7d(0x143),'pYaqd':function(_0x4bd961,_0x32f60b){return _0x4bd961!=_0x32f60b;},'MzdiB':function(_0xd9789d){return _0xd9789d();},'EyTYT':_0x1f8f7d(0x132),'TggaL':function(_0x1f9092,_0x5b0c7c){return _0x1f9092(_0x5b0c7c);},'BBexu':'dispatch','pWNpg':_0x1f8f7d(0x150)},_0xa864b1=this;!this[_0x1f8f7d(0x1d8)]&&(this['Connection']=helper['resolveConnectionClass'](),!this['Connection']&&_0x15f093['gsKqP'](debug,_0x15f093[_0x1f8f7d(0x1cb)]));const _0x87df38=this[_0x1f8f7d(0x1d8)];if(_0x15f093[_0x1f8f7d(0x14f)](_0x87df38,null)&&_0x87df38[_0x1f8f7d(0x1a1)]['_bstackDispatchPatched'])return;try{if(_0x15f093[_0x1f8f7d(0x14f)](_0x87df38,null)){const _0x39a22a=_0x87df38[_0x1f8f7d(0x1a1)][_0x1f8f7d(0x1e1)],_0x5ddadd=_0x87df38['prototype']['sendMessageToServer'];_0x15f093[_0x1f8f7d(0x1f8)](isAccessibilityAutomationSession)&&Object[_0x1f8f7d(0x123)](_0x87df38['prototype'],_0x15f093[_0x1f8f7d(0x17f)],{'get':function(){return async function(){const _0x467d73=a54_0x5ba5;try{if(!global[_0x467d73(0x186)]&&global['accessibilityPlatform']&&_0x15f093[_0x467d73(0x149)](nestedKeyValue,global[_0x467d73(0x12b)],[_0x15f093['FQdIe'],_0x15f093[_0x467d73(0x1f6)],_0x15f093['kScPe']])&&_0x15f093[_0x467d73(0x149)](shouldScanTestForAccessibility,global[_0x467d73(0x12b)]['currentTest'][_0x467d73(0x1c9)]['titlePath'],!![])&&scripts[_0x467d73(0x1b4)](arguments[0x1])){logger[_0x467d73(0x1b6)](_0x467d73(0x183)+arguments[0x1]),global['bstackPerformA11yScan']=!![];const _0x3cd5ff=_0x15f093[_0x467d73(0x199)](nestedKeyValue,global,[_0x15f093[_0x467d73(0x140)],_0x15f093[_0x467d73(0x1a7)]]);_0x3cd5ff&&logger[_0x467d73(0x1a6)](_0x467d73(0x1dc)+util[_0x467d73(0x1a9)](await _0x15f093[_0x467d73(0x199)](performScanWithRetry,_0x3cd5ff,arguments[0x1]))),_0x15f093[_0x467d73(0x1d1)](arguments[0x0][_0x467d73(0x1ae)],_0x15f093['vVjmt'])&&global[_0x467d73(0x16d)]&&logger[_0x467d73(0x1a6)](_0x467d73(0x14d)+util[_0x467d73(0x1a9)](await _0x15f093[_0x467d73(0x1ef)](performScanWithRetry,global[_0x467d73(0x16d)],arguments[0x1],scripts['performScan'])));}}catch(_0x538769){logger[_0x467d73(0x1b6)]('Failed\x20to\x20perform\x20scan\x20'+util[_0x467d73(0x1a9)](_0x538769));}return global[_0x467d73(0x186)]=![],_0x5ddadd[_0x467d73(0x1c8)](this,arguments);};}}),!_0x15f093[_0x1f8f7d(0x159)](isFalse,process[_0x1f8f7d(0x19e)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&Object[_0x1f8f7d(0x123)](_0x87df38['prototype'],_0x15f093[_0x1f8f7d(0x160)],{'get':function(){const _0x563469={'kUvxF':function(_0x4021fa,_0x579bcd){const _0x1392f7=a54_0x5ba5;return _0x15f093[_0x1392f7(0x1bf)](_0x4021fa,_0x579bcd);},'aaLjN':function(_0x5c975f,_0x38a5d8){const _0xdd080d=a54_0x5ba5;return _0x15f093[_0xdd080d(0x13b)](_0x5c975f,_0x38a5d8);},'FPIEu':function(_0x1fcc5e,_0x5ce8c7){const _0x5d4dcf=a54_0x5ba5;return _0x15f093[_0x5d4dcf(0x148)](_0x1fcc5e,_0x5ce8c7);},'BRUPd':function(_0x10925d,_0x26d772){const _0x46762a=a54_0x5ba5;return _0x15f093[_0x46762a(0x1ee)](_0x10925d,_0x26d772);}};return function _0x271d63(_0x95bb29){const _0x33831a=a54_0x5ba5,_0x57edff=_0x39a22a[_0x33831a(0x1c8)](this,arguments);try{if(BrowserstackCLI[_0x33831a(0x1bc)]()[_0x33831a(0x1d7)]()){const _0x345ed8={};_0x345ed8[_0x33831a(0x18d)]=_0x95bb29,Promise[_0x33831a(0x1be)](BrowserstackCLI[_0x33831a(0x1bc)]()['getAutomationFramework']()[_0x33831a(0x14b)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x33831a(0x136)],_0x345ed8))[_0x33831a(0x134)](()=>{});}else{const _0x4cebb6=_0x95bb29&&_0x95bb29['params']&&_0x95bb29[_0x33831a(0x1a5)]['bsParams'];if(_0x4cebb6){const _0x3433fb=_0x4cebb6[_0x33831a(0x178)],_0x34600e=_0x4cebb6[_0x33831a(0x1a8)];_0x563469[_0x33831a(0x187)](!_0x3433fb,!_0x34600e)&&Promise['resolve'](ClientTroubleShootingService[_0x33831a(0x1c4)]())['catch'](()=>{}),_0x34600e&&(_0x563469[_0x33831a(0x157)](debug,_0x33831a(0x19c)+_0x34600e[_0x33831a(0x18c)]()),_0xa864b1[_0x33831a(0x1e9)][_0x33831a(0x144)]=_0x34600e['platformName'],_0xa864b1[_0x33831a(0x1e9)][_0x33831a(0x16a)]=_0x34600e[_0x33831a(0x1d6)]),_0x3433fb&&(_0x563469[_0x33831a(0x1f9)](debug,_0x33831a(0x13c)+_0x3433fb),_0xa864b1[_0x33831a(0x1e9)][_0x33831a(0x155)]=_0x3433fb);}}}catch(_0x2b5858){_0x563469[_0x33831a(0x1ec)](debug,_0x33831a(0x172)+(_0x2b5858&&_0x2b5858['toString']?_0x2b5858['toString']():_0x2b5858));}return _0x57edff;};}}),_0x87df38[_0x1f8f7d(0x1a1)][_0x1f8f7d(0x153)]=!![],logger['debug'](_0x15f093[_0x1f8f7d(0x154)]);}}catch(_0x1ea81a){_0x15f093[_0x1f8f7d(0x13b)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x1ea81a),_0xa864b1['sessionError']=_0x1ea81a[_0x1f8f7d(0x18c)]();}}static[a54_0x3c6080(0x1a2)](){const _0x407166=a54_0x3c6080,_0x317b4f={'aTbzg':function(_0x5c52eb,_0x3e48a2){return _0x5c52eb(_0x3e48a2);},'LbvAC':function(_0x85d840){return _0x85d840();},'IhRIZ':function(_0x484d06,_0x103047){return _0x484d06>=_0x103047;},'ByBHx':_0x407166(0x180),'nQVpN':function(_0x68c669,_0x25dd7c){return _0x68c669(_0x25dd7c);},'OWBnm':_0x407166(0x1dd),'IwCKl':_0x407166(0x1db),'Fxkuc':_0x407166(0x1f3),'YleMx':'chromium','Jutqd':_0x407166(0x1da),'ZXjvA':function(_0x13603a,_0x5256d6){return _0x13603a(_0x5256d6);},'TUiAO':_0x407166(0x1cc),'kJpXt':_0x407166(0x175),'eZgQV':function(_0x4deb31,_0x16a298){return _0x4deb31!=_0x16a298;},'jHOZe':_0x407166(0x16f)},_0x1aefef=this;if(_0x317b4f[_0x407166(0x1d5)](isAccessibilityAutomationSession)){let _0x1c25cb=null,_0x1ca862=![];try{const _0x5e8853=helper['getFrameworkVersion'](FRAMEWORKS[_0x407166(0x185)]);_0x1ca862=_0x317b4f[_0x407166(0x17b)](helper[_0x407166(0x1e0)](_0x5e8853,_0x317b4f['ByBHx']),0x0);}catch(_0x2db7b1){_0x317b4f['aTbzg'](debug,_0x407166(0x162)+_0x2db7b1['toString']());}if(_0x1ca862)_0x317b4f[_0x407166(0x141)](debug,_0x317b4f['OWBnm']);else try{const _0x3566e8=path[_0x407166(0x1ed)](_0x317b4f['IwCKl'],_0x317b4f['Fxkuc'],_0x317b4f[_0x407166(0x1bd)],_0x317b4f[_0x407166(0x139)]),_0x1f8287=_0x317b4f[_0x407166(0x18f)](importFileFromPWCore,_0x3566e8);!_0x1f8287?_0x317b4f[_0x407166(0x1b9)](debug,_0x317b4f[_0x407166(0x151)]):_0x1c25cb=_0x1f8287[_0x407166(0x14e)];}catch(_0x5dad43){_0x317b4f['ZXjvA'](debug,_0x317b4f[_0x407166(0x16c)]);}try{if(_0x317b4f[_0x407166(0x1c5)](_0x1c25cb,null)){const _0x49cfa5=_0x1c25cb[_0x407166(0x1a1)]['_onMessage'];Object[_0x407166(0x123)](_0x1c25cb[_0x407166(0x1a1)],_0x317b4f['jHOZe'],{'get':function(){const _0x3674ef={'WunDy':function(_0x4432f5,_0x23625f){const _0x76ca59=a54_0x5ba5;return _0x317b4f[_0x76ca59(0x18f)](_0x4432f5,_0x23625f);}};return async function _0x2aa211(_0x563780){const _0x34be0e=a54_0x5ba5;try{if(BrowserstackCLI[_0x34be0e(0x1bc)]()[_0x34be0e(0x1d7)]()){const _0x4706ef={};_0x4706ef[_0x34be0e(0x18d)]=_0x563780,await BrowserstackCLI[_0x34be0e(0x1bc)]()[_0x34be0e(0x17c)]()[_0x34be0e(0x14b)](AutomationFrameworkState[_0x34be0e(0x1aa)],HookState['POST'],_0x4706ef),delete _0x563780['bStackParams'];}else{const _0x25486c=_0x563780[_0x34be0e(0x1ca)];if(_0x25486c){delete _0x563780[_0x34be0e(0x1ca)];const _0x1038da=_0x25486c['sessionId'],_0x328600=_0x25486c[_0x34be0e(0x1a8)];_0x328600&&(_0x3674ef['WunDy'](debug,_0x34be0e(0x1e4)+_0x328600[_0x34be0e(0x18c)]()),_0x1aefef[_0x34be0e(0x1e9)][_0x34be0e(0x144)]=_0x328600[_0x34be0e(0x1c0)],_0x1aefef[_0x34be0e(0x1e9)][_0x34be0e(0x16a)]=_0x328600[_0x34be0e(0x1d6)]),_0x1038da&&(_0x3674ef[_0x34be0e(0x13f)](debug,_0x34be0e(0x15c)+_0x1038da),_0x1aefef['currentSessionDetails'][_0x34be0e(0x155)]=_0x1038da);}}}catch(_0x2f0e79){_0x3674ef[_0x34be0e(0x13f)](debug,_0x34be0e(0x1b0)+_0x2f0e79['toString']());}return _0x49cfa5['apply'](this,arguments);};}});}}catch(_0x1d49cc){_0x317b4f[_0x407166(0x18f)](debug,_0x407166(0x1d4)+_0x1d49cc),_0x1aefef['sessionError']=_0x1d49cc[_0x407166(0x18c)]();}}}static['getDetails'](){const _0x2113f6=a54_0x3c6080;return this[_0x2113f6(0x1e9)];}}module[a54_0x3c6080(0x19f)]=PlaywrightSessionDetails;
|
|
1
|
+
const a56_0x1a9411=a56_0x32ae;(function(_0x5f0529,_0x475463){const _0x31ccd0=a56_0x32ae,_0x2dd6f5=_0x5f0529();while(!![]){try{const _0x3fa2d7=-parseInt(_0x31ccd0(0x132))/0x1+parseInt(_0x31ccd0(0x10d))/0x2*(-parseInt(_0x31ccd0(0x156))/0x3)+-parseInt(_0x31ccd0(0xde))/0x4*(-parseInt(_0x31ccd0(0x10c))/0x5)+-parseInt(_0x31ccd0(0x19a))/0x6+-parseInt(_0x31ccd0(0x19d))/0x7*(parseInt(_0x31ccd0(0x15a))/0x8)+-parseInt(_0x31ccd0(0x163))/0x9+parseInt(_0x31ccd0(0x17c))/0xa*(parseInt(_0x31ccd0(0xea))/0xb);if(_0x3fa2d7===_0x475463)break;else _0x2dd6f5['push'](_0x2dd6f5['shift']());}catch(_0x5189bf){_0x2dd6f5['push'](_0x2dd6f5['shift']());}}}(a56_0x264e,0xc14b0));const path=require('path'),url=require(a56_0x1a9411(0xe8)),util=require(a56_0x1a9411(0x166)),helper=require(a56_0x1a9411(0x1a5)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require('../../helpers/helper'),{o11yErrorHandler}=require(a56_0x1a9411(0x18f)),{debug,getPlatformDetails}=require(a56_0x1a9411(0xdf)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{FRAMEWORKS}=require(a56_0x1a9411(0x1a9)),logger=require('../../helpers/logger')['winstonLogger'],scripts=require('../../helpers/accessibility-automation/scripts'),{browserStackExecuteDriver}=require('../../bin/playwright/accessibility-helper'),AccessibilityHelper=require(a56_0x1a9411(0x182)),constants=require('../utils/constants'),BrowserstackCLI=require(a56_0x1a9411(0x176)),AutomationFrameworkState=require(a56_0x1a9411(0x196)),HookState=require(a56_0x1a9411(0xdd)),{performScanWithRetry}=require('../../helpers/accessibility-automation/accessibilityRetryHelper.js'),ClientTroubleShootingService=require(a56_0x1a9411(0x16b)),getBrowserNameFromChannel=_0x2ee32e=>{const _0x325fac=a56_0x1a9411,_0x2898c1={};_0x2898c1[_0x325fac(0x114)]=_0x325fac(0x131),_0x2898c1[_0x325fac(0x11b)]=_0x325fac(0x181),_0x2898c1['mHdYz']='safari',_0x2898c1[_0x325fac(0x167)]=function(_0x44729d,_0x1a9929){return _0x44729d!==_0x1a9929;},_0x2898c1[_0x325fac(0xe0)]=_0x325fac(0xef),_0x2898c1[_0x325fac(0x165)]=_0x325fac(0x16c),_0x2898c1[_0x325fac(0x158)]=_0x325fac(0xda),_0x2898c1[_0x325fac(0xfe)]=_0x325fac(0x135),_0x2898c1[_0x325fac(0x11d)]=function(_0x370ef9,_0x546464){return _0x370ef9===_0x546464;},_0x2898c1[_0x325fac(0xf0)]=_0x325fac(0x11f);const _0x21701c=_0x2898c1,_0x13c7be=_0x21701c['zSrlI'][_0x325fac(0x15d)]('|');let _0x3d6488=0x0;while(!![]){switch(_0x13c7be[_0x3d6488++]){case'0':if(_0x2ee32e[_0x325fac(0x172)](_0x21701c[_0x325fac(0x11b)]))return _0x21701c[_0x325fac(0x11b)];continue;case'1':if(_0x2ee32e['includes'](_0x21701c['mHdYz']))return _0x21701c[_0x325fac(0xf1)];continue;case'2':if(!_0x2ee32e||_0x21701c[_0x325fac(0x167)](typeof _0x2ee32e,_0x21701c[_0x325fac(0xe0)]))return _0x21701c[_0x325fac(0x165)];continue;case'3':if(_0x2ee32e[_0x325fac(0x172)](_0x21701c[_0x325fac(0x158)]))return _0x21701c[_0x325fac(0x158)];continue;case'4':if(_0x2ee32e[_0x325fac(0x172)](_0x21701c[_0x325fac(0xfe)]))return _0x21701c[_0x325fac(0xfe)];continue;case'5':return _0x2ee32e;case'6':if(_0x21701c[_0x325fac(0x11d)](_0x2ee32e,_0x21701c['ZlCiR']))return _0x21701c['ZlCiR'];continue;case'7':if(_0x2ee32e['includes'](_0x21701c[_0x325fac(0x165)]))return _0x21701c[_0x325fac(0x165)];continue;}break;}},getBrowserFromWSEndpoint=_0x473cbf=>{const _0x566955=a56_0x1a9411,_0x40beb3={'PPwOc':_0x566955(0xda),'plMlu':function(_0x14f207,_0x3c1783){return _0x14f207(_0x3c1783);}};try{const _0x28f20e=url[_0x566955(0x188)](_0x473cbf),_0x2f0a4a=new URLSearchParams(_0x28f20e[_0x566955(0x159)]),_0x37d4ab=Object[_0x566955(0x10a)](_0x2f0a4a[_0x566955(0xe6)]()),_0x32dfad=JSON[_0x566955(0x188)](_0x37d4ab[_0x566955(0x149)]);if(_0x32dfad&&(_0x32dfad[_0x566955(0x199)]||_0x32dfad[_0x566955(0x142)]))return _0x32dfad['browser']||_0x32dfad['browserName'];return _0x40beb3[_0x566955(0x143)];}catch(_0x3f0637){_0x40beb3[_0x566955(0x13e)](debug,_0x566955(0xfc)+_0x3f0637[_0x566955(0x140)]());}},getCloudProviderFromWsEndpoint=_0x3d752f=>{const _0xc88ee6=a56_0x1a9411,_0x295b3a={};_0x295b3a[_0xc88ee6(0x169)]='browserstack',_0x295b3a['hBpJp']='unknown_grid';const _0xab743d=_0x295b3a;if(_0x3d752f['includes'](constants['BSTACK_URL'])||_0x3d752f[_0xc88ee6(0x172)](constants[_0xc88ee6(0x18c)]))return _0xab743d[_0xc88ee6(0x169)];return _0xab743d[_0xc88ee6(0x197)];},a56_0x1fcc23={};a56_0x1fcc23[a56_0x1a9411(0x18b)]=undefined,a56_0x1fcc23['bsSessionId']=undefined,a56_0x1fcc23[a56_0x1a9411(0x199)]=undefined,a56_0x1fcc23['browser_version']=undefined,a56_0x1fcc23[a56_0x1a9411(0x11c)]=undefined,a56_0x1fcc23[a56_0x1a9411(0xeb)]=undefined,a56_0x1fcc23[a56_0x1a9411(0x19b)]=undefined,a56_0x1fcc23['capabilities']={};class PlaywrightSessionDetails{static ['currentSessionDetails']=a56_0x1fcc23;constructor(){const _0x3ffb6f=a56_0x1a9411,_0x4a2a78={};_0x4a2a78[_0x3ffb6f(0xdb)]=_0x3ffb6f(0x126);const _0x260f31=_0x4a2a78;throw new Error(_0x260f31[_0x3ffb6f(0xdb)]);}static [a56_0x1a9411(0xf6)]=null;static[a56_0x1a9411(0x16d)](_0xe7bd05,_0x5e23a1,_0x36c971=null){const _0x2b3e5f=a56_0x1a9411,_0x5c3745={'rvGrt':_0x2b3e5f(0x151),'kTlHi':function(_0x2ffaf3){return _0x2ffaf3();},'JiWXR':_0x2b3e5f(0x19c),'BhZRn':_0x2b3e5f(0x128),'wbgMA':_0x2b3e5f(0x139),'olglj':_0x2b3e5f(0xf4),'ZTuBc':function(_0x3ed803,_0x1dabe1){return _0x3ed803===_0x1dabe1;},'sLbzo':_0x2b3e5f(0x136),'WdxoX':_0x2b3e5f(0x14b),'laFFC':_0x2b3e5f(0x18d),'ROpqM':function(_0x319ec0,_0x3fdf19){return _0x319ec0===_0x3fdf19;},'kBuRp':function(_0x4adee2,_0x4bf9aa,_0x59ceb4){return _0x4adee2(_0x4bf9aa,_0x59ceb4);},'pqDbv':_0x2b3e5f(0x164),'NCYGa':_0x2b3e5f(0x144),'QMczz':_0x2b3e5f(0x17a),'hEUBL':_0x2b3e5f(0x187),'tfQKr':_0x2b3e5f(0xf7),'aATZz':function(_0x3249be,_0x449b62){return _0x3249be(_0x449b62);},'POIBS':function(_0x6f5ab,_0x5ec856){return _0x6f5ab===_0x5ec856;},'mjByM':_0x2b3e5f(0x12d),'rNuwq':_0x2b3e5f(0x177),'rrqYK':function(_0x30589b,_0x3000a8){return _0x30589b(_0x3000a8);},'rURCU':function(_0x2e956e){return _0x2e956e();},'aMSwv':function(_0x5743f4,_0x2d76e4){return _0x5743f4&&_0x2d76e4;},'fgYqp':function(_0x31964c,_0x3b415a){return _0x31964c+_0x3b415a;},'qSBEI':_0x2b3e5f(0xe4),'jaHYD':function(_0x19758b,_0x47e452){return _0x19758b||_0x47e452;},'fSNFX':_0x2b3e5f(0x16d)},_0x4ffd19=this;return _0x5c3745[_0x2b3e5f(0x1a3)](o11yErrorHandler,async function _0x6ac8b2(_0x2142a5,_0x13654f,_0x1bdaa1=null){const _0x1785dc=_0x2b3e5f;if(!_0x2142a5){logger[_0x1785dc(0xfd)](_0x5c3745['rvGrt']),_0x4ffd19['currentSessionDetails']=Object[_0x1785dc(0x1a1)]({},_0x4ffd19[_0x1785dc(0x125)],{'cloudProvider':_0x5c3745[_0x1785dc(0x191)](isBrowserstackInfra)?_0x5c3745['JiWXR']:_0x5c3745[_0x1785dc(0x15f)],'browser':_0x5c3745['wbgMA'],'browser_version':_0x5c3745['olglj']});return;}let _0x3dbac2=_0x2142a5[_0x1785dc(0x124)],_0xfb8d0c=null;_0x2142a5&&_0x5c3745[_0x1785dc(0xf5)](typeof _0x2142a5[_0x1785dc(0x13b)],_0x5c3745[_0x1785dc(0x122)])?_0xfb8d0c=_0x2142a5[_0x1785dc(0x13b)]():logger[_0x1785dc(0xfd)](_0x5c3745[_0x1785dc(0x19e)]);let _0x5d02c8=null;_0x2142a5&&_0x5c3745[_0x1785dc(0xf5)](typeof _0x2142a5[_0x1785dc(0xff)],_0x5c3745[_0x1785dc(0x122)])?_0x5d02c8=_0x2142a5['model']():logger[_0x1785dc(0xfd)](_0x5c3745[_0x1785dc(0x14c)]);let _0x495b47=null,_0x3037f4=null,_0x29661b=null,_0x5a23be=_0x5c3745[_0x1785dc(0x15f)];const _0x31a1ca=_0x2142a5[_0x1785dc(0xe7)]&&_0x5c3745[_0x1785dc(0x193)](typeof _0x2142a5[_0x1785dc(0xe7)][_0x1785dc(0x17d)],_0x5c3745[_0x1785dc(0x122)])?_0x2142a5[_0x1785dc(0xe7)][_0x1785dc(0x17d)]():![];if(_0x31a1ca||global['accessibilityPlatform']&&!process[_0x1785dc(0x16e)][_0x1785dc(0x15c)]){let _0x11306a=null;_0x5c3745['kBuRp'](nestedKeyValue,_0x2142a5,[_0x5c3745[_0x1785dc(0x147)],_0x5c3745[_0x1785dc(0x119)]])?_0x11306a=_0x2142a5[_0x1785dc(0x164)][_0x1785dc(0x144)]:_0x11306a=_0x5c3745[_0x1785dc(0x1a3)](nestedKeyValue,_0x13654f,[_0x5c3745[_0x1785dc(0x152)],_0x5c3745[_0x1785dc(0x160)],_0x5c3745['tfQKr']]);const _0x27ecde=_0x1bdaa1||_0x11306a&&_0x11306a[_0x1785dc(0xe1)];if(_0x27ecde){_0x5a23be=_0x5c3745[_0x1785dc(0x109)](getCloudProviderFromWsEndpoint,_0x27ecde);if(_0x5c3745[_0x1785dc(0x168)](_0x5a23be,_0x5c3745['JiWXR']))_0x29661b=constants[_0x1785dc(0x138)][_0x1785dc(0x14d)](_0x27ecde)?_0x5c3745[_0x1785dc(0x104)]:_0x5c3745[_0x1785dc(0x14a)],_0x3dbac2=_0x5c3745[_0x1785dc(0x12b)](getBrowserFromWSEndpoint,_0x27ecde)||_0x3dbac2,_0x495b47=_0x4ffd19[_0x1785dc(0x125)][_0x1785dc(0x11c)],_0x3037f4=_0x4ffd19[_0x1785dc(0x125)]['platform_version'];else{const _0x213dd2=await _0x5c3745['rURCU'](getPlatformDetails);_0x495b47=_0x213dd2[_0x1785dc(0x155)],_0x3037f4=_0x213dd2[_0x1785dc(0x130)];}}if(_0x5c3745['aMSwv'](!_0x495b47,!_0x3037f4)&&!_0x5c3745[_0x1785dc(0x173)](isBrowserstackInfra)){const _0x57de71=await _0x5c3745[_0x1785dc(0x173)](getPlatformDetails);_0x495b47=_0x57de71['platformName'],_0x3037f4=_0x57de71['platformVersion'];}}else{_0x13654f&&_0x13654f[_0x1785dc(0x17a)]['use'][_0x1785dc(0x101)]?_0x3dbac2=_0x5c3745[_0x1785dc(0x12b)](getBrowserNameFromChannel,_0x13654f[_0x1785dc(0x17a)][_0x1785dc(0x187)][_0x1785dc(0x101)]):_0x3dbac2=_0x5c3745[_0x1785dc(0x12a)](_0x5c3745[_0x1785dc(0xf8)],_0x5c3745[_0x1785dc(0xf9)](_0x3dbac2,_0x5c3745['olglj'])[_0x1785dc(0x106)]());const _0x3b938a=await _0x5c3745[_0x1785dc(0x191)](getPlatformDetails);_0x495b47=_0x3b938a[_0x1785dc(0x155)],_0x3037f4=_0x3b938a[_0x1785dc(0x130)];}const _0x3dfdfa={};_0x3dfdfa['browser']=_0x3dbac2,_0x3dfdfa[_0x1785dc(0x180)]=_0xfb8d0c,_0x3dfdfa['capabilities']={},_0x3dfdfa['platform']=_0x495b47,_0x3dfdfa[_0x1785dc(0xeb)]=_0x3037f4,_0x3dfdfa['product']=_0x29661b;const _0x5bf031=_0x3dfdfa;_0x5d02c8&&(_0x5bf031['capabilities'][_0x1785dc(0x15e)]=_0x5d02c8);const _0x1b84c8={};_0x1b84c8[_0x1785dc(0x18b)]=_0x5a23be,_0x4ffd19[_0x1785dc(0x125)]=Object['assign']({},_0x4ffd19[_0x1785dc(0x125)],_0x1b84c8,_0x5bf031);},_0x5c3745[_0x2b3e5f(0x112)])(_0xe7bd05,_0x5e23a1,_0x36c971);}static[a56_0x1a9411(0xe3)](){const _0x42f214=a56_0x1a9411;this['patchConnection'](),this[_0x42f214(0x120)]();}static[a56_0x1a9411(0x1a6)](){const _0xe22a15=a56_0x1a9411,_0x1a2af7={'gKjKx':function(_0x4b43e3,_0x4479b1,_0x5e681e){return _0x4b43e3(_0x4479b1,_0x5e681e);},'HsfcN':_0xe22a15(0x174),'eLBeb':_0xe22a15(0xe2),'hjGZN':'titlePath','yLKkl':function(_0x5d84df,_0x54a9d1,_0x53e240){return _0x5d84df(_0x54a9d1,_0x53e240);},'Sjlrd':_0xe22a15(0x186),'mLNLc':_0xe22a15(0x1a2),'NQhoi':function(_0x342b32,_0x15526e,_0x174e75){return _0x342b32(_0x15526e,_0x174e75);},'MSMig':function(_0xbe5a73,_0x3bead7){return _0xbe5a73===_0x3bead7;},'rjfJU':_0xe22a15(0x100),'ScNBy':function(_0x453a10,_0x52199f,_0x3e0a82,_0x35e1e0){return _0x453a10(_0x52199f,_0x3e0a82,_0x35e1e0);},'KLwMB':function(_0x227e13,_0xdf1ec1){return _0x227e13||_0xdf1ec1;},'BeyPm':function(_0x3afd3a,_0x532c02){return _0x3afd3a(_0x532c02);},'gEnch':function(_0x4b84f1,_0x163176){return _0x4b84f1(_0x163176);},'FMRtp':function(_0x550093,_0x2f33dc){return _0x550093(_0x2f33dc);},'QJGed':_0xe22a15(0x141),'AxaQe':function(_0x53bc9b,_0x1a79e0){return _0x53bc9b!=_0x1a79e0;},'rLSTS':function(_0x504a8e){return _0x504a8e();},'ErczU':_0xe22a15(0x133),'aXxRd':'dispatch','vVCEE':'Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','MJYNE':function(_0x514920,_0x46b9b7){return _0x514920(_0x46b9b7);}},_0xdeb777=this;!this['Connection']&&(this[_0xe22a15(0x117)]=helper[_0xe22a15(0x134)](),!this[_0xe22a15(0x117)]&&_0x1a2af7['FMRtp'](debug,_0x1a2af7[_0xe22a15(0x16a)]));const _0x1c49f2=this[_0xe22a15(0x117)];if(_0x1a2af7[_0xe22a15(0x162)](_0x1c49f2,null)&&_0x1c49f2[_0xe22a15(0x18a)]['_bstackDispatchPatched'])return;try{if(_0x1a2af7[_0xe22a15(0x162)](_0x1c49f2,null)){const _0x5ebaff=_0x1c49f2[_0xe22a15(0x18a)][_0xe22a15(0x1a7)],_0x188248=_0x1c49f2[_0xe22a15(0x18a)][_0xe22a15(0x133)];_0x1a2af7[_0xe22a15(0x150)](isAccessibilityAutomationSession)&&Object[_0xe22a15(0x11a)](_0x1c49f2['prototype'],_0x1a2af7[_0xe22a15(0x1aa)],{'get':function(){return async function(){const _0x34e69f=a56_0x32ae;try{if(!global[_0x34e69f(0x123)]&&global[_0x34e69f(0xfa)]&&_0x1a2af7[_0x34e69f(0x116)](nestedKeyValue,global['__workerDetails'],[_0x1a2af7['HsfcN'],_0x1a2af7['eLBeb'],_0x1a2af7['hjGZN']])&&_0x1a2af7[_0x34e69f(0x183)](shouldScanTestForAccessibility,global[_0x34e69f(0x186)][_0x34e69f(0x174)][_0x34e69f(0xe2)][_0x34e69f(0x14e)],!![])&&scripts[_0x34e69f(0xe9)](arguments[0x1])){logger[_0x34e69f(0xfd)](_0x34e69f(0x154)+arguments[0x1]),global[_0x34e69f(0x123)]=!![];const _0x54bc1a=_0x1a2af7['yLKkl'](nestedKeyValue,global,[_0x1a2af7[_0x34e69f(0x175)],_0x1a2af7['mLNLc']]);_0x54bc1a&&logger[_0x34e69f(0xf3)](_0x34e69f(0x121)+util[_0x34e69f(0x10b)](await _0x1a2af7[_0x34e69f(0x157)](performScanWithRetry,_0x54bc1a,arguments[0x1]))),_0x1a2af7[_0x34e69f(0x12e)](arguments[0x0][_0x34e69f(0x103)],_0x1a2af7[_0x34e69f(0x11e)])&&global[_0x34e69f(0x198)]&&logger[_0x34e69f(0xf3)](_0x34e69f(0xdc)+util[_0x34e69f(0x10b)](await _0x1a2af7[_0x34e69f(0x179)](performScanWithRetry,global['__driver'],arguments[0x1],scripts['performScan'])));}}catch(_0x53e5fd){logger['debug'](_0x34e69f(0x13c)+util[_0x34e69f(0x10b)](_0x53e5fd));}return global[_0x34e69f(0x123)]=![],_0x188248[_0x34e69f(0x108)](this,arguments);};}}),!_0x1a2af7[_0xe22a15(0x12c)](isFalse,process[_0xe22a15(0x16e)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&Object['defineProperty'](_0x1c49f2[_0xe22a15(0x18a)],_0x1a2af7[_0xe22a15(0x19f)],{'get':function(){const _0x3544ce={'cZydp':function(_0x528fb6,_0x5b49e4){return _0x1a2af7['KLwMB'](_0x528fb6,_0x5b49e4);},'MbOhw':function(_0x3777c0,_0x4a954b){const _0x4254c1=a56_0x32ae;return _0x1a2af7[_0x4254c1(0xd9)](_0x3777c0,_0x4a954b);},'ubrhq':function(_0x27d085,_0x1c1cf0){const _0x3e81a9=a56_0x32ae;return _0x1a2af7[_0x3e81a9(0x12c)](_0x27d085,_0x1c1cf0);},'KvIKo':function(_0x443949,_0x5931f2){const _0x37dda0=a56_0x32ae;return _0x1a2af7[_0x37dda0(0x12c)](_0x443949,_0x5931f2);}};return function _0x10182c(_0x4f9fb9){const _0x44086e=a56_0x32ae,_0x19fb9f=_0x5ebaff[_0x44086e(0x108)](this,arguments);try{if(BrowserstackCLI[_0x44086e(0xfb)]()[_0x44086e(0x17f)]()){const _0x127194={};_0x127194[_0x44086e(0x194)]=_0x4f9fb9,Promise[_0x44086e(0x185)](BrowserstackCLI[_0x44086e(0xfb)]()[_0x44086e(0x171)]()[_0x44086e(0x192)](AutomationFrameworkState[_0x44086e(0x13f)],HookState[_0x44086e(0x170)],_0x127194))[_0x44086e(0x16f)](()=>{});}else{const _0x35aa2f=_0x4f9fb9&&_0x4f9fb9[_0x44086e(0x111)]&&_0x4f9fb9['params'][_0x44086e(0x118)];if(_0x35aa2f){const _0x4cadb7=_0x35aa2f[_0x44086e(0x153)],_0x372554=_0x35aa2f[_0x44086e(0x102)];_0x3544ce[_0x44086e(0x14f)](!_0x4cadb7,!_0x372554)&&Promise[_0x44086e(0x185)](ClientTroubleShootingService['reportSessionLinkingIssue']())[_0x44086e(0x16f)](()=>{}),_0x372554&&(_0x3544ce[_0x44086e(0x146)](debug,_0x44086e(0xe5)+_0x372554[_0x44086e(0x140)]()),_0xdeb777[_0x44086e(0x125)][_0x44086e(0x11c)]=_0x372554[_0x44086e(0x155)],_0xdeb777[_0x44086e(0x125)][_0x44086e(0xeb)]=_0x372554[_0x44086e(0x130)]),_0x4cadb7&&(_0x3544ce[_0x44086e(0x1a0)](debug,_0x44086e(0x1a8)+_0x4cadb7),_0xdeb777[_0x44086e(0x125)][_0x44086e(0x13d)]=_0x4cadb7);}}}catch(_0x10576a){_0x3544ce[_0x44086e(0x129)](debug,'dispatch\x20instrumentation\x20error\x20(non-fatal):\x20'+(_0x10576a&&_0x10576a[_0x44086e(0x140)]?_0x10576a['toString']():_0x10576a));}return _0x19fb9f;};}}),_0x1c49f2[_0xe22a15(0x18a)]['_bstackDispatchPatched']=!![],logger[_0xe22a15(0xfd)](_0x1a2af7['vVCEE']);}}catch(_0x2b5e05){_0x1a2af7[_0xe22a15(0x115)](debug,_0xe22a15(0x145)+_0x2b5e05),_0xdeb777[_0xe22a15(0xf6)]=_0x2b5e05[_0xe22a15(0x140)]();}}static[a56_0x1a9411(0x120)](){const _0x280ac7=a56_0x1a9411,_0x5c3781={'IxFPq':function(_0x243069,_0x5e3443){return _0x243069(_0x5e3443);},'LztwY':function(_0x4f18c7){return _0x4f18c7();},'ZUSqf':function(_0x10b355,_0x2f4cf2){return _0x10b355>=_0x2f4cf2;},'zuizs':_0x280ac7(0x1a4),'fQwCa':function(_0x2a2ced,_0x34af8a){return _0x2a2ced(_0x34af8a);},'jBHAZ':_0x280ac7(0x17e),'hkRcO':'lib','cLvps':_0x280ac7(0xec),'WGWpA':_0x280ac7(0x16c),'BzOea':'crConnection.js','sdGVR':_0x280ac7(0x13a),'TSnrr':'Error\x20in\x20importing\x20crConnection','uREGC':function(_0x18e512,_0x502247){return _0x18e512!=_0x502247;},'DySOY':'_onMessage'},_0x1ddf93=this;if(_0x5c3781[_0x280ac7(0x105)](isAccessibilityAutomationSession)){let _0x1c773c=null,_0x26ceeb=![];try{const _0x267f51=helper[_0x280ac7(0x10e)](FRAMEWORKS[_0x280ac7(0x195)]);_0x26ceeb=_0x5c3781[_0x280ac7(0x10f)](helper['compareVersions'](_0x267f51,_0x5c3781[_0x280ac7(0x184)]),0x0);}catch(_0x356db4){_0x5c3781[_0x280ac7(0x161)](debug,_0x280ac7(0xf2)+_0x356db4[_0x280ac7(0x140)]());}if(_0x26ceeb)_0x5c3781[_0x280ac7(0x12f)](debug,_0x5c3781['jBHAZ']);else try{const _0x57a3f1=path[_0x280ac7(0x148)](_0x5c3781[_0x280ac7(0x110)],_0x5c3781['cLvps'],_0x5c3781[_0x280ac7(0xed)],_0x5c3781[_0x280ac7(0x18e)]),_0x122ece=_0x5c3781[_0x280ac7(0x161)](importFileFromPWCore,_0x57a3f1);!_0x122ece?_0x5c3781[_0x280ac7(0x161)](debug,_0x5c3781[_0x280ac7(0xee)]):_0x1c773c=_0x122ece[_0x280ac7(0x113)];}catch(_0x2a96f3){_0x5c3781['IxFPq'](debug,_0x5c3781['TSnrr']);}try{if(_0x5c3781[_0x280ac7(0x189)](_0x1c773c,null)){const _0x4787aa=_0x1c773c[_0x280ac7(0x18a)][_0x280ac7(0x15b)];Object[_0x280ac7(0x11a)](_0x1c773c['prototype'],_0x5c3781['DySOY'],{'get':function(){const _0x530732={'JKgnk':function(_0xc89bd,_0x12feb1){const _0x14c503=a56_0x32ae;return _0x5c3781[_0x14c503(0x161)](_0xc89bd,_0x12feb1);},'fQyys':function(_0xdb8532,_0x523ea4){return _0x5c3781['IxFPq'](_0xdb8532,_0x523ea4);}};return async function _0x325fe7(_0x19afef){const _0x26321d=a56_0x32ae;try{if(BrowserstackCLI[_0x26321d(0xfb)]()[_0x26321d(0x17f)]()){const _0x2009aa={};_0x2009aa[_0x26321d(0x194)]=_0x19afef,await BrowserstackCLI[_0x26321d(0xfb)]()[_0x26321d(0x171)]()[_0x26321d(0x192)](AutomationFrameworkState[_0x26321d(0x13f)],HookState[_0x26321d(0x170)],_0x2009aa),delete _0x19afef[_0x26321d(0x127)];}else{const _0x2c7d3c=_0x19afef['bStackParams'];if(_0x2c7d3c){delete _0x19afef[_0x26321d(0x127)];const _0x500075=_0x2c7d3c['sessionId'],_0x1e1994=_0x2c7d3c[_0x26321d(0x102)];_0x1e1994&&(_0x530732[_0x26321d(0x107)](debug,_0x26321d(0x190)+_0x1e1994[_0x26321d(0x140)]()),_0x1ddf93[_0x26321d(0x125)][_0x26321d(0x11c)]=_0x1e1994['platformName'],_0x1ddf93[_0x26321d(0x125)][_0x26321d(0xeb)]=_0x1e1994['platformVersion']),_0x500075&&(_0x530732[_0x26321d(0x107)](debug,_0x26321d(0x17b)+_0x500075),_0x1ddf93[_0x26321d(0x125)][_0x26321d(0x13d)]=_0x500075);}}}catch(_0x2c8ab4){_0x530732[_0x26321d(0x137)](debug,_0x26321d(0x178)+_0x2c8ab4[_0x26321d(0x140)]());}return _0x4787aa[_0x26321d(0x108)](this,arguments);};}});}}catch(_0xfbdbd2){_0x5c3781[_0x280ac7(0x12f)](debug,'Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20'+_0xfbdbd2),_0x1ddf93[_0x280ac7(0xf6)]=_0xfbdbd2[_0x280ac7(0x140)]();}}}static['getDetails'](){const _0x40bcad=a56_0x1a9411;return this[_0x40bcad(0x125)];}}function a56_0x32ae(_0x4c12b3,_0x5d8295){const _0x264ed8=a56_0x264e();return a56_0x32ae=function(_0x32ae03,_0x4a2d56){_0x32ae03=_0x32ae03-0xd9;let _0x126ac2=_0x264ed8[_0x32ae03];return _0x126ac2;},a56_0x32ae(_0x4c12b3,_0x5d8295);}function a56_0x264e(){const _0x36363c=['params','fSNFX','CRConnection','zSrlI','MJYNE','gKjKx','Connection','bsParams','NCYGa','defineProperty','jdroA','platform','toPob','rjfJU','webkit','patchCRConnection','Page\x20Scan\x20result=','sLbzo','bstackPerformA11yScan','_name','currentSessionDetails','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','bStackParams','local_grid','KvIKo','fgYqp','rrqYK','gEnch','turboscale','MSMig','fQwCa','platformVersion','2|7|3|4|0|1|6|5','701640BiffdQ','sendMessageToServer','resolveConnectionClass','edge','function','fQyys','ATS_WSS_URL_REGEX','playwright','Not\x20able\x20to\x20import\x20crConnection','version','Failed\x20to\x20perform\x20scan\x20','bsSessionId','plMlu','PLAYWRIGHT_DISPATCH','toString','Not\x20able\x20to\x20resolve\x20Connection\x20class','browserName','PPwOc','_defaultConnectOptions','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','MbOhw','pqDbv','join','caps','rNuwq','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','laFFC','test','titlePath','cZydp','rLSTS','setupBrowserDetails:\x20browser\x20param\x20is\x20nil;\x20populating\x20playwright\x20fallback\x20so\x20TRA\x20does\x20not\x20render\x20\x22Unknown\x22','QMczz','sessionId','Performing\x20scan\x20for\x20','platformName','537063IPRKTt','NQhoi','QxxAH','query','8bAbhKZ','_onMessage','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','split','deviceModel','BhZRn','hEUBL','IxFPq','AxaQe','12329802oTbTwD','_browserType','BpElb','util','NrVoo','POIBS','BhFEI','QJGed','../utils/clientTroubleshootingService.js','chromium','setupBrowserDetails','env','catch','POST','getAutomationFramework','includes','rURCU','currentTest','Sjlrd','../v2/browserstackCLI','automate','Error\x20in\x20finding\x20platform\x20details\x20','ScNBy','project','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','40LSSWYY','isRemote','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','isRunning','browser_version','firefox','./accessibility-helper','yLKkl','zuizs','resolve','__workerDetails','use','parse','uREGC','prototype','cloudProvider','BSTACK_ATS_URL','Device\x20Model\x20is\x20not\x20available','BzOea','../../helpers/test-observability/error-handler','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','kTlHi','trackEvent','ROpqM','message','PLAYWRIGHT','../v2/state/automationFrameworkState.js','hBpJp','__driver','browser','9148464SFPGcs','product','browserstack','8036679bxCeox','WdxoX','aXxRd','ubrhq','assign','pwPage','kBuRp','1.60.0','../../helpers/helper','patchConnection','dispatch','Setting\x20session\x20id\x20received\x20from\x20BS\x20','../../helpers/test-observability/constants','ErczU','BeyPm','chrome','WoTcQ','Driver\x20Scan\x20result=','../v2/state/hookState.js','188VChobe','../../helpers/test-observability/utils','kfYVr','wsEndpoint','testInfo','patch','playwright-','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','entries','_connection','url','shouldWrapCommand','12538559OOzQGx','platform_version','server','WGWpA','sdGVR','string','ZlCiR','mHdYz','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','info','unknown','ZTuBc','sessionError','connectOptions','qSBEI','jaHYD','accessibilityPlatform','getInstance','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','debug','ydWki','model','Page','channel','platformDetails','_type','mjByM','LztwY','toLowerCase','JKgnk','apply','aATZz','fromEntries','format','141995KNMhJz','4wKYHMM','getFrameworkVersion','ZUSqf','hkRcO'];a56_0x264e=function(){return _0x36363c;};return a56_0x264e();}module['exports']=PlaywrightSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a57_0xf49f5b=a57_0x10a1;(function(_0x206b07,_0x4dac7d){const _0x25e6a0=a57_0x10a1,_0x3b6817=_0x206b07();while(!![]){try{const _0x119798=parseInt(_0x25e6a0(0x1fc))/0x1+parseInt(_0x25e6a0(0x1f2))/0x2*(-parseInt(_0x25e6a0(0x207))/0x3)+-parseInt(_0x25e6a0(0x206))/0x4*(parseInt(_0x25e6a0(0x1f1))/0x5)+parseInt(_0x25e6a0(0x201))/0x6+-parseInt(_0x25e6a0(0x214))/0x7+-parseInt(_0x25e6a0(0x20e))/0x8+parseInt(_0x25e6a0(0x200))/0x9;if(_0x119798===_0x4dac7d)break;else _0x3b6817['push'](_0x3b6817['shift']());}catch(_0x4e40ea){_0x3b6817['push'](_0x3b6817['shift']());}}}(a57_0xba67,0x29073));const util=require(a57_0xf49f5b(0x210)),logger=require('../../helpers/logger'),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),PerformanceTester=require('../../helpers/performance/performance-tester'),{O11y_EVENTS:PerformanceO11yEvents}=require(a57_0xf49f5b(0x1fb)),BrowserstackCLI=require('../v2/browserstackCLI'),CustomTagManager=require(a57_0xf49f5b(0x208)),uploadAttachmentsManager=require('../v2/uploadAttachmentsManager'),doo11ySync=PerformanceTester[a57_0xf49f5b(0x205)](PerformanceO11yEvents['SYNC'],o11yErrorHandler(async function doo11ySync(_0x49f856){const _0x4476b2=a57_0xf49f5b,_0x3a2f58={'LHkqm':function(_0x21f420,_0x3aa3a6,_0x4e2479){return _0x21f420(_0x3aa3a6,_0x4e2479);},'gOSYR':_0x4476b2(0x217),'weiqM':_0x4476b2(0x20a),'LrtNh':_0x4476b2(0x202),'jszRi':_0x4476b2(0x1ef)};if(_0x3a2f58[_0x4476b2(0x209)](nestedKeyValue,global,[_0x3a2f58[_0x4476b2(0x215)],_0x3a2f58[_0x4476b2(0x1f6)]]))return;await _0x49f856['evaluate'](_0x39024a=>{},_0x4476b2(0x20f)+JSON[_0x4476b2(0x20d)]({'action':_0x3a2f58[_0x4476b2(0x212)],'arguments':{'data':_0x4476b2(0x1fa)+Date[_0x4476b2(0x1f8)](),'level':_0x3a2f58[_0x4476b2(0x1f9)]}})),global[_0x4476b2(0x217)][_0x4476b2(0x20a)]=!![];},a57_0xf49f5b(0x1fd)));function a57_0xba67(){const _0x53c5d9=['__workerDetails','setCustomTags','newPage','debug','isRunning','1638805jChyHv','2EUFtWy','BROWSERSTACK_TEST_OBSERVABILITY','pwPage','uploadAttachments','weiqM','_bstackNewPagePatched','now','jszRi','ObservabilitySync:','../../helpers/performance/constants','54088NxboRu','doo11ySync','apply','uploadAttachment','6397938oSBSBu','1879890YryAXL','annotate','env','getInstance','measureWrapper','4ctVQKe','924276cDDqbt','../v2/customTagManager','LHkqm','o11ySyncDone','Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20','patchBrowserNewPage','stringify','637112sholsK','browserstack_executor:\x20','util','hjTwv','LrtNh','qfGaQ','1363194uVvLLz','gOSYR','bind'];a57_0xba67=function(){return _0x53c5d9;};return a57_0xba67();}function a57_0x10a1(_0x58b9e3,_0x44e9a7){const _0xba67db=a57_0xba67();return a57_0x10a1=function(_0x10a100,_0x4e9da3){_0x10a100=_0x10a100-0x1ee;let _0x24ac3a=_0xba67db[_0x10a100];return _0x24ac3a;},a57_0x10a1(_0x58b9e3,_0x44e9a7);}exports[a57_0xf49f5b(0x20c)]=_0x4fd44d=>{const _0x3d27cb=a57_0xf49f5b,_0x3a1719={'hjTwv':function(_0x1a275f,_0x4a87db){return _0x1a275f(_0x4a87db);},'qfGaQ':function(_0x1ee317,_0x5a2624,_0x1a22d6){return _0x1ee317(_0x5a2624,_0x1a22d6);},'ITILA':_0x3d27cb(0x217)};if(!_0x4fd44d||_0x4fd44d[_0x3d27cb(0x1f7)])return;const _0x208a77=_0x4fd44d['newPage'][_0x3d27cb(0x216)](_0x4fd44d);_0x4fd44d[_0x3d27cb(0x1ee)]=async function _0x89ea34(){const _0x1da0fe=_0x3d27cb,_0x40ed9d=await _0x208a77[_0x1da0fe(0x1fe)](_0x4fd44d,arguments);try{!BrowserstackCLI[_0x1da0fe(0x204)]()[_0x1da0fe(0x1f0)]()&&!_0x3a1719[_0x1da0fe(0x211)](isFalse,process[_0x1da0fe(0x203)][_0x1da0fe(0x1f3)])&&await _0x3a1719[_0x1da0fe(0x211)](doo11ySync,_0x40ed9d),BrowserstackCLI[_0x1da0fe(0x204)]()[_0x1da0fe(0x1f0)]()&&(_0x40ed9d[_0x1da0fe(0x218)]=async(_0x59e275,_0x62b2cb,_0x27458e=![])=>{const _0x5627be=_0x1da0fe;await CustomTagManager[_0x5627be(0x218)](_0x59e275,_0x62b2cb,_0x27458e);},_0x40ed9d[_0x1da0fe(0x1ff)]=async(_0x395164,_0x5873ad=![])=>{const _0x337e97=_0x1da0fe;await uploadAttachmentsManager[_0x337e97(0x1f5)](_0x395164,_0x5873ad);});}catch(_0x3e6b49){logger['debug'](_0x1da0fe(0x20b)+util['format'](_0x3e6b49));}return _0x3a1719[_0x1da0fe(0x213)](nestedKeyValue,global,[_0x3a1719['ITILA']])&&(global['__workerDetails'][_0x1da0fe(0x1f4)]=_0x40ed9d),_0x40ed9d;},_0x4fd44d[_0x3d27cb(0x1f7)]=!![];};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a58_0x333e(_0x4a9e32,_0x17f490){const _0x5e384e=a58_0x5e38();return a58_0x333e=function(_0x333e90,_0x4bd12c){_0x333e90=_0x333e90-0xda;let _0x260149=_0x5e384e[_0x333e90];return _0x260149;},a58_0x333e(_0x4a9e32,_0x17f490);}const a58_0x477e48=a58_0x333e;(function(_0xf00fd1,_0x4c68ac){const _0x545d50=a58_0x333e,_0x1e8bad=_0xf00fd1();while(!![]){try{const _0x37827b=parseInt(_0x545d50(0x12e))/0x1*(-parseInt(_0x545d50(0x129))/0x2)+parseInt(_0x545d50(0x10e))/0x3*(parseInt(_0x545d50(0x125))/0x4)+parseInt(_0x545d50(0xff))/0x5*(-parseInt(_0x545d50(0x130))/0x6)+-parseInt(_0x545d50(0x111))/0x7+-parseInt(_0x545d50(0xe8))/0x8+parseInt(_0x545d50(0x121))/0x9+-parseInt(_0x545d50(0x128))/0xa*(-parseInt(_0x545d50(0x11d))/0xb);if(_0x37827b===_0x4c68ac)break;else _0x1e8bad['push'](_0x1e8bad['shift']());}catch(_0x4a9cd8){_0x1e8bad['push'](_0x1e8bad['shift']());}}}(a58_0x5e38,0x1a821));const path=require(a58_0x477e48(0xf4)),url=require(a58_0x477e48(0xdf)),util=require(a58_0x477e48(0x136)),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{debug,getPlatformDetails}=require(a58_0x477e48(0xf3)),logger=require('../../helpers/logger')['winstonLogger'],constants=require(a58_0x477e48(0xe5)),BrowserstackCLI=require(a58_0x477e48(0xf6)),AutomationFrameworkState=require(a58_0x477e48(0x11e)),HookState=require(a58_0x477e48(0x116)),getBrowserFromWSEndpoint=_0x57345c=>{const _0x22c6c7=a58_0x477e48,_0x11e7c2={'RAVgg':'chrome','xFrFY':function(_0x2b95cc,_0x2d5c07){return _0x2b95cc(_0x2d5c07);}};try{const _0x40fc89=url['parse'](_0x57345c),_0x5b6b19=new URLSearchParams(_0x40fc89['query']),_0x54f888=Object[_0x22c6c7(0xde)](_0x5b6b19[_0x22c6c7(0x104)]()),_0x550fe5=JSON[_0x22c6c7(0x139)](_0x54f888[_0x22c6c7(0x126)]);if(_0x550fe5&&(_0x550fe5['browser']||_0x550fe5['browserName']))return _0x550fe5[_0x22c6c7(0xf0)]||_0x550fe5[_0x22c6c7(0xe3)];return _0x11e7c2[_0x22c6c7(0xfb)];}catch(_0x337976){_0x11e7c2[_0x22c6c7(0xda)](debug,_0x22c6c7(0xdc)+_0x337976[_0x22c6c7(0x12f)]());}},getCloudProviderFromWsEndpoint=_0x3a1cb5=>{const _0x589fa4=a58_0x477e48,_0x5d33c6={};_0x5d33c6[_0x589fa4(0xe4)]=_0x589fa4(0x132),_0x5d33c6[_0x589fa4(0xef)]=_0x589fa4(0x105);const _0x36b495=_0x5d33c6;if(_0x3a1cb5['includes'](constants[_0x589fa4(0x117)])||_0x3a1cb5[_0x589fa4(0x11c)](constants[_0x589fa4(0xf7)]))return _0x36b495['RwntM'];return _0x36b495[_0x589fa4(0xef)];},a58_0xa16366={};a58_0xa16366['cloudProvider']=undefined,a58_0xa16366['bsSessionId']=undefined,a58_0xa16366[a58_0x477e48(0xf0)]=undefined,a58_0xa16366[a58_0x477e48(0x137)]=undefined,a58_0xa16366[a58_0x477e48(0x13a)]=undefined,a58_0xa16366[a58_0x477e48(0x120)]=undefined,a58_0xa16366[a58_0x477e48(0xe9)]=undefined,a58_0xa16366[a58_0x477e48(0xe6)]={};class PuppeteerSessionDetails{static [a58_0x477e48(0x138)]=a58_0xa16366;constructor(){const _0xc678ff=a58_0x477e48,_0x2cfa39={};_0x2cfa39[_0xc678ff(0xf5)]=_0xc678ff(0xfe);const _0x3135db=_0x2cfa39;throw new Error(_0x3135db['Ciuqc']);}static [a58_0x477e48(0x106)]=null;static async[a58_0x477e48(0x131)](_0x55d278,_0x19e25a){const _0x49b472=a58_0x477e48,_0x480653={'Yipza':'chrome','IfUju':function(_0x15fff0,_0x171cc4){return _0x15fff0===_0x171cc4;},'gnarH':_0x49b472(0x124),'LoTZC':_0x49b472(0x100),'SvlZG':function(_0x1c9735,_0x4a6f27){return _0x1c9735(_0x4a6f27);},'rjyvG':'browserstack','pRmud':_0x49b472(0xea),'Yjuqo':'automate','qkPxe':function(_0x2f0c8c){return _0x2f0c8c();},'xMDvv':function(_0x5287d8,_0x40c9c0){return _0x5287d8(_0x40c9c0);}};try{let _0x54ed56=_0x480653[_0x49b472(0xfc)],_0x467cce=null;_0x55d278&&_0x480653[_0x49b472(0x112)](typeof _0x55d278[_0x49b472(0x108)],_0x480653[_0x49b472(0xed)])&&(_0x467cce=await _0x55d278[_0x49b472(0x108)]());let _0xbe9fc9=null,_0xedff8c=null,_0x254823=null,_0x345766=_0x480653['LoTZC'];if(_0x19e25a){_0x345766=_0x480653['SvlZG'](getCloudProviderFromWsEndpoint,_0x19e25a);if(_0x480653[_0x49b472(0x112)](_0x345766,_0x480653[_0x49b472(0x118)]))_0x254823=constants[_0x49b472(0xf2)]?constants['ATS_WSS_URL_REGEX'][_0x49b472(0x134)](_0x19e25a)?_0x480653[_0x49b472(0x11f)]:_0x480653[_0x49b472(0x110)]:_0x480653[_0x49b472(0x110)],_0x54ed56=_0x480653[_0x49b472(0xec)](getBrowserFromWSEndpoint,_0x19e25a)||_0x54ed56,_0xbe9fc9=this[_0x49b472(0x138)][_0x49b472(0x13a)],_0xedff8c=this[_0x49b472(0x138)][_0x49b472(0x120)];else{const _0x169e55=await _0x480653[_0x49b472(0x10f)](getPlatformDetails);_0xbe9fc9=_0x169e55[_0x49b472(0xdd)],_0xedff8c=_0x169e55[_0x49b472(0x135)];}}else{const _0x5c72c9=await _0x480653[_0x49b472(0x10f)](getPlatformDetails);_0xbe9fc9=_0x5c72c9['platformName'],_0xedff8c=_0x5c72c9['platformVersion'];}const _0x81135d={};_0x81135d[_0x49b472(0xf0)]=_0x54ed56,_0x81135d[_0x49b472(0x137)]=_0x467cce,_0x81135d[_0x49b472(0xe6)]={},_0x81135d[_0x49b472(0x13a)]=_0xbe9fc9,_0x81135d['platform_version']=_0xedff8c,_0x81135d[_0x49b472(0xe9)]=_0x254823;const _0x292c4f=_0x81135d,_0x5be066={};_0x5be066[_0x49b472(0xe7)]=_0x345766,this[_0x49b472(0x138)]=Object[_0x49b472(0x114)]({},this['currentSessionDetails'],_0x5be066,_0x292c4f);}catch(_0x1d7e5a){_0x480653[_0x49b472(0x10d)](debug,'Error\x20in\x20setupBrowserDetails:\x20'+util['format'](_0x1d7e5a)),this[_0x49b472(0x106)]=_0x1d7e5a[_0x49b472(0x12f)]();}}static[a58_0x477e48(0x109)](_0x172bb2){const _0x6a7d43=a58_0x477e48,_0x19b651={'fRoVV':function(_0x59543c,_0x3e43f4){return _0x59543c===_0x3e43f4;},'sQOaT':'string','SukVF':function(_0x4cbf98,_0x20be2e){return _0x4cbf98(_0x20be2e);},'mfAAW':function(_0x71a4ed,_0x22a165){return _0x71a4ed===_0x22a165;},'WRdyk':'[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture'},_0x1e7d11=this;try{const _0x2e16e7=_0x172bb2[_0x6a7d43(0xee)]||_0x172bb2['connection'];if(!_0x2e16e7||_0x2e16e7[_0x6a7d43(0x119)])return;const _0x4fe34b=_0x2e16e7['onmessage'];_0x2e16e7[_0x6a7d43(0x122)]=function(_0x3edeb3){const _0x5e76bc=_0x6a7d43;try{const _0x19d934=_0x19b651[_0x5e76bc(0xfd)](typeof _0x3edeb3,_0x19b651['sQOaT'])?JSON[_0x5e76bc(0x139)](_0x3edeb3):_0x3edeb3,_0x2234d5=_0x19d934?.[_0x5e76bc(0xfa)]||_0x19d934?.[_0x5e76bc(0xf8)]||_0x19d934?.[_0x5e76bc(0x10a)]?.[_0x5e76bc(0xf8)]||_0x19d934?.[_0x5e76bc(0x10a)]?.[_0x5e76bc(0xfa)]||_0x19d934?.['result']?.[_0x5e76bc(0xf8)]||_0x19d934?.[_0x5e76bc(0x12b)]?.['bStackParams'];if(_0x2234d5){if(BrowserstackCLI[_0x5e76bc(0xe1)]()[_0x5e76bc(0x10b)]()){const _0x1fafa3={};_0x1fafa3['message']=_0x19d934,BrowserstackCLI[_0x5e76bc(0xe1)]()[_0x5e76bc(0x11a)]()[_0x5e76bc(0xe2)](AutomationFrameworkState[_0x5e76bc(0x127)],HookState[_0x5e76bc(0x10c)],_0x1fafa3);}else{const _0x14846b=_0x2234d5[_0x5e76bc(0x123)],_0x32e7f3=_0x2234d5[_0x5e76bc(0x133)];_0x32e7f3&&(_0x19b651[_0x5e76bc(0xdb)](debug,_0x5e76bc(0x12a)+JSON[_0x5e76bc(0xe0)](_0x32e7f3)),_0x1e7d11[_0x5e76bc(0x138)][_0x5e76bc(0x13a)]=_0x32e7f3[_0x5e76bc(0xdd)],_0x1e7d11[_0x5e76bc(0x138)][_0x5e76bc(0x120)]=_0x32e7f3[_0x5e76bc(0x135)]),_0x14846b&&(_0x19b651[_0x5e76bc(0xdb)](debug,_0x5e76bc(0x11b)+_0x14846b),_0x1e7d11[_0x5e76bc(0x138)][_0x5e76bc(0x113)]=_0x14846b);}_0x19b651[_0x5e76bc(0xf1)](typeof _0x3edeb3,_0x19b651[_0x5e76bc(0x115)])&&(delete _0x19d934[_0x5e76bc(0xfa)],delete _0x19d934[_0x5e76bc(0xf8)],_0x19d934[_0x5e76bc(0x10a)]&&(delete _0x19d934[_0x5e76bc(0x10a)][_0x5e76bc(0xf8)],delete _0x19d934[_0x5e76bc(0x10a)][_0x5e76bc(0xfa)]),_0x19d934['result']&&(delete _0x19d934['result'][_0x5e76bc(0xf8)],delete _0x19d934[_0x5e76bc(0x12b)]['bStackParams']));}}catch(_0x215f5d){_0x19b651[_0x5e76bc(0xdb)](debug,_0x5e76bc(0x12d)+_0x215f5d[_0x5e76bc(0x107)]);}return _0x4fe34b?.[_0x5e76bc(0x12c)](this,arguments);},_0x2e16e7[_0x6a7d43(0x119)]=!![],logger[_0x6a7d43(0x102)](_0x19b651[_0x6a7d43(0x101)]);}catch(_0x542ac9){_0x19b651['SukVF'](debug,_0x6a7d43(0xf9)+util[_0x6a7d43(0xeb)](_0x542ac9)),_0x1e7d11[_0x6a7d43(0x106)]=_0x542ac9['toString']();}}static[a58_0x477e48(0x103)](){return this['currentSessionDetails'];}}function a58_0x5e38(){const _0x3aaabc=['currentSessionDetails','parse','platform','xFrFY','SukVF','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','platformName','fromEntries','url','stringify','getInstance','trackEvent','browserName','RwntM','../utils/constants','capabilities','cloudProvider','1691560vrOszC','product','turboscale','format','SvlZG','gnarH','_connection','pNfuu','browser','mfAAW','ATS_WSS_URL_REGEX','../../helpers/test-observability/utils','path','Ciuqc','../v2/browserstackCLI','BSTACK_ATS_URL','bsParams','Error\x20in\x20patchConnection:\x20','bStackParams','RAVgg','Yipza','fRoVV','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','220tfZpNZ','local_grid','WRdyk','debug','getDetails','entries','unknown_grid','sessionError','message','version','patchConnection','params','isRunning','POST','xMDvv','18HCVoIk','qkPxe','Yjuqo','956053bCAxIt','IfUju','bsSessionId','assign','sQOaT','../v2/state/hookState.js','BSTACK_URL','rjyvG','_bstackPatched','getAutomationFramework','Setting\x20session\x20id\x20received\x20from\x20BS\x20','includes','121BqIdKM','../v2/state/automationFrameworkState.js','pRmud','platform_version','970371vGwLxT','onmessage','sessionId','function','35368lWAojH','caps','PLAYWRIGHT_DISPATCH','430480DDHzmo','266tTRWmI','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','result','apply','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','1270kJZWar','toString','1212WxAeOZ','setupBrowserDetails','browserstack','platformDetails','test','platformVersion','util','browser_version'];a58_0x5e38=function(){return _0x3aaabc;};return a58_0x5e38();}module['exports']=PuppeteerSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a59_0x3dad98=a59_0x55d0;function a59_0x55d0(_0x46e98d,_0x341f20){const _0x1c103e=a59_0x1c10();return a59_0x55d0=function(_0x55d0a5,_0x19428f){_0x55d0a5=_0x55d0a5-0xc8;let _0x4c8c89=_0x1c103e[_0x55d0a5];return _0x4c8c89;},a59_0x55d0(_0x46e98d,_0x341f20);}(function(_0x567b73,_0x983eb8){const _0x4b0404=a59_0x55d0,_0x859fc1=_0x567b73();while(!![]){try{const _0x420ec9=-parseInt(_0x4b0404(0xd7))/0x1+parseInt(_0x4b0404(0xe9))/0x2*(parseInt(_0x4b0404(0xd1))/0x3)+parseInt(_0x4b0404(0xdc))/0x4+-parseInt(_0x4b0404(0xe5))/0x5+-parseInt(_0x4b0404(0xd5))/0x6+-parseInt(_0x4b0404(0xe2))/0x7+parseInt(_0x4b0404(0xdf))/0x8;if(_0x420ec9===_0x983eb8)break;else _0x859fc1['push'](_0x859fc1['shift']());}catch(_0x16b0d9){_0x859fc1['push'](_0x859fc1['shift']());}}}(a59_0x1c10,0x356b7));const {isTrue,isBrowserstackInfra}=require(a59_0x3dad98(0xeb)),setKeepAlive=require('../../helpers/setKeepAlive'),util=require(a59_0x3dad98(0xd2)),logger=require(a59_0x3dad98(0xec))['winstonLogger'],{shouldProcessEventForTesthub}=require(a59_0x3dad98(0xe3)),{addRequestSpy}=require(a59_0x3dad98(0xc9)),a59_0x4bf263={};a59_0x4bf263['workerInfo']=undefined,a59_0x4bf263[a59_0x3dad98(0xf1)]={},a59_0x4bf263[a59_0x3dad98(0xf5)]=![],a59_0x4bf263['pwPage']=null,a59_0x4bf263[a59_0x3dad98(0xf2)]=![],a59_0x4bf263[a59_0x3dad98(0xf1)]['id']=undefined,a59_0x4bf263[a59_0x3dad98(0xf1)][a59_0x3dad98(0xf0)]=undefined;const workerDetails=a59_0x4bf263;global[a59_0x3dad98(0xde)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a59_0x3dad98(0xd4)]=isTrue(global['jestConfig']?.[a59_0x3dad98(0xe0)]),global[a59_0x3dad98(0xce)]=isTrue(global[a59_0x3dad98(0xd8)]?.[a59_0x3dad98(0xe1)])):(global[a59_0x3dad98(0xd4)]=!![],global['__skipSessionStatus']=!![]);const helper=require(a59_0x3dad98(0xeb)),puppeteerVersion=helper[a59_0x3dad98(0xcb)](a59_0x3dad98(0xef))||helper[a59_0x3dad98(0xcb)](a59_0x3dad98(0xe6));if(puppeteerVersion)try{logger[a59_0x3dad98(0xf4)](a59_0x3dad98(0xed)),puppeteerPatcher=require(a59_0x3dad98(0xd0)),puppeteerPatcher[a59_0x3dad98(0xea)](global[a59_0x3dad98(0xd8)]),logger[a59_0x3dad98(0xf4)]('[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized');}catch(a59_0x62ceab){logger[a59_0x3dad98(0xf4)](a59_0x3dad98(0xdb)+util[a59_0x3dad98(0xd6)](a59_0x62ceab));}if(puppeteerPatcher)try{const BrowserstackCLI=require('../v2/browserstackCLI'),CLIUtils=require(a59_0x3dad98(0xcc)),{FRAMEWORKS}=require(a59_0x3dad98(0xda));BrowserstackCLI[a59_0x3dad98(0xdd)]()[a59_0x3dad98(0xca)]()&&(logger['debug'](a59_0x3dad98(0xe7)),process[a59_0x3dad98(0xd9)][a59_0x3dad98(0xe8)]=a59_0x3dad98(0xcf),CLIUtils['setFrameworkDetail'](FRAMEWORKS[a59_0x3dad98(0xf3)],FRAMEWORKS['PUPPETEER']),BrowserstackCLI[a59_0x3dad98(0xdd)]()[a59_0x3dad98(0xd3)]()['catch'](_0x1d6898=>{const _0x346684=a59_0x3dad98;logger[_0x346684(0xf4)](_0x346684(0xee)+util[_0x346684(0xd6)](_0x1d6898));}));}catch(a59_0x1ba414){logger[a59_0x3dad98(0xf4)](a59_0x3dad98(0xcd)+util[a59_0x3dad98(0xd6)](a59_0x1ba414));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a59_0x4bcd18){logger[a59_0x3dad98(0xf4)](a59_0x3dad98(0xc8)+util['format'](a59_0x4bcd18));}function a59_0x1c10(){const _0x3c1fc1=['jestConfig','env','../utils/constants','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','569100Sntayx','getInstance','__workerDetails','5489352pLqiIK','skipSessionName','skipSessionStatus','1925959QMlnCs','../../helpers/testhub/utils','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','275740DBzNqk','puppeteer-core','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','BROWSERSTACK_PUPPETEER','3092KOidKl','initializePuppeteerPatching','../../helpers/helper','../../helpers/logger','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','puppeteer','testInfo','currentTest','isPageFixture','JEST','debug','o11ySyncDone','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','../../helpers/test-observability/utils','isCliEnabled','getPackageVersion','../v2/cliUtils','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','__skipSessionStatus','true','../utils/puppeteer-patcher','297nCqBSW','util','bootstrap','__skipSessionName','1306656UWGuJN','format','214630YaAAFw'];a59_0x1c10=function(){return _0x3c1fc1;};return a59_0x1c10();}logger[a59_0x3dad98(0xf4)](a59_0x3dad98(0xe4));
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a58_0x30292f=a58_0x3ba1;(function(_0x388a00,_0x3aee0a){const _0x413cfd=a58_0x3ba1,_0x2927be=_0x388a00();while(!![]){try{const _0x58d352=parseInt(_0x413cfd(0x172))/0x1+parseInt(_0x413cfd(0x128))/0x2+-parseInt(_0x413cfd(0x14c))/0x3*(-parseInt(_0x413cfd(0x147))/0x4)+parseInt(_0x413cfd(0x130))/0x5+parseInt(_0x413cfd(0x145))/0x6+-parseInt(_0x413cfd(0x17d))/0x7+-parseInt(_0x413cfd(0x167))/0x8*(-parseInt(_0x413cfd(0x184))/0x9);if(_0x58d352===_0x3aee0a)break;else _0x2927be['push'](_0x2927be['shift']());}catch(_0x13f9c5){_0x2927be['push'](_0x2927be['shift']());}}}(a58_0x47cf,0xb91dc));function a58_0x47cf(){const _0x4a446e=['jkfvY','strict','Tebbh','INFO','../helpers/helper','getConfigPath','9HqCuMk','config','usage:\x20$0\x20<command>\x20[args]','framework','cucumber-js','debug','includes','./v2/browserstackCLI','fireFunnelTestEvent','findAndReplace','./newman/helper','handler','vijts','CDNkz','../helpers/utilities','nightwatch','YXaUj','nVXqj','./jest/command','NEWMAN','../../ats/src/index','KwybN','mocha/lib/cli/commands.js','../helpers/performance/performance-tester','newman','--no-opts','../helpers/BrowserStackSetup','VTQQl','./mocha/command','ats','boolean','setTestObservabilityDisable','KLSID','pw:channel','EVENTS','DEBUG','-pw:*','filter','wrap','help','mqgEr','--mochaRequire','util','ymyXJ','GEEBS','WFGow','SDK_SETUP','Vwbln','message','slice','getInstance','stop','ThzgP','path','load\x20[subcommand]','BmzjG','homedir','./codeceptjs/command','yargs','./load/index','playwright','QvdqA','vyyqo','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','ZsqqF','xszmc','vSvoD','VANILLA','./cucumber-js/command','start','CODECEPTJS','../helpers/test-observability/constants','version','./playwright/command','DVifr','mocha','jest','jasmine','TnJxB','.browserstack','nLarA','error','PLAYWRIGHT','env','mocha/lib/cli/run.js','exitProcess','assign','disableAutoCaptureLogs','showHelpOnFail','xxBzX','VYvpb','MOCHA','Runs\x20the\x20binary\x20with\x20load\x20command','2106082xdSYBt','argv','../helpers/performance/constants','HST','setBrowserStackAutomationDisable','CWNMg','mHeNZ','HELP','172090bLaIAs','end','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','join','OnxtU','vanilla','myEcA','ZeScB','exitCode','TESTCAFE','format','Parsing\x20command\x20line\x20arguments','zTvGF','SDK_CLEANUP','HzCBQ','NsOib','DEBUG_FILE','.local-not-set.json','bfOhW','uHGvM','UYHvg','26412rDpYEv','EsExw','25652IkOyig','./testcafe/command','mocha/lib/cli/cli.js','map','XtLev','159amXJKr','./integrations/command','JEST','aMTPm','Qmktn','./utils/constants','split','mVXYR','--no-config','VERSION','pw:channel\x20auto-capture\x20seed\x20failed:\x20','pw:*','CUCUMBER','BLTDn','JASMINE','some','push','command','parserConfiguration','gYZhY','demandCommand','isUndefined','ILdbf','find','sendLogs','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','--opts','1413848ZELBVD','EfwHS','Irbrd','BROWSERSTACK_CONFIG_FILE_PATH','existsSync','--config','integrations','child_process','./newman/command','trim','describe','281824bAFnbO','SDKTestSuccessful','alias','-pw:channel','IUioZ','./vanilla-js/command','info','stack','node','qmcxB','./jasmine/command','7924483iFHXOr'];a58_0x47cf=function(){return _0x4a446e;};return a58_0x47cf();}function a58_0x3ba1(_0x436b46,_0xa72a74){const _0x47cf9e=a58_0x47cf();return a58_0x3ba1=function(_0x3ba159,_0x1ee85b){_0x3ba159=_0x3ba159-0x119;let _0xf3093e=_0x47cf9e[_0x3ba159];return _0xf3093e;},a58_0x3ba1(_0x436b46,_0xa72a74);}const fs=require('fs'),path=require(a58_0x30292f(0x1b9)),util=require(a58_0x30292f(0x1ae)),spawn=require(a58_0x30292f(0x16e))['spawn'],{requireModule}=require(a58_0x30292f(0x182)),PerformanceTester=require(a58_0x30292f(0x19b)),PerformanceEvents=require(a58_0x30292f(0x12a))[a58_0x30292f(0x1a6)],helper=require(a58_0x30292f(0x182)),utilities=require(a58_0x30292f(0x192)),{default:BrowserStackSetup}=require(a58_0x30292f(0x19e)),{FRAMEWORKS}=require(a58_0x30292f(0x1cb)),runIntegrations=require(a58_0x30292f(0x14d)),yargs=require(a58_0x30292f(0x1be)),Constants=require(a58_0x30292f(0x151)),BrowserstackCLI=require(a58_0x30292f(0x18b)),{isNewman}=require(a58_0x30292f(0x18e)),logger=require('../helpers/logger')['winstonLogger'],origArgs=Object[a58_0x30292f(0x121)]([],process[a58_0x30292f(0x129)]),captureError=async(_0x80e61a,_0x449a93,_0x3ab38f,_0x10ddea=null,_0x560244=![])=>{const _0x22a3d6=a58_0x30292f,_0x562736={'ymyXJ':function(_0x2939a7,_0x13eece,_0x5e0d52,_0x32e573){return _0x2939a7(_0x13eece,_0x5e0d52,_0x32e573);},'UrbOn':_0x22a3d6(0x173)};try{logger[_0x22a3d6(0x178)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0x22a3d6(0x133)]('\x20')),await _0x562736[_0x22a3d6(0x1af)](_0x80e61a,_0x449a93,_0x10ddea,_0x3ab38f);}catch(_0x23b047){process[_0x22a3d6(0x138)]=0x1,logger['error'](util[_0x22a3d6(0x13a)](_0x23b047));const _0x3241d8={'globalException':util[_0x22a3d6(0x13a)]('%j',_0x23b047)};PerformanceTester['end'](PerformanceEvents[_0x22a3d6(0x1b2)],![],util['format'](_0x23b047));if(helper[_0x22a3d6(0x161)](global[_0x22a3d6(0x185)])&&helper[_0x22a3d6(0x161)](global[_0x22a3d6(0x187)]))return;try{utilities[_0x22a3d6(0x18c)](_0x562736['UrbOn'],_0x3241d8,global['config'],global[_0x22a3d6(0x187)]);}catch(_0x175cdd){logger[_0x22a3d6(0x189)](_0x22a3d6(0x132)+_0x175cdd[_0x22a3d6(0x179)]);}try{await helper[_0x22a3d6(0x164)](global[_0x22a3d6(0x185)]);}catch(_0x562861){logger['debug'](_0x22a3d6(0x1c3)+_0x562861['stack']);}PerformanceTester[_0x22a3d6(0x131)](PerformanceEvents['SDK_SETUP'],![],util[_0x22a3d6(0x13a)](_0x23b047));}finally{!_0x560244&&await BrowserstackCLI[_0x22a3d6(0x1b6)]()[_0x22a3d6(0x1b7)](),PerformanceTester[_0x22a3d6(0x1c9)](PerformanceEvents[_0x22a3d6(0x13d)]);}};try{const browserstackFolderPath=path[a58_0x30292f(0x133)](helper[a58_0x30292f(0x1bc)](),a58_0x30292f(0x11a));if(fs[a58_0x30292f(0x16b)](browserstackFolderPath)){const filePath=path[a58_0x30292f(0x133)](browserstackFolderPath,a58_0x30292f(0x141));fs[a58_0x30292f(0x16b)](filePath)&&fs['unlinkSync'](filePath);}}catch(a58_0x4c6a7f){logger[a58_0x30292f(0x189)]('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a58_0x4c6a7f[a58_0x30292f(0x1b4)]);}process[a58_0x30292f(0x129)][a58_0x30292f(0x18a)](a58_0x30292f(0x1cf))&&(!process[a58_0x30292f(0x129)][a58_0x30292f(0x18a)](a58_0x30292f(0x166))&&process[a58_0x30292f(0x129)][a58_0x30292f(0x15c)](a58_0x30292f(0x19d)),!process[a58_0x30292f(0x129)][a58_0x30292f(0x163)](_0xfa24e5=>_0xfa24e5[a58_0x30292f(0x18a)](a58_0x30292f(0x16c)))&&process[a58_0x30292f(0x129)][a58_0x30292f(0x15c)](a58_0x30292f(0x154)),!process[a58_0x30292f(0x129)][a58_0x30292f(0x18a)]('--package')&&process[a58_0x30292f(0x129)][a58_0x30292f(0x15c)]('--no-package'),helper[a58_0x30292f(0x18d)](process[a58_0x30292f(0x129)],'--require',a58_0x30292f(0x1ad)));PerformanceTester['start'](PerformanceEvents[a58_0x30292f(0x1b2)]);const a58_0x123885={};a58_0x123885['dot-notation']=![];const argv=yargs[a58_0x30292f(0x15e)](a58_0x123885)['usage'](a58_0x30292f(0x186))[a58_0x30292f(0x174)]('v',a58_0x30292f(0x1cc))[a58_0x30292f(0x171)]('v')[a58_0x30292f(0x174)]('h',a58_0x30292f(0x1ab))[a58_0x30292f(0x1ab)](a58_0x30292f(0x1ab))[a58_0x30292f(0x123)](!![],Constants[a58_0x30292f(0x155)][a58_0x30292f(0x12f)])[a58_0x30292f(0x15d)](a58_0x30292f(0x1d0),Constants[a58_0x30292f(0x14e)][a58_0x30292f(0x181)],function(_0x3635bd){const _0x40bf21=a58_0x30292f,_0x53498e={'nhjRN':'jest','BLTDn':function(_0x15e5b0,_0x2e5b1c,_0x376bbe,_0x5988cc,_0x4a7ea1,_0x17fe37){return _0x15e5b0(_0x2e5b1c,_0x376bbe,_0x5988cc,_0x4a7ea1,_0x17fe37);},'zTvGF':function(_0x2d8039,_0x2e2b8f){return _0x2d8039(_0x2e2b8f);},'NsOib':_0x40bf21(0x196)},_0x438f10=process[_0x40bf21(0x129)][_0x40bf21(0x1b5)](0x2);helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable'](),_0x3635bd[_0x40bf21(0x17f)](![]);const _0x5ed0d5=new BrowserStackSetup(_0x3635bd[_0x40bf21(0x129)],_0x53498e['nhjRN']);return _0x53498e[_0x40bf21(0x159)](captureError,_0x53498e[_0x40bf21(0x13c)](require,_0x53498e[_0x40bf21(0x13f)]),_0x3635bd['argv'],_0x5ed0d5,_0x438f10,!![]);})[a58_0x30292f(0x15d)](a58_0x30292f(0x1d1),Constants[a58_0x30292f(0x15a)][a58_0x30292f(0x181)],function(_0x2f7fa4){const _0x482bd8=a58_0x30292f,_0x2ac8b3={'gYZhY':_0x482bd8(0x1d1),'FxMew':function(_0x171362,_0x339044,_0x4ed6df,_0x16e904,_0x44c097,_0x225074){return _0x171362(_0x339044,_0x4ed6df,_0x16e904,_0x44c097,_0x225074);},'xENPV':function(_0x3870c4,_0x1fdbaf){return _0x3870c4(_0x1fdbaf);},'CDNkz':_0x482bd8(0x17c)},_0x1a5ea1=process[_0x482bd8(0x129)][_0x482bd8(0x1b5)](0x2);helper['setTestObservabilityDisable'](),helper[_0x482bd8(0x12c)](),_0x2f7fa4['strict'](![]);const _0xf4c435=new BrowserStackSetup(_0x2f7fa4[_0x482bd8(0x129)],_0x2ac8b3[_0x482bd8(0x15f)]);return _0x2ac8b3['FxMew'](captureError,_0x2ac8b3['xENPV'](require,_0x2ac8b3[_0x482bd8(0x191)]),_0x2f7fa4[_0x482bd8(0x129)],_0xf4c435,_0x1a5ea1,!![]);})['command'](a58_0x30292f(0x1cf),Constants[a58_0x30292f(0x126)][a58_0x30292f(0x181)],_0x228fb1=>{const _0x3b6c7a=a58_0x30292f,_0x27e47c={'AjkOd':function(_0x3fc9fd,_0x45766f,_0x10ecc1,_0x2c70a3){return _0x3fc9fd(_0x45766f,_0x10ecc1,_0x2c70a3);},'YXaUj':function(_0x396b4e,_0x23ba71){return _0x396b4e(_0x23ba71);},'Hocmw':_0x3b6c7a(0x1a0),'KwybN':_0x3b6c7a(0x1cf),'UCJRX':_0x3b6c7a(0x13b),'lkwZz':function(_0x33642b,_0x14b1fc,_0x35782b){return _0x33642b(_0x14b1fc,_0x35782b);},'WFGow':_0x3b6c7a(0x11f),'fhIOf':function(_0x4d4d57,_0x31fde2,_0x35a502){return _0x4d4d57(_0x31fde2,_0x35a502);},'HzCBQ':_0x3b6c7a(0x19a),'KLSID':function(_0x47fd73,_0x4813b7,_0x631567){return _0x47fd73(_0x4813b7,_0x631567);},'EsExw':_0x3b6c7a(0x149),'AcEpk':function(_0xa17991){return _0xa17991();}};process[_0x3b6c7a(0x129)]=process[_0x3b6c7a(0x129)]['slice'](0x1),helper[_0x3b6c7a(0x1a3)](),helper[_0x3b6c7a(0x12c)]();const _0x287ede=new BrowserStackSetup(_0x228fb1['argv'],_0x27e47c[_0x3b6c7a(0x199)]);logger[_0x3b6c7a(0x189)](_0x27e47c['UCJRX']);const _0x3eb232=_0x27e47c['lkwZz'](requireModule,_0x27e47c[_0x3b6c7a(0x1b1)],_0x27e47c[_0x3b6c7a(0x199)]),_0x311ced=_0x27e47c['fhIOf'](requireModule,_0x27e47c[_0x3b6c7a(0x13e)],_0x27e47c[_0x3b6c7a(0x199)]);delete _0x3eb232[_0x3b6c7a(0x18f)],_0x3eb232[_0x3b6c7a(0x18f)]=function(_0x4d0b9a){const _0x1cf82b=_0x3b6c7a;return _0x27e47c['AjkOd'](captureError,_0x27e47c[_0x1cf82b(0x194)](require,_0x27e47c['Hocmw']),_0x4d0b9a,_0x287ede);},_0x311ced['run']=_0x3eb232;const {main:_0xcb418a}=_0x27e47c[_0x3b6c7a(0x1a4)](requireModule,_0x27e47c[_0x3b6c7a(0x146)],_0x27e47c[_0x3b6c7a(0x199)]);_0x27e47c['AcEpk'](_0xcb418a);})[a58_0x30292f(0x15d)](a58_0x30292f(0x188),Constants[a58_0x30292f(0x158)][a58_0x30292f(0x181)],function(_0x5e847c){const _0x4dc27e=a58_0x30292f,_0x88156c={'vSvoD':_0x4dc27e(0x188),'lxLHt':function(_0x3350e1,_0x264877,_0x4cbfc7,_0x4f64e9,_0x25bf2c,_0x5ce7d6){return _0x3350e1(_0x264877,_0x4cbfc7,_0x4f64e9,_0x25bf2c,_0x5ce7d6);},'uHGvM':function(_0x46f3e4,_0x48ee56){return _0x46f3e4(_0x48ee56);},'vijts':_0x4dc27e(0x1c8)},_0xcf63de=process[_0x4dc27e(0x129)][_0x4dc27e(0x1b5)](0x2),_0x2fb614=new BrowserStackSetup(_0x5e847c['argv'],_0x88156c[_0x4dc27e(0x1c6)]);return _0x88156c['lxLHt'](captureError,_0x88156c[_0x4dc27e(0x143)](require,_0x88156c[_0x4dc27e(0x190)]),_0x5e847c[_0x4dc27e(0x129)],_0x2fb614,_0xcf63de,!![]);})[a58_0x30292f(0x15d)](a58_0x30292f(0x17a),Constants[a58_0x30292f(0x1c7)]['INFO'],function(_0x3610b9){const _0x1844c3=a58_0x30292f,_0x5ee703={'mVXYR':_0x1844c3(0x135),'xszmc':function(_0x1b6718,_0x58a8d0){return _0x1b6718(_0x58a8d0);},'GEEBS':_0x1844c3(0x19c),'TnJxB':function(_0xa46f5c,_0x6a8456,_0x49c20c,_0x5031c2,_0x3bb3c6){return _0xa46f5c(_0x6a8456,_0x49c20c,_0x5031c2,_0x3bb3c6);},'ZeScB':_0x1844c3(0x16f),'aMTPm':function(_0x297aae,_0x73516,_0x5702e5,_0x53ce9c,_0x589087){return _0x297aae(_0x73516,_0x5702e5,_0x53ce9c,_0x589087);},'mqgEr':function(_0x851f7c,_0x2fccd6){return _0x851f7c(_0x2fccd6);},'zrwBv':_0x1844c3(0x177)},_0x438aa3=process[_0x1844c3(0x129)][_0x1844c3(0x1b5)](0x2),_0x4e49ca=new BrowserStackSetup(_0x3610b9[_0x1844c3(0x129)],_0x5ee703[_0x1844c3(0x153)]),_0x4e607d=_0x4e49ca?_0x4e49ca[_0x1844c3(0x185)]:null;if(_0x5ee703['xszmc'](isNewman,_0x4e607d))return _0x4e49ca[_0x1844c3(0x187)]=_0x5ee703[_0x1844c3(0x1b0)],global[_0x1844c3(0x187)]=_0x5ee703[_0x1844c3(0x1b0)],_0x5ee703[_0x1844c3(0x119)](captureError,_0x5ee703[_0x1844c3(0x1c5)](require,_0x5ee703[_0x1844c3(0x137)]),_0x3610b9[_0x1844c3(0x129)],_0x4e49ca,_0x438aa3);return _0x5ee703[_0x1844c3(0x14f)](captureError,_0x5ee703[_0x1844c3(0x1ac)](require,_0x5ee703['zrwBv']),_0x3610b9[_0x1844c3(0x129)],_0x4e49ca,_0x438aa3);})[a58_0x30292f(0x15d)]('nightwatch',Constants['NIGHTWATCH'][a58_0x30292f(0x181)],function(_0x5f2a32){const _0x42a05d=a58_0x30292f,_0x41af20={'ThzgP':_0x42a05d(0x193),'rXfjq':function(_0x648861,_0x4812c4,_0x4b5242,_0x491e84,_0x37adf3){return _0x648861(_0x4812c4,_0x4b5242,_0x491e84,_0x37adf3);},'Irbrd':function(_0x2e6661,_0x1c535d){return _0x2e6661(_0x1c535d);},'Qmktn':'./nightwatch/command'},_0x1f7efe=process['argv']['slice'](0x2),_0x114d2f=new BrowserStackSetup(_0x5f2a32['argv'],_0x41af20[_0x42a05d(0x1b8)]);return _0x41af20['rXfjq'](captureError,_0x41af20[_0x42a05d(0x169)](require,_0x41af20[_0x42a05d(0x150)]),_0x5f2a32['argv'],_0x114d2f,_0x1f7efe);})[a58_0x30292f(0x15d)]('codeceptjs',Constants[a58_0x30292f(0x1ca)][a58_0x30292f(0x181)],function(_0x17c167){const _0x2f63ed=a58_0x30292f,_0x15fa56={'bfOhW':'codeceptjs','zBAMu':function(_0x2d109f,_0x5d9403,_0x313560,_0x4b845c,_0x13bb08){return _0x2d109f(_0x5d9403,_0x313560,_0x4b845c,_0x13bb08);},'HtTyp':function(_0x4cfbcd,_0x59e4f5){return _0x4cfbcd(_0x59e4f5);},'myEcA':_0x2f63ed(0x1bd)},_0x305c43=process[_0x2f63ed(0x129)][_0x2f63ed(0x1b5)](0x2),_0x546ce5=new BrowserStackSetup(_0x17c167[_0x2f63ed(0x129)],_0x15fa56[_0x2f63ed(0x142)]);return _0x15fa56['zBAMu'](captureError,_0x15fa56['HtTyp'](require,_0x15fa56[_0x2f63ed(0x136)]),_0x17c167[_0x2f63ed(0x129)],_0x546ce5,_0x305c43);})[a58_0x30292f(0x15d)](a58_0x30292f(0x1a1),Constants[a58_0x30292f(0x12b)][a58_0x30292f(0x181)],function(_0x128f4d){const _0x3ae032=a58_0x30292f,_0x1d58cb={'qmcxB':function(_0x3f861c,_0x3cb268,_0x27bafc){return _0x3f861c(_0x3cb268,_0x27bafc);},'ILdbf':function(_0x243380,_0x40f3e0){return _0x243380(_0x40f3e0);},'nVXqj':_0x3ae032(0x198)},_0x4298d2=process[_0x3ae032(0x129)][_0x3ae032(0x1b5)](0x2);return _0x1d58cb[_0x3ae032(0x17b)](captureError,_0x1d58cb[_0x3ae032(0x162)](require,_0x1d58cb[_0x3ae032(0x195)]),_0x128f4d);})[a58_0x30292f(0x15d)](a58_0x30292f(0x16d),Constants['INTEGRATIONS'][a58_0x30292f(0x181)],function(_0xa6052c){const _0x1b7839=a58_0x30292f,_0x239da8={'vyyqo':function(_0x5100bb,_0x52b7fe){return _0x5100bb(_0x52b7fe);}};return _0x239da8[_0x1b7839(0x1c2)](runIntegrations,_0xa6052c);})['command'](a58_0x30292f(0x1c0),Constants['PLAYWRIGHT']['INFO'],function(_0x3364e7){const _0x8653c5=a58_0x30292f,_0x97ccdb={'Vwbln':_0x8653c5(0x1a5),'EfwHS':function(_0x480665,_0x5b47af){return _0x480665&&_0x5b47af;},'OnxtU':function(_0x5bc972,_0x30c38c,_0x12d634,_0x39e5e6,_0x1d425f,_0x5a2d45){return _0x5bc972(_0x30c38c,_0x12d634,_0x39e5e6,_0x1d425f,_0x5a2d45);},'UYHvg':function(_0x431f90,_0x4ea2d4){return _0x431f90(_0x4ea2d4);},'DVifr':_0x8653c5(0x1cd)},_0x101485=process[_0x8653c5(0x129)]['slice'](0x2);helper[_0x8653c5(0x183)](process[_0x8653c5(0x129)])&&(process['env'][_0x8653c5(0x16a)]=helper['getConfigPath'](process['argv']));helper[_0x8653c5(0x1a3)](),helper['setBrowserStackAutomationDisable']();const _0x7ed538=new BrowserStackSetup(_0x3364e7[_0x8653c5(0x129)],FRAMEWORKS[_0x8653c5(0x11d)]);try{if(!_0x7ed538[_0x8653c5(0x185)]||!_0x7ed538[_0x8653c5(0x185)][_0x8653c5(0x122)]){const _0x27c3e6=_0x97ccdb[_0x8653c5(0x1b3)],_0x3fc1f0=process['env']['DEBUG']||'',_0x199ad8=_0x3fc1f0[_0x8653c5(0x152)](',')[_0x8653c5(0x14a)](_0x154316=>_0x154316[_0x8653c5(0x170)]())[_0x8653c5(0x1a9)](Boolean),_0x2a431d=_0x199ad8[_0x8653c5(0x15b)](_0x25fb21=>_0x25fb21===_0x8653c5(0x175)||_0x25fb21===_0x8653c5(0x1a8)||_0x25fb21==='-*'),_0x33b53a=_0x199ad8[_0x8653c5(0x15b)](_0x2952f2=>_0x2952f2===_0x27c3e6||_0x2952f2===_0x8653c5(0x157)||_0x2952f2==='*');if(_0x97ccdb[_0x8653c5(0x168)](!_0x2a431d,!_0x33b53a)){const _0x420bcf=helper['getPwChannelLogPath']();_0x420bcf&&(process[_0x8653c5(0x11e)][_0x8653c5(0x1a7)]=_0x3fc1f0?_0x3fc1f0+','+_0x27c3e6:_0x27c3e6,!process[_0x8653c5(0x11e)]['DEBUG_FILE']&&(process[_0x8653c5(0x11e)][_0x8653c5(0x140)]=_0x420bcf));}}}catch(_0x5ac419){logger[_0x8653c5(0x189)](_0x8653c5(0x156)+util[_0x8653c5(0x13a)](_0x5ac419));}return _0x97ccdb[_0x8653c5(0x134)](captureError,_0x97ccdb[_0x8653c5(0x144)](require,_0x97ccdb[_0x8653c5(0x1ce)]),_0x3364e7[_0x8653c5(0x129)],_0x7ed538,_0x101485,!![]);})['command']('testcafe',Constants[a58_0x30292f(0x139)][a58_0x30292f(0x181)],function(_0x2d1440){const _0x2a728a=a58_0x30292f,_0xa4d4df={'nLarA':'testcafe','mHeNZ':function(_0x1642eb,_0x33dca4,_0x3e341c,_0x300134,_0x52bd53,_0x918ab3){return _0x1642eb(_0x33dca4,_0x3e341c,_0x300134,_0x52bd53,_0x918ab3);},'VTQQl':function(_0x110273,_0x178979){return _0x110273(_0x178979);},'XtLev':_0x2a728a(0x148)},_0x4f0407=process[_0x2a728a(0x129)][_0x2a728a(0x1b5)](0x2),_0x563ffb=new BrowserStackSetup(_0x2d1440[_0x2a728a(0x129)],_0xa4d4df[_0x2a728a(0x11b)]);return _0xa4d4df[_0x2a728a(0x12e)](captureError,_0xa4d4df[_0x2a728a(0x19f)](require,_0xa4d4df[_0x2a728a(0x14b)]),_0x2d1440[_0x2a728a(0x129)],_0x563ffb,_0x4f0407,!![]);})[a58_0x30292f(0x15d)](a58_0x30292f(0x1ba),a58_0x30292f(0x127),function(_0x5f09e3){const _0x41e426=a58_0x30292f,_0x4789cb={};_0x4789cb[_0x41e426(0x12d)]=_0x41e426(0x1ab),_0x4789cb[_0x41e426(0x1bb)]=_0x41e426(0x1a2),_0x4789cb[_0x41e426(0x180)]='Show\x20help';const _0x22b1c1=_0x4789cb;return _0x5f09e3[_0x41e426(0x1ab)](![])['option'](_0x22b1c1[_0x41e426(0x12d)],{'alias':'h','type':_0x22b1c1[_0x41e426(0x1bb)],'describe':_0x22b1c1[_0x41e426(0x180)]})['strict'](![])[_0x41e426(0x120)](![]);},function(_0x29d404){const _0x376de3=a58_0x30292f,_0x3f0ba6={'QvdqA':function(_0x4380b4,_0xa220e2,_0x40ef1d){return _0x4380b4(_0xa220e2,_0x40ef1d);},'xxBzX':function(_0x5aba1d,_0x1cf9da){return _0x5aba1d(_0x1cf9da);},'IUioZ':_0x376de3(0x1bf)},_0x20f9ed={};return _0x20f9ed[_0x376de3(0x129)]=_0x29d404,_0x3f0ba6[_0x376de3(0x1c1)](captureError,_0x3f0ba6[_0x376de3(0x124)](require,_0x3f0ba6[_0x376de3(0x176)]),_0x20f9ed);})[a58_0x30292f(0x15d)](a58_0x30292f(0x19c),Constants[a58_0x30292f(0x197)]['INFO'],function(_0x1dd81d){const _0x11fc86=a58_0x30292f,_0x42e87b={'ZsqqF':_0x11fc86(0x19c),'VYvpb':function(_0x3b8730,_0x43a6eb,_0xedd777,_0x1ceb92,_0x161f0f){return _0x3b8730(_0x43a6eb,_0xedd777,_0x1ceb92,_0x161f0f);},'YQmmh':function(_0x580048,_0x53d7d2){return _0x580048(_0x53d7d2);},'jkfvY':'./newman/command'},_0x17930a=process[_0x11fc86(0x129)][_0x11fc86(0x1b5)](0x2);helper[_0x11fc86(0x1a3)](),helper[_0x11fc86(0x12c)](),_0x1dd81d[_0x11fc86(0x17f)](![]);const _0x30eb63=new BrowserStackSetup(_0x1dd81d[_0x11fc86(0x129)],_0x42e87b[_0x11fc86(0x1c4)]);return _0x42e87b[_0x11fc86(0x125)](captureError,_0x42e87b['YQmmh'](require,_0x42e87b[_0x11fc86(0x17e)]),_0x1dd81d[_0x11fc86(0x129)],_0x30eb63,_0x17930a);})[a58_0x30292f(0x160)](0x1,a58_0x30292f(0x165))[a58_0x30292f(0x1aa)](null)[a58_0x30292f(0x129)];!helper[a58_0x30292f(0x161)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console[a58_0x30292f(0x11c)]('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
|
|
2
|
+
'use strict';const a60_0x27f3a8=a60_0x453d;(function(_0x3a727d,_0x1bc9c0){const _0x27f3c7=a60_0x453d,_0x56457f=_0x3a727d();while(!![]){try{const _0x27a58d=-parseInt(_0x27f3c7(0xab))/0x1+-parseInt(_0x27f3c7(0xbf))/0x2*(-parseInt(_0x27f3c7(0x8b))/0x3)+parseInt(_0x27f3c7(0xc5))/0x4+parseInt(_0x27f3c7(0xe8))/0x5+-parseInt(_0x27f3c7(0xaa))/0x6*(parseInt(_0x27f3c7(0x84))/0x7)+-parseInt(_0x27f3c7(0x9e))/0x8+-parseInt(_0x27f3c7(0xd2))/0x9;if(_0x27a58d===_0x1bc9c0)break;else _0x56457f['push'](_0x56457f['shift']());}catch(_0x409fc9){_0x56457f['push'](_0x56457f['shift']());}}}(a60_0x4951,0x67e4c));const fs=require('fs'),path=require(a60_0x27f3a8(0xd1)),util=require(a60_0x27f3a8(0x8e)),spawn=require(a60_0x27f3a8(0xb0))[a60_0x27f3a8(0x74)],{requireModule}=require(a60_0x27f3a8(0xd5)),PerformanceTester=require(a60_0x27f3a8(0xfd)),PerformanceEvents=require(a60_0x27f3a8(0xac))[a60_0x27f3a8(0x7a)],helper=require(a60_0x27f3a8(0xd5)),utilities=require(a60_0x27f3a8(0x110)),{default:BrowserStackSetup}=require(a60_0x27f3a8(0x8a)),{FRAMEWORKS}=require(a60_0x27f3a8(0xa8)),runIntegrations=require(a60_0x27f3a8(0xa5)),yargs=require(a60_0x27f3a8(0x11c)),Constants=require('./utils/constants'),BrowserstackCLI=require('./v2/browserstackCLI'),{isNewman}=require('./newman/helper'),logger=require(a60_0x27f3a8(0xc7))[a60_0x27f3a8(0xcf)],origArgs=Object['assign']([],process[a60_0x27f3a8(0xc9)]),captureError=async(_0x287dea,_0x101649,_0x10460e,_0x4d7da5=null,_0x316e63=![])=>{const _0x4a41e3=a60_0x27f3a8,_0x3c3eab={'FcSCa':function(_0x5c5f7d,_0x3687fd,_0x34e15c,_0x2a4c66){return _0x5c5f7d(_0x3687fd,_0x34e15c,_0x2a4c66);},'czjpU':_0x4a41e3(0x77)};try{logger['info'](_0x4a41e3(0xdc)+origArgs['join']('\x20')),await _0x3c3eab['FcSCa'](_0x287dea,_0x101649,_0x4d7da5,_0x10460e);}catch(_0x28685b){process[_0x4a41e3(0x105)]=0x1,logger['error'](util[_0x4a41e3(0x10e)](_0x28685b));const _0x1799b2={'globalException':util['format']('%j',_0x28685b)};PerformanceTester[_0x4a41e3(0x83)](PerformanceEvents[_0x4a41e3(0x8f)],![],util['format'](_0x28685b));if(helper['isUndefined'](global[_0x4a41e3(0xe5)])&&helper[_0x4a41e3(0x72)](global[_0x4a41e3(0x71)]))return;try{utilities[_0x4a41e3(0x82)](_0x3c3eab['czjpU'],_0x1799b2,global[_0x4a41e3(0xe5)],global[_0x4a41e3(0x71)]);}catch(_0x50974d){logger[_0x4a41e3(0xa0)](_0x4a41e3(0x108)+_0x50974d[_0x4a41e3(0xfe)]);}try{await helper[_0x4a41e3(0x119)](global[_0x4a41e3(0xe5)]);}catch(_0x5ee979){logger[_0x4a41e3(0xa0)](_0x4a41e3(0xf0)+_0x5ee979[_0x4a41e3(0xfe)]);}PerformanceTester[_0x4a41e3(0x83)](PerformanceEvents[_0x4a41e3(0x8f)],![],util[_0x4a41e3(0x10e)](_0x28685b));}finally{!_0x316e63&&await BrowserstackCLI[_0x4a41e3(0xee)]()[_0x4a41e3(0xcb)](),PerformanceTester[_0x4a41e3(0xbb)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path[a60_0x27f3a8(0xba)](helper[a60_0x27f3a8(0x96)](),a60_0x27f3a8(0x8c));if(fs[a60_0x27f3a8(0x10a)](browserstackFolderPath)){const filePath=path[a60_0x27f3a8(0xba)](browserstackFolderPath,a60_0x27f3a8(0xf2));fs[a60_0x27f3a8(0x10a)](filePath)&&fs[a60_0x27f3a8(0xa1)](filePath);}}catch(a60_0x40b164){logger[a60_0x27f3a8(0xa0)](a60_0x27f3a8(0xd0)+a60_0x40b164[a60_0x27f3a8(0x103)]);}process['argv'][a60_0x27f3a8(0xe4)](a60_0x27f3a8(0x7e))&&(!process[a60_0x27f3a8(0xc9)]['includes'](a60_0x27f3a8(0xda))&&process[a60_0x27f3a8(0xc9)]['push'](a60_0x27f3a8(0xf6)),!process[a60_0x27f3a8(0xc9)]['find'](_0x47bae8=>_0x47bae8[a60_0x27f3a8(0xe4)]('--config'))&&process[a60_0x27f3a8(0xc9)]['push'](a60_0x27f3a8(0xb6)),!process[a60_0x27f3a8(0xc9)]['includes']('--package')&&process[a60_0x27f3a8(0xc9)][a60_0x27f3a8(0xd6)](a60_0x27f3a8(0xe0)),helper[a60_0x27f3a8(0xe2)](process['argv'],a60_0x27f3a8(0x118),'--mochaRequire'));PerformanceTester[a60_0x27f3a8(0xbb)](PerformanceEvents[a60_0x27f3a8(0x8f)]);const a60_0x2eed39={};function a60_0x453d(_0x4a4a50,_0x2f62dc){const _0x495193=a60_0x4951();return a60_0x453d=function(_0x453de3,_0x3aff2e){_0x453de3=_0x453de3-0x70;let _0x2c8ce8=_0x495193[_0x453de3];return _0x2c8ce8;},a60_0x453d(_0x4a4a50,_0x2f62dc);}a60_0x2eed39[a60_0x27f3a8(0x128)]=![];function a60_0x4951(){const _0x4b12f9=['INTEGRATIONS','playwright','DtbSv','4yqvmRb','ALOcl','FfzHW','DEBUG_FILE','parserConfiguration','qXmIv','3002532hnzyCO','command','../helpers/logger','YMEZW','argv','eSdDn','stop','bWkwy','tQSrx','trim','winstonLogger','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','path','1219509KbcGGk','./load/index','map','../helpers/helper','push','OVgxH','showHelpOnFail','getPwChannelLogPath','--opts','INFO','Running\x20SDK\x20with\x20args\x20','JASMINE','NIGHTWATCH','jEYdO','--no-package','PvhQW','findAndReplace','CTxxL','includes','config','ANgmd','pOHaX','2654970dUcLCK','./playwright/command','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','../../ats/src/index','jsWBe','./codeceptjs/command','getInstance','ZSFiS','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','TJiyY','.local-not-set.json','exitProcess','./jest/command','setBrowserStackAutomationDisable','--no-opts','zrxWf','SQUkh','./testcafe/command','nWEYI','VSgol','HKFEl','../helpers/performance/performance-tester','stack','TESTCAFE','env','HST','mocha/lib/cli/cli.js','message','mocha/lib/cli/commands.js','exitCode','node','integrations','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','./vanilla-js/command','existsSync','./nightwatch/command','some','bIGQU','format','CODECEPTJS','../helpers/utilities','KiwZu','nSFsQ','Kmtgl','ezRsB','alias','./jasmine/command','Show\x20help','--require','sendLogs','mocha/lib/cli/run.js','nWZOL','yargs','disableAutoCaptureLogs','PNymz','UwZwH','eetoB','XUuQG','option','DxkPG','slice','CnBmP','Qedwg','filter','dot-notation','describe','ats','framework','isUndefined','pw:*','spawn','thfCG','newman','SDKTestSuccessful','Bghro','WDdli','EVENTS','load\x20[subcommand]','JEST','setTestObservabilityDisable','mocha','boolean','GCezF','BROWSERSTACK_CONFIG_FILE_PATH','fireFunnelTestEvent','end','35wViePp','run','-pw:*','PLAYWRIGHT','./newman/command','handler','../helpers/BrowserStackSetup','919299bSYUud','.browserstack','vanilla','util','SDK_SETUP','DEBUG','fTXug','getConfigPath','VERSION','ztUhY','VANILLA','homedir','help','Runs\x20the\x20binary\x20with\x20load\x20command','strict','./cucumber-js/command','CBlnn','wrap','CUCUMBER','4144856TYEGBV','cucumber-js','debug','unlinkSync','ZLTLr','Vbtzh','GYeYZ','./integrations/command','usage:\x20$0\x20<command>\x20[args]','nightwatch','../helpers/test-observability/constants','NEWMAN','323436EXYsfh','545807TVLGHh','../helpers/performance/constants','jest','-pw:channel','HCzsz','child_process','cZyGA','codeceptjs','usage','testcafe','ssUEF','--no-config','Parsing\x20command\x20line\x20arguments','./mocha/command','VWLiP','join','start'];a60_0x4951=function(){return _0x4b12f9;};return a60_0x4951();}const argv=yargs[a60_0x27f3a8(0xc3)](a60_0x2eed39)[a60_0x27f3a8(0xb3)](a60_0x27f3a8(0xa6))[a60_0x27f3a8(0x115)]('v','version')[a60_0x27f3a8(0x129)]('v')['alias']('h',a60_0x27f3a8(0x97))[a60_0x27f3a8(0x97)](a60_0x27f3a8(0x97))[a60_0x27f3a8(0xd8)](!![],Constants[a60_0x27f3a8(0x93)]['HELP'])[a60_0x27f3a8(0xc6)](a60_0x27f3a8(0xad),Constants[a60_0x27f3a8(0x7c)][a60_0x27f3a8(0xdb)],function(_0xb5a2c3){const _0x16f201=a60_0x27f3a8,_0x56c86f={'HCzsz':_0x16f201(0xad),'PNymz':function(_0xa1005b,_0x548a71,_0x5b2f90,_0x28701c,_0x51d235,_0x537d44){return _0xa1005b(_0x548a71,_0x5b2f90,_0x28701c,_0x51d235,_0x537d44);},'GYeYZ':function(_0x5cf8a8,_0x240d76){return _0x5cf8a8(_0x240d76);},'UwZwH':_0x16f201(0xf4)},_0x204fe8=process[_0x16f201(0xc9)][_0x16f201(0x124)](0x2);helper[_0x16f201(0x7d)](),helper[_0x16f201(0xf5)](),_0xb5a2c3['strict'](![]);const _0x36938b=new BrowserStackSetup(_0xb5a2c3[_0x16f201(0xc9)],_0x56c86f[_0x16f201(0xaf)]);return _0x56c86f[_0x16f201(0x11e)](captureError,_0x56c86f[_0x16f201(0xa4)](require,_0x56c86f[_0x16f201(0x11f)]),_0xb5a2c3['argv'],_0x36938b,_0x204fe8,!![]);})[a60_0x27f3a8(0xc6)]('jasmine',Constants[a60_0x27f3a8(0xdd)][a60_0x27f3a8(0xdb)],function(_0x11f5ff){const _0x23ef35=a60_0x27f3a8,_0x495576={'EEcFU':'jasmine','bWkwy':function(_0x48b6aa,_0xa833ae,_0x50e8c7,_0x10d87b,_0xeca0bc,_0x6abd0c){return _0x48b6aa(_0xa833ae,_0x50e8c7,_0x10d87b,_0xeca0bc,_0x6abd0c);},'DtbSv':function(_0x349666,_0x3a28ee){return _0x349666(_0x3a28ee);},'bIGQU':_0x23ef35(0x116)},_0x1c3d7d=process[_0x23ef35(0xc9)]['slice'](0x2);helper[_0x23ef35(0x7d)](),helper[_0x23ef35(0xf5)](),_0x11f5ff[_0x23ef35(0x99)](![]);const _0x3036a8=new BrowserStackSetup(_0x11f5ff['argv'],_0x495576['EEcFU']);return _0x495576[_0x23ef35(0xcc)](captureError,_0x495576[_0x23ef35(0xbe)](require,_0x495576[_0x23ef35(0x10d)]),_0x11f5ff[_0x23ef35(0xc9)],_0x3036a8,_0x1c3d7d,!![]);})[a60_0x27f3a8(0xc6)](a60_0x27f3a8(0x7e),Constants['MOCHA'][a60_0x27f3a8(0xdb)],_0x1140f3=>{const _0x2eec7e=a60_0x27f3a8,_0x5dbbd4={'MHkfh':function(_0x11dd8b,_0x2e25b1,_0x4a4456,_0x1af0d5){return _0x11dd8b(_0x2e25b1,_0x4a4456,_0x1af0d5);},'TJiyY':function(_0x4e8a23,_0x43d781){return _0x4e8a23(_0x43d781);},'CnBmP':_0x2eec7e(0xb8),'nSFsQ':_0x2eec7e(0x7e),'ZUYYm':_0x2eec7e(0xb7),'KiwZu':function(_0x159b48,_0x2d6bba,_0x1a850d){return _0x159b48(_0x2d6bba,_0x1a850d);},'YMEZW':_0x2eec7e(0x11a),'CTxxL':_0x2eec7e(0x104),'nWEYI':_0x2eec7e(0x102),'ANgmd':function(_0x281a15){return _0x281a15();}};process[_0x2eec7e(0xc9)]=process[_0x2eec7e(0xc9)][_0x2eec7e(0x124)](0x1),helper[_0x2eec7e(0x7d)](),helper[_0x2eec7e(0xf5)]();const _0x543b96=new BrowserStackSetup(_0x1140f3[_0x2eec7e(0xc9)],_0x5dbbd4['nSFsQ']);logger['debug'](_0x5dbbd4['ZUYYm']);const _0x165e6a=_0x5dbbd4[_0x2eec7e(0x111)](requireModule,_0x5dbbd4[_0x2eec7e(0xc8)],_0x5dbbd4[_0x2eec7e(0x112)]),_0x5d09c2=_0x5dbbd4[_0x2eec7e(0x111)](requireModule,_0x5dbbd4[_0x2eec7e(0xe3)],_0x5dbbd4['nSFsQ']);delete _0x165e6a[_0x2eec7e(0x89)],_0x165e6a['handler']=function(_0x4b9601){const _0x364603=_0x2eec7e;return _0x5dbbd4['MHkfh'](captureError,_0x5dbbd4[_0x364603(0xf1)](require,_0x5dbbd4[_0x364603(0x125)]),_0x4b9601,_0x543b96);},_0x5d09c2[_0x2eec7e(0x85)]=_0x165e6a;const {main:_0x1b3ffe}=_0x5dbbd4['KiwZu'](requireModule,_0x5dbbd4[_0x2eec7e(0xfa)],_0x5dbbd4[_0x2eec7e(0x112)]);_0x5dbbd4[_0x2eec7e(0xe6)](_0x1b3ffe);})[a60_0x27f3a8(0xc6)](a60_0x27f3a8(0x9f),Constants[a60_0x27f3a8(0x9d)][a60_0x27f3a8(0xdb)],function(_0x49ef63){const _0x286998=a60_0x27f3a8,_0x57334={'jEYdO':'cucumber-js','Vbtzh':function(_0x53cd47,_0x3b60cb,_0x5edb9a,_0x6e4208,_0x221aee,_0x21add3){return _0x53cd47(_0x3b60cb,_0x5edb9a,_0x6e4208,_0x221aee,_0x21add3);},'cZyGA':function(_0x3c2e34,_0x4811a1){return _0x3c2e34(_0x4811a1);},'eSdDn':_0x286998(0x9a)},_0x4b14e2=process[_0x286998(0xc9)][_0x286998(0x124)](0x2),_0x2be7bc=new BrowserStackSetup(_0x49ef63[_0x286998(0xc9)],_0x57334[_0x286998(0xdf)]);return _0x57334[_0x286998(0xa3)](captureError,_0x57334[_0x286998(0xb1)](require,_0x57334[_0x286998(0xca)]),_0x49ef63['argv'],_0x2be7bc,_0x4b14e2,!![]);})[a60_0x27f3a8(0xc6)](a60_0x27f3a8(0x106),Constants[a60_0x27f3a8(0x95)]['INFO'],function(_0x162785){const _0x56e18e=a60_0x27f3a8,_0x5e126f={'VSgol':_0x56e18e(0x8d),'ssUEF':function(_0x76a067,_0x196f23){return _0x76a067(_0x196f23);},'CBlnn':'newman','ZSFiS':function(_0x4b0e72,_0xc17c0a,_0x29c36,_0x3a3be4,_0x76a3d9){return _0x4b0e72(_0xc17c0a,_0x29c36,_0x3a3be4,_0x76a3d9);},'OdcLK':function(_0x2702c2,_0x23b265){return _0x2702c2(_0x23b265);},'Bghro':_0x56e18e(0x88),'Qedwg':function(_0x4a6022,_0x32434b){return _0x4a6022(_0x32434b);},'fTXug':_0x56e18e(0x109)},_0x4de83b=process[_0x56e18e(0xc9)][_0x56e18e(0x124)](0x2),_0x6da59c=new BrowserStackSetup(_0x162785[_0x56e18e(0xc9)],_0x5e126f[_0x56e18e(0xfb)]),_0x5c02af=_0x6da59c?_0x6da59c[_0x56e18e(0xe5)]:null;if(_0x5e126f[_0x56e18e(0xb5)](isNewman,_0x5c02af))return _0x6da59c[_0x56e18e(0x71)]=_0x5e126f[_0x56e18e(0x9b)],global[_0x56e18e(0x71)]=_0x5e126f[_0x56e18e(0x9b)],_0x5e126f['ZSFiS'](captureError,_0x5e126f['OdcLK'](require,_0x5e126f[_0x56e18e(0x78)]),_0x162785[_0x56e18e(0xc9)],_0x6da59c,_0x4de83b);return _0x5e126f[_0x56e18e(0xef)](captureError,_0x5e126f[_0x56e18e(0x126)](require,_0x5e126f[_0x56e18e(0x91)]),_0x162785[_0x56e18e(0xc9)],_0x6da59c,_0x4de83b);})['command'](a60_0x27f3a8(0xa7),Constants[a60_0x27f3a8(0xde)][a60_0x27f3a8(0xdb)],function(_0x394b49){const _0x108249=a60_0x27f3a8,_0x4ccad2={'mcUAL':_0x108249(0xa7),'ztUhY':function(_0x4a1cd7,_0x29d035,_0x54b7c1,_0xdd2bf9,_0x357e89){return _0x4a1cd7(_0x29d035,_0x54b7c1,_0xdd2bf9,_0x357e89);},'UukwG':function(_0x4aef42,_0x34805d){return _0x4aef42(_0x34805d);},'yHrmD':_0x108249(0x10b)},_0x89ed09=process['argv'][_0x108249(0x124)](0x2),_0x3895c2=new BrowserStackSetup(_0x394b49[_0x108249(0xc9)],_0x4ccad2['mcUAL']);return _0x4ccad2[_0x108249(0x94)](captureError,_0x4ccad2['UukwG'](require,_0x4ccad2['yHrmD']),_0x394b49[_0x108249(0xc9)],_0x3895c2,_0x89ed09);})[a60_0x27f3a8(0xc6)](a60_0x27f3a8(0xb2),Constants[a60_0x27f3a8(0x10f)][a60_0x27f3a8(0xdb)],function(_0x409de6){const _0x47e1f0=a60_0x27f3a8,_0x396bea={'ALOcl':_0x47e1f0(0xb2),'QtJBT':function(_0xbc1975,_0x2dec7b,_0x274fdc,_0x8d8637,_0xdda4fd){return _0xbc1975(_0x2dec7b,_0x274fdc,_0x8d8637,_0xdda4fd);},'ZLTLr':function(_0x523014,_0x121485){return _0x523014(_0x121485);},'ezRsB':_0x47e1f0(0xed)},_0x1aff4d=process['argv'][_0x47e1f0(0x124)](0x2),_0x32733e=new BrowserStackSetup(_0x409de6[_0x47e1f0(0xc9)],_0x396bea[_0x47e1f0(0xc0)]);return _0x396bea['QtJBT'](captureError,_0x396bea[_0x47e1f0(0xa2)](require,_0x396bea[_0x47e1f0(0x114)]),_0x409de6[_0x47e1f0(0xc9)],_0x32733e,_0x1aff4d);})['command'](a60_0x27f3a8(0x70),Constants[a60_0x27f3a8(0x101)][a60_0x27f3a8(0xdb)],function(_0x459969){const _0x457aea=a60_0x27f3a8,_0x5e4949={'XUuQG':function(_0x23c4d9,_0x2bf5ab,_0x31e797){return _0x23c4d9(_0x2bf5ab,_0x31e797);},'SQUkh':function(_0x218d70,_0x2bed2f){return _0x218d70(_0x2bed2f);},'qXmIv':_0x457aea(0xeb)},_0x404943=process[_0x457aea(0xc9)]['slice'](0x2);return _0x5e4949[_0x457aea(0x121)](captureError,_0x5e4949[_0x457aea(0xf8)](require,_0x5e4949[_0x457aea(0xc4)]),_0x459969);})['command'](a60_0x27f3a8(0x107),Constants[a60_0x27f3a8(0xbc)]['INFO'],function(_0x2d3baf){const _0x212fd1=a60_0x27f3a8,_0x1f82b9={'jsWBe':function(_0xd092ba,_0x1aff78){return _0xd092ba(_0x1aff78);}};return _0x1f82b9[_0x212fd1(0xec)](runIntegrations,_0x2d3baf);})['command'](a60_0x27f3a8(0xbd),Constants[a60_0x27f3a8(0x87)][a60_0x27f3a8(0xdb)],function(_0x2fbda9){const _0x2d4d69=a60_0x27f3a8,_0x1b505b={'FfzHW':'pw:channel','GWrwU':function(_0x3a9cfd,_0x336148){return _0x3a9cfd&&_0x336148;},'PvhQW':function(_0x3c6e56,_0x4b0d5d,_0x4bb394,_0x498ced,_0xef7931,_0x14efbe){return _0x3c6e56(_0x4b0d5d,_0x4bb394,_0x498ced,_0xef7931,_0x14efbe);},'thfCG':function(_0x50696c,_0x4e1866){return _0x50696c(_0x4e1866);},'GCezF':_0x2d4d69(0xe9)},_0x50cb7d=process['argv'][_0x2d4d69(0x124)](0x2);helper[_0x2d4d69(0x92)](process['argv'])&&(process[_0x2d4d69(0x100)][_0x2d4d69(0x81)]=helper[_0x2d4d69(0x92)](process['argv']));helper[_0x2d4d69(0x7d)](),helper[_0x2d4d69(0xf5)]();const _0xe87bdc=new BrowserStackSetup(_0x2fbda9['argv'],FRAMEWORKS['PLAYWRIGHT']);try{if(!_0xe87bdc[_0x2d4d69(0xe5)]||!_0xe87bdc[_0x2d4d69(0xe5)][_0x2d4d69(0x11d)]){const _0x1ad413=_0x1b505b[_0x2d4d69(0xc1)],_0x433aa1=process[_0x2d4d69(0x100)][_0x2d4d69(0x90)]||'',_0x577de3=_0x433aa1['split'](',')[_0x2d4d69(0xd4)](_0x1d4401=>_0x1d4401[_0x2d4d69(0xce)]())[_0x2d4d69(0x127)](Boolean),_0x4de09b=_0x577de3[_0x2d4d69(0x10c)](_0x1e3173=>_0x1e3173===_0x2d4d69(0xae)||_0x1e3173===_0x2d4d69(0x86)||_0x1e3173==='-*'),_0x19e65c=_0x577de3[_0x2d4d69(0x10c)](_0x277f13=>_0x277f13===_0x1ad413||_0x277f13===_0x2d4d69(0x73)||_0x277f13==='*');if(_0x1b505b['GWrwU'](!_0x4de09b,!_0x19e65c)){const _0x2fa018=helper[_0x2d4d69(0xd9)]();_0x2fa018&&(process[_0x2d4d69(0x100)]['DEBUG']=_0x433aa1?_0x433aa1+','+_0x1ad413:_0x1ad413,!process[_0x2d4d69(0x100)]['DEBUG_FILE']&&(process[_0x2d4d69(0x100)][_0x2d4d69(0xc2)]=_0x2fa018));}}}catch(_0x4ee891){logger[_0x2d4d69(0xa0)]('pw:channel\x20auto-capture\x20seed\x20failed:\x20'+util[_0x2d4d69(0x10e)](_0x4ee891));}return _0x1b505b[_0x2d4d69(0xe1)](captureError,_0x1b505b[_0x2d4d69(0x75)](require,_0x1b505b[_0x2d4d69(0x80)]),_0x2fbda9[_0x2d4d69(0xc9)],_0xe87bdc,_0x50cb7d,!![]);})['command']('testcafe',Constants[a60_0x27f3a8(0xff)][a60_0x27f3a8(0xdb)],function(_0x3895b1){const _0x321120=a60_0x27f3a8,_0x51346d={'nWZOL':_0x321120(0xb4),'tQSrx':function(_0x92e33e,_0x5369a7,_0x16a49b,_0x485db7,_0x35886c,_0x1d9e46){return _0x92e33e(_0x5369a7,_0x16a49b,_0x485db7,_0x35886c,_0x1d9e46);},'Kmtgl':function(_0x10a1a3,_0x483bb9){return _0x10a1a3(_0x483bb9);},'VWLiP':_0x321120(0xf9)},_0x42f5a1=process[_0x321120(0xc9)][_0x321120(0x124)](0x2),_0x191ba7=new BrowserStackSetup(_0x3895b1[_0x321120(0xc9)],_0x51346d[_0x321120(0x11b)]);return _0x51346d[_0x321120(0xcd)](captureError,_0x51346d[_0x321120(0x113)](require,_0x51346d[_0x321120(0xb9)]),_0x3895b1['argv'],_0x191ba7,_0x42f5a1,!![]);})[a60_0x27f3a8(0xc6)](a60_0x27f3a8(0x7b),a60_0x27f3a8(0x98),function(_0x4de9d0){const _0x44a8cf=a60_0x27f3a8,_0x3a5319={};_0x3a5319['ugCeW']=_0x44a8cf(0x97),_0x3a5319['KIixi']=_0x44a8cf(0x7f),_0x3a5319[_0x44a8cf(0xfc)]=_0x44a8cf(0x117);const _0x1b2d81=_0x3a5319;return _0x4de9d0[_0x44a8cf(0x97)](![])[_0x44a8cf(0x122)](_0x1b2d81['ugCeW'],{'alias':'h','type':_0x1b2d81['KIixi'],'describe':_0x1b2d81['HKFEl']})[_0x44a8cf(0x99)](![])[_0x44a8cf(0xf3)](![]);},function(_0x158352){const _0x27cd62=a60_0x27f3a8,_0x502bca={'zrxWf':function(_0x25fae,_0x44feb2,_0x1aa5f2){return _0x25fae(_0x44feb2,_0x1aa5f2);},'OVgxH':function(_0x15a61b,_0x21cf1a){return _0x15a61b(_0x21cf1a);},'ZNBsN':_0x27cd62(0xd3)},_0x40ba0e={};return _0x40ba0e['argv']=_0x158352,_0x502bca[_0x27cd62(0xf7)](captureError,_0x502bca[_0x27cd62(0xd7)](require,_0x502bca['ZNBsN']),_0x40ba0e);})[a60_0x27f3a8(0xc6)](a60_0x27f3a8(0x76),Constants[a60_0x27f3a8(0xa9)]['INFO'],function(_0x2003f0){const _0x371111=a60_0x27f3a8,_0x45c2a7={'DxkPG':'newman','pOHaX':function(_0x165137,_0xa3f8c5,_0x586378,_0x39a63b,_0x2c4dda){return _0x165137(_0xa3f8c5,_0x586378,_0x39a63b,_0x2c4dda);},'WDdli':function(_0x155e8b,_0x363676){return _0x155e8b(_0x363676);},'eetoB':'./newman/command'},_0x3f3baa=process[_0x371111(0xc9)][_0x371111(0x124)](0x2);helper[_0x371111(0x7d)](),helper[_0x371111(0xf5)](),_0x2003f0[_0x371111(0x99)](![]);const _0x53d706=new BrowserStackSetup(_0x2003f0[_0x371111(0xc9)],_0x45c2a7[_0x371111(0x123)]);return _0x45c2a7[_0x371111(0xe7)](captureError,_0x45c2a7[_0x371111(0x79)](require,_0x45c2a7[_0x371111(0x120)]),_0x2003f0[_0x371111(0xc9)],_0x53d706,_0x3f3baa);})['demandCommand'](0x1,a60_0x27f3a8(0xea))[a60_0x27f3a8(0x9c)](null)['argv'];!helper[a60_0x27f3a8(0x72)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x27f3a8(0x70)&&console['error']('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a61_0x5078f5=a61_0x4f23;(function(_0x3181c3,_0x3757a2){const _0x2bb0be=a61_0x4f23,_0x1dc0ff=_0x3181c3();while(!![]){try{const _0x24d37f=parseInt(_0x2bb0be(0xc0))/0x1*(-parseInt(_0x2bb0be(0xc6))/0x2)+parseInt(_0x2bb0be(0xad))/0x3+parseInt(_0x2bb0be(0xe0))/0x4+parseInt(_0x2bb0be(0xd5))/0x5*(-parseInt(_0x2bb0be(0xe9))/0x6)+parseInt(_0x2bb0be(0xb9))/0x7+parseInt(_0x2bb0be(0xd7))/0x8*(-parseInt(_0x2bb0be(0xeb))/0x9)+parseInt(_0x2bb0be(0xe4))/0xa*(parseInt(_0x2bb0be(0xdc))/0xb);if(_0x24d37f===_0x3757a2)break;else _0x1dc0ff['push'](_0x1dc0ff['shift']());}catch(_0x1e9f3e){_0x1dc0ff['push'](_0x1dc0ff['shift']());}}}(a61_0x8282,0xb44c0));function a61_0x4f23(_0xeb715e,_0x5b99ca){const _0x828288=a61_0x8282();return a61_0x4f23=function(_0x4f2345,_0x352569){_0x4f2345=_0x4f2345-0xac;let _0x4784ef=_0x828288[_0x4f2345];return _0x4784ef;},a61_0x4f23(_0xeb715e,_0x5b99ca);}const fs=require('fs'),helper=require('../helpers/helper'),utilities=require('../helpers/utilities'),yaml=require('js-yaml'),yargs=require(a61_0x5078f5(0xcd)),logger=require(a61_0x5078f5(0xbd))[a61_0x5078f5(0xe8)],configFileTemplate=__dirname+a61_0x5078f5(0xca),configFileTemplatePW=__dirname+a61_0x5078f5(0xed),configFile=process['cwd']()+a61_0x5078f5(0xf0),packageFile=process[a61_0x5078f5(0xae)]()+a61_0x5078f5(0xee),frameworks=[a61_0x5078f5(0xb2),a61_0x5078f5(0xe6),a61_0x5078f5(0xd1),a61_0x5078f5(0xc9),a61_0x5078f5(0xb7),'codeceptjs',a61_0x5078f5(0xd2)];let config;logger[a61_0x5078f5(0xac)](a61_0x5078f5(0xcf)),createConfigurationFile(yargs[a61_0x5078f5(0xef)]['username'],yargs[a61_0x5078f5(0xef)][a61_0x5078f5(0xbc)],yargs[a61_0x5078f5(0xef)][a61_0x5078f5(0xd2)]);try{sdkSetup();}catch(a61_0x28359b){logger[a61_0x5078f5(0xec)](a61_0x5078f5(0xbe)+a61_0x28359b);}addScriptInPackageJson();function createConfigurationFile(_0x3e8119,_0x47299e,_0x3706fb=![]){const _0x2eceb6=a61_0x5078f5,_0x9a2331={};_0x9a2331[_0x2eceb6(0xc7)]=_0x2eceb6(0xba),_0x9a2331[_0x2eceb6(0xe3)]=_0x2eceb6(0xbb),_0x9a2331[_0x2eceb6(0xd4)]=_0x2eceb6(0xc1);const _0x36e183=_0x9a2331;try{let _0x24e155=fs['readFileSync'](_0x3706fb?configFileTemplatePW:configFileTemplate,_0x36e183['UTxOp']);_0x3e8119&&(_0x24e155=_0x24e155[_0x2eceb6(0xb5)](_0x36e183[_0x2eceb6(0xe3)],_0x3e8119)),_0x47299e&&(_0x24e155=_0x24e155[_0x2eceb6(0xb5)](_0x36e183[_0x2eceb6(0xd4)],_0x47299e)),config=yaml[_0x2eceb6(0xb8)](_0x24e155),fs['writeFileSync'](configFile,_0x24e155,_0x500f59=>{const _0x3410bb=_0x2eceb6;_0x500f59&&logger[_0x3410bb(0xcc)](_0x500f59);});}catch(_0x25a7d7){logger[_0x2eceb6(0xcc)](_0x25a7d7);}}function addPostInstallScript(_0x8a869d,_0x17cf65){const _0xa522ab=a61_0x5078f5,_0xa6fb65={};_0xa6fb65[_0xa522ab(0xc8)]='postinstall',_0xa6fb65['UQQsR']=_0xa522ab(0xaf),_0xa6fb65[_0xa522ab(0xe7)]=_0xa522ab(0xdd);const _0x549549=_0xa6fb65;let _0xe86f22=_0x8a869d[_0x549549['bhJlK']];if(_0xe86f22&&_0xe86f22[_0xa522ab(0xe1)](_0x549549[_0xa522ab(0xd0)]))return;!_0xe86f22?_0xe86f22=_0x549549['UQQsR']:_0xe86f22+=_0x549549['aSiuj'],_0x17cf65['push']([_0x549549[_0xa522ab(0xc8)],_0xe86f22]);}function addScriptInPackageJson(){const _0x47363f=a61_0x5078f5,_0xdde3b5={'nAphN':'utf8','WkGOk':function(_0x541c9f,_0x16df2c){return _0x541c9f<_0x16df2c;},'aVvXw':function(_0x4eb744,_0x57899f,_0x546029){return _0x4eb744(_0x57899f,_0x546029);},'WaqLj':function(_0x2610d5,_0x53f026){return _0x2610d5<_0x53f026;},'aSBDF':function(_0xca4323,_0x10b55d){return _0xca4323!==_0x10b55d;},'ItWqq':_0x47363f(0xb1)},_0x1ef990=JSON[_0x47363f(0xf3)](fs[_0x47363f(0xd8)](packageFile,_0xdde3b5[_0x47363f(0xda)])),_0xa3d0fc=[];for(let _0x903d76=0x0;_0xdde3b5[_0x47363f(0xc5)](_0x903d76,frameworks['length']);_0x903d76+=0x1){const _0x48560d=_0xdde3b5[_0x47363f(0xb3)](findScriptsWithFramework,_0x1ef990['scripts'],frameworks[_0x903d76]);for(let _0x130277=0x0;_0xdde3b5[_0x47363f(0xc5)](_0x130277,_0x48560d[_0x47363f(0xea)]);_0x130277+=0x1){_0xa3d0fc['push'](_0xdde3b5[_0x47363f(0xb3)](getUpdatedCommand,_0x1ef990[_0x47363f(0xdb)],_0x48560d[_0x130277]));}_0xdde3b5[_0x47363f(0xb3)](addPostInstallScript,_0x1ef990[_0x47363f(0xdb)],_0xa3d0fc);}const _0x19ab8a={..._0x1ef990['scripts']},_0x2b11fb=_0x19ab8a;for(let _0x3200c0=0x0;_0xdde3b5['WaqLj'](_0x3200c0,_0xa3d0fc[_0x47363f(0xea)]);_0x3200c0+=0x1){_0x2b11fb[_0xa3d0fc[_0x3200c0][0x0]]=_0xa3d0fc[_0x3200c0][0x1];}_0xdde3b5['aSBDF'](JSON['stringify'](_0x1ef990[_0x47363f(0xdb)]),JSON[_0x47363f(0xb0)](_0x2b11fb))&&(logger[_0x47363f(0xac)](_0xdde3b5['ItWqq']),_0x1ef990['scripts']=_0x2b11fb,fs[_0x47363f(0xf2)](packageFile,JSON['stringify'](_0x1ef990,null,0x2),_0x2ae4f6=>{const _0x213282=_0x47363f;_0x2ae4f6&&logger[_0x213282(0xcc)](_0x2ae4f6);}));};function findScriptsWithFramework(_0x3e813f,_0x4cf0e9){const _0x40f16e=a61_0x5078f5,_0x4fc03d={};_0x4fc03d[_0x40f16e(0xe2)]=function(_0x11041d,_0x254b87){return _0x11041d<_0x254b87;},_0x4fc03d['WcbBC']='browserstack-node-sdk';const _0x4cbd35=_0x4fc03d,_0x110bfb=[],_0x32f912=Object[_0x40f16e(0xc4)](_0x3e813f);for(let _0x18e000=0x0;_0x4cbd35[_0x40f16e(0xe2)](_0x18e000,_0x32f912['length']);_0x18e000+=0x1){_0x32f912[_0x18e000][0x1][_0x40f16e(0xe1)](_0x4cf0e9)&&!_0x32f912[_0x18e000][0x1]['includes'](_0x4cbd35[_0x40f16e(0xe5)])&&_0x110bfb['push'](_0x32f912[_0x18e000][0x0]);}return _0x110bfb;}function getUpdatedCommand(_0x59e57b,_0x58a5ad){const _0x22f742=a61_0x5078f5,_0x127e5e={};_0x127e5e[_0x22f742(0xd6)]=function(_0x284eba,_0x486bf9){return _0x284eba!==_0x486bf9;},_0x127e5e['Urvxd']=_0x22f742(0xc3),_0x127e5e[_0x22f742(0xce)]=function(_0x142f36,_0x4d79ed){return _0x142f36===_0x4d79ed;};const _0x6dfccb=_0x127e5e,_0x5d790f=_0x58a5ad+_0x22f742(0xbf),_0xcb1af2=_0x59e57b[_0x58a5ad],_0x1e32a0=_0xcb1af2['split']('\x20');for(const _0x4628ff of frameworks){if(_0x6dfccb['xkyty'](_0x1e32a0[_0x22f742(0xc2)](_0x4628ff),-0x1)){_0x1e32a0[_0x22f742(0xde)](_0x1e32a0[_0x22f742(0xc2)](_0x4628ff),0x0,_0x6dfccb[_0x22f742(0xb4)]);break;}}let _0x1466a9=_0x1e32a0[_0x22f742(0xd3)]('\x20');return _0x6dfccb[_0x22f742(0xce)](_0x1466a9,_0xcb1af2)&&(_0x1466a9='browserstack-node-sdk\x20'+_0xcb1af2),[_0x5d790f,_0x1466a9];}function sdkSetup(){const _0x3be788=a61_0x5078f5,_0x2a991e={};_0x2a991e[_0x3be788(0xf1)]=_0x3be788(0xdf),_0x2a991e[_0x3be788(0xd9)]='SDKSetup';const _0xdd9e68=_0x2a991e;if(helper[_0x3be788(0xcb)](config))return;config[_0x3be788(0xb6)]=_0xdd9e68[_0x3be788(0xf1)];try{utilities['fireFunnelTestEvent'](_0xdd9e68[_0x3be788(0xd9)],{},config,'');}catch(_0x2f1c8c){logger['debug'](_0x3be788(0xbe)+_0x2f1c8c);}}logger[a61_0x5078f5(0xac)]('Setup\x20completed');function a61_0x8282(){const _0x10373e=['aSiuj','winstonLogger','1524ixkXhR','length','403191jZjgmT','debug','/../../browserstack.pw.yml.sample','/package.json','argv','/browserstack.yml','vOqrT','writeFileSync','parse','info','1349391SYTkff','cwd','npm\x20update\x20browserstack-node-sdk','stringify','Adding\x20new\x20script(s)\x20in\x20package.json...','mocha','aVvXw','Urvxd','replace','source','nightwatch','load','656999tfOdDN','utf8','YOUR_USERNAME','key','../helpers/logger','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','-browserstack','13EBtMUU','YOUR_ACCESS_KEY','indexOf','browserstack-node-sdk','entries','WkGOk','195742yNFXbl','UTxOp','bhJlK','node','/../../browserstack.yml.sample','isUndefined','error','yargs','ZtKOi','Creating\x20configuration\x20file...','UQQsR','cucumber-js','playwright','join','aEtvM','12380dORwsp','xkyty','16BaJJiQ','readFileSync','BbMwe','nAphN','scripts','407638cyInjw','\x20&&\x20npm\x20update\x20browserstack-node-sdk','splice','node-setup','1479300wYSgFB','includes','dqjeW','xmaTm','490MNerAp','WcbBC','jest'];a61_0x8282=function(){return _0x10373e;};return a61_0x8282();}
|