browserstack-node-sdk 1.60.1 → 1.62.0
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/browserstack.pw.yml.sample +10 -0
- package/browserstack.yml.sample +10 -0
- 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/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/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
|
-
'use strict';const a43_0x58df70=a43_0x54ea;(function(_0x420771,_0x26fbc3){const _0x55069e=a43_0x54ea,_0x361e48=_0x420771();while(!![]){try{const _0x1ace69=parseInt(_0x55069e(0x218))/0x1+parseInt(_0x55069e(0x25b))/0x2+parseInt(_0x55069e(0x276))/0x3*(-parseInt(_0x55069e(0x1a2))/0x4)+-parseInt(_0x55069e(0x21c))/0x5+parseInt(_0x55069e(0x205))/0x6*(parseInt(_0x55069e(0x1dd))/0x7)+parseInt(_0x55069e(0x27f))/0x8*(parseInt(_0x55069e(0x1c1))/0x9)+-parseInt(_0x55069e(0x1f8))/0xa*(-parseInt(_0x55069e(0x197))/0xb);if(_0x1ace69===_0x26fbc3)break;else _0x361e48['push'](_0x361e48['shift']());}catch(_0x3c3167){_0x361e48['push'](_0x361e48['shift']());}}}(a43_0x518c,0x8dd13));const path=require(a43_0x58df70(0x275)),{v4:uuidv4}=require(a43_0x58df70(0x190)),SessionHandler=require(a43_0x58df70(0x211)),{debug}=require(a43_0x58df70(0x264)),logger=require(a43_0x58df70(0x194))[a43_0x58df70(0x226)],BrowserstackCLI=require(a43_0x58df70(0x1f9)),GrpcClient=require(a43_0x58df70(0x27c)),TestFrameworkState=require(a43_0x58df70(0x22f)),HookState=require('../../v2/state/hookState'),LOG_LEVELS=[a43_0x58df70(0x22e),a43_0x58df70(0x1f6),'ERROR','DEBUG',a43_0x58df70(0x1a4)];function isCLIRunning(){const _0x156548=a43_0x58df70;try{return BrowserstackCLI[_0x156548(0x251)]()[_0x156548(0x1f4)]();}catch(_0x4d9527){return![];}}function getParentTitles(_0x46158f){const _0x3c0541=a43_0x58df70,_0x41b11f={'CDKgL':function(_0x44dd95,_0x152cbe){return _0x44dd95(_0x152cbe);}},_0x5198dc=[],_0x39ca77=_0x46158f[_0x3c0541(0x248)]();return _0x39ca77&&_0x5198dc[_0x3c0541(0x233)][_0x3c0541(0x18b)](_0x5198dc,_0x41b11f['CDKgL'](getParentTitles,_0x39ca77)),_0x46158f['name']&&_0x5198dc[_0x3c0541(0x233)](_0x41b11f[_0x3c0541(0x277)](String,_0x46158f[_0x3c0541(0x26b)])),_0x5198dc;}function a43_0x518c(){const _0x329c31=['wgwwx','script','[Newman\x20Reporter]\x20Error\x20in\x20console:\x20','HTTP','stack','test_run_uuid','FDlYA','SCXdD','pbxhZ','nVTZk','292dXuufw','itemName','TRACE','afKsG','trackEvent','iteration','ref','request','cSGvS','DjsAE','run','pcMlW','mycHY','exception','kOWiu','LYTAR','startsWith','cargR','backtrace','collection.json','gWdmO','slice','testFrameworkVersion','newman','method','host','SkGxe','QcOwZ','NuNJD','length','messages','9axamfo','httpLog','duration_ms','logCreatedEvent','\x20—\x20response\x20status\x20in\x20failure\x20range','flTEp','status_code','collectionName','iciPE','event','vOgew','headers','toUpperCase','http_response','PQKGF','rtzGe','argv','split','bfFnH','):\x20','item','result','NJxAc','collection','vKVbc','testFrameworkState','platformIndex','resolve','7WYWxTm','tTRVc','delete','removeListener','wOQoG','YsDyP','rOoxR','logs','KogUp','concat','expanded','cwd','collectionPath','[Newman\x20Reporter]\x20Could\x20not\x20resolve\x20collection\x20file\x20path,\x20falling\x20back\x20to\x20collection.json','listen','test_run','err','SFRxt','stringify','PiabP','FndOb','code','viPZF','isRunning','bs:addLog:','WARN','response','190FUIEvf','../../v2/browserstackCLI','url','string','[Newman\x20Reporter]\x20Error\x20in\x20script:\x20','hmDGz','YGErs','scopes','KrlqC','bRQtr','uploadEventData','EJLeg','toString','1311594ikiWVS','UnhandledError','failure_backtrace','forEach','olisl','[Newman\x20Reporter]\x20Error\x20in\x20request:\x20','XNrfN','vCpwq','ZtpwF','[Newman\x20Reporter]\x20Error\x20in\x20beforeItem:\x20','failureReason','error','../../../helpers/test-observability/sessionHandler','ctvjI','beforeItem','Assertion\x20','tLoVN','ubBdI','level','684251DrhAJK','[Newman\x20Reporter]\x20Error\x20in\x20item:\x20','[Newman\x20Reporter]\x20Error\x20in\x20bs:addLog\x20handler:\x20','set','2953955ilFNRO','toISOString','object','LGHzm','OXTJi','BCtNa','wUBkX','VOgLc','BhTrE','ACSaY','winstonLogger','GvpZy','xpklW','qmCLe','BfPIu','getTestFramework','ufBXJ','responseTime','INFO','../../v2/state/testFrameworkState','bZkCM','POST','includes','push','location','wOnOT','finishedAt','ohVPn','DhNTm','get','indexOf','CdSjF','kZioj','failure','HTTP\x20','HPRQN','yvVML','aHEtw','startedAt','JRqcD','durationMs','VXIdc','ULyuc','cObnn','parent','assert','LogCreated','WIDIR','egzov','ERROR','Exception:\x20','getTime','xNwYh','getInstance','PRE','No\x20HTTP\x20response\x20received','testFrameworkName','FWFUk','TEST_LOG','SoTuc','pPTVf','TvUfm','GET','785676upbnWc','DAtbe','WXIrW','INNpi','ms)','console','CcRjx','Uocdn','aPyvQ','../../../helpers/test-observability/utils','uxoOr','kind','dgXOD','lastResponseCode','failed','Xfpya','name','assertions','aYKQP','failureType','YTCAL','vSdSi','ojQps','JAQNA','HTTP\x20Status:\x20','RxySX','path','28248htzCxl','CDKgL','NbqAu','relative','sMEcD','cursor','../../v2/grpcClient','pyEpA','\x20->\x20','3349048eFYhqa','Connz','info','join','LjWgE','bufferedLogs','Nsbfp','apply','message','TestRunFinished','poeVJ','identifier','uuid','OEpUE','YRKFo','stvhG','../../../helpers/logger','lbcjy','ZYIBx','83787PyLBkr'];a43_0x518c=function(){return _0x329c31;};return a43_0x518c();}function normalizeLogLevel(_0x5a51eb){const _0x1cf33a=a43_0x58df70,_0x83ec0a={};_0x83ec0a[_0x1cf33a(0x1a5)]=_0x1cf33a(0x22e),_0x83ec0a[_0x1cf33a(0x200)]=function(_0x3309cb,_0x1f9f3a){return _0x3309cb!==_0x1f9f3a;};const _0x318a3c=_0x83ec0a;if(!_0x5a51eb)return _0x318a3c['afKsG'];const _0x53948c=_0x5a51eb[_0x1cf33a(0x1cd)]();return _0x318a3c[_0x1cf33a(0x200)](LOG_LEVELS[_0x1cf33a(0x23a)](_0x53948c),-0x1)?_0x53948c:_0x318a3c[_0x1cf33a(0x1a5)];}function resolveCollectionFile(_0x1d3a77,_0x593223){const _0x10e480=a43_0x58df70,_0x3c9cae={};_0x3c9cae[_0x10e480(0x1ab)]=function(_0x1d52b,_0x36dc81){return _0x1d52b===_0x36dc81;},_0x3c9cae[_0x10e480(0x237)]=_0x10e480(0x1fb),_0x3c9cae[_0x10e480(0x1d0)]=_0x10e480(0x1ac),_0x3c9cae[_0x10e480(0x21f)]=function(_0x2b90bc,_0x52e2b5){return _0x2b90bc!==_0x52e2b5;},_0x3c9cae[_0x10e480(0x192)]=function(_0x144448,_0x362f5c){return _0x144448<_0x362f5c;},_0x3c9cae['qmCLe']=function(_0x41cc41,_0x2e432e){return _0x41cc41+_0x2e432e;},_0x3c9cae[_0x10e480(0x19f)]=_0x10e480(0x1ea),_0x3c9cae[_0x10e480(0x1bd)]=_0x10e480(0x1b5);const _0x4ada16=_0x3c9cae;try{if(_0x593223&&_0x593223['collectionPath'])return path[_0x10e480(0x279)](process[_0x10e480(0x1e8)](),path[_0x10e480(0x1dc)](_0x593223[_0x10e480(0x1e9)]));const _0x29e2d7=_0x1d3a77['collection'];if(_0x4ada16[_0x10e480(0x1ab)](typeof _0x29e2d7,_0x4ada16[_0x10e480(0x237)]))return path[_0x10e480(0x279)](process[_0x10e480(0x1e8)](),path['resolve'](_0x29e2d7));const _0x516898=process[_0x10e480(0x1d1)][_0x10e480(0x23a)](_0x4ada16['rtzGe']);if(_0x4ada16[_0x10e480(0x21f)](_0x516898,-0x1)&&_0x4ada16[_0x10e480(0x192)](_0x4ada16[_0x10e480(0x229)](_0x516898,0x1),process[_0x10e480(0x1d1)][_0x10e480(0x1bf)])){const _0x2fbeac=process[_0x10e480(0x1d1)][_0x4ada16[_0x10e480(0x229)](_0x516898,0x1)];if(_0x2fbeac&&!_0x2fbeac['startsWith']('-'))return path['relative'](process[_0x10e480(0x1e8)](),path['resolve'](_0x2fbeac));}}catch(_0x5e8e03){}return logger['info'](_0x4ada16[_0x10e480(0x19f)]),_0x4ada16['QcOwZ'];}function a43_0x54ea(_0x164b9f,_0x11c6d2){const _0x518ca5=a43_0x518c();return a43_0x54ea=function(_0x54ea8d,_0x5b9701){_0x54ea8d=_0x54ea8d-0x18b;let _0x79e6f3=_0x518ca5[_0x54ea8d];return _0x79e6f3;},a43_0x54ea(_0x164b9f,_0x11c6d2);}function resolveCollectionName(_0x1049e8){const _0x5066c8=a43_0x58df70,_0x33d41d={};_0x33d41d[_0x5066c8(0x201)]=function(_0x350521,_0x2bfe3c){return _0x350521===_0x2bfe3c;},_0x33d41d[_0x5066c8(0x26f)]=_0x5066c8(0x21e);const _0x162690=_0x33d41d;try{const _0x3eecfb=_0x1049e8[_0x5066c8(0x1d8)];if(_0x3eecfb&&_0x162690[_0x5066c8(0x201)](typeof _0x3eecfb,_0x162690[_0x5066c8(0x26f)]))return _0x3eecfb['name']||_0x3eecfb[_0x5066c8(0x281)]&&_0x3eecfb[_0x5066c8(0x281)][_0x5066c8(0x26b)]||null;}catch(_0x5c6022){}return null;}function emitTest(_0x5134d9,_0x7f59ea,_0xc17210,_0x51d01a,_0x577f4c){const _0x81b633=a43_0x58df70,_0xbf5562={'DAtbe':function(_0x215dc0){return _0x215dc0();},'kZioj':'pending','PQKGF':function(_0x489e91,_0xf129aa){return _0x489e91(_0xf129aa);},'pPTVf':'newman','vOgew':'javascript','CdSjF':function(_0x347fca,_0x49ff11){return _0x347fca!=_0x49ff11;},'PiabP':function(_0x10b148,_0x548f7a){return _0x10b148===_0x548f7a;},'aPyvQ':'TestRunStarted','ubBdI':_0x81b633(0x18d)};if(_0xbf5562[_0x81b633(0x25c)](isCLIRunning))try{const _0x2b86e6=BrowserstackCLI[_0x81b633(0x251)]()[_0x81b633(0x22b)]();if(!_0x2b86e6)return;_0x2b86e6[_0x81b633(0x1a6)](TestFrameworkState['TEST'],_0x5134d9,{'test':{'uuid':_0x7f59ea[_0x81b633(0x190)],'name':_0x7f59ea['name'],'scopes':_0xc17210[_0x81b633(0x1ff)],'scope':_0xc17210['scopes'][_0x81b633(0x282)]('\x20'),'file_path':_0x51d01a,'location':_0xc17210[_0x81b633(0x1c8)],'started_at':_0xc17210[_0x81b633(0x242)],'finished_at':_0x577f4c[_0x81b633(0x236)]||null,'result':_0x577f4c[_0x81b633(0x1d6)]||_0xbf5562['kZioj'],'failure':_0x577f4c[_0x81b633(0x23d)]||[],'failure_type':_0x577f4c[_0x81b633(0x26e)]||null,'failure_reason':_0x577f4c['failureReason']||null,'tags':[],'meta':{},'custom_metadata':{}}});}catch(_0xaf4991){_0xbf5562[_0x81b633(0x1cf)](debug,'[Newman\x20Reporter]\x20emitTest\x20error:\x20'+_0xaf4991);}else{const _0x18b02f={'uuid':_0x7f59ea[_0x81b633(0x190)],'name':_0x7f59ea['name'],'framework':_0xbf5562[_0x81b633(0x258)],'body':{'lang':_0xbf5562[_0x81b633(0x1cb)],'code':null},'scope':_0xc17210[_0x81b633(0x1ff)][_0x81b633(0x282)]('\x20'),'scopes':_0xc17210['scopes'],'identifier':_0x7f59ea[_0x81b633(0x18f)],'file_name':_0xc17210['collectionName'],'vc_filepath':_0xc17210[_0x81b633(0x234)],'location':_0xc17210[_0x81b633(0x234)],'started_at':_0xc17210[_0x81b633(0x242)],'finished_at':_0x577f4c['finishedAt']||null,'duration_in_ms':_0xbf5562[_0x81b633(0x23b)](_0x577f4c[_0x81b633(0x244)],null)?Math['max'](0x0,_0x577f4c[_0x81b633(0x244)]):null,'result':_0x577f4c['result']||_0xbf5562[_0x81b633(0x23c)],'failure_reason':_0x577f4c[_0x81b633(0x20f)]||null,'failure_type':_0x577f4c[_0x81b633(0x26e)]||null,'failure':_0x577f4c[_0x81b633(0x23d)]||[],'retry_of':null,'hooks':[]};_0x18b02f['failure'][0x0]&&(_0x18b02f[_0x81b633(0x207)]=_0x18b02f[_0x81b633(0x23d)][0x0][_0x81b633(0x1b4)],_0x18b02f['failure_reason_expanded']=_0x18b02f[_0x81b633(0x23d)][0x0][_0x81b633(0x1e7)]);const _0x84de08=_0xbf5562[_0x81b633(0x1f0)](_0x5134d9,HookState[_0x81b633(0x252)])?_0xbf5562[_0x81b633(0x263)]:_0xbf5562[_0x81b633(0x216)],_0x2fb48d={};_0x2fb48d['event_type']=_0x84de08,_0x2fb48d[_0x81b633(0x1ec)]=_0x18b02f,SessionHandler[_0x81b633(0x202)](_0x2fb48d);}}function emitLog(_0x223d31,_0x314423){const _0x49bfbc=a43_0x58df70,_0x27aedb={'vKVbc':_0x49bfbc(0x256),'GURGq':function(_0x2b339a){return _0x2b339a();},'Uocdn':function(_0x36dc66,_0x369dbe){return _0x36dc66===_0x369dbe;},'dgXOD':_0x49bfbc(0x19b),'dtqNO':_0x49bfbc(0x1b9),'hriyB':'TEST','dGVhp':_0x49bfbc(0x22e),'LjWgE':function(_0x237957,_0x3bd983){return _0x237957(_0x3bd983);},'poeVJ':function(_0x37e98a,_0xbd7dd1){return _0x37e98a+_0xbd7dd1;},'NJxAc':'[Newman\x20Reporter]\x20emitLog\x20error:\x20','ctvjI':_0x49bfbc(0x24a)},_0x160286=_0x314423['kind']||_0x27aedb[_0x49bfbc(0x1d9)],_0x59e556=_0x314423['timestamp']||new Date()['toISOString']();if(_0x27aedb['GURGq'](isCLIRunning))try{const _0x24840c=_0x27aedb[_0x49bfbc(0x262)](_0x160286,_0x27aedb[_0x49bfbc(0x267)])?JSON[_0x49bfbc(0x1ef)](_0x314423):_0x314423[_0x49bfbc(0x18c)]||'',_0x47a05b={};_0x47a05b[_0x49bfbc(0x1db)]=0x0,_0x47a05b[_0x49bfbc(0x254)]=_0x27aedb['dtqNO'],_0x47a05b[_0x49bfbc(0x1b8)]='',_0x47a05b[_0x49bfbc(0x1da)]=_0x27aedb['hriyB'],_0x47a05b[_0x49bfbc(0x1e4)]=[{'uuid':_0x223d31,'timestamp':_0x59e556,'kind':_0x160286,'level':_0x314423['level']||_0x27aedb['dGVhp'],'message':_0x24840c}],GrpcClient[_0x49bfbc(0x251)]()[_0x49bfbc(0x1c4)](_0x47a05b);}catch(_0x3f9cc6){_0x27aedb[_0x49bfbc(0x283)](debug,_0x27aedb[_0x49bfbc(0x18e)](_0x27aedb[_0x49bfbc(0x1d7)],_0x3f9cc6));}else{const _0x4d1349={};_0x4d1349[_0x49bfbc(0x19d)]=_0x223d31,_0x4d1349['timestamp']=_0x59e556,_0x4d1349['level']=_0x314423['level']||null,_0x4d1349[_0x49bfbc(0x18c)]=_0x314423[_0x49bfbc(0x18c)]||null,_0x4d1349[_0x49bfbc(0x266)]=_0x160286,_0x4d1349['http_response']=_0x314423[_0x49bfbc(0x1ce)]||{};const _0x38a9af={};_0x38a9af['event_type']=_0x27aedb[_0x49bfbc(0x212)],_0x38a9af[_0x49bfbc(0x1e4)]=[_0x4d1349],SessionHandler['uploadEventData'](_0x38a9af);}}function BrowserStackNewmanReporter(_0x79dc46,_0x481633,_0x191663){const _0x286a34=a43_0x58df70,_0x5f49e7={'hmDGz':function(_0x4a33b3,_0x56e9bd,_0xb98b0d){return _0x4a33b3(_0x56e9bd,_0xb98b0d);},'FDlYA':function(_0x2d9c52,_0xbd6cce){return _0x2d9c52(_0xbd6cce);},'EJLeg':function(_0x4eabd9,_0x4db433){return _0x4eabd9>_0x4db433;},'YsDyP':'http','uxoOr':function(_0x5354c7,_0x3d1d91){return _0x5354c7+_0x3d1d91;},'wOQoG':_0x286a34(0x25a),'LYTAR':function(_0x5d266d,_0x462c6f){return _0x5d266d(_0x462c6f);},'xpklW':function(_0x432669,_0x4d5fb3,_0x575f3e){return _0x432669(_0x4d5fb3,_0x575f3e);},'vCpwq':_0x286a34(0x256),'ynIox':function(_0x3c21f8){return _0x3c21f8();},'mycHY':function(_0x4f53b1,_0x250f58){return _0x4f53b1||_0x250f58;},'Nsbfp':function(_0x58229f,_0x1d5c80,_0x534346,_0x384a58,_0x19fce6,_0x5849c3){return _0x58229f(_0x1d5c80,_0x534346,_0x384a58,_0x19fce6,_0x5849c3);},'vSdSi':function(_0xdff3c4,_0x319d4d){return _0xdff3c4===_0x319d4d;},'stvhG':function(_0x45eeab,_0xea7610){return _0x45eeab>_0xea7610;},'cObnn':function(_0x3d49c5,_0x338129,_0x53abbe){return _0x3d49c5(_0x338129,_0x53abbe);},'JAQNA':'HTTP','aYKQP':function(_0x509ee9,_0x21a8d0){return _0x509ee9+_0x21a8d0;},'cSGvS':function(_0x54154c,_0x3d5cd6){return _0x54154c+_0x3d5cd6;},'yvVML':function(_0x59b700,_0x4267b9){return _0x59b700+_0x4267b9;},'bfFnH':function(_0x175056,_0x702cbd){return _0x175056+_0x702cbd;},'INNpi':function(_0x181c0e,_0x3720b8){return _0x181c0e+_0x3720b8;},'XNrfN':_0x286a34(0x27e),'wgwwx':_0x286a34(0x25f),'aHEtw':_0x286a34(0x22e),'ydUZf':function(_0x43d778,_0x85a3d9){return _0x43d778(_0x85a3d9);},'IJeoI':function(_0x57d8a4,_0x43f0bc){return _0x57d8a4-_0x43f0bc;},'VXIdc':function(_0x71f224,_0x9f0379){return _0x71f224(_0x9f0379);},'GvpZy':function(_0x13b56c,_0x4e1ae4){return _0x13b56c&&_0x4e1ae4;},'BfPIu':function(_0x3e72f9,_0x2b96a9){return _0x3e72f9>_0x2b96a9;},'NuNJD':function(_0x311f3b,_0x34d665){return _0x311f3b-_0x34d665;},'MVqpk':function(_0x420fad,_0x3db9f8,_0x3070e6){return _0x420fad(_0x3db9f8,_0x3070e6);},'CcRjx':function(_0x8852d9,_0x2f4512){return _0x8852d9+_0x2f4512;},'Xfpya':_0x286a34(0x24e),'olisl':_0x286a34(0x24d),'WIDIR':'[Newman\x20Reporter]\x20Error\x20in\x20exception:\x20','DhNTm':function(_0x378f04,_0x18dfb8){return _0x378f04>_0x18dfb8;},'ZtpwF':function(_0x460f00,_0x595ddf){return _0x460f00-_0x595ddf;},'bmNML':'unknown','jBRln':function(_0x26b97c,_0x1fcafb,_0x4cbc7d){return _0x26b97c(_0x1fcafb,_0x4cbc7d);},'tLoVN':function(_0x5027f2,_0x57ecbc){return _0x5027f2+_0x57ecbc;},'viPZF':'Script\x20error\x20(','LTdyB':_0x286a34(0x1d4),'cargR':function(_0x2c6826,_0x321f09){return _0x2c6826(_0x321f09);},'OEpUE':function(_0x40bc23,_0x55d336){return _0x40bc23+_0x55d336;},'BhTrE':_0x286a34(0x1fc),'FWFUk':_0x286a34(0x269),'WTmZw':'passed','OXTJi':function(_0x5df014,_0x3897dc){return _0x5df014===_0x3897dc;},'wOnOT':'AssertionError','TvUfm':_0x286a34(0x249),'SFRxt':_0x286a34(0x206),'NCJnS':function(_0x378120,_0x3ee6de,_0x398a4b,_0x2ef721,_0x286cd6,_0x127847){return _0x378120(_0x3ee6de,_0x398a4b,_0x2ef721,_0x286cd6,_0x127847);},'kOWiu':function(_0x4fdf93,_0x4f2e7a,_0x4ec716){return _0x4fdf93(_0x4f2e7a,_0x4ec716);},'RxySX':function(_0x432eba,_0x565534){return _0x432eba>_0x565534;},'pbxhZ':function(_0x5a192b){return _0x5a192b();},'JRqcD':function(_0x13b9af,_0x449366){return _0x13b9af!=_0x449366;},'xNwYh':function(_0x2a3de7,_0x2699b1){return _0x2a3de7>=_0x2699b1;},'SoTuc':function(_0x14447a,_0x8510d8){return _0x14447a<_0x8510d8;},'SkGxe':'N/A','YgwSB':function(_0x55d737,_0x443923){return _0x55d737!=_0x443923;},'nPNPp':_0x286a34(0x253),'VOgLc':function(_0x43e402,_0x279de1,_0x5d2a5a){return _0x43e402(_0x279de1,_0x5d2a5a);},'gWdmO':function(_0x5b7df5,_0x409c47){return _0x5b7df5+_0x409c47;},'iciPE':function(_0x2d5a3e,_0x15fe5e){return _0x2d5a3e+_0x15fe5e;},'wUBkX':function(_0x1bb33d,_0x5f0d01){return _0x1bb33d+_0x5f0d01;},'gzapo':function(_0x1fccaf,_0x32bd0b){return _0x1fccaf+_0x32bd0b;},'LAVZX':function(_0x3411a7,_0x2eff03,_0x3b75e0){return _0x3411a7(_0x2eff03,_0x3b75e0);},'ZYIBx':function(_0x3ef85f,_0x64e4ae,_0x496ee8){return _0x3ef85f(_0x64e4ae,_0x496ee8);},'bZkCM':function(_0x2079d1,_0x302377){return _0x2079d1+_0x302377;},'FndOb':_0x286a34(0x273),'HPRQN':'\x20(no\x20assertions)','pcMlW':function(_0x467e13,_0x2fe761,_0x239aee,_0x1b45a2,_0x3c516c,_0x27b661){return _0x467e13(_0x2fe761,_0x239aee,_0x1b45a2,_0x3c516c,_0x27b661);},'flTEp':function(_0x26c91f,_0x23bd16){return _0x26c91f(_0x23bd16);},'NbqAu':'done','rOoxR':'beforeIteration','oFuoz':_0x286a34(0x213),'tTRVc':_0x286a34(0x1a9),'YGErs':'assertion','WXIrW':_0x286a34(0x260),'Connz':_0x286a34(0x1af),'KogUp':_0x286a34(0x199),'pyEpA':'item'},_0x82b6a=new Map();let _0x27ba60=null,_0x15d6ce=0x0;const _0x1e9d0e=_0x5f49e7[_0x286a34(0x223)](resolveCollectionFile,_0x191663,_0x481633),_0x14bc57=_0x5f49e7[_0x286a34(0x245)](resolveCollectionName,_0x191663)||_0x1e9d0e,_0x4970dd=path[_0x286a34(0x1dc)](_0x1e9d0e),_0x4fb4ee=_0x286a34(0x1f5)+process['pid'],_0x2a6a09=_0x436419=>{const _0x4803ea=_0x286a34;try{_0x27ba60&&_0x5f49e7[_0x4803ea(0x1fd)](emitLog,_0x27ba60,_0x436419);}catch(_0x410508){_0x5f49e7['FDlYA'](debug,_0x4803ea(0x21a)+_0x410508);}};process['on'](_0x4fb4ee,_0x2a6a09),_0x79dc46['on'](_0x5f49e7[_0x286a34(0x278)],()=>{const _0x3dac58=_0x286a34;process[_0x3dac58(0x1e0)](_0x4fb4ee,_0x2a6a09),_0x82b6a['clear']();}),_0x79dc46['on'](_0x5f49e7[_0x286a34(0x1e3)],(_0x252cba,_0x49562f)=>{const _0x353ec4=_0x286a34;_0x49562f&&_0x49562f[_0x353ec4(0x27b)]&&(_0x15d6ce=_0x49562f[_0x353ec4(0x27b)][_0x353ec4(0x1a7)]||0x0);}),_0x79dc46['on'](_0x5f49e7['oFuoz'],(_0x40a470,_0x490558)=>{const _0x56f91f=_0x286a34;try{_0x27ba60=null;const _0x655835=_0x490558['item'],_0x2d67fb=_0x655835[_0x56f91f(0x248)]()?_0x5f49e7[_0x56f91f(0x19e)](getParentTitles,_0x655835[_0x56f91f(0x248)]()):[],_0x140d82=_0x5f49e7[_0x56f91f(0x203)](_0x2d67fb[_0x56f91f(0x1bf)],0x1)?_0x2d67fb[_0x56f91f(0x1b7)](0x1):_0x2d67fb,_0x3c628f=_0x490558['cursor']&&_0x490558[_0x56f91f(0x27b)]['ref'],_0x4cfdb0={'itemName':_0x655835[_0x56f91f(0x26b)],'scopes':_0x140d82[_0x56f91f(0x1e6)]([_0x655835['name']]),'location':_0x1e9d0e,'collectionName':_0x14bc57,'startedAt':new Date()[_0x56f91f(0x21d)](),'startTimestamp':Date['now'](),'lastResponseCode':null,'httpLog':null,'assertions':[],'bufferedLogs':[]};_0x82b6a[_0x56f91f(0x21b)](_0x655835['id']+'_'+_0x15d6ce,_0x4cfdb0),_0x3c628f&&_0x82b6a[_0x56f91f(0x21b)](_0x3c628f+'_'+_0x15d6ce,_0x4cfdb0);}catch(_0x4bb340){_0x5f49e7['FDlYA'](debug,_0x56f91f(0x20e)+_0x4bb340);}}),_0x79dc46['on'](_0x5f49e7[_0x286a34(0x1de)],(_0x1fdf92,_0x50fbb2)=>{const _0x3e44f0=_0x286a34;try{if(!_0x50fbb2||!_0x50fbb2[_0x3e44f0(0x1d5)])return;const _0x29e010=_0x82b6a[_0x3e44f0(0x239)](_0x50fbb2[_0x3e44f0(0x1d5)]['id']+'_'+_0x15d6ce);if(!_0x29e010)return;_0x50fbb2[_0x3e44f0(0x1f7)]&&(_0x29e010[_0x3e44f0(0x268)]=_0x50fbb2[_0x3e44f0(0x1f7)][_0x3e44f0(0x1f2)]||null);if(!_0x50fbb2['request'])return;let _0x1bc950='',_0x1c9a05='';if(_0x50fbb2[_0x3e44f0(0x1a9)]['url'])try{const _0x4d75dc=_0x50fbb2[_0x3e44f0(0x1a9)][_0x3e44f0(0x1fa)][_0x3e44f0(0x204)](),_0x3a638b=new URL(_0x4d75dc[_0x3e44f0(0x1b2)](_0x5f49e7[_0x3e44f0(0x1e2)])?_0x4d75dc:'http://'+_0x4d75dc);_0x1bc950=_0x3a638b['hostname'],_0x1c9a05=_0x5f49e7[_0x3e44f0(0x265)](_0x3a638b['pathname'],_0x3a638b['search']);}catch(_0x567637){_0x1c9a05=_0x50fbb2[_0x3e44f0(0x1a9)][_0x3e44f0(0x1fa)][_0x3e44f0(0x204)]();}const _0x5394d6={};_0x5394d6[_0x3e44f0(0x1bb)]=_0x1bc950,_0x5394d6[_0x3e44f0(0x275)]=_0x1c9a05,_0x5394d6[_0x3e44f0(0x1ba)]=_0x50fbb2['request']['method']||_0x5f49e7[_0x3e44f0(0x1e1)],_0x5394d6[_0x3e44f0(0x1cc)]={},_0x5394d6[_0x3e44f0(0x1c7)]=_0x50fbb2['response']?_0x50fbb2[_0x3e44f0(0x1f7)][_0x3e44f0(0x1f2)]||0x0:0x0,_0x5394d6['duration_ms']=_0x50fbb2['response']?_0x50fbb2[_0x3e44f0(0x1f7)][_0x3e44f0(0x22d)]||0x0:0x0,_0x29e010[_0x3e44f0(0x1c2)]=_0x5394d6;}catch(_0x2a9f8f){_0x5f49e7[_0x3e44f0(0x1b1)](debug,_0x3e44f0(0x20a)+_0x2a9f8f);}}),_0x79dc46['on'](_0x5f49e7[_0x286a34(0x1fe)],(_0x395c02,_0x210b1c)=>{const _0x4f5596=_0x286a34;try{if(!_0x210b1c||!_0x210b1c[_0x4f5596(0x1d5)])return;const _0x37c418=_0x82b6a[_0x4f5596(0x239)](_0x210b1c[_0x4f5596(0x1d5)]['id']+'_'+_0x15d6ce);if(!_0x37c418)return;const _0x5d5426=_0x210b1c['assertion']||_0x4f5596(0x214)+_0x5f49e7['uxoOr'](_0x37c418[_0x4f5596(0x26c)][_0x4f5596(0x1bf)],0x1),_0x1eefd1=_0x5f49e7['ynIox'](uuidv4),_0x46f209=_0x37c418[_0x4f5596(0x1ff)][_0x4f5596(0x1e6)]([_0x5d5426])[_0x4f5596(0x282)]('\x20');_0x37c418[_0x4f5596(0x26c)][_0x4f5596(0x233)]({'uuid':_0x1eefd1,'name':_0x5d5426,'identifier':_0x46f209,'err':_0x5f49e7[_0x4f5596(0x1ae)](_0x395c02,null)});const _0xf5bb8a={};_0xf5bb8a['uuid']=_0x1eefd1,_0xf5bb8a[_0x4f5596(0x26b)]=_0x5d5426,_0xf5bb8a[_0x4f5596(0x18f)]=_0x46f209,_0x5f49e7[_0x4f5596(0x285)](emitTest,HookState[_0x4f5596(0x252)],_0xf5bb8a,_0x37c418,_0x4970dd,{});_0x5f49e7[_0x4f5596(0x270)](_0x37c418[_0x4f5596(0x26c)][_0x4f5596(0x1bf)],0x1)&&_0x5f49e7[_0x4f5596(0x193)](_0x37c418[_0x4f5596(0x284)][_0x4f5596(0x1bf)],0x0)&&(_0x37c418['bufferedLogs']['forEach'](_0x2d495d=>{const _0x2e7ae4=_0x4f5596;_0x5f49e7[_0x2e7ae4(0x228)](emitLog,_0x1eefd1,{'kind':_0x5f49e7['vCpwq'],'message':_0x2d495d['message'],'level':_0x2d495d[_0x2e7ae4(0x217)]});}),_0x37c418['bufferedLogs']=[]);if(_0x37c418['httpLog']){_0x5f49e7[_0x4f5596(0x247)](emitLog,_0x1eefd1,{'kind':_0x5f49e7[_0x4f5596(0x272)],'http_response':_0x37c418[_0x4f5596(0x1c2)]});const _0x264dd7=_0x5f49e7[_0x4f5596(0x265)](_0x5f49e7[_0x4f5596(0x265)](_0x5f49e7[_0x4f5596(0x26d)](_0x5f49e7[_0x4f5596(0x1aa)](_0x5f49e7['uxoOr'](_0x5f49e7[_0x4f5596(0x240)](_0x5f49e7['bfFnH'](_0x5f49e7[_0x4f5596(0x25e)](_0x37c418[_0x4f5596(0x1c2)][_0x4f5596(0x1ba)]||_0x5f49e7['wOQoG'],'\x20'),_0x37c418[_0x4f5596(0x1c2)]['host']),_0x37c418[_0x4f5596(0x1c2)][_0x4f5596(0x275)]),_0x5f49e7[_0x4f5596(0x20b)]),_0x37c418[_0x4f5596(0x1c2)][_0x4f5596(0x1c7)]),'\x20('),_0x37c418['httpLog'][_0x4f5596(0x1c3)]),_0x5f49e7[_0x4f5596(0x198)]);_0x5f49e7[_0x4f5596(0x1fd)](emitLog,_0x1eefd1,{'kind':_0x5f49e7['vCpwq'],'message':_0x264dd7,'level':_0x5f49e7['aHEtw']});}_0x27ba60=_0x1eefd1;}catch(_0x5b8d77){_0x5f49e7['ydUZf'](debug,'[Newman\x20Reporter]\x20Error\x20in\x20assertion:\x20'+_0x5b8d77);}}),_0x79dc46['on'](_0x5f49e7[_0x286a34(0x25d)],(_0x4d855f,_0x5d03f6)=>{const _0x45b76b=_0x286a34;try{if(!_0x5d03f6)return;let _0x3a19ea=_0x27ba60;if(!_0x3a19ea&&_0x5d03f6[_0x45b76b(0x27b)]&&_0x5d03f6[_0x45b76b(0x27b)][_0x45b76b(0x1a8)]){const _0x252216=_0x82b6a[_0x45b76b(0x239)](_0x5d03f6[_0x45b76b(0x27b)]['ref']+'_'+_0x15d6ce);_0x252216&&_0x5f49e7[_0x45b76b(0x203)](_0x252216[_0x45b76b(0x26c)][_0x45b76b(0x1bf)],0x0)&&(_0x3a19ea=_0x252216[_0x45b76b(0x26c)][_0x5f49e7['IJeoI'](_0x252216[_0x45b76b(0x26c)][_0x45b76b(0x1bf)],0x1)][_0x45b76b(0x190)]);}const _0x2f8dc3=_0x5d03f6['messages']?_0x5d03f6[_0x45b76b(0x1c0)]['join'](',\x20'):'';if(_0x3a19ea)_0x5f49e7['cObnn'](emitLog,_0x3a19ea,{'kind':_0x5f49e7[_0x45b76b(0x20c)],'message':_0x2f8dc3,'level':_0x5f49e7[_0x45b76b(0x19e)](normalizeLogLevel,_0x5d03f6[_0x45b76b(0x217)])});else{if(_0x5d03f6[_0x45b76b(0x27b)]&&_0x5d03f6['cursor'][_0x45b76b(0x1a8)]){const _0xacb784=_0x82b6a[_0x45b76b(0x239)](_0x5d03f6[_0x45b76b(0x27b)][_0x45b76b(0x1a8)]+'_'+_0x15d6ce);_0xacb784&&_0xacb784[_0x45b76b(0x284)][_0x45b76b(0x233)]({'timestamp':new Date()[_0x45b76b(0x21d)](),'level':_0x5f49e7[_0x45b76b(0x245)](normalizeLogLevel,_0x5d03f6[_0x45b76b(0x217)]),'message':_0x2f8dc3});}}}catch(_0x578e99){_0x5f49e7['FDlYA'](debug,_0x45b76b(0x19a)+_0x578e99);}}),_0x79dc46['on'](_0x5f49e7[_0x286a34(0x280)],(_0xe75c0d,_0xeb1ff2)=>{const _0x1e5377=_0x286a34;try{if(!_0xe75c0d&&(!_0xeb1ff2||!_0xeb1ff2[_0x1e5377(0x210)]))return;const _0x3ac8b0=_0xe75c0d||_0xeb1ff2[_0x1e5377(0x210)],_0x2be510=_0x3ac8b0[_0x1e5377(0x18c)]||_0x5f49e7['FDlYA'](String,_0x3ac8b0),_0x48f316=_0x3ac8b0[_0x1e5377(0x19c)]||_0x2be510;let _0x1b1f7d=_0x27ba60;if(_0x5f49e7[_0x1e5377(0x227)](!_0x1b1f7d,_0xeb1ff2)&&_0xeb1ff2['cursor']&&_0xeb1ff2[_0x1e5377(0x27b)][_0x1e5377(0x1a8)]){const _0x198ad7=_0x82b6a[_0x1e5377(0x239)](_0xeb1ff2[_0x1e5377(0x27b)][_0x1e5377(0x1a8)]+'_'+_0x15d6ce);_0x198ad7&&_0x5f49e7[_0x1e5377(0x22a)](_0x198ad7[_0x1e5377(0x26c)][_0x1e5377(0x1bf)],0x0)&&(_0x1b1f7d=_0x198ad7['assertions'][_0x5f49e7[_0x1e5377(0x1be)](_0x198ad7[_0x1e5377(0x26c)][_0x1e5377(0x1bf)],0x1)][_0x1e5377(0x190)]);}_0x1b1f7d&&_0x5f49e7['MVqpk'](emitLog,_0x1b1f7d,{'kind':_0x5f49e7[_0x1e5377(0x20c)],'message':_0x5f49e7[_0x1e5377(0x261)](_0x5f49e7[_0x1e5377(0x26a)],_0x48f316),'level':_0x5f49e7[_0x1e5377(0x209)]});}catch(_0x19c6dc){_0x5f49e7[_0x1e5377(0x19e)](debug,_0x5f49e7['INNpi'](_0x5f49e7[_0x1e5377(0x24b)],_0x19c6dc));}}),_0x79dc46['on'](_0x5f49e7[_0x286a34(0x1e5)],(_0x394e57,_0x1fd654)=>{const _0x3dad42=_0x286a34;try{if(!_0x1fd654||!_0x1fd654['execution'])return;let _0x3d3485=_0x27ba60;if(!_0x3d3485&&_0x1fd654['cursor']&&_0x1fd654[_0x3dad42(0x27b)][_0x3dad42(0x1a8)]){const _0x384c9d=_0x82b6a['get'](_0x1fd654[_0x3dad42(0x27b)][_0x3dad42(0x1a8)]+'_'+_0x15d6ce);_0x384c9d&&_0x5f49e7[_0x3dad42(0x238)](_0x384c9d[_0x3dad42(0x26c)][_0x3dad42(0x1bf)],0x0)&&(_0x3d3485=_0x384c9d['assertions'][_0x5f49e7[_0x3dad42(0x20d)](_0x384c9d[_0x3dad42(0x26c)]['length'],0x1)][_0x3dad42(0x190)]);}if(!_0x3d3485)return;const _0x2e0db4=_0x1fd654[_0x3dad42(0x1ca)]&&_0x1fd654[_0x3dad42(0x1ca)][_0x3dad42(0x1eb)]||_0x5f49e7['bmNML'];_0x394e57&&_0x5f49e7['jBRln'](emitLog,_0x3d3485,{'kind':_0x5f49e7[_0x3dad42(0x20c)],'message':_0x5f49e7[_0x3dad42(0x215)](_0x5f49e7[_0x3dad42(0x1d3)](_0x5f49e7[_0x3dad42(0x240)](_0x5f49e7[_0x3dad42(0x1f3)],_0x2e0db4),_0x5f49e7['LTdyB']),_0x394e57[_0x3dad42(0x18c)]||_0x394e57),'level':_0x5f49e7['olisl']});}catch(_0x3409fb){_0x5f49e7[_0x3dad42(0x1b3)](debug,_0x5f49e7[_0x3dad42(0x191)](_0x5f49e7[_0x3dad42(0x224)],_0x3409fb));}}),_0x79dc46['on'](_0x5f49e7[_0x286a34(0x27d)],(_0x3e781c,_0x22b436)=>{const _0x1a5424=_0x286a34,_0x15590a={'BCtNa':_0x5f49e7[_0x1a5424(0x255)],'ACSaY':_0x5f49e7['WTmZw'],'ufBXJ':function(_0x537f1e,_0x2bc87b){const _0x22d75a=_0x1a5424;return _0x5f49e7[_0x22d75a(0x220)](_0x537f1e,_0x2bc87b);},'nVTZk':_0x5f49e7[_0x1a5424(0x235)],'ojQps':_0x5f49e7[_0x1a5424(0x259)],'sMEcD':_0x5f49e7[_0x1a5424(0x1ee)],'egzov':function(_0x290a1b,_0x3f747b,_0x58a8ba,_0x486f26,_0x2d4875,_0x4d78f9){return _0x5f49e7['NCJnS'](_0x290a1b,_0x3f747b,_0x58a8ba,_0x486f26,_0x2d4875,_0x4d78f9);},'lbcjy':function(_0x3c1a3e,_0x30a167,_0x333a50){const _0x5dfcdb=_0x1a5424;return _0x5f49e7[_0x5dfcdb(0x1b0)](_0x3c1a3e,_0x30a167,_0x333a50);},'ULyuc':_0x5f49e7['vCpwq']};try{if(!_0x22b436||!_0x22b436[_0x1a5424(0x1d5)])return;const _0x43b787=_0x22b436[_0x1a5424(0x1d5)]['id']+'_'+_0x15d6ce,_0x2a95f2=_0x82b6a['get'](_0x43b787);if(!_0x2a95f2)return;const _0xd1334a=new Date(),_0x28db9a=_0x5f49e7[_0x1a5424(0x1be)](_0xd1334a[_0x1a5424(0x24f)](),_0x2a95f2['startTimestamp']);if(_0x5f49e7[_0x1a5424(0x274)](_0x2a95f2[_0x1a5424(0x26c)][_0x1a5424(0x1bf)],0x0))_0x2a95f2['assertions'][_0x1a5424(0x208)](_0x30608d=>{const _0x7228d4=_0x1a5424,_0x59a7ce=!!_0x30608d[_0x7228d4(0x1ed)],_0x5b9619={'finishedAt':_0xd1334a['toISOString'](),'durationMs':_0x28db9a,'result':_0x59a7ce?_0x15590a[_0x7228d4(0x221)]:_0x15590a[_0x7228d4(0x225)]};_0x59a7ce&&(_0x5b9619[_0x7228d4(0x20f)]=_0x30608d[_0x7228d4(0x1ed)]['message']||'',_0x5b9619[_0x7228d4(0x26e)]=_0x15590a[_0x7228d4(0x22c)](_0x30608d[_0x7228d4(0x1ed)][_0x7228d4(0x26b)],_0x15590a[_0x7228d4(0x1a1)])||_0x30608d[_0x7228d4(0x1ed)][_0x7228d4(0x18c)]&&_0x30608d['err'][_0x7228d4(0x18c)][_0x7228d4(0x232)](_0x15590a[_0x7228d4(0x271)])?_0x15590a[_0x7228d4(0x1a1)]:_0x15590a[_0x7228d4(0x27a)],_0x5b9619[_0x7228d4(0x23d)]=[{'backtrace':_0x30608d[_0x7228d4(0x1ed)][_0x7228d4(0x19c)]?_0x30608d[_0x7228d4(0x1ed)]['stack'][_0x7228d4(0x1d2)]('\x0a'):[_0x30608d['err'][_0x7228d4(0x18c)]||''],'expanded':[]}]),_0x15590a[_0x7228d4(0x24c)](emitTest,HookState[_0x7228d4(0x231)],_0x30608d,_0x2a95f2,_0x4970dd,_0x5b9619);});else{const _0x49af6a=_0x5f49e7[_0x1a5424(0x1a0)](uuidv4),_0x25228e=_0x2a95f2[_0x1a5424(0x268)],_0x270eb3=_0x5f49e7[_0x1a5424(0x243)](_0x25228e,null)&&_0x5f49e7[_0x1a5424(0x250)](_0x25228e,0xc8)&&_0x5f49e7[_0x1a5424(0x257)](_0x25228e,0x190),_0x5a2f69=_0x2a95f2[_0x1a5424(0x1a3)]+'\x20(HTTP\x20'+_0x5f49e7['mycHY'](_0x25228e,_0x5f49e7['SkGxe'])+')',_0x2f1979={'uuid':_0x49af6a,'name':_0x5a2f69,'identifier':_0x2a95f2[_0x1a5424(0x1ff)][_0x1a5424(0x1e6)]([_0x5a2f69])[_0x1a5424(0x282)]('\x20')},_0x3b1a6a={'finishedAt':_0xd1334a[_0x1a5424(0x21d)](),'durationMs':_0x28db9a,'result':_0x270eb3?_0x5f49e7['WTmZw']:_0x5f49e7['FWFUk']};!_0x270eb3&&(_0x3b1a6a['failureReason']=_0x5f49e7['YgwSB'](_0x25228e,null)?_0x1a5424(0x23e)+_0x25228e+_0x1a5424(0x1c5):_0x5f49e7['nPNPp'],_0x3b1a6a[_0x1a5424(0x26e)]=_0x5f49e7[_0x1a5424(0x1ee)],_0x3b1a6a[_0x1a5424(0x23d)]=[{'backtrace':[_0x3b1a6a[_0x1a5424(0x20f)]],'expanded':[]}]);_0x5f49e7[_0x1a5424(0x285)](emitTest,HookState[_0x1a5424(0x252)],_0x2f1979,_0x2a95f2,_0x4970dd,{}),_0x2a95f2[_0x1a5424(0x284)][_0x1a5424(0x208)](_0x10b1ef=>{const _0x2595f7=_0x1a5424;_0x15590a[_0x2595f7(0x195)](emitLog,_0x49af6a,{'kind':_0x15590a[_0x2595f7(0x246)],'message':_0x10b1ef[_0x2595f7(0x18c)],'level':_0x10b1ef['level']});});if(_0x2a95f2['httpLog']){_0x5f49e7[_0x1a5424(0x223)](emitLog,_0x49af6a,{'kind':_0x5f49e7['JAQNA'],'http_response':_0x2a95f2[_0x1a5424(0x1c2)]});const _0x48353e=_0x5f49e7[_0x1a5424(0x26d)](_0x5f49e7[_0x1a5424(0x1b6)](_0x5f49e7[_0x1a5424(0x1c9)](_0x5f49e7[_0x1a5424(0x222)](_0x5f49e7[_0x1a5424(0x25e)](_0x5f49e7['gzapo'](_0x5f49e7[_0x1a5424(0x1d3)](_0x5f49e7[_0x1a5424(0x1b6)](_0x2a95f2[_0x1a5424(0x1c2)][_0x1a5424(0x1ba)]||_0x5f49e7['wOQoG'],'\x20'),_0x2a95f2['httpLog'][_0x1a5424(0x1bb)]),_0x2a95f2['httpLog'][_0x1a5424(0x275)]),_0x5f49e7[_0x1a5424(0x20b)]),_0x2a95f2[_0x1a5424(0x1c2)][_0x1a5424(0x1c7)]),'\x20('),_0x2a95f2[_0x1a5424(0x1c2)]['duration_ms']),_0x5f49e7[_0x1a5424(0x198)]);_0x5f49e7['LAVZX'](emitLog,_0x49af6a,{'kind':_0x5f49e7[_0x1a5424(0x20c)],'message':_0x48353e,'level':_0x5f49e7[_0x1a5424(0x241)]});}else _0x5f49e7[_0x1a5424(0x196)](emitLog,_0x49af6a,{'kind':_0x5f49e7['vCpwq'],'message':_0x5f49e7['iciPE'](_0x5f49e7[_0x1a5424(0x230)](_0x5f49e7[_0x1a5424(0x1f1)],_0x5f49e7['mycHY'](_0x25228e,_0x5f49e7[_0x1a5424(0x1bc)])),_0x5f49e7[_0x1a5424(0x23f)]),'level':_0x5f49e7['aHEtw']});_0x5f49e7[_0x1a5424(0x1ad)](emitTest,HookState[_0x1a5424(0x231)],_0x2f1979,_0x2a95f2,_0x4970dd,_0x3b1a6a);}_0x82b6a[_0x1a5424(0x1df)](_0x43b787),_0x22b436[_0x1a5424(0x27b)]&&_0x22b436[_0x1a5424(0x27b)][_0x1a5424(0x1a8)]&&_0x82b6a[_0x1a5424(0x1df)](_0x22b436['cursor'][_0x1a5424(0x1a8)]+'_'+_0x15d6ce);}catch(_0x5433af){_0x5f49e7[_0x1a5424(0x1c6)](debug,_0x1a5424(0x219)+_0x5433af);}});}module['exports']=BrowserStackNewmanReporter;
|
|
1
|
+
'use strict';const a43_0x25de8a=a43_0x14d4;(function(_0x2f6745,_0x58b6f6){const _0x57103f=a43_0x14d4,_0x47ad97=_0x2f6745();while(!![]){try{const _0x52a133=parseInt(_0x57103f(0x2cd))/0x1+-parseInt(_0x57103f(0x20f))/0x2*(parseInt(_0x57103f(0x225))/0x3)+-parseInt(_0x57103f(0x2d5))/0x4+parseInt(_0x57103f(0x2d6))/0x5*(parseInt(_0x57103f(0x27d))/0x6)+-parseInt(_0x57103f(0x1e5))/0x7*(parseInt(_0x57103f(0x2a4))/0x8)+-parseInt(_0x57103f(0x25d))/0x9*(parseInt(_0x57103f(0x21e))/0xa)+parseInt(_0x57103f(0x26b))/0xb;if(_0x52a133===_0x58b6f6)break;else _0x47ad97['push'](_0x47ad97['shift']());}catch(_0x5412b6){_0x47ad97['push'](_0x47ad97['shift']());}}}(a43_0x573f,0x67673));function a43_0x14d4(_0x29e5dd,_0x526b81){const _0x573ff6=a43_0x573f();return a43_0x14d4=function(_0x14d47,_0x184b35){_0x14d47=_0x14d47-0x1e5;let _0x5852eb=_0x573ff6[_0x14d47];return _0x5852eb;},a43_0x14d4(_0x29e5dd,_0x526b81);}const path=require(a43_0x25de8a(0x2c3)),{v4:uuidv4}=require(a43_0x25de8a(0x2ce)),SessionHandler=require(a43_0x25de8a(0x21b)),{debug}=require(a43_0x25de8a(0x259)),logger=require(a43_0x25de8a(0x273))[a43_0x25de8a(0x2c5)],BrowserstackCLI=require(a43_0x25de8a(0x288)),GrpcClient=require(a43_0x25de8a(0x22c)),TestFrameworkState=require(a43_0x25de8a(0x2a1)),HookState=require(a43_0x25de8a(0x281)),LOG_LEVELS=[a43_0x25de8a(0x2c4),'WARN',a43_0x25de8a(0x275),a43_0x25de8a(0x28b),a43_0x25de8a(0x230)];function isCLIRunning(){const _0x2f5d55=a43_0x25de8a;try{return BrowserstackCLI[_0x2f5d55(0x2d7)]()[_0x2f5d55(0x2b8)]();}catch(_0x4cfd05){return![];}}function getParentTitles(_0xb7e8ab){const _0x47962b=a43_0x25de8a,_0x435299={'gyFZo':function(_0x581e34,_0x410396){return _0x581e34(_0x410396);}},_0x18c129=[],_0xd916b5=_0xb7e8ab[_0x47962b(0x244)]();return _0xd916b5&&_0x18c129['push'][_0x47962b(0x1fc)](_0x18c129,_0x435299[_0x47962b(0x2aa)](getParentTitles,_0xd916b5)),_0xb7e8ab[_0x47962b(0x200)]&&_0x18c129[_0x47962b(0x254)](_0x435299[_0x47962b(0x2aa)](String,_0xb7e8ab[_0x47962b(0x200)])),_0x18c129;}function normalizeLogLevel(_0x32c4ee){const _0x32a245=a43_0x25de8a,_0x76c214={};_0x76c214['YWPvA']=_0x32a245(0x2c4),_0x76c214['eaZyT']=function(_0x2ca97b,_0x51e301){return _0x2ca97b!==_0x51e301;};const _0x15f1ca=_0x76c214;if(!_0x32c4ee)return _0x15f1ca[_0x32a245(0x290)];const _0x3a7363=_0x32c4ee[_0x32a245(0x27f)]();return _0x15f1ca['eaZyT'](LOG_LEVELS['indexOf'](_0x3a7363),-0x1)?_0x3a7363:_0x15f1ca[_0x32a245(0x290)];}function resolveCollectionFile(_0x584863,_0x175df3){const _0x39c48b=a43_0x25de8a,_0x2af6d2={};_0x2af6d2[_0x39c48b(0x222)]=function(_0x137253,_0x5d197f){return _0x137253===_0x5d197f;},_0x2af6d2[_0x39c48b(0x2de)]=_0x39c48b(0x2d1),_0x2af6d2[_0x39c48b(0x235)]='run',_0x2af6d2[_0x39c48b(0x270)]=function(_0x51117d,_0x4780ce){return _0x51117d!==_0x4780ce;},_0x2af6d2['XIUMa']=function(_0xc556ed,_0x5b12dd){return _0xc556ed<_0x5b12dd;},_0x2af6d2['GfUoh']=function(_0x110c82,_0x2d0768){return _0x110c82+_0x2d0768;},_0x2af6d2['zRsCx']=_0x39c48b(0x286),_0x2af6d2[_0x39c48b(0x261)]=_0x39c48b(0x2d0);const _0x46aad8=_0x2af6d2;try{if(_0x175df3&&_0x175df3[_0x39c48b(0x236)])return path[_0x39c48b(0x1f5)](process['cwd'](),path[_0x39c48b(0x241)](_0x175df3[_0x39c48b(0x236)]));const _0x3f2214=_0x584863[_0x39c48b(0x24c)];if(_0x46aad8['oKkYO'](typeof _0x3f2214,_0x46aad8['DKsaY']))return path['relative'](process[_0x39c48b(0x27a)](),path[_0x39c48b(0x241)](_0x3f2214));const _0x28e8ae=process[_0x39c48b(0x299)][_0x39c48b(0x277)](_0x46aad8[_0x39c48b(0x235)]);if(_0x46aad8['hHDFd'](_0x28e8ae,-0x1)&&_0x46aad8[_0x39c48b(0x2ad)](_0x46aad8['GfUoh'](_0x28e8ae,0x1),process[_0x39c48b(0x299)]['length'])){const _0x3c10a1=process[_0x39c48b(0x299)][_0x46aad8[_0x39c48b(0x1f3)](_0x28e8ae,0x1)];if(_0x3c10a1&&!_0x3c10a1[_0x39c48b(0x242)]('-'))return path[_0x39c48b(0x1f5)](process[_0x39c48b(0x27a)](),path[_0x39c48b(0x241)](_0x3c10a1));}}catch(_0x198ae8){}return logger[_0x39c48b(0x22e)](_0x46aad8['zRsCx']),_0x46aad8['dpgol'];}function resolveCollectionName(_0x4519a5){const _0xebd855=a43_0x25de8a,_0x47584e={};_0x47584e['qYJqV']=function(_0x102f02,_0x562ce0){return _0x102f02===_0x562ce0;},_0x47584e[_0xebd855(0x1e7)]=_0xebd855(0x282);const _0x5a3d08=_0x47584e;try{const _0x1ee177=_0x4519a5[_0xebd855(0x24c)];if(_0x1ee177&&_0x5a3d08[_0xebd855(0x2b3)](typeof _0x1ee177,_0x5a3d08[_0xebd855(0x1e7)]))return _0x1ee177[_0xebd855(0x200)]||_0x1ee177[_0xebd855(0x22e)]&&_0x1ee177[_0xebd855(0x22e)][_0xebd855(0x200)]||null;}catch(_0x34fb75){}return null;}function a43_0x573f(){const _0x45228f=['join','xFuFZ','finishedAt','rDlKj','message','max','response','GfUoh','ExOdH','relative','concat','err','getTime','pid','messages','AssertionError','apply','OyPsR','pending','zGPTQ','name','host','VDrnW','):\x20','exception','skpGF','EkDBF','nnpJG','identifier','fSADd','oKlDK','Assertion\x20','qvpYo','HTTP\x20','Gpkkj','227274MrJzKn','scopes','pIYCk','failure','pBtWH','GjPdn','[Newman\x20Reporter]\x20Error\x20in\x20exception:\x20','jcAZm','listen','Ocsut','DjOwl','iMrxo','../../../helpers/test-observability/sessionHandler','IwlCB','bs:addLog:','154430gSJRkY','set','DBXdo','itemName','oKkYO','test_run','SOGbi','15yoCPyv','sftsa','zqNiE','POST','vUEJH','Exception:\x20','TestRunStarted','../../v2/grpcClient','hvwLb','info','beforeIteration','TRACE','assertions','durationMs','now','lastResponseCode','grXkM','collectionPath','execution','GET','item','url','kind','GKjvH','vaRXo','lItaj','logCreatedEvent','qKdEF','resolve','startsWith','zAbsv','parent','gMKuF','VSBxc','logs','method','ruBtn','mdylf','LogCreated','collection','JHIlv','jcqcu','AHtJm','failureType','testFrameworkState','KXjqX','failureReason','push','tbHVp','done','testFrameworkName','length','../../../helpers/test-observability/utils','cfFfQ','QPFaR','FqQhT','99OIqUwG','ref','IZpaT','toISOString','dpgol','trackEvent','WIdJt','timestamp','Lfqqt','console','Okxtr','cwCWL','slice','hwftm','10501260rwOEHE','OxJHn','http_response','get','AUkPq','hHDFd','mShVq','inpcM','../../../helpers/logger','NmwXE','ERROR','fnxuV','indexOf','[Newman\x20Reporter]\x20Error\x20in\x20beforeItem:\x20','pbKso','cwd','PRE','RZaAI','222246NWgZjR','beforeItem','toUpperCase','assertion','../../v2/state/hookState','object','duration_ms','UnhandledError','lSlwN','[Newman\x20Reporter]\x20Could\x20not\x20resolve\x20collection\x20file\x20path,\x20falling\x20back\x20to\x20collection.json','request','../../v2/browserstackCLI','failed','pCZON','DEBUG','CBGTs','ADyJm','YdNwC','HTTP\x20Status:\x20','YWPvA','toString','ZIsbz','YQGQN','iteration','expanded','HTTP','LUXLd','kSvBl','argv','yZOPD','result','removeListener','startTimestamp','PVLWb','HDZSy','stack','../../v2/state/testFrameworkState','responseTime','testFrameworkVersion','10312PjGNWU','error','No\x20HTTP\x20response\x20received','\x20(HTTP\x20','uploadEventData','NjuFb','gyFZo','split','dJdis','XIUMa','backtrace','yevLd','Rxdhu','TEST_LOG','WcSoM','qYJqV','event_type','RPXOC','imWFV','headers','isRunning','[Newman\x20Reporter]\x20emitTest\x20error:\x20','newman','code','VqAIJ','status_code','event','raayJ','delete','[Newman\x20Reporter]\x20Error\x20in\x20request:\x20','[Newman\x20Reporter]\x20Error\x20in\x20script:\x20','path','INFO','winstonLogger','[Newman\x20Reporter]\x20Error\x20in\x20bs:addLog\x20handler:\x20','search','passed','level','forEach','fAzyY','location','769458MWIkNO','uuid','[Newman\x20Reporter]\x20Error\x20in\x20item:\x20','collection.json','string','getTestFramework','fKlmv','AYvvs','438968nnIXKd','5AvQTxD','getInstance','aNEbl','collectionName','bufferedLogs','AMDER','LGaWL','cursor','DKsaY','YjXOn','2660JaqKyT','httpLog','adXXU','SqYvI','javascript','failure_reason_expanded','IxnvA'];a43_0x573f=function(){return _0x45228f;};return a43_0x573f();}function emitTest(_0x5bde3e,_0x38326c,_0x529020,_0x31b914,_0x1dd229){const _0x1492dd=a43_0x25de8a,_0x2ef634={'OyPsR':function(_0x11308d){return _0x11308d();},'raayJ':_0x1492dd(0x1fe),'kSvBl':function(_0xa22e8d,_0x1437bb){return _0xa22e8d(_0x1437bb);},'AYvvs':_0x1492dd(0x2ba),'VSBxc':_0x1492dd(0x1e9),'NrltP':function(_0x2a2ea8,_0x3d212d){return _0x2a2ea8!=_0x3d212d;},'zAbsv':function(_0x4f6bf8,_0x156d30){return _0x4f6bf8===_0x156d30;},'AHtJm':_0x1492dd(0x22b),'ExOdH':'TestRunFinished'};if(_0x2ef634[_0x1492dd(0x1fd)](isCLIRunning))try{const _0x2a1e9d=BrowserstackCLI['getInstance']()[_0x1492dd(0x2d2)]();if(!_0x2a1e9d)return;_0x2a1e9d[_0x1492dd(0x262)](TestFrameworkState['TEST'],_0x5bde3e,{'test':{'uuid':_0x38326c[_0x1492dd(0x2ce)],'name':_0x38326c[_0x1492dd(0x200)],'scopes':_0x529020[_0x1492dd(0x210)],'scope':_0x529020[_0x1492dd(0x210)]['join']('\x20'),'file_path':_0x31b914,'location':_0x529020[_0x1492dd(0x2d9)],'started_at':_0x529020['startedAt'],'finished_at':_0x1dd229[_0x1492dd(0x1ee)]||null,'result':_0x1dd229[_0x1492dd(0x29b)]||_0x2ef634[_0x1492dd(0x2bf)],'failure':_0x1dd229[_0x1492dd(0x212)]||[],'failure_type':_0x1dd229[_0x1492dd(0x250)]||null,'failure_reason':_0x1dd229[_0x1492dd(0x253)]||null,'tags':[],'meta':{},'custom_metadata':{}}});}catch(_0x12b683){_0x2ef634[_0x1492dd(0x298)](debug,_0x1492dd(0x2b9)+_0x12b683);}else{const _0x3281f8={'uuid':_0x38326c[_0x1492dd(0x2ce)],'name':_0x38326c[_0x1492dd(0x200)],'framework':_0x2ef634[_0x1492dd(0x2d4)],'body':{'lang':_0x2ef634[_0x1492dd(0x246)],'code':null},'scope':_0x529020[_0x1492dd(0x210)][_0x1492dd(0x1ec)]('\x20'),'scopes':_0x529020['scopes'],'identifier':_0x38326c['identifier'],'file_name':_0x529020[_0x1492dd(0x2d9)],'vc_filepath':_0x529020[_0x1492dd(0x2cc)],'location':_0x529020[_0x1492dd(0x2cc)],'started_at':_0x529020['startedAt'],'finished_at':_0x1dd229[_0x1492dd(0x1ee)]||null,'duration_in_ms':_0x2ef634['NrltP'](_0x1dd229[_0x1492dd(0x232)],null)?Math[_0x1492dd(0x1f1)](0x0,_0x1dd229[_0x1492dd(0x232)]):null,'result':_0x1dd229['result']||_0x2ef634[_0x1492dd(0x2bf)],'failure_reason':_0x1dd229[_0x1492dd(0x253)]||null,'failure_type':_0x1dd229[_0x1492dd(0x250)]||null,'failure':_0x1dd229[_0x1492dd(0x212)]||[],'retry_of':null,'hooks':[]};_0x3281f8[_0x1492dd(0x212)][0x0]&&(_0x3281f8['failure_backtrace']=_0x3281f8['failure'][0x0][_0x1492dd(0x2ae)],_0x3281f8[_0x1492dd(0x1ea)]=_0x3281f8[_0x1492dd(0x212)][0x0][_0x1492dd(0x295)]);const _0x2be764=_0x2ef634[_0x1492dd(0x243)](_0x5bde3e,HookState[_0x1492dd(0x27b)])?_0x2ef634[_0x1492dd(0x24f)]:_0x2ef634[_0x1492dd(0x1f4)],_0x5c9851={};_0x5c9851[_0x1492dd(0x2b4)]=_0x2be764,_0x5c9851[_0x1492dd(0x223)]=_0x3281f8,SessionHandler[_0x1492dd(0x2a8)](_0x5c9851);}}function emitLog(_0xb735b0,_0x56b65b){const _0x154e4=a43_0x25de8a,_0xda31ce={'pbKso':_0x154e4(0x2b1),'OxJHn':function(_0x3fe5d5){return _0x3fe5d5();},'iMrxo':function(_0x487d0f,_0x1d08cb){return _0x487d0f===_0x1d08cb;},'sftsa':_0x154e4(0x296),'qKdEF':_0x154e4(0x2ba),'dJdis':'TEST','HVIka':_0x154e4(0x2c4),'zqNiE':function(_0x3a8e34,_0x3f7fca){return _0x3a8e34(_0x3f7fca);},'BgqcV':function(_0x220ad7,_0x2bb893){return _0x220ad7+_0x2bb893;},'NmwXE':'[Newman\x20Reporter]\x20emitLog\x20error:\x20','fnxuV':_0x154e4(0x24b)},_0x223a5a=_0x56b65b[_0x154e4(0x23b)]||_0xda31ce[_0x154e4(0x279)],_0x396e6c=_0x56b65b[_0x154e4(0x264)]||new Date()[_0x154e4(0x260)]();if(_0xda31ce[_0x154e4(0x26c)](isCLIRunning))try{const _0x42b995=_0xda31ce[_0x154e4(0x21a)](_0x223a5a,_0xda31ce[_0x154e4(0x226)])?JSON['stringify'](_0x56b65b):_0x56b65b['message']||'',_0x223b59={};_0x223b59['platformIndex']=0x0,_0x223b59[_0x154e4(0x257)]=_0xda31ce[_0x154e4(0x240)],_0x223b59[_0x154e4(0x2a3)]='',_0x223b59[_0x154e4(0x251)]=_0xda31ce[_0x154e4(0x2ac)],_0x223b59[_0x154e4(0x247)]=[{'uuid':_0xb735b0,'timestamp':_0x396e6c,'kind':_0x223a5a,'level':_0x56b65b[_0x154e4(0x2c9)]||_0xda31ce['HVIka'],'message':_0x42b995}],GrpcClient[_0x154e4(0x2d7)]()[_0x154e4(0x23f)](_0x223b59);}catch(_0x4583b9){_0xda31ce[_0x154e4(0x227)](debug,_0xda31ce['BgqcV'](_0xda31ce[_0x154e4(0x274)],_0x4583b9));}else{const _0x452fbc={};_0x452fbc['test_run_uuid']=_0xb735b0,_0x452fbc['timestamp']=_0x396e6c,_0x452fbc[_0x154e4(0x2c9)]=_0x56b65b[_0x154e4(0x2c9)]||null,_0x452fbc[_0x154e4(0x1f0)]=_0x56b65b[_0x154e4(0x1f0)]||null,_0x452fbc[_0x154e4(0x23b)]=_0x223a5a,_0x452fbc[_0x154e4(0x26d)]=_0x56b65b[_0x154e4(0x26d)]||{};const _0x188262={};_0x188262['event_type']=_0xda31ce[_0x154e4(0x276)],_0x188262[_0x154e4(0x247)]=[_0x452fbc],SessionHandler['uploadEventData'](_0x188262);}}function BrowserStackNewmanReporter(_0x2f6fca,_0x2fa0b4,_0x282114){const _0x1464ff=a43_0x25de8a,_0x318226={'SqYvI':function(_0x279cd9,_0x3d29ea,_0x5688a1){return _0x279cd9(_0x3d29ea,_0x5688a1);},'mdylf':function(_0x2ba8a1,_0x44a9b9){return _0x2ba8a1(_0x44a9b9);},'jcqcu':function(_0x337f45,_0x9f1234){return _0x337f45>_0x9f1234;},'QPFaR':'http','WIdJt':function(_0x4ef654,_0x24ee14){return _0x4ef654+_0x24ee14;},'cfFfQ':_0x1464ff(0x238),'AUkPq':function(_0x5da867,_0x3785cb,_0x35f581){return _0x5da867(_0x3785cb,_0x35f581);},'DjOwl':'TEST_LOG','pCZON':function(_0x3f8bc1,_0x20520b){return _0x3f8bc1+_0x20520b;},'skpGF':function(_0x2290e1){return _0x2290e1();},'tbHVp':function(_0x44efcf,_0x2f57a2){return _0x44efcf||_0x2f57a2;},'YjXOn':function(_0x52ad95,_0x3d2a62,_0x3ab9b6,_0x101615,_0x238be1,_0x21179e){return _0x52ad95(_0x3d2a62,_0x3ab9b6,_0x101615,_0x238be1,_0x21179e);},'DBXdo':function(_0x195f8f,_0x2e5b0a){return _0x195f8f===_0x2e5b0a;},'ognfj':function(_0x5a0ba3,_0x48b77c){return _0x5a0ba3>_0x48b77c;},'SOGbi':function(_0x5daa4c,_0x2612b3,_0x203e3e){return _0x5daa4c(_0x2612b3,_0x203e3e);},'ZIsbz':'HTTP','aNEbl':function(_0x17100d,_0x21150f){return _0x17100d+_0x21150f;},'ADyJm':function(_0x2b2065,_0xa31d25){return _0x2b2065+_0xa31d25;},'mShVq':function(_0x4db310,_0x2a471b){return _0x4db310+_0x2a471b;},'pIYCk':function(_0x4a1555,_0x7a151f){return _0x4a1555+_0x7a151f;},'rDlKj':function(_0x3f1604,_0x14733e){return _0x3f1604+_0x14733e;},'JHIlv':function(_0x119443,_0x1dd9fd){return _0x119443+_0x1dd9fd;},'yevLd':'\x20->\x20','YQGQN':'ms)','hwftm':function(_0x191ba9,_0x21b655,_0x25dec9){return _0x191ba9(_0x21b655,_0x25dec9);},'fAzyY':_0x1464ff(0x2c4),'cwCWL':function(_0x58ae98,_0x2248c2){return _0x58ae98(_0x2248c2);},'pBtWH':function(_0xd25308,_0x599d12){return _0xd25308>_0x599d12;},'FqQhT':function(_0x49c7f5,_0x5c326c){return _0x49c7f5-_0x5c326c;},'naigC':function(_0x1b5c65,_0x5c92c0,_0x509063){return _0x1b5c65(_0x5c92c0,_0x509063);},'ruBtn':function(_0x2875b4,_0x2e8035){return _0x2875b4(_0x2e8035);},'IwlCB':function(_0x14a194,_0xc6fa5d){return _0x14a194(_0xc6fa5d);},'WcSoM':function(_0xf49085,_0xc6cc5f){return _0xf49085&&_0xc6cc5f;},'inpcM':function(_0x5d0516,_0x5ae720){return _0x5d0516>_0x5ae720;},'qvpYo':function(_0x2b50b3,_0x25a50d){return _0x2b50b3-_0x25a50d;},'IxnvA':function(_0x16a76e,_0x448d27,_0x3f05f2){return _0x16a76e(_0x448d27,_0x3f05f2);},'dRYbY':function(_0x9e8054,_0x53006b){return _0x9e8054+_0x53006b;},'AMDER':_0x1464ff(0x22a),'RZaAI':_0x1464ff(0x275),'GKjvH':_0x1464ff(0x215),'IZpaT':function(_0x593d36,_0x18dabd){return _0x593d36>_0x18dabd;},'gMKuF':function(_0x326286,_0x250f88){return _0x326286-_0x250f88;},'GjPdn':'unknown','LGaWL':function(_0xae3c2e,_0x161ea4){return _0xae3c2e+_0x161ea4;},'SPKLn':'Script\x20error\x20(','lSlwN':_0x1464ff(0x203),'jcAZm':function(_0xd07fa0,_0x203fe5){return _0xd07fa0(_0x203fe5);},'hvwLb':_0x1464ff(0x2c2),'oKlDK':_0x1464ff(0x289),'Gpkkj':_0x1464ff(0x2c8),'LUXLd':function(_0x45119a,_0x2e8852){return _0x45119a===_0x2e8852;},'Rxdhu':_0x1464ff(0x1fb),'EkDBF':'assert','fSADd':_0x1464ff(0x284),'vUEJH':function(_0x593f31,_0xae19b8){return _0x593f31>_0xae19b8;},'xrtXB':function(_0x4d33d5){return _0x4d33d5();},'xFuFZ':function(_0x514981,_0x1bb803){return _0x514981!=_0x1bb803;},'jZvnp':function(_0x27595f,_0x5a3857){return _0x27595f>=_0x5a3857;},'fKlmv':function(_0x51fa10,_0x1da799){return _0x51fa10<_0x1da799;},'lItaj':'N/A','KDMJg':_0x1464ff(0x2a6),'vXctY':function(_0x47fa9a,_0x3ce4e2,_0x31cbce,_0x12a508,_0x5ce6e4,_0x1f545e){return _0x47fa9a(_0x3ce4e2,_0x31cbce,_0x12a508,_0x5ce6e4,_0x1f545e);},'PVLWb':function(_0x20f483,_0x433db5,_0x459b9b){return _0x20f483(_0x433db5,_0x459b9b);},'vaRXo':function(_0x3b2e1d,_0x352a9c){return _0x3b2e1d+_0x352a9c;},'KXjqX':function(_0x4987a7,_0x265b71){return _0x4987a7+_0x265b71;},'zGPTQ':function(_0x36db29,_0x3fde2d){return _0x36db29+_0x3fde2d;},'yZOPD':function(_0x383d3c,_0x253e4b){return _0x383d3c+_0x253e4b;},'xZZMe':function(_0x539474,_0x2f7a94){return _0x539474+_0x2f7a94;},'TBhxB':function(_0x421720,_0x2cd1c0){return _0x421720+_0x2cd1c0;},'nnpJG':function(_0x43f5d6,_0x48884d,_0x3c9562){return _0x43f5d6(_0x48884d,_0x3c9562);},'CBGTs':_0x1464ff(0x28f),'XmyQb':function(_0x5e762c,_0x5d631b){return _0x5e762c||_0x5d631b;},'imWFV':'\x20(no\x20assertions)','RPXOC':function(_0x77e8f5,_0x29e676,_0x262c64){return _0x77e8f5(_0x29e676,_0x262c64);},'FEhlZ':function(_0x1a310d,_0x1e12b7){return _0x1a310d(_0x1e12b7);},'Ocsut':_0x1464ff(0x256),'NjuFb':_0x1464ff(0x22f),'Okxtr':_0x1464ff(0x27e),'VDrnW':_0x1464ff(0x287),'HDZSy':_0x1464ff(0x280),'Lfqqt':_0x1464ff(0x266),'VqAIJ':_0x1464ff(0x204),'slpfX':'script','sYkZg':'item'},_0x5da92c=new Map();let _0xcfe221=null,_0x1c63cc=0x0;const _0x89552e=_0x318226[_0x1464ff(0x2b5)](resolveCollectionFile,_0x282114,_0x2fa0b4),_0x3f8247=_0x318226['FEhlZ'](resolveCollectionName,_0x282114)||_0x89552e,_0x1b814f=path['resolve'](_0x89552e),_0x402270=_0x1464ff(0x21d)+process[_0x1464ff(0x1f9)],_0x2f48f6=_0xeeb0e=>{const _0x578fa4=_0x1464ff;try{_0xcfe221&&_0x318226[_0x578fa4(0x1e8)](emitLog,_0xcfe221,_0xeeb0e);}catch(_0x27a829){_0x318226[_0x578fa4(0x24a)](debug,_0x578fa4(0x2c6)+_0x27a829);}};process['on'](_0x402270,_0x2f48f6),_0x2f6fca['on'](_0x318226[_0x1464ff(0x218)],()=>{const _0x36a9c1=_0x1464ff;process[_0x36a9c1(0x29c)](_0x402270,_0x2f48f6),_0x5da92c['clear']();}),_0x2f6fca['on'](_0x318226[_0x1464ff(0x2a9)],(_0x9fa7d4,_0x4653b4)=>{const _0x4fa3e7=_0x1464ff;_0x4653b4&&_0x4653b4[_0x4fa3e7(0x2dd)]&&(_0x1c63cc=_0x4653b4[_0x4fa3e7(0x2dd)][_0x4fa3e7(0x294)]||0x0);}),_0x2f6fca['on'](_0x318226[_0x1464ff(0x267)],(_0x1caac7,_0x55cfe6)=>{const _0x174c76=_0x1464ff;try{_0xcfe221=null;const _0xc4a9a2=_0x55cfe6[_0x174c76(0x239)],_0xf1d7f0=_0xc4a9a2[_0x174c76(0x244)]()?_0x318226[_0x174c76(0x24a)](getParentTitles,_0xc4a9a2[_0x174c76(0x244)]()):[],_0xb77da1=_0x318226[_0x174c76(0x24e)](_0xf1d7f0[_0x174c76(0x258)],0x1)?_0xf1d7f0[_0x174c76(0x269)](0x1):_0xf1d7f0,_0x44cee0=_0x55cfe6[_0x174c76(0x2dd)]&&_0x55cfe6[_0x174c76(0x2dd)][_0x174c76(0x25e)],_0x5f00f0={'itemName':_0xc4a9a2['name'],'scopes':_0xb77da1['concat']([_0xc4a9a2[_0x174c76(0x200)]]),'location':_0x89552e,'collectionName':_0x3f8247,'startedAt':new Date()[_0x174c76(0x260)](),'startTimestamp':Date[_0x174c76(0x233)](),'lastResponseCode':null,'httpLog':null,'assertions':[],'bufferedLogs':[]};_0x5da92c[_0x174c76(0x21f)](_0xc4a9a2['id']+'_'+_0x1c63cc,_0x5f00f0),_0x44cee0&&_0x5da92c[_0x174c76(0x21f)](_0x44cee0+'_'+_0x1c63cc,_0x5f00f0);}catch(_0x5192be){_0x318226[_0x174c76(0x24a)](debug,_0x174c76(0x278)+_0x5192be);}}),_0x2f6fca['on'](_0x318226[_0x1464ff(0x202)],(_0x2971d7,_0x344943)=>{const _0x487cd4=_0x1464ff;try{if(!_0x344943||!_0x344943[_0x487cd4(0x239)])return;const _0x5c1b97=_0x5da92c[_0x487cd4(0x26e)](_0x344943[_0x487cd4(0x239)]['id']+'_'+_0x1c63cc);if(!_0x5c1b97)return;_0x344943[_0x487cd4(0x1f2)]&&(_0x5c1b97[_0x487cd4(0x234)]=_0x344943[_0x487cd4(0x1f2)][_0x487cd4(0x2bb)]||null);if(!_0x344943[_0x487cd4(0x287)])return;let _0x4a77ec='',_0x24afad='';if(_0x344943[_0x487cd4(0x287)][_0x487cd4(0x23a)])try{const _0x5be60d=_0x344943['request'][_0x487cd4(0x23a)]['toString'](),_0x5b6b60=new URL(_0x5be60d[_0x487cd4(0x242)](_0x318226[_0x487cd4(0x25b)])?_0x5be60d:'http://'+_0x5be60d);_0x4a77ec=_0x5b6b60['hostname'],_0x24afad=_0x318226['WIdJt'](_0x5b6b60['pathname'],_0x5b6b60[_0x487cd4(0x2c7)]);}catch(_0x54fdc4){_0x24afad=_0x344943[_0x487cd4(0x287)]['url'][_0x487cd4(0x291)]();}const _0xad6997={};_0xad6997[_0x487cd4(0x201)]=_0x4a77ec,_0xad6997[_0x487cd4(0x2c3)]=_0x24afad,_0xad6997[_0x487cd4(0x248)]=_0x344943[_0x487cd4(0x287)]['method']||_0x318226[_0x487cd4(0x25a)],_0xad6997[_0x487cd4(0x2b7)]={},_0xad6997[_0x487cd4(0x2bd)]=_0x344943[_0x487cd4(0x1f2)]?_0x344943['response'][_0x487cd4(0x2bb)]||0x0:0x0,_0xad6997[_0x487cd4(0x283)]=_0x344943[_0x487cd4(0x1f2)]?_0x344943[_0x487cd4(0x1f2)][_0x487cd4(0x2a2)]||0x0:0x0,_0x5c1b97[_0x487cd4(0x1e6)]=_0xad6997;}catch(_0x15ef69){_0x318226[_0x487cd4(0x24a)](debug,_0x487cd4(0x2c1)+_0x15ef69);}}),_0x2f6fca['on'](_0x318226[_0x1464ff(0x29f)],(_0x5f5231,_0x2c5c0a)=>{const _0x36dd20=_0x1464ff;try{if(!_0x2c5c0a||!_0x2c5c0a['item'])return;const _0x2faeca=_0x5da92c['get'](_0x2c5c0a['item']['id']+'_'+_0x1c63cc);if(!_0x2faeca)return;const _0x3bd1b9=_0x2c5c0a[_0x36dd20(0x280)]||_0x36dd20(0x20b)+_0x318226[_0x36dd20(0x28a)](_0x2faeca[_0x36dd20(0x231)][_0x36dd20(0x258)],0x1),_0x46dbc0=_0x318226[_0x36dd20(0x205)](uuidv4),_0x18ea03=_0x2faeca['scopes'][_0x36dd20(0x1f6)]([_0x3bd1b9])[_0x36dd20(0x1ec)]('\x20');_0x2faeca[_0x36dd20(0x231)][_0x36dd20(0x254)]({'uuid':_0x46dbc0,'name':_0x3bd1b9,'identifier':_0x18ea03,'err':_0x318226[_0x36dd20(0x255)](_0x5f5231,null)});const _0x40015a={};_0x40015a[_0x36dd20(0x2ce)]=_0x46dbc0,_0x40015a[_0x36dd20(0x200)]=_0x3bd1b9,_0x40015a[_0x36dd20(0x208)]=_0x18ea03,_0x318226[_0x36dd20(0x2df)](emitTest,HookState[_0x36dd20(0x27b)],_0x40015a,_0x2faeca,_0x1b814f,{});_0x318226[_0x36dd20(0x220)](_0x2faeca[_0x36dd20(0x231)][_0x36dd20(0x258)],0x1)&&_0x318226['ognfj'](_0x2faeca[_0x36dd20(0x2da)][_0x36dd20(0x258)],0x0)&&(_0x2faeca[_0x36dd20(0x2da)]['forEach'](_0x6a37f3=>{const _0x338c25=_0x36dd20;_0x318226[_0x338c25(0x26f)](emitLog,_0x46dbc0,{'kind':_0x318226[_0x338c25(0x219)],'message':_0x6a37f3[_0x338c25(0x1f0)],'level':_0x6a37f3[_0x338c25(0x2c9)]});}),_0x2faeca[_0x36dd20(0x2da)]=[]);if(_0x2faeca[_0x36dd20(0x1e6)]){_0x318226[_0x36dd20(0x224)](emitLog,_0x46dbc0,{'kind':_0x318226[_0x36dd20(0x292)],'http_response':_0x2faeca[_0x36dd20(0x1e6)]});const _0x579db9=_0x318226[_0x36dd20(0x2d8)](_0x318226[_0x36dd20(0x28d)](_0x318226[_0x36dd20(0x271)](_0x318226[_0x36dd20(0x263)](_0x318226[_0x36dd20(0x211)](_0x318226[_0x36dd20(0x1ef)](_0x318226[_0x36dd20(0x24d)](_0x318226[_0x36dd20(0x2d8)](_0x2faeca[_0x36dd20(0x1e6)]['method']||_0x318226[_0x36dd20(0x25a)],'\x20'),_0x2faeca[_0x36dd20(0x1e6)][_0x36dd20(0x201)]),_0x2faeca[_0x36dd20(0x1e6)][_0x36dd20(0x2c3)]),_0x318226[_0x36dd20(0x2af)]),_0x2faeca[_0x36dd20(0x1e6)][_0x36dd20(0x2bd)]),'\x20('),_0x2faeca[_0x36dd20(0x1e6)][_0x36dd20(0x283)]),_0x318226[_0x36dd20(0x293)]);_0x318226[_0x36dd20(0x26a)](emitLog,_0x46dbc0,{'kind':_0x318226[_0x36dd20(0x219)],'message':_0x579db9,'level':_0x318226[_0x36dd20(0x2cb)]});}_0xcfe221=_0x46dbc0;}catch(_0x560e43){_0x318226[_0x36dd20(0x268)](debug,'[Newman\x20Reporter]\x20Error\x20in\x20assertion:\x20'+_0x560e43);}}),_0x2f6fca['on'](_0x318226[_0x1464ff(0x265)],(_0x583fd8,_0x12d226)=>{const _0x3173e1=_0x1464ff;try{if(!_0x12d226)return;let _0x22df44=_0xcfe221;if(!_0x22df44&&_0x12d226[_0x3173e1(0x2dd)]&&_0x12d226[_0x3173e1(0x2dd)]['ref']){const _0x1d5542=_0x5da92c[_0x3173e1(0x26e)](_0x12d226[_0x3173e1(0x2dd)][_0x3173e1(0x25e)]+'_'+_0x1c63cc);_0x1d5542&&_0x318226[_0x3173e1(0x213)](_0x1d5542[_0x3173e1(0x231)][_0x3173e1(0x258)],0x0)&&(_0x22df44=_0x1d5542[_0x3173e1(0x231)][_0x318226[_0x3173e1(0x25c)](_0x1d5542[_0x3173e1(0x231)][_0x3173e1(0x258)],0x1)]['uuid']);}const _0xa04d2e=_0x12d226[_0x3173e1(0x1fa)]?_0x12d226[_0x3173e1(0x1fa)][_0x3173e1(0x1ec)](',\x20'):'';if(_0x22df44)_0x318226['naigC'](emitLog,_0x22df44,{'kind':_0x318226[_0x3173e1(0x219)],'message':_0xa04d2e,'level':_0x318226[_0x3173e1(0x24a)](normalizeLogLevel,_0x12d226[_0x3173e1(0x2c9)])});else{if(_0x12d226[_0x3173e1(0x2dd)]&&_0x12d226[_0x3173e1(0x2dd)][_0x3173e1(0x25e)]){const _0x4c969c=_0x5da92c[_0x3173e1(0x26e)](_0x12d226[_0x3173e1(0x2dd)][_0x3173e1(0x25e)]+'_'+_0x1c63cc);_0x4c969c&&_0x4c969c[_0x3173e1(0x2da)][_0x3173e1(0x254)]({'timestamp':new Date()['toISOString'](),'level':_0x318226[_0x3173e1(0x268)](normalizeLogLevel,_0x12d226[_0x3173e1(0x2c9)]),'message':_0xa04d2e});}}}catch(_0x57d7d9){_0x318226['ruBtn'](debug,'[Newman\x20Reporter]\x20Error\x20in\x20console:\x20'+_0x57d7d9);}}),_0x2f6fca['on'](_0x318226[_0x1464ff(0x2bc)],(_0x38979f,_0x274e4c)=>{const _0x35cd10=_0x1464ff;try{if(!_0x38979f&&(!_0x274e4c||!_0x274e4c[_0x35cd10(0x2a5)]))return;const _0x3c99cb=_0x38979f||_0x274e4c['error'],_0x1d2c19=_0x3c99cb[_0x35cd10(0x1f0)]||_0x318226[_0x35cd10(0x21c)](String,_0x3c99cb),_0xfe36b7=_0x3c99cb[_0x35cd10(0x2a0)]||_0x1d2c19;let _0x56da20=_0xcfe221;if(_0x318226[_0x35cd10(0x2b2)](!_0x56da20,_0x274e4c)&&_0x274e4c['cursor']&&_0x274e4c[_0x35cd10(0x2dd)][_0x35cd10(0x25e)]){const _0x54d109=_0x5da92c['get'](_0x274e4c[_0x35cd10(0x2dd)][_0x35cd10(0x25e)]+'_'+_0x1c63cc);_0x54d109&&_0x318226[_0x35cd10(0x272)](_0x54d109[_0x35cd10(0x231)]['length'],0x0)&&(_0x56da20=_0x54d109['assertions'][_0x318226[_0x35cd10(0x20c)](_0x54d109[_0x35cd10(0x231)][_0x35cd10(0x258)],0x1)][_0x35cd10(0x2ce)]);}_0x56da20&&_0x318226[_0x35cd10(0x1eb)](emitLog,_0x56da20,{'kind':_0x318226[_0x35cd10(0x219)],'message':_0x318226['dRYbY'](_0x318226[_0x35cd10(0x2db)],_0xfe36b7),'level':_0x318226[_0x35cd10(0x27c)]});}catch(_0x4f1594){_0x318226[_0x35cd10(0x268)](debug,_0x318226[_0x35cd10(0x24d)](_0x318226[_0x35cd10(0x23c)],_0x4f1594));}}),_0x2f6fca['on'](_0x318226['slpfX'],(_0x1ace2e,_0x8045f)=>{const _0x4eefee=_0x1464ff;try{if(!_0x8045f||!_0x8045f[_0x4eefee(0x237)])return;let _0x4701f2=_0xcfe221;if(!_0x4701f2&&_0x8045f[_0x4eefee(0x2dd)]&&_0x8045f[_0x4eefee(0x2dd)][_0x4eefee(0x25e)]){const _0x48f945=_0x5da92c['get'](_0x8045f[_0x4eefee(0x2dd)][_0x4eefee(0x25e)]+'_'+_0x1c63cc);_0x48f945&&_0x318226[_0x4eefee(0x25f)](_0x48f945['assertions']['length'],0x0)&&(_0x4701f2=_0x48f945[_0x4eefee(0x231)][_0x318226[_0x4eefee(0x245)](_0x48f945[_0x4eefee(0x231)][_0x4eefee(0x258)],0x1)][_0x4eefee(0x2ce)]);}if(!_0x4701f2)return;const _0x4837ab=_0x8045f[_0x4eefee(0x2be)]&&_0x8045f[_0x4eefee(0x2be)][_0x4eefee(0x217)]||_0x318226[_0x4eefee(0x214)];_0x1ace2e&&_0x318226['IxnvA'](emitLog,_0x4701f2,{'kind':_0x318226[_0x4eefee(0x219)],'message':_0x318226[_0x4eefee(0x2dc)](_0x318226[_0x4eefee(0x263)](_0x318226[_0x4eefee(0x1ef)](_0x318226['SPKLn'],_0x4837ab),_0x318226[_0x4eefee(0x285)]),_0x1ace2e[_0x4eefee(0x1f0)]||_0x1ace2e),'level':_0x318226[_0x4eefee(0x27c)]});}catch(_0x1fe6c5){_0x318226[_0x4eefee(0x216)](debug,_0x318226['WIdJt'](_0x318226[_0x4eefee(0x22d)],_0x1fe6c5));}}),_0x2f6fca['on'](_0x318226['sYkZg'],(_0xd5f44c,_0x42767f)=>{const _0x5477ef=_0x1464ff,_0xf6edbe={'YdNwC':function(_0x1553a9,_0x4a9506,_0x76a241){return _0x318226['naigC'](_0x1553a9,_0x4a9506,_0x76a241);},'VOguA':_0x318226[_0x5477ef(0x219)]};try{if(!_0x42767f||!_0x42767f[_0x5477ef(0x239)])return;const _0x43253e=_0x42767f[_0x5477ef(0x239)]['id']+'_'+_0x1c63cc,_0x59deed=_0x5da92c[_0x5477ef(0x26e)](_0x43253e);if(!_0x59deed)return;const _0x1cf925=new Date(),_0x790fb3=_0x318226[_0x5477ef(0x20c)](_0x1cf925[_0x5477ef(0x1f8)](),_0x59deed[_0x5477ef(0x29d)]);if(_0x318226[_0x5477ef(0x229)](_0x59deed[_0x5477ef(0x231)][_0x5477ef(0x258)],0x0))_0x59deed[_0x5477ef(0x231)]['forEach'](_0x356750=>{const _0x216acb=_0x5477ef,_0x467d7d=!!_0x356750[_0x216acb(0x1f7)],_0x291e7d={'finishedAt':_0x1cf925[_0x216acb(0x260)](),'durationMs':_0x790fb3,'result':_0x467d7d?_0x318226[_0x216acb(0x20a)]:_0x318226[_0x216acb(0x20e)]};_0x467d7d&&(_0x291e7d[_0x216acb(0x253)]=_0x356750[_0x216acb(0x1f7)][_0x216acb(0x1f0)]||'',_0x291e7d['failureType']=_0x318226[_0x216acb(0x297)](_0x356750[_0x216acb(0x1f7)][_0x216acb(0x200)],_0x318226[_0x216acb(0x2b0)])||_0x356750[_0x216acb(0x1f7)]['message']&&_0x356750['err']['message']['includes'](_0x318226[_0x216acb(0x206)])?_0x318226[_0x216acb(0x2b0)]:_0x318226[_0x216acb(0x209)],_0x291e7d[_0x216acb(0x212)]=[{'backtrace':_0x356750[_0x216acb(0x1f7)]['stack']?_0x356750[_0x216acb(0x1f7)][_0x216acb(0x2a0)][_0x216acb(0x2ab)]('\x0a'):[_0x356750['err']['message']||''],'expanded':[]}]),_0x318226[_0x216acb(0x2df)](emitTest,HookState[_0x216acb(0x228)],_0x356750,_0x59deed,_0x1b814f,_0x291e7d);});else{const _0x52a4d1=_0x318226['xrtXB'](uuidv4),_0x4fbfd4=_0x59deed['lastResponseCode'],_0x472c60=_0x318226[_0x5477ef(0x1ed)](_0x4fbfd4,null)&&_0x318226['jZvnp'](_0x4fbfd4,0xc8)&&_0x318226[_0x5477ef(0x2d3)](_0x4fbfd4,0x190),_0x3fe715=_0x59deed[_0x5477ef(0x221)]+_0x5477ef(0x2a7)+_0x318226[_0x5477ef(0x255)](_0x4fbfd4,_0x318226[_0x5477ef(0x23e)])+')',_0x42df8b={'uuid':_0x52a4d1,'name':_0x3fe715,'identifier':_0x59deed[_0x5477ef(0x210)]['concat']([_0x3fe715])['join']('\x20')},_0x3d5816={'finishedAt':_0x1cf925[_0x5477ef(0x260)](),'durationMs':_0x790fb3,'result':_0x472c60?_0x318226[_0x5477ef(0x20e)]:_0x318226[_0x5477ef(0x20a)]};!_0x472c60&&(_0x3d5816[_0x5477ef(0x253)]=_0x318226[_0x5477ef(0x1ed)](_0x4fbfd4,null)?_0x5477ef(0x20d)+_0x4fbfd4+'\x20—\x20response\x20status\x20in\x20failure\x20range':_0x318226['KDMJg'],_0x3d5816[_0x5477ef(0x250)]=_0x318226['fSADd'],_0x3d5816[_0x5477ef(0x212)]=[{'backtrace':[_0x3d5816[_0x5477ef(0x253)]],'expanded':[]}]);_0x318226['vXctY'](emitTest,HookState['PRE'],_0x42df8b,_0x59deed,_0x1b814f,{}),_0x59deed[_0x5477ef(0x2da)][_0x5477ef(0x2ca)](_0x5ce4e2=>{const _0x72b87d=_0x5477ef;_0xf6edbe[_0x72b87d(0x28e)](emitLog,_0x52a4d1,{'kind':_0xf6edbe['VOguA'],'message':_0x5ce4e2[_0x72b87d(0x1f0)],'level':_0x5ce4e2[_0x72b87d(0x2c9)]});});if(_0x59deed[_0x5477ef(0x1e6)]){_0x318226[_0x5477ef(0x29e)](emitLog,_0x52a4d1,{'kind':_0x318226['ZIsbz'],'http_response':_0x59deed[_0x5477ef(0x1e6)]});const _0x31b29c=_0x318226[_0x5477ef(0x271)](_0x318226[_0x5477ef(0x23d)](_0x318226[_0x5477ef(0x252)](_0x318226[_0x5477ef(0x1ff)](_0x318226[_0x5477ef(0x2d8)](_0x318226[_0x5477ef(0x29a)](_0x318226['xZZMe'](_0x318226['TBhxB'](_0x59deed[_0x5477ef(0x1e6)][_0x5477ef(0x248)]||_0x318226[_0x5477ef(0x25a)],'\x20'),_0x59deed[_0x5477ef(0x1e6)]['host']),_0x59deed[_0x5477ef(0x1e6)][_0x5477ef(0x2c3)]),_0x318226[_0x5477ef(0x2af)]),_0x59deed[_0x5477ef(0x1e6)][_0x5477ef(0x2bd)]),'\x20('),_0x59deed[_0x5477ef(0x1e6)][_0x5477ef(0x283)]),_0x318226[_0x5477ef(0x293)]);_0x318226[_0x5477ef(0x207)](emitLog,_0x52a4d1,{'kind':_0x318226['DjOwl'],'message':_0x31b29c,'level':_0x318226['fAzyY']});}else _0x318226[_0x5477ef(0x26a)](emitLog,_0x52a4d1,{'kind':_0x318226[_0x5477ef(0x219)],'message':_0x318226[_0x5477ef(0x1ef)](_0x318226[_0x5477ef(0x263)](_0x318226[_0x5477ef(0x28c)],_0x318226['XmyQb'](_0x4fbfd4,_0x318226[_0x5477ef(0x23e)])),_0x318226[_0x5477ef(0x2b6)]),'level':_0x318226[_0x5477ef(0x2cb)]});_0x318226['vXctY'](emitTest,HookState[_0x5477ef(0x228)],_0x42df8b,_0x59deed,_0x1b814f,_0x3d5816);}_0x5da92c['delete'](_0x43253e),_0x42767f[_0x5477ef(0x2dd)]&&_0x42767f[_0x5477ef(0x2dd)][_0x5477ef(0x25e)]&&_0x5da92c[_0x5477ef(0x2c0)](_0x42767f[_0x5477ef(0x2dd)][_0x5477ef(0x25e)]+'_'+_0x1c63cc);}catch(_0x57b72a){_0x318226[_0x5477ef(0x249)](debug,_0x5477ef(0x2cf)+_0x57b72a);}});}module['exports']=BrowserStackNewmanReporter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a44_0x5c77(){const _0x4bead8=['jOWIn','CVgKm','_resolveFilename','collection','beforeExit','resolve','2212824Rihomg','assign','XKYnC','830250gPJbub','[Newman]\x20scriptRunner:\x20no\x20script\x20file\x20provided\x0a','3321ffYuDo','ajSBn','916MNGyLP','EhLjQ','collectionPath','reporter','exitCode','newman','bootstrap','TLefA','failures','VEwYg','ImdKP','hbEvA','5702184ryKaZE','zTdLE','LGKbs','knrpw','357265mVPHov','QbvgH','99xFNSIx','call','run','dNqoE','cli','exit','bind','2985vFiiGF','indexOf','NUXfl','../v2/browserstackCLI','tcKFP','[Newman]\x20scriptRunner:\x20failed\x20to\x20load\x20script:\x20','LPkaA','browserstack','HHymR','index.js','FYElK','join','write','3252iswjPK','create','zfMkA','module','stderr','vHTJn','length','396438FqkjZq','MCYAM','getInstance','_load','newman-reporter-browserstack','7OemxGn','reporters'];a44_0x5c77=function(){return _0x4bead8;};return a44_0x5c77();}const a44_0x9977d6=a44_0x5bc0;(function(_0x2f3cae,_0x2172c0){const _0x436381=a44_0x5bc0,_0x4897cf=_0x2f3cae();while(!![]){try{const _0x474e4b=-parseInt(_0x436381(0x148))/0x1+parseInt(_0x436381(0x124))/0x2+-parseInt(_0x436381(0x136))/0x3*(parseInt(_0x436381(0x138))/0x4)+-parseInt(_0x436381(0x151))/0x5*(parseInt(_0x436381(0x11d))/0x6)+parseInt(_0x436381(0x129))/0x7*(-parseInt(_0x436381(0x131))/0x8)+parseInt(_0x436381(0x144))/0x9+-parseInt(_0x436381(0x134))/0xa*(-parseInt(_0x436381(0x14a))/0xb);if(_0x474e4b===_0x2172c0)break;else _0x4897cf['push'](_0x4897cf['shift']());}catch(_0x2e7b88){_0x4897cf['push'](_0x4897cf['shift']());}}}(a44_0x5c77,0x59dcb));const path=require('path'),Module=require(a44_0x9977d6(0x120)),BrowserstackCLI=require(a44_0x9977d6(0x113)),scriptFile=process['argv'][0x2],maxParallel=parseInt(process['argv'][0x3])||0x0;!scriptFile&&(process[a44_0x9977d6(0x121)][a44_0x9977d6(0x11c)](a44_0x9977d6(0x135)),process[a44_0x9977d6(0x14f)](0x1));const reporterPath=path[a44_0x9977d6(0x11b)](__dirname,'reporter',a44_0x9977d6(0x119)),originalResolveFilename=Module[a44_0x9977d6(0x12d)];Module['_resolveFilename']=function(_0x12b840,_0x5c0eb2,_0x46d063,_0x48f81d){const _0x5a3b52=a44_0x9977d6,_0x27abe5={};_0x27abe5[_0x5a3b52(0x114)]=function(_0x4d3355,_0xa87a94){return _0x4d3355===_0xa87a94;},_0x27abe5[_0x5a3b52(0x125)]=_0x5a3b52(0x128);const _0x44bf42=_0x27abe5;if(_0x44bf42[_0x5a3b52(0x114)](_0x12b840,_0x44bf42[_0x5a3b52(0x125)]))return reporterPath;return originalResolveFilename[_0x5a3b52(0x14b)](this,_0x12b840,_0x5c0eb2,_0x46d063,_0x48f81d);};let limit;try{const pLimit=require('p-limit'),concurrency=maxParallel&&maxParallel>0x0?maxParallel:Infinity;limit=pLimit(concurrency);}catch(a44_0x3e0319){limit=function(_0x587f6d){const _0x4d0956=a44_0x9977d6,_0x3d2dc4={'XKYnC':function(_0x512355){return _0x512355();}};return _0x3d2dc4[_0x4d0956(0x133)](_0x587f6d);};}let wrappedNewman=null,hasFailure=![];const originalLoad=Module[a44_0x9977d6(0x127)];function a44_0x5bc0(_0x14657d,_0x2694f5){const _0x5c77cc=a44_0x5c77();return a44_0x5bc0=function(_0x5bc026,_0x17c4ae){_0x5bc026=_0x5bc026-0x111;let _0x5e7074=_0x5c77cc[_0x5bc026];return _0x5e7074;},a44_0x5bc0(_0x14657d,_0x2694f5);}Module[a44_0x9977d6(0x127)]=function(_0x94cb68,_0xecc36c,_0x20440c){const _0x2c0c44=a44_0x9977d6,_0x38292e={'FYElK':function(_0x2ce207,_0x214cdb){return _0x2ce207>_0x214cdb;},'TLefA':function(_0x10e720,_0x559a1c){return _0x10e720||_0x559a1c;},'HHymR':function(_0x3f0b64,_0x3fc2ae,_0x16bc71){return _0x3f0b64(_0x3fc2ae,_0x16bc71);},'ImdKP':function(_0x461c0f,_0x3c796e){return _0x461c0f(_0x3c796e);},'LGKbs':function(_0x16db71,_0x620ac6,_0xa00dfd){return _0x16db71(_0x620ac6,_0xa00dfd);},'dNqoE':_0x2c0c44(0x14e),'VBfvQ':function(_0x460327,_0x29da8e){return _0x460327===_0x29da8e;},'VEwYg':_0x2c0c44(0x117),'QbvgH':function(_0x23de7e,_0x152499){return _0x23de7e===_0x152499;},'jOWIn':'string','zfMkA':function(_0x42fab2,_0x21e2a2){return _0x42fab2!==_0x21e2a2;},'vHTJn':_0x2c0c44(0x13d)},_0x6fea16=originalLoad[_0x2c0c44(0x14b)](this,_0x94cb68,_0xecc36c,_0x20440c);if(_0x38292e[_0x2c0c44(0x11f)](_0x94cb68,_0x38292e[_0x2c0c44(0x122)]))return _0x6fea16;if(wrappedNewman)return wrappedNewman;const _0x4d87b1=_0x6fea16[_0x2c0c44(0x14c)][_0x2c0c44(0x150)](_0x6fea16);return wrappedNewman=Object[_0x2c0c44(0x11e)](_0x6fea16),wrappedNewman[_0x2c0c44(0x14c)]=function(_0x3fd89a,_0x226fd2){const _0x56416c=_0x2c0c44,_0x12011a={'LPkaA':function(_0x20886a,_0x19a74e,_0x166bdb){const _0x1aeb1e=a44_0x5bc0;return _0x38292e[_0x1aeb1e(0x146)](_0x20886a,_0x19a74e,_0x166bdb);}};let _0x3ea604=_0x3fd89a[_0x56416c(0x12a)]||[_0x38292e[_0x56416c(0x14d)]];_0x38292e['VBfvQ'](_0x3ea604[_0x56416c(0x111)](_0x38292e['VEwYg']),-0x1)&&(_0x3ea604=_0x3ea604['concat']([_0x38292e[_0x56416c(0x141)]]));const _0x7c0509=_0x38292e[_0x56416c(0x149)](typeof _0x3fd89a['collection'],_0x38292e[_0x56416c(0x12b)])?_0x3fd89a[_0x56416c(0x12e)]:undefined,_0x19c6b8={};_0x19c6b8[_0x56416c(0x13a)]=_0x7c0509;const _0x48ce9d=Object[_0x56416c(0x132)]({},_0x3fd89a['reporter'],{'browserstack':Object[_0x56416c(0x132)]({},_0x3fd89a[_0x56416c(0x13b)]&&_0x3fd89a[_0x56416c(0x13b)][_0x56416c(0x117)],_0x19c6b8)}),_0x5a88ca={};return _0x5a88ca[_0x56416c(0x12a)]=_0x3ea604,_0x5a88ca[_0x56416c(0x13b)]=_0x48ce9d,_0x3fd89a=Object[_0x56416c(0x132)]({},_0x3fd89a,_0x5a88ca),_0x38292e['ImdKP'](limit,function(){const _0x249691={'zTdLE':function(_0x47b610,_0x1cff7b){const _0x2cb664=a44_0x5bc0;return _0x38292e[_0x2cb664(0x11a)](_0x47b610,_0x1cff7b);},'knrpw':function(_0x43a061,_0x35f669){const _0x4197ad=a44_0x5bc0;return _0x38292e[_0x4197ad(0x13f)](_0x43a061,_0x35f669);},'ImGFX':function(_0x55f19f,_0x19fef0,_0x236c79){const _0x5bfdf7=a44_0x5bc0;return _0x38292e[_0x5bfdf7(0x118)](_0x55f19f,_0x19fef0,_0x236c79);},'CVgKm':function(_0x3d7c93,_0x4e4fc4){const _0xa8f72b=a44_0x5bc0;return _0x38292e[_0xa8f72b(0x142)](_0x3d7c93,_0x4e4fc4);}};return new Promise(function(_0x104e4e){const _0x3b1806=a44_0x5bc0;_0x12011a[_0x3b1806(0x116)](_0x4d87b1,_0x3fd89a,function(_0x4976c4,_0x1812ad){const _0x7b7092=_0x3b1806,_0x42a1b2=_0x1812ad&&_0x1812ad[_0x7b7092(0x14c)]&&(_0x1812ad[_0x7b7092(0x14c)]['error']||_0x1812ad['run'][_0x7b7092(0x140)]&&_0x249691[_0x7b7092(0x145)](_0x1812ad[_0x7b7092(0x14c)]['failures'][_0x7b7092(0x123)],0x0));_0x249691[_0x7b7092(0x147)](_0x42a1b2,_0x4976c4)&&(hasFailure=!![]),_0x226fd2&&_0x249691['ImGFX'](_0x226fd2,_0x4976c4,_0x1812ad),_0x249691[_0x7b7092(0x12c)](_0x104e4e,_0x1812ad);});});});},wrappedNewman;};async function main(){const _0x363a29=a44_0x9977d6,_0x499915={'fpBWb':function(_0x221630,_0x1d7e5f){return _0x221630(_0x1d7e5f);},'ajSBn':function(_0x51efe0,_0x41f4d3){return _0x51efe0+_0x41f4d3;},'EhLjQ':function(_0xaab7ae,_0x18257b){return _0xaab7ae+_0x18257b;},'NUXfl':_0x363a29(0x115)};try{await BrowserstackCLI[_0x363a29(0x126)]()[_0x363a29(0x13e)]();}catch(_0x22077e){}try{_0x499915['fpBWb'](require,path[_0x363a29(0x130)](scriptFile));}catch(_0x177877){process[_0x363a29(0x121)][_0x363a29(0x11c)](_0x499915[_0x363a29(0x137)](_0x499915[_0x363a29(0x139)](_0x499915[_0x363a29(0x112)],_0x177877['message']||_0x177877),'\x0a')),process[_0x363a29(0x13c)]=0x1;}}main(),process['on'](a44_0x9977d6(0x12f),function(){hasFailure&&(process['exitCode']=0x1);}),process['on']('exit',function(){const _0x1334d3=a44_0x9977d6,_0x4f9308={};_0x4f9308['hbEvA']=function(_0x2247b9,_0x59c017){return _0x2247b9===_0x59c017;};const _0x9624ca=_0x4f9308;hasFailure&&_0x9624ca[_0x1334d3(0x143)](process[_0x1334d3(0x13c)],0x0)&&(process[_0x1334d3(0x13c)]=0x1);});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a45_0x25dfa3=a45_0xcc10;(function(_0x256cc4,_0x586afe){const _0x32ce12=a45_0xcc10,_0x3edf2d=_0x256cc4();while(!![]){try{const _0x32373b=parseInt(_0x32ce12(0xa8))/0x1*(-parseInt(_0x32ce12(0xd1))/0x2)+-parseInt(_0x32ce12(0xb8))/0x3*(parseInt(_0x32ce12(0xd2))/0x4)+parseInt(_0x32ce12(0xd8))/0x5+parseInt(_0x32ce12(0xca))/0x6*(parseInt(_0x32ce12(0xbd))/0x7)+-parseInt(_0x32ce12(0xb2))/0x8*(parseInt(_0x32ce12(0x95))/0x9)+parseInt(_0x32ce12(0xb5))/0xa+-parseInt(_0x32ce12(0xd9))/0xb;if(_0x32373b===_0x586afe)break;else _0x3edf2d['push'](_0x3edf2d['shift']());}catch(_0x1a24d1){_0x3edf2d['push'](_0x3edf2d['shift']());}}}(a45_0x2919,0x45b31));function a45_0xcc10(_0x5e1cad,_0x43b500){const _0x29194d=a45_0x2919();return a45_0xcc10=function(_0xcc108c,_0x56c6a3){_0xcc108c=_0xcc108c-0x8f;let _0x2abe64=_0x29194d[_0xcc108c];return _0x2abe64;},a45_0xcc10(_0x5e1cad,_0x43b500);}const fs=require('fs'),path=require('path'),{spawn}=require(a45_0x25dfa3(0xb1)),logger=require(a45_0x25dfa3(0x98))[a45_0x25dfa3(0xdd)],{default:BrowserStackSetup}=require(a45_0x25dfa3(0x9e)),helper=require(a45_0x25dfa3(0x97)),constants=require(a45_0x25dfa3(0xb7)),getUserNightwatchConfigs=(_0x5db668,_0x2c4d8b)=>{const _0x4f0227=a45_0x25dfa3,_0x585d80={'GqEEK':_0x4f0227(0xbf),'VZcGo':_0x4f0227(0x93),'bhLxP':function(_0x20cd4e,_0x28b4b7){return _0x20cd4e(_0x28b4b7);},'Igyrs':_0x4f0227(0xb3)};let _0x654afb=null,_0x237730={};const _0x2dd247=_0x2c4d8b[_0x4f0227(0xc4)](_0x4812b2=>_0x4812b2==='--config'),_0x3fdf92=!helper[_0x4f0227(0xd7)](_0x5db668['config'])?helper['resolveWithinCwd'](_0x5db668['config']):null;!helper['isUndefined'](_0x5db668[_0x4f0227(0xae)])&&!_0x3fdf92&&logger['warn'](_0x4f0227(0xaf)+_0x5db668[_0x4f0227(0xae)]+_0x4f0227(0xc3));if(_0x3fdf92&&fs[_0x4f0227(0xbe)](_0x3fdf92))_0x654afb=_0x3fdf92,_0x2c4d8b[_0x4f0227(0xa9)](_0x2dd247,0x2);else{if(fs['existsSync'](path[_0x4f0227(0xe4)](process[_0x4f0227(0xc8)](),_0x585d80[_0x4f0227(0xa3)])))_0x654afb=path[_0x4f0227(0xe4)](process['cwd'](),_0x585d80['GqEEK']);else fs[_0x4f0227(0xbe)](path[_0x4f0227(0xe4)](process[_0x4f0227(0xc8)](),_0x585d80[_0x4f0227(0xcf)]))&&(_0x654afb=path[_0x4f0227(0xe4)](process['cwd'](),_0x585d80[_0x4f0227(0xcf)]));}return _0x654afb?(logger[_0x4f0227(0xba)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x654afb),_0x237730=_0x585d80[_0x4f0227(0xcb)](require,_0x654afb)):logger[_0x4f0227(0xba)](_0x585d80[_0x4f0227(0x94)]),_0x237730;},removeExistingEnvs=_0x4b23d2=>{const _0x3bc791=a45_0x25dfa3,_0x31b4b7={};_0x31b4b7[_0x3bc791(0xcd)]=function(_0x5df26f,_0xc2857){return _0x5df26f>_0xc2857;},_0x31b4b7[_0x3bc791(0x9f)]=function(_0x170522,_0x3791cf){return _0x170522>_0x3791cf;};const _0x4b5044=_0x31b4b7;let _0x4f7688=_0x4b23d2[_0x3bc791(0xc4)](_0x36cd4e=>_0x36cd4e===_0x3bc791(0x96));_0x4b5044[_0x3bc791(0xcd)](_0x4f7688,-0x1)&&_0x4b23d2[_0x3bc791(0xa9)](_0x4f7688,0x2),_0x4f7688=_0x4b23d2['findIndex'](_0x3f8c03=>_0x3f8c03==='-e'),_0x4b5044[_0x3bc791(0x9f)](_0x4f7688,-0x1)&&_0x4b23d2[_0x3bc791(0xa9)](_0x4f7688,0x2);};function run(_0x3693cf,_0x1e73cc,_0x44a11f){const _0x28edf1=a45_0x25dfa3,_0x28ce9b={'ZRvRK':_0x28edf1(0xa6),'gTTpp':function(_0x15726f,_0x597004){return _0x15726f+_0x597004;},'jdPJN':'test_settings','EtNTs':function(_0x1f5e61,_0x43a42f,_0x2e3263){return _0x1f5e61(_0x43a42f,_0x2e3263);},'yYXzp':_0x28edf1(0xad),'uaPoL':_0x28edf1(0xc6),'ltGyX':function(_0x12daf7,_0x4fbba2){return _0x12daf7===_0x4fbba2;},'EmqJr':_0x28edf1(0xe0),'HnNXN':function(_0x1a4b26,_0x3c0f41){return _0x1a4b26(_0x3c0f41);},'WHkqK':'../../index','dWnsw':function(_0x11eb1e,_0x1fcd1d,_0x3cde0b,_0x15f458){return _0x11eb1e(_0x1fcd1d,_0x3cde0b,_0x15f458);},'QuBaS':_0x28edf1(0xe1),'WPCTq':'--config','rPBpA':'--env','JxkOu':_0x28edf1(0xe2),'xblwm':'close'};if(!_0x44a11f[_0x28edf1(0xae)])return;const _0x598cfb=_0x28ce9b[_0x28edf1(0xd6)](getUserNightwatchConfigs,_0x3693cf,_0x1e73cc),_0xb27098={};_0xb27098[_0x28edf1(0xcc)]=![];const _0x5a310a={};_0x5a310a[_0x28edf1(0xdf)]=_0x28ce9b[_0x28edf1(0xc2)],_0x5a310a[_0x28edf1(0xb9)]=0x1bb;const _0x117a44={};_0x117a44[_0x28edf1(0x9c)]=_0xb27098,_0x117a44[_0x28edf1(0xd5)]=_0x5a310a;const _0x546e5c=_0x117a44;logger[_0x28edf1(0xba)](_0x28ce9b[_0x28edf1(0xb4)]);const _0x35e7d6={..._0x598cfb},_0x3f8dcf=_0x35e7d6,_0x7c062c=helper['useW3C'](_0x44a11f[_0x28edf1(0xae)]),_0x1bdfeb=[];_0x44a11f[_0x28edf1(0xae)][_0x28edf1(0xdc)][_0x28edf1(0xc0)]((_0x34e82a,_0x13626a)=>{const _0x1f5fc1=_0x28edf1;_0x7c062c?_0x1bdfeb[_0x1f5fc1(0x9b)](helper['modifyBrowserStackW3CCaps'](_0x44a11f[_0x1f5fc1(0xae)],_0x28ce9b[_0x1f5fc1(0xac)],_0x13626a)):_0x1bdfeb[_0x1f5fc1(0x9b)](helper[_0x1f5fc1(0xaa)](_0x44a11f['config'],_0x28ce9b[_0x1f5fc1(0xac)],_0x13626a));});const _0x22e217={},_0xbf87ce=[];_0x3693cf[_0x28edf1(0xbc)]=_0x3693cf[_0x28edf1(0xbc)]||_0x3693cf['e'];const _0x54f323=_0x3693cf[_0x28edf1(0xbc)]?_0x3693cf[_0x28edf1(0xbc)][_0x28edf1(0xa0)]()[_0x28edf1(0xe3)](',')['map'](_0x4870bf=>_0x4870bf[_0x28edf1(0xa0)]())['filter'](_0x14fcb7=>_0x14fcb7!==''):[''];_0x28ce9b['ltGyX'](_0x54f323[_0x28edf1(0xdb)],0x0)&&_0x54f323['push']('');_0x54f323['forEach'](_0x58d4e5=>{const _0x5539fe=_0x28edf1,_0x178491={'RTzGG':function(_0x3dcc63,_0x12b6ca){const _0x48eb0d=a45_0xcc10;return _0x28ce9b[_0x48eb0d(0xa5)](_0x3dcc63,_0x12b6ca);},'pXjsu':_0x28ce9b[_0x5539fe(0xb0)]};_0x1bdfeb[_0x5539fe(0xc0)](_0x5df966=>{const _0x109523=_0x5539fe;let _0x3dd9a2=_0x178491[_0x109523(0xd4)](helper[_0x109523(0x91)](_0x5df966,'_'),'_'+Date[_0x109523(0xda)]());_0x58d4e5&&(_0x3dd9a2+='_'+_0x58d4e5);if(_0x58d4e5&&(!_0x598cfb[_0x178491['pXjsu']]||!_0x598cfb[_0x178491['pXjsu']][_0x58d4e5]))return;const _0x429bca={..._0x546e5c};_0x429bca[_0x109523(0x90)]=_0x5df966;const _0x351e80=_0x429bca;_0x22e217[_0x3dd9a2]=_0x58d4e5?helper[_0x109523(0xd3)](_0x598cfb[_0x178491[_0x109523(0xa2)]][_0x58d4e5],_0x351e80):_0x351e80,_0xbf87ce[_0x109523(0x9b)](_0x3dd9a2);});});!_0x3f8dcf[_0x28edf1(0xab)]&&(_0x3f8dcf[_0x28edf1(0xab)]={});_0x3f8dcf[_0x28edf1(0xab)]={..._0x3f8dcf[_0x28edf1(0xab)],..._0x22e217};const _0x4157d2=path['join'](__dirname,_0x28ce9b['EmqJr']);fs['writeFileSync'](_0x4157d2,JSON[_0x28edf1(0xc1)](_0x3f8dcf)),_0x28ce9b[_0x28edf1(0xce)](removeExistingEnvs,_0x1e73cc);const _0x19e12b=require[_0x28edf1(0xc9)](_0x28ce9b[_0x28edf1(0xa1)]),_0x5ea77c=process[_0x28edf1(0xbc)][_0x28edf1(0xb6)]||'',_0x5719c1='--require\x20'+JSON['stringify'](_0x19e12b),_0x113ca3=_0x5ea77c?_0x5ea77c+'\x20'+_0x5719c1:_0x5719c1,_0x10c0ba=Object[_0x28edf1(0x9a)]({},process[_0x28edf1(0xbc)],{'NODE_OPTIONS':_0x113ca3,'BROWSERSTACK_FRAMEWORK':process[_0x28edf1(0xbc)]['BROWSERSTACK_FRAMEWORK']||_0x28ce9b[_0x28edf1(0xac)]}),_0x3497a2=_0x28ce9b[_0x28edf1(0xd0)](spawn,/^win/[_0x28edf1(0xa7)](process[_0x28edf1(0xde)])?_0x28ce9b[_0x28edf1(0xa4)]:_0x28ce9b['ZRvRK'],[_0x28ce9b['WPCTq'],_0x4157d2,..._0x1e73cc[_0x28edf1(0x8f)](0x1),_0x28ce9b[_0x28edf1(0xc7)],_0xbf87ce['join'](',')],{'stdio':_0x28ce9b[_0x28edf1(0x92)],'env':_0x10c0ba});_0x3497a2['on'](_0x28ce9b[_0x28edf1(0x9d)],async _0x26b04b=>{const _0x455cdf=_0x28edf1;logger['debug'](_0x455cdf(0xbb)+_0x26b04b),logger['info'](_0x455cdf(0xc5)+_0x4157d2),fs[_0x455cdf(0x99)](_0x4157d2);});}module['exports']=run;function a45_0x2919(){const _0x356214=['mergeDeep','RTzGG','selenium','EtNTs','isUndefined','1794935ITbeqf','6858159RrNGnf','now','length','platforms','winstonLogger','platform','host','nightwatch-browserstack.json','nightwatch.cmd','inherit','split','join','slice','desiredCapabilities','getPlatformName','JxkOu','nightwatch.json','Igyrs','2313hTjgPV','--env','../../helpers/helper','../../helpers/logger','unlinkSync','assign','push','webdriver','xblwm','../../helpers/BrowserStackSetup','IFMOs','trim','WHkqK','pXjsu','GqEEK','QuBaS','gTTpp','nightwatch','test','1149wdjxKx','splice','modifyBrowserStackCaps','test_settings','ZRvRK','hub.browserstack.com','config','Ignoring\x20--config\x20path\x20\x22','jdPJN','child_process','4360ZrNPZh','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','uaPoL','5187130FHcyMR','NODE_OPTIONS','../utils/constants','15pcJafN','port','info','child\x20process\x20exited\x20with\x20code\x20','env','7vjtzGV','existsSync','nightwatch.conf.js','forEach','stringify','yYXzp','\x22:\x20it\x20resolves\x20outside\x20the\x20project\x20directory.','findIndex','Deleting\x20','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','rPBpA','cwd','resolve','2038068oFbnal','bhLxP','start_process','BjywM','HnNXN','VZcGo','dWnsw','160RNNRCW','61148CRZhmi'];a45_0x2919=function(){return _0x356214;};return a45_0x2919();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a46_0x405e01=a46_0x5ca7;(function(_0xd08f6a,_0x32b588){const _0x5bddc6=a46_0x5ca7,_0x5481b7=_0xd08f6a();while(!![]){try{const _0x1bab88=-parseInt(_0x5bddc6(0x141))/0x1*(-parseInt(_0x5bddc6(0x188))/0x2)+-parseInt(_0x5bddc6(0x1a2))/0x3+parseInt(_0x5bddc6(0x130))/0x4*(-parseInt(_0x5bddc6(0x1a0))/0x5)+-parseInt(_0x5bddc6(0x14b))/0x6*(parseInt(_0x5bddc6(0x187))/0x7)+parseInt(_0x5bddc6(0x148))/0x8*(-parseInt(_0x5bddc6(0x138))/0x9)+parseInt(_0x5bddc6(0x153))/0xa+parseInt(_0x5bddc6(0x16e))/0xb;if(_0x1bab88===_0x32b588)break;else _0x5481b7['push'](_0x5481b7['shift']());}catch(_0x2836f8){_0x5481b7['push'](_0x5481b7['shift']());}}}(a46_0x25bb,0x396c0));const util=require(a46_0x405e01(0x19c)),logger=require(a46_0x405e01(0x195))[a46_0x405e01(0x1ae)],{automationLogger}=require(a46_0x405e01(0x195)),{isAccessibilityAutomationSession}=require(a46_0x405e01(0x12d)),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require(a46_0x405e01(0x16a)),PerformanceTester=require(a46_0x405e01(0x167)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a46_0x405e01(0x1b2)),accessibilityHelper=require(a46_0x405e01(0x12d)),{AUTOMATION_LOG_COMMANDS}=require(a46_0x405e01(0x1a3));exports[a46_0x405e01(0x13c)]=async(_0x2b1d26,_0x4cbfdf,_0x180e40={})=>{const _0xc353e2=a46_0x405e01,_0x21add6={};_0x21add6[_0xc353e2(0x19b)]=_0xc353e2(0x163),_0x21add6['laHET']=function(_0x46c92d,_0x4cf61d){return _0x46c92d===_0x4cf61d;},_0x21add6[_0xc353e2(0x142)]=_0xc353e2(0x135);const _0x21d5c2=_0x21add6,_0x161fa1=await _0x2b1d26['evaluate']('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x4cbfdf['replace'](/arguments/g,_0x21d5c2[_0xc353e2(0x19b)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0x180e40)+')');try{if(_0x4cbfdf&&_0x21d5c2[_0xc353e2(0x19e)](typeof _0x4cbfdf,_0x21d5c2[_0xc353e2(0x142)])){const _0x37410f=AUTOMATION_LOG_COMMANDS[_0xc353e2(0x1a9)](_0x130624=>_0x4cbfdf[_0xc353e2(0x12c)](_0x130624));if(_0x37410f){const _0x4d6d9e={};_0x4d6d9e[_0xc353e2(0x193)]=_0x37410f,_0x4d6d9e['parameters']=[_0x180e40];const _0x231837={};_0x231837[_0xc353e2(0x17b)]=_0x161fa1;const _0x202ccc={};_0x202ccc[_0xc353e2(0x161)]=_0x4d6d9e,_0x202ccc['response']=_0x231837,automationLogger['silly']('['+new Date()[_0xc353e2(0x143)]()+_0xc353e2(0x169)+JSON[_0xc353e2(0x194)](_0x202ccc));}}}catch(_0x55bfff){logger[_0xc353e2(0x18d)](_0xc353e2(0x16d)+_0x55bfff[_0xc353e2(0x17a)]);}return _0x161fa1;},exports[a46_0x405e01(0x12f)]=async(_0x2883a7,_0x294f8,_0x30535b={})=>{const _0x52eb84=a46_0x405e01,_0x38a787={};_0x38a787['UeiHj']=function(_0x1a473a,_0x41a176){return _0x1a473a===_0x41a176;},_0x38a787['FNcwR']=_0x52eb84(0x185),_0x38a787[_0x52eb84(0x15f)]=function(_0x55d3e9,_0x35961f){return _0x55d3e9===_0x35961f;},_0x38a787[_0x52eb84(0x1ab)]=_0x52eb84(0x18b),_0x38a787[_0x52eb84(0x14a)]=_0x52eb84(0x163);const _0x580250=_0x38a787;if(_0x580250['UeiHj'](_0x2883a7[_0x52eb84(0x19a)][_0x52eb84(0x16f)],_0x580250[_0x52eb84(0x192)]))return await _0x2883a7[_0x52eb84(0x182)](_0x294f8,_0x30535b);else{if(_0x580250['PFnTm'](_0x2883a7[_0x52eb84(0x19a)][_0x52eb84(0x16f)],_0x580250[_0x52eb84(0x1ab)]))return await _0x2883a7[_0x52eb84(0x184)](_0x52eb84(0x166)+_0x294f8[_0x52eb84(0x189)](/arguments/g,_0x580250[_0x52eb84(0x14a)])+_0x52eb84(0x160)+JSON[_0x52eb84(0x194)](_0x30535b)+')');}},exports['setAccessibilityCapabilities']=async _0x5c9f49=>{const _0x32cc2e=a46_0x405e01,_0x45236b={};_0x45236b[_0x32cc2e(0x190)]=_0x32cc2e(0x15c),_0x45236b[_0x32cc2e(0x1ad)]=_0x32cc2e(0x198),_0x45236b[_0x32cc2e(0x19f)]=_0x32cc2e(0x164),_0x45236b[_0x32cc2e(0x1ac)]=_0x32cc2e(0x15b),_0x45236b['ZgkUK']='accessibilityOptions.authToken',_0x45236b[_0x32cc2e(0x191)]=_0x32cc2e(0x151);const _0x2879e2=_0x45236b;_0x5c9f49[_0x32cc2e(0x149)]&&(_0x5c9f49['accessibilityOptions']['wcagVersion']&&(_0x5c9f49[_0x2879e2[_0x32cc2e(0x190)]]=_0x5c9f49[_0x32cc2e(0x149)][_0x32cc2e(0x133)]),_0x5c9f49[_0x32cc2e(0x149)][_0x32cc2e(0x199)]&&(_0x5c9f49[_0x2879e2[_0x32cc2e(0x1ad)]]=_0x5c9f49[_0x32cc2e(0x149)]['scannerProcessingTimeout']),_0x5c9f49['accessibilityOptions']['includeIssueType']&&(_0x5c9f49[_0x2879e2[_0x32cc2e(0x19f)]]=_0x5c9f49[_0x32cc2e(0x149)]['includeIssueType'][_0x32cc2e(0x131)],_0x5c9f49[_0x2879e2['HESqy']]=_0x5c9f49[_0x32cc2e(0x149)][_0x32cc2e(0x140)][_0x32cc2e(0x176)]));const _0x36edef=JSON['parse'](process[_0x32cc2e(0x152)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x32cc2e(0x137)];_0x5c9f49[_0x2879e2[_0x32cc2e(0x168)]]=process[_0x32cc2e(0x152)][_0x32cc2e(0x18a)],_0x5c9f49[_0x2879e2[_0x32cc2e(0x191)]]=_0x36edef,delete _0x5c9f49[_0x32cc2e(0x149)];},exports[a46_0x405e01(0x136)]=async _0x55c274=>{const _0x4c8731=a46_0x405e01,_0x1265f7={};_0x1265f7['PyZwA']=_0x4c8731(0x170),_0x1265f7[_0x4c8731(0x139)]=_0x4c8731(0x147);const _0x4e680e=_0x1265f7;if(global['accessibilityPlatform'])try{const details={'url':await _0x55c274.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x55c274,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x55c274,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x4c8731(0x197)](_0x4e680e[_0x4c8731(0x19d)]),[];}else return logger[_0x4c8731(0x14c)](_0x4e680e[_0x4c8731(0x139)]),[];},exports['performScan']=async(_0x397458,_0x33f70a='',_0x3423eb={},_0x58f7df={})=>{const _0x4f03c9=a46_0x405e01;logger[_0x4f03c9(0x18d)]('Performing\x20scan\x20with\x20method:\x20'+_0x33f70a+'\x20page:\x20'+_0x397458);const _0x10cc26={'url':await _0x397458[_0x4f03c9(0x14d)](),'testhub_btcer_uuid':global[_0x4f03c9(0x1b0)]?.[_0x4f03c9(0x1a5)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x4f03c9(0x132)],async()=>{const _0x34ff29=_0x4f03c9,_0x2b399c={};_0x2b399c['command']=_0x33f70a;const _0x402f7c=_0x2b399c;_0x3423eb&&_0x3423eb[_0x34ff29(0x1a6)]&&(_0x402f7c[_0x34ff29(0x1a6)]=_0x3423eb[_0x34ff29(0x1a6)]);Object[_0x34ff29(0x16c)](_0x402f7c,_0x58f7df);const _0x12d1af=await exports[_0x34ff29(0x13c)](_0x397458,scripts[_0x34ff29(0x14f)],_0x402f7c);return _0x12d1af;},{'command':_0x33f70a,..._0x10cc26})();},exports[a46_0x405e01(0x18e)]=async _0x487982=>{const _0x549e43=a46_0x405e01,_0xe74b5b={};_0xe74b5b['OJIRs']=_0x549e43(0x177),_0xe74b5b[_0x549e43(0x17f)]=_0x549e43(0x15d);const _0x114c1a=_0xe74b5b;if(global['accessibilityPlatform'])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x487982,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x487982,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x549e43(0x18d)](_0x114c1a[_0x549e43(0x13e)]),{};}else return logger[_0x549e43(0x14c)](_0x114c1a[_0x549e43(0x17f)]),{};},exports[a46_0x405e01(0x144)]=_0x2b8b30=>{const _0x39b5f6=a46_0x405e01,_0x12319e={'ocQRn':_0x39b5f6(0x196),'xDlJY':_0x39b5f6(0x17e),'DdATZ':function(_0x1ea63e,_0x389a0b){return _0x1ea63e!==_0x389a0b;},'mhWTY':_0x39b5f6(0x13b),'JKxuP':function(_0x5e4344){return _0x5e4344();},'FlkYu':_0x39b5f6(0x1a4)};try{if(global['isMobilePlatform'])return logger[_0x39b5f6(0x18d)](_0x12319e[_0x39b5f6(0x14e)]),!![];const _0x2ea6b2=_0x2b8b30[_0x39b5f6(0x181)],_0x1beb33=_0x2b8b30[_0x39b5f6(0x171)];if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x2ea6b2))return logger['warn'](_0x12319e['xDlJY']),![];if(_0x12319e['DdATZ'](_0x1beb33,_0x12319e['mhWTY'])){const _0x2325db=_0x12319e[_0x39b5f6(0x165)](isBrowserstackInfra),_0x1dbe22=accessibilityHelper[_0x39b5f6(0x13d)](_0x2ea6b2,_0x2325db),_0x39fbf2=accessibilityHelper[_0x39b5f6(0x1a8)](_0x2ea6b2);if(!accessibilityHelper['isVersionSupported'](_0x1beb33,_0x1dbe22)){const _0x197101=_0x2325db?'':_0x12319e[_0x39b5f6(0x150)];return logger[_0x39b5f6(0x14c)](_0x39b5f6(0x178)+_0x39fbf2+_0x39b5f6(0x180)+_0x1dbe22+'\x20or\x20higher\x20'+_0x197101+'.'),![];}}}catch(_0x394511){logger[_0x39b5f6(0x18d)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x39b5f6(0x154)](_0x394511));}return!![];},exports[a46_0x405e01(0x146)]=(_0x157df1,_0x311aba,_0x1174fd)=>{const _0xeb04f5=a46_0x405e01,_0x2c4f63={'EQJyf':_0xeb04f5(0x158),'ZxyJa':function(_0x561c85){return _0x561c85();},'FFDcA':_0xeb04f5(0x156),'mbhPy':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','jkzAT':function(_0x2fc20d,_0x2d04e8){return _0x2fc20d!==_0x2d04e8;},'AVzdU':_0xeb04f5(0x13b),'bmVZa':_0xeb04f5(0x1a4),'Yurix':function(_0x77e25,_0xdcc7c5){return _0x77e25(_0xdcc7c5);},'EmjuN':function(_0x2b9761,_0x31db4d){return _0x2b9761===_0x31db4d;},'jgQDE':_0xeb04f5(0x1b3),'HqeyD':_0xeb04f5(0x1b1),'ObXDh':_0xeb04f5(0x17d),'nivIj':_0xeb04f5(0x134),'IIlOM':_0xeb04f5(0x15a),'mAqjf':function(_0x435fb4,_0x568c86){return _0x435fb4+_0x568c86;}};try{if(_0x2c4f63[_0xeb04f5(0x179)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x157df1[_0x2c4f63[_0xeb04f5(0x172)]]&&(global['accessibilityPlatform']=![]);const _0x5d7ee8=_0x157df1[_0xeb04f5(0x13f)]||_0x157df1[_0xeb04f5(0x181)],_0x59f642=_0x157df1[_0xeb04f5(0x171)];!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x5d7ee8)&&(logger[_0xeb04f5(0x14c)](_0x2c4f63[_0xeb04f5(0x174)]),global[_0xeb04f5(0x13a)]=![]);if(_0x2c4f63[_0xeb04f5(0x18c)](_0x59f642,_0x2c4f63[_0xeb04f5(0x12e)])){const _0x2810da=_0x2c4f63[_0xeb04f5(0x179)](isBrowserstackInfra),_0x1bb794=accessibilityHelper[_0xeb04f5(0x13d)](_0x5d7ee8,_0x2810da),_0x49df2b=accessibilityHelper['getBrowserDisplayName'](_0x5d7ee8);if(!accessibilityHelper['isVersionSupported'](_0x59f642,_0x1bb794)){const _0x50c8aa=_0x2810da?'':_0x2c4f63['bmVZa'];logger[_0xeb04f5(0x14c)](_0xeb04f5(0x178)+_0x49df2b+_0xeb04f5(0x180)+_0x1bb794+_0xeb04f5(0x18f)+_0x50c8aa+'.'),global[_0xeb04f5(0x13a)]=![];}}if(!_0x2c4f63[_0xeb04f5(0x12b)](isUndefined,_0x157df1[_0xeb04f5(0x16b)])){const _0x33359e=(_0x157df1['os']||'')['toLowerCase'](),_0x5e9599=(_0x157df1[_0xeb04f5(0x13f)]||_0x157df1['browser']||'')[_0xeb04f5(0x17c)](),_0x9047a9=_0x2c4f63[_0xeb04f5(0x1a7)](_0x33359e,_0x2c4f63['jgQDE'])&&[_0x2c4f63['HqeyD'],_0x2c4f63[_0xeb04f5(0x145)],_0x2c4f63[_0xeb04f5(0x175)]][_0xeb04f5(0x12c)](_0x5e9599);if(!_0x9047a9)logger['warn'](_0x2c4f63[_0xeb04f5(0x157)]),global[_0xeb04f5(0x13a)]=![];else!accessibilityHelper[_0xeb04f5(0x162)]()&&(logger[_0xeb04f5(0x14c)](accessibilityHelper['MOBILE_SCANNING_DISABLED_WARNING']),global[_0xeb04f5(0x13a)]=![]);}if(!global[_0xeb04f5(0x13a)]){_0x157df1[_0x2c4f63[_0xeb04f5(0x172)]]=![],Object[_0xeb04f5(0x15e)](_0x157df1)['forEach'](_0x571ca3=>{const _0x4dfece=_0xeb04f5;_0x571ca3[_0x4dfece(0x183)](_0x2c4f63[_0x4dfece(0x1a1)])&&delete _0x157df1[_0x571ca3];});const _0x1550ea=_0x2c4f63[_0xeb04f5(0x1aa)](_0x311aba,_0x2c4f63[_0xeb04f5(0x12b)](encodeURIComponent,JSON[_0xeb04f5(0x194)](_0x157df1)));_0x1174fd&&(_0x1174fd[_0xeb04f5(0x1a5)][_0xeb04f5(0x159)][_0xeb04f5(0x173)]['use'][_0xeb04f5(0x186)]['wsEndpoint']=_0x1550ea,_0x1174fd['workerInfo'][_0xeb04f5(0x173)][_0xeb04f5(0x1af)][_0xeb04f5(0x186)]['wsEndpoint']=_0x1550ea);}}else global['accessibilityPlatform']=![];}catch(_0xb2a543){logger['debug'](_0xeb04f5(0x155)+util[_0xeb04f5(0x154)](_0xb2a543));}};function a46_0x5ca7(_0x37564c,_0x1cb412){const _0x25bba4=a46_0x25bb();return a46_0x5ca7=function(_0x5ca787,_0x536f51){_0x5ca787=_0x5ca787-0x12b;let _0x19243e=_0x25bba4[_0x5ca787];return _0x19243e;},a46_0x5ca7(_0x37564c,_0x1cb412);}function a46_0x25bb(){const _0xde2c63=['vgbcd','41345CWtEXr','EQJyf','423429ynvkWf','../utils/constants','on\x20non-BrowserStack\x20infrastructure\x20','currentTest','includePartOfPageScope','EmjuN','getBrowserDisplayName','find','mAqjf','nUlPS','HESqy','NJOFk','winstonLogger','use','__workerDetails','chrome','../../helpers/performance/constants','android','Yurix','includes','../../helpers/accessibility-automation/helper','AVzdU','browserStackExecuteDriver','80dTipdf','bestPractice','PERFORM_SCAN','wcagVersion','chromium','string','getAccessibilityResults','scannerVersion','18VngEHT','aHNqM','accessibilityPlatform','latest','browserStackEvaluate','getMinVersionForBrowser','OJIRs','browserName','includeIssueType','7652pHWNyb','aZEsr','toISOString','platformValidation','ObXDh','processAccessibilityCaps','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','726136KJNzto','accessibilityOptions','ZCEhW','6uhlVbq','warn','url','ocQRn','performScan','FlkYu','accessibilityOptions.scannerVersion','env','3209890Frxzja','format','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','browserstack.accessibility','IIlOM','browserstack.accessibilityOptions','testInfo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','accessibilityOptions.includeIssueType.needsReview','accessibilityOptions.wcagVersion','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','keys','PFnTm','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','request','isMobileScanningEnabledForGroup','bstackSdkArgs','accessibilityOptions.includeIssueType.bestPractice','JKxuP','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','../../helpers/performance/performance-tester','ZgkUK','][\x20SDK-AUTOMATION\x20]\x20','../../helpers/accessibility-automation/scripts','deviceName','assign','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','4289813ljVlxr','name','No\x20accessibility\x20results\x20were\x20found.','browser_version','FFDcA','project','mbhPy','nivIj','needsReview','No\x20summaryResults\x20found.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','ZxyJa','message','body','toLowerCase','playwright-chromium','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','AoRnq','\x20browser\x20version\x20','browser','executeAsyncScript','startsWith','executeScript','WebDriver','connectOptions','396081aklRcT','18KKTAyO','replace','BS_A11Y_JWT','Playwright','jkzAT','debug','getAccessibilityResultsSummary','\x20or\x20higher\x20','JRYzo','BuPGr','FNcwR','command','stringify','../../helpers/logger','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','error','accessibilityOptions.scannerProcessingTimeout','scannerProcessingTimeout','constructor','FUDYc','util','PyZwA','laHET'];a46_0x25bb=function(){return _0xde2c63;};return a46_0x25bb();}
|
|
1
|
+
const a46_0x5026a3=a46_0x5e47;(function(_0xe4e70e,_0x59ddfd){const _0x1cf006=a46_0x5e47,_0x70c344=_0xe4e70e();while(!![]){try{const _0x4ae8c5=-parseInt(_0x1cf006(0xe9))/0x1*(parseInt(_0x1cf006(0x158))/0x2)+parseInt(_0x1cf006(0x110))/0x3+parseInt(_0x1cf006(0x10f))/0x4*(-parseInt(_0x1cf006(0xdc))/0x5)+-parseInt(_0x1cf006(0xe2))/0x6+-parseInt(_0x1cf006(0xe5))/0x7*(-parseInt(_0x1cf006(0x11a))/0x8)+-parseInt(_0x1cf006(0x147))/0x9+-parseInt(_0x1cf006(0xee))/0xa*(-parseInt(_0x1cf006(0x139))/0xb);if(_0x4ae8c5===_0x59ddfd)break;else _0x70c344['push'](_0x70c344['shift']());}catch(_0x476a3b){_0x70c344['push'](_0x70c344['shift']());}}}(a46_0x1035,0x2b35a));const util=require(a46_0x5026a3(0x15d)),logger=require(a46_0x5026a3(0x115))[a46_0x5026a3(0xfc)],{automationLogger}=require(a46_0x5026a3(0x115)),{isAccessibilityAutomationSession}=require(a46_0x5026a3(0x162)),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require(a46_0x5026a3(0x14c)),PerformanceTester=require(a46_0x5026a3(0xec)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require(a46_0x5026a3(0x162)),{AUTOMATION_LOG_COMMANDS}=require(a46_0x5026a3(0x103));function a46_0x5e47(_0x2d40d4,_0x59a7aa){const _0x103502=a46_0x1035();return a46_0x5e47=function(_0x5e47ae,_0x298ca1){_0x5e47ae=_0x5e47ae-0xdb;let _0x39b407=_0x103502[_0x5e47ae];return _0x39b407;},a46_0x5e47(_0x2d40d4,_0x59a7aa);}exports[a46_0x5026a3(0x116)]=async(_0x224846,_0x51dab3,_0x14b75a={})=>{const _0x26fcc1=a46_0x5026a3,_0x17e35a={};_0x17e35a[_0x26fcc1(0xe7)]=_0x26fcc1(0x11b),_0x17e35a['YXAHK']=function(_0xc93bad,_0x1eea26){return _0xc93bad===_0x1eea26;},_0x17e35a['qNReb']=_0x26fcc1(0x11e);const _0x2ead7e=_0x17e35a,_0x5b1fbf=await _0x224846[_0x26fcc1(0x12e)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x51dab3['replace'](/arguments/g,_0x2ead7e[_0x26fcc1(0xe7)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x26fcc1(0x14e)](_0x14b75a)+')');try{if(_0x51dab3&&_0x2ead7e[_0x26fcc1(0x13e)](typeof _0x51dab3,_0x2ead7e[_0x26fcc1(0x151)])){const _0x2f3686=AUTOMATION_LOG_COMMANDS['find'](_0x4840f3=>_0x51dab3[_0x26fcc1(0xdb)](_0x4840f3));if(_0x2f3686){const _0x1d67fc={};_0x1d67fc[_0x26fcc1(0x129)]=_0x2f3686,_0x1d67fc[_0x26fcc1(0x12a)]=[_0x14b75a];const _0x3a21ec={};_0x3a21ec[_0x26fcc1(0x144)]=_0x5b1fbf;const _0x8486a3={};_0x8486a3['request']=_0x1d67fc,_0x8486a3['response']=_0x3a21ec,automationLogger[_0x26fcc1(0x14d)]('['+new Date()[_0x26fcc1(0x150)]()+_0x26fcc1(0xe4)+JSON[_0x26fcc1(0x14e)](_0x8486a3));}}}catch(_0x146c69){logger[_0x26fcc1(0x163)]('[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'+_0x146c69['message']);}return _0x5b1fbf;},exports['browserStackExecuteDriver']=async(_0x5a0fea,_0xdb9b78,_0x3cbbcc={})=>{const _0x8c2b12=a46_0x5026a3,_0x2680cd={};_0x2680cd['OqxRM']=function(_0x421fdd,_0x1909be){return _0x421fdd===_0x1909be;},_0x2680cd[_0x8c2b12(0xfd)]=_0x8c2b12(0x137),_0x2680cd['OnUae']=function(_0x475338,_0x237a3e){return _0x475338===_0x237a3e;},_0x2680cd[_0x8c2b12(0xed)]=_0x8c2b12(0x114),_0x2680cd[_0x8c2b12(0x10a)]='bstackSdkArgs';const _0x76bff=_0x2680cd;if(_0x76bff['OqxRM'](_0x5a0fea[_0x8c2b12(0x112)]['name'],_0x76bff[_0x8c2b12(0xfd)]))return await _0x5a0fea[_0x8c2b12(0x159)](_0xdb9b78,_0x3cbbcc);else{if(_0x76bff['OnUae'](_0x5a0fea[_0x8c2b12(0x112)][_0x8c2b12(0xe6)],_0x76bff['KAFgt']))return await _0x5a0fea[_0x8c2b12(0x15a)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0xdb9b78[_0x8c2b12(0x152)](/arguments/g,_0x76bff[_0x8c2b12(0x10a)])+_0x8c2b12(0x105)+JSON[_0x8c2b12(0x14e)](_0x3cbbcc)+')');}},exports[a46_0x5026a3(0xdf)]=async _0x49fa91=>{const _0x10acd0=a46_0x5026a3,_0x2333bc={};_0x2333bc[_0x10acd0(0xf6)]=_0x10acd0(0x11f),_0x2333bc['ksQbw']=_0x10acd0(0xde),_0x2333bc[_0x10acd0(0x125)]=_0x10acd0(0xe3),_0x2333bc[_0x10acd0(0x104)]=_0x10acd0(0x123),_0x2333bc['uyoHX']=_0x10acd0(0x10d),_0x2333bc[_0x10acd0(0x12b)]=_0x10acd0(0x108);const _0x1dd34d=_0x2333bc;_0x49fa91[_0x10acd0(0x153)]&&(_0x49fa91[_0x10acd0(0x153)]['wcagVersion']&&(_0x49fa91[_0x1dd34d[_0x10acd0(0xf6)]]=_0x49fa91[_0x10acd0(0x153)]['wcagVersion']),_0x49fa91[_0x10acd0(0x153)][_0x10acd0(0x10b)]&&(_0x49fa91[_0x1dd34d[_0x10acd0(0x131)]]=_0x49fa91[_0x10acd0(0x153)][_0x10acd0(0x10b)]),_0x49fa91[_0x10acd0(0x153)][_0x10acd0(0x141)]&&(_0x49fa91[_0x1dd34d[_0x10acd0(0x125)]]=_0x49fa91[_0x10acd0(0x153)][_0x10acd0(0x141)]['bestPractice'],_0x49fa91[_0x1dd34d[_0x10acd0(0x104)]]=_0x49fa91[_0x10acd0(0x153)][_0x10acd0(0x141)]['needsReview']));const _0x331b55=JSON[_0x10acd0(0x12d)](process[_0x10acd0(0x133)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']||'{}')['scannerVersion'];_0x49fa91[_0x1dd34d[_0x10acd0(0x154)]]=process[_0x10acd0(0x133)][_0x10acd0(0x128)],_0x49fa91[_0x1dd34d[_0x10acd0(0x12b)]]=_0x331b55,delete _0x49fa91[_0x10acd0(0x153)];},exports[a46_0x5026a3(0xeb)]=async _0x36338a=>{const _0x47961f=a46_0x5026a3,_0x5c5cb6={};_0x5c5cb6[_0x47961f(0xf4)]=_0x47961f(0x119),_0x5c5cb6['VDIST']=_0x47961f(0x121);const _0x32e2fd=_0x5c5cb6;if(global['accessibilityPlatform'])try{const details={'url':await _0x36338a.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x36338a,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x36338a,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x47961f(0x140)](_0x32e2fd['iYGPG']),[];}else return logger[_0x47961f(0xe8)](_0x32e2fd[_0x47961f(0x143)]),[];},exports[a46_0x5026a3(0x11d)]=async(_0x4953e2,_0xf32666='',_0x1b0597={},_0x4ed4b3={})=>{const _0x3b1362=a46_0x5026a3;logger[_0x3b1362(0x163)](_0x3b1362(0xfb)+_0xf32666+_0x3b1362(0x138)+_0x4953e2);const _0x38255f={'url':await _0x4953e2[_0x3b1362(0xf0)](),'testhub_btcer_uuid':global[_0x3b1362(0xf3)]?.[_0x3b1362(0x13f)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x489571=_0x3b1362,_0x5dd4dd={};_0x5dd4dd[_0x489571(0x129)]=_0xf32666;const _0x85f150=_0x5dd4dd;_0x1b0597&&_0x1b0597[_0x489571(0x13c)]&&(_0x85f150[_0x489571(0x13c)]=_0x1b0597[_0x489571(0x13c)]);Object[_0x489571(0x15f)](_0x85f150,_0x4ed4b3);const _0x27b494=await exports[_0x489571(0x116)](_0x4953e2,scripts[_0x489571(0x11d)],_0x85f150);return _0x27b494;},{'command':_0xf32666,..._0x38255f})();},exports[a46_0x5026a3(0x10c)]=async _0x1b0e14=>{const _0x3d83f1=a46_0x5026a3,_0x4cc855={};_0x4cc855[_0x3d83f1(0x14b)]=_0x3d83f1(0xf1),_0x4cc855[_0x3d83f1(0x117)]=_0x3d83f1(0x102);const _0x1560b4=_0x4cc855;if(global[_0x3d83f1(0x135)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1b0e14,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x1b0e14,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x3d83f1(0x163)](_0x1560b4[_0x3d83f1(0x14b)]),{};}else return logger[_0x3d83f1(0xe8)](_0x1560b4['XJrjM']),{};},exports[a46_0x5026a3(0xff)]=_0x12d6c9=>{const _0x1cca90=a46_0x5026a3,_0x4548b8={'cxSJH':'platformValidation:\x20Mobile\x20platform\x20already\x20validated.','YTUIi':_0x1cca90(0x12c),'zPKDW':function(_0x55be07,_0x577b40){return _0x55be07!==_0x577b40;},'GYhot':_0x1cca90(0x111),'NopUX':function(_0x4ffa77){return _0x4ffa77();},'zJXDg':_0x1cca90(0x164)};try{if(global[_0x1cca90(0x145)])return logger[_0x1cca90(0x163)](_0x4548b8['cxSJH']),!![];const _0x1402ec=_0x12d6c9[_0x1cca90(0x113)],_0x5967de=_0x12d6c9[_0x1cca90(0x15e)];if(!accessibilityHelper[_0x1cca90(0x127)](_0x1402ec))return logger[_0x1cca90(0xe8)](_0x4548b8[_0x1cca90(0x14a)]),![];if(_0x4548b8[_0x1cca90(0xf8)](_0x5967de,_0x4548b8[_0x1cca90(0x160)])){const _0x2586ce=_0x4548b8[_0x1cca90(0x100)](isBrowserstackInfra),_0x20ec2d=accessibilityHelper[_0x1cca90(0xef)](_0x1402ec,_0x2586ce),_0x401860=accessibilityHelper['getBrowserDisplayName'](_0x1402ec);if(!accessibilityHelper[_0x1cca90(0x136)](_0x5967de,_0x20ec2d)){const _0x3c91b0=_0x2586ce?'':_0x4548b8[_0x1cca90(0x134)];return logger['warn'](_0x1cca90(0x11c)+_0x401860+'\x20browser\x20version\x20'+_0x20ec2d+_0x1cca90(0x107)+_0x3c91b0+'.'),![];}}}catch(_0x270f5e){logger[_0x1cca90(0x163)](_0x1cca90(0x148)+util[_0x1cca90(0xe0)](_0x270f5e));}return!![];},exports['processAccessibilityCaps']=(_0x4a0595,_0x571202,_0x1a27ec)=>{const _0x3586ab=a46_0x5026a3,_0x4e6680={'VJduv':_0x3586ab(0x109),'DmpTN':function(_0x2b5e6b){return _0x2b5e6b();},'YMGWV':_0x3586ab(0x161),'gQAmo':_0x3586ab(0x12c),'Eoywd':function(_0x42a46b,_0x582b5e){return _0x42a46b!==_0x582b5e;},'YDgAE':_0x3586ab(0x111),'qdnqe':'on\x20non-BrowserStack\x20infrastructure\x20','ftpKD':function(_0x20d40b,_0x365ea1){return _0x20d40b(_0x365ea1);},'iRkBP':function(_0x14c3e1,_0x1ab2e2){return _0x14c3e1===_0x1ab2e2;},'DhuTy':_0x3586ab(0x155),'ZphFa':_0x3586ab(0xf9),'ySwOW':_0x3586ab(0x10e),'ludbX':_0x3586ab(0x124),'UwyaW':_0x3586ab(0x149),'PrFMU':function(_0x28ae1c,_0x987b49){return _0x28ae1c+_0x987b49;}};try{if(_0x4e6680[_0x3586ab(0x157)](isAccessibilityAutomationSession)){global[_0x3586ab(0x135)]=!![];!_0x4a0595[_0x4e6680[_0x3586ab(0x132)]]&&(global[_0x3586ab(0x135)]=![]);const _0x1702dd=_0x4a0595[_0x3586ab(0x15c)]||_0x4a0595[_0x3586ab(0x113)],_0x29826e=_0x4a0595[_0x3586ab(0x15e)];!accessibilityHelper[_0x3586ab(0x127)](_0x1702dd)&&(logger[_0x3586ab(0xe8)](_0x4e6680['gQAmo']),global[_0x3586ab(0x135)]=![]);if(_0x4e6680[_0x3586ab(0x120)](_0x29826e,_0x4e6680['YDgAE'])){const _0x5e75c6=_0x4e6680[_0x3586ab(0x157)](isBrowserstackInfra),_0x5234bc=accessibilityHelper[_0x3586ab(0xef)](_0x1702dd,_0x5e75c6),_0x3f0a65=accessibilityHelper[_0x3586ab(0x130)](_0x1702dd);if(!accessibilityHelper['isVersionSupported'](_0x29826e,_0x5234bc)){const _0x16e6b8=_0x5e75c6?'':_0x4e6680[_0x3586ab(0x14f)];logger[_0x3586ab(0xe8)](_0x3586ab(0x11c)+_0x3f0a65+_0x3586ab(0x126)+_0x5234bc+_0x3586ab(0x107)+_0x16e6b8+'.'),global[_0x3586ab(0x135)]=![];}}if(!_0x4e6680['ftpKD'](isUndefined,_0x4a0595[_0x3586ab(0x118)])){const _0x378cf1=(_0x4a0595['os']||'')['toLowerCase'](),_0x23d0d2=(_0x4a0595[_0x3586ab(0x15c)]||_0x4a0595[_0x3586ab(0x113)]||'')[_0x3586ab(0x122)](),_0x1a5699=_0x4e6680[_0x3586ab(0x156)](_0x378cf1,_0x4e6680[_0x3586ab(0xf5)])&&[_0x4e6680['ZphFa'],_0x4e6680[_0x3586ab(0xea)],_0x4e6680[_0x3586ab(0x146)]]['includes'](_0x23d0d2);if(!_0x1a5699)logger[_0x3586ab(0xe8)](_0x4e6680['UwyaW']),global[_0x3586ab(0x135)]=![];else!accessibilityHelper['isMobileScanningEnabledForGroup']()&&(logger[_0x3586ab(0xe8)](accessibilityHelper[_0x3586ab(0xfa)]),global['accessibilityPlatform']=![]);}if(!global[_0x3586ab(0x135)]){_0x4a0595[_0x4e6680[_0x3586ab(0x132)]]=![],Object[_0x3586ab(0xdd)](_0x4a0595)[_0x3586ab(0xfe)](_0x58c202=>{const _0x31069e=_0x3586ab;_0x58c202[_0x31069e(0x142)](_0x4e6680[_0x31069e(0x106)])&&delete _0x4a0595[_0x58c202];});const _0xb120f0=_0x4e6680[_0x3586ab(0xe1)](_0x571202,_0x4e6680[_0x3586ab(0xf7)](encodeURIComponent,JSON[_0x3586ab(0x14e)](_0x4a0595)));_0x1a27ec&&(_0x1a27ec[_0x3586ab(0x13f)][_0x3586ab(0x101)][_0x3586ab(0xf2)][_0x3586ab(0x13a)][_0x3586ab(0x13b)][_0x3586ab(0x12f)]=_0xb120f0,_0x1a27ec[_0x3586ab(0x13d)][_0x3586ab(0xf2)][_0x3586ab(0x13a)][_0x3586ab(0x13b)][_0x3586ab(0x12f)]=_0xb120f0);}}else global[_0x3586ab(0x135)]=![];}catch(_0x551c52){logger[_0x3586ab(0x163)](_0x3586ab(0x15b)+util[_0x3586ab(0xe0)](_0x551c52));}};function a46_0x1035(){const _0x1d594f=['\x20browser\x20version\x20','isBrowserSupportedForAccessibility','BS_A11Y_JWT','command','parameters','kjRQC','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','parse','evaluate','wsEndpoint','getBrowserDisplayName','ksQbw','YMGWV','env','zJXDg','accessibilityPlatform','isVersionSupported','WebDriver','\x20page:\x20','946LKYokH','use','connectOptions','includePartOfPageScope','workerInfo','YXAHK','currentTest','error','includeIssueType','startsWith','VDIST','body','isMobilePlatform','ludbX','2077560MrEVwV','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','YTUIi','aNZAC','../../helpers/accessibility-automation/scripts','silly','stringify','qdnqe','toISOString','qNReb','replace','accessibilityOptions','uyoHX','android','iRkBP','DmpTN','44XGlzbx','executeAsyncScript','executeScript','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','browserName','util','browser_version','assign','GYhot','browserstack.accessibility','../../helpers/accessibility-automation/helper','debug','on\x20non-BrowserStack\x20infrastructure\x20','includes','6350AKECWB','keys','accessibilityOptions.scannerProcessingTimeout','setAccessibilityCapabilities','format','PrFMU','1108542IjhyvG','accessibilityOptions.includeIssueType.bestPractice','][\x20SDK-AUTOMATION\x20]\x20','147707pwKcdM','name','RwbwC','warn','2252eCMxyn','ySwOW','getAccessibilityResults','../../helpers/performance/performance-tester','KAFgt','37250dHQEMT','getMinVersionForBrowser','url','No\x20summaryResults\x20found.','project','__workerDetails','iYGPG','DhuTy','kCzdp','ftpKD','zPKDW','chrome','MOBILE_SCANNING_DISABLED_WARNING','Performing\x20scan\x20with\x20method:\x20','winstonLogger','FAWru','forEach','platformValidation','NopUX','testInfo','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','../utils/constants','zDMAK','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','VJduv','\x20or\x20higher\x20','accessibilityOptions.scannerVersion','browserstack.accessibilityOptions','oktye','scannerProcessingTimeout','getAccessibilityResultsSummary','accessibilityOptions.authToken','playwright-chromium','272wZTCxW','781290lSCQEV','latest','constructor','browser','Playwright','../../helpers/logger','browserStackEvaluate','XJrjM','deviceName','No\x20accessibility\x20results\x20were\x20found.','56uSiFlP','bstackSdkArgs','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','performScan','string','accessibilityOptions.wcagVersion','Eoywd','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','toLowerCase','accessibilityOptions.includeIssueType.needsReview','chromium','JKFPS'];a46_0x1035=function(){return _0x1d594f;};return a46_0x1035();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a47_0x1bfb8b=a47_0x159c;(function(_0x585cef,_0x59160f){const _0x39a364=a47_0x159c,_0x3e6c55=_0x585cef();while(!![]){try{const _0x5809af=parseInt(_0x39a364(0xb6))/0x1*(-parseInt(_0x39a364(0xf7))/0x2)+parseInt(_0x39a364(0xf9))/0x3+parseInt(_0x39a364(0xfa))/0x4*(parseInt(_0x39a364(0x107))/0x5)+-parseInt(_0x39a364(0x102))/0x6+parseInt(_0x39a364(0xd6))/0x7+parseInt(_0x39a364(0xb0))/0x8+-parseInt(_0x39a364(0x120))/0x9*(-parseInt(_0x39a364(0xa8))/0xa);if(_0x5809af===_0x59160f)break;else _0x3e6c55['push'](_0x3e6c55['shift']());}catch(_0x3009bf){_0x3e6c55['push'](_0x3e6c55['shift']());}}}(a47_0x42bc,0x35c1e));function a47_0x42bc(){const _0x21e4de=['BROWSERSTACK_PW_TEST_ORDER','IXEEg','nSycU','sodOQ','clearTempPWConfig','stop','measureWrapper','path','../v2/TestInfo','IVtvK','LWays','filterBrowserstackArgs','CNvIi','KdFpJ','end','FZvTL','getConfig','WgxVq','env','testContextOptions','automation','winstonLogger','EPCcO','util','aazdp','browserstackAutomation','constants','readFileSync','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','errorMessage','cliConfig','findIndex','browserstackSetupConfig.json','error','SDK_SETUP','isCLIEnabled','vQWhF','UrIxI','accessibility','win32','Playwright\x20process\x20exited\x20with\x20code\x20','reportConflictingEnvVarIssue','isYarnPnP','No\x20Proxy\x20:\x20','sWUku','Found:\x20','../utils/clientTroubleshootingService','dirname','split','EanBi','--config','pw_result.json','idPrb','vdXgg','isRunning','BROWSERSTACK_FRAMEWORK','INTERNALLY_USED_ENV_VARS','Error\x20in\x20closing\x20playwright','trace_','cwd','configPath','homedir','TwnXg','requireConfigLoaderYarnPnP','NVCkS','isTypescriptProject','Proxy\x20url\x20:\x20','isTestOrchestrationEnabled','10RKIYGF','../../helpers/logger','PbzLI','length','R_OK','lBUgQ','getPackageType','BrowserStack\x20config\x20file\x20not\x20found.','72840brnqLe','BROWSERSTACK_SETUP_CONFIG_PATH','rlqyr','IzIsB','sep','accessSync','4xqyNuh','srhZe','false','../../helpers/BrowserStackSetup','ZxjrR','BROWSERSTACK_TEST_ACCESSIBILITY_YML','existsSync','resolve','info','isFalse','unlinkSync','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','../../helpers/test-observability/utils','RrMFv','push','child_process','ftNFN','initialize','MbtgO','filter','logLevel','bCXSz','bootstrap','TnVgU','Nufdy','BROWSERSTACK_TEST_OBSERVABILITY','validateRerunTestList','platform','VQvxI','join','Deleting\x20','npx','1191141szLCMm','assign','MODULE','inherit','eMjfX','../../helpers/helper','vHdGQ','isUndefined','writeFileSync','eEJyD','Error\x20in\x20getting\x20funnel\x20data\x20results','TJaog','getNoProxy','trim','ramVZ','nestedKeyValue','mgAnz','Cslls','pRLey','get','vNDun','KnyIX','jQkTM','../../helpers/performance/performance-tester','playwright','\x20test\x20files\x20to\x20run.','PACKAGE_TYPE','./reporter/pwUtils','testObservability','stringify','map','ZoNTe','has','75616OQtqZe','PLAYWRIGHT','196878aVMSgZ','12nlQJGg','mXnAq','uhIql','slice','EZExM','zLqXn','serializeToYamlString','playwright-browserstack-sdk.config.js','2590842AsVlAq','setBrowserstackConfig','BROWSERSTACK_RERUN_TESTS','--disable-browserstack-automation','getInstance','41365oNSnKy','findPlaywrightTestFiles','true','Nbaeu','startsWith','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','apply','mWtED','forEach','isTrue','start','playwright-browserstack-sdk.config.cjs','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','readdirSync','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','EkEjD','--disable-test-observability','KuISx','relative','Updated\x20config\x20file\x20name\x20to\x20-\x20','MaxsR','ZVBda','--config=','test','debug','4801644toHfrj','accessibilityOptions','close','yarn','config'];a47_0x42bc=function(){return _0x21e4de;};return a47_0x42bc();}function a47_0x159c(_0x376da6,_0x276b7a){const _0x42bc51=a47_0x42bc();return a47_0x159c=function(_0x159cae,_0x466af1){_0x159cae=_0x159cae-0x86;let _0x28d8cf=_0x42bc51[_0x159cae];return _0x28d8cf;},a47_0x159c(_0x376da6,_0x276b7a);}const fs=require('fs'),path=require(a47_0x1bfb8b(0x12c)),{spawn}=require(a47_0x1bfb8b(0xc5)),{format}=require(a47_0x1bfb8b(0x13c)),logger=require(a47_0x1bfb8b(0xa9))[a47_0x1bfb8b(0x13a)],{default:BrowserStackSetup}=require(a47_0x1bfb8b(0xb9)),helper=require(a47_0x1bfb8b(0xdb)),utilities=require('../../helpers/utilities'),constants=require('../utils/constants'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a47_0x1bfb8b(0xf1)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a47_0x1bfb8b(0xc2)),TestDetails=require('./reporter/test-details'),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a47_0x1bfb8b(0xed)),TestOrchestrationHandler=require('../../helpers/test-orchestration/testOrchestrationHandler'),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require('../../helpers/performance/constants')['EVENTS'],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a47_0x1bfb8b(0x12d)),ClientTroubleShootingService=require(a47_0x1bfb8b(0x92)),getUserPlaywrightConfig=async(_0x40d92d,_0x164b54)=>{const _0x351b2f=a47_0x1bfb8b,_0x34c6cb={'KnyIX':function(_0x41b3fd){return _0x41b3fd();},'ftNFN':function(_0x1cdbbd,_0x5b8006){return _0x1cdbbd(_0x5b8006);},'aazdp':'resolvedConfigFile','MaxsR':_0x351b2f(0x11d)},_0x26ade7=!helper['isUndefined'](_0x40d92d[_0x351b2f(0x124)]),_0x5a1e41=_0x26ade7?path[_0x351b2f(0xbd)](process[_0x351b2f(0x9f)](),_0x40d92d[_0x351b2f(0x124)]):process[_0x351b2f(0x9f)](),{resolveConfigFile:_0x2f703d,resolveConfigLocation:_0x4478d5}=helper[_0x351b2f(0x8e)]()?helper[_0x351b2f(0xa3)](..._0x34c6cb[_0x351b2f(0xeb)](getConfigLoaderPath)):helper['requirePWModule'][_0x351b2f(0x10d)](null,_0x34c6cb[_0x351b2f(0xeb)](getConfigLoaderPath)),_0x192c02=_0x2f703d?_0x34c6cb[_0x351b2f(0xc6)](_0x2f703d,_0x5a1e41):helper[_0x351b2f(0xe5)](_0x34c6cb[_0x351b2f(0xc6)](_0x4478d5,_0x5a1e41),[_0x34c6cb[_0x351b2f(0x13d)]]),_0x4f4586={};if(_0x26ade7){const _0x40e606=_0x164b54[_0x351b2f(0x144)](_0x2fd31d=>_0x2fd31d===_0x351b2f(0x96)||_0x2fd31d==='-c'||_0x2fd31d[_0x351b2f(0x10b)]('--config='));_0x164b54['splice'](_0x40e606,_0x164b54[_0x40e606][_0x351b2f(0x10b)](_0x34c6cb[_0x351b2f(0x11b)])?0x1:0x2);}const _0x4b1695={};return _0x4b1695[_0x351b2f(0x12c)]=_0x192c02,_0x4b1695['config']=_0x4f4586,_0x4b1695;},handleO11yRerun=_0x3e3030=>{const _0x26a78f=a47_0x1bfb8b,_0x7f2146={};_0x7f2146[_0x26a78f(0xb3)]='--grep';const _0x345bd1=_0x7f2146,_0x1e61bd=helper[_0x26a78f(0x110)](process[_0x26a78f(0x137)]['BROWSERSTACK_RERUN']);if(_0x1e61bd){const _0x235354=process[_0x26a78f(0x137)][_0x26a78f(0x104)],_0x3005ec=[];if(helper[_0x26a78f(0xd0)](_0x235354)&&!helper['isUndefined'](_0x235354)){_0x235354[_0x26a78f(0x94)](',')[_0x26a78f(0xf4)](_0x5922c1=>{const _0x29c64c=_0x26a78f;_0x3005ec[_0x29c64c(0xc4)]('('+_0x5922c1[_0x29c64c(0xe3)]()+')');});const _0x533fe7='^'+_0x3005ec[_0x26a78f(0xd3)]('|')+'$';_0x3e3030[_0x26a78f(0xc4)](_0x345bd1[_0x26a78f(0xb3)],_0x533fe7);}}},spawnOriginalProcess=_0x38d96=>{const _0x280509=a47_0x1bfb8b,_0x5d5a20={'Cslls':function(_0x423a9b,_0x4d81ac,_0x328d09,_0x1a0db0){return _0x423a9b(_0x4d81ac,_0x328d09,_0x1a0db0);},'srhZe':'yarn','FZvTL':_0x280509(0xd5),'Dsuzp':'playwright','JJXNj':function(_0x180fe3,_0x271e8c){return _0x180fe3===_0x271e8c;},'bCXSz':_0x280509(0x8b),'sodOQ':_0x280509(0xd9)};_0x5d5a20[_0x280509(0xe7)](spawn,helper[_0x280509(0x8e)]()?_0x5d5a20[_0x280509(0xb7)]:_0x5d5a20[_0x280509(0x134)],[_0x5d5a20['Dsuzp'],..._0x38d96['slice'](0x1)],{'shell':_0x5d5a20['JJXNj'](process['platform'],_0x5d5a20[_0x280509(0xcb)]),'stdio':_0x5d5a20[_0x280509(0x128)],'cwd':process[_0x280509(0x9f)]()});},isTestCommand=(_0x22e8ba,_0x397ca3)=>{const _0x2a61db=a47_0x1bfb8b,_0x597834={};_0x597834[_0x2a61db(0xfb)]=function(_0x3e33c4,_0x191fb0){return _0x3e33c4>_0x191fb0;},_0x597834['VbBRR']=function(_0x476168,_0x1b965a){return _0x476168===_0x1b965a;},_0x597834[_0x2a61db(0x12e)]=_0x2a61db(0x11e);const _0x447259=_0x597834;if(_0x447259[_0x2a61db(0xfb)](_0x397ca3[_0x2a61db(0xab)],0x1)&&_0x447259['VbBRR'](_0x397ca3[0x1],_0x447259[_0x2a61db(0x12e)]))return!![];return![];};async function run(_0x48d37f,_0x509e3c,_0xb90c46){const _0x3a4bd3=a47_0x1bfb8b,_0x1d3806={'TJaog':function(_0x56a9bd,_0x109972){return _0x56a9bd(_0x109972);},'ZoNTe':'.browserstack','pRLey':_0x3a4bd3(0x97),'EZExM':function(_0x237172,_0x1e2902){return _0x237172+_0x1e2902;},'mWtED':_0x3a4bd3(0xe0),'ZxjrR':function(_0x1c4f3b){return _0x1c4f3b();},'vfJLw':_0x3a4bd3(0x9d),'Nbaeu':_0x3a4bd3(0xaf),'zLqXn':function(_0x16e352,_0x168add){return _0x16e352<_0x168add;},'vdXgg':function(_0x5b6dc7,_0x3e50f2){return _0x5b6dc7===_0x3e50f2;},'ZVBda':_0x3a4bd3(0xb8),'lBUgQ':'--disable-test-observability','CNvIi':function(_0x201677,_0x510451){return _0x201677>=_0x510451;},'idPrb':_0x3a4bd3(0x139),'jQkTM':function(_0x44ba8f,_0x534b11){return _0x44ba8f!=_0x534b11;},'vNDun':function(_0x3730b6,_0x1723e6,_0x51fb7f){return _0x3730b6(_0x1723e6,_0x51fb7f);},'rlqyr':function(_0x45233b,_0x5401df){return _0x45233b(_0x5401df);},'PVLCl':function(_0x4d185b,_0x284f36){return _0x4d185b===_0x284f36;},'eEJyD':_0x3a4bd3(0x109),'sFwgq':function(_0x32b5b1,_0xb4d362){return _0x32b5b1(_0xb4d362);},'EkYsw':function(_0x16b1a4,_0x17022d){return _0x16b1a4(_0x17022d);},'RrMFv':_0x3a4bd3(0x145),'PbzLI':function(_0x1b54f0,_0x397277){return _0x1b54f0===_0x397277;},'LWays':_0x3a4bd3(0x112),'UrIxI':_0x3a4bd3(0x101),'IXEEg':function(_0x42e986,_0x4287bd){return _0x42e986-_0x4287bd;},'ZuYxB':_0x3a4bd3(0x11a),'bNMfo':function(_0x4d10b1,_0x3b243d){return _0x4d10b1>_0x3b243d;},'TwnXg':function(_0x2daaa0,_0xb61c40){return _0x2daaa0+_0xb61c40;},'KdFpJ':'Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','nSycU':_0x3a4bd3(0xee),'KuISx':function(_0x351339,_0x54a206,_0x583149,_0x28c8ff){return _0x351339(_0x54a206,_0x583149,_0x28c8ff);},'WgxVq':_0x3a4bd3(0x123),'MbtgO':'npx','ramVZ':_0x3a4bd3(0x11e),'TnVgU':_0x3a4bd3(0x96),'EanBi':'win32','mgAnz':_0x3a4bd3(0xd9),'sWUku':_0x3a4bd3(0x122),'EkEjD':function(_0x4610f1,_0x2f8f81){return _0x4610f1|_0x2f8f81;},'UZdDj':function(_0x27ca6f,_0x5c5d27){return _0x27ca6f+_0x5c5d27;},'VQvxI':_0x3a4bd3(0x115),'ZCBpI':function(_0x2b576c,_0x26352f){return _0x2b576c+_0x26352f;},'FMFWM':'Error\x20in\x20deleting\x20playwright\x20results','vHdGQ':function(_0x59c0ba,_0x3927c5,_0x4daa0b){return _0x59c0ba(_0x3927c5,_0x4daa0b);},'gvkpE':function(_0x201079,_0x3aae87){return _0x201079(_0x3aae87);}};try{const _0x40a6ab=path[_0x3a4bd3(0xd3)](helper[_0x3a4bd3(0xa1)](),_0x1d3806[_0x3a4bd3(0xf5)]);try{fs[_0x3a4bd3(0xb5)](_0x40a6ab,_0x1d3806[_0x3a4bd3(0x116)](fs[_0x3a4bd3(0x13f)][_0x3a4bd3(0xac)],fs[_0x3a4bd3(0x13f)]['W_OK']));}catch(_0x315056){ClientTroubleShootingService['reportDotBrowserStackFolderNotAccessibleIssue']();}}catch(_0x47090f){logger[_0x3a4bd3(0x11f)](_0x1d3806['UZdDj'](_0x1d3806[_0x3a4bd3(0xd2)],_0x47090f));}try{const _0x4c8e98=path[_0x3a4bd3(0xd3)](helper['homedir'](),_0x1d3806[_0x3a4bd3(0xf5)],_0x1d3806[_0x3a4bd3(0xe8)]);fs[_0x3a4bd3(0xbc)](_0x4c8e98)&&fs[_0x3a4bd3(0xc0)](_0x4c8e98);}catch(_0x5df8ad){logger[_0x3a4bd3(0x11f)](_0x1d3806['ZCBpI'](_0x1d3806['FMFWM'],_0x5df8ad));}if(!_0x1d3806[_0x3a4bd3(0xdc)](isTestCommand,_0x48d37f,_0x509e3c)){_0x1d3806['gvkpE'](spawnOriginalProcess,_0x509e3c);return;}await PerformanceTester[_0x3a4bd3(0x12b)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x40a121=_0x3a4bd3,_0x1b99d4={'Nufdy':_0x1d3806[_0x40a121(0xf5)],'EPCcO':_0x1d3806[_0x40a121(0xe8)],'ODfzy':function(_0x1428d9,_0x1e3663){return _0x1d3806['EZExM'](_0x1428d9,_0x1e3663);},'NVCkS':_0x1d3806[_0x40a121(0x10e)],'vQWhF':function(_0x487e3f){const _0xf5be63=_0x40a121;return _0x1d3806[_0xf5be63(0xba)](_0x487e3f);},'eMjfX':function(_0x212cf5){const _0x437526=_0x40a121;return _0x1d3806[_0x437526(0xba)](_0x212cf5);},'uhIql':_0x1d3806['vfJLw']};if(!_0xb90c46['config']){logger[_0x40a121(0x146)](_0x1d3806[_0x40a121(0x10a)]);return;}await _0xb90c46[_0x40a121(0xc7)](_0x48d37f),CLIUtils['setFrameworkDetail'](FRAMEWORKS[_0x40a121(0xf8)],FRAMEWORKS[_0x40a121(0xf8)]),BrowserstackCLI[_0x40a121(0x106)]()[_0x40a121(0x103)](_0xb90c46[_0x40a121(0x124)],_0xb90c46[_0x40a121(0xa0)],_0xb90c46[_0x40a121(0x143)]),await BrowserstackCLI[_0x40a121(0x106)]()[_0x40a121(0xcc)]();!BrowserstackCLI[_0x40a121(0x106)]()['isRunning']()&&await _0xb90c46['setupBrowserstackLocal']();for(var _0x5c5c33=0x0;_0x1d3806[_0x40a121(0xff)](_0x5c5c33,constants[_0x40a121(0x9c)][_0x40a121(0xab)]);_0x5c5c33++){var _0x1d7f28=constants[_0x40a121(0x9c)][_0x5c5c33];process[_0x40a121(0x137)][_0x1d7f28]&&await ClientTroubleShootingService[_0x40a121(0x8d)](_0x1d7f28);}const _0x173b16=BrowserstackCLI['getInstance']()[_0x40a121(0x135)]();!helper[_0x40a121(0xbf)](_0x173b16[_0x40a121(0x13e)])&&(process[_0x40a121(0x137)]['BROWSERSTACK_AUTOMATION']=!![]);_0x1d3806[_0x40a121(0x99)](_0x173b16[_0x40a121(0x13e)],![])&&(process[_0x40a121(0x137)]['BROWSERSTACK_AUTOMATION']=_0x1d3806[_0x40a121(0x11c)],_0x509e3c=_0x509e3c[_0x40a121(0xc9)](_0xceb3e1=>_0xceb3e1!==_0x40a121(0x105)));const _0x3ffda6=_0x509e3c['indexOf'](_0x1d3806[_0x40a121(0xad)]);(_0x1d3806[_0x40a121(0x131)](_0x3ffda6,0x0)||_0x1d3806[_0x40a121(0x99)](_0x173b16[_0x40a121(0xf2)],![]))&&(process[_0x40a121(0x137)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x1d3806[_0x40a121(0x11c)],_0x509e3c=_0x509e3c[_0x40a121(0xc9)](_0x830942=>_0x830942!==_0x40a121(0x117)));!helper[_0x40a121(0xdd)](_0xb90c46['cliConfig'])&&_0xb90c46['cliConfig'][_0x40a121(0xf6)](_0x1d3806['idPrb'])&&(process[_0x40a121(0x137)]['BROWSERSTACK_AUTOMATION']=_0xb90c46[_0x40a121(0x143)][_0x40a121(0xe9)](_0x1d3806[_0x40a121(0x98)])||!![]);_0x1d3806[_0x40a121(0xec)](_0xb90c46[_0x40a121(0x124)][_0x40a121(0xf2)],null)&&!helper[_0x40a121(0x110)](process[_0x40a121(0x137)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x40a121(0x137)][_0x40a121(0xcf)]=process[_0x40a121(0x137)][_0x40a121(0xcf)]||_0xb90c46[_0x40a121(0x124)][_0x40a121(0xf2)]);const _0x11ce61=!helper[_0x40a121(0xbf)](process[_0x40a121(0x137)]['BROWSERSTACK_TEST_OBSERVABILITY']);_0xb90c46['config'][_0x40a121(0x121)]&&(process[_0x40a121(0x137)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x40a121(0xf3)](_0xb90c46[_0x40a121(0x124)][_0x40a121(0x121)]));let _0x357cd9=![];_0xb90c46['config'][_0x40a121(0x8a)]&&(_0x357cd9=!![],process[_0x40a121(0x137)][_0x40a121(0xbb)]=_0xb90c46['config'][_0x40a121(0x8a)]);const _0x579bba=_0x509e3c['concat'](),_0x1149e2=await _0x1d3806[_0x40a121(0xea)](getUserPlaywrightConfig,_0x48d37f,_0x509e3c);if(helper[_0x40a121(0xdd)](_0x1149e2)){_0x1d3806[_0x40a121(0xb2)](spawnOriginalProcess,_0x579bba);return;}const _0x463534=_0x1149e2[_0x40a121(0x12c)]?path[_0x40a121(0x93)](_0x1149e2[_0x40a121(0x12c)]):process[_0x40a121(0x9f)]();process[_0x40a121(0x137)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x463534,await PerformanceTester[_0x40a121(0x12b)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x2764aa=_0x40a121;!BrowserstackCLI[_0x2764aa(0x106)]()[_0x2764aa(0x9a)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0x2764aa(0xf8)],_0xb90c46),_0x11ce61&&_0x1d3806[_0x2764aa(0xe1)](handleO11yRerun,_0x509e3c);})();if(!BrowserstackCLI[_0x40a121(0x106)]()[_0x40a121(0x9a)]()){let _0xe803f0=_0x1d3806['PVLCl'](process[_0x40a121(0x137)][_0x40a121(0xbb)],_0x1d3806[_0x40a121(0xdf)]);_0xe803f0=_0xe803f0||_0x1d3806['sFwgq'](checkAccessibilityPlatformConfig,_0xb90c46['config']),process[_0x40a121(0x137)][_0x40a121(0xbb)]=_0xe803f0,_0xe803f0&&_0x1d3806['EkYsw'](setAccessibilityCapabilities,_0xb90c46['config']);}const _0x5c23b=path['join'](_0x1149e2[_0x40a121(0x12c)]?path[_0x40a121(0x93)](_0x1149e2['path']):process['cwd'](),_0x1d3806[_0x40a121(0xc3)]);fs['writeFileSync'](_0x5c23b,helper[_0x40a121(0x100)](_0xb90c46[_0x40a121(0x124)])),process[_0x40a121(0x137)][_0x40a121(0xb1)]=_0x5c23b,helper[_0x40a121(0x129)]();let _0x36342a='';_0x1d3806[_0x40a121(0xaa)](helper[_0x40a121(0xae)](),constants[_0x40a121(0xf0)][_0x40a121(0xd8)])?_0x36342a=_0x1d3806[_0x40a121(0x12f)]:_0x36342a=_0x1d3806[_0x40a121(0x89)];let _0x5b224c='';if(helper[_0x40a121(0xa5)](_0x1149e2[_0x40a121(0x12c)])){_0x5b224c=_0x40a121(0x141);const _0x5181d0=_0x36342a[_0x40a121(0x94)]('.');_0x5181d0[_0x1d3806[_0x40a121(0x126)](_0x5181d0['length'],0x1)]='ts',_0x36342a=_0x5181d0[_0x40a121(0xd3)]('.'),logger['debug'](_0x1d3806[_0x40a121(0xfe)](_0x1d3806['ZuYxB'],_0x36342a));}else _0x5b224c=_0x40a121(0xc1);const _0x54363c=path['join'](_0x1149e2[_0x40a121(0x12c)]?path[_0x40a121(0x93)](_0x1149e2[_0x40a121(0x12c)]):process[_0x40a121(0x9f)](),_0x36342a);let _0x1515a0=_0x1149e2['path']?_0x1149e2['path']:'';_0x1515a0=_0x1d3806['bNMfo'](_0x1515a0['length'],0x0)?path[_0x40a121(0xbd)](_0x1515a0):'',process[_0x40a121(0x137)]['USER_CONFIG_DETAILS_PATH']=_0x1515a0;const _0x23ddf6=helper['getProxyUrl'](_0xb90c46[_0x40a121(0x124)]),_0x598d4e=helper[_0x40a121(0xe2)](_0xb90c46['config']);logger[_0x40a121(0x11f)](_0x40a121(0xa6)+_0x23ddf6),logger[_0x40a121(0x11f)](_0x40a121(0x8f)+_0x598d4e);_0x23ddf6&&(_0x5b224c=_0x1d3806[_0x40a121(0xa2)](_0x40a121(0x10c)+_0x23ddf6+_0x40a121(0x113)+_0x598d4e+'\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();',_0x5b224c));helper[_0x40a121(0x130)]({},_0x509e3c),fs[_0x40a121(0xde)](_0x54363c,_0x5b224c);let _0x1c1921=[];const _0x1f9dd8=new TestOrchestrationHandler(_0xb90c46[_0x40a121(0x124)]);if(_0x1f9dd8[_0x40a121(0xa7)]()){logger[_0x40a121(0x11f)](_0x1d3806[_0x40a121(0x132)]);const _0x29ded2=await _0x1f9dd8[_0x40a121(0x108)](_0x1515a0,_0x509e3c[_0x40a121(0xfd)](0x2));logger[_0x40a121(0x11f)](_0x40a121(0x91)+JSON[_0x40a121(0xf3)](_0x29ded2)+_0x40a121(0xef));const _0x24fba0=await _0x1f9dd8['reorderTestFiles'](_0x29ded2);logger[_0x40a121(0x11f)]('Reordered\x20Test\x20Files:\x20'+JSON[_0x40a121(0xf3)](_0x24fba0)),_0x24fba0&&_0x1d3806['bNMfo'](_0x24fba0[_0x40a121(0xab)],0x0)&&(process[_0x40a121(0x137)][_0x40a121(0x125)]=_0x24fba0[_0x40a121(0xd3)](','),_0x1d3806[_0x40a121(0xff)](_0x24fba0[_0x40a121(0xab)],_0x29ded2['length'])&&(_0x1c1921=_0x24fba0[_0x40a121(0xf4)](_0xf7d780=>path[_0x40a121(0x119)](process['cwd'](),_0xf7d780)['split'](path[_0x40a121(0xb4)])[_0x40a121(0xd3)]('/'))));}PerformanceTester[_0x40a121(0x133)](PerformanceEvents[_0x40a121(0x86)]),process[_0x40a121(0x137)][_0x40a121(0x9b)]=process[_0x40a121(0x137)][_0x40a121(0x9b)]||_0x1d3806[_0x40a121(0x127)];const _0xd1d0ce=_0x1d3806[_0x40a121(0x118)](spawn,helper[_0x40a121(0x8e)]()?_0x1d3806[_0x40a121(0x136)]:_0x1d3806[_0x40a121(0xc8)],[_0x1d3806[_0x40a121(0x127)],_0x1d3806[_0x40a121(0xe4)],_0x1d3806[_0x40a121(0xcd)],_0x1d3806[_0x40a121(0xaa)](process['platform'],_0x1d3806['EanBi'])?'\x22'+_0x54363c+'\x22':_0x54363c,..._0x509e3c[_0x40a121(0xfd)](0x2),..._0x1c1921],{'shell':_0x1d3806[_0x40a121(0x99)](process[_0x40a121(0xd1)],_0x1d3806[_0x40a121(0x95)]),'stdio':_0x1d3806[_0x40a121(0xe6)],'cwd':process[_0x40a121(0x9f)](),'env':Object[_0x40a121(0xd7)]({},process[_0x40a121(0x137)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x48d37f),'BROWSERSTACK_SKIP_SESSION_STATUS':_0xb90c46[_0x40a121(0x124)]['testContextOptions']['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0xb90c46['config'][_0x40a121(0x138)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0xb90c46[_0x40a121(0x124)][_0x40a121(0xca)]})}),_0x56aac9=()=>{const _0x1eb1c6=_0x40a121;try{const _0x1a6409=path[_0x1eb1c6(0xd3)](helper[_0x1eb1c6(0xa1)](),_0x1b99d4[_0x1eb1c6(0xce)],_0x1b99d4[_0x1eb1c6(0x13b)]);if(fs[_0x1eb1c6(0xbc)](_0x1a6409)){let _0x57b069=fs[_0x1eb1c6(0x140)](_0x1a6409);_0x57b069=JSON['parse'](_0x57b069),_0xb90c46[_0x1eb1c6(0x142)]=_0x57b069,fs[_0x1eb1c6(0xc0)](_0x1a6409);}}catch(_0xae3631){logger[_0x1eb1c6(0x11f)](_0x1b99d4['ODfzy'](_0x1b99d4[_0x1eb1c6(0xa4)],_0xae3631));}};_0xd1d0ce['on'](_0x1d3806[_0x40a121(0x90)],async _0x4ea98b=>{const _0x4df2f0=_0x40a121;try{PerformanceTester[_0x4df2f0(0x111)](PerformanceEvents['SDK_CLEANUP']),_0x1b99d4[_0x4df2f0(0x88)](_0x56aac9),await TestHubHandler[_0x4df2f0(0x12a)](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x1f5ddc=BrowserstackCLI[_0x4df2f0(0x87)]();await BrowserstackCLI[_0x4df2f0(0x106)]()['stop'](),TestDetails['shutdown'](),_0x1b99d4[_0x4df2f0(0xda)](printBuildLink),await utilities['finalExecution'](_0xb90c46,_0x1f5ddc),process['exitCode']=_0x4ea98b,logger['debug'](_0x4df2f0(0x8c)+_0x4ea98b),logger[_0x4df2f0(0xbe)](_0x4df2f0(0xd4)+_0x54363c),fs[_0x4df2f0(0xc0)](_0x54363c);fs[_0x4df2f0(0xbc)](_0x5c23b)&&(logger[_0x4df2f0(0x11f)](_0x4df2f0(0xd4)+_0x5c23b),fs[_0x4df2f0(0xc0)](_0x5c23b));const _0x489057=fs[_0x4df2f0(0x114)](path[_0x4df2f0(0xd3)](helper[_0x4df2f0(0xa1)](),_0x1b99d4[_0x4df2f0(0xce)]))[_0x4df2f0(0xc9)](_0x57a6a0=>_0x57a6a0[_0x4df2f0(0x10b)](_0x4df2f0(0x9e)));_0x489057[_0x4df2f0(0x10f)](_0xf59f1d=>{const _0x10e714=_0x4df2f0;fs[_0x10e714(0xc0)](path[_0x10e714(0xd3)](helper['homedir'](),_0x1b99d4[_0x10e714(0xce)],_0xf59f1d));});}catch(_0x1337b1){logger[_0x4df2f0(0x11f)](_0x1b99d4['ODfzy'](_0x1b99d4[_0x4df2f0(0xfc)],_0x1337b1));}});})();}module['exports']=run;
|
|
2
|
+
'use strict';const a47_0x146a7f=a47_0x605c;(function(_0x4bb41a,_0x2a777e){const _0x3eda79=a47_0x605c,_0x1fbf51=_0x4bb41a();while(!![]){try{const _0x69467c=parseInt(_0x3eda79(0x261))/0x1*(parseInt(_0x3eda79(0x1e6))/0x2)+parseInt(_0x3eda79(0x226))/0x3+-parseInt(_0x3eda79(0x26f))/0x4*(parseInt(_0x3eda79(0x1ea))/0x5)+parseInt(_0x3eda79(0x27a))/0x6+-parseInt(_0x3eda79(0x267))/0x7*(-parseInt(_0x3eda79(0x216))/0x8)+-parseInt(_0x3eda79(0x287))/0x9*(-parseInt(_0x3eda79(0x27d))/0xa)+parseInt(_0x3eda79(0x21a))/0xb*(-parseInt(_0x3eda79(0x1dc))/0xc);if(_0x69467c===_0x2a777e)break;else _0x1fbf51['push'](_0x1fbf51['shift']());}catch(_0x520302){_0x1fbf51['push'](_0x1fbf51['shift']());}}}(a47_0x3cbb,0x959af));function a47_0x3cbb(){const _0x43b404=['BROWSERSTACK_FRAMEWORK','--grep','filter','UGuNN','splice','has','Deleting\x20','BROWSERSTACK_RERUN_TESTS','browserstackAutomation','end','testObservability','816GvVjrr','R_OK','JabNN','getProxyUrl','PLAYWRIGHT','Danpl','findIndex','cliConfig','insaU','VysqH','8958ttyWtF','isTrue','EnOfX','BROWSERSTACK_RERUN','5LWcSdK','startsWith','anuve','split','WYZlI','JsbzF','pUlEN','kEJAW','myRLc','concat','nnYHO','XUIBG','isTypescriptProject','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','skipSessionStatus','BROWSERSTACK_PW_CONFIG_DIR','Bntff','wnJLm','../../helpers/test-observability/utils','platform','BROWSERSTACK_TEST_ACCESSIBILITY_YML','playwright','homedir','indexOf','EvelV','../../helpers/accessibility-automation/helper','debug','--config=','.browserstack','push','trace_','clearTempPWConfig','stringify','Found:\x20','slice','RAbYE','testContextOptions','opJhF','finalExecution','Playwright\x20process\x20exited\x20with\x20code\x20','getPackageType','WBwAM','accessSync','playwright-browserstack-sdk.config.js','837536KjEZBQ','../../helpers/test-orchestration/testOrchestrationHandler','child_process','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','184899NJupcX','exitCode','yarn','util','errorMessage','XSCeO','validateRerunTestList','../utils/clientTroubleshootingService','vykkC','SNBwc','isTestOrchestrationEnabled','dirname','1425156YqJiwt','existsSync','Error\x20in\x20getting\x20funnel\x20data\x20results','VpRUW','isYarnPnP','reportConflictingEnvVarIssue','shutdown','exports','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','../../helpers/performance/performance-tester','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','../v2/TestInfo','readdirSync','error','resolvedConfigFile','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','findPlaywrightTestFiles','readFileSync','test','setupBrowserstackLocal','isCLIEnabled','initialize','aSSoI','bootstrap','ZeDny','SDK_POST_INITIALIZE','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','PPwin','IgRSY','browserstackSetupConfig.json','BROWSERSTACK_SETUP_CONFIG_PATH','./accessibility-helper','BROWSERSTACK_PW_TEST_ORDER','accessibility','reportFinalDetectionState','EVENTS','SSFYB','npx','join','filterBrowserstackArgs','serializeToYamlString','KofFD','winstonLogger','tcAHV','hmxhh','BrowserStack\x20config\x20file\x20not\x20found.','vzvdp','logLevel','skipSessionName','start','requireConfigLoaderYarnPnP','fPFur','rshiZ','slTOa','EJtsN','cyTjP','config','BROWSERSTACK_TEST_OBSERVABILITY','isFalse','233RppdUV','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','true','RUoFb','win32','../v2/browserstackCLI','14aSUStX','nThIn','RTgcE','info','fvzEi','../../helpers/performance/constants','resolve','getInstance','2520324oFiCwx','yLTkN','../../helpers/BrowserStackSetup','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','faVgb','constants','unlinkSync','getConfigPath','isRunning','inherit','diruH','2349816elcQhy','W_OK','uOvhS','9610XQyVrB','USER_CONFIG_DETAILS_PATH','YdWMg','--disable-test-observability','mfuxU','env','INTERNALLY_USED_ENV_VARS','Reordered\x20Test\x20Files:\x20','isUndefined','false','2493DXISyh','apply','../../helpers/test-observability/constants','Mulvv','SDK_CLEANUP','setBrowserstackConfig','length','BROWSERSTACK_AUTOMATION','--config','stop','measureWrapper','iwBYG','reportDotBrowserStackFolderNotAccessibleIssue','path','NYAvB','configPath','playwright-browserstack-sdk.config.cjs','arLtT','Error\x20in\x20deleting\x20playwright\x20results','cwd','./reporter/test-details','writeFileSync'];a47_0x3cbb=function(){return _0x43b404;};return a47_0x3cbb();}function a47_0x605c(_0x23d934,_0x569836){const _0x3cbb97=a47_0x3cbb();return a47_0x605c=function(_0x605cc8,_0x5f3a96){_0x605cc8=_0x605cc8-0x1c5;let _0x17d886=_0x3cbb97[_0x605cc8];return _0x17d886;},a47_0x605c(_0x23d934,_0x569836);}const fs=require('fs'),path=require(a47_0x146a7f(0x1c8)),{spawn}=require(a47_0x146a7f(0x218)),{format}=require(a47_0x146a7f(0x21d)),logger=require('../../helpers/logger')[a47_0x146a7f(0x250)],{default:BrowserStackSetup}=require(a47_0x146a7f(0x271)),helper=require('../../helpers/helper'),utilities=require('../../helpers/utilities'),constants=require('../utils/constants'),{FRAMEWORKS}=require(a47_0x146a7f(0x289)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a47_0x146a7f(0x203)),{setAccessibilityCapabilities}=require(a47_0x146a7f(0x245)),{printBuildLink}=require(a47_0x146a7f(0x1fc)),TestDetails=require(a47_0x146a7f(0x1cf)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a47_0x146a7f(0x22f)),TestOrchestrationHandler=require(a47_0x146a7f(0x217)),BrowserstackCLI=require(a47_0x146a7f(0x266)),PerformanceEvents=require(a47_0x146a7f(0x26c))[a47_0x146a7f(0x249)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a47_0x146a7f(0x231)),ClientTroubleShootingService=require(a47_0x146a7f(0x221)),getUserPlaywrightConfig=async(_0x48c7eb,_0x1b8559)=>{const _0x8f28c3=a47_0x146a7f,_0x4bb5b4={'UGuNN':function(_0x1c9a40){return _0x1c9a40();},'PisYR':function(_0x10d92c){return _0x10d92c();},'NYAvB':function(_0x52755e,_0x3a4726){return _0x52755e(_0x3a4726);},'diruH':function(_0x382ea1,_0x59081f){return _0x382ea1(_0x59081f);},'wAxlI':_0x8f28c3(0x234),'fPFur':'--config='},_0x47177c=!helper[_0x8f28c3(0x285)](_0x48c7eb[_0x8f28c3(0x25e)]),_0x125165=_0x47177c?path['resolve'](process[_0x8f28c3(0x1ce)](),_0x48c7eb[_0x8f28c3(0x25e)]):process[_0x8f28c3(0x1ce)](),{resolveConfigFile:_0x2f617b,resolveConfigLocation:_0x38650a}=helper['isYarnPnP']()?helper[_0x8f28c3(0x258)](..._0x4bb5b4[_0x8f28c3(0x1d4)](getConfigLoaderPath)):helper['requirePWModule'][_0x8f28c3(0x288)](null,_0x4bb5b4['PisYR'](getConfigLoaderPath)),_0x1b5cc7=_0x2f617b?_0x4bb5b4[_0x8f28c3(0x1c9)](_0x2f617b,_0x125165):helper['nestedKeyValue'](_0x4bb5b4[_0x8f28c3(0x279)](_0x38650a,_0x125165),[_0x4bb5b4['wAxlI']]),_0x38214b={};if(_0x47177c){const _0x3ade03=_0x1b8559[_0x8f28c3(0x1e2)](_0x762641=>_0x762641==='--config'||_0x762641==='-c'||_0x762641['startsWith'](_0x8f28c3(0x205)));_0x1b8559[_0x8f28c3(0x1d5)](_0x3ade03,_0x1b8559[_0x3ade03][_0x8f28c3(0x1eb)](_0x4bb5b4[_0x8f28c3(0x259)])?0x1:0x2);}const _0x2d66be={};return _0x2d66be[_0x8f28c3(0x1c8)]=_0x1b5cc7,_0x2d66be[_0x8f28c3(0x25e)]=_0x38214b,_0x2d66be;},handleO11yRerun=_0x56dac5=>{const _0x4c2e43=a47_0x146a7f,_0x1f8e56={};_0x1f8e56[_0x4c2e43(0x20f)]=_0x4c2e43(0x1d2);const _0x185241=_0x1f8e56,_0x5da866=helper[_0x4c2e43(0x1e7)](process[_0x4c2e43(0x282)][_0x4c2e43(0x1e9)]);if(_0x5da866){const _0x18e15f=process[_0x4c2e43(0x282)][_0x4c2e43(0x1d8)],_0x11506b=[];if(helper[_0x4c2e43(0x220)](_0x18e15f)&&!helper['isUndefined'](_0x18e15f)){_0x18e15f[_0x4c2e43(0x1ed)](',')['map'](_0x36a36e=>{const _0x27ec91=_0x4c2e43;_0x11506b[_0x27ec91(0x207)]('('+_0x36a36e['trim']()+')');});const _0xcfa4f1='^'+_0x11506b['join']('|')+'$';_0x56dac5[_0x4c2e43(0x207)](_0x185241['opJhF'],_0xcfa4f1);}}},spawnOriginalProcess=_0x488288=>{const _0x291223=a47_0x146a7f,_0x1479e5={'TAyIZ':function(_0x5f30b1,_0x491584,_0x4abc6e,_0x139a2f){return _0x5f30b1(_0x491584,_0x4abc6e,_0x139a2f);},'wnJLm':_0x291223(0x21c),'rshiZ':_0x291223(0x24b),'PbSIC':_0x291223(0x1ff),'cgFCr':function(_0x124204,_0x1a27de){return _0x124204===_0x1a27de;},'SSFYB':_0x291223(0x265),'WBwAM':_0x291223(0x278)};_0x1479e5['TAyIZ'](spawn,helper['isYarnPnP']()?_0x1479e5[_0x291223(0x1fb)]:_0x1479e5[_0x291223(0x25a)],[_0x1479e5['PbSIC'],..._0x488288[_0x291223(0x20c)](0x1)],{'shell':_0x1479e5['cgFCr'](process[_0x291223(0x1fd)],_0x1479e5[_0x291223(0x24a)]),'stdio':_0x1479e5[_0x291223(0x213)],'cwd':process[_0x291223(0x1ce)]()});},isTestCommand=(_0x117c7f,_0x4b1ed4)=>{const _0x5954c4=a47_0x146a7f,_0x1869f4={};_0x1869f4['insaU']=function(_0x2e628d,_0x42cc4c){return _0x2e628d>_0x42cc4c;},_0x1869f4[_0x5954c4(0x25c)]=function(_0x1f89f2,_0xcbc4c9){return _0x1f89f2===_0xcbc4c9;},_0x1869f4['WYZlI']=_0x5954c4(0x238);const _0x37a5bf=_0x1869f4;if(_0x37a5bf[_0x5954c4(0x1e4)](_0x4b1ed4[_0x5954c4(0x28d)],0x1)&&_0x37a5bf['EJtsN'](_0x4b1ed4[0x1],_0x37a5bf[_0x5954c4(0x1ee)]))return!![];return![];};async function run(_0xb673cf,_0x944982,_0x19ba38){const _0x44db0f=a47_0x146a7f,_0x3bb5d7={'vykkC':function(_0x5d8229,_0x3827e3){return _0x5d8229(_0x3827e3);},'JabNN':_0x44db0f(0x206),'tcAHV':'pw_result.json','hmxhh':function(_0x4ba40b,_0x2f8bb5){return _0x4ba40b+_0x2f8bb5;},'PPwin':_0x44db0f(0x228),'aSSoI':function(_0x5740ff){return _0x5740ff();},'MGicG':function(_0xc61447){return _0xc61447();},'Bntff':'Error\x20in\x20closing\x20playwright','vzvdp':_0x44db0f(0x253),'Danpl':function(_0xb4dc89,_0x1b124e){return _0xb4dc89<_0x1b124e;},'ZeDny':function(_0x8d9e83,_0x4783f4){return _0x8d9e83===_0x4783f4;},'faVgb':_0x44db0f(0x286),'anuve':_0x44db0f(0x280),'XSCeO':function(_0x31e8b6,_0x5b3de5){return _0x31e8b6>=_0x5b3de5;},'uOvhS':'automation','HGqnj':function(_0x1d8cde,_0x76241e){return _0x1d8cde!=_0x76241e;},'Mulvv':function(_0xc355b6,_0x7950a4,_0x37e960){return _0xc355b6(_0x7950a4,_0x37e960);},'myRLc':function(_0x343cdf,_0x23df08){return _0x343cdf(_0x23df08);},'XUIBG':function(_0x5cf9a1,_0x41c87b){return _0x5cf9a1===_0x41c87b;},'arLtT':_0x44db0f(0x263),'sHWYn':function(_0x5d55d0,_0x8fc543){return _0x5d55d0(_0x8fc543);},'EnOfX':function(_0x393d99,_0x336bb2){return _0x393d99(_0x336bb2);},'RTgcE':_0x44db0f(0x243),'kEJAW':function(_0xdc60a9,_0x320f65){return _0xdc60a9===_0x320f65;},'pUlEN':_0x44db0f(0x1cb),'JsbzF':_0x44db0f(0x215),'slTOa':function(_0x581db1,_0x1139e4){return _0x581db1-_0x1139e4;},'KofFD':function(_0x2f93be,_0x44f47b){return _0x2f93be+_0x44f47b;},'nnYHO':'Updated\x20config\x20file\x20name\x20to\x20-\x20','LivOM':function(_0x22dac8,_0x16bc08){return _0x22dac8>_0x16bc08;},'RAbYE':function(_0x1750e3,_0x121fdc){return _0x1750e3+_0x121fdc;},'wICEY':_0x44db0f(0x272),'cxOPd':function(_0x992091,_0x4823dc){return _0x992091>_0x4823dc;},'mfuxU':_0x44db0f(0x1ff),'cyTjP':function(_0x2ab2e9,_0x25ef0d,_0x37c353,_0x59bc5b){return _0x2ab2e9(_0x25ef0d,_0x37c353,_0x59bc5b);},'EvelV':_0x44db0f(0x21c),'RUoFb':_0x44db0f(0x24b),'VpRUW':_0x44db0f(0x238),'YdWMg':_0x44db0f(0x28f),'eHOBD':function(_0x200d40,_0xfb8f51){return _0x200d40===_0xfb8f51;},'fvzEi':_0x44db0f(0x265),'SNBwc':function(_0x403508,_0x452127){return _0x403508===_0x452127;},'KLkRn':_0x44db0f(0x278),'iwBYG':'close','ADaZD':function(_0x5e2835,_0x3bfa21){return _0x5e2835|_0x3bfa21;},'VysqH':_0x44db0f(0x219),'IgRSY':_0x44db0f(0x1cd),'nThIn':function(_0x3cf811,_0x191449,_0x4dd3eb){return _0x3cf811(_0x191449,_0x4dd3eb);}};try{const _0x1dfbc0=path[_0x44db0f(0x24c)](helper[_0x44db0f(0x200)](),_0x3bb5d7[_0x44db0f(0x1de)]);try{fs[_0x44db0f(0x214)](_0x1dfbc0,_0x3bb5d7['ADaZD'](fs[_0x44db0f(0x274)][_0x44db0f(0x1dd)],fs[_0x44db0f(0x274)][_0x44db0f(0x27b)]));}catch(_0xc0fd02){ClientTroubleShootingService[_0x44db0f(0x1c7)]();}}catch(_0x30a8d3){logger[_0x44db0f(0x204)](_0x3bb5d7['RAbYE'](_0x3bb5d7[_0x44db0f(0x1e5)],_0x30a8d3));}try{const _0x15979e=path[_0x44db0f(0x24c)](helper[_0x44db0f(0x200)](),_0x3bb5d7['JabNN'],_0x3bb5d7['tcAHV']);fs[_0x44db0f(0x227)](_0x15979e)&&fs[_0x44db0f(0x275)](_0x15979e);}catch(_0x3c1fba){logger[_0x44db0f(0x204)](_0x3bb5d7[_0x44db0f(0x20d)](_0x3bb5d7[_0x44db0f(0x242)],_0x3c1fba));}if(!_0x3bb5d7[_0x44db0f(0x268)](isTestCommand,_0xb673cf,_0x944982)){_0x3bb5d7[_0x44db0f(0x1e8)](spawnOriginalProcess,_0x944982);return;}await PerformanceTester[_0x44db0f(0x1c5)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x2db995=_0x44db0f;if(!_0x19ba38[_0x2db995(0x25e)]){logger[_0x2db995(0x233)](_0x3bb5d7[_0x2db995(0x254)]);return;}await _0x19ba38[_0x2db995(0x23b)](_0xb673cf),CLIUtils['setFrameworkDetail'](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x2db995(0x1e0)]),BrowserstackCLI[_0x2db995(0x26e)]()[_0x2db995(0x28c)](_0x19ba38[_0x2db995(0x25e)],_0x19ba38[_0x2db995(0x1ca)],_0x19ba38['cliConfig']),await BrowserstackCLI[_0x2db995(0x26e)]()[_0x2db995(0x23d)]();!BrowserstackCLI[_0x2db995(0x26e)]()['isRunning']()&&await _0x19ba38[_0x2db995(0x239)]();for(var _0x3d6434=0x0;_0x3bb5d7[_0x2db995(0x1e1)](_0x3d6434,constants[_0x2db995(0x283)][_0x2db995(0x28d)]);_0x3d6434++){var _0x5d531f=constants[_0x2db995(0x283)][_0x3d6434];process['env'][_0x5d531f]&&await ClientTroubleShootingService[_0x2db995(0x22b)](_0x5d531f);}const _0x4786b=BrowserstackCLI[_0x2db995(0x26e)]()['getConfig']();!helper[_0x2db995(0x260)](_0x4786b[_0x2db995(0x1d9)])&&(process['env'][_0x2db995(0x28e)]=!![]);_0x3bb5d7[_0x2db995(0x23e)](_0x4786b[_0x2db995(0x1d9)],![])&&(process[_0x2db995(0x282)][_0x2db995(0x28e)]=_0x3bb5d7[_0x2db995(0x273)],_0x944982=_0x944982[_0x2db995(0x1d3)](_0x55deef=>_0x55deef!=='--disable-browserstack-automation'));const _0x17fe0e=_0x944982[_0x2db995(0x201)](_0x3bb5d7[_0x2db995(0x1ec)]);(_0x3bb5d7[_0x2db995(0x21f)](_0x17fe0e,0x0)||_0x3bb5d7[_0x2db995(0x23e)](_0x4786b[_0x2db995(0x1db)],![]))&&(process[_0x2db995(0x282)][_0x2db995(0x25f)]=_0x3bb5d7[_0x2db995(0x273)],_0x944982=_0x944982[_0x2db995(0x1d3)](_0x52f0e2=>_0x52f0e2!==_0x2db995(0x280)));!helper[_0x2db995(0x285)](_0x19ba38['cliConfig'])&&_0x19ba38['cliConfig'][_0x2db995(0x1d6)](_0x3bb5d7[_0x2db995(0x27c)])&&(process['env'][_0x2db995(0x28e)]=_0x19ba38[_0x2db995(0x1e3)]['get'](_0x3bb5d7[_0x2db995(0x27c)])||!![]);_0x3bb5d7['HGqnj'](_0x19ba38[_0x2db995(0x25e)][_0x2db995(0x1db)],null)&&!helper[_0x2db995(0x1e7)](process['env'][_0x2db995(0x25f)])&&(process[_0x2db995(0x282)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x2db995(0x282)][_0x2db995(0x25f)]||_0x19ba38[_0x2db995(0x25e)][_0x2db995(0x1db)]);const _0x50141c=!helper[_0x2db995(0x260)](process['env'][_0x2db995(0x25f)]);_0x19ba38['config']['accessibilityOptions']&&(process['env'][_0x2db995(0x240)]=JSON['stringify'](_0x19ba38[_0x2db995(0x25e)]['accessibilityOptions']));let _0x36a40e=![];_0x19ba38[_0x2db995(0x25e)][_0x2db995(0x247)]&&(_0x36a40e=!![],process[_0x2db995(0x282)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x19ba38[_0x2db995(0x25e)][_0x2db995(0x247)]);const _0x81ade9=_0x944982[_0x2db995(0x1f3)](),_0x13030f=await _0x3bb5d7[_0x2db995(0x28a)](getUserPlaywrightConfig,_0xb673cf,_0x944982);if(helper[_0x2db995(0x285)](_0x13030f)){_0x3bb5d7[_0x2db995(0x1f2)](spawnOriginalProcess,_0x81ade9);return;}const _0x13e6cd=_0x13030f['path']?path[_0x2db995(0x225)](_0x13030f[_0x2db995(0x1c8)]):process['cwd']();process[_0x2db995(0x282)][_0x2db995(0x1f9)]=_0x13e6cd,await PerformanceTester[_0x2db995(0x1c5)](PerformanceEvents[_0x2db995(0x23f)],async()=>{const _0x206d9d=_0x2db995;!BrowserstackCLI['getInstance']()[_0x206d9d(0x277)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0x206d9d(0x1e0)],_0x19ba38),_0x50141c&&_0x3bb5d7[_0x206d9d(0x222)](handleO11yRerun,_0x944982);})();if(!BrowserstackCLI[_0x2db995(0x26e)]()[_0x2db995(0x277)]()){let _0x6c23cc=_0x3bb5d7[_0x2db995(0x1f5)](process[_0x2db995(0x282)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x3bb5d7[_0x2db995(0x1cc)]);_0x6c23cc=_0x6c23cc||_0x3bb5d7['sHWYn'](checkAccessibilityPlatformConfig,_0x19ba38[_0x2db995(0x25e)]),process[_0x2db995(0x282)][_0x2db995(0x1fe)]=_0x6c23cc,_0x6c23cc&&_0x3bb5d7[_0x2db995(0x1e8)](setAccessibilityCapabilities,_0x19ba38['config']);}const _0x34f99b=path[_0x2db995(0x24c)](_0x13030f[_0x2db995(0x1c8)]?path['dirname'](_0x13030f[_0x2db995(0x1c8)]):process[_0x2db995(0x1ce)](),_0x3bb5d7[_0x2db995(0x269)]);fs[_0x2db995(0x1d0)](_0x34f99b,helper[_0x2db995(0x24e)](_0x19ba38[_0x2db995(0x25e)])),process['env'][_0x2db995(0x244)]=_0x34f99b,helper[_0x2db995(0x209)]();let _0x5536e4='';_0x3bb5d7[_0x2db995(0x1f1)](helper[_0x2db995(0x212)](),constants['PACKAGE_TYPE']['MODULE'])?_0x5536e4=_0x3bb5d7[_0x2db995(0x1f0)]:_0x5536e4=_0x3bb5d7[_0x2db995(0x1ef)];let _0x4d7b3c='';if(helper[_0x2db995(0x1f6)](_0x13030f[_0x2db995(0x1c8)])){_0x4d7b3c=_0x2db995(0x22e);const _0x31c41d=_0x5536e4[_0x2db995(0x1ed)]('.');_0x31c41d[_0x3bb5d7[_0x2db995(0x25b)](_0x31c41d[_0x2db995(0x28d)],0x1)]='ts',_0x5536e4=_0x31c41d[_0x2db995(0x24c)]('.'),logger['debug'](_0x3bb5d7[_0x2db995(0x24f)](_0x3bb5d7[_0x2db995(0x1f4)],_0x5536e4));}else _0x4d7b3c=_0x2db995(0x235);const _0x9ee935=path[_0x2db995(0x24c)](_0x13030f['path']?path[_0x2db995(0x225)](_0x13030f[_0x2db995(0x1c8)]):process[_0x2db995(0x1ce)](),_0x5536e4);let _0x4f7a31=_0x13030f[_0x2db995(0x1c8)]?_0x13030f[_0x2db995(0x1c8)]:'';_0x4f7a31=_0x3bb5d7['LivOM'](_0x4f7a31[_0x2db995(0x28d)],0x0)?path[_0x2db995(0x26d)](_0x4f7a31):'',process['env'][_0x2db995(0x27e)]=_0x4f7a31;const _0xd00831=helper[_0x2db995(0x1df)](_0x19ba38[_0x2db995(0x25e)]),_0x4cd6f1=helper['getNoProxy'](_0x19ba38[_0x2db995(0x25e)]);logger['debug']('Proxy\x20url\x20:\x20'+_0xd00831),logger[_0x2db995(0x204)]('No\x20Proxy\x20:\x20'+_0x4cd6f1);_0xd00831&&(_0x4d7b3c=_0x3bb5d7[_0x2db995(0x20d)](_0x2db995(0x262)+_0xd00831+_0x2db995(0x230)+_0x4cd6f1+_0x2db995(0x1f7),_0x4d7b3c));helper[_0x2db995(0x24d)]({},_0x944982),fs[_0x2db995(0x1d0)](_0x9ee935,_0x4d7b3c);let _0x1b29e5=[];const _0x4bfcf5=new TestOrchestrationHandler(_0x19ba38[_0x2db995(0x25e)]);if(_0x4bfcf5[_0x2db995(0x224)]()){logger['debug'](_0x3bb5d7['wICEY']);const _0x40b0b0=await _0x4bfcf5[_0x2db995(0x236)](_0x4f7a31,_0x944982[_0x2db995(0x20c)](0x2));logger[_0x2db995(0x204)](_0x2db995(0x20b)+JSON[_0x2db995(0x20a)](_0x40b0b0)+'\x20test\x20files\x20to\x20run.');const _0x2ff190=await _0x4bfcf5['reorderTestFiles'](_0x40b0b0);logger['debug'](_0x2db995(0x284)+JSON['stringify'](_0x2ff190)),_0x2ff190&&_0x3bb5d7['cxOPd'](_0x2ff190[_0x2db995(0x28d)],0x0)&&(process[_0x2db995(0x282)][_0x2db995(0x246)]=_0x2ff190[_0x2db995(0x24c)](','),_0x3bb5d7[_0x2db995(0x1e1)](_0x2ff190[_0x2db995(0x28d)],_0x40b0b0['length'])&&(_0x1b29e5=_0x2ff190['map'](_0x75ce0b=>path['relative'](process[_0x2db995(0x1ce)](),_0x75ce0b)[_0x2db995(0x1ed)](path['sep'])[_0x2db995(0x24c)]('/'))));}PerformanceTester[_0x2db995(0x1da)](PerformanceEvents['SDK_SETUP']),process[_0x2db995(0x282)][_0x2db995(0x1d1)]=process[_0x2db995(0x282)]['BROWSERSTACK_FRAMEWORK']||_0x3bb5d7[_0x2db995(0x281)];const _0x39fa7a=_0x3bb5d7[_0x2db995(0x25d)](spawn,helper[_0x2db995(0x22a)]()?_0x3bb5d7[_0x2db995(0x202)]:_0x3bb5d7[_0x2db995(0x264)],[_0x3bb5d7['mfuxU'],_0x3bb5d7[_0x2db995(0x229)],_0x3bb5d7[_0x2db995(0x27f)],_0x3bb5d7['eHOBD'](process[_0x2db995(0x1fd)],_0x3bb5d7[_0x2db995(0x26b)])?'\x22'+_0x9ee935+'\x22':_0x9ee935,..._0x944982[_0x2db995(0x20c)](0x2),..._0x1b29e5],{'shell':_0x3bb5d7[_0x2db995(0x223)](process[_0x2db995(0x1fd)],_0x3bb5d7[_0x2db995(0x26b)]),'stdio':_0x3bb5d7['KLkRn'],'cwd':process[_0x2db995(0x1ce)](),'env':Object['assign']({},process[_0x2db995(0x282)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2db995(0x276)](_0xb673cf),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x19ba38['config'][_0x2db995(0x20e)][_0x2db995(0x1f8)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x19ba38[_0x2db995(0x25e)]['testContextOptions'][_0x2db995(0x256)],'BROWSERSTACK_LOG_LEVEL':_0x19ba38[_0x2db995(0x25e)][_0x2db995(0x255)]})}),_0x288e2f=()=>{const _0x275d95=_0x2db995;try{const _0x136ae2=path[_0x275d95(0x24c)](helper['homedir'](),_0x3bb5d7[_0x275d95(0x1de)],_0x3bb5d7[_0x275d95(0x251)]);if(fs[_0x275d95(0x227)](_0x136ae2)){let _0x32d9ed=fs[_0x275d95(0x237)](_0x136ae2);_0x32d9ed=JSON['parse'](_0x32d9ed),_0x19ba38[_0x275d95(0x21e)]=_0x32d9ed,fs[_0x275d95(0x275)](_0x136ae2);}}catch(_0x2ef66f){logger[_0x275d95(0x204)](_0x3bb5d7['hmxhh'](_0x3bb5d7[_0x275d95(0x241)],_0x2ef66f));}};_0x39fa7a['on'](_0x3bb5d7[_0x2db995(0x1c6)],async _0x63d56f=>{const _0xbc6fac=_0x2db995,_0x3b6dbd={};_0x3b6dbd[_0xbc6fac(0x270)]=_0x3bb5d7[_0xbc6fac(0x1de)];const _0x2c34e5=_0x3b6dbd;try{PerformanceTester[_0xbc6fac(0x257)](PerformanceEvents[_0xbc6fac(0x28b)]),_0x3bb5d7[_0xbc6fac(0x23c)](_0x288e2f),await TestHubHandler[_0xbc6fac(0x290)](),await ClientTroubleShootingService[_0xbc6fac(0x248)]();const _0x5e913d=BrowserstackCLI[_0xbc6fac(0x23a)]();await BrowserstackCLI[_0xbc6fac(0x26e)]()[_0xbc6fac(0x290)](),TestDetails[_0xbc6fac(0x22c)](),_0x3bb5d7['MGicG'](printBuildLink),await utilities[_0xbc6fac(0x210)](_0x19ba38,_0x5e913d),process[_0xbc6fac(0x21b)]=_0x63d56f,logger[_0xbc6fac(0x204)](_0xbc6fac(0x211)+_0x63d56f),logger[_0xbc6fac(0x26a)](_0xbc6fac(0x1d7)+_0x9ee935),fs[_0xbc6fac(0x275)](_0x9ee935);fs[_0xbc6fac(0x227)](_0x34f99b)&&(logger[_0xbc6fac(0x204)]('Deleting\x20'+_0x34f99b),fs['unlinkSync'](_0x34f99b));const _0x26dcf8=fs[_0xbc6fac(0x232)](path['join'](helper[_0xbc6fac(0x200)](),_0x3bb5d7[_0xbc6fac(0x1de)]))[_0xbc6fac(0x1d3)](_0x267e9b=>_0x267e9b[_0xbc6fac(0x1eb)](_0xbc6fac(0x208)));_0x26dcf8['forEach'](_0x570fd7=>{const _0x156ccb=_0xbc6fac;fs['unlinkSync'](path[_0x156ccb(0x24c)](helper[_0x156ccb(0x200)](),_0x2c34e5[_0x156ccb(0x270)],_0x570fd7));});}catch(_0xf91c27){logger[_0xbc6fac(0x204)](_0x3bb5d7[_0xbc6fac(0x252)](_0x3bb5d7[_0xbc6fac(0x1fa)],_0xf91c27));}});})();}module[a47_0x146a7f(0x22d)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48_0x517e84=a48_0x16fc;(function(_0x503bea,_0x2ebd89){const _0x52a00b=a48_0x16fc,_0x52c483=_0x503bea();while(!![]){try{const _0x9fa51e=-parseInt(_0x52a00b(0x1a0))/0x1*(parseInt(_0x52a00b(0x1b3))/0x2)+-parseInt(_0x52a00b(0x1ba))/0x3*(-parseInt(_0x52a00b(0x1ab))/0x4)+parseInt(_0x52a00b(0x1ad))/0x5*(parseInt(_0x52a00b(0x1b5))/0x6)+parseInt(_0x52a00b(0x1ae))/0x7*(-parseInt(_0x52a00b(0x1be))/0x8)+-parseInt(_0x52a00b(0x1a2))/0x9*(-parseInt(_0x52a00b(0x1b2))/0xa)+-parseInt(_0x52a00b(0x1cb))/0xb+parseInt(_0x52a00b(0x1d0))/0xc*(parseInt(_0x52a00b(0x1bd))/0xd);if(_0x9fa51e===_0x2ebd89)break;else _0x52c483['push'](_0x52c483['shift']());}catch(_0xc25a7e){_0x52c483['push'](_0x52c483['shift']());}}}(a48_0x34c1,0x60ea5));function a48_0x34c1(){const _0x3e4121=['Running\x20existing\x20global\x20setup','toString','isHandlePWErrorSet','message','fork','JKpvd','5035349SZqMnm','JrWqn','MntVe','compareVersions','child_process','180vjVhRJ','../../helpers/driverInitErrorReporter','OLdvi','1.33.0','winstonLogger','util','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','uEvQr','115849ywDHAL','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','3278403NGMNyB','env','SKvue','Path\x20','exports','elegG','PwqfJ','Not\x20able\x20to\x20import\x20globalSetup','Not\x20able\x20to\x20resolve\x20loadGlobalHook\x20for\x20current\x20Playwright\x20version','420JvvSBN','Call\x20to\x20child\x20fork\x20with\x20args\x20','5aZRfjQ','2200513qFRTuM','config','apply','function','10jFnCEz','4ULrzmT','installAll','3565614iaYNGG','CyyPx','txkgI','./patches','resolveLoadGlobalHook','10362QlopbA','format','./reporter/pwUtils','68965fpucPg','8ClfkaL','../../helpers/test-observability/constants','debug','driver-init\x20capture\x20install\x20failed:\x20','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','\x20is\x20not\x20found','../../helpers/test-observability/utils'];a48_0x34c1=function(){return _0x3e4121;};return a48_0x34c1();}const util=require(a48_0x517e84(0x19d)),child_process=require(a48_0x517e84(0x1cf)),{FRAMEWORKS}=require(a48_0x517e84(0x1bf)),{getFrameworkVersion,debug}=require(a48_0x517e84(0x1c4)),helper=require('../../helpers/helper'),{getForkProcessPath}=require(a48_0x517e84(0x1bc)),{mockIsWorkerRedundant}=require(a48_0x517e84(0x1b8)),logger=require('../../helpers/logger')[a48_0x517e84(0x19c)];function a48_0x16fc(_0x278757,_0x313afa){const _0x34c18e=a48_0x34c1();return a48_0x16fc=function(_0x16fccc,_0xa0dec4){_0x16fccc=_0x16fccc-0x19c;let _0xc6f76f=_0x34c18e[_0x16fccc];return _0xc6f76f;},a48_0x16fc(_0x278757,_0x313afa);}try{require(a48_0x517e84(0x1d1))[a48_0x517e84(0x1b4)]('playwright');}catch(a48_0x3fdbbc){logger['debug'](a48_0x517e84(0x1c1)+(a48_0x3fdbbc&&a48_0x3fdbbc[a48_0x517e84(0x1c8)]));}module[a48_0x517e84(0x1a6)]=async function(_0x477cf6){const _0x4a9a0f=a48_0x517e84,_0x56fa71={'PwqfJ':function(_0x45ef9b,_0xd1707b){return _0x45ef9b(_0xd1707b);},'JrWqn':function(_0x4afab2){return _0x4afab2();},'CyyPx':'./mock-process.js','SKvue':_0x4a9a0f(0x1c5),'SeEBM':function(_0x283e48,_0x1a35ca){return _0x283e48!==_0x1a35ca;},'MntVe':_0x4a9a0f(0x1b1),'rwxWj':_0x4a9a0f(0x1aa),'uEvQr':function(_0x1c9306,_0x193d3c){return _0x1c9306>=_0x193d3c;},'OLdvi':_0x4a9a0f(0x1d3),'JKpvd':function(_0x193b68,_0x2e411e,_0x42f901){return _0x193b68(_0x2e411e,_0x42f901);},'wHuhB':function(_0x5c410c,_0x1da797){return _0x5c410c!==_0x1da797;},'elegG':_0x4a9a0f(0x1a9),'txkgI':function(_0x5dc695,_0xb5881){return _0x5dc695(_0xb5881);}},_0x4ec273=child_process[_0x4a9a0f(0x1c9)];if(helper[_0x4a9a0f(0x1c7)]())try{_0x56fa71['JrWqn'](mockIsWorkerRedundant);}catch(_0xbd3212){logger[_0x4a9a0f(0x1c0)](_0x4a9a0f(0x1a1)+util[_0x4a9a0f(0x1bb)](_0xbd3212));}child_process['fork']=function(){const _0x14b461=_0x4a9a0f;return _0x56fa71['PwqfJ'](debug,_0x14b461(0x1ac)+arguments[0x0]),arguments[0x0]['includes'](_0x56fa71[_0x14b461(0x1cc)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x56fa71[_0x14b461(0x1b6)]):logger['error'](_0x14b461(0x1a5)+_0x56fa71[_0x14b461(0x1cc)](getForkProcessPath)+_0x14b461(0x1c3)),_0x4ec273['apply'](null,arguments);};if(process[_0x4a9a0f(0x1a3)][_0x4a9a0f(0x1c2)]){_0x56fa71[_0x4a9a0f(0x1a8)](debug,_0x56fa71[_0x4a9a0f(0x1a4)]);try{const _0x4c825b=helper[_0x4a9a0f(0x1b9)]();if(_0x56fa71['SeEBM'](typeof _0x4c825b,_0x56fa71['MntVe']))throw new Error(_0x56fa71['rwxWj']);const _0x2f6e0b=_0x56fa71[_0x4a9a0f(0x1a8)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x314c74=_0x477cf6;if(_0x56fa71[_0x4a9a0f(0x19f)](helper[_0x4a9a0f(0x1ce)](_0x2f6e0b,_0x56fa71[_0x4a9a0f(0x1d2)]),0x0)){const _0x3b3b53={};_0x3b3b53[_0x4a9a0f(0x1af)]=_0x477cf6,_0x314c74=_0x3b3b53;}const _0x9abcf4=await _0x56fa71[_0x4a9a0f(0x1ca)](_0x4c825b,_0x314c74,process[_0x4a9a0f(0x1a3)][_0x4a9a0f(0x1c2)]);if(_0x56fa71['wHuhB'](typeof _0x9abcf4,_0x56fa71[_0x4a9a0f(0x1cd)]))throw new Error(_0x56fa71[_0x4a9a0f(0x1a7)]);return _0x9abcf4[_0x4a9a0f(0x1b0)](null,arguments);}catch(_0x4869a4){_0x56fa71[_0x4a9a0f(0x1b7)](debug,_0x4a9a0f(0x19e)+_0x4869a4[_0x4a9a0f(0x1c6)]());}}};
|