browserstack-node-sdk 1.64.0 → 1.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a41_0x21c80f=a41_0x1d60;function a41_0x1d60(_0x11be53,_0xfd55d1){const _0x4dc1d3=a41_0x4dc1();return a41_0x1d60=function(_0x1d6047,_0x4d2e14){_0x1d6047=_0x1d6047-0x122;let _0x5a7860=_0x4dc1d3[_0x1d6047];return _0x5a7860;},a41_0x1d60(_0x11be53,_0xfd55d1);}(function(_0x21cfa9,_0x2b6734){const _0x1c15b6=a41_0x1d60,_0x5a79d9=_0x21cfa9();while(!![]){try{const _0x398e36=-parseInt(_0x1c15b6(0x1b6))/0x1+-parseInt(_0x1c15b6(0x144))/0x2*(parseInt(_0x1c15b6(0x176))/0x3)+-parseInt(_0x1c15b6(0x164))/0x4*(parseInt(_0x1c15b6(0x1d2))/0x5)+-parseInt(_0x1c15b6(0x18d))/0x6*(parseInt(_0x1c15b6(0x1dd))/0x7)+parseInt(_0x1c15b6(0x168))/0x8+-parseInt(_0x1c15b6(0x126))/0x9*(parseInt(_0x1c15b6(0x122))/0xa)+parseInt(_0x1c15b6(0x162))/0xb;if(_0x398e36===_0x2b6734)break;else _0x5a79d9['push'](_0x5a79d9['shift']());}catch(_0x3f4394){_0x5a79d9['push'](_0x5a79d9['shift']());}}}(a41_0x4dc1,0x7b480));function a41_0x4dc1(){const _0x52f2ae=['TwVFN','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','sessionName','fKmDC','ENV_VAR','PeUiU','../../helpers/helper','__sessionFailed','Nbxem','RIApL','YJwyv','afterEach','qBegI','kCbVQ','PONQZ','ZjgMY','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','mocha','end','phrxx','xHsFY','QsesF','autoScanning','LTmLp','debug','SnfEl','getGlobal','pTQZA','length','22781649zHWyys','../utils/constants','4944PjxMOu','../../helpers/percy/utils','currentTest','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','6525232beJZLN','parse','kWgre','RNPjg','nbRhh','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','jGMiu','EvgpY','../../helpers/globals','IACkU','XHgoU','SYNC','https:','[Accessibility]\x20Auto\x20scan\x20is\x20disabled;\x20skipping\x20final\x20scan\x20and\x20saving\x20current\x20accumulated\x20results','883191MPseeC','push','fACnh','SAVE_RESULTS','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','ZFGqd','UAosj','Failed\x20to\x20store\x20session\x20name:\x20','TkSQn','thBuildUuid','xIMMl','SDK_HOOK','installAll','dZLfo','../../helpers/testhub/utils','VdnaK','shouldScanTestForAccessibility','now','Failed:\x20','vAvdH','setGlobal','shift','appium:app','4197816PeLAAR','BROWSERSTACK_TESTHUB_JWT','fFahw','ObservabilitySync:','measureWrapper','DppCr','DblCm','xzRmn','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','titlePath','sessionNameSet__','PERFORM_SCAN','nIwss','__error_messages__','env','thTestRunUuid','afterTest','http:','doxZB','rszoa','zVNAq','Pyfth','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','startMonitoring','Automate\x20test\x20case\x20execution\x20has\x20started.','info','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','snGag','PCqkp','stringify','\x20-\x20','browserstackSessionName','then','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','zkhQM','tQqlr','ntWtK','Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','app','timeout','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','721124UVhgSs','performScanWithRetry','../../helpers/performance/constants','QgoDd','TPncz','Error\x20parsing\x20autoScanning\x20config,\x20using\x20default\x20(true):\x20','gPRUM','browserstackTestName','xJkPu','\x22}}','warn','quitCount_','index','join','beforeAll','getCurrentUrl','isAccessibilityPlatform','eppwJ','message','GHXsL','state','yKgpw','GWRcf','OWsEZ','yZQtd','session_','executeScript','Accessibility\x20results\x20saved\x20successfully','80ycTCgd','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','__platformCaps','afterAll','Passed','SESSION_STATUS','driver-init\x20capture\x20install\x20failed:\x20','ObQLN','./test-observability/mochaUtils','7rFsVzD','error','HAOTy','10180iqotYA','testAnalyticsId','capabilities','err','513HJJQbK','mvmKP','IlTTw','FdEOI','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','format','driverCleanup','finally','thJwtToken','lblec','__drivers','accessibilityScanStarted','testcase','\x20|\x20','QRHnt','SESSION_NAME','../../helpers/logger','tHKAI','Mocha','mTmJn','pwxaU','UxIjx','kGtOp','__skipSessionName','cyrkw','bstackA11yShouldScan','OxBxN','ojKfk','Accessibility\x20scan\x20completed\x20successfully','isArray','6URbGDt'];a41_0x4dc1=function(){return _0x52f2ae;};return a41_0x4dc1();}const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),accessibilityRetryHelper=require('../../helpers/accessibility-automation/accessibilityRetryHelper'),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a41_0x21c80f(0x163)),{percyAutoCapture}=require(a41_0x21c80f(0x165)),{sendPlatformDetails}=require(a41_0x21c80f(0x1dc)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a41_0x21c80f(0x14b)),PerformanceTester=require('../../helpers/performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a41_0x21c80f(0x1b8)),globals=require(a41_0x21c80f(0x170)),logger=require(a41_0x21c80f(0x136))['winstonLogger'],{shouldProcessEventForTesthub}=require(a41_0x21c80f(0x184)),testHubConstants=require('../../helpers/testhub/constants');try{require('../../helpers/driverInitErrorReporter')[a41_0x21c80f(0x182)](a41_0x21c80f(0x156));}catch(a41_0x478173){logger['debug'](a41_0x21c80f(0x1da)+(a41_0x478173&&a41_0x478173[a41_0x21c80f(0x1c8)]));}exports['mochaHooks']={'beforeAll'(){const _0x327144=a41_0x21c80f,_0x236946={'hlHrw':function(_0x5288f4,_0x30d5d0,_0x115f04,_0x161d3f){return _0x5288f4(_0x30d5d0,_0x115f04,_0x161d3f);},'nIwss':'failed','QRHnt':_0x327144(0x133),'ntWtK':function(_0x9968a0,_0x1185d6,_0x9518c8){return _0x9968a0(_0x1185d6,_0x9518c8);},'PCqkp':'passed','HAOTy':function(_0x2cf068){return _0x2cf068();},'PONQZ':function(_0x4b5e42,_0xd60458,_0x5670b5){return _0x4b5e42(_0xd60458,_0x5670b5);},'xzRmn':_0x327144(0x1c2),'uNiqH':_0x327144(0x1c4)};PerformanceTester[_0x327144(0x1a4)]();const _0x473c69='browserstack internal helper hook';PerformanceTester[_0x327144(0x191)](PerformanceSdkEvents[_0x327144(0x181)],()=>{const _0x20c32c=_0x327144;global[_0x20c32c(0x19a)]=[],global[_0x20c32c(0x14c)]=![],global[_0x20c32c(0x12c)]=async()=>{const _0x49b4c1=_0x20c32c;let _0x31859f=![];try{await global[_0x49b4c1(0x130)][0x0][_0x49b4c1(0x1cf)],_0x31859f=!![],global['__sessionFailed']?await _0x236946['hlHrw'](markSessionStatus,global[_0x49b4c1(0x130)][0x0],_0x236946[_0x49b4c1(0x199)],global[_0x49b4c1(0x19a)][_0x49b4c1(0x1c3)](_0x236946[_0x49b4c1(0x134)])):await _0x236946['ntWtK'](markSessionStatus,global[_0x49b4c1(0x130)][0x0],_0x236946[_0x49b4c1(0x1a9)]);}catch(_0x26c174){logger[_0x49b4c1(0x15d)](_0x49b4c1(0x12a)+_0x26c174);}global[_0x49b4c1(0x19a)]=[],global['__sessionFailed']=![];if(_0x31859f)try{try{_0x236946[_0x49b4c1(0x1df)](shouldProcessEventForTesthub)&&(global[_0x49b4c1(0x130)][0x0]&&await _0x236946[_0x49b4c1(0x1b1)](sendPlatformDetails,global['__drivers'][0x0],this[_0x49b4c1(0x166)]?this[_0x49b4c1(0x166)]['testAnalyticsId']:null));}catch(_0x43016e){logger[_0x49b4c1(0x15d)](_0x49b4c1(0x1ae)+_0x43016e);}await global[_0x49b4c1(0x130)][0x0]['initQuit']();}catch(_0x16c669){logger[_0x49b4c1(0x15d)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x16c669);}};},{'platform':_0x236946[_0x327144(0x153)](nestedKeyValue,global[_0x327144(0x1d6)],[_0x236946[_0x327144(0x194)]]),'hookType':_0x236946['uNiqH']})();},'beforeEach'(_0x44021d){const _0x35a234=a41_0x21c80f,_0x42dd6c={'eppwJ':function(_0x4bf847){return _0x4bf847();},'fKmDC':function(_0xab105d,_0x40d0b6){return _0xab105d>_0x40d0b6;},'PeUiU':function(_0x21460e,_0x41621d){return _0x21460e>_0x41621d;},'QgoDd':'\x20-\x20','ORYbZ':function(_0xf61a1b,_0x5b26ab,_0x59f382){return _0xf61a1b(_0x5b26ab,_0x59f382);},'TwVFN':function(_0x5d4793,_0xb06785){return _0x5d4793===_0xb06785;},'FeiuK':'bstackA11yShouldScan','XHgoU':'bstackA11yScanOptions','IlTTw':function(_0x599bec){return _0x599bec();},'OYWAe':_0x35a234(0x1c6),'xHsFY':_0x35a234(0x19e),'uPtkd':_0x35a234(0x174),'yKgpw':_0x35a234(0x195),'kCbVQ':_0x35a234(0x1a5),'kGtOp':function(_0x56685e){return _0x56685e();},'yZQtd':_0x35a234(0x1bd),'cyrkw':_0x35a234(0x1c2),'xJkPu':'beforeEach'};globals[_0x35a234(0x18a)](_0x42dd6c[_0x35a234(0x1ce)],this[_0x35a234(0x166)][_0x35a234(0x196)]()[_0x35a234(0x1c3)](_0x42dd6c[_0x35a234(0x1b9)])),PerformanceTester[_0x35a234(0x191)](PerformanceSdkEvents[_0x35a234(0x181)],()=>{const _0x59a065=_0x35a234,_0x48ad27={'fFahw':function(_0x4bf87a,_0x165e4a){const _0xfcf02b=a41_0x1d60;return _0x42dd6c[_0xfcf02b(0x148)](_0x4bf87a,_0x165e4a);},'GWRcf':function(_0x8f7aa0,_0x28c15b){const _0x14d8ac=a41_0x1d60;return _0x42dd6c[_0x14d8ac(0x14a)](_0x8f7aa0,_0x28c15b);},'nbRhh':_0x42dd6c[_0x59a065(0x1b9)],'rzQbC':function(_0x4d1951,_0x57cf36,_0x2d3a4e){return _0x42dd6c['ORYbZ'](_0x4d1951,_0x57cf36,_0x2d3a4e);},'qBegI':function(_0x44c5fa,_0x4d14a5){const _0x390557=_0x59a065;return _0x42dd6c[_0x390557(0x145)](_0x44c5fa,_0x4d14a5);},'tHKAI':_0x42dd6c['FeiuK'],'mvmKP':_0x42dd6c[_0x59a065(0x172)],'ojKfk':function(_0x375fc2){const _0x4fb34d=_0x59a065;return _0x42dd6c[_0x4fb34d(0x128)](_0x375fc2);},'jYpyl':_0x42dd6c['OYWAe'],'YJwyv':_0x42dd6c[_0x59a065(0x159)],'aCQYZ':_0x42dd6c['uPtkd'],'DblCm':_0x42dd6c[_0x59a065(0x1cb)],'DppCr':_0x42dd6c[_0x59a065(0x152)],'FdEOI':function(_0x49e697){const _0x3dfe2e=_0x59a065;return _0x42dd6c[_0x3dfe2e(0x13c)](_0x49e697);}},_0x29b7ca='browserstack internal helper hook';new Promise(async _0x24678e=>{const _0x2abc36=_0x59a065;let _0x21c02e=!![];try{_0x48ad27[_0x2abc36(0x18f)](global[_0x2abc36(0x130)][_0x2abc36(0x161)],0x1)&&(await global[_0x2abc36(0x12c)](),global[_0x2abc36(0x130)][_0x2abc36(0x18b)]()),_0x48ad27[_0x2abc36(0x1cc)](global[_0x2abc36(0x130)][0x0][_0x2abc36(0x1c1)],0x0)&&(_0x21c02e=![],await global['driverCleanup']());}catch(_0x31c267){logger[_0x2abc36(0x15d)](_0x2abc36(0x1b5)+_0x31c267);}try{Array[_0x2abc36(0x143)](global[_0x2abc36(0x130)])&&global['__drivers'][0x0]&&(global[_0x2abc36(0x130)][0x0]['browserstackSessionName']=this['currentTest'][_0x2abc36(0x196)]()[_0x2abc36(0x1c3)](_0x48ad27[_0x2abc36(0x16c)])),global[_0x2abc36(0x1ac)]=this[_0x2abc36(0x166)][_0x2abc36(0x196)]()[_0x2abc36(0x1c3)](_0x48ad27[_0x2abc36(0x16c)]);}catch(_0x554c7a){logger[_0x2abc36(0x15d)](_0x2abc36(0x17d)+_0x554c7a);}this[_0x2abc36(0x166)][_0x2abc36(0x186)]=_0x48ad27['rzQbC'](shouldScanTestForAccessibility,this['currentTest']['titlePath'](),!![]);let _0x5539f1=!![];try{const _0x41a4b7=JSON[_0x2abc36(0x169)](process['env'][_0x2abc36(0x1a3)]||'{}');_0x48ad27['qBegI'](_0x41a4b7[_0x2abc36(0x15b)],![])&&(_0x5539f1=![]);}catch(_0x39c03d){logger[_0x2abc36(0x15d)](_0x2abc36(0x1bb)+_0x39c03d['message']);}const _0x3762c7=_0x5539f1&&this['currentTest'][_0x2abc36(0x186)];globals['setGlobal'](_0x48ad27[_0x2abc36(0x137)],_0x3762c7),globals['setGlobal'](_0x48ad27[_0x2abc36(0x127)],null),this[_0x2abc36(0x166)][_0x2abc36(0x131)]=this[_0x2abc36(0x166)][_0x2abc36(0x186)];if(_0x48ad27[_0x2abc36(0x141)](isAccessibilityAutomationSession)&&_0x21c02e&&Array[_0x2abc36(0x143)](global[_0x2abc36(0x130)])&&_0x48ad27[_0x2abc36(0x1cc)](global[_0x2abc36(0x130)][_0x2abc36(0x161)],0x0)&&globals[_0x2abc36(0x15f)](_0x48ad27['jYpyl']))try{const _0x45d3d8=await global[_0x2abc36(0x130)][0x0]['session_'];if(_0x45d3d8){let _0xcaee9b=!![];const _0x8e459e=await global['__drivers'][0x0][_0x2abc36(0x1c5)]();let _0x29f0ac;try{_0x29f0ac=new URL(_0x8e459e),_0xcaee9b=_0x48ad27[_0x2abc36(0x151)](_0x29f0ac['protocol'],_0x48ad27[_0x2abc36(0x14f)])||_0x48ad27[_0x2abc36(0x151)](_0x29f0ac['protocol'],_0x48ad27['aCQYZ']);}catch(_0x5b3fa1){_0xcaee9b=![];}_0xcaee9b&&(this[_0x2abc36(0x166)][_0x2abc36(0x186)]&&logger[_0x2abc36(0x1a6)](_0x48ad27[_0x2abc36(0x193)])),this[_0x2abc36(0x166)]['accessibilityScanStarted']=this['currentTest'][_0x2abc36(0x186)],_0x3762c7&&logger[_0x2abc36(0x1a6)](_0x48ad27[_0x2abc36(0x192)]);}}catch(_0x5388f0){logger['error'](_0x2abc36(0x1d4)+util[_0x2abc36(0x12b)](_0x5388f0));}_0x48ad27[_0x2abc36(0x129)](_0x24678e);})[_0x59a065(0x1ad)](()=>{const _0x786688=_0x59a065;_0x42dd6c[_0x786688(0x1c7)](_0x44021d);});},{'platform':_0x42dd6c['ORYbZ'](nestedKeyValue,global[_0x35a234(0x1d6)],[_0x42dd6c[_0x35a234(0x13e)]]),'hookType':_0x42dd6c[_0x35a234(0x1be)]})();},'afterEach'(_0x4091fb){const _0x75311=a41_0x21c80f,_0xf82c6={'mtizL':function(_0x2c4365,_0x431903){return _0x2c4365>_0x431903;},'OxBxN':function(_0xcd25e3,_0x372078){return _0xcd25e3===_0x372078;},'ObQLN':_0x75311(0x132),'SnfEl':_0x75311(0x18c),'UxIjx':function(_0x2d6546,_0xcc601e,_0x2aa595,_0x4726e8){return _0x2d6546(_0xcc601e,_0x2aa595,_0x4726e8);},'vAvdH':_0x75311(0x1c6),'TkSQn':_0x75311(0x1a7),'tQqlr':_0x75311(0x13f),'zkhQM':_0x75311(0x1d5),'ZjgMY':_0x75311(0x19d),'UAosj':_0x75311(0x142),'rszoa':_0x75311(0x1b2),'GHXsL':_0x75311(0x175),'RIApL':_0x75311(0x1d1),'UtXzP':_0x75311(0x155),'hgxsr':_0x75311(0x146),'ZFGqd':function(_0x496abc){return _0x496abc();},'csgYG':function(_0x536528,_0x38f208,_0x14285a){return _0x536528(_0x38f208,_0x14285a);},'pwxaU':function(_0xe4c9cb,_0x260cc5,_0x3331ad){return _0xe4c9cb(_0x260cc5,_0x3331ad);},'hvjeE':_0x75311(0x15d),'EvgpY':function(_0x5bc693,_0x21f91d){return _0x5bc693>_0x21f91d;},'mroGu':function(_0x148d35){return _0x148d35();},'gPRUM':_0x75311(0x1ab),'doxZB':function(_0x312972,_0x17ae46){return _0x312972!==_0x17ae46;},'jGMiu':'passed','XzOie':function(_0x41434f,_0x4552f7,_0x2bae4b){return _0x41434f(_0x4552f7,_0x2bae4b);},'QsesF':function(_0x1b35cc,_0x54ee46){return _0x1b35cc+_0x54ee46;},'mTmJn':_0x75311(0x188),'eOPtz':'error','pTQZA':_0x75311(0x1d8),'xIMMl':_0x75311(0x1a6),'TPncz':'Mocha','snGag':function(_0x20a70b,_0x2ecd91,_0x2a9c01){return _0x20a70b(_0x2ecd91,_0x2a9c01);},'kWgre':_0x75311(0x1c2),'RNPjg':_0x75311(0x150)},_0x48e1fd='browserstack internal helper hook';this[_0x75311(0x1b4)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0xf82c6[_0x75311(0x1ba)]]),global[_0x75311(0x147)]=this['currentTest'][_0x75311(0x196)]()[_0x75311(0x1c3)](_0xf82c6[_0x75311(0x1bc)]),PerformanceTester[_0x75311(0x191)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x12636a=_0x75311,_0x44837b={'VdnaK':_0xf82c6['gPRUM'],'LTmLp':function(_0x1b862c,_0x45378d){const _0x35a1d1=a41_0x1d60;return _0xf82c6[_0x35a1d1(0x19f)](_0x1b862c,_0x45378d);},'afzdB':_0xf82c6[_0x12636a(0x16e)],'fACnh':function(_0x214a0f,_0x40a2ab,_0x403738){return _0xf82c6['XzOie'](_0x214a0f,_0x40a2ab,_0x403738);},'Rviec':function(_0x17e428,_0x57025d){const _0x231b8f=_0x12636a;return _0xf82c6[_0x231b8f(0x15a)](_0x17e428,_0x57025d);},'IACkU':_0xf82c6[_0x12636a(0x139)],'dZLfo':_0xf82c6['eOPtz'],'chMGd':function(_0x305c06,_0x24a91e,_0x5e8289){const _0x458020=_0x12636a;return _0xf82c6[_0x458020(0x13a)](_0x305c06,_0x24a91e,_0x5e8289);},'oDlXH':_0xf82c6[_0x12636a(0x160)],'OWsEZ':_0xf82c6[_0x12636a(0x180)]},_0x584626=async(_0x1f7720,_0x2f119a)=>{const _0x1a0994=_0x12636a;await global['__drivers'][0x0][_0x1a0994(0x1d0)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x1f7720+',\x22level\x22:\x20\x22'+_0x2f119a+_0x1a0994(0x1bf));};new Promise(async _0x15cdc1=>{const _0x5b73e8=_0x12636a;try{_0xf82c6['mtizL'](global['__drivers'][_0x5b73e8(0x161)],0x1)&&(await global[_0x5b73e8(0x12c)](),global[_0x5b73e8(0x130)][_0x5b73e8(0x18b)](),global[_0x5b73e8(0x19a)]=[],global[_0x5b73e8(0x14c)]=![]);try{if(global['percy']&&_0xf82c6[_0x5b73e8(0x140)](global['percyCaptureMode'],_0xf82c6[_0x5b73e8(0x1db)])&&global[_0x5b73e8(0x130)][0x0]){const _0x1e0ecc=_0xf82c6['mtizL'](global[_0x5b73e8(0x124)][_0x5b73e8(0x161)],0x0)?!!global['capabilities'][0x0][_0x5b73e8(0x1b3)]||!!global['capabilities'][0x0][_0xf82c6[_0x5b73e8(0x15e)]]:![],_0x4de653={};_0x4de653[_0x5b73e8(0x1b3)]=_0x1e0ecc,await _0xf82c6[_0x5b73e8(0x13b)](percyAutoCapture,global[_0x5b73e8(0x130)][0x0],_0xf82c6[_0x5b73e8(0x1db)],_0x4de653);}}catch(_0x589414){logger[_0x5b73e8(0x15d)]('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0x589414);}!global[_0x5b73e8(0x13d)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x5b73e8(0x135)],async()=>{const _0x48e9df=_0x5b73e8;await global['__drivers'][0x0][_0x48e9df(0x1d0)](_0x48e9df(0x16d)+JSON[_0x48e9df(0x1aa)](this[_0x48e9df(0x166)][_0x48e9df(0x196)]()[_0x48e9df(0x1c3)](_0x44837b[_0x48e9df(0x185)]))+'}}');})(),global[_0x5b73e8(0x130)][0x0][_0x5b73e8(0x197)]=!![]),await PerformanceTester[_0x5b73e8(0x191)](PerformanceAutEvents[_0x5b73e8(0x1d9)],async()=>{const _0x1546f3=_0x5b73e8,_0x536852=_0x44837b[_0x1546f3(0x15c)](this['currentTest'][_0x1546f3(0x1ca)],_0x44837b['afzdB']);_0x536852?(global[_0x1546f3(0x14c)]=!![],global['__error_messages__'][_0x1546f3(0x177)](this[_0x1546f3(0x166)][_0x1546f3(0x125)][_0x1546f3(0x1c8)]),await _0x44837b[_0x1546f3(0x178)](_0x584626,JSON['stringify'](_0x44837b['Rviec'](_0x44837b[_0x1546f3(0x171)],this['currentTest']['err'][_0x1546f3(0x1c8)])),_0x44837b[_0x1546f3(0x183)])):await _0x44837b['chMGd'](_0x584626,JSON['stringify'](_0x44837b['oDlXH']),_0x44837b[_0x1546f3(0x1cd)]);})();}catch(_0x395f62){logger[_0x5b73e8(0x15d)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x395f62);}try{if(this[_0x5b73e8(0x166)][_0x5b73e8(0x131)]&&globals['getGlobal'](_0xf82c6[_0x5b73e8(0x189)])){logger[_0x5b73e8(0x1a6)](_0xf82c6[_0x5b73e8(0x17e)]);const _0x437f90={};_0x437f90[_0x5b73e8(0x19c)]=this[_0x5b73e8(0x166)][_0x5b73e8(0x123)],_0x437f90[_0x5b73e8(0x17f)]=process['env'][testHubConstants[_0x5b73e8(0x149)]['BROWSERSTACK_TESTHUB_UUID']],_0x437f90[_0x5b73e8(0x12e)]=process[_0x5b73e8(0x19b)][testHubConstants['ENV_VAR'][_0x5b73e8(0x18e)]];const _0x399980=_0x437f90;logger[_0x5b73e8(0x15d)](_0x5b73e8(0x1d3)+JSON[_0x5b73e8(0x1aa)](_0x399980));if(globals[_0x5b73e8(0x15f)](_0xf82c6[_0x5b73e8(0x1b0)])){logger[_0x5b73e8(0x15d)](_0xf82c6[_0x5b73e8(0x1af)]);const _0x3243e9={};_0x3243e9['command']=_0xf82c6[_0x5b73e8(0x154)];const _0x31135f=await PerformanceTester[_0x5b73e8(0x191)](PerformanceA11yEvents[_0x5b73e8(0x198)],async()=>{const _0xaf9f08=_0x5b73e8;return await accessibilityRetryHelper[_0xaf9f08(0x1b7)](global[_0xaf9f08(0x130)][0x0],global['browserstackSessionName']);},_0x3243e9)();_0x31135f?logger['debug'](_0xf82c6[_0x5b73e8(0x17c)]):logger[_0x5b73e8(0x1c0)](_0xf82c6[_0x5b73e8(0x1a0)]);}else logger[_0x5b73e8(0x15d)](_0xf82c6[_0x5b73e8(0x1c9)]);const _0x483204=await PerformanceTester[_0x5b73e8(0x191)](PerformanceA11yEvents[_0x5b73e8(0x179)],async()=>{const _0x29d402=_0x5b73e8;return await accessibilityRetryHelper['saveAccessibilityResultsWithRetry'](global[_0x29d402(0x130)][0x0],_0x399980);})();_0x483204?logger[_0x5b73e8(0x15d)](_0xf82c6[_0x5b73e8(0x14e)]):logger[_0x5b73e8(0x1c0)](_0xf82c6['UtXzP']),logger[_0x5b73e8(0x1a6)](_0xf82c6['hgxsr']);}}catch(_0x382c8d){logger[_0x5b73e8(0x1de)](_0x5b73e8(0x167)+this[_0x5b73e8(0x166)][_0x5b73e8(0x196)]()+'.\x20Error\x20:',_0x382c8d);}try{try{if(_0xf82c6[_0x5b73e8(0x17b)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0xf82c6['csgYG'](sendPlatformDetails,global[_0x5b73e8(0x130)][0x0],this[_0x5b73e8(0x166)]?this[_0x5b73e8(0x166)][_0x5b73e8(0x123)]:null);if(_0xf82c6[_0x5b73e8(0x17b)](isBrowserstackInfra)){PerformanceTester['start'](PerformanceO11yEvents[_0x5b73e8(0x173)]);const _0x240356=_0x5b73e8(0x190)+Date[_0x5b73e8(0x187)]();await _0xf82c6[_0x5b73e8(0x13a)](_0x584626,JSON[_0x5b73e8(0x1aa)](_0x240356),_0xf82c6['hvjeE']),PerformanceTester[_0x5b73e8(0x157)](PerformanceO11yEvents['SYNC']);}}}catch(_0x4d53e3){logger[_0x5b73e8(0x15d)](_0x5b73e8(0x17a)+_0x4d53e3),PerformanceTester[_0x5b73e8(0x157)](PerformanceO11yEvents[_0x5b73e8(0x173)],![],_0x4d53e3);}_0xf82c6[_0x5b73e8(0x16f)](global['__drivers'][0x0][_0x5b73e8(0x1c1)],0x0)&&await global[_0x5b73e8(0x12c)]();}catch(_0xedc33a){logger[_0x5b73e8(0x15d)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0xedc33a);}_0xf82c6['mroGu'](_0x15cdc1);})[_0x12636a(0x1ad)](()=>{_0xf82c6['mroGu'](_0x4091fb);});},{'platform':_0xf82c6[_0x75311(0x1a8)](nestedKeyValue,global[_0x75311(0x1d6)],[_0xf82c6[_0x75311(0x16a)]]),'hookType':_0xf82c6[_0x75311(0x16b)]})();},'afterAll'(_0x524159){const _0x36d866=a41_0x21c80f,_0x389fae={'zVNAq':function(_0x288f7d){return _0x288f7d();},'lblec':function(_0x127d6f){return _0x127d6f();},'Pyfth':_0x36d866(0x138),'umriO':function(_0x1fc2f0,_0x420d24,_0x4f1a90){return _0x1fc2f0(_0x420d24,_0x4f1a90);},'Nbxem':'index','phrxx':_0x36d866(0x1d7)},_0x496da2='browserstack internal helper hook';this[_0x36d866(0x1b4)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x389fae[_0x36d866(0x1a2)]]),PerformanceTester[_0x36d866(0x191)](PerformanceSdkEvents[_0x36d866(0x181)],()=>{const _0x4fdf73=_0x36d866,_0x5bad37={'HLixp':function(_0x27e90c){const _0x325b45=a41_0x1d60;return _0x389fae[_0x325b45(0x12f)](_0x27e90c);}};new Promise(async _0x4abb15=>{const _0x2ad92d=a41_0x1d60;await global['driverCleanup'](),_0x389fae[_0x2ad92d(0x1a1)](_0x4abb15);})[_0x4fdf73(0x1ad)]()[_0x4fdf73(0x12d)](()=>{_0x5bad37['HLixp'](_0x524159);});},{'platform':_0x389fae['umriO'](nestedKeyValue,global[_0x36d866(0x1d6)],[_0x389fae[_0x36d866(0x14d)]]),'hookType':_0x389fae[_0x36d866(0x158)]})();}};
|
|
1
|
+
function a41_0x41c3(_0x150ff6,_0x59724f){const _0x2b9a7d=a41_0x2b9a();return a41_0x41c3=function(_0x41c31d,_0x102169){_0x41c31d=_0x41c31d-0x1c3;let _0x1f18c8=_0x2b9a7d[_0x41c31d];return _0x1f18c8;},a41_0x41c3(_0x150ff6,_0x59724f);}const a41_0x54b68e=a41_0x41c3;(function(_0x47fc99,_0x26f873){const _0x230e22=a41_0x41c3,_0x57b3ce=_0x47fc99();while(!![]){try{const _0x4d04df=parseInt(_0x230e22(0x205))/0x1*(parseInt(_0x230e22(0x236))/0x2)+-parseInt(_0x230e22(0x214))/0x3+-parseInt(_0x230e22(0x1ee))/0x4+parseInt(_0x230e22(0x241))/0x5+-parseInt(_0x230e22(0x272))/0x6*(-parseInt(_0x230e22(0x268))/0x7)+-parseInt(_0x230e22(0x202))/0x8+parseInt(_0x230e22(0x227))/0x9;if(_0x4d04df===_0x26f873)break;else _0x57b3ce['push'](_0x57b3ce['shift']());}catch(_0x3ef3ea){_0x57b3ce['push'](_0x57b3ce['shift']());}}}(a41_0x2b9a,0x5527c));function a41_0x2b9a(){const _0x342ca0=['join','BROWSERSTACK_TESTHUB_UUID','LpJmE','BROWSERSTACK_TESTHUB_JWT','parse','GSiTw','shouldScanTestForAccessibility','../../helpers/accessibility-automation/helper','FAsUj','7tnhRYR','shift','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','zgDVd','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','kRrjU','xqfOn','hXfqO','phOgw','kjOCP','1084002ZXfkoU','xnxJz','SYNC','CKaVa','eZixB','joFTg','driverCleanup','../../helpers/percy/utils','isAccessibilityPlatform','gPyKO','executeScript','RHKzA','warn','__skipSessionName','NUqCD','Error\x20parsing\x20autoScanning\x20config,\x20using\x20default\x20(true):\x20','index','session_','autoScanning','bbXVo','afterAll','CoDjC','kjqWz','initQuit','YLYJj','testcase','gWuBx','SESSION_STATUS','FAQTo','measureWrapper','thBuildUuid','\x20|\x20','marQT','XONSm','quitCount_','ucUAa','mVpRi','now','error','__drivers','yxvLu','Wzsvy','sqZpF','message','jTfBl','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','ZfelF','tReYl','./test-observability/mochaUtils','DkEuM','584028XPRlnF','then','env','browserstackSessionName','Pxivb','end','__error_messages__',',\x22level\x22:\x20\x22','KnByY','ymkIr','vKsxH','__sessionFailed','../../helpers/accessibility-automation/accessibilityRetryHelper','../../helpers/helper','../../helpers/performance/performance-tester','NviRE','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','../../helpers/logger','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','sessionName','1548136ZKTLWW','RfDsf','Failed:\x20','1qVQZpK','capabilities','\x22}}','length','../../helpers/driverInitErrorReporter','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','.\x20Error\x20:','dYKSr','QZnir','SDK_HOOK','Passed','accessibilityScanStarted','zZggg','sSAVK','vkadE','1893555thQzcm','failed','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','afterEach','winstonLogger','thJwtToken','info','MScVi','mBcnm','EeiYb','NwKhn','Mocha','qQBhc','beforeAll','bstackA11yShouldScan','bstackA11yScanOptions','ENV_VAR','qaZJe','NAwop','3050955mhbZXZ','state','MTTzV','Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','YKoAT','OVCsJ','EmKBv','YZBnQ','driver-init\x20capture\x20install\x20failed:\x20','Failed\x20to\x20store\x20session\x20name:\x20','jJKpX','err','getGlobal','command','907470mjKocL','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','[Accessibility]\x20Auto\x20scan\x20is\x20disabled;\x20skipping\x20final\x20scan\x20and\x20saving\x20current\x20accumulated\x20results','getCurrentUrl','passed','setGlobal','testAnalyticsId','titlePath','beforeEach','oiVEz','pcsZy','1730540sFzTTp','\x20-\x20','timeout','saveAccessibilityResultsWithRetry','Ecsxi','__platformCaps','isArray','push','app','debug','juWtq','FCgnD','Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','stringify','SLPde','Accessibility\x20scan\x20completed\x20successfully','currentTest','jAYUK','../../helpers/globals','percyCaptureMode','uewyC','IrPef','browserstackTestName','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','lNGmO','mocha','protocol','SAVE_RESULTS','vVMAl','ObservabilitySync:'];a41_0x2b9a=function(){return _0x342ca0;};return a41_0x2b9a();}const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a41_0x54b68e(0x266)),accessibilityRetryHelper=require(a41_0x54b68e(0x1fa)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require('../utils/constants'),{percyAutoCapture}=require(a41_0x54b68e(0x279)),{sendPlatformDetails}=require(a41_0x54b68e(0x1ec)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a41_0x54b68e(0x1fb)),PerformanceTester=require(a41_0x54b68e(0x1fc)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),globals=require(a41_0x54b68e(0x253)),logger=require(a41_0x54b68e(0x1ff))[a41_0x54b68e(0x218)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require('../../helpers/testhub/constants');try{require(a41_0x54b68e(0x209))['installAll'](a41_0x54b68e(0x25a));}catch(a41_0x5ddb97){logger['debug'](a41_0x54b68e(0x230)+(a41_0x5ddb97&&a41_0x5ddb97[a41_0x54b68e(0x1e6)]));}exports['mochaHooks']={'beforeAll'(){const _0x466678=a41_0x54b68e,_0x565e13={'qaZJe':function(_0x1eb745,_0x494fbd,_0x55d99c,_0x5ba0d3){return _0x1eb745(_0x494fbd,_0x55d99c,_0x5ba0d3);},'RHKzA':_0x466678(0x215),'jAYUK':_0x466678(0x1da),'YZBnQ':function(_0xb159d4,_0xad2667,_0x3e5e61){return _0xb159d4(_0xad2667,_0x3e5e61);},'zZggg':_0x466678(0x23a),'NAwop':function(_0x2175ef){return _0x2175ef();},'iAYCB':function(_0xccbcee,_0xeb2f8e,_0x11d648){return _0xccbcee(_0xeb2f8e,_0x11d648);},'oiVEz':_0x466678(0x1cb),'FCgnD':_0x466678(0x221)};PerformanceTester['startMonitoring']();const _0x18478f='browserstack internal helper hook';PerformanceTester[_0x466678(0x1d8)](PerformanceSdkEvents[_0x466678(0x20e)],()=>{const _0x74e1d3=_0x466678;global['__error_messages__']=[],global[_0x74e1d3(0x1f9)]=![],global[_0x74e1d3(0x278)]=async()=>{const _0x52e746=_0x74e1d3;let _0x53c14b=![];try{await global[_0x52e746(0x1e2)][0x0]['session_'],_0x53c14b=!![],global[_0x52e746(0x1f9)]?await _0x565e13[_0x52e746(0x225)](markSessionStatus,global['__drivers'][0x0],_0x565e13[_0x52e746(0x1c6)],global[_0x52e746(0x1f4)][_0x52e746(0x25f)](_0x565e13[_0x52e746(0x252)])):await _0x565e13[_0x52e746(0x22f)](markSessionStatus,global[_0x52e746(0x1e2)][0x0],_0x565e13[_0x52e746(0x211)]);}catch(_0x12298d){logger[_0x52e746(0x24a)](_0x52e746(0x1fe)+_0x12298d);}global[_0x52e746(0x1f4)]=[],global[_0x52e746(0x1f9)]=![];if(_0x53c14b)try{try{_0x565e13[_0x52e746(0x226)](shouldProcessEventForTesthub)&&(global[_0x52e746(0x1e2)][0x0]&&await _0x565e13[_0x52e746(0x22f)](sendPlatformDetails,global[_0x52e746(0x1e2)][0x0],this['currentTest']?this['currentTest'][_0x52e746(0x23c)]:null));}catch(_0x23a0c9){logger[_0x52e746(0x24a)](_0x52e746(0x26a)+_0x23a0c9);}await global[_0x52e746(0x1e2)][0x0][_0x52e746(0x1d2)]();}catch(_0x5d36a2){logger[_0x52e746(0x24a)](_0x52e746(0x216)+_0x5d36a2);}};},{'platform':_0x565e13['iAYCB'](nestedKeyValue,global['__platformCaps'],[_0x565e13[_0x466678(0x23f)]]),'hookType':_0x565e13[_0x466678(0x24c)]})();},'beforeEach'(_0x3a0cd9){const _0xddb657=a41_0x54b68e,_0x1a2413={'sSAVK':function(_0x4a0883,_0x1576f8){return _0x4a0883>_0x1576f8;},'xqfOn':function(_0x585ac2,_0x54780b){return _0x585ac2>_0x54780b;},'gPyKO':_0xddb657(0x242),'kjOCP':function(_0x4c4bfb,_0x133915,_0x417a6f){return _0x4c4bfb(_0x133915,_0x417a6f);},'pcsZy':function(_0x3de7fa,_0x459c62){return _0x3de7fa===_0x459c62;},'hXfqO':_0xddb657(0x222),'lNGmO':_0xddb657(0x223),'phOgw':function(_0x5b4bae){return _0x5b4bae();},'uewyC':function(_0x1f236f,_0x4d033f){return _0x1f236f>_0x4d033f;},'NwKhn':'isAccessibilityPlatform','NgYuu':'http:','jTfBl':function(_0x1c67c6,_0x2c90b2){return _0x1c67c6===_0x2c90b2;},'utiFt':'https:','qQBhc':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','tReYl':'Automate\x20test\x20case\x20execution\x20has\x20started.','EeiYb':_0xddb657(0x257),'mBcnm':_0xddb657(0x1cb),'bbXVo':_0xddb657(0x23e)};globals[_0xddb657(0x23b)](_0x1a2413[_0xddb657(0x21d)],this[_0xddb657(0x251)][_0xddb657(0x23d)]()[_0xddb657(0x25f)](_0x1a2413['gPyKO'])),PerformanceTester[_0xddb657(0x1d8)](PerformanceSdkEvents[_0xddb657(0x20e)],()=>{const _0x40c386='browserstack internal helper hook';new Promise(async _0x229145=>{const _0x1e85b0=a41_0x41c3;let _0xaa60e7=!![];try{_0x1a2413[_0x1e85b0(0x212)](global[_0x1e85b0(0x1e2)][_0x1e85b0(0x208)],0x1)&&(await global['driverCleanup'](),global[_0x1e85b0(0x1e2)][_0x1e85b0(0x269)]()),_0x1a2413[_0x1e85b0(0x26e)](global[_0x1e85b0(0x1e2)][0x0]['quitCount_'],0x0)&&(_0xaa60e7=![],await global['driverCleanup']());}catch(_0x44bff1){logger[_0x1e85b0(0x24a)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x44bff1);}try{Array[_0x1e85b0(0x247)](global['__drivers'])&&global[_0x1e85b0(0x1e2)][0x0]&&(global[_0x1e85b0(0x1e2)][0x0][_0x1e85b0(0x1f1)]=this[_0x1e85b0(0x251)][_0x1e85b0(0x23d)]()['join'](_0x1a2413[_0x1e85b0(0x1c4)])),global[_0x1e85b0(0x1f1)]=this[_0x1e85b0(0x251)][_0x1e85b0(0x23d)]()[_0x1e85b0(0x25f)](_0x1a2413[_0x1e85b0(0x1c4)]);}catch(_0xf605f6){logger[_0x1e85b0(0x24a)](_0x1e85b0(0x231)+_0xf605f6);}this[_0x1e85b0(0x251)]['shouldScanTestForAccessibility']=_0x1a2413['kjOCP'](shouldScanTestForAccessibility,this[_0x1e85b0(0x251)][_0x1e85b0(0x23d)](),!![]);let _0x66c660=!![];try{const _0xeb712=JSON[_0x1e85b0(0x263)](process[_0x1e85b0(0x1f0)][_0x1e85b0(0x22b)]||'{}');_0x1a2413[_0x1e85b0(0x240)](_0xeb712[_0x1e85b0(0x1cd)],![])&&(_0x66c660=![]);}catch(_0x139b45){logger[_0x1e85b0(0x24a)](_0x1e85b0(0x1ca)+_0x139b45['message']);}const _0x537707=_0x66c660&&this[_0x1e85b0(0x251)]['shouldScanTestForAccessibility'];globals[_0x1e85b0(0x23b)](_0x1a2413[_0x1e85b0(0x26f)],_0x537707),globals['setGlobal'](_0x1a2413[_0x1e85b0(0x259)],null),this[_0x1e85b0(0x251)][_0x1e85b0(0x210)]=this['currentTest']['shouldScanTestForAccessibility'];if(_0x1a2413[_0x1e85b0(0x270)](isAccessibilityAutomationSession)&&_0xaa60e7&&Array['isArray'](global[_0x1e85b0(0x1e2)])&&_0x1a2413[_0x1e85b0(0x255)](global[_0x1e85b0(0x1e2)][_0x1e85b0(0x208)],0x0)&&globals[_0x1e85b0(0x234)](_0x1a2413[_0x1e85b0(0x21e)]))try{const _0x185173=await global[_0x1e85b0(0x1e2)][0x0][_0x1e85b0(0x1cc)];if(_0x185173){let _0x9136b9=!![];const _0x577519=await global[_0x1e85b0(0x1e2)][0x0][_0x1e85b0(0x239)]();let _0x167026;try{_0x167026=new URL(_0x577519),_0x9136b9=_0x1a2413[_0x1e85b0(0x240)](_0x167026['protocol'],_0x1a2413['NgYuu'])||_0x1a2413[_0x1e85b0(0x1e7)](_0x167026[_0x1e85b0(0x25b)],_0x1a2413['utiFt']);}catch(_0x50fe7b){_0x9136b9=![];}_0x9136b9&&(this[_0x1e85b0(0x251)][_0x1e85b0(0x265)]&&logger[_0x1e85b0(0x21a)](_0x1a2413[_0x1e85b0(0x220)])),this['currentTest'][_0x1e85b0(0x210)]=this[_0x1e85b0(0x251)]['shouldScanTestForAccessibility'],_0x537707&&logger[_0x1e85b0(0x21a)](_0x1a2413[_0x1e85b0(0x1eb)]);}}catch(_0x187f22){logger[_0x1e85b0(0x1e1)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util['format'](_0x187f22));}_0x1a2413[_0x1e85b0(0x270)](_0x229145);})['then'](()=>{const _0x12e803=a41_0x41c3;_0x1a2413[_0x12e803(0x270)](_0x3a0cd9);});},{'platform':_0x1a2413[_0xddb657(0x271)](nestedKeyValue,global[_0xddb657(0x246)],[_0x1a2413[_0xddb657(0x21c)]]),'hookType':_0x1a2413[_0xddb657(0x1ce)]})();},'afterEach'(_0xfc30b5){const _0x51dd3a=a41_0x54b68e,_0x5541e6={'CKaVa':function(_0x34f4d5,_0x575e41){return _0x34f4d5!==_0x575e41;},'kjqWz':'passed','GSiTw':function(_0x59821b,_0xc8db98,_0x2c52ef){return _0x59821b(_0xc8db98,_0x2c52ef);},'LpJmE':function(_0x570396,_0x7a8fa8){return _0x570396+_0x7a8fa8;},'MScVi':_0x51dd3a(0x204),'QZnir':_0x51dd3a(0x1e1),'MTTzV':function(_0x1461d7,_0x1bcc1d,_0x474331){return _0x1461d7(_0x1bcc1d,_0x474331);},'eZixB':_0x51dd3a(0x20f),'ZfelF':_0x51dd3a(0x21a),'NUqCD':function(_0x112d99,_0x5d6e9f){return _0x112d99>_0x5d6e9f;},'YKoAT':function(_0x33d24c,_0x1739ee){return _0x33d24c===_0x1739ee;},'RfDsf':_0x51dd3a(0x1d4),'joFTg':'appium:app','cwhJR':function(_0x5db6b1,_0x2e3176,_0x43e665,_0x333ca3){return _0x5db6b1(_0x2e3176,_0x43e665,_0x333ca3);},'vkadE':_0x51dd3a(0x1c3),'kRWQK':_0x51dd3a(0x258),'vKsxH':_0x51dd3a(0x222),'dYKSr':_0x51dd3a(0x24d),'Ecsxi':'afterTest','KnByY':_0x51dd3a(0x250),'IrPef':_0x51dd3a(0x22a),'YLYJj':_0x51dd3a(0x238),'cKjLH':'Accessibility\x20results\x20saved\x20successfully','ymkIr':'Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','EmKBv':_0x51dd3a(0x1e8),'CoDjC':function(_0x38a83b){return _0x38a83b();},'gWuBx':function(_0x54b422,_0x419327,_0x5c4d21){return _0x54b422(_0x419327,_0x5c4d21);},'xnxJz':function(_0x259188){return _0x259188();},'OVCsJ':function(_0x50eda1,_0x19e045,_0x38f705){return _0x50eda1(_0x19e045,_0x38f705);},'mVpRi':'debug','NviRE':_0x51dd3a(0x242),'FAsUj':function(_0x56085c){return _0x56085c();},'marQT':'Mocha','yxvLu':_0x51dd3a(0x1cb),'vFsWk':_0x51dd3a(0x217)},_0x193119='browserstack internal helper hook';this[_0x51dd3a(0x243)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x5541e6[_0x51dd3a(0x1db)]]),global[_0x51dd3a(0x201)]=this['currentTest']['titlePath']()[_0x51dd3a(0x25f)](_0x5541e6[_0x51dd3a(0x1fd)]),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x51dd3a(0x20e)],()=>{const _0x35a21c=_0x51dd3a,_0x269121={'gLuee':_0x5541e6[_0x35a21c(0x1fd)],'sqZpF':function(_0x5dbe05){const _0x18e236=_0x35a21c;return _0x5541e6[_0x18e236(0x267)](_0x5dbe05);}},_0x83660a=async(_0x311769,_0x135af2)=>{const _0x2150af=_0x35a21c;await global[_0x2150af(0x1e2)][0x0][_0x2150af(0x1c5)](_0x2150af(0x20a)+_0x311769+_0x2150af(0x1f5)+_0x135af2+_0x2150af(0x207));};new Promise(async _0xce6849=>{const _0x33554b=_0x35a21c,_0x1b6483={'HnMOm':function(_0x461103,_0x2eac62){const _0x3fe6bd=a41_0x41c3;return _0x5541e6[_0x3fe6bd(0x275)](_0x461103,_0x2eac62);},'jJKpX':_0x5541e6[_0x33554b(0x1d1)],'vVMAl':function(_0x4764de,_0xf41eef,_0x132411){const _0x3641f5=_0x33554b;return _0x5541e6[_0x3641f5(0x264)](_0x4764de,_0xf41eef,_0x132411);},'Wzsvy':function(_0x370793,_0x181277){const _0x5d43db=_0x33554b;return _0x5541e6[_0x5d43db(0x261)](_0x370793,_0x181277);},'XONSm':_0x5541e6[_0x33554b(0x21b)],'Pxivb':_0x5541e6[_0x33554b(0x20d)],'zgDVd':function(_0x3de9eb,_0x4c4378,_0x14ac9e){const _0x2b8f5f=_0x33554b;return _0x5541e6[_0x2b8f5f(0x229)](_0x3de9eb,_0x4c4378,_0x14ac9e);},'FAQTo':_0x5541e6[_0x33554b(0x276)],'DkEuM':_0x5541e6[_0x33554b(0x1ea)]};try{_0x5541e6[_0x33554b(0x1c9)](global[_0x33554b(0x1e2)][_0x33554b(0x208)],0x1)&&(await global['driverCleanup'](),global[_0x33554b(0x1e2)][_0x33554b(0x269)](),global[_0x33554b(0x1f4)]=[],global['__sessionFailed']=![]);try{if(global['percy']&&_0x5541e6[_0x33554b(0x22c)](global[_0x33554b(0x254)],_0x5541e6['RfDsf'])&&global[_0x33554b(0x1e2)][0x0]){const _0x9300a0=_0x5541e6['NUqCD'](global[_0x33554b(0x206)]['length'],0x0)?!!global[_0x33554b(0x206)][0x0][_0x33554b(0x249)]||!!global[_0x33554b(0x206)][0x0][_0x5541e6[_0x33554b(0x277)]]:![],_0x4a7e1f={};_0x4a7e1f[_0x33554b(0x249)]=_0x9300a0,await _0x5541e6['cwhJR'](percyAutoCapture,global[_0x33554b(0x1e2)][0x0],_0x5541e6[_0x33554b(0x203)],_0x4a7e1f);}}catch(_0x3a1679){logger['debug'](_0x33554b(0x237)+_0x3a1679);}!global[_0x33554b(0x1c8)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents['SESSION_NAME'],async()=>{const _0x5894ac=_0x33554b;await global[_0x5894ac(0x1e2)][0x0][_0x5894ac(0x1c5)](_0x5894ac(0x200)+JSON['stringify'](this[_0x5894ac(0x251)][_0x5894ac(0x23d)]()['join'](_0x269121['gLuee']))+'}}');})(),global[_0x33554b(0x1e2)][0x0]['sessionNameSet__']=!![]),await PerformanceTester[_0x33554b(0x1d8)](PerformanceAutEvents[_0x33554b(0x1d6)],async()=>{const _0x58140e=_0x33554b,_0x1886b5=_0x1b6483['HnMOm'](this[_0x58140e(0x251)][_0x58140e(0x228)],_0x1b6483[_0x58140e(0x232)]);_0x1886b5?(global[_0x58140e(0x1f9)]=!![],global[_0x58140e(0x1f4)][_0x58140e(0x248)](this[_0x58140e(0x251)][_0x58140e(0x233)][_0x58140e(0x1e6)]),await _0x1b6483[_0x58140e(0x25d)](_0x83660a,JSON[_0x58140e(0x24e)](_0x1b6483[_0x58140e(0x1e4)](_0x1b6483[_0x58140e(0x1dc)],this['currentTest'][_0x58140e(0x233)][_0x58140e(0x1e6)])),_0x1b6483[_0x58140e(0x1f2)])):await _0x1b6483[_0x58140e(0x26b)](_0x83660a,JSON['stringify'](_0x1b6483[_0x58140e(0x1d7)]),_0x1b6483[_0x58140e(0x1ed)]);})();}catch(_0x7e61df){logger[_0x33554b(0x24a)](_0x33554b(0x26c)+_0x7e61df);}try{if(this[_0x33554b(0x251)]['accessibilityScanStarted']&&globals[_0x33554b(0x234)](_0x5541e6[_0x33554b(0x213)])){logger[_0x33554b(0x21a)](_0x5541e6['kRWQK']);const _0x1a5afd={};_0x1a5afd['thTestRunUuid']=this[_0x33554b(0x251)][_0x33554b(0x23c)],_0x1a5afd[_0x33554b(0x1d9)]=process[_0x33554b(0x1f0)][testHubConstants[_0x33554b(0x224)][_0x33554b(0x260)]],_0x1a5afd[_0x33554b(0x219)]=process[_0x33554b(0x1f0)][testHubConstants[_0x33554b(0x224)][_0x33554b(0x262)]];const _0x2c85b2=_0x1a5afd;logger['debug']('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x33554b(0x24e)](_0x2c85b2));if(globals[_0x33554b(0x234)](_0x5541e6[_0x33554b(0x1f8)])){logger['debug'](_0x5541e6[_0x33554b(0x20c)]);const _0x55bf07={};_0x55bf07[_0x33554b(0x235)]=_0x5541e6[_0x33554b(0x245)];const _0x179fc7=await PerformanceTester[_0x33554b(0x1d8)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x44a1c8=_0x33554b;return await accessibilityRetryHelper['performScanWithRetry'](global[_0x44a1c8(0x1e2)][0x0],global[_0x44a1c8(0x1f1)]);},_0x55bf07)();_0x179fc7?logger[_0x33554b(0x24a)](_0x5541e6[_0x33554b(0x1f6)]):logger[_0x33554b(0x1c7)](_0x5541e6[_0x33554b(0x256)]);}else logger[_0x33554b(0x24a)](_0x5541e6[_0x33554b(0x1d3)]);const _0xbd8931=await PerformanceTester[_0x33554b(0x1d8)](PerformanceA11yEvents[_0x33554b(0x25c)],async()=>{const _0x512104=_0x33554b;return await accessibilityRetryHelper[_0x512104(0x244)](global[_0x512104(0x1e2)][0x0],_0x2c85b2);})();_0xbd8931?logger[_0x33554b(0x24a)](_0x5541e6['cKjLH']):logger[_0x33554b(0x1c7)](_0x5541e6[_0x33554b(0x1f7)]),logger[_0x33554b(0x21a)](_0x5541e6[_0x33554b(0x22e)]);}}catch(_0x4ee458){logger['error']('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this['currentTest']['titlePath']()+_0x33554b(0x20b),_0x4ee458);}try{try{if(_0x5541e6[_0x33554b(0x1d0)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x5541e6[_0x33554b(0x1d5)](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this[_0x33554b(0x251)][_0x33554b(0x23c)]:null);if(_0x5541e6[_0x33554b(0x273)](isBrowserstackInfra)){PerformanceTester['start'](PerformanceO11yEvents[_0x33554b(0x274)]);const _0x29b9c3=_0x33554b(0x25e)+Date[_0x33554b(0x1e0)]();await _0x5541e6[_0x33554b(0x22d)](_0x83660a,JSON[_0x33554b(0x24e)](_0x29b9c3),_0x5541e6[_0x33554b(0x1df)]),PerformanceTester[_0x33554b(0x1f3)](PerformanceO11yEvents[_0x33554b(0x274)]);}}}catch(_0x2b6eed){logger[_0x33554b(0x24a)](_0x33554b(0x1e9)+_0x2b6eed),PerformanceTester['end'](PerformanceO11yEvents[_0x33554b(0x274)],![],_0x2b6eed);}_0x5541e6[_0x33554b(0x1c9)](global[_0x33554b(0x1e2)][0x0][_0x33554b(0x1dd)],0x0)&&await global[_0x33554b(0x278)]();}catch(_0x5becea){logger[_0x33554b(0x24a)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x5becea);}_0x5541e6['xnxJz'](_0xce6849);})[_0x35a21c(0x1ef)](()=>{const _0x3a9bb6=_0x35a21c;_0x269121[_0x3a9bb6(0x1e5)](_0xfc30b5);});},{'platform':_0x5541e6[_0x51dd3a(0x264)](nestedKeyValue,global[_0x51dd3a(0x246)],[_0x5541e6[_0x51dd3a(0x1e3)]]),'hookType':_0x5541e6['vFsWk']})();},'afterAll'(_0x3d729c){const _0xa260aa=a41_0x54b68e,_0x2f8118={'kRrjU':function(_0x4583fc){return _0x4583fc();},'juWtq':_0xa260aa(0x21f),'Ffudt':function(_0xa0739a,_0x5e5c88,_0x228664){return _0xa0739a(_0x5e5c88,_0x228664);},'SLPde':_0xa260aa(0x1cb),'ucUAa':_0xa260aa(0x1cf)},_0x551f6e='browserstack internal helper hook';this[_0xa260aa(0x243)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x2f8118[_0xa260aa(0x24b)]]),PerformanceTester[_0xa260aa(0x1d8)](PerformanceSdkEvents[_0xa260aa(0x20e)],()=>{const _0x52ee3d=_0xa260aa;new Promise(async _0x4ed91f=>{const _0xd0e9d6=a41_0x41c3;await global[_0xd0e9d6(0x278)](),_0x2f8118[_0xd0e9d6(0x26d)](_0x4ed91f);})[_0x52ee3d(0x1ef)]()['finally'](()=>{const _0x9d5f28=_0x52ee3d;_0x2f8118[_0x9d5f28(0x26d)](_0x3d729c);});},{'platform':_0x2f8118['Ffudt'](nestedKeyValue,global['__platformCaps'],[_0x2f8118[_0xa260aa(0x24f)]]),'hookType':_0x2f8118[_0xa260aa(0x1de)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a42_0x545e97=a42_0x1f6f;(function(_0x2c4704,_0x1e70fc){const _0x898f44=a42_0x1f6f,_0x4a2202=_0x2c4704();while(!![]){try{const _0x353e35=-parseInt(_0x898f44(0x1a3))/0x1+-parseInt(_0x898f44(0x1da))/0x2*(parseInt(_0x898f44(0x1e4))/0x3)+-parseInt(_0x898f44(0x19d))/0x4+-parseInt(_0x898f44(0x1b8))/0x5+-parseInt(_0x898f44(0x18e))/0x6*(-parseInt(_0x898f44(0x1de))/0x7)+-parseInt(_0x898f44(0x1bf))/0x8*(-parseInt(_0x898f44(0x1b6))/0x9)+-parseInt(_0x898f44(0x1ff))/0xa*(-parseInt(_0x898f44(0x1a1))/0xb);if(_0x353e35===_0x1e70fc)break;else _0x4a2202['push'](_0x4a2202['shift']());}catch(_0x5bcbcf){_0x4a2202['push'](_0x4a2202['shift']());}}}(a42_0x9a64,0x8feb3));function a42_0x1f6f(_0x457180,_0x5f3314){const _0x9a64c1=a42_0x9a64();return a42_0x1f6f=function(_0x1f6f84,_0x5c0413){_0x1f6f84=_0x1f6f84-0x18a;let _0x4c6d6d=_0x9a64c1[_0x1f6f84];return _0x4c6d6d;},a42_0x1f6f(_0x457180,_0x5f3314);}const path=require(a42_0x545e97(0x199)),Module=require(a42_0x545e97(0x1a5)),{fork}=require('child_process'),logger=require(a42_0x545e97(0x1f2))[a42_0x545e97(0x197)],helper=require(a42_0x545e97(0x1ea)),TestHubHandler=require(a42_0x545e97(0x1c5)),RequestQueueHandler=require('../../helpers/test-observability/requestQueueHandler'),{FRAMEWORKS}=require(a42_0x545e97(0x192)),{printBuildLink}=require('../../helpers/test-observability/utils'),BrowserstackCLI=require(a42_0x545e97(0x19e)),CLIUtils=require(a42_0x545e97(0x1a2));function registerBrowserStackReporter(){const _0x302f14=a42_0x545e97,_0x35d62e={};_0x35d62e[_0x302f14(0x1cd)]=function(_0x2ffdc0,_0x258d08){return _0x2ffdc0===_0x258d08;},_0x35d62e[_0x302f14(0x1e2)]=_0x302f14(0x1e8),_0x35d62e[_0x302f14(0x1bb)]='reporter',_0x35d62e['APOgY']='index.js';const _0x3bb248=_0x35d62e,_0xeac659=path[_0x302f14(0x1db)](__dirname,_0x3bb248[_0x302f14(0x1bb)],_0x3bb248[_0x302f14(0x1ca)]),_0x2350f1=Module[_0x302f14(0x18d)];Module[_0x302f14(0x18d)]=function(_0x474347,_0x2fc431,_0x48c789,_0x15be84){const _0x47a88f=_0x302f14;if(_0x3bb248[_0x47a88f(0x1cd)](_0x474347,_0x3bb248[_0x47a88f(0x1e2)]))return _0xeac659;return _0x2350f1[_0x47a88f(0x1bc)](this,_0x474347,_0x2fc431,_0x48c789,_0x15be84);};}function injectReporterIntoArgs(_0x416a68){const _0x1f3b62=a42_0x545e97,_0x1fa104={};_0x1fa104[_0x1f3b62(0x191)]=function(_0x39faf3,_0x46e26c){return _0x39faf3<_0x46e26c;},_0x1fa104['wYbgk']=function(_0x4bf63a,_0x206b39){return _0x4bf63a===_0x206b39;},_0x1fa104[_0x1f3b62(0x1f5)]=_0x1f3b62(0x1e5),_0x1fa104[_0x1f3b62(0x1df)]=function(_0x3d8383,_0x34c6a2){return _0x3d8383+_0x34c6a2;},_0x1fa104['coMbQ']=function(_0x163c92,_0xf77cb){return _0x163c92===_0xf77cb;},_0x1fa104[_0x1f3b62(0x204)]=_0x1f3b62(0x1f3),_0x1fa104[_0x1f3b62(0x1f6)]=',browserstack',_0x1fa104[_0x1f3b62(0x201)]=_0x1f3b62(0x1e3);const _0x256c3d=_0x1fa104,_0x1ae6b9=_0x416a68[_0x1f3b62(0x1d8)]();for(let _0x3a9274=0x0;_0x256c3d[_0x1f3b62(0x191)](_0x3a9274,_0x1ae6b9[_0x1f3b62(0x1fe)]);_0x3a9274++){if(_0x256c3d[_0x1f3b62(0x18f)](_0x1ae6b9[_0x3a9274],'-r')||_0x256c3d[_0x1f3b62(0x18f)](_0x1ae6b9[_0x3a9274],_0x256c3d[_0x1f3b62(0x1f5)]))return _0x1ae6b9[_0x256c3d[_0x1f3b62(0x1df)](_0x3a9274,0x1)]&&_0x256c3d['coMbQ'](_0x1ae6b9[_0x256c3d[_0x1f3b62(0x1df)](_0x3a9274,0x1)]['indexOf'](_0x256c3d['pDuan']),-0x1)&&(_0x1ae6b9[_0x256c3d[_0x1f3b62(0x1df)](_0x3a9274,0x1)]+=_0x256c3d[_0x1f3b62(0x1f6)]),_0x1ae6b9;}return _0x1ae6b9[_0x1f3b62(0x1fd)]('-r',_0x256c3d['gYnNF']),_0x1ae6b9;}function runNewmanCLI(_0x33bdc9){const _0x21f1c5=a42_0x545e97,_0x33cc8e={'FnOpO':function(_0x36365e,_0x28f20b){return _0x36365e>_0x28f20b;},'URAcI':function(_0x338618,_0x506e80){return _0x338618(_0x506e80);},'rekhE':function(_0x532c84,_0x3e81b1,_0xa208d){return _0x532c84(_0x3e81b1,_0xa208d);},'XUBxd':_0x21f1c5(0x1eb),'jCXpW':_0x21f1c5(0x1a4),'CWUdF':function(_0x3545db,_0x96fa4){return _0x3545db(_0x96fa4);},'arruw':_0x21f1c5(0x1a5),'thWXq':_0x21f1c5(0x1b5),'UBSEZ':_0x21f1c5(0x194),'ueTRe':_0x21f1c5(0x1f4),'hKFiH':function(_0x54019e,_0x4d7e80){return _0x54019e+_0x4d7e80;},'xEHOR':'Newman\x20CLI\x20not\x20found:\x20','mlqfa':function(_0x8140a9,_0x421c18){return _0x8140a9(_0x421c18);}};return new Promise(_0x24028a=>{const _0x3b8e2b=_0x21f1c5;let _0x53a18c;try{_0x53a18c=helper['requireModule'](_0x33cc8e[_0x3b8e2b(0x1fa)],_0x33cc8e[_0x3b8e2b(0x1fa)]);}catch(_0xbb3d62){return logger['error'](_0x33cc8e[_0x3b8e2b(0x1b3)]),_0x33cc8e[_0x3b8e2b(0x1ae)](_0x24028a,0x1);}const _0x57fdf2=_0x53a18c[_0x3b8e2b(0x1d4)];_0x53a18c[_0x3b8e2b(0x1d4)]=function(_0xe1619,_0x14c621){const _0x1f7e29=_0x3b8e2b,_0x1ee7f6={'rgqnK':function(_0x2dfc7e,_0x479569){const _0x2f3971=a42_0x1f6f;return _0x33cc8e[_0x2f3971(0x1c2)](_0x2dfc7e,_0x479569);},'ulMec':function(_0x5ce34b,_0x2d365a){const _0x57d5ce=a42_0x1f6f;return _0x33cc8e[_0x57d5ce(0x1ae)](_0x5ce34b,_0x2d365a);},'hxMrg':function(_0x13dd33,_0x182cfe,_0x4d313f){const _0x34c105=a42_0x1f6f;return _0x33cc8e[_0x34c105(0x195)](_0x13dd33,_0x182cfe,_0x4d313f);}};return _0x53a18c['run']=_0x57fdf2,_0x57fdf2[_0x1f7e29(0x1bc)](_0x53a18c,_0xe1619,(_0x266fa2,_0x42f92e)=>{const _0x1fb0a6=_0x1f7e29,_0x3e1728=_0x42f92e&&_0x42f92e[_0x1fb0a6(0x1d4)]&&(_0x42f92e[_0x1fb0a6(0x1d4)][_0x1fb0a6(0x1b2)]||_0x42f92e[_0x1fb0a6(0x1d4)][_0x1fb0a6(0x1f8)]&&_0x1ee7f6['rgqnK'](_0x42f92e['run']['failures'][_0x1fb0a6(0x1fe)],0x0));_0x1ee7f6[_0x1fb0a6(0x18b)](_0x24028a,_0x3e1728?0x1:0x0),_0x14c621&&_0x1ee7f6[_0x1fb0a6(0x1f7)](_0x14c621,_0x266fa2,_0x42f92e);});};try{const _0x191f95=_0x33cc8e['CWUdF'](require,_0x33cc8e[_0x3b8e2b(0x1ee)])[_0x3b8e2b(0x1e9)](path[_0x3b8e2b(0x1db)](process[_0x3b8e2b(0x1cc)](),_0x33cc8e[_0x3b8e2b(0x193)]));_0x33cc8e[_0x3b8e2b(0x1b7)](_0x191f95,_0x33cc8e[_0x3b8e2b(0x1d5)])([_0x33cc8e[_0x3b8e2b(0x1aa)],_0x33cc8e[_0x3b8e2b(0x1fa)]][_0x3b8e2b(0x1fb)](_0x33bdc9));}catch(_0x1b4667){_0x53a18c[_0x3b8e2b(0x1d4)]=_0x57fdf2,logger[_0x3b8e2b(0x1b2)](_0x33cc8e[_0x3b8e2b(0x202)](_0x33cc8e[_0x3b8e2b(0x1c0)],_0x1b4667[_0x3b8e2b(0x19f)])),_0x33cc8e[_0x3b8e2b(0x1ce)](_0x24028a,0x1);}});}function runNewmanScript(_0x48aa10,_0xf94960){const _0x19d312=a42_0x545e97,_0x3d7003={'SWeFm':function(_0x5dc5c4,_0x5ae36b){return _0x5dc5c4(_0x5ae36b);},'UUgWc':function(_0x4e162b,_0x396696){return _0x4e162b||_0x396696;},'JiIjH':function(_0x828a30,_0x4d8a14,_0x18b09c,_0x5d068d){return _0x828a30(_0x4d8a14,_0x18b09c,_0x5d068d);},'QJbNF':_0x19d312(0x19c),'lnTXE':function(_0x4c2e70,_0x3bee88){return _0x4c2e70||_0x3bee88;},'PQOrs':_0x19d312(0x200),'amoIa':'close'};return new Promise(function(_0x4559c9){const _0x3ffb5f=_0x19d312,_0x505e31=_0x3d7003['JiIjH'](fork,path[_0x3ffb5f(0x1db)](__dirname,_0x3d7003[_0x3ffb5f(0x190)]),[_0x48aa10,_0x3d7003[_0x3ffb5f(0x1c7)](String,_0x3d7003[_0x3ffb5f(0x1c9)](_0xf94960,0x0))],{'stdio':_0x3d7003[_0x3ffb5f(0x1ed)],'env':Object['assign']({},process[_0x3ffb5f(0x196)])});_0x505e31['on'](_0x3d7003[_0x3ffb5f(0x1a0)],function(_0x120231){const _0x22bf91=_0x3ffb5f;_0x3d7003[_0x22bf91(0x1c7)](_0x4559c9,_0x3d7003[_0x22bf91(0x1a6)](_0x120231,0x0));});});}function hasO11yBuild(){const _0x1629d6=a42_0x545e97,_0x1d2088={};_0x1d2088[_0x1629d6(0x18c)]=function(_0x4f2866,_0x1f291d){return _0x4f2866!==_0x1f291d;},_0x1d2088[_0x1629d6(0x198)]=_0x1629d6(0x1d1);const _0x61e722=_0x1d2088;return!!(BrowserstackCLI['O11yHashedID']||process['env'][_0x1629d6(0x1be)]&&_0x61e722[_0x1629d6(0x18c)](process[_0x1629d6(0x196)]['BROWSERSTACK_TESTHUB_JWT'],_0x61e722[_0x1629d6(0x198)]));}function a42_0x9a64(){const _0x4188b4=['QJbNF','VjqTk','../../helpers/test-observability/constants','thWXq','newman/bin/newman','rekhE','env','winstonLogger','kqwhE','path','exports','launchBuild','scriptRunner.js','1710564gdYsmV','../v2/browserstackCLI','message','amoIa','6361289qEYBXy','../v2/cliUtils','158199kRzObk','Newman\x20is\x20not\x20installed.\x20Please\x20install\x20newman:\x20npm\x20install\x20newman','module','UUgWc','cliConfig','BROWSERSTACK_AUTOMATION','configPath','ueTRe','Failed\x20to\x20bootstrap\x20CLI:\x20','jmaoo','false','URAcI','hgEHf','HjtIn','.js','error','jCXpW','yCaXC','package.json','2691jnvXsk','CWUdF','5056745WCWJaR','exitCode','resolve','LwzbZ','call','stop','BROWSERSTACK_TESTHUB_JWT','27448AimPnF','xEHOR','warn','FnOpO','shutdown','setFrameworkDetail','../../helpers/testhub/testhubHandler','parallelsPerPlatform','SWeFm','config','lnTXE','APOgY','saNRS','cwd','jibKb','mlqfa','getInstance','ofXtF','null','uLlBa','endsWith','run','UBSEZ','wUZHi','vMkMj','slice','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','427510NJggoW','join','testObservability','TlCMf','203NBjCuH','yQXNh','oIcvH','zUUOu','VoYDO','cli,browserstack','6sRbhcs','--reporters','MLjVF','bootstrap','newman-reporter-browserstack','createRequire','../../helpers/helper','newman','[Newman]\x20Test\x20Observability\x20build\x20was\x20not\x20created.\x20No\x20build\x20link\x20available.\x20Check\x20your\x20credentials\x20in\x20browserstack.yml.','PQOrs','arruw','Failed\x20to\x20launch\x20build:\x20','smalv','true','../../helpers/logger','browserstack','node','IKFdy','sDJKi','hxMrg','failures','mJfCG','XUBxd','concat','isRunning','push','length','20yRESOv','inherit','gYnNF','hKFiH','kjfjS','pDuan','jtYIk','ulMec','btjjH','_resolveFilename','89322UVClVV','wYbgk'];a42_0x9a64=function(){return _0x4188b4;};return a42_0x9a64();}function runWithoutObservability(_0x40c4e7,_0x1c0ce4){const _0x847e1a=a42_0x545e97,_0x40f227={'hgEHf':function(_0x2e577d,_0x3ed2c0){return _0x2e577d(_0x3ed2c0);}};if(_0x40c4e7)return _0x40f227['hgEHf'](require,path[_0x847e1a(0x1ba)](_0x40c4e7)),0x0;return _0x40f227[_0x847e1a(0x1af)](runNewmanCLI,_0x1c0ce4);}module[a42_0x545e97(0x19a)]=async function(_0x29201d,_0x30a111,_0x327bc6){const _0x3237c6=a42_0x545e97,_0x28f78e={'bWJfs':_0x3237c6(0x1b1),'vMkMj':function(_0x1695e4,_0x57df31){return _0x1695e4===_0x57df31;},'zUUOu':_0x3237c6(0x1ad),'smalv':function(_0x2e739d,_0x67eb4c,_0x3baa6f){return _0x2e739d(_0x67eb4c,_0x3baa6f);},'MLjVF':function(_0x4d4302,_0x29bdee){return _0x4d4302!=_0x29bdee;},'jtYIk':_0x3237c6(0x1f1),'ofXtF':'newman','unSwA':function(_0x491c0a,_0x4d87fb){return _0x491c0a+_0x4d87fb;},'HjtIn':_0x3237c6(0x1ab),'yCaXC':function(_0x485d2d,_0x35893c){return _0x485d2d+_0x35893c;},'oIcvH':_0x3237c6(0x1ef),'jmaoo':function(_0x57068c){return _0x57068c();},'kjfjS':'[Newman]\x20Test\x20Observability\x20build\x20creation\x20failed.\x20Tests\x20will\x20run\x20but\x20results\x20will\x20not\x20appear\x20on\x20the\x20BrowserStack\x20dashboard.\x20Check\x20your\x20credentials\x20in\x20browserstack.yml.','saNRS':function(_0x2d4a71){return _0x2d4a71();},'wUZHi':function(_0x5e6c7a,_0x5440e5){return _0x5e6c7a(_0x5440e5);},'uLlBa':function(_0x55dfae){return _0x55dfae();},'mJfCG':function(_0x2cf0c7){return _0x2cf0c7();},'TlCMf':_0x3237c6(0x1ec)},_0x1c8b75=_0x30a111[_0x3237c6(0x1d8)](0x1),_0xa621de=_0x1c8b75[0x0]&&_0x1c8b75[0x0][_0x3237c6(0x1d3)](_0x28f78e['bWJfs'])?_0x1c8b75[0x0]:null;if(!_0x327bc6[_0x3237c6(0x1c8)]||_0x28f78e[_0x3237c6(0x1d7)](_0x327bc6[_0x3237c6(0x1c8)][_0x3237c6(0x1dc)],![])||_0x28f78e[_0x3237c6(0x1d7)](_0x327bc6[_0x3237c6(0x1c8)][_0x3237c6(0x1dc)],_0x28f78e['zUUOu'])){process[_0x3237c6(0x1b9)]=await _0x28f78e[_0x3237c6(0x1f0)](runWithoutObservability,_0xa621de,_0x1c8b75)||0x0;return;}process[_0x3237c6(0x196)][_0x3237c6(0x1a8)]=_0x28f78e[_0x3237c6(0x1e1)],process[_0x3237c6(0x196)][_0x3237c6(0x1d9)]=_0x28f78e[_0x3237c6(0x1e1)],process[_0x3237c6(0x196)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']=_0x28f78e[_0x3237c6(0x1e6)](_0x327bc6[_0x3237c6(0x1c8)][_0x3237c6(0x1dc)],null)?_0x327bc6[_0x3237c6(0x1c8)][_0x3237c6(0x1dc)]:_0x28f78e[_0x3237c6(0x18a)],CLIUtils[_0x3237c6(0x1c4)](_0x28f78e[_0x3237c6(0x1d0)],_0x28f78e['ofXtF']),BrowserstackCLI['getInstance']()['setBrowserstackConfig'](_0x327bc6['config'],_0x327bc6[_0x3237c6(0x1a9)],_0x327bc6[_0x3237c6(0x1a7)]);try{await BrowserstackCLI[_0x3237c6(0x1cf)]()[_0x3237c6(0x1e7)]();}catch(_0x15ffa1){logger[_0x3237c6(0x1b2)](_0x28f78e['unSwA'](_0x28f78e[_0x3237c6(0x1b0)],_0x15ffa1['message']||_0x15ffa1));}if(!BrowserstackCLI[_0x3237c6(0x1cf)]()[_0x3237c6(0x1fc)]())try{await TestHubHandler[_0x3237c6(0x19b)](FRAMEWORKS['NEWMAN'],_0x327bc6);}catch(_0x466801){logger['error'](_0x28f78e[_0x3237c6(0x1b4)](_0x28f78e[_0x3237c6(0x1e0)],_0x466801[_0x3237c6(0x19f)]||_0x466801));}!_0x28f78e[_0x3237c6(0x1ac)](hasO11yBuild)&&logger['warn'](_0x28f78e[_0x3237c6(0x203)]);_0x28f78e[_0x3237c6(0x1cb)](registerBrowserStackReporter);let _0x325b58;_0xa621de?_0x325b58=await _0x28f78e[_0x3237c6(0x1f0)](runNewmanScript,_0xa621de,_0x327bc6['config'][_0x3237c6(0x1c6)]):_0x325b58=await _0x28f78e[_0x3237c6(0x1d6)](runNewmanCLI,_0x28f78e['wUZHi'](injectReporterIntoArgs,_0x1c8b75));try{await TestHubHandler[_0x3237c6(0x1bd)]();}catch(_0x1c570f){}try{await BrowserstackCLI['getInstance']()[_0x3237c6(0x1bd)]();}catch(_0x1882ea){}try{await RequestQueueHandler[_0x3237c6(0x1cf)]()[_0x3237c6(0x1c3)]();}catch(_0x499f25){}if(_0x28f78e[_0x3237c6(0x1d2)](hasO11yBuild))try{_0x28f78e[_0x3237c6(0x1f9)](printBuildLink);}catch(_0x379af3){}else logger[_0x3237c6(0x1c1)](_0x28f78e[_0x3237c6(0x1dd)]);process[_0x3237c6(0x1b9)]=_0x325b58;};
|
|
2
|
+
'use strict';const a42_0x17d54d=a42_0xce9c;(function(_0x4af4af,_0x585c62){const _0x1b5de7=a42_0xce9c,_0x1d2d44=_0x4af4af();while(!![]){try{const _0x1c3544=parseInt(_0x1b5de7(0x101))/0x1+parseInt(_0x1b5de7(0xf8))/0x2+-parseInt(_0x1b5de7(0x113))/0x3*(-parseInt(_0x1b5de7(0x118))/0x4)+parseInt(_0x1b5de7(0x12b))/0x5+parseInt(_0x1b5de7(0x11f))/0x6+-parseInt(_0x1b5de7(0x136))/0x7+-parseInt(_0x1b5de7(0x12c))/0x8;if(_0x1c3544===_0x585c62)break;else _0x1d2d44['push'](_0x1d2d44['shift']());}catch(_0x32540f){_0x1d2d44['push'](_0x1d2d44['shift']());}}}(a42_0x5cf3,0x75d6f));const path=require('path'),Module=require(a42_0x17d54d(0x141)),{fork}=require('child_process'),logger=require(a42_0x17d54d(0xf1))[a42_0x17d54d(0x11e)],helper=require(a42_0x17d54d(0x131)),TestHubHandler=require(a42_0x17d54d(0x132)),RequestQueueHandler=require('../../helpers/test-observability/requestQueueHandler'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{printBuildLink}=require(a42_0x17d54d(0xef)),BrowserstackCLI=require(a42_0x17d54d(0x15b)),CLIUtils=require('../v2/cliUtils');function registerBrowserStackReporter(){const _0x4d505e=a42_0x17d54d,_0x28514e={};_0x28514e['SXTKK']=function(_0x51047f,_0xf7d631){return _0x51047f===_0xf7d631;},_0x28514e[_0x4d505e(0x128)]=_0x4d505e(0xe6),_0x28514e[_0x4d505e(0x120)]=_0x4d505e(0x117),_0x28514e[_0x4d505e(0xf4)]=_0x4d505e(0x153);const _0x17dbc0=_0x28514e,_0x49ca55=path[_0x4d505e(0x10b)](__dirname,_0x17dbc0[_0x4d505e(0x120)],_0x17dbc0[_0x4d505e(0xf4)]),_0x9dba47=Module[_0x4d505e(0x111)];Module['_resolveFilename']=function(_0x2d9ade,_0x19649f,_0xba15fd,_0x1995a0){const _0x4c0391=_0x4d505e;if(_0x17dbc0[_0x4c0391(0x157)](_0x2d9ade,_0x17dbc0[_0x4c0391(0x128)]))return _0x49ca55;return _0x9dba47[_0x4c0391(0x159)](this,_0x2d9ade,_0x19649f,_0xba15fd,_0x1995a0);};}function injectReporterIntoArgs(_0x912b11){const _0x3c7109=a42_0x17d54d,_0x385e1b={};_0x385e1b['bNCZa']=function(_0x1b3946,_0x249a8c){return _0x1b3946<_0x249a8c;},_0x385e1b[_0x3c7109(0x126)]=function(_0x26daad,_0x32990f){return _0x26daad===_0x32990f;},_0x385e1b[_0x3c7109(0x100)]=function(_0x2dc6f7,_0x519ea1){return _0x2dc6f7===_0x519ea1;},_0x385e1b['zjDbE']=_0x3c7109(0xfc),_0x385e1b['TOsnu']=function(_0x40e2f5,_0x2a4f03){return _0x40e2f5+_0x2a4f03;},_0x385e1b['nLcsa']=function(_0x3bf6ce,_0x51b67e){return _0x3bf6ce===_0x51b67e;},_0x385e1b['Xhvnf']=function(_0x486ab3,_0x282b72){return _0x486ab3+_0x282b72;},_0x385e1b['ZMgND']=_0x3c7109(0x129),_0x385e1b[_0x3c7109(0x14e)]=function(_0x2c4797,_0x468c18){return _0x2c4797+_0x468c18;},_0x385e1b['eOrCd']=_0x3c7109(0x148),_0x385e1b[_0x3c7109(0xee)]=_0x3c7109(0x124);const _0x5972cf=_0x385e1b,_0x391a49=_0x912b11['slice']();for(let _0x28e788=0x0;_0x5972cf[_0x3c7109(0xfb)](_0x28e788,_0x391a49[_0x3c7109(0x146)]);_0x28e788++){if(_0x5972cf[_0x3c7109(0x126)](_0x391a49[_0x28e788],'-r')||_0x5972cf[_0x3c7109(0x100)](_0x391a49[_0x28e788],_0x5972cf[_0x3c7109(0x139)]))return _0x391a49[_0x5972cf['TOsnu'](_0x28e788,0x1)]&&_0x5972cf[_0x3c7109(0x104)](_0x391a49[_0x5972cf[_0x3c7109(0x13b)](_0x28e788,0x1)][_0x3c7109(0xfe)](_0x5972cf[_0x3c7109(0x156)]),-0x1)&&(_0x391a49[_0x5972cf[_0x3c7109(0x14e)](_0x28e788,0x1)]+=_0x5972cf[_0x3c7109(0x125)]),_0x391a49;}return _0x391a49[_0x3c7109(0xe9)]('-r',_0x5972cf[_0x3c7109(0xee)]),_0x391a49;}function runNewmanCLI(_0x1b16ec){const _0x26230f=a42_0x17d54d,_0x1746ce={'HnpIh':function(_0x299bf8,_0x97e835){return _0x299bf8>_0x97e835;},'adrxK':function(_0xeb617b,_0x504331){return _0xeb617b(_0x504331);},'VUbjj':function(_0x128180,_0x31abc4,_0x27454c){return _0x128180(_0x31abc4,_0x27454c);},'hSMdi':_0x26230f(0x107),'yiNIi':_0x26230f(0x112),'XwWLa':function(_0x293b73,_0x1c47ee){return _0x293b73(_0x1c47ee);},'HRWxG':function(_0x385377,_0x283b5e){return _0x385377(_0x283b5e);},'cUHoh':'module','evenl':_0x26230f(0x135),'qvSKL':function(_0x32c66d,_0x28b012){return _0x32c66d(_0x28b012);},'TNWET':'newman/bin/newman','RQReI':_0x26230f(0x122),'rFEyr':function(_0x3ad86d,_0x4277a3){return _0x3ad86d+_0x4277a3;},'uaNZO':_0x26230f(0x145),'aPMEp':function(_0x33fa92,_0x27fb8a){return _0x33fa92(_0x27fb8a);}};return new Promise(_0x2403fe=>{const _0x1f2455=_0x26230f,_0x1db05e={'JSkQv':function(_0x12929,_0xb32fc3){const _0x3c2781=a42_0xce9c;return _0x1746ce[_0x3c2781(0xeb)](_0x12929,_0xb32fc3);},'Hhwfm':function(_0x26ef59,_0x9861f2){const _0x1e4bba=a42_0xce9c;return _0x1746ce[_0x1e4bba(0x10e)](_0x26ef59,_0x9861f2);},'FQqXp':function(_0x1aebe5,_0x5026d7,_0x181f17){const _0x2048b4=a42_0xce9c;return _0x1746ce[_0x2048b4(0xfa)](_0x1aebe5,_0x5026d7,_0x181f17);}};let _0x226bc6;try{_0x226bc6=helper[_0x1f2455(0x10d)](_0x1746ce['hSMdi'],_0x1746ce[_0x1f2455(0x142)]);}catch(_0x457e23){return logger['error'](_0x1746ce['yiNIi']),_0x1746ce[_0x1f2455(0xf9)](_0x2403fe,0x1);}const _0x342ee7=_0x226bc6[_0x1f2455(0x134)];_0x226bc6['run']=function(_0x220804,_0x2b6284){const _0x80061d=_0x1f2455,_0x12ef99={'DcHIi':function(_0x2bbdf3,_0x3f3c80){const _0x137bbc=a42_0xce9c;return _0x1db05e[_0x137bbc(0x151)](_0x2bbdf3,_0x3f3c80);},'WeHSI':function(_0x3b7a61,_0x18ef2f){return _0x1db05e['Hhwfm'](_0x3b7a61,_0x18ef2f);},'ONWHf':function(_0x513e60,_0x41e0c3,_0x2accc3){const _0x1fc715=a42_0xce9c;return _0x1db05e[_0x1fc715(0x11b)](_0x513e60,_0x41e0c3,_0x2accc3);}};return _0x226bc6[_0x80061d(0x134)]=_0x342ee7,_0x342ee7[_0x80061d(0x159)](_0x226bc6,_0x220804,(_0x1b3152,_0x54d494)=>{const _0x468230=_0x80061d,_0x24a5cf=_0x54d494&&_0x54d494[_0x468230(0x134)]&&(_0x54d494[_0x468230(0x134)][_0x468230(0x11a)]||_0x54d494[_0x468230(0x134)][_0x468230(0x13f)]&&_0x12ef99['DcHIi'](_0x54d494[_0x468230(0x134)][_0x468230(0x13f)][_0x468230(0x146)],0x0));_0x12ef99['WeHSI'](_0x2403fe,_0x24a5cf?0x1:0x0),_0x2b6284&&_0x12ef99['ONWHf'](_0x2b6284,_0x1b3152,_0x54d494);});};try{const _0x40df2c=_0x1746ce[_0x1f2455(0x150)](require,_0x1746ce[_0x1f2455(0xf6)])[_0x1f2455(0x133)](path[_0x1f2455(0x10b)](process[_0x1f2455(0x14a)](),_0x1746ce[_0x1f2455(0xf2)]));_0x1746ce[_0x1f2455(0x143)](_0x40df2c,_0x1746ce[_0x1f2455(0x110)])([_0x1746ce[_0x1f2455(0x13c)],_0x1746ce[_0x1f2455(0x142)]][_0x1f2455(0x12d)](_0x1b16ec));}catch(_0x4dbc6a){_0x226bc6['run']=_0x342ee7,logger[_0x1f2455(0x11a)](_0x1746ce[_0x1f2455(0x10c)](_0x1746ce[_0x1f2455(0xf3)],_0x4dbc6a[_0x1f2455(0x155)])),_0x1746ce['aPMEp'](_0x2403fe,0x1);}});}function runNewmanScript(_0x16567a,_0x508b14){const _0x4e4325=a42_0x17d54d,_0x47a4e0={'isXkS':function(_0x297316,_0x815042){return _0x297316(_0x815042);},'SxuHr':function(_0x166758,_0x1a5e16){return _0x166758||_0x1a5e16;},'qmXNW':function(_0x39d3c,_0xdfd3fe,_0x57048c,_0x16c02d){return _0x39d3c(_0xdfd3fe,_0x57048c,_0x16c02d);},'aSfzY':_0x4e4325(0x10f),'WlOZk':_0x4e4325(0x13e),'bvBPf':_0x4e4325(0x149)};return new Promise(function(_0x267cde){const _0x3ddac7=_0x4e4325,_0x1f657c=_0x47a4e0['qmXNW'](fork,path[_0x3ddac7(0x10b)](__dirname,_0x47a4e0[_0x3ddac7(0xed)]),[_0x16567a,_0x47a4e0[_0x3ddac7(0x103)](String,_0x47a4e0[_0x3ddac7(0xf7)](_0x508b14,0x0))],{'stdio':_0x47a4e0[_0x3ddac7(0x114)],'env':Object['assign']({},process[_0x3ddac7(0x12a)])});_0x1f657c['on'](_0x47a4e0['bvBPf'],function(_0x2e8ac8){const _0x582cb3=_0x3ddac7;_0x47a4e0[_0x582cb3(0x103)](_0x267cde,_0x47a4e0[_0x582cb3(0xf7)](_0x2e8ac8,0x0));});});}function a42_0x5cf3(){const _0x16732=['Failed\x20to\x20bootstrap\x20CLI:\x20','VAbOQ','browserstack','env','1047910SoeqcV','14459432WVrxaN','concat','XiITx','cliConfig','NEWMAN','../../helpers/helper','../../helpers/testhub/testhubHandler','createRequire','run','package.json','1741642pXsTQn','[Newman]\x20Test\x20Observability\x20build\x20creation\x20failed.\x20Tests\x20will\x20run\x20but\x20results\x20will\x20not\x20appear\x20on\x20the\x20BrowserStack\x20dashboard.\x20Check\x20your\x20credentials\x20in\x20browserstack.yml.','GDnlK','zjDbE','SFqck','Xhvnf','RQReI','configPath','inherit','failures','[Newman]\x20Test\x20Observability\x20build\x20was\x20not\x20created.\x20No\x20build\x20link\x20available.\x20Check\x20your\x20credentials\x20in\x20browserstack.yml.','module','hSMdi','qvSKL','Gupop','Newman\x20CLI\x20not\x20found:\x20','length','AuAgz',',browserstack','close','cwd','stop','null','IfcOR','Hwktd','testObservability','HRWxG','JSkQv','setFrameworkDetail','index.js','nMFKO','message','ZMgND','SXTKK','bqtrv','call','BROWSERSTACK_TESTHUB_JWT','../v2/browserstackCLI','warn','XjxGE','txwHk','newman-reporter-browserstack','parallelsPerPlatform','shutdown','push','BROWSERSTACK_AUTOMATION','HnpIh','BByxt','aSfzY','drSGa','../../helpers/test-observability/utils','exitCode','../../helpers/logger','evenl','uaNZO','rNzLY','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','cUHoh','SxuHr','1826198iokjou','XwWLa','VUbjj','bNCZa','--reporters','Cauhm','indexOf','getInstance','VKtRs','279429vzupVK','launchBuild','isXkS','nLcsa','setBrowserstackConfig','config','newman','bootstrap','endsWith','slice','join','rFEyr','requireModule','adrxK','scriptRunner.js','TNWET','_resolveFilename','Newman\x20is\x20not\x20installed.\x20Please\x20install\x20newman:\x20npm\x20install\x20newman','3VUMyDq','WlOZk','O11yHashedID','Failed\x20to\x20launch\x20build:\x20','reporter','3130568uNPfBd','czmiB','error','FQqXp','isRunning','exports','winstonLogger','2124924FjrRPt','qfUWo','Qctfk','node','resolve','cli,browserstack','eOrCd','ueIjt'];a42_0x5cf3=function(){return _0x16732;};return a42_0x5cf3();}function hasO11yBuild(){const _0x382c70=a42_0x17d54d,_0x57e2d9={};_0x57e2d9[_0x382c70(0x138)]=function(_0xe8acc1,_0x139a35){return _0xe8acc1!==_0x139a35;},_0x57e2d9['txwHk']=_0x382c70(0x14c);const _0x593011=_0x57e2d9;return!!(BrowserstackCLI[_0x382c70(0x115)]||process['env'][_0x382c70(0x15a)]&&_0x593011[_0x382c70(0x138)](process['env'][_0x382c70(0x15a)],_0x593011[_0x382c70(0x15e)]));}function a42_0xce9c(_0x278ee0,_0x386121){const _0x5cf3e4=a42_0x5cf3();return a42_0xce9c=function(_0xce9c9c,_0x33a37d){_0xce9c9c=_0xce9c9c-0xe6;let _0x29623a=_0x5cf3e4[_0xce9c9c];return _0x29623a;},a42_0xce9c(_0x278ee0,_0x386121);}function runWithoutObservability(_0x25b17c,_0x301aa3){const _0x317a09=a42_0x17d54d,_0x17ae3a={'czmiB':function(_0x392df8,_0x2bbd81){return _0x392df8(_0x2bbd81);}};if(_0x25b17c)return _0x17ae3a[_0x317a09(0x119)](require,path[_0x317a09(0x123)](_0x25b17c)),0x0;return _0x17ae3a[_0x317a09(0x119)](runNewmanCLI,_0x301aa3);}module[a42_0x17d54d(0x11d)]=async function(_0x32f2e5,_0x111acb,_0x3a0a55){const _0x36f162=a42_0x17d54d,_0x22f349={'IfcOR':'.js','XjxGE':function(_0x459bc4,_0x51ad1a){return _0x459bc4===_0x51ad1a;},'Geipo':function(_0x3869d8,_0x4bdb8b){return _0x3869d8===_0x4bdb8b;},'Cauhm':'false','Qctfk':function(_0x13d58,_0x4512df,_0x3b7d06){return _0x13d58(_0x4512df,_0x3b7d06);},'ddRaJ':function(_0x378e0e,_0x4e87d7){return _0x378e0e!=_0x4e87d7;},'bqtrv':'true','Gupop':_0x36f162(0x107),'XiITx':function(_0x290d98,_0x1d7124){return _0x290d98+_0x1d7124;},'VZqpk':_0x36f162(0x127),'JMftL':_0x36f162(0x116),'SFqck':function(_0x1fd7c6){return _0x1fd7c6();},'LVFiH':_0x36f162(0x137),'AuAgz':function(_0x17c048,_0x2ce9d3){return _0x17c048(_0x2ce9d3);},'BByxt':function(_0xd57bd8,_0x50e876){return _0xd57bd8(_0x50e876);},'nMFKO':_0x36f162(0x140)},_0x24f300=_0x111acb[_0x36f162(0x10a)](0x1),_0x54f1ef=_0x24f300[0x0]&&_0x24f300[0x0][_0x36f162(0x109)](_0x22f349[_0x36f162(0x14d)])?_0x24f300[0x0]:null;if(!_0x3a0a55[_0x36f162(0x106)]||_0x22f349[_0x36f162(0x15d)](_0x3a0a55['config']['testObservability'],![])||_0x22f349['Geipo'](_0x3a0a55[_0x36f162(0x106)][_0x36f162(0x14f)],_0x22f349[_0x36f162(0xfd)])){process['exitCode']=await _0x22f349[_0x36f162(0x121)](runWithoutObservability,_0x54f1ef,_0x24f300)||0x0;return;}process[_0x36f162(0x12a)][_0x36f162(0xea)]=_0x22f349['Cauhm'],process[_0x36f162(0x12a)][_0x36f162(0xf5)]=_0x22f349[_0x36f162(0xfd)],process[_0x36f162(0x12a)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']=_0x22f349['ddRaJ'](_0x3a0a55['config'][_0x36f162(0x14f)],null)?_0x3a0a55['config'][_0x36f162(0x14f)]:_0x22f349[_0x36f162(0x158)],CLIUtils[_0x36f162(0x152)](_0x22f349[_0x36f162(0x144)],_0x22f349[_0x36f162(0x144)]),BrowserstackCLI[_0x36f162(0xff)]()[_0x36f162(0x105)](_0x3a0a55[_0x36f162(0x106)],_0x3a0a55[_0x36f162(0x13d)],_0x3a0a55[_0x36f162(0x12f)]);try{await BrowserstackCLI[_0x36f162(0xff)]()[_0x36f162(0x108)]();}catch(_0x45d658){logger[_0x36f162(0x11a)](_0x22f349[_0x36f162(0x12e)](_0x22f349['VZqpk'],_0x45d658[_0x36f162(0x155)]||_0x45d658));}if(!BrowserstackCLI['getInstance']()[_0x36f162(0x11c)]())try{await TestHubHandler[_0x36f162(0x102)](FRAMEWORKS[_0x36f162(0x130)],_0x3a0a55);}catch(_0x1cd5b5){logger[_0x36f162(0x11a)](_0x22f349['XiITx'](_0x22f349['JMftL'],_0x1cd5b5['message']||_0x1cd5b5));}!_0x22f349['SFqck'](hasO11yBuild)&&logger[_0x36f162(0x15c)](_0x22f349['LVFiH']);_0x22f349[_0x36f162(0x13a)](registerBrowserStackReporter);let _0x154977;_0x54f1ef?_0x154977=await _0x22f349[_0x36f162(0x121)](runNewmanScript,_0x54f1ef,_0x3a0a55[_0x36f162(0x106)][_0x36f162(0xe7)]):_0x154977=await _0x22f349[_0x36f162(0x147)](runNewmanCLI,_0x22f349[_0x36f162(0xec)](injectReporterIntoArgs,_0x24f300));try{await TestHubHandler[_0x36f162(0x14b)]();}catch(_0x58ee3d){}try{await BrowserstackCLI[_0x36f162(0xff)]()[_0x36f162(0x14b)]();}catch(_0x547cb5){}try{await RequestQueueHandler[_0x36f162(0xff)]()[_0x36f162(0xe8)]();}catch(_0x5c422b){}if(_0x22f349[_0x36f162(0x13a)](hasO11yBuild))try{_0x22f349[_0x36f162(0x13a)](printBuildLink);}catch(_0x53a4a9){}else logger[_0x36f162(0x15c)](_0x22f349[_0x36f162(0x154)]);process[_0x36f162(0xf0)]=_0x154977;};
|
package/src/bin/newman/helper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d54ad,_0x54cedf){const _0x45483f=a43_0x17c4,_0x2dbabe=_0x2d54ad();while(!![]){try{const _0x2ed272=parseInt(_0x45483f(0xfa))/0x1*(parseInt(_0x45483f(0xfb))/0x2)+-parseInt(_0x45483f(0xfc))/0x3*(parseInt(_0x45483f(0xfe))/0x4)+parseInt(_0x45483f(0xed))/0x5+parseInt(_0x45483f(0xf1))/0x6*(-parseInt(_0x45483f(0xf8))/0x7)+parseInt(_0x45483f(0xef))/0x8+-parseInt(_0x45483f(0xec))/0x9+-parseInt(_0x45483f(0xf6))/0xa*(-parseInt(_0x45483f(0xf2))/0xb);if(_0x2ed272===_0x54cedf)break;else _0x2dbabe['push'](_0x2dbabe['shift']());}catch(_0x598ef9){_0x2dbabe['push'](_0x2dbabe['shift']());}}}(a43_0x3a6b,0x1bf07));function isNewman(_0x2e0201){const _0x34af2e=a43_0x17c4,_0x522aa5={'pnnVy':function(_0xda1a8b,_0x1d00ec){return _0xda1a8b===_0x1d00ec;},'dPBfh':_0x34af2e(0xf9),'bleQv':function(_0x432bf8,_0xc8bcf1){return _0x432bf8===_0xc8bcf1;},'UxqtT':function(_0x3f8c0c,_0x127e68){return _0x3f8c0c(_0x127e68);},'eaTCi':function(_0x18e1a2,_0x16b132){return _0x18e1a2||_0x16b132;}},_0x27c7fd=process[_0x34af2e(0xf0)]['BROWSERSTACK_FRAMEWORK']||'';let _0x25aa5f='';_0x2e0201&&_0x2e0201[_0x34af2e(0xeb)]&&(_0x25aa5f=_0x2e0201[_0x34af2e(0xeb)]);const _0x39ec48=_0x522aa5[_0x34af2e(0xf7)](_0x27c7fd[_0x34af2e(0xee)](),_0x522aa5[_0x34af2e(0xf4)]),_0x247c4a=_0x522aa5[_0x34af2e(0xf3)](_0x522aa5[_0x34af2e(0xfd)](String,_0x25aa5f)[_0x34af2e(0xee)](),_0x522aa5[_0x34af2e(0xf4)]);return _0x522aa5[_0x34af2e(0xf5)](_0x39ec48,_0x247c4a);}function a43_0x17c4(_0xb8c6ac,_0x1df2ee){const _0x3a6b05=a43_0x3a6b();return a43_0x17c4=function(_0x17c4d3,_0x461e8c){_0x17c4d3=_0x17c4d3-0xeb;let _0x533445=_0x3a6b05[_0x17c4d3];return _0x533445;},a43_0x17c4(_0xb8c6ac,_0x1df2ee);}function a43_0x3a6b(){const _0x2ff89d=['1444581UULEuw','1077060VDYaTc','toLowerCase','341920DhwkPm','env','24LSRLoC','198uzivUl','bleQv','dPBfh','eaTCi','149230meAIKH','pnnVy','97797leaGPw','newman','7lMzisL','7694MOJkhG','3nQIcwq','UxqtT','891452FLuTXP','framework'];a43_0x3a6b=function(){return _0x2ff89d;};return a43_0x3a6b();};const a43_0x40e2fd={};a43_0x40e2fd['isNewman']=isNewman,module['exports']=a43_0x40e2fd;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a44_0x28ce0d=a44_0x55b4;(function(_0x4d466d,_0x52fad9){const _0x5c640a=a44_0x55b4,_0x963bc4=_0x4d466d();while(!![]){try{const _0x35f077=parseInt(_0x5c640a(0x265))/0x1+-parseInt(_0x5c640a(0x286))/0x2+parseInt(_0x5c640a(0x290))/0x3+parseInt(_0x5c640a(0x238))/0x4*(-parseInt(_0x5c640a(0x23b))/0x5)+parseInt(_0x5c640a(0x1e3))/0x6+-parseInt(_0x5c640a(0x1c5))/0x7*(parseInt(_0x5c640a(0x20f))/0x8)+parseInt(_0x5c640a(0x1f7))/0x9;if(_0x35f077===_0x52fad9)break;else _0x963bc4['push'](_0x963bc4['shift']());}catch(_0x43e471){_0x963bc4['push'](_0x963bc4['shift']());}}}(a44_0x1e92,0x2b504));const path=require(a44_0x28ce0d(0x293)),{v4:uuidv4}=require(a44_0x28ce0d(0x223)),SessionHandler=require(a44_0x28ce0d(0x1ab)),{debug}=require('../../../helpers/test-observability/utils'),logger=require(a44_0x28ce0d(0x23a))[a44_0x28ce0d(0x270)],BrowserstackCLI=require(a44_0x28ce0d(0x1d3)),GrpcClient=require(a44_0x28ce0d(0x279)),TestFrameworkState=require(a44_0x28ce0d(0x1e8)),HookState=require(a44_0x28ce0d(0x1ea)),LOG_LEVELS=[a44_0x28ce0d(0x23d),a44_0x28ce0d(0x294),a44_0x28ce0d(0x231),a44_0x28ce0d(0x1f0),'TRACE'];function isCLIRunning(){const _0x5ee2be=a44_0x28ce0d;try{return BrowserstackCLI[_0x5ee2be(0x1ad)]()[_0x5ee2be(0x210)]();}catch(_0x8afdda){return![];}}function a44_0x1e92(){const _0x41ecaf=['RkZIa','ogBPN','CCWZy','WOYDt','err','FBYlS','push','message','duiEq','XHLYe','failureReason','FuGXt','timestamp','dshmW','WdzXi','[Newman\x20Reporter]\x20Could\x20not\x20resolve\x20collection\x20file\x20path,\x20falling\x20back\x20to\x20collection.json','[Newman\x20Reporter]\x20Error\x20in\x20exception:\x20','newman','HvCGY','18792GFoegG','isRunning','GbPib','itemName','cursor','sZNdz','failure','HKUbY','hubLc','UnhandledError','jmuuA','TestRunFinished','QQBtd','[Newman\x20Reporter]\x20emitLog\x20error:\x20','YMKbU','No\x20HTTP\x20response\x20received','level','HMTqP','zMteo','length','uuid','method','concat','TYtOE','forEach','collectionName','httpLog','viTtZ','miIxz','getTestFramework','assertion','uuobn','TpqjL','PRpux','ERROR','AssertionError','ITbeT','status_code','bs:addLog:','collectionPath','cPzAu','228428THMNew','[Newman\x20Reporter]\x20Error\x20in\x20request:\x20','../../../helpers/logger','10PmJJIn','mUdpA','INFO','qaeuU','IOguV','result','relative','failureType','kind','WnoTJ','pdbmR','TEST','indexOf','resolve','SNhQc','VstWV','http','OWVYW','Hirmv','aesDR','vzYeM','url','removeListener','toString','ms)','beforeItem','SYwAE','BoQpe','listen','startsWith','BtLOF','failure_reason_expanded','KwsOD','BtcHQ','lmHPh','lDdWx','get','cwd','iKNQW','yLkJa','collection','UztUI','51869uTOWDB','includes','txIxO','UjhYK','item','RYHWT','finishedAt','riXFH','search','uploadEventData','TestRunStarted','winstonLogger','execution','argv','\x20—\x20response\x20status\x20in\x20failure\x20range','startedAt','zBNoj','testFrameworkState','now','beforeIteration','../../v2/grpcClient','EJhWS','event_type','collection.json','http://','bufferedLogs','HshWw','messages','BYULD','testFrameworkName','mdMyk','pathname','set','219810yGaiGH','oVkup','hostname','scopes','[Newman\x20Reporter]\x20emitTest\x20error:\x20','host','logCreatedEvent','N/A','toUpperCase','AOkUB','71916wxFUsp','GET','MBzDh','path','WARN','stack','PvMSU','oudem','WLgtJ','event','HTTP','../../../helpers/test-observability/sessionHandler','PRE','getInstance','byxGS','fOAkp','kIOua','expanded','object','Script\x20error\x20(','TEST_LOG','ref','[Newman\x20Reporter]\x20Error\x20in\x20console:\x20','BdiCI','assertions','sjNcY','parent','cnaXR','failed','join','LCoMO','request','bijsU','HTTP\x20','duration_ms','dYeVL','headers','427lYZSbn','ssuLU','response','backtrace','WsGQp','[Newman\x20Reporter]\x20Error\x20in\x20bs:addLog\x20handler:\x20','slice','PfnxI','YcQLs','http_response','rDRFP','MhNmr','SoFwH','tHFUt','../../v2/browserstackCLI','[Newman\x20Reporter]\x20Error\x20in\x20beforeItem:\x20','GFkYL','toISOString','):\x20','xRRld','code','cldfn','test_run','testFrameworkVersion','\x20->\x20','delete','BviAx','console','eLDzC','failure_backtrace','207576iPktQR','passed','WBiBq','\x20(HTTP\x20','lastResponseCode','../../v2/state/testFrameworkState','identifier','../../v2/state/hookState','vnhTY','\x20(no\x20assertions)','OHnCe','[Newman\x20Reporter]\x20Error\x20in\x20script:\x20','rICsG','DEBUG','info','name','erTpF','apply','split','bOSpF','3909447MBhYpw','ikckb','mWIlB','EwTDE','iebdZ'];a44_0x1e92=function(){return _0x41ecaf;};return a44_0x1e92();}function getParentTitles(_0x4982ea){const _0x2ae311=a44_0x28ce0d,_0x182e40={'vnhTY':function(_0x2424ba,_0x1ee997){return _0x2424ba(_0x1ee997);}},_0x574c60=[],_0x4277ac=_0x4982ea[_0x2ae311(0x1ba)]();return _0x4277ac&&_0x574c60[_0x2ae311(0x202)][_0x2ae311(0x1f4)](_0x574c60,_0x182e40[_0x2ae311(0x1eb)](getParentTitles,_0x4277ac)),_0x4982ea[_0x2ae311(0x1f2)]&&_0x574c60[_0x2ae311(0x202)](_0x182e40[_0x2ae311(0x1eb)](String,_0x4982ea[_0x2ae311(0x1f2)])),_0x574c60;}function normalizeLogLevel(_0x16b257){const _0x19fb8d=a44_0x28ce0d,_0x2d9f8d={};_0x2d9f8d['WBiBq']='INFO',_0x2d9f8d[_0x19fb8d(0x292)]=function(_0x364f30,_0x2bd8ce){return _0x364f30!==_0x2bd8ce;};const _0x3d5ebf=_0x2d9f8d;if(!_0x16b257)return _0x3d5ebf[_0x19fb8d(0x1e5)];const _0x151562=_0x16b257[_0x19fb8d(0x28e)]();return _0x3d5ebf['MBzDh'](LOG_LEVELS['indexOf'](_0x151562),-0x1)?_0x151562:_0x3d5ebf[_0x19fb8d(0x1e5)];}function resolveCollectionFile(_0x5841de,_0x21ccbd){const _0x376e10=a44_0x28ce0d,_0x4431b6={};_0x4431b6[_0x376e10(0x275)]=function(_0x318d0e,_0x34eddd){return _0x318d0e===_0x34eddd;},_0x4431b6[_0x376e10(0x1af)]='string',_0x4431b6[_0x376e10(0x226)]='run',_0x4431b6[_0x376e10(0x233)]=function(_0xc0d291,_0x2b6748){return _0xc0d291!==_0x2b6748;},_0x4431b6[_0x376e10(0x24d)]=function(_0x2cc4c1,_0x22a0ea){return _0x2cc4c1<_0x22a0ea;},_0x4431b6[_0x376e10(0x22b)]=function(_0x49dd95,_0x420937){return _0x49dd95+_0x420937;},_0x4431b6[_0x376e10(0x1f9)]=function(_0x117507,_0x29c6d1){return _0x117507+_0x29c6d1;},_0x4431b6[_0x376e10(0x205)]=_0x376e10(0x20b),_0x4431b6[_0x376e10(0x20e)]=_0x376e10(0x27c);const _0x330643=_0x4431b6;try{if(_0x21ccbd&&_0x21ccbd[_0x376e10(0x236)])return path[_0x376e10(0x241)](process[_0x376e10(0x260)](),path['resolve'](_0x21ccbd[_0x376e10(0x236)]));const _0x38d31c=_0x5841de[_0x376e10(0x263)];if(_0x330643[_0x376e10(0x275)](typeof _0x38d31c,_0x330643[_0x376e10(0x1af)]))return path[_0x376e10(0x241)](process[_0x376e10(0x260)](),path['resolve'](_0x38d31c));const _0x2b3206=process[_0x376e10(0x272)][_0x376e10(0x247)](_0x330643[_0x376e10(0x226)]);if(_0x330643['ITbeT'](_0x2b3206,-0x1)&&_0x330643[_0x376e10(0x24d)](_0x330643['miIxz'](_0x2b3206,0x1),process[_0x376e10(0x272)][_0x376e10(0x222)])){const _0x397e1a=process['argv'][_0x330643[_0x376e10(0x1f9)](_0x2b3206,0x1)];if(_0x397e1a&&!_0x397e1a[_0x376e10(0x258)]('-'))return path[_0x376e10(0x241)](process[_0x376e10(0x260)](),path['resolve'](_0x397e1a));}}catch(_0x1155be){}return logger['info'](_0x330643[_0x376e10(0x205)]),_0x330643[_0x376e10(0x20e)];}function resolveCollectionName(_0x2fa294){const _0x30b44f=a44_0x28ce0d,_0x139b59={};_0x139b59['CCWZy']=function(_0x74f47a,_0x5952dc){return _0x74f47a===_0x5952dc;},_0x139b59[_0x30b44f(0x23c)]=_0x30b44f(0x1b2);const _0x63a332=_0x139b59;try{const _0x3b0287=_0x2fa294['collection'];if(_0x3b0287&&_0x63a332[_0x30b44f(0x1fe)](typeof _0x3b0287,_0x63a332[_0x30b44f(0x23c)]))return _0x3b0287['name']||_0x3b0287[_0x30b44f(0x1f1)]&&_0x3b0287[_0x30b44f(0x1f1)][_0x30b44f(0x1f2)]||null;}catch(_0x2dae43){}return null;}function emitTest(_0x1d5e70,_0x3ed50b,_0x4bf6f7,_0x58aabf,_0x3e2deb){const _0x15812e=a44_0x28ce0d,_0xe085d4={'hubLc':function(_0x3af4be){return _0x3af4be();},'VstWV':'pending','yimpq':function(_0x11c7c2,_0x2609cf){return _0x11c7c2(_0x2609cf);},'LUDyT':_0x15812e(0x20d),'txIxO':'javascript','PRpux':function(_0x59afe3,_0x4716c5){return _0x59afe3!=_0x4716c5;},'vzYeM':function(_0x20dcd9,_0x40d777){return _0x20dcd9===_0x40d777;},'FuGXt':_0x15812e(0x26f),'BYULD':_0x15812e(0x21a)};if(_0xe085d4[_0x15812e(0x217)](isCLIRunning))try{const _0x2a3755=BrowserstackCLI[_0x15812e(0x1ad)]()[_0x15812e(0x22c)]();if(!_0x2a3755)return;_0x2a3755['trackEvent'](TestFrameworkState[_0x15812e(0x246)],_0x1d5e70,{'test':{'uuid':_0x3ed50b['uuid'],'name':_0x3ed50b[_0x15812e(0x1f2)],'scopes':_0x4bf6f7[_0x15812e(0x289)],'scope':_0x4bf6f7[_0x15812e(0x289)][_0x15812e(0x1bd)]('\x20'),'file_path':_0x58aabf,'location':_0x4bf6f7['collectionName'],'started_at':_0x4bf6f7['startedAt'],'finished_at':_0x3e2deb[_0x15812e(0x26b)]||null,'result':_0x3e2deb[_0x15812e(0x240)]||_0xe085d4[_0x15812e(0x24a)],'failure':_0x3e2deb['failure']||[],'failure_type':_0x3e2deb[_0x15812e(0x242)]||null,'failure_reason':_0x3e2deb[_0x15812e(0x206)]||null,'tags':[],'meta':{},'custom_metadata':{}}});}catch(_0x90617f){_0xe085d4['yimpq'](debug,_0x15812e(0x28a)+_0x90617f);}else{const _0x556813={'uuid':_0x3ed50b['uuid'],'name':_0x3ed50b[_0x15812e(0x1f2)],'framework':_0xe085d4['LUDyT'],'body':{'lang':_0xe085d4[_0x15812e(0x267)],'code':null},'scope':_0x4bf6f7[_0x15812e(0x289)][_0x15812e(0x1bd)]('\x20'),'scopes':_0x4bf6f7[_0x15812e(0x289)],'identifier':_0x3ed50b[_0x15812e(0x1e9)],'file_name':_0x4bf6f7[_0x15812e(0x228)],'vc_filepath':_0x4bf6f7['location'],'location':_0x4bf6f7['location'],'started_at':_0x4bf6f7[_0x15812e(0x274)],'finished_at':_0x3e2deb[_0x15812e(0x26b)]||null,'duration_in_ms':_0xe085d4[_0x15812e(0x230)](_0x3e2deb['durationMs'],null)?Math['max'](0x0,_0x3e2deb['durationMs']):null,'result':_0x3e2deb[_0x15812e(0x240)]||_0xe085d4[_0x15812e(0x24a)],'failure_reason':_0x3e2deb['failureReason']||null,'failure_type':_0x3e2deb[_0x15812e(0x242)]||null,'failure':_0x3e2deb[_0x15812e(0x215)]||[],'retry_of':null,'hooks':[]};_0x556813[_0x15812e(0x215)][0x0]&&(_0x556813[_0x15812e(0x1e2)]=_0x556813['failure'][0x0][_0x15812e(0x1c8)],_0x556813[_0x15812e(0x25a)]=_0x556813[_0x15812e(0x215)][0x0][_0x15812e(0x1b1)]);const _0x29abe2=_0xe085d4[_0x15812e(0x24f)](_0x1d5e70,HookState[_0x15812e(0x1ac)])?_0xe085d4[_0x15812e(0x207)]:_0xe085d4[_0x15812e(0x281)],_0x41d0e8={};_0x41d0e8[_0x15812e(0x27b)]=_0x29abe2,_0x41d0e8[_0x15812e(0x1db)]=_0x556813,SessionHandler['uploadEventData'](_0x41d0e8);}}function emitLog(_0x356aab,_0xe8ad3a){const _0x4e25e1=a44_0x28ce0d,_0x1e6696={'HkKep':'TEST_LOG','BSFrv':function(_0x2a84b6){return _0x2a84b6();},'OHnCe':function(_0x37ae90,_0x66d646){return _0x37ae90===_0x66d646;},'EwTDE':_0x4e25e1(0x1aa),'lDdWx':_0x4e25e1(0x20d),'bYKfE':'TEST','WnoTJ':'INFO','OlqXR':function(_0x325c32,_0x35d946){return _0x325c32(_0x35d946);},'WsGQp':function(_0x50b473,_0x8b602c){return _0x50b473+_0x8b602c;},'BtcHQ':_0x4e25e1(0x21c),'WLgtJ':'LogCreated'},_0xd65a86=_0xe8ad3a[_0x4e25e1(0x243)]||_0x1e6696['HkKep'],_0x48c1b9=_0xe8ad3a['timestamp']||new Date()['toISOString']();if(_0x1e6696['BSFrv'](isCLIRunning))try{const _0x3e4c11=_0x1e6696[_0x4e25e1(0x1ed)](_0xd65a86,_0x1e6696[_0x4e25e1(0x1fa)])?JSON['stringify'](_0xe8ad3a):_0xe8ad3a[_0x4e25e1(0x203)]||'',_0x265737={};_0x265737['platformIndex']=0x0,_0x265737[_0x4e25e1(0x282)]=_0x1e6696[_0x4e25e1(0x25e)],_0x265737[_0x4e25e1(0x1dc)]='',_0x265737[_0x4e25e1(0x276)]=_0x1e6696['bYKfE'],_0x265737['logs']=[{'uuid':_0x356aab,'timestamp':_0x48c1b9,'kind':_0xd65a86,'level':_0xe8ad3a[_0x4e25e1(0x21f)]||_0x1e6696[_0x4e25e1(0x244)],'message':_0x3e4c11}],GrpcClient['getInstance']()[_0x4e25e1(0x28c)](_0x265737);}catch(_0xeabe40){_0x1e6696['OlqXR'](debug,_0x1e6696[_0x4e25e1(0x1c9)](_0x1e6696[_0x4e25e1(0x25c)],_0xeabe40));}else{const _0x223246={};_0x223246['test_run_uuid']=_0x356aab,_0x223246[_0x4e25e1(0x208)]=_0x48c1b9,_0x223246[_0x4e25e1(0x21f)]=_0xe8ad3a[_0x4e25e1(0x21f)]||null,_0x223246['message']=_0xe8ad3a['message']||null,_0x223246[_0x4e25e1(0x243)]=_0xd65a86,_0x223246['http_response']=_0xe8ad3a[_0x4e25e1(0x1ce)]||{};const _0x4df00f={};_0x4df00f[_0x4e25e1(0x27b)]=_0x1e6696[_0x4e25e1(0x1a8)],_0x4df00f['logs']=[_0x223246],SessionHandler[_0x4e25e1(0x26e)](_0x4df00f);}}function BrowserStackNewmanReporter(_0x317173,_0x1da7ce,_0x282616){const _0x5085ad=a44_0x28ce0d,_0x825f91={'KwsOD':function(_0x1ad929,_0x3263be,_0x13fb38){return _0x1ad929(_0x3263be,_0x13fb38);},'cPzAu':function(_0x1249be,_0x82cd29){return _0x1249be(_0x82cd29);},'PvMSU':function(_0x5916e1,_0x136d89){return _0x5916e1(_0x136d89);},'dshmW':function(_0x40e6ab,_0x1fc6ba){return _0x40e6ab>_0x1fc6ba;},'ogBPN':_0x5085ad(0x24b),'YcQLs':function(_0x3d6f5e,_0x1dc18f){return _0x3d6f5e+_0x1dc18f;},'BdiCI':_0x5085ad(0x291),'LCoMO':function(_0x408b46,_0xb32d3b){return _0x408b46(_0xb32d3b);},'bijsU':_0x5085ad(0x1b4),'pdbmR':function(_0x55acbe){return _0x55acbe();},'sjNcY':function(_0x28b8a5,_0x21814f){return _0x28b8a5||_0x21814f;},'dUaWe':function(_0x5d40d9,_0x53b09c,_0x1cd5a5,_0x48e4c2,_0x32e1bb,_0x2f53c2){return _0x5d40d9(_0x53b09c,_0x1cd5a5,_0x48e4c2,_0x32e1bb,_0x2f53c2);},'kIOua':function(_0xb5b382,_0x4440e9){return _0xb5b382===_0x4440e9;},'UjhYK':_0x5085ad(0x1aa),'GbPib':function(_0x3cfdf6,_0x4a1acc){return _0x3cfdf6+_0x4a1acc;},'BoQpe':function(_0x48bd7f,_0x36544c){return _0x48bd7f+_0x36544c;},'HKUbY':function(_0x65e741,_0x11ea36){return _0x65e741+_0x11ea36;},'EJhWS':function(_0x225771,_0x2778a5){return _0x225771+_0x2778a5;},'erTpF':_0x5085ad(0x1dd),'MhNmr':_0x5085ad(0x253),'sZNdz':_0x5085ad(0x23d),'duiEq':function(_0xfb539a,_0x4c7bc9){return _0xfb539a>_0x4c7bc9;},'yLkJa':function(_0x525590,_0x5c0fce){return _0x525590-_0x5c0fce;},'uuobn':function(_0x16d8c0,_0xf2f878,_0x2bdec5){return _0x16d8c0(_0xf2f878,_0x2bdec5);},'WOYDt':function(_0x5b33ca,_0x438c16){return _0x5b33ca(_0x438c16);},'HshWw':function(_0x4e150c,_0x4d0c85){return _0x4e150c(_0x4d0c85);},'HMTqP':function(_0x3a49be,_0x5d8092){return _0x3a49be&&_0x5d8092;},'UztUI':function(_0xfa2f38,_0x4be6bd){return _0xfa2f38>_0x4be6bd;},'eOuZS':'Exception:\x20','OWVYW':_0x5085ad(0x231),'QQBtd':function(_0x129486,_0x31dc45){return _0x129486(_0x31dc45);},'xRRld':_0x5085ad(0x20c),'qaeuU':'unknown','iebdZ':function(_0x23bdc3,_0x53ac59){return _0x23bdc3+_0x53ac59;},'SoFwH':function(_0x5ba36b,_0x1eb520){return _0x5ba36b+_0x1eb520;},'lmHPh':_0x5085ad(0x1b3),'eLDzC':_0x5085ad(0x1d7),'AOkUB':function(_0x27afbd,_0x4ec7a6){return _0x27afbd+_0x4ec7a6;},'TePAS':_0x5085ad(0x1ee),'SYwAE':_0x5085ad(0x1bc),'YMKbU':_0x5085ad(0x1e4),'hddGa':function(_0x4555ab,_0x2fffb7){return _0x4555ab===_0x2fffb7;},'CXeoJ':_0x5085ad(0x232),'ikckb':'assert','tHFUt':_0x5085ad(0x218),'SNhQc':function(_0x2c40cd,_0x190763,_0x226821,_0x1c7c0e,_0x38f231,_0x5abddd){return _0x2c40cd(_0x190763,_0x226821,_0x1c7c0e,_0x38f231,_0x5abddd);},'bOSpF':function(_0x2e6695){return _0x2e6695();},'FBYlS':function(_0x21f1c4,_0x275047){return _0x21f1c4!=_0x275047;},'oudem':function(_0x3b741a,_0x331cdf){return _0x3b741a>=_0x331cdf;},'GFkYL':function(_0x5d143b,_0x409e61){return _0x5d143b<_0x409e61;},'BviAx':_0x5085ad(0x28d),'mdMyk':function(_0x2b0614,_0x2abf03){return _0x2b0614!=_0x2abf03;},'aesDR':_0x5085ad(0x21e),'BtLOF':function(_0x24092a,_0x17fac7,_0x1124a5){return _0x24092a(_0x17fac7,_0x1124a5);},'viTtZ':function(_0x1cf09d,_0x3e7687){return _0x1cf09d+_0x3e7687;},'sJHZS':function(_0x56df98,_0x323f17){return _0x56df98+_0x323f17;},'byxGS':function(_0x24f2d5,_0x46d459){return _0x24f2d5+_0x46d459;},'ssuLU':function(_0x2bca89,_0x53f397){return _0x2bca89+_0x53f397;},'JrbZF':function(_0x2f7de8,_0x1dce15){return _0x2f7de8+_0x1dce15;},'RkZIa':'HTTP\x20Status:\x20','dYeVL':_0x5085ad(0x1ec),'riXFH':function(_0x5754e1,_0x35e26e){return _0x5754e1(_0x35e26e);},'rICsG':function(_0x5cb55b,_0x3b5f00,_0x2f6aae){return _0x5cb55b(_0x3b5f00,_0x2f6aae);},'cnaXR':function(_0x524b9a,_0x1139f9){return _0x524b9a(_0x1139f9);},'WdzXi':'done','rDRFP':_0x5085ad(0x278),'RYHWT':_0x5085ad(0x254),'oJImJ':'request','IOguV':_0x5085ad(0x22d),'oVkup':_0x5085ad(0x1e0),'TpqjL':'exception','nXTea':'script','iKNQW':_0x5085ad(0x269)},_0x45415d=new Map();let _0x8a8345=null,_0x10d13f=0x0;const _0x8e7260=_0x825f91[_0x5085ad(0x1ef)](resolveCollectionFile,_0x282616,_0x1da7ce),_0x926108=_0x825f91[_0x5085ad(0x1bb)](resolveCollectionName,_0x282616)||_0x8e7260,_0x56ebfd=path[_0x5085ad(0x248)](_0x8e7260),_0x503757=_0x5085ad(0x235)+process['pid'],_0xd703be=_0x5282b3=>{const _0x3e3f1e=_0x5085ad;try{_0x8a8345&&_0x825f91[_0x3e3f1e(0x25b)](emitLog,_0x8a8345,_0x5282b3);}catch(_0x20f1fe){_0x825f91[_0x3e3f1e(0x237)](debug,_0x3e3f1e(0x1ca)+_0x20f1fe);}};process['on'](_0x503757,_0xd703be),_0x317173['on'](_0x825f91[_0x5085ad(0x20a)],()=>{const _0x269869=_0x5085ad;process[_0x269869(0x251)](_0x503757,_0xd703be),_0x45415d['clear']();}),_0x317173['on'](_0x825f91[_0x5085ad(0x1cf)],(_0x548611,_0xdbcbb0)=>{const _0x492f57=_0x5085ad;_0xdbcbb0&&_0xdbcbb0[_0x492f57(0x213)]&&(_0x10d13f=_0xdbcbb0[_0x492f57(0x213)]['iteration']||0x0);}),_0x317173['on'](_0x825f91[_0x5085ad(0x26a)],(_0x54f2d9,_0x3c07a3)=>{const _0x29a110=_0x5085ad;try{_0x8a8345=null;const _0x5b5a9a=_0x3c07a3[_0x29a110(0x269)],_0x2c2565=_0x5b5a9a[_0x29a110(0x1ba)]()?_0x825f91[_0x29a110(0x1a6)](getParentTitles,_0x5b5a9a[_0x29a110(0x1ba)]()):[],_0x3293f5=_0x825f91[_0x29a110(0x209)](_0x2c2565[_0x29a110(0x222)],0x1)?_0x2c2565[_0x29a110(0x1cb)](0x1):_0x2c2565,_0x472a75=_0x3c07a3[_0x29a110(0x213)]&&_0x3c07a3[_0x29a110(0x213)][_0x29a110(0x1b5)],_0x4950da={'itemName':_0x5b5a9a['name'],'scopes':_0x3293f5[_0x29a110(0x225)]([_0x5b5a9a[_0x29a110(0x1f2)]]),'location':_0x8e7260,'collectionName':_0x926108,'startedAt':new Date()['toISOString'](),'startTimestamp':Date[_0x29a110(0x277)](),'lastResponseCode':null,'httpLog':null,'assertions':[],'bufferedLogs':[]};_0x45415d[_0x29a110(0x285)](_0x5b5a9a['id']+'_'+_0x10d13f,_0x4950da),_0x472a75&&_0x45415d[_0x29a110(0x285)](_0x472a75+'_'+_0x10d13f,_0x4950da);}catch(_0x2f3ed5){_0x825f91[_0x29a110(0x237)](debug,_0x29a110(0x1d4)+_0x2f3ed5);}}),_0x317173['on'](_0x825f91['oJImJ'],(_0x5e0b0d,_0x47f205)=>{const _0x44831c=_0x5085ad;try{if(!_0x47f205||!_0x47f205[_0x44831c(0x269)])return;const _0x486481=_0x45415d[_0x44831c(0x25f)](_0x47f205[_0x44831c(0x269)]['id']+'_'+_0x10d13f);if(!_0x486481)return;_0x47f205['response']&&(_0x486481[_0x44831c(0x1e7)]=_0x47f205[_0x44831c(0x1c7)][_0x44831c(0x1d9)]||null);if(!_0x47f205[_0x44831c(0x1bf)])return;let _0x802b04='',_0x415081='';if(_0x47f205[_0x44831c(0x1bf)][_0x44831c(0x250)])try{const _0x3250c0=_0x47f205['request']['url'][_0x44831c(0x252)](),_0x3718ab=new URL(_0x3250c0[_0x44831c(0x258)](_0x825f91[_0x44831c(0x1fd)])?_0x3250c0:_0x44831c(0x27d)+_0x3250c0);_0x802b04=_0x3718ab[_0x44831c(0x288)],_0x415081=_0x825f91[_0x44831c(0x1cd)](_0x3718ab[_0x44831c(0x284)],_0x3718ab[_0x44831c(0x26d)]);}catch(_0x20b50f){_0x415081=_0x47f205['request'][_0x44831c(0x250)]['toString']();}const _0x24ff43={};_0x24ff43[_0x44831c(0x28b)]=_0x802b04,_0x24ff43['path']=_0x415081,_0x24ff43[_0x44831c(0x224)]=_0x47f205[_0x44831c(0x1bf)]['method']||_0x825f91[_0x44831c(0x1b7)],_0x24ff43[_0x44831c(0x1c4)]={},_0x24ff43[_0x44831c(0x234)]=_0x47f205[_0x44831c(0x1c7)]?_0x47f205[_0x44831c(0x1c7)]['code']||0x0:0x0,_0x24ff43['duration_ms']=_0x47f205['response']?_0x47f205[_0x44831c(0x1c7)]['responseTime']||0x0:0x0,_0x486481[_0x44831c(0x229)]=_0x24ff43;}catch(_0x4741b2){_0x825f91[_0x44831c(0x1be)](debug,_0x44831c(0x239)+_0x4741b2);}}),_0x317173['on'](_0x825f91[_0x5085ad(0x23f)],(_0x58120a,_0x579d64)=>{const _0x2f7982=_0x5085ad;try{if(!_0x579d64||!_0x579d64[_0x2f7982(0x269)])return;const _0x478946=_0x45415d[_0x2f7982(0x25f)](_0x579d64[_0x2f7982(0x269)]['id']+'_'+_0x10d13f);if(!_0x478946)return;const _0x26533e=_0x579d64[_0x2f7982(0x22d)]||'Assertion\x20'+_0x825f91['YcQLs'](_0x478946[_0x2f7982(0x1b8)][_0x2f7982(0x222)],0x1),_0x38362d=_0x825f91[_0x2f7982(0x245)](uuidv4),_0x5ea0b0=_0x478946[_0x2f7982(0x289)][_0x2f7982(0x225)]([_0x26533e])['join']('\x20');_0x478946[_0x2f7982(0x1b8)][_0x2f7982(0x202)]({'uuid':_0x38362d,'name':_0x26533e,'identifier':_0x5ea0b0,'err':_0x825f91[_0x2f7982(0x1b9)](_0x58120a,null)});const _0x1f817a={};_0x1f817a[_0x2f7982(0x223)]=_0x38362d,_0x1f817a[_0x2f7982(0x1f2)]=_0x26533e,_0x1f817a['identifier']=_0x5ea0b0,_0x825f91['dUaWe'](emitTest,HookState[_0x2f7982(0x1ac)],_0x1f817a,_0x478946,_0x56ebfd,{});_0x825f91[_0x2f7982(0x1b0)](_0x478946[_0x2f7982(0x1b8)]['length'],0x1)&&_0x825f91[_0x2f7982(0x209)](_0x478946[_0x2f7982(0x27e)]['length'],0x0)&&(_0x478946[_0x2f7982(0x27e)][_0x2f7982(0x227)](_0x38606e=>{const _0x4f559e=_0x2f7982;_0x825f91[_0x4f559e(0x25b)](emitLog,_0x38362d,{'kind':_0x825f91[_0x4f559e(0x1c0)],'message':_0x38606e['message'],'level':_0x38606e[_0x4f559e(0x21f)]});}),_0x478946['bufferedLogs']=[]);if(_0x478946[_0x2f7982(0x229)]){_0x825f91[_0x2f7982(0x25b)](emitLog,_0x38362d,{'kind':_0x825f91[_0x2f7982(0x268)],'http_response':_0x478946[_0x2f7982(0x229)]});const _0x50c549=_0x825f91['YcQLs'](_0x825f91['GbPib'](_0x825f91['BoQpe'](_0x825f91['BoQpe'](_0x825f91['YcQLs'](_0x825f91['YcQLs'](_0x825f91[_0x2f7982(0x216)](_0x825f91[_0x2f7982(0x27a)](_0x478946[_0x2f7982(0x229)]['method']||_0x825f91[_0x2f7982(0x1b7)],'\x20'),_0x478946[_0x2f7982(0x229)]['host']),_0x478946[_0x2f7982(0x229)][_0x2f7982(0x293)]),_0x825f91[_0x2f7982(0x1f3)]),_0x478946['httpLog']['status_code']),'\x20('),_0x478946[_0x2f7982(0x229)][_0x2f7982(0x1c2)]),_0x825f91[_0x2f7982(0x1d0)]);_0x825f91[_0x2f7982(0x25b)](emitLog,_0x38362d,{'kind':_0x825f91['bijsU'],'message':_0x50c549,'level':_0x825f91[_0x2f7982(0x214)]});}_0x8a8345=_0x38362d;}catch(_0x30156e){_0x825f91[_0x2f7982(0x237)](debug,'[Newman\x20Reporter]\x20Error\x20in\x20assertion:\x20'+_0x30156e);}}),_0x317173['on'](_0x825f91[_0x5085ad(0x287)],(_0x32b9c7,_0x46855e)=>{const _0x151ae9=_0x5085ad;try{if(!_0x46855e)return;let _0x47b3a4=_0x8a8345;if(!_0x47b3a4&&_0x46855e['cursor']&&_0x46855e[_0x151ae9(0x213)]['ref']){const _0x4239c3=_0x45415d[_0x151ae9(0x25f)](_0x46855e['cursor'][_0x151ae9(0x1b5)]+'_'+_0x10d13f);_0x4239c3&&_0x825f91[_0x151ae9(0x204)](_0x4239c3[_0x151ae9(0x1b8)][_0x151ae9(0x222)],0x0)&&(_0x47b3a4=_0x4239c3[_0x151ae9(0x1b8)][_0x825f91[_0x151ae9(0x262)](_0x4239c3['assertions']['length'],0x1)][_0x151ae9(0x223)]);}const _0x454135=_0x46855e[_0x151ae9(0x280)]?_0x46855e[_0x151ae9(0x280)][_0x151ae9(0x1bd)](',\x20'):'';if(_0x47b3a4)_0x825f91[_0x151ae9(0x22e)](emitLog,_0x47b3a4,{'kind':_0x825f91[_0x151ae9(0x1c0)],'message':_0x454135,'level':_0x825f91[_0x151ae9(0x237)](normalizeLogLevel,_0x46855e[_0x151ae9(0x21f)])});else{if(_0x46855e['cursor']&&_0x46855e[_0x151ae9(0x213)][_0x151ae9(0x1b5)]){const _0x2377a5=_0x45415d[_0x151ae9(0x25f)](_0x46855e[_0x151ae9(0x213)][_0x151ae9(0x1b5)]+'_'+_0x10d13f);_0x2377a5&&_0x2377a5[_0x151ae9(0x27e)][_0x151ae9(0x202)]({'timestamp':new Date()[_0x151ae9(0x1d6)](),'level':_0x825f91[_0x151ae9(0x1ff)](normalizeLogLevel,_0x46855e['level']),'message':_0x454135});}}}catch(_0x4e1397){_0x825f91[_0x151ae9(0x1be)](debug,_0x151ae9(0x1b6)+_0x4e1397);}}),_0x317173['on'](_0x825f91[_0x5085ad(0x22f)],(_0xec00fc,_0x57deb9)=>{const _0x22e2ce=_0x5085ad;try{if(!_0xec00fc&&(!_0x57deb9||!_0x57deb9['error']))return;const _0x12e019=_0xec00fc||_0x57deb9['error'],_0x5e8ad4=_0x12e019[_0x22e2ce(0x203)]||_0x825f91[_0x22e2ce(0x27f)](String,_0x12e019),_0x90070c=_0x12e019['stack']||_0x5e8ad4;let _0x387253=_0x8a8345;if(_0x825f91[_0x22e2ce(0x220)](!_0x387253,_0x57deb9)&&_0x57deb9[_0x22e2ce(0x213)]&&_0x57deb9[_0x22e2ce(0x213)][_0x22e2ce(0x1b5)]){const _0x370c72=_0x45415d[_0x22e2ce(0x25f)](_0x57deb9[_0x22e2ce(0x213)]['ref']+'_'+_0x10d13f);_0x370c72&&_0x825f91[_0x22e2ce(0x264)](_0x370c72[_0x22e2ce(0x1b8)]['length'],0x0)&&(_0x387253=_0x370c72[_0x22e2ce(0x1b8)][_0x825f91[_0x22e2ce(0x262)](_0x370c72[_0x22e2ce(0x1b8)][_0x22e2ce(0x222)],0x1)]['uuid']);}_0x387253&&_0x825f91[_0x22e2ce(0x25b)](emitLog,_0x387253,{'kind':_0x825f91[_0x22e2ce(0x1c0)],'message':_0x825f91[_0x22e2ce(0x256)](_0x825f91['eOuZS'],_0x90070c),'level':_0x825f91[_0x22e2ce(0x24c)]});}catch(_0x1cb37d){_0x825f91[_0x22e2ce(0x21b)](debug,_0x825f91[_0x22e2ce(0x27a)](_0x825f91[_0x22e2ce(0x1d8)],_0x1cb37d));}}),_0x317173['on'](_0x825f91['nXTea'],(_0x215b2b,_0x4afc54)=>{const _0x441d17=_0x5085ad;try{if(!_0x4afc54||!_0x4afc54[_0x441d17(0x271)])return;let _0x20fa54=_0x8a8345;if(!_0x20fa54&&_0x4afc54[_0x441d17(0x213)]&&_0x4afc54['cursor'][_0x441d17(0x1b5)]){const _0x1ec226=_0x45415d['get'](_0x4afc54[_0x441d17(0x213)][_0x441d17(0x1b5)]+'_'+_0x10d13f);_0x1ec226&&_0x825f91[_0x441d17(0x264)](_0x1ec226['assertions'][_0x441d17(0x222)],0x0)&&(_0x20fa54=_0x1ec226[_0x441d17(0x1b8)][_0x825f91[_0x441d17(0x262)](_0x1ec226[_0x441d17(0x1b8)][_0x441d17(0x222)],0x1)][_0x441d17(0x223)]);}if(!_0x20fa54)return;const _0x41282f=_0x4afc54['event']&&_0x4afc54[_0x441d17(0x1a9)][_0x441d17(0x257)]||_0x825f91[_0x441d17(0x23e)];_0x215b2b&&_0x825f91[_0x441d17(0x25b)](emitLog,_0x20fa54,{'kind':_0x825f91[_0x441d17(0x1c0)],'message':_0x825f91[_0x441d17(0x27a)](_0x825f91[_0x441d17(0x1fb)](_0x825f91[_0x441d17(0x1d1)](_0x825f91[_0x441d17(0x25d)],_0x41282f),_0x825f91[_0x441d17(0x1e1)]),_0x215b2b['message']||_0x215b2b),'level':_0x825f91[_0x441d17(0x24c)]});}catch(_0x44493a){_0x825f91[_0x441d17(0x1ff)](debug,_0x825f91[_0x441d17(0x28f)](_0x825f91['TePAS'],_0x44493a));}}),_0x317173['on'](_0x825f91[_0x5085ad(0x261)],(_0x7a18e5,_0x4ea999)=>{const _0x3ccfc2=_0x5085ad,_0x2c782d={'zMteo':_0x825f91[_0x3ccfc2(0x255)],'PfnxI':_0x825f91[_0x3ccfc2(0x21d)],'QmnwX':function(_0x44e2ca,_0x5a1cd3){return _0x825f91['hddGa'](_0x44e2ca,_0x5a1cd3);},'NNrzz':_0x825f91['CXeoJ'],'mIefF':_0x825f91[_0x3ccfc2(0x1f8)],'jmuuA':_0x825f91['tHFUt'],'cldfn':function(_0x131d5e,_0x4b4e45,_0x50e285,_0x5868f6,_0x59a160,_0x161534){const _0x14d2ba=_0x3ccfc2;return _0x825f91[_0x14d2ba(0x249)](_0x131d5e,_0x4b4e45,_0x50e285,_0x5868f6,_0x59a160,_0x161534);}};try{if(!_0x4ea999||!_0x4ea999[_0x3ccfc2(0x269)])return;const _0x2af567=_0x4ea999[_0x3ccfc2(0x269)]['id']+'_'+_0x10d13f,_0x3af933=_0x45415d[_0x3ccfc2(0x25f)](_0x2af567);if(!_0x3af933)return;const _0x170097=new Date(),_0x15df92=_0x825f91[_0x3ccfc2(0x262)](_0x170097['getTime'](),_0x3af933['startTimestamp']);if(_0x825f91[_0x3ccfc2(0x264)](_0x3af933[_0x3ccfc2(0x1b8)][_0x3ccfc2(0x222)],0x0))_0x3af933[_0x3ccfc2(0x1b8)][_0x3ccfc2(0x227)](_0x3ae594=>{const _0x44c284=_0x3ccfc2,_0x4f62db=!!_0x3ae594[_0x44c284(0x200)],_0x2e15fc={'finishedAt':_0x170097[_0x44c284(0x1d6)](),'durationMs':_0x15df92,'result':_0x4f62db?_0x2c782d[_0x44c284(0x221)]:_0x2c782d[_0x44c284(0x1cc)]};_0x4f62db&&(_0x2e15fc['failureReason']=_0x3ae594[_0x44c284(0x200)][_0x44c284(0x203)]||'',_0x2e15fc[_0x44c284(0x242)]=_0x2c782d['QmnwX'](_0x3ae594[_0x44c284(0x200)][_0x44c284(0x1f2)],_0x2c782d['NNrzz'])||_0x3ae594[_0x44c284(0x200)][_0x44c284(0x203)]&&_0x3ae594[_0x44c284(0x200)][_0x44c284(0x203)][_0x44c284(0x266)](_0x2c782d['mIefF'])?_0x2c782d['NNrzz']:_0x2c782d[_0x44c284(0x219)],_0x2e15fc[_0x44c284(0x215)]=[{'backtrace':_0x3ae594[_0x44c284(0x200)][_0x44c284(0x295)]?_0x3ae594[_0x44c284(0x200)]['stack'][_0x44c284(0x1f5)]('\x0a'):[_0x3ae594['err'][_0x44c284(0x203)]||''],'expanded':[]}]),_0x2c782d[_0x44c284(0x1da)](emitTest,HookState['POST'],_0x3ae594,_0x3af933,_0x56ebfd,_0x2e15fc);});else{const _0x477516=_0x825f91[_0x3ccfc2(0x1f6)](uuidv4),_0x15d1ae=_0x3af933[_0x3ccfc2(0x1e7)],_0xab994c=_0x825f91[_0x3ccfc2(0x201)](_0x15d1ae,null)&&_0x825f91[_0x3ccfc2(0x1a7)](_0x15d1ae,0xc8)&&_0x825f91[_0x3ccfc2(0x1d5)](_0x15d1ae,0x190),_0x53eb5e=_0x3af933[_0x3ccfc2(0x212)]+_0x3ccfc2(0x1e6)+_0x825f91[_0x3ccfc2(0x1b9)](_0x15d1ae,_0x825f91['BviAx'])+')',_0x3a1d11={'uuid':_0x477516,'name':_0x53eb5e,'identifier':_0x3af933[_0x3ccfc2(0x289)]['concat']([_0x53eb5e])[_0x3ccfc2(0x1bd)]('\x20')},_0x26b921={'finishedAt':_0x170097[_0x3ccfc2(0x1d6)](),'durationMs':_0x15df92,'result':_0xab994c?_0x825f91['YMKbU']:_0x825f91[_0x3ccfc2(0x255)]};!_0xab994c&&(_0x26b921['failureReason']=_0x825f91[_0x3ccfc2(0x283)](_0x15d1ae,null)?_0x3ccfc2(0x1c1)+_0x15d1ae+_0x3ccfc2(0x273):_0x825f91[_0x3ccfc2(0x24e)],_0x26b921[_0x3ccfc2(0x242)]=_0x825f91[_0x3ccfc2(0x1d2)],_0x26b921[_0x3ccfc2(0x215)]=[{'backtrace':[_0x26b921[_0x3ccfc2(0x206)]],'expanded':[]}]);_0x825f91['dUaWe'](emitTest,HookState[_0x3ccfc2(0x1ac)],_0x3a1d11,_0x3af933,_0x56ebfd,{}),_0x3af933[_0x3ccfc2(0x27e)][_0x3ccfc2(0x227)](_0x1a2abe=>{const _0x51f0db=_0x3ccfc2;_0x825f91['KwsOD'](emitLog,_0x477516,{'kind':_0x825f91['bijsU'],'message':_0x1a2abe[_0x51f0db(0x203)],'level':_0x1a2abe['level']});});if(_0x3af933[_0x3ccfc2(0x229)]){_0x825f91[_0x3ccfc2(0x259)](emitLog,_0x477516,{'kind':_0x825f91[_0x3ccfc2(0x268)],'http_response':_0x3af933['httpLog']});const _0x4237ff=_0x825f91[_0x3ccfc2(0x22a)](_0x825f91['SoFwH'](_0x825f91['sJHZS'](_0x825f91[_0x3ccfc2(0x1ae)](_0x825f91[_0x3ccfc2(0x1c6)](_0x825f91['YcQLs'](_0x825f91[_0x3ccfc2(0x211)](_0x825f91['iebdZ'](_0x3af933[_0x3ccfc2(0x229)][_0x3ccfc2(0x224)]||_0x825f91['BdiCI'],'\x20'),_0x3af933[_0x3ccfc2(0x229)][_0x3ccfc2(0x28b)]),_0x3af933[_0x3ccfc2(0x229)][_0x3ccfc2(0x293)]),_0x825f91['erTpF']),_0x3af933[_0x3ccfc2(0x229)]['status_code']),'\x20('),_0x3af933[_0x3ccfc2(0x229)]['duration_ms']),_0x825f91[_0x3ccfc2(0x1d0)]);_0x825f91[_0x3ccfc2(0x25b)](emitLog,_0x477516,{'kind':_0x825f91['bijsU'],'message':_0x4237ff,'level':_0x825f91['sZNdz']});}else _0x825f91[_0x3ccfc2(0x25b)](emitLog,_0x477516,{'kind':_0x825f91['bijsU'],'message':_0x825f91[_0x3ccfc2(0x27a)](_0x825f91['JrbZF'](_0x825f91[_0x3ccfc2(0x1fc)],_0x825f91[_0x3ccfc2(0x1b9)](_0x15d1ae,_0x825f91[_0x3ccfc2(0x1df)])),_0x825f91[_0x3ccfc2(0x1c3)]),'level':_0x825f91[_0x3ccfc2(0x214)]});_0x825f91[_0x3ccfc2(0x249)](emitTest,HookState['POST'],_0x3a1d11,_0x3af933,_0x56ebfd,_0x26b921);}_0x45415d['delete'](_0x2af567),_0x4ea999['cursor']&&_0x4ea999[_0x3ccfc2(0x213)][_0x3ccfc2(0x1b5)]&&_0x45415d[_0x3ccfc2(0x1de)](_0x4ea999[_0x3ccfc2(0x213)][_0x3ccfc2(0x1b5)]+'_'+_0x10d13f);}catch(_0x19b1a2){_0x825f91[_0x3ccfc2(0x26c)](debug,'[Newman\x20Reporter]\x20Error\x20in\x20item:\x20'+_0x19b1a2);}});}function a44_0x55b4(_0x30691a,_0x51021a){const _0x1e920c=a44_0x1e92();return a44_0x55b4=function(_0x55b46e,_0x3c01e0){_0x55b46e=_0x55b46e-0x1a6;let _0x1e5c0e=_0x1e920c[_0x55b46e];return _0x1e5c0e;},a44_0x55b4(_0x30691a,_0x51021a);}module['exports']=BrowserStackNewmanReporter;
|
|
1
|
+
'use strict';const a44_0x38f38b=a44_0x2619;(function(_0xb3d486,_0x1ac664){const _0x183f6d=a44_0x2619,_0x4177c2=_0xb3d486();while(!![]){try{const _0x182b5f=parseInt(_0x183f6d(0x1ca))/0x1*(parseInt(_0x183f6d(0x285))/0x2)+parseInt(_0x183f6d(0x1fe))/0x3+parseInt(_0x183f6d(0x277))/0x4+-parseInt(_0x183f6d(0x245))/0x5+parseInt(_0x183f6d(0x249))/0x6*(-parseInt(_0x183f6d(0x254))/0x7)+parseInt(_0x183f6d(0x23d))/0x8+parseInt(_0x183f6d(0x238))/0x9*(-parseInt(_0x183f6d(0x1dd))/0xa);if(_0x182b5f===_0x1ac664)break;else _0x4177c2['push'](_0x4177c2['shift']());}catch(_0x4317b8){_0x4177c2['push'](_0x4177c2['shift']());}}}(a44_0x17bf,0x2c523));const path=require(a44_0x38f38b(0x1a4)),{v4:uuidv4}=require(a44_0x38f38b(0x1a0)),SessionHandler=require('../../../helpers/test-observability/sessionHandler'),{debug}=require(a44_0x38f38b(0x1a9)),logger=require('../../../helpers/logger')[a44_0x38f38b(0x1fd)],BrowserstackCLI=require(a44_0x38f38b(0x19f)),GrpcClient=require(a44_0x38f38b(0x27a)),TestFrameworkState=require(a44_0x38f38b(0x265)),HookState=require(a44_0x38f38b(0x22d)),LOG_LEVELS=[a44_0x38f38b(0x21b),a44_0x38f38b(0x258),a44_0x38f38b(0x25f),a44_0x38f38b(0x1e8),'TRACE'];function a44_0x2619(_0x518888,_0x400ef0){const _0x17bfed=a44_0x17bf();return a44_0x2619=function(_0x261908,_0x50e2c8){_0x261908=_0x261908-0x19d;let _0x4ea2cf=_0x17bfed[_0x261908];return _0x4ea2cf;},a44_0x2619(_0x518888,_0x400ef0);}function isCLIRunning(){const _0x359443=a44_0x38f38b;try{return BrowserstackCLI[_0x359443(0x1c5)]()[_0x359443(0x1b4)]();}catch(_0x287556){return![];}}function getParentTitles(_0x1dd7ab){const _0x49ac3b=a44_0x38f38b,_0x38c78e={'OzGiN':function(_0x344ba3,_0x53b40d){return _0x344ba3(_0x53b40d);},'stAZp':function(_0x1b216e,_0x5a54e1){return _0x1b216e(_0x5a54e1);}},_0xea5e2f=[],_0x418376=_0x1dd7ab[_0x49ac3b(0x20d)]();return _0x418376&&_0xea5e2f['push'][_0x49ac3b(0x28e)](_0xea5e2f,_0x38c78e[_0x49ac3b(0x1a8)](getParentTitles,_0x418376)),_0x1dd7ab[_0x49ac3b(0x1e6)]&&_0xea5e2f[_0x49ac3b(0x293)](_0x38c78e[_0x49ac3b(0x25c)](String,_0x1dd7ab[_0x49ac3b(0x1e6)])),_0xea5e2f;}function normalizeLogLevel(_0x66de89){const _0x33d4dc=a44_0x38f38b,_0x2a22a9={};_0x2a22a9[_0x33d4dc(0x1cd)]='INFO',_0x2a22a9[_0x33d4dc(0x221)]=function(_0x4c555a,_0x10e28e){return _0x4c555a!==_0x10e28e;};const _0x2a7f53=_0x2a22a9;if(!_0x66de89)return _0x2a7f53['TtvVL'];const _0x484a4b=_0x66de89[_0x33d4dc(0x1d2)]();return _0x2a7f53[_0x33d4dc(0x221)](LOG_LEVELS['indexOf'](_0x484a4b),-0x1)?_0x484a4b:_0x2a7f53[_0x33d4dc(0x1cd)];}function resolveCollectionFile(_0x37098d,_0x183b81){const _0x3173d2=a44_0x38f38b,_0x531198={};_0x531198[_0x3173d2(0x1d9)]=function(_0x1c9848,_0x4bc8e4){return _0x1c9848===_0x4bc8e4;},_0x531198[_0x3173d2(0x1a3)]=_0x3173d2(0x233),_0x531198[_0x3173d2(0x269)]=_0x3173d2(0x1d7),_0x531198[_0x3173d2(0x27d)]=function(_0x4c92bd,_0x51ab3b){return _0x4c92bd!==_0x51ab3b;},_0x531198[_0x3173d2(0x263)]=function(_0x49e022,_0x5e937f){return _0x49e022<_0x5e937f;},_0x531198[_0x3173d2(0x239)]=function(_0x2711c8,_0x1baf95){return _0x2711c8+_0x1baf95;},_0x531198[_0x3173d2(0x234)]=function(_0x9ee3fe,_0x3b2f57){return _0x9ee3fe+_0x3b2f57;},_0x531198[_0x3173d2(0x26a)]=_0x3173d2(0x212),_0x531198[_0x3173d2(0x1c8)]=_0x3173d2(0x21a);const _0x4b8d5a=_0x531198;try{if(_0x183b81&&_0x183b81[_0x3173d2(0x257)])return path[_0x3173d2(0x1f0)](process[_0x3173d2(0x282)](),path['resolve'](_0x183b81['collectionPath']));const _0x1e132b=_0x37098d[_0x3173d2(0x1d4)];if(_0x4b8d5a[_0x3173d2(0x1d9)](typeof _0x1e132b,_0x4b8d5a['KkqOy']))return path[_0x3173d2(0x1f0)](process[_0x3173d2(0x282)](),path[_0x3173d2(0x27b)](_0x1e132b));const _0x498dd4=process[_0x3173d2(0x226)][_0x3173d2(0x270)](_0x4b8d5a[_0x3173d2(0x269)]);if(_0x4b8d5a[_0x3173d2(0x27d)](_0x498dd4,-0x1)&&_0x4b8d5a[_0x3173d2(0x263)](_0x4b8d5a[_0x3173d2(0x239)](_0x498dd4,0x1),process[_0x3173d2(0x226)][_0x3173d2(0x242)])){const _0x49c22e=process[_0x3173d2(0x226)][_0x4b8d5a[_0x3173d2(0x234)](_0x498dd4,0x1)];if(_0x49c22e&&!_0x49c22e[_0x3173d2(0x260)]('-'))return path[_0x3173d2(0x1f0)](process[_0x3173d2(0x282)](),path['resolve'](_0x49c22e));}}catch(_0x23ea90){}return logger['info'](_0x4b8d5a[_0x3173d2(0x26a)]),_0x4b8d5a[_0x3173d2(0x1c8)];}function resolveCollectionName(_0x508784){const _0x2483dc=a44_0x38f38b,_0x55eb22={};_0x55eb22[_0x2483dc(0x267)]=function(_0x235687,_0x555f80){return _0x235687===_0x555f80;},_0x55eb22[_0x2483dc(0x1af)]=_0x2483dc(0x25d);const _0x4db4bd=_0x55eb22;try{const _0x2d1aad=_0x508784[_0x2483dc(0x1d4)];if(_0x2d1aad&&_0x4db4bd['baFMT'](typeof _0x2d1aad,_0x4db4bd[_0x2483dc(0x1af)]))return _0x2d1aad[_0x2483dc(0x1e6)]||_0x2d1aad[_0x2483dc(0x290)]&&_0x2d1aad[_0x2483dc(0x290)][_0x2483dc(0x1e6)]||null;}catch(_0x337bd9){}return null;}function emitTest(_0x3ae6df,_0x846188,_0x17bb23,_0x15bdea,_0x371aa6){const _0x262892=a44_0x38f38b,_0x1df52e={'HipYZ':function(_0x4a9f4c){return _0x4a9f4c();},'yvGTy':_0x262892(0x248),'bCskk':function(_0x5d3be0,_0x2dfaa0){return _0x5d3be0(_0x2dfaa0);},'FclcM':_0x262892(0x26b),'RkJIh':_0x262892(0x1c0),'hLIzd':function(_0xd1a52e,_0x3904cd){return _0xd1a52e!=_0x3904cd;},'DrgyS':function(_0xc29abd,_0x31a699){return _0xc29abd===_0x31a699;},'wPJAu':_0x262892(0x1c3),'dZWmj':'TestRunFinished'};if(_0x1df52e['HipYZ'](isCLIRunning))try{const _0x1a2f3c=BrowserstackCLI[_0x262892(0x1c5)]()[_0x262892(0x227)]();if(!_0x1a2f3c)return;_0x1a2f3c[_0x262892(0x1b8)](TestFrameworkState['TEST'],_0x3ae6df,{'test':{'uuid':_0x846188[_0x262892(0x1a0)],'name':_0x846188[_0x262892(0x1e6)],'scopes':_0x17bb23['scopes'],'scope':_0x17bb23[_0x262892(0x23a)]['join']('\x20'),'file_path':_0x15bdea,'location':_0x17bb23[_0x262892(0x241)],'started_at':_0x17bb23[_0x262892(0x1bc)],'finished_at':_0x371aa6[_0x262892(0x1d3)]||null,'result':_0x371aa6[_0x262892(0x1ab)]||_0x1df52e[_0x262892(0x266)],'failure':_0x371aa6[_0x262892(0x1f8)]||[],'failure_type':_0x371aa6[_0x262892(0x235)]||null,'failure_reason':_0x371aa6[_0x262892(0x25b)]||null,'tags':[],'meta':{},'custom_metadata':{}}});}catch(_0x1d2ef6){_0x1df52e[_0x262892(0x211)](debug,_0x262892(0x1b2)+_0x1d2ef6);}else{const _0x4b56ea={'uuid':_0x846188[_0x262892(0x1a0)],'name':_0x846188[_0x262892(0x1e6)],'framework':_0x1df52e['FclcM'],'body':{'lang':_0x1df52e['RkJIh'],'code':null},'scope':_0x17bb23[_0x262892(0x23a)]['join']('\x20'),'scopes':_0x17bb23[_0x262892(0x23a)],'identifier':_0x846188[_0x262892(0x1a1)],'file_name':_0x17bb23['collectionName'],'vc_filepath':_0x17bb23[_0x262892(0x1b3)],'location':_0x17bb23[_0x262892(0x1b3)],'started_at':_0x17bb23['startedAt'],'finished_at':_0x371aa6[_0x262892(0x1d3)]||null,'duration_in_ms':_0x1df52e[_0x262892(0x1db)](_0x371aa6['durationMs'],null)?Math['max'](0x0,_0x371aa6[_0x262892(0x288)]):null,'result':_0x371aa6[_0x262892(0x1ab)]||_0x1df52e[_0x262892(0x266)],'failure_reason':_0x371aa6[_0x262892(0x25b)]||null,'failure_type':_0x371aa6[_0x262892(0x235)]||null,'failure':_0x371aa6[_0x262892(0x1f8)]||[],'retry_of':null,'hooks':[]};_0x4b56ea[_0x262892(0x1f8)][0x0]&&(_0x4b56ea[_0x262892(0x1b0)]=_0x4b56ea['failure'][0x0]['backtrace'],_0x4b56ea[_0x262892(0x250)]=_0x4b56ea['failure'][0x0][_0x262892(0x23e)]);const _0x1f1cdf=_0x1df52e['DrgyS'](_0x3ae6df,HookState['PRE'])?_0x1df52e['wPJAu']:_0x1df52e[_0x262892(0x259)],_0x199e4b={};_0x199e4b[_0x262892(0x24e)]=_0x1f1cdf,_0x199e4b[_0x262892(0x220)]=_0x4b56ea,SessionHandler[_0x262892(0x1aa)](_0x199e4b);}}function emitLog(_0x5a49e2,_0x50129c){const _0x34c629=a44_0x38f38b,_0x2704c1={'Gjxww':'TEST_LOG','cjSKE':function(_0x4b1627){return _0x4b1627();},'vKuRx':function(_0x5a25c0,_0x5c4735){return _0x5a25c0===_0x5c4735;},'UWCXV':_0x34c629(0x1a2),'qZlxm':_0x34c629(0x26b),'Vcuds':_0x34c629(0x294),'oHWwf':_0x34c629(0x21b),'RAoeg':function(_0x45ebb1,_0x261095){return _0x45ebb1(_0x261095);},'lXRjt':function(_0x4e87b6,_0x1737d2){return _0x4e87b6+_0x1737d2;},'tGScS':_0x34c629(0x25a),'nUHBx':'LogCreated'},_0x12f94a=_0x50129c[_0x34c629(0x244)]||_0x2704c1['Gjxww'],_0x1b5cfa=_0x50129c[_0x34c629(0x1b1)]||new Date()['toISOString']();if(_0x2704c1['cjSKE'](isCLIRunning))try{const _0x23664b=_0x2704c1[_0x34c629(0x261)](_0x12f94a,_0x2704c1[_0x34c629(0x26e)])?JSON['stringify'](_0x50129c):_0x50129c['message']||'',_0x5cc9c3={};_0x5cc9c3[_0x34c629(0x27f)]=0x0,_0x5cc9c3[_0x34c629(0x24b)]=_0x2704c1[_0x34c629(0x1f2)],_0x5cc9c3[_0x34c629(0x20e)]='',_0x5cc9c3[_0x34c629(0x28c)]=_0x2704c1['Vcuds'],_0x5cc9c3[_0x34c629(0x1ae)]=[{'uuid':_0x5a49e2,'timestamp':_0x1b5cfa,'kind':_0x12f94a,'level':_0x50129c['level']||_0x2704c1[_0x34c629(0x1b6)],'message':_0x23664b}],GrpcClient[_0x34c629(0x1c5)]()[_0x34c629(0x253)](_0x5cc9c3);}catch(_0x264c58){_0x2704c1[_0x34c629(0x1f1)](debug,_0x2704c1[_0x34c629(0x23c)](_0x2704c1[_0x34c629(0x26c)],_0x264c58));}else{const _0x296f91={};_0x296f91['test_run_uuid']=_0x5a49e2,_0x296f91[_0x34c629(0x1b1)]=_0x1b5cfa,_0x296f91[_0x34c629(0x1f7)]=_0x50129c['level']||null,_0x296f91[_0x34c629(0x1cb)]=_0x50129c[_0x34c629(0x1cb)]||null,_0x296f91[_0x34c629(0x244)]=_0x12f94a,_0x296f91[_0x34c629(0x1cc)]=_0x50129c[_0x34c629(0x1cc)]||{};const _0x9c4da={};_0x9c4da[_0x34c629(0x24e)]=_0x2704c1[_0x34c629(0x276)],_0x9c4da[_0x34c629(0x1ae)]=[_0x296f91],SessionHandler['uploadEventData'](_0x9c4da);}}function BrowserStackNewmanReporter(_0x529692,_0x273789,_0x2d5ef4){const _0x33b8f3=a44_0x38f38b,_0x175fb3={'oJipe':function(_0x36f7cc,_0x6f7744,_0x561360){return _0x36f7cc(_0x6f7744,_0x561360);},'xSPJu':function(_0x3ebd56,_0x3fe0c1){return _0x3ebd56(_0x3fe0c1);},'iLfJK':function(_0x39d244,_0x4f23a9){return _0x39d244(_0x4f23a9);},'LctEH':function(_0x3647e4,_0x28d63d){return _0x3647e4>_0x28d63d;},'fsiAI':function(_0x28261b,_0x4cb798){return _0x28261b(_0x4cb798);},'TeNVu':'http','WmSvJ':function(_0x4c3e03,_0x248097){return _0x4c3e03+_0x248097;},'ZDXKX':_0x33b8f3(0x22e),'aYVQY':function(_0x4f657c,_0xd23b7a){return _0x4f657c(_0xd23b7a);},'UGCSQ':_0x33b8f3(0x23f),'UwAsM':function(_0x11aadc,_0xb6149c){return _0x11aadc+_0xb6149c;},'HnZjE':function(_0x48e412){return _0x48e412();},'iVAXK':function(_0x48da07,_0x577130){return _0x48da07||_0x577130;},'HmDns':function(_0x674a2c,_0x16fa6d,_0x3f660e,_0x511ce6,_0x4d9362,_0x45bf7a){return _0x674a2c(_0x16fa6d,_0x3f660e,_0x511ce6,_0x4d9362,_0x45bf7a);},'MzQtN':function(_0x3d6c16,_0x50eee0){return _0x3d6c16===_0x50eee0;},'aZSYL':_0x33b8f3(0x1a2),'qJUEo':function(_0x472f81,_0x261d70){return _0x472f81+_0x261d70;},'oZxwx':function(_0x49d52c,_0x778de2){return _0x49d52c+_0x778de2;},'VNkBp':'\x20->\x20','hbNGy':_0x33b8f3(0x203),'zMyoJ':function(_0x14f003,_0x458d7e,_0x566312){return _0x14f003(_0x458d7e,_0x566312);},'dhSnU':'INFO','rRQtO':function(_0x2f413c,_0x5b2007){return _0x2f413c>_0x5b2007;},'EEhnQ':function(_0x260d04,_0x326f9b){return _0x260d04-_0x326f9b;},'UtQjz':function(_0x22925f,_0x5bec2d){return _0x22925f(_0x5bec2d);},'aZbAx':function(_0x23d268,_0x1721a4){return _0x23d268&&_0x1721a4;},'TWqWe':function(_0x539ab7,_0x33b383){return _0x539ab7>_0x33b383;},'RYUgm':function(_0x498a1d,_0x32ec38){return _0x498a1d-_0x32ec38;},'crPJF':function(_0x92bbce,_0x5230bc,_0x480b09){return _0x92bbce(_0x5230bc,_0x480b09);},'QqyZR':function(_0x19ad04,_0x43bd6d){return _0x19ad04+_0x43bd6d;},'WhVZV':_0x33b8f3(0x262),'NxgeP':'ERROR','IeHWk':function(_0x159c02,_0x440639){return _0x159c02(_0x440639);},'jHVli':_0x33b8f3(0x1da),'fboIO':function(_0x4ff0c7,_0x3ae504){return _0x4ff0c7>_0x3ae504;},'zrynx':_0x33b8f3(0x1c9),'FWfTU':function(_0x1d67fa,_0x44b645,_0x197193){return _0x1d67fa(_0x44b645,_0x197193);},'MoRiP':function(_0x287209,_0x3116c8){return _0x287209+_0x3116c8;},'tvoSR':function(_0x2a78cc,_0x4c11df){return _0x2a78cc+_0x4c11df;},'NOzzP':function(_0x14d96b,_0x5e1f6e){return _0x14d96b+_0x5e1f6e;},'RhPNH':_0x33b8f3(0x246),'Aqgsu':_0x33b8f3(0x24f),'SLJoW':_0x33b8f3(0x26f),'PJMKd':_0x33b8f3(0x229),'MSuQB':_0x33b8f3(0x1ba),'YKXLo':_0x33b8f3(0x28d),'GsQAp':_0x33b8f3(0x219),'gJqhS':_0x33b8f3(0x217),'oySMk':function(_0x22eba8,_0x511b6c,_0xdb6c25){return _0x22eba8(_0x511b6c,_0xdb6c25);},'CBwYo':function(_0x4f7596,_0xae7cae){return _0x4f7596-_0xae7cae;},'kzyJN':function(_0xc1cb3b){return _0xc1cb3b();},'ezTJs':function(_0x5d1643,_0x876b75){return _0x5d1643!=_0x876b75;},'EJiVx':function(_0x3e3773,_0x1e10fe){return _0x3e3773>=_0x1e10fe;},'knZvr':function(_0x37ac9a,_0x525640){return _0x37ac9a<_0x525640;},'OFMxb':_0x33b8f3(0x1bd),'nomLG':_0x33b8f3(0x1bb),'zFWdr':function(_0x472a88,_0x41fc80,_0x5c1322){return _0x472a88(_0x41fc80,_0x5c1322);},'YNJmj':function(_0x3a87d4,_0x2f1d56){return _0x3a87d4+_0x2f1d56;},'TNSzQ':function(_0x53c384,_0x34f51c){return _0x53c384+_0x34f51c;},'TJYEa':function(_0x10eb9b,_0x2205ac){return _0x10eb9b+_0x2205ac;},'mUFWM':function(_0x576e66,_0x4f5c49){return _0x576e66+_0x4f5c49;},'oqnKd':function(_0x45527d,_0x369e6e,_0x1b98f3){return _0x45527d(_0x369e6e,_0x1b98f3);},'INJIi':function(_0x3e581c,_0x2a0051,_0x11fbc0){return _0x3e581c(_0x2a0051,_0x11fbc0);},'gSeLq':function(_0x592540,_0x481429){return _0x592540+_0x481429;},'dXafu':'HTTP\x20Status:\x20','hTWxU':function(_0x4b6236,_0x4378ea){return _0x4b6236||_0x4378ea;},'RTAUZ':_0x33b8f3(0x1b7),'ozdgb':function(_0x5e635d,_0x4612c7,_0x1419ef,_0x22fdcd,_0x2ec712,_0x34831b){return _0x5e635d(_0x4612c7,_0x1419ef,_0x22fdcd,_0x2ec712,_0x34831b);},'SvnNQ':function(_0x46d48f,_0x45a3de,_0xe954cf){return _0x46d48f(_0x45a3de,_0xe954cf);},'GMOjy':'done','WakMH':'beforeIteration','DVCud':_0x33b8f3(0x222),'OnmlF':_0x33b8f3(0x1d6),'xOiWa':_0x33b8f3(0x236),'WmztK':_0x33b8f3(0x1f5),'MYGrR':_0x33b8f3(0x247),'DrplY':_0x33b8f3(0x252),'uobRl':_0x33b8f3(0x1e7)},_0x26a498=new Map();let _0x3fa241=null,_0x4c019c=0x0;const _0x19eec2=_0x175fb3[_0x33b8f3(0x255)](resolveCollectionFile,_0x2d5ef4,_0x273789),_0x2509e4=_0x175fb3['IeHWk'](resolveCollectionName,_0x2d5ef4)||_0x19eec2,_0x4ac4d5=path[_0x33b8f3(0x27b)](_0x19eec2),_0xd84fc0=_0x33b8f3(0x213)+process[_0x33b8f3(0x21e)],_0x200066=_0x24b089=>{const _0x367b28=_0x33b8f3;try{_0x3fa241&&_0x175fb3[_0x367b28(0x1ea)](emitLog,_0x3fa241,_0x24b089);}catch(_0x485313){_0x175fb3['xSPJu'](debug,_0x367b28(0x1e1)+_0x485313);}};process['on'](_0xd84fc0,_0x200066),_0x529692['on'](_0x175fb3[_0x33b8f3(0x215)],()=>{const _0x18c085=_0x33b8f3;process[_0x18c085(0x1bf)](_0xd84fc0,_0x200066),_0x26a498[_0x18c085(0x1ee)]();}),_0x529692['on'](_0x175fb3[_0x33b8f3(0x20f)],(_0x12b61d,_0x4cb28f)=>{const _0x5a08ec=_0x33b8f3;_0x4cb28f&&_0x4cb28f[_0x5a08ec(0x1be)]&&(_0x4c019c=_0x4cb28f[_0x5a08ec(0x1be)]['iteration']||0x0);}),_0x529692['on'](_0x175fb3[_0x33b8f3(0x1eb)],(_0x681874,_0x1a40d4)=>{const _0x2160d8=_0x33b8f3;try{_0x3fa241=null;const _0x54fffd=_0x1a40d4[_0x2160d8(0x1e7)],_0x400e34=_0x54fffd[_0x2160d8(0x20d)]()?_0x175fb3[_0x2160d8(0x1e2)](getParentTitles,_0x54fffd['parent']()):[],_0x558f80=_0x175fb3[_0x2160d8(0x206)](_0x400e34[_0x2160d8(0x242)],0x1)?_0x400e34[_0x2160d8(0x1fb)](0x1):_0x400e34,_0x3fab74=_0x1a40d4[_0x2160d8(0x1be)]&&_0x1a40d4[_0x2160d8(0x1be)][_0x2160d8(0x274)],_0x3c8d1b={'itemName':_0x54fffd['name'],'scopes':_0x558f80[_0x2160d8(0x224)]([_0x54fffd[_0x2160d8(0x1e6)]]),'location':_0x19eec2,'collectionName':_0x2509e4,'startedAt':new Date()['toISOString'](),'startTimestamp':Date[_0x2160d8(0x22f)](),'lastResponseCode':null,'httpLog':null,'assertions':[],'bufferedLogs':[]};_0x26a498['set'](_0x54fffd['id']+'_'+_0x4c019c,_0x3c8d1b),_0x3fab74&&_0x26a498[_0x2160d8(0x1ed)](_0x3fab74+'_'+_0x4c019c,_0x3c8d1b);}catch(_0x3fdddd){_0x175fb3['fsiAI'](debug,'[Newman\x20Reporter]\x20Error\x20in\x20beforeItem:\x20'+_0x3fdddd);}}),_0x529692['on'](_0x175fb3['OnmlF'],(_0x2511be,_0xe25f41)=>{const _0x30dd41=_0x33b8f3;try{if(!_0xe25f41||!_0xe25f41[_0x30dd41(0x1e7)])return;const _0x29357e=_0x26a498[_0x30dd41(0x202)](_0xe25f41[_0x30dd41(0x1e7)]['id']+'_'+_0x4c019c);if(!_0x29357e)return;_0xe25f41[_0x30dd41(0x28a)]&&(_0x29357e[_0x30dd41(0x21c)]=_0xe25f41[_0x30dd41(0x28a)]['code']||null);if(!_0xe25f41[_0x30dd41(0x1d6)])return;let _0x1e8763='',_0x2798f8='';if(_0xe25f41[_0x30dd41(0x1d6)][_0x30dd41(0x268)])try{const _0x56995c=_0xe25f41[_0x30dd41(0x1d6)]['url'][_0x30dd41(0x19d)](),_0x35e784=new URL(_0x56995c[_0x30dd41(0x260)](_0x175fb3['TeNVu'])?_0x56995c:'http://'+_0x56995c);_0x1e8763=_0x35e784['hostname'],_0x2798f8=_0x175fb3['WmSvJ'](_0x35e784[_0x30dd41(0x287)],_0x35e784[_0x30dd41(0x1cf)]);}catch(_0x4674e9){_0x2798f8=_0xe25f41[_0x30dd41(0x1d6)][_0x30dd41(0x268)][_0x30dd41(0x19d)]();}const _0x433618={};_0x433618['host']=_0x1e8763,_0x433618[_0x30dd41(0x1a4)]=_0x2798f8,_0x433618[_0x30dd41(0x24a)]=_0xe25f41['request']['method']||_0x175fb3[_0x30dd41(0x216)],_0x433618[_0x30dd41(0x1e0)]={},_0x433618[_0x30dd41(0x20a)]=_0xe25f41['response']?_0xe25f41[_0x30dd41(0x28a)][_0x30dd41(0x24c)]||0x0:0x0,_0x433618[_0x30dd41(0x228)]=_0xe25f41[_0x30dd41(0x28a)]?_0xe25f41[_0x30dd41(0x28a)]['responseTime']||0x0:0x0,_0x29357e[_0x30dd41(0x27e)]=_0x433618;}catch(_0xe329e4){_0x175fb3[_0x30dd41(0x1ff)](debug,_0x30dd41(0x1c6)+_0xe329e4);}}),_0x529692['on'](_0x175fb3[_0x33b8f3(0x1b5)],(_0x1818f0,_0xab1cb)=>{const _0x3d8822=_0x33b8f3;try{if(!_0xab1cb||!_0xab1cb[_0x3d8822(0x1e7)])return;const _0x455f9e=_0x26a498[_0x3d8822(0x202)](_0xab1cb[_0x3d8822(0x1e7)]['id']+'_'+_0x4c019c);if(!_0x455f9e)return;const _0x13737e=_0xab1cb['assertion']||_0x3d8822(0x240)+_0x175fb3['UwAsM'](_0x455f9e[_0x3d8822(0x28b)][_0x3d8822(0x242)],0x1),_0x1aaff6=_0x175fb3['HnZjE'](uuidv4),_0x1d3289=_0x455f9e[_0x3d8822(0x23a)][_0x3d8822(0x224)]([_0x13737e])[_0x3d8822(0x19e)]('\x20');_0x455f9e[_0x3d8822(0x28b)]['push']({'uuid':_0x1aaff6,'name':_0x13737e,'identifier':_0x1d3289,'err':_0x175fb3[_0x3d8822(0x208)](_0x1818f0,null)});const _0x15c95d={};_0x15c95d[_0x3d8822(0x1a0)]=_0x1aaff6,_0x15c95d['name']=_0x13737e,_0x15c95d['identifier']=_0x1d3289,_0x175fb3[_0x3d8822(0x237)](emitTest,HookState['PRE'],_0x15c95d,_0x455f9e,_0x4ac4d5,{});_0x175fb3[_0x3d8822(0x1e9)](_0x455f9e[_0x3d8822(0x28b)][_0x3d8822(0x242)],0x1)&&_0x175fb3[_0x3d8822(0x206)](_0x455f9e[_0x3d8822(0x1c4)][_0x3d8822(0x242)],0x0)&&(_0x455f9e['bufferedLogs'][_0x3d8822(0x280)](_0x2ab5ab=>{const _0x4dff30=_0x3d8822;_0x175fb3[_0x4dff30(0x1ea)](emitLog,_0x1aaff6,{'kind':_0x175fb3[_0x4dff30(0x207)],'message':_0x2ab5ab['message'],'level':_0x2ab5ab[_0x4dff30(0x1f7)]});}),_0x455f9e[_0x3d8822(0x1c4)]=[]);if(_0x455f9e[_0x3d8822(0x27e)]){_0x175fb3['oJipe'](emitLog,_0x1aaff6,{'kind':_0x175fb3['aZSYL'],'http_response':_0x455f9e['httpLog']});const _0x280a76=_0x175fb3['UwAsM'](_0x175fb3[_0x3d8822(0x1ad)](_0x175fb3[_0x3d8822(0x279)](_0x175fb3[_0x3d8822(0x1e4)](_0x175fb3[_0x3d8822(0x279)](_0x175fb3[_0x3d8822(0x1ad)](_0x175fb3['UwAsM'](_0x175fb3['oZxwx'](_0x455f9e[_0x3d8822(0x27e)][_0x3d8822(0x24a)]||_0x175fb3['ZDXKX'],'\x20'),_0x455f9e[_0x3d8822(0x27e)][_0x3d8822(0x27c)]),_0x455f9e['httpLog'][_0x3d8822(0x1a4)]),_0x175fb3['VNkBp']),_0x455f9e[_0x3d8822(0x27e)]['status_code']),'\x20('),_0x455f9e['httpLog'][_0x3d8822(0x228)]),_0x175fb3[_0x3d8822(0x21f)]);_0x175fb3[_0x3d8822(0x278)](emitLog,_0x1aaff6,{'kind':_0x175fb3[_0x3d8822(0x207)],'message':_0x280a76,'level':_0x175fb3['dhSnU']});}_0x3fa241=_0x1aaff6;}catch(_0x34a773){_0x175fb3[_0x3d8822(0x291)](debug,_0x3d8822(0x292)+_0x34a773);}}),_0x529692['on'](_0x175fb3[_0x33b8f3(0x205)],(_0xdb38c2,_0x3fda16)=>{const _0x5b4430=_0x33b8f3;try{if(!_0x3fda16)return;let _0x3889b1=_0x3fa241;if(!_0x3889b1&&_0x3fda16['cursor']&&_0x3fda16[_0x5b4430(0x1be)][_0x5b4430(0x274)]){const _0xd154af=_0x26a498[_0x5b4430(0x202)](_0x3fda16['cursor'][_0x5b4430(0x274)]+'_'+_0x4c019c);_0xd154af&&_0x175fb3['rRQtO'](_0xd154af[_0x5b4430(0x28b)]['length'],0x0)&&(_0x3889b1=_0xd154af['assertions'][_0x175fb3[_0x5b4430(0x1b9)](_0xd154af[_0x5b4430(0x28b)]['length'],0x1)]['uuid']);}const _0x377315=_0x3fda16[_0x5b4430(0x201)]?_0x3fda16[_0x5b4430(0x201)]['join'](',\x20'):'';if(_0x3889b1)_0x175fb3[_0x5b4430(0x278)](emitLog,_0x3889b1,{'kind':_0x175fb3[_0x5b4430(0x207)],'message':_0x377315,'level':_0x175fb3[_0x5b4430(0x1ff)](normalizeLogLevel,_0x3fda16['level'])});else{if(_0x3fda16['cursor']&&_0x3fda16['cursor']['ref']){const _0x335961=_0x26a498[_0x5b4430(0x202)](_0x3fda16[_0x5b4430(0x1be)][_0x5b4430(0x274)]+'_'+_0x4c019c);_0x335961&&_0x335961[_0x5b4430(0x1c4)][_0x5b4430(0x293)]({'timestamp':new Date()['toISOString'](),'level':_0x175fb3[_0x5b4430(0x1ff)](normalizeLogLevel,_0x3fda16[_0x5b4430(0x1f7)]),'message':_0x377315});}}}catch(_0x2ded80){_0x175fb3[_0x5b4430(0x1e2)](debug,'[Newman\x20Reporter]\x20Error\x20in\x20console:\x20'+_0x2ded80);}}),_0x529692['on'](_0x175fb3['MYGrR'],(_0x213f62,_0x589b4f)=>{const _0x1fe354=_0x33b8f3;try{if(!_0x213f62&&(!_0x589b4f||!_0x589b4f[_0x1fe354(0x1c7)]))return;const _0x325dec=_0x213f62||_0x589b4f['error'],_0x222186=_0x325dec[_0x1fe354(0x1cb)]||_0x175fb3[_0x1fe354(0x218)](String,_0x325dec),_0x5634bd=_0x325dec['stack']||_0x222186;let _0x203288=_0x3fa241;if(_0x175fb3[_0x1fe354(0x1c2)](!_0x203288,_0x589b4f)&&_0x589b4f[_0x1fe354(0x1be)]&&_0x589b4f[_0x1fe354(0x1be)][_0x1fe354(0x274)]){const _0x105bdd=_0x26a498['get'](_0x589b4f[_0x1fe354(0x1be)]['ref']+'_'+_0x4c019c);_0x105bdd&&_0x175fb3[_0x1fe354(0x225)](_0x105bdd[_0x1fe354(0x28b)][_0x1fe354(0x242)],0x0)&&(_0x203288=_0x105bdd['assertions'][_0x175fb3[_0x1fe354(0x289)](_0x105bdd[_0x1fe354(0x28b)][_0x1fe354(0x242)],0x1)][_0x1fe354(0x1a0)]);}_0x203288&&_0x175fb3['crPJF'](emitLog,_0x203288,{'kind':_0x175fb3[_0x1fe354(0x207)],'message':_0x175fb3[_0x1fe354(0x24d)](_0x175fb3[_0x1fe354(0x272)],_0x5634bd),'level':_0x175fb3[_0x1fe354(0x1e3)]});}catch(_0x198d88){_0x175fb3[_0x1fe354(0x20b)](debug,_0x175fb3[_0x1fe354(0x1e4)](_0x175fb3['jHVli'],_0x198d88));}}),_0x529692['on'](_0x175fb3[_0x33b8f3(0x1c1)],(_0x2e5a70,_0x2099c8)=>{const _0xca475c=_0x33b8f3;try{if(!_0x2099c8||!_0x2099c8[_0xca475c(0x283)])return;let _0x5e9610=_0x3fa241;if(!_0x5e9610&&_0x2099c8[_0xca475c(0x1be)]&&_0x2099c8[_0xca475c(0x1be)]['ref']){const _0x4f2482=_0x26a498[_0xca475c(0x202)](_0x2099c8[_0xca475c(0x1be)][_0xca475c(0x274)]+'_'+_0x4c019c);_0x4f2482&&_0x175fb3['fboIO'](_0x4f2482[_0xca475c(0x28b)][_0xca475c(0x242)],0x0)&&(_0x5e9610=_0x4f2482[_0xca475c(0x28b)][_0x175fb3['EEhnQ'](_0x4f2482[_0xca475c(0x28b)][_0xca475c(0x242)],0x1)]['uuid']);}if(!_0x5e9610)return;const _0x1a73f9=_0x2099c8[_0xca475c(0x1ce)]&&_0x2099c8[_0xca475c(0x1ce)][_0xca475c(0x28f)]||_0x175fb3[_0xca475c(0x1a6)];_0x2e5a70&&_0x175fb3[_0xca475c(0x281)](emitLog,_0x5e9610,{'kind':_0x175fb3['UGCSQ'],'message':_0x175fb3['MoRiP'](_0x175fb3[_0xca475c(0x22a)](_0x175fb3[_0xca475c(0x264)](_0x175fb3[_0xca475c(0x1d1)],_0x1a73f9),_0x175fb3[_0xca475c(0x223)]),_0x2e5a70[_0xca475c(0x1cb)]||_0x2e5a70),'level':_0x175fb3[_0xca475c(0x1e3)]});}catch(_0x34e431){_0x175fb3[_0xca475c(0x1e2)](debug,_0x175fb3[_0xca475c(0x264)](_0x175fb3[_0xca475c(0x251)],_0x34e431));}}),_0x529692['on'](_0x175fb3[_0x33b8f3(0x271)],(_0x4a3fc5,_0x1a07e2)=>{const _0x59acce=_0x33b8f3;try{if(!_0x1a07e2||!_0x1a07e2[_0x59acce(0x1e7)])return;const _0x4ffeb5=_0x1a07e2['item']['id']+'_'+_0x4c019c,_0x44409e=_0x26a498[_0x59acce(0x202)](_0x4ffeb5);if(!_0x44409e)return;const _0x26460c=new Date(),_0x24645c=_0x175fb3[_0x59acce(0x1f6)](_0x26460c[_0x59acce(0x1d8)](),_0x44409e[_0x59acce(0x23b)]);if(_0x175fb3[_0x59acce(0x26d)](_0x44409e[_0x59acce(0x28b)]['length'],0x0))_0x44409e['assertions'][_0x59acce(0x280)](_0x740a35=>{const _0x58e967=_0x59acce,_0x16963e=!!_0x740a35['err'],_0x323203={'finishedAt':_0x26460c[_0x58e967(0x21d)](),'durationMs':_0x24645c,'result':_0x16963e?_0x175fb3['PJMKd']:_0x175fb3[_0x58e967(0x204)]};_0x16963e&&(_0x323203['failureReason']=_0x740a35[_0x58e967(0x230)][_0x58e967(0x1cb)]||'',_0x323203['failureType']=_0x175fb3[_0x58e967(0x1e9)](_0x740a35[_0x58e967(0x230)][_0x58e967(0x1e6)],_0x175fb3[_0x58e967(0x210)])||_0x740a35[_0x58e967(0x230)][_0x58e967(0x1cb)]&&_0x740a35[_0x58e967(0x230)][_0x58e967(0x1cb)][_0x58e967(0x200)](_0x175fb3['GsQAp'])?_0x175fb3['YKXLo']:_0x175fb3[_0x58e967(0x22c)],_0x323203[_0x58e967(0x1f8)]=[{'backtrace':_0x740a35[_0x58e967(0x230)][_0x58e967(0x1d5)]?_0x740a35[_0x58e967(0x230)][_0x58e967(0x1d5)][_0x58e967(0x1de)]('\x0a'):[_0x740a35[_0x58e967(0x230)][_0x58e967(0x1cb)]||''],'expanded':[]}]),_0x175fb3[_0x58e967(0x237)](emitTest,HookState[_0x58e967(0x256)],_0x740a35,_0x44409e,_0x4ac4d5,_0x323203);});else{const _0x430955=_0x175fb3[_0x59acce(0x1d0)](uuidv4),_0x59e46b=_0x44409e['lastResponseCode'],_0x2bd0fa=_0x175fb3[_0x59acce(0x1a7)](_0x59e46b,null)&&_0x175fb3[_0x59acce(0x1f9)](_0x59e46b,0xc8)&&_0x175fb3[_0x59acce(0x1ac)](_0x59e46b,0x190),_0x344a57=_0x44409e['itemName']+_0x59acce(0x1f4)+_0x175fb3[_0x59acce(0x208)](_0x59e46b,_0x175fb3[_0x59acce(0x275)])+')',_0x2c3185={'uuid':_0x430955,'name':_0x344a57,'identifier':_0x44409e[_0x59acce(0x23a)][_0x59acce(0x224)]([_0x344a57])[_0x59acce(0x19e)]('\x20')},_0x1fb46a={'finishedAt':_0x26460c[_0x59acce(0x21d)](),'durationMs':_0x24645c,'result':_0x2bd0fa?_0x175fb3['MSuQB']:_0x175fb3[_0x59acce(0x1fc)]};!_0x2bd0fa&&(_0x1fb46a[_0x59acce(0x25b)]=_0x175fb3[_0x59acce(0x1a7)](_0x59e46b,null)?'HTTP\x20'+_0x59e46b+_0x59acce(0x1ef):_0x175fb3[_0x59acce(0x232)],_0x1fb46a[_0x59acce(0x235)]=_0x175fb3['gJqhS'],_0x1fb46a[_0x59acce(0x1f8)]=[{'backtrace':[_0x1fb46a['failureReason']],'expanded':[]}]);_0x175fb3[_0x59acce(0x237)](emitTest,HookState[_0x59acce(0x273)],_0x2c3185,_0x44409e,_0x4ac4d5,{}),_0x44409e[_0x59acce(0x1c4)][_0x59acce(0x280)](_0x29c4c7=>{const _0x528634=_0x59acce;_0x175fb3[_0x528634(0x1ec)](emitLog,_0x430955,{'kind':_0x175fb3['UGCSQ'],'message':_0x29c4c7['message'],'level':_0x29c4c7[_0x528634(0x1f7)]});});if(_0x44409e[_0x59acce(0x27e)]){_0x175fb3[_0x59acce(0x209)](emitLog,_0x430955,{'kind':_0x175fb3[_0x59acce(0x1df)],'http_response':_0x44409e[_0x59acce(0x27e)]});const _0x559c06=_0x175fb3[_0x59acce(0x1e5)](_0x175fb3[_0x59acce(0x1f3)](_0x175fb3[_0x59acce(0x286)](_0x175fb3['QqyZR'](_0x175fb3[_0x59acce(0x22a)](_0x175fb3[_0x59acce(0x25e)](_0x175fb3[_0x59acce(0x1e4)](_0x175fb3[_0x59acce(0x24d)](_0x44409e[_0x59acce(0x27e)][_0x59acce(0x24a)]||_0x175fb3[_0x59acce(0x216)],'\x20'),_0x44409e['httpLog'][_0x59acce(0x27c)]),_0x44409e[_0x59acce(0x27e)][_0x59acce(0x1a4)]),_0x175fb3[_0x59acce(0x284)]),_0x44409e[_0x59acce(0x27e)][_0x59acce(0x20a)]),'\x20('),_0x44409e[_0x59acce(0x27e)]['duration_ms']),_0x175fb3['hbNGy']);_0x175fb3[_0x59acce(0x1fa)](emitLog,_0x430955,{'kind':_0x175fb3['UGCSQ'],'message':_0x559c06,'level':_0x175fb3[_0x59acce(0x214)]});}else _0x175fb3['INJIi'](emitLog,_0x430955,{'kind':_0x175fb3[_0x59acce(0x207)],'message':_0x175fb3[_0x59acce(0x20c)](_0x175fb3[_0x59acce(0x22b)](_0x175fb3['dXafu'],_0x175fb3[_0x59acce(0x1dc)](_0x59e46b,_0x175fb3[_0x59acce(0x275)])),_0x175fb3[_0x59acce(0x1a5)]),'level':_0x175fb3[_0x59acce(0x214)]});_0x175fb3[_0x59acce(0x231)](emitTest,HookState[_0x59acce(0x256)],_0x2c3185,_0x44409e,_0x4ac4d5,_0x1fb46a);}_0x26a498[_0x59acce(0x243)](_0x4ffeb5),_0x1a07e2['cursor']&&_0x1a07e2['cursor'][_0x59acce(0x274)]&&_0x26a498[_0x59acce(0x243)](_0x1a07e2[_0x59acce(0x1be)]['ref']+'_'+_0x4c019c);}catch(_0x5dd19c){_0x175fb3[_0x59acce(0x1ff)](debug,'[Newman\x20Reporter]\x20Error\x20in\x20item:\x20'+_0x5dd19c);}});}function a44_0x17bf(){const _0x56b2ff=['pid','hbNGy','test_run','NXbBk','beforeItem','Aqgsu','concat','TWqWe','argv','getTestFramework','duration_ms','failed','tvoSR','gSeLq','gJqhS','../../v2/state/hookState','GET','now','err','ozdgb','nomLG','string','bRBXo','failureType','assertion','HmDns','2373741Xlezvl','uMsJZ','scopes','startTimestamp','lXRjt','2361216BebjIN','expanded','TEST_LOG','Assertion\x20','collectionName','length','delete','kind','917060jeDwWK','Script\x20error\x20(','exception','pending','2051292neQtRp','method','testFrameworkName','code','QqyZR','event_type','):\x20','failure_reason_expanded','SLJoW','script','logCreatedEvent','7pLpbrl','SvnNQ','POST','collectionPath','WARN','dZWmj','[Newman\x20Reporter]\x20emitLog\x20error:\x20','failureReason','stAZp','object','mUFWM','ERROR','startsWith','vKuRx','Exception:\x20','zviqi','NOzzP','../../v2/state/testFrameworkState','yvGTy','baFMT','url','RzFbH','WllnA','newman','tGScS','rRQtO','UWCXV','[Newman\x20Reporter]\x20Error\x20in\x20script:\x20','indexOf','uobRl','WhVZV','PRE','ref','OFMxb','nUHBx','1104280JVnuOA','zMyoJ','WmSvJ','../../v2/grpcClient','resolve','host','zdJRp','httpLog','platformIndex','forEach','FWfTU','cwd','execution','VNkBp','150bRWBGI','TJYEa','pathname','durationMs','RYUgm','response','assertions','testFrameworkState','AssertionError','apply','listen','info','xSPJu','[Newman\x20Reporter]\x20Error\x20in\x20assertion:\x20','push','TEST','toString','join','../../v2/browserstackCLI','uuid','identifier','HTTP','KkqOy','path','RTAUZ','zrynx','ezTJs','OzGiN','../../../helpers/test-observability/utils','uploadEventData','result','knZvr','UwAsM','logs','rztXY','failure_backtrace','timestamp','[Newman\x20Reporter]\x20emitTest\x20error:\x20','location','isRunning','xOiWa','oHWwf','\x20(no\x20assertions)','trackEvent','EEhnQ','passed','No\x20HTTP\x20response\x20received','startedAt','N/A','cursor','removeListener','javascript','DrplY','aZbAx','TestRunStarted','bufferedLogs','getInstance','[Newman\x20Reporter]\x20Error\x20in\x20request:\x20','error','HxQCq','unknown','4034cXxLmn','message','http_response','TtvVL','event','search','kzyJN','RhPNH','toUpperCase','finishedAt','collection','stack','request','run','getTime','DdeZy','[Newman\x20Reporter]\x20Error\x20in\x20exception:\x20','hLIzd','hTWxU','20cblCQw','split','aZSYL','headers','[Newman\x20Reporter]\x20Error\x20in\x20bs:addLog\x20handler:\x20','iLfJK','NxgeP','qJUEo','YNJmj','name','item','DEBUG','MzQtN','oJipe','DVCud','oySMk','set','clear','\x20—\x20response\x20status\x20in\x20failure\x20range','relative','RAoeg','qZlxm','TNSzQ','\x20(HTTP\x20','console','CBwYo','level','failure','EJiVx','oqnKd','slice','PJMKd','winstonLogger','1081677KKNYQv','aYVQY','includes','messages','get','ms)','MSuQB','WmztK','LctEH','UGCSQ','iVAXK','zFWdr','status_code','IeHWk','MoRiP','parent','testFrameworkVersion','WakMH','YKXLo','bCskk','[Newman\x20Reporter]\x20Could\x20not\x20resolve\x20collection\x20file\x20path,\x20falling\x20back\x20to\x20collection.json','bs:addLog:','dhSnU','GMOjy','ZDXKX','UnhandledError','UtQjz','assert','collection.json','INFO','lastResponseCode','toISOString'];a44_0x17bf=function(){return _0x56b2ff;};return a44_0x17bf();}module['exports']=BrowserStackNewmanReporter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a45_0x29b335=a45_0x3a60;(function(_0x374d31,_0x2f7bb6){const _0x5f4c3f=a45_0x3a60,_0x3403f4=_0x374d31();while(!![]){try{const _0x3da13e=-parseInt(_0x5f4c3f(0xa3))/0x1+parseInt(_0x5f4c3f(0xc1))/0x2+parseInt(_0x5f4c3f(0xac))/0x3+-parseInt(_0x5f4c3f(0xcd))/0x4+parseInt(_0x5f4c3f(0xaf))/0x5*(-parseInt(_0x5f4c3f(0xb2))/0x6)+parseInt(_0x5f4c3f(0xa9))/0x7+parseInt(_0x5f4c3f(0x9d))/0x8;if(_0x3da13e===_0x2f7bb6)break;else _0x3403f4['push'](_0x3403f4['shift']());}catch(_0x536fd8){_0x3403f4['push'](_0x3403f4['shift']());}}}(a45_0x4423,0x29b5d));const path=require(a45_0x29b335(0xa0)),Module=require('module'),BrowserstackCLI=require('../v2/browserstackCLI'),scriptFile=process[a45_0x29b335(0xc5)][0x2],maxParallel=parseInt(process['argv'][0x3])||0x0;!scriptFile&&(process[a45_0x29b335(0xbb)][a45_0x29b335(0xa5)]('[Newman]\x20scriptRunner:\x20no\x20script\x20file\x20provided\x0a'),process[a45_0x29b335(0xca)](0x1));const reporterPath=path['join'](__dirname,'reporter',a45_0x29b335(0xba)),originalResolveFilename=Module[a45_0x29b335(0xcb)];function a45_0x3a60(_0x41e210,_0x2515bc){const _0x442304=a45_0x4423();return a45_0x3a60=function(_0x3a609b,_0x3fe554){_0x3a609b=_0x3a609b-0x9c;let _0x4c23df=_0x442304[_0x3a609b];return _0x4c23df;},a45_0x3a60(_0x41e210,_0x2515bc);}Module[a45_0x29b335(0xcb)]=function(_0x1c367e,_0x3fe8fb,_0x46a833,_0x141ad7){const _0x5e6293=a45_0x29b335,_0x39de71={};_0x39de71['RGCMY']=function(_0x594f8f,_0x436615){return _0x594f8f===_0x436615;},_0x39de71[_0x5e6293(0xbc)]='newman-reporter-browserstack';const _0x3d984f=_0x39de71;if(_0x3d984f[_0x5e6293(0xb4)](_0x1c367e,_0x3d984f[_0x5e6293(0xbc)]))return reporterPath;return originalResolveFilename[_0x5e6293(0x9f)](this,_0x1c367e,_0x3fe8fb,_0x46a833,_0x141ad7);};let limit;try{const pLimit=require(a45_0x29b335(0xa4)),concurrency=maxParallel&&maxParallel>0x0?maxParallel:Infinity;limit=pLimit(concurrency);}catch(a45_0x5665ed){limit=function(_0x13e777){const _0x26c9e7=a45_0x29b335,_0x4b3826={'NtzVI':function(_0x389920){return _0x389920();}};return _0x4b3826[_0x26c9e7(0xc7)](_0x13e777);};}function a45_0x4423(){const _0x528d12=['bootstrap','assign','BtVbR','index.js','stderr','NTvdC','browserstack','xKmbX','collection','indexOf','381236hGyYgG','create','MsxMp','_load','argv','gWjrQ','NtzVI','GrImV','XAWQI','exit','_resolveFilename','error','250552sXvrDB','YVFlU','collectionPath','GjmVa','jZCjn','concat','exitCode','bind','NxzBo','run','reporter','failures','2285864dpLxTh','tkytO','call','path','cli','UEivM','333626chLRca','p-limit','write','ruorX','WftsC','message','1205113exiNaz','getInstance','ieMVG','425757IDrMhX','LzKtt','ixLNZ','120bqWfBf','gFrMh','nGEQp','55830ibaeMM','string','RGCMY','AHhty','newman'];a45_0x4423=function(){return _0x528d12;};return a45_0x4423();}let wrappedNewman=null,hasFailure=![];const originalLoad=Module[a45_0x29b335(0xc4)];Module[a45_0x29b335(0xc4)]=function(_0x5d0f81,_0x5803e5,_0x53ace0){const _0x8983c3=a45_0x29b335,_0x16b07a={'NxzBo':function(_0x1ffdce,_0x35d790){return _0x1ffdce>_0x35d790;},'oyvpe':function(_0x245c2f,_0x5782c6){return _0x245c2f||_0x5782c6;},'nGEQp':function(_0x5279dd,_0x485a66,_0x2d9133){return _0x5279dd(_0x485a66,_0x2d9133);},'LzKtt':function(_0x5bdcd2,_0x32e02b){return _0x5bdcd2(_0x32e02b);},'gFrMh':_0x8983c3(0xa1),'ruorX':function(_0x1b692c,_0x51c48c){return _0x1b692c===_0x51c48c;},'gWjrQ':_0x8983c3(0xbd),'xKmbX':_0x8983c3(0xb3),'WftsC':function(_0x1a37a0,_0x1fbb27){return _0x1a37a0!==_0x1fbb27;},'siOQQ':_0x8983c3(0xb6)},_0x2128bb=originalLoad[_0x8983c3(0x9f)](this,_0x5d0f81,_0x5803e5,_0x53ace0);if(_0x16b07a[_0x8983c3(0xa7)](_0x5d0f81,_0x16b07a['siOQQ']))return _0x2128bb;if(wrappedNewman)return wrappedNewman;const _0xe9327=_0x2128bb[_0x8983c3(0xd6)][_0x8983c3(0xd4)](_0x2128bb);return wrappedNewman=Object[_0x8983c3(0xc2)](_0x2128bb),wrappedNewman['run']=function(_0xb67936,_0x19eea9){const _0x2f8bc4=_0x8983c3,_0x4ddea8={'ieMVG':function(_0x3981dd,_0x5484ed){const _0x591649=a45_0x3a60;return _0x16b07a[_0x591649(0xd5)](_0x3981dd,_0x5484ed);},'sWaPR':function(_0x5cbe56,_0x5a76f9){return _0x16b07a['oyvpe'](_0x5cbe56,_0x5a76f9);},'BtVbR':function(_0x5a8474,_0x1a268d,_0x32bb01){const _0x55a5d7=a45_0x3a60;return _0x16b07a[_0x55a5d7(0xb1)](_0x5a8474,_0x1a268d,_0x32bb01);},'AHhty':function(_0x23b717,_0x259ac4){const _0x47288a=a45_0x3a60;return _0x16b07a[_0x47288a(0xad)](_0x23b717,_0x259ac4);}};let _0x1b60df=_0xb67936['reporters']||[_0x16b07a[_0x2f8bc4(0xb0)]];_0x16b07a[_0x2f8bc4(0xa6)](_0x1b60df[_0x2f8bc4(0xc0)](_0x16b07a['gWjrQ']),-0x1)&&(_0x1b60df=_0x1b60df[_0x2f8bc4(0xd2)]([_0x16b07a[_0x2f8bc4(0xc6)]]));const _0x46e82a=_0x16b07a['ruorX'](typeof _0xb67936[_0x2f8bc4(0xbf)],_0x16b07a[_0x2f8bc4(0xbe)])?_0xb67936[_0x2f8bc4(0xbf)]:undefined,_0x30566d={};_0x30566d[_0x2f8bc4(0xcf)]=_0x46e82a;const _0x5ba116=Object[_0x2f8bc4(0xb8)]({},_0xb67936['reporter'],{'browserstack':Object[_0x2f8bc4(0xb8)]({},_0xb67936[_0x2f8bc4(0xd7)]&&_0xb67936[_0x2f8bc4(0xd7)][_0x2f8bc4(0xbd)],_0x30566d)}),_0x46795b={};return _0x46795b['reporters']=_0x1b60df,_0x46795b[_0x2f8bc4(0xd7)]=_0x5ba116,_0xb67936=Object[_0x2f8bc4(0xb8)]({},_0xb67936,_0x46795b),_0x16b07a['LzKtt'](limit,function(){const _0xa5e8c3={'GrImV':function(_0x53443,_0x4d9591){const _0x4896af=a45_0x3a60;return _0x4ddea8[_0x4896af(0xab)](_0x53443,_0x4d9591);},'MsxMp':function(_0x2694b5,_0x5007a7){return _0x4ddea8['sWaPR'](_0x2694b5,_0x5007a7);},'jZCjn':function(_0xaa785d,_0x483338,_0x1ee2e1){const _0x4c74d9=a45_0x3a60;return _0x4ddea8[_0x4c74d9(0xb9)](_0xaa785d,_0x483338,_0x1ee2e1);},'GjmVa':function(_0x5bb89f,_0x402d98){const _0x57e8cc=a45_0x3a60;return _0x4ddea8[_0x57e8cc(0xb5)](_0x5bb89f,_0x402d98);}};return new Promise(function(_0x54f01d){const _0x589bc4=a45_0x3a60,_0x8264a4={'tkytO':function(_0x3ca80c,_0x408095){const _0x4cf91f=a45_0x3a60;return _0xa5e8c3[_0x4cf91f(0xc8)](_0x3ca80c,_0x408095);},'bmHCD':function(_0x3313d6,_0xe3642e){const _0x511428=a45_0x3a60;return _0xa5e8c3[_0x511428(0xc3)](_0x3313d6,_0xe3642e);},'UEivM':function(_0x299bc6,_0x7615ad,_0x31e63d){const _0x147292=a45_0x3a60;return _0xa5e8c3[_0x147292(0xd1)](_0x299bc6,_0x7615ad,_0x31e63d);},'ixLNZ':function(_0x15c51a,_0x5c1199){const _0x2c3bd2=a45_0x3a60;return _0xa5e8c3[_0x2c3bd2(0xd0)](_0x15c51a,_0x5c1199);}};_0xa5e8c3[_0x589bc4(0xd1)](_0xe9327,_0xb67936,function(_0x2b1e40,_0x330ee2){const _0x196165=_0x589bc4,_0x1dab80=_0x330ee2&&_0x330ee2[_0x196165(0xd6)]&&(_0x330ee2[_0x196165(0xd6)][_0x196165(0xcc)]||_0x330ee2[_0x196165(0xd6)][_0x196165(0x9c)]&&_0x8264a4[_0x196165(0x9e)](_0x330ee2[_0x196165(0xd6)][_0x196165(0x9c)]['length'],0x0));_0x8264a4['bmHCD'](_0x1dab80,_0x2b1e40)&&(hasFailure=!![]),_0x19eea9&&_0x8264a4[_0x196165(0xa2)](_0x19eea9,_0x2b1e40,_0x330ee2),_0x8264a4[_0x196165(0xae)](_0x54f01d,_0x330ee2);});});});},wrappedNewman;};async function main(){const _0x3ca870=a45_0x29b335,_0xc6e1a2={'XAWQI':function(_0x195fe3,_0xa96c0c){return _0x195fe3(_0xa96c0c);},'YVFlU':function(_0x4c3dc2,_0x3ef4f2){return _0x4c3dc2+_0x3ef4f2;},'TnWJv':function(_0x1ffe13,_0x4198b9){return _0x1ffe13+_0x4198b9;},'tfnOi':'[Newman]\x20scriptRunner:\x20failed\x20to\x20load\x20script:\x20'};try{await BrowserstackCLI[_0x3ca870(0xaa)]()[_0x3ca870(0xb7)]();}catch(_0x53d923){}try{_0xc6e1a2[_0x3ca870(0xc9)](require,path['resolve'](scriptFile));}catch(_0x3a42c9){process[_0x3ca870(0xbb)]['write'](_0xc6e1a2[_0x3ca870(0xce)](_0xc6e1a2['TnWJv'](_0xc6e1a2['tfnOi'],_0x3a42c9[_0x3ca870(0xa8)]||_0x3a42c9),'\x0a')),process[_0x3ca870(0xd3)]=0x1;}}main(),process['on']('beforeExit',function(){const _0x170e05=a45_0x29b335;hasFailure&&(process[_0x170e05(0xd3)]=0x1);}),process['on'](a45_0x29b335(0xca),function(){const _0x21a41b={};_0x21a41b['YaOLg']=function(_0x10b21a,_0x490e65){return _0x10b21a===_0x490e65;};const _0x3a9768=_0x21a41b;hasFailure&&_0x3a9768['YaOLg'](process['exitCode'],0x0)&&(process['exitCode']=0x1);});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a46_0x8c1587=a46_0x3ffd;(function(_0x470b17,_0x447259){const _0x46face=a46_0x3ffd,_0x3aef4e=_0x470b17();while(!![]){try{const _0x1e44dc=parseInt(_0x46face(0x1e8))/0x1*(parseInt(_0x46face(0x202))/0x2)+-parseInt(_0x46face(0x217))/0x3*(-parseInt(_0x46face(0x20a))/0x4)+parseInt(_0x46face(0x22b))/0x5+-parseInt(_0x46face(0x224))/0x6+parseInt(_0x46face(0x201))/0x7+parseInt(_0x46face(0x1e4))/0x8+parseInt(_0x46face(0x223))/0x9*(-parseInt(_0x46face(0x22d))/0xa);if(_0x1e44dc===_0x447259)break;else _0x3aef4e['push'](_0x3aef4e['shift']());}catch(_0x3c47b1){_0x3aef4e['push'](_0x3aef4e['shift']());}}}(a46_0x4613,0x577f8));function a46_0x4613(){const _0x258efa=['4467hbFePG','unlinkSync','existsSync','filter','QloJQ','exports','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','modifyBrowserStackCaps','YFguW','--config','resolve','stringify','10608894EYDVzQ','2538306UzUBrg','map','../../index','test','cGZFh','port','MnvaY','965560TFsRaA','config','10YwKwGn','test_settings','RXrAi','debug','BROWSERSTACK_FRAMEWORK','warn','trim','forEach','path','Deleting\x20','WXsUq','3871960ecQgns','--env','mergeDeep','push','1DSHGVG','platforms','MLCHd','rRhLH','nightwatch-browserstack.json','jdIFx','findIndex','getPlatformName','Getting\x20your\x20nightwatch\x20configs\x20from\x20','estaB','HWErF','split','child_process','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','nightwatch.conf.js','../../helpers/BrowserStackSetup','inherit','hXNbi','cqVRv','desiredCapabilities','info','../../helpers/helper','useW3C','writeFileSync','--require\x20','155694qfzugi','1101214BPpMLC','hub.browserstack.com','start_process','slice','join','hdDNI','isUndefined','assign','1908ypLzjh','KlCWK','close','splice','length','now','cwd','sVAUN','host','env','resolveWithinCwd','DEWVH','../../helpers/logger'];a46_0x4613=function(){return _0x258efa;};return a46_0x4613();}const fs=require('fs'),path=require(a46_0x8c1587(0x1e1)),{spawn}=require(a46_0x8c1587(0x1f4)),logger=require(a46_0x8c1587(0x216))['winstonLogger'],{default:BrowserStackSetup}=require(a46_0x8c1587(0x1f7)),helper=require(a46_0x8c1587(0x1fd)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x1ec5be,_0x1e4fac)=>{const _0x4be48a=a46_0x8c1587,_0x4017d6={'YFguW':_0x4be48a(0x1f6),'jdIFx':'nightwatch.json','kNBoR':function(_0x3e5ad1,_0x55c2a2){return _0x3e5ad1(_0x55c2a2);},'WXsUq':_0x4be48a(0x1f5)};let _0x2d2cbd=null,_0x52aa52={};const _0x1700bb=_0x1e4fac['findIndex'](_0x57aae3=>_0x57aae3===_0x4be48a(0x220)),_0x36892a=!helper[_0x4be48a(0x208)](_0x1ec5be[_0x4be48a(0x22c)])?helper[_0x4be48a(0x214)](_0x1ec5be[_0x4be48a(0x22c)]):null;!helper[_0x4be48a(0x208)](_0x1ec5be[_0x4be48a(0x22c)])&&!_0x36892a&&logger[_0x4be48a(0x1de)]('Ignoring\x20--config\x20path\x20\x22'+_0x1ec5be['config']+'\x22:\x20it\x20resolves\x20outside\x20the\x20project\x20directory.');if(_0x36892a&&fs[_0x4be48a(0x219)](_0x36892a))_0x2d2cbd=_0x36892a,_0x1e4fac[_0x4be48a(0x20d)](_0x1700bb,0x2);else{if(fs[_0x4be48a(0x219)](path[_0x4be48a(0x206)](process[_0x4be48a(0x210)](),_0x4017d6[_0x4be48a(0x21f)])))_0x2d2cbd=path['join'](process[_0x4be48a(0x210)](),_0x4017d6[_0x4be48a(0x21f)]);else fs[_0x4be48a(0x219)](path[_0x4be48a(0x206)](process[_0x4be48a(0x210)](),_0x4017d6[_0x4be48a(0x1ed)]))&&(_0x2d2cbd=path[_0x4be48a(0x206)](process[_0x4be48a(0x210)](),_0x4017d6[_0x4be48a(0x1ed)]));}return _0x2d2cbd?(logger[_0x4be48a(0x1fc)](_0x4be48a(0x1f0)+_0x2d2cbd),_0x52aa52=_0x4017d6['kNBoR'](require,_0x2d2cbd)):logger['info'](_0x4017d6[_0x4be48a(0x1e3)]),_0x52aa52;},removeExistingEnvs=_0x295ef9=>{const _0x2d5cf2=a46_0x8c1587,_0x2319c9={};_0x2319c9[_0x2d5cf2(0x228)]=function(_0x47f490,_0x5689f1){return _0x47f490>_0x5689f1;},_0x2319c9['KlCWK']=function(_0x303de2,_0x30182a){return _0x303de2>_0x30182a;};const _0x51e266=_0x2319c9;let _0x37153d=_0x295ef9['findIndex'](_0x2a136e=>_0x2a136e===_0x2d5cf2(0x1e5));_0x51e266[_0x2d5cf2(0x228)](_0x37153d,-0x1)&&_0x295ef9[_0x2d5cf2(0x20d)](_0x37153d,0x2),_0x37153d=_0x295ef9[_0x2d5cf2(0x1ee)](_0xd2fc91=>_0xd2fc91==='-e'),_0x51e266[_0x2d5cf2(0x20b)](_0x37153d,-0x1)&&_0x295ef9['splice'](_0x37153d,0x2);};function run(_0x5b6775,_0x283429,_0x4be0dd){const _0x5c5a42=a46_0x8c1587,_0xf163ec={'estaB':'nightwatch','QloJQ':function(_0x29053a,_0x3431a7){return _0x29053a+_0x3431a7;},'ZXOOx':_0x5c5a42(0x22e),'rRhLH':function(_0x479bc4,_0x5466db,_0x539826){return _0x479bc4(_0x5466db,_0x539826);},'RXrAi':_0x5c5a42(0x203),'HoPDy':_0x5c5a42(0x21d),'wLURM':function(_0x5d9c95,_0x37063e){return _0x5d9c95===_0x37063e;},'cqVRv':_0x5c5a42(0x1ec),'SCVas':function(_0x308f31,_0xadb9ed){return _0x308f31(_0xadb9ed);},'HGDGw':_0x5c5a42(0x226),'MnvaY':function(_0xc002f0,_0x156f90,_0x1378b9,_0x21238c){return _0xc002f0(_0x156f90,_0x1378b9,_0x21238c);},'LxqkF':'nightwatch.cmd','hdDNI':_0x5c5a42(0x220),'MLCHd':_0x5c5a42(0x1e5),'HWErF':_0x5c5a42(0x1f8),'DEWVH':_0x5c5a42(0x20c)};if(!_0x4be0dd[_0x5c5a42(0x22c)])return;const _0x4fff52=_0xf163ec[_0x5c5a42(0x1eb)](getUserNightwatchConfigs,_0x5b6775,_0x283429),_0x2bbcaa={};_0x2bbcaa[_0x5c5a42(0x204)]=![];const _0x522ac2={};_0x522ac2[_0x5c5a42(0x212)]=_0xf163ec[_0x5c5a42(0x22f)],_0x522ac2[_0x5c5a42(0x229)]=0x1bb;const _0xf6c4d7={};_0xf6c4d7['webdriver']=_0x2bbcaa,_0xf6c4d7['selenium']=_0x522ac2;const _0x27b885=_0xf6c4d7;logger[_0x5c5a42(0x1fc)](_0xf163ec['HoPDy']);const _0x418eb1={..._0x4fff52},_0x5d79b6=_0x418eb1,_0x39ae6b=helper[_0x5c5a42(0x1fe)](_0x4be0dd[_0x5c5a42(0x22c)]),_0x44a4e5=[];_0x4be0dd['config'][_0x5c5a42(0x1e9)][_0x5c5a42(0x1e0)]((_0x5461f7,_0x2002ed)=>{const _0x35d1ad=_0x5c5a42;_0x39ae6b?_0x44a4e5[_0x35d1ad(0x1e7)](helper['modifyBrowserStackW3CCaps'](_0x4be0dd[_0x35d1ad(0x22c)],_0xf163ec[_0x35d1ad(0x1f1)],_0x2002ed)):_0x44a4e5[_0x35d1ad(0x1e7)](helper[_0x35d1ad(0x21e)](_0x4be0dd['config'],_0xf163ec[_0x35d1ad(0x1f1)],_0x2002ed));});const _0x5ba50d={},_0x233e9d=[];_0x5b6775[_0x5c5a42(0x213)]=_0x5b6775['env']||_0x5b6775['e'];const _0x5cd132=_0x5b6775[_0x5c5a42(0x213)]?_0x5b6775[_0x5c5a42(0x213)][_0x5c5a42(0x1df)]()[_0x5c5a42(0x1f3)](',')[_0x5c5a42(0x225)](_0x2c5286=>_0x2c5286[_0x5c5a42(0x1df)]())[_0x5c5a42(0x21a)](_0x112f3d=>_0x112f3d!==''):[''];_0xf163ec['wLURM'](_0x5cd132[_0x5c5a42(0x20e)],0x0)&&_0x5cd132['push']('');_0x5cd132['forEach'](_0x3e1470=>{const _0x55bb4a={'hXNbi':function(_0x118274,_0xca9b2c){const _0x153793=a46_0x3ffd;return _0xf163ec[_0x153793(0x21b)](_0x118274,_0xca9b2c);},'sVAUN':_0xf163ec['ZXOOx']};_0x44a4e5['forEach'](_0x2fcaf7=>{const _0x3c1360=a46_0x3ffd;let _0x3667e0=_0x55bb4a[_0x3c1360(0x1f9)](helper[_0x3c1360(0x1ef)](_0x2fcaf7,'_'),'_'+Date[_0x3c1360(0x20f)]());_0x3e1470&&(_0x3667e0+='_'+_0x3e1470);if(_0x3e1470&&(!_0x4fff52[_0x55bb4a[_0x3c1360(0x211)]]||!_0x4fff52[_0x55bb4a[_0x3c1360(0x211)]][_0x3e1470]))return;const _0x4b91aa={..._0x27b885};_0x4b91aa[_0x3c1360(0x1fb)]=_0x2fcaf7;const _0x5b67c2=_0x4b91aa;_0x5ba50d[_0x3667e0]=_0x3e1470?helper[_0x3c1360(0x1e6)](_0x4fff52[_0x55bb4a['sVAUN']][_0x3e1470],_0x5b67c2):_0x5b67c2,_0x233e9d[_0x3c1360(0x1e7)](_0x3667e0);});});!_0x5d79b6['test_settings']&&(_0x5d79b6['test_settings']={});_0x5d79b6[_0x5c5a42(0x22e)]={..._0x5d79b6['test_settings'],..._0x5ba50d};const _0x2d929c=path[_0x5c5a42(0x206)](__dirname,_0xf163ec[_0x5c5a42(0x1fa)]);fs[_0x5c5a42(0x1ff)](_0x2d929c,JSON[_0x5c5a42(0x222)](_0x5d79b6)),_0xf163ec['SCVas'](removeExistingEnvs,_0x283429);const _0xc4b6c7=require[_0x5c5a42(0x221)](_0xf163ec['HGDGw']),_0x5ea150=process[_0x5c5a42(0x213)]['NODE_OPTIONS']||'',_0x23e07c=_0x5c5a42(0x200)+JSON[_0x5c5a42(0x222)](_0xc4b6c7),_0x1b046d=_0x5ea150?_0x5ea150+'\x20'+_0x23e07c:_0x23e07c,_0x41b5a6=Object[_0x5c5a42(0x209)]({},process[_0x5c5a42(0x213)],{'NODE_OPTIONS':_0x1b046d,'BROWSERSTACK_FRAMEWORK':process['env'][_0x5c5a42(0x231)]||_0xf163ec[_0x5c5a42(0x1f1)]}),_0x503198=_0xf163ec[_0x5c5a42(0x22a)](spawn,/^win/[_0x5c5a42(0x227)](process['platform'])?_0xf163ec['LxqkF']:_0xf163ec[_0x5c5a42(0x1f1)],[_0xf163ec[_0x5c5a42(0x207)],_0x2d929c,..._0x283429[_0x5c5a42(0x205)](0x1),_0xf163ec[_0x5c5a42(0x1ea)],_0x233e9d[_0x5c5a42(0x206)](',')],{'stdio':_0xf163ec[_0x5c5a42(0x1f2)],'env':_0x41b5a6});_0x503198['on'](_0xf163ec[_0x5c5a42(0x215)],async _0x569b91=>{const _0x52a4c3=_0x5c5a42;logger[_0x52a4c3(0x230)]('child\x20process\x20exited\x20with\x20code\x20'+_0x569b91),logger['info'](_0x52a4c3(0x1e2)+_0x2d929c),fs[_0x52a4c3(0x218)](_0x2d929c);});}function a46_0x3ffd(_0x1aade9,_0xc62c69){const _0x46132b=a46_0x4613();return a46_0x3ffd=function(_0x3ffdb6,_0x2a9e4b){_0x3ffdb6=_0x3ffdb6-0x1de;let _0x5c8168=_0x46132b[_0x3ffdb6];return _0x5c8168;},a46_0x3ffd(_0x1aade9,_0xc62c69);}module[a46_0x8c1587(0x21c)]=run;
|