browserstack-node-sdk 1.34.52 → 1.34.54
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/templates/hubharesources/turboscale-uploader.yaml +10 -0
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/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/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_before.setup.js +1 -1
- package/src/bin/launcher/launcher.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/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/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/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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.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/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/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/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.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/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a88_0x4665c8=a88_0x496c;(function(_0x43364f,_0x5dc041){const _0x405b0e=a88_0x496c,_0xc219e4=_0x43364f();while(!![]){try{const _0x9cb1b8=-parseInt(_0x405b0e(0x296))/0x1+-parseInt(_0x405b0e(0x1cb))/0x2*(-parseInt(_0x405b0e(0x280))/0x3)+parseInt(_0x405b0e(0x1d9))/0x4*(parseInt(_0x405b0e(0x1df))/0x5)+-parseInt(_0x405b0e(0x214))/0x6+parseInt(_0x405b0e(0x1c5))/0x7*(parseInt(_0x405b0e(0x258))/0x8)+-parseInt(_0x405b0e(0x243))/0x9+parseInt(_0x405b0e(0x1ea))/0xa*(parseInt(_0x405b0e(0x24e))/0xb);if(_0x9cb1b8===_0x5dc041)break;else _0xc219e4['push'](_0xc219e4['shift']());}catch(_0x287d1f){_0xc219e4['push'](_0xc219e4['shift']());}}}(a88_0xf4a6,0x7ff28));function a88_0xf4a6(){const _0x392972=['shouldReRunObservabilityTests','path','addRequestSpy','trim','local_grid','eYGDQ','mpGfl','OARnN','VLNUu','Uploading\x20trace\x20logs\x20to:\x20','^CUSTOM_TAG_\x5cd+$','length','maxSockets','PLAYWRIGHT_TRACE_LOGS','qvqyo','IpYUW','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','darwin','krrTU','pid','hostname','logs','format','config','git-repo-info','LogCreated','codeceptjs','data','hUMVv','ltGgq','zJSzu','shYzC','undefined','BROWSERSTACK_CONFIG_FILE_PATH','message','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','filter','HyYym','457395CTvXMG','split','XfFlj','OURRO','test_run_uuid','parseFileNames','xTTnN','oneSB','map','turboscale','AzRci','DxhuT','dhrVH','SMnxS','timeout','rootDir','McOzh','toString','faovH','fromEntries','CiRCg','PbKGE','497857QUFhfF','SzMTj','push','toOvN','then','join','][\x20OBSERVABILITY\x20]\x20','dist','cwd','TEST_PLATFORM','spy','@playwright/test','TEST_ATTACHMENT','isUndefined','cztdo','xRsVQ','eeofz','@cucumber/cucumber','replace','toISOString','vJupL','err','Mvfnq','silly','app-automate','ZnKRl','app','linux','Linux','KxnHX','isArray','turboScaleGridDetails','HUB_URL_REGEX','getDefaultHeaders','mPNjd','eRmSn','test','annotate','toJSON','stack','Authorization','includes','patchConsoleLogger','VFKHq','vaCka','null','RPEvM','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','isInternalHook','plBGk','info','nodeRequest','getObservabilityLinkedProductName','ObservabilitySync:','browserstack','customTag','url','env','2149nZQLBE','lodash','CODECEPT','backtrace','../performance/constants','../helper','2EOEEKf','readConfig','dzGyo','Unknown','2|5|4|0|1|3','buildTag','Eajke','../../helpers/request-spy','emit','hYadx','debug','getUserCredentials','catch','mocha','1117988JOhVXm','browserstack_executor:\x20','../../bin/utils/logPatcher','platform','Wzjcq','release','5jDDCYS','NnkVF','removeAnsiColors','extractValuesWithRegexKeyMatch','getCustomTags','__cloud_provider___','capabilities','UOjzK','TraaG','uewkL','asyncAwaitNodeReq','190iwUhHF','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','getPlatform','parse','YOgPb','error','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','Windows','zpWhE','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','ZVDUw','iKQRZ','keys','RrbiU','PIarY','uZpxg','getBrowserName','BS_TESTOPS_BUILD_HASHED_ID','CUSTOM_TAG','unknown_grid','gFwUT','stringify','appium:app','uhAoE','BROWSERSTACK_TEST_OBSERVABILITY_YML','../../bin/utils/constants','KTtHn','trace','getAccessKey','fXAQe','host','relativeTestFilePath','OQvgS','relative','hALXJ','getFrameworkVersion','headers','getBuildTags','sendPlatformDetails','getPlatformVersion','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','isTestObservabilitySession','3664524iZfHcT','\x20:\x20','failureData','VrQec','modifyReqForTraceUpload','map_','vUIPY','platformName','eNOQS','PLAYWRIGHT','keepAlive','JEST','bs:addPlatformDetails:','BROWSERSTACK_OBSERVABILITY_DEBUG','jest','hArso','object','VBmzw','ATS_HUB_URL_REGEX','bstack:options','X-BSTACK-TESTOPS','PRINT_BUILDLINK','json','git-last-commit','HTTP','BROWSERSTACK_TESTHUB_JWT','awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27','true','getUserName','BROWSERSTACK_TEST_OBSERVABILITY','Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20','mJvbM','bs:addLog:','execSync','][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found','JVucD','OS\x20X','kigSM','Agent','agent','maxTotalSockets','../logger','log','child_process','getPackageVersion','formData','getBrowserStackConfig','3433833VoOqXe','OhqJS','Bearer\x20','pLRXI','Rmuwj','prefix','smUYu','keLOa','ySNel','ZgmLp','application/json','623667iJDaFz','body','sraJS','Content-Type','forEach','printBuildLink','https','BROWSERSTACK_RERUN_TESTS','default','wqJUA','13160cJWTwy','PathHelper'];a88_0xf4a6=function(){return _0x392972;};return a88_0xf4a6();}const fs=require('fs'),path=require(a88_0x4665c8(0x25b)),gitLastCommit=require(a88_0x4665c8(0x22b)),getRepoInfo=require(a88_0x4665c8(0x272)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require('./constants'),http=require('http'),https=require(a88_0x4665c8(0x254)),child_process=require(a88_0x4665c8(0x23f)),getos=require('getos'),os=require('os'),logger=require(a88_0x4665c8(0x23d))['winstonLogger'],bsSetupHelper=require(a88_0x4665c8(0x1ca)),requestSpy=require(a88_0x4665c8(0x1d2)),constants=require(a88_0x4665c8(0x203)),logPatcher=require(a88_0x4665c8(0x1db)),util=require('util'),{fileLogger}=require(a88_0x4665c8(0x23d)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a88_0x4665c8(0x1c6)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a88_0x4665c8(0x1c9));exports[a88_0x4665c8(0x205)]=_0x324a72=>{const _0x158bf2=a88_0x4665c8;fileLogger[_0x158bf2(0x1a2)]('['+new Date()[_0x158bf2(0x19e)]()+_0x158bf2(0x191)+_0x324a72);},exports[a88_0x4665c8(0x1d5)]=_0x4ce0a0=>{const _0x1dd8dc=a88_0x4665c8,_0x1fbc53={};_0x1fbc53[_0x1dd8dc(0x1f9)]=function(_0x36c31a,_0x2f3b63){return _0x36c31a===_0x2f3b63;},_0x1fbc53[_0x1dd8dc(0x233)]='true';const _0x5ab49b=_0x1fbc53;fileLogger[_0x1dd8dc(0x1d5)]('['+new Date()[_0x1dd8dc(0x19e)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x4ce0a0),(_0x5ab49b[_0x1dd8dc(0x1f9)](process[_0x1dd8dc(0x1c4)][_0x1dd8dc(0x221)],_0x5ab49b[_0x1dd8dc(0x233)])||_0x5ab49b[_0x1dd8dc(0x1f9)](process[_0x1dd8dc(0x1c4)][_0x1dd8dc(0x221)],'1'))&&consoleHolder[_0x1dd8dc(0x23e)]('\x0a['+new Date()[_0x1dd8dc(0x19e)]()+_0x1dd8dc(0x191)+_0x4ce0a0+'\x0a');};const a88_0x58b9b7={};a88_0x58b9b7[a88_0x4665c8(0x21e)]=!![],a88_0x58b9b7[a88_0x4665c8(0x28e)]=0xea60,a88_0x58b9b7['maxSockets']=0x2,a88_0x58b9b7['maxTotalSockets']=0x2;const httpKeepAliveAgent=new http['Agent'](a88_0x58b9b7),a88_0x315a51={};a88_0x315a51[a88_0x4665c8(0x21e)]=!![],a88_0x315a51[a88_0x4665c8(0x28e)]=0xea60,a88_0x315a51[a88_0x4665c8(0x266)]=0x2,a88_0x315a51['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a88_0x4665c8(0x23a))](a88_0x315a51),a88_0xbd1599={};a88_0xbd1599[a88_0x4665c8(0x21e)]=!![],a88_0xbd1599[a88_0x4665c8(0x28e)]=0xea60,a88_0xbd1599[a88_0x4665c8(0x266)]=0x2,a88_0xbd1599['maxTotalSockets']=0x2;function a88_0x496c(_0x3dee67,_0x475a29){const _0xf4a6c0=a88_0xf4a6();return a88_0x496c=function(_0x496c53,_0x2fad2e){_0x496c53=_0x496c53-0x18e;let _0x39c872=_0xf4a6c0[_0x496c53];return _0x39c872;},a88_0x496c(_0x3dee67,_0x475a29);}const httpScreenshotsKeepAliveAgent=new http[(a88_0x4665c8(0x23a))](a88_0xbd1599),a88_0x5581a3={};a88_0x5581a3['keepAlive']=!![],a88_0x5581a3['timeout']=0xea60,a88_0x5581a3['maxSockets']=0x2,a88_0x5581a3[a88_0x4665c8(0x23c)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a88_0x4665c8(0x23a))](a88_0x5581a3);exports[a88_0x4665c8(0x25a)]=()=>{const _0x455e1a=a88_0x4665c8,_0x348205={};_0x348205[_0x455e1a(0x286)]=function(_0x30f9ce,_0x556d69){return _0x30f9ce!==_0x556d69;},_0x348205[_0x455e1a(0x27f)]=_0x455e1a(0x1b8);const _0x1dc69b=_0x348205;return process[_0x455e1a(0x1c4)][_0x455e1a(0x255)]&&_0x1dc69b[_0x455e1a(0x286)](process[_0x455e1a(0x1c4)]['BROWSERSTACK_RERUN_TESTS'],_0x1dc69b[_0x455e1a(0x27f)])?!![]:![];},exports[a88_0x4665c8(0x213)]=()=>{const _0x5b90ad=a88_0x4665c8,_0x4f93f4={};_0x4f93f4[_0x5b90ad(0x1ad)]=function(_0x4fc98f,_0x515489){return _0x4fc98f===_0x515489;},_0x4f93f4['oneSB']='true';const _0xccfff1=_0x4f93f4;let _0x2c02ee=!![];return process['env'][_0x5b90ad(0x202)]&&(_0x2c02ee=_0xccfff1['mPNjd'](process['env'][_0x5b90ad(0x202)],_0xccfff1['oneSB'])),process[_0x5b90ad(0x1c4)][_0x5b90ad(0x231)]&&(_0x2c02ee=_0xccfff1['mPNjd'](process['env'][_0x5b90ad(0x231)],_0xccfff1[_0x5b90ad(0x287)])),_0x2c02ee;},exports[a88_0x4665c8(0x285)]=_0x23fc42=>{const _0x2be493=a88_0x4665c8;if(bsSetupHelper[_0x2be493(0x198)](_0x23fc42))return undefined;try{return _0x23fc42[_0x2be493(0x25d)]()[_0x2be493(0x281)](',');}catch(_0x3f2591){return undefined;}},exports[a88_0x4665c8(0x253)]=()=>{const _0x59cfda=a88_0x4665c8,_0x4a9ace={};_0x4a9ace[_0x59cfda(0x19b)]=function(_0x1aa5a4,_0x4b6ec9){return _0x1aa5a4!==_0x4b6ec9;},_0x4a9ace[_0x59cfda(0x244)]=_0x59cfda(0x1b8),_0x4a9ace[_0x59cfda(0x1b7)]=_0x59cfda(0x27a);const _0x264897=_0x4a9ace;return PerformanceTester['measureWrapper'](PerformanceO11yEvents[_0x59cfda(0x229)],async()=>{const _0x3938ed=_0x59cfda;try{process[_0x3938ed(0x1c4)][_0x3938ed(0x1fb)]&&_0x264897[_0x3938ed(0x19b)](process[_0x3938ed(0x1c4)][_0x3938ed(0x1fb)],_0x264897['OhqJS'])&&_0x264897[_0x3938ed(0x19b)](process[_0x3938ed(0x1c4)][_0x3938ed(0x1fb)],_0x264897['vaCka'])&&logger[_0x3938ed(0x1bd)]('Visit\x20https://observability.browserstack.com/builds/'+process[_0x3938ed(0x1c4)][_0x3938ed(0x1fb)]+_0x3938ed(0x1ba));}catch(_0x3e65e4){logger[_0x3938ed(0x1ef)]('['+new Date()['toISOString']()+_0x3938ed(0x236));}})();},exports['getFailureType']=_0x3d9787=>{const _0x26bd56=a88_0x4665c8,_0x5b27ac={};_0x5b27ac['mpGfl']='AssertionError',_0x5b27ac['ITHMo']='UnhandledError';const _0x491c37=_0x5b27ac;if(!_0x3d9787)return null;return _0x3d9787['toString']()['match'](/AssertionError/)?_0x491c37[_0x26bd56(0x260)]:_0x491c37['ITHMo'];},exports[a88_0x4665c8(0x20d)]=_0x26a458=>{const _0x1a912c=a88_0x4665c8,_0x2d5bc7={};_0x2d5bc7[_0x1a912c(0x28b)]=_0x1a912c(0x1d8),_0x2d5bc7[_0x1a912c(0x1cd)]=_0x1a912c(0x196),_0x2d5bc7[_0x1a912c(0x1a1)]=_0x1a912c(0x274),_0x2d5bc7[_0x1a912c(0x1d1)]=_0x1a912c(0x222),_0x2d5bc7[_0x1a912c(0x1f7)]=_0x1a912c(0x19c);const _0x3aaa6c=_0x2d5bc7;let _0x1ce92c=null;switch(_0x26a458){case FRAMEWORKS['MOCHA']:_0x1ce92c=bsSetupHelper[_0x1a912c(0x240)](_0x3aaa6c[_0x1a912c(0x28b)]);break;case FRAMEWORKS[_0x1a912c(0x21d)]:_0x1ce92c=bsSetupHelper['getPackageVersion'](_0x3aaa6c[_0x1a912c(0x1cd)]);break;case FRAMEWORKS[_0x1a912c(0x1c7)]:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x1ce92c=bsSetupHelper[_0x1a912c(0x240)](_0x3aaa6c[_0x1a912c(0x1a1)]);break;case FRAMEWORKS[_0x1a912c(0x21f)]:_0x1ce92c=bsSetupHelper[_0x1a912c(0x240)](_0x3aaa6c['Eajke']);break;case FRAMEWORKS['CUCUMBER']:_0x1ce92c=bsSetupHelper['getPackageVersion'](_0x3aaa6c[_0x1a912c(0x1f7)]);break;default:break;}return _0x1ce92c;},exports[a88_0x4665c8(0x242)]=_0x2db9f2=>{const _0x4f24c9=a88_0x4665c8;let _0x129fb0=null;switch(_0x2db9f2){case FRAMEWORKS[_0x4f24c9(0x21d)]:_0x129fb0=process['env'][_0x4f24c9(0x27b)];break;}if(!_0x129fb0)return;return bsSetupHelper[_0x4f24c9(0x1cc)](_0x129fb0,![]);},exports[a88_0x4665c8(0x1d6)]=_0x48fca8=>{const _0x3e2e2a=a88_0x4665c8;return{'username':bsSetupHelper[_0x3e2e2a(0x230)](_0x48fca8),'accessKey':bsSetupHelper[_0x3e2e2a(0x206)](_0x48fca8)};},exports['modifyReqForTraceUpload']=(_0x35557b,_0x28387b)=>{const _0x59d6a7=a88_0x4665c8,_0x34daad={};_0x34daad[_0x59d6a7(0x1a4)]=_0x59d6a7(0x1cf),_0x34daad['krrTU']=_0x59d6a7(0x273),_0x34daad[_0x59d6a7(0x276)]=_0x59d6a7(0x197),_0x34daad[_0x59d6a7(0x278)]=_0x59d6a7(0x267);const _0xbee454=_0x34daad,_0xc7cd6f=_0xbee454[_0x59d6a7(0x1a4)]['split']('|');let _0x5835ac=0x0;while(!![]){switch(_0xc7cd6f[_0x5835ac++]){case'0':delete _0x35557b['body'];continue;case'1':delete _0x35557b[_0x59d6a7(0x22a)];continue;case'2':if(!_0x35557b['body']||!Array[_0x59d6a7(0x1a9)](_0x35557b[_0x59d6a7(0x24f)]))return;continue;case'3':delete _0x28387b[_0x59d6a7(0x20e)];continue;case'4':_0x35557b[_0x59d6a7(0x241)]={'data':_0x35557b[_0x59d6a7(0x24f)][0x0][_0x59d6a7(0x26f)][0x0][_0x59d6a7(0x275)],'test_run_uuid':_0x35557b[_0x59d6a7(0x24f)][0x0][_0x59d6a7(0x26f)][0x0][_0x59d6a7(0x284)],'event_type':_0xbee454[_0x59d6a7(0x26c)],'kind':_0xbee454['hUMVv'],'attachmentType':_0xbee454[_0x59d6a7(0x278)],'timestamp':new Date()[_0x59d6a7(0x19e)](),'fileName':_0x35557b[_0x59d6a7(0x24f)][0x0][_0x59d6a7(0x26f)][0x0]['fileName']};continue;case'5':if(!_0x35557b['body'][0x0]||!_0x35557b[_0x59d6a7(0x24f)][0x0][_0x59d6a7(0x26f)]||!_0x35557b[_0x59d6a7(0x24f)][0x0][_0x59d6a7(0x26f)]['length'])return;continue;}break;}},exports[a88_0x4665c8(0x1e9)]=async(_0x14f921,_0x22108e,_0x20e15e,_0x21271c,_0x50f099=!![])=>{const _0xcbc243=a88_0x4665c8,_0x15d9cc={};_0x15d9cc[_0xcbc243(0x19f)]=function(_0x33c878,_0x24d9c7){return _0x33c878===_0x24d9c7;},_0x15d9cc[_0xcbc243(0x294)]=_0xcbc243(0x251),_0x15d9cc[_0xcbc243(0x204)]='application/json',_0x15d9cc[_0xcbc243(0x19a)]=_0xcbc243(0x254),_0x15d9cc[_0xcbc243(0x1e8)]=function(_0x467de0,_0xd7387b){return _0x467de0!==_0xd7387b;},_0x15d9cc[_0xcbc243(0x217)]=_0xcbc243(0x224),_0x15d9cc[_0xcbc243(0x225)]=_0xcbc243(0x1f0);const _0x1c7e08=_0x15d9cc,_0x120e5a={..._0x21271c,...{'method':_0x14f921,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x22108e,'body':_0x20e15e,'json':_0x1c7e08[_0xcbc243(0x19f)](_0x21271c[_0xcbc243(0x20e)][_0x1c7e08[_0xcbc243(0x294)]],_0x1c7e08[_0xcbc243(0x204)]),'agent':API_URL['includes'](_0x1c7e08[_0xcbc243(0x19a)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x1c7e08[_0xcbc243(0x19f)](_0x22108e,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x120e5a[_0xcbc243(0x23b)]=API_URL[_0xcbc243(0x1b4)](_0x1c7e08[_0xcbc243(0x19a)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0xcbc243(0x218)](_0x120e5a,_0x21271c),logger['debug'](_0xcbc243(0x263)+_0x120e5a[_0xcbc243(0x1c3)]));try{const {statusCode:_0x27aaf3,body:_0x1e66c2}=await bsSetupHelper[_0xcbc243(0x1be)](_0x14f921,_0x22108e,_0x120e5a,_0x21271c,_0x120e5a[_0xcbc243(0x1c3)]);if(_0x1c7e08[_0xcbc243(0x1e8)](_0x27aaf3,0xc8))return _0x1e66c2?_0x1e66c2:_0xcbc243(0x27d)+_0x27aaf3;let _0xd9d62a=_0x1e66c2;if(_0x50f099)try{_0x1c7e08[_0xcbc243(0x1e8)](typeof _0x1e66c2,_0x1c7e08[_0xcbc243(0x217)])&&(_0xd9d62a=JSON[_0xcbc243(0x1ed)](_0x1e66c2));}catch(_0x2f2b03){logger[_0xcbc243(0x1ef)](_0x1c7e08['VBmzw'],_0x1e66c2,util[_0xcbc243(0x270)](_0x2f2b03));}const _0x3dee3b={};return _0x3dee3b[_0xcbc243(0x275)]=_0xd9d62a,_0x3dee3b;}catch(_0x96f8e4){logger['error'](_0xcbc243(0x1eb)+util[_0xcbc243(0x270)](_0x96f8e4));throw _0x96f8e4;}},exports[a88_0x4665c8(0x1be)]=(_0x7305fe,_0x3e7ba9,_0x5d5d19,_0x32e796,_0x20c7f5=!![])=>{const _0x2f00da=a88_0x4665c8,_0x4c97c7={'TraaG':function(_0x35ddd1,_0x575985){return _0x35ddd1!==_0x575985;},'SzMTj':function(_0xecda0b,_0x5f5ad6){return _0xecda0b(_0x5f5ad6);},'SMnxS':'object','OURRO':function(_0x26a4d0,_0xaac02e){return _0x26a4d0(_0xaac02e);},'AzRci':_0x2f00da(0x26a),'OQvgS':function(_0xbeb019,_0x385a33){return _0xbeb019(_0x385a33);},'ySNel':function(_0x182bb1,_0x5eb0a0){return _0x182bb1===_0x5eb0a0;},'jpgET':'Content-Type','IpYUW':_0x2f00da(0x24d),'toOvN':_0x2f00da(0x254)};return new Promise((_0x5de131,_0x536fb1)=>{const _0x1a02f3=_0x2f00da,_0xae5d68={..._0x32e796,...{'method':_0x7305fe,'url':API_URL+'/'+_0x3e7ba9,'body':_0x5d5d19,'json':_0x4c97c7[_0x1a02f3(0x24b)](_0x32e796[_0x1a02f3(0x20e)][_0x4c97c7['jpgET']],_0x4c97c7[_0x1a02f3(0x269)]),'agent':API_URL['includes'](_0x4c97c7[_0x1a02f3(0x18e)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x4c97c7[_0x1a02f3(0x24b)](_0x3e7ba9,SCREENSHOT_ENDPOINT)&&(_0xae5d68[_0x1a02f3(0x23b)]=API_URL[_0x1a02f3(0x1b4)](_0x4c97c7[_0x1a02f3(0x18e)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x1a02f3(0x1be)](_0x7305fe,_0x3e7ba9,_0xae5d68,_0x32e796,API_URL)[_0x1a02f3(0x18f)](({statusCode:_0x21903e,body:_0x3ca51b})=>{const _0x4b259e=_0x1a02f3;if(_0x4c97c7['TraaG'](_0x21903e,0xc8))_0x4c97c7[_0x4b259e(0x297)](_0x536fb1,_0x3ca51b?_0x3ca51b:_0x4b259e(0x27d)+_0x21903e);else{if(_0x20c7f5)try{_0x4c97c7[_0x4b259e(0x1e7)](typeof _0x3ca51b,_0x4c97c7[_0x4b259e(0x28d)])&&(_0x3ca51b=JSON[_0x4b259e(0x1ed)](_0x3ca51b));}catch(_0x42eb89){_0x4c97c7[_0x4b259e(0x283)](_0x536fb1,_0x4c97c7[_0x4b259e(0x28a)]);return;}const _0xa759f2={};_0xa759f2[_0x4b259e(0x275)]=_0x3ca51b,_0x4c97c7[_0x4b259e(0x20a)](_0x5de131,_0xa759f2);}})[_0x1a02f3(0x1d7)](_0x3b7579=>{_0x3b7579&&_0x4c97c7['SzMTj'](_0x536fb1,_0x3b7579);});});},exports[a88_0x4665c8(0x20f)]=_0x512c70=>{const _0x518a8a=a88_0x4665c8;if(process[_0x518a8a(0x1c4)]['TEST_OBSERVABILITY_BUILD_TAG'])return process[_0x518a8a(0x1c4)]['TEST_OBSERVABILITY_BUILD_TAG'][_0x518a8a(0x281)](',');if(_0x512c70[_0x518a8a(0x1d0)])return _0x512c70['buildTag'];return[];},exports[a88_0x4665c8(0x1ac)]=(_0x2ece14=!![])=>{const _0x42ff55=a88_0x4665c8,_0x70df22={};_0x70df22[_0x42ff55(0x199)]=_0x42ff55(0x24d),_0x70df22[_0x42ff55(0x21c)]=_0x42ff55(0x22f),_0x70df22['pYBhs']=_0x42ff55(0x1b3);const _0x3b6435=_0x70df22,_0x590c00={};_0x590c00['Content-Type']=_0x3b6435[_0x42ff55(0x199)],_0x590c00[_0x42ff55(0x228)]=_0x3b6435[_0x42ff55(0x21c)];const _0x40f5f4=_0x590c00;return _0x2ece14&&process['env'][_0x42ff55(0x22d)]&&(_0x40f5f4[_0x3b6435['pYBhs']]=_0x42ff55(0x245)+process[_0x42ff55(0x1c4)]['BROWSERSTACK_TESTHUB_JWT']),_0x40f5f4;},exports[a88_0x4665c8(0x1e2)]=_0x4206f0=>{const _0x5a342c=a88_0x4665c8,_0x37fd76={};_0x37fd76['smUYu']=_0x5a342c(0x264);const _0x24ae6e=_0x37fd76,_0x6221a5=[],_0x339dc2=new RegExp(_0x24ae6e[_0x5a342c(0x249)],'i');return Object[_0x5a342c(0x1f6)](_0x4206f0)[_0x5a342c(0x27e)](_0x499149=>_0x339dc2[_0x5a342c(0x1af)](_0x499149))[_0x5a342c(0x252)](_0x56a1a6=>_0x6221a5[_0x5a342c(0x298)](_0x4206f0[_0x56a1a6])),_0x6221a5;},exports[a88_0x4665c8(0x1e3)]=_0x48d95d=>{const _0x37a823=a88_0x4665c8,_0x2b26e1=[],_0x55cc22=_0x48d95d[_0x37a823(0x1c2)]||process[_0x37a823(0x1c4)][_0x37a823(0x1fc)];return _0x55cc22&&_0x2b26e1['push'](_0x55cc22),_0x2b26e1[_0x37a823(0x298)](...exports[_0x37a823(0x1e2)](process[_0x37a823(0x1c4)])),_0x2b26e1[_0x37a823(0x298)](...exports[_0x37a823(0x1e2)](_0x48d95d)),_0x2b26e1;},exports[a88_0x4665c8(0x1e1)]=_0x46e0a7=>{const _0x3ccce1=a88_0x4665c8;if(!_0x46e0a7)return'';return _0x46e0a7[_0x3ccce1(0x19d)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports['sleep']=(_0x3cbca8=0x64)=>new Promise(_0x1a3924=>setTimeout(_0x1a3924,_0x3cbca8));const getPlatformName=()=>{const _0x368399=a88_0x4665c8,_0x5c05cd={};_0x5c05cd[_0x368399(0x1ee)]=function(_0x4735f6,_0x589f63){return _0x4735f6===_0x589f63;},_0x5c05cd['uhAoE']='win32',_0x5c05cd['kgvqI']=_0x368399(0x1f1),_0x5c05cd[_0x368399(0x24a)]=function(_0x368345,_0x327cde){return _0x368345===_0x327cde;},_0x5c05cd[_0x368399(0x207)]=_0x368399(0x26b),_0x5c05cd[_0x368399(0x246)]=_0x368399(0x238),_0x5c05cd[_0x368399(0x1f8)]=function(_0x5a61b5,_0x5627f6){return _0x5a61b5===_0x5627f6;},_0x5c05cd['eRmSn']=_0x368399(0x1a6),_0x5c05cd[_0x368399(0x292)]=_0x368399(0x1a7),_0x5c05cd[_0x368399(0x223)]=_0x368399(0x1ce);const _0x5a6cb4=_0x5c05cd;if(_0x5a6cb4[_0x368399(0x1ee)](process['platform'],_0x5a6cb4[_0x368399(0x201)]))return _0x5a6cb4['kgvqI'];if(_0x5a6cb4[_0x368399(0x24a)](process['platform'],_0x5a6cb4['fXAQe']))return _0x5a6cb4[_0x368399(0x246)];if(_0x5a6cb4['PIarY'](process[_0x368399(0x1dc)],_0x5a6cb4[_0x368399(0x1ae)]))return _0x5a6cb4['faovH'];return _0x5a6cb4[_0x368399(0x223)];},getMacOSVersion=()=>{const _0x3a067a=a88_0x4665c8,_0x5a2c99={};_0x5a2c99[_0x3a067a(0x239)]=_0x3a067a(0x22e);const _0x509d38=_0x5a2c99;return child_process[_0x3a067a(0x235)](_0x509d38[_0x3a067a(0x239)])['toString']()[_0x3a067a(0x25d)]();},getLinuxDetails=()=>{const _0x5b2b91={'OARnN':function(_0x1c4032,_0xeaa352){return _0x1c4032(_0xeaa352);},'HRphq':function(_0x52367b,_0x4cf0c8){return _0x52367b(_0x4cf0c8);},'hALXJ':function(_0x27c753,_0x1b5ca6){return _0x27c753(_0x1b5ca6);}};return new Promise((_0x2996d5,_0x460697)=>{const _0x1b2879=a88_0x496c;_0x5b2b91[_0x1b2879(0x20c)](getos,(_0x45c4f6,_0x51cb74)=>{const _0x267afc=_0x1b2879;if(_0x45c4f6)return _0x5b2b91[_0x267afc(0x261)](_0x460697,_0x45c4f6);_0x5b2b91['HRphq'](_0x2996d5,_0x51cb74);});});};exports['getPlatformDetails']=async()=>{const _0x517068=a88_0x4665c8,_0x2c6cd1={'nLnAl':function(_0x1a05f0){return _0x1a05f0();},'ptWZU':'OS\x20X','wqJUA':function(_0x3b929d){return _0x3b929d();},'XfFlj':_0x517068(0x1f1),'VLNUu':'windows-release','KxnHX':function(_0x449c63){return _0x449c63();},'YcTla':'Linux','PquXg':'Error\x20in\x20getting\x20Linux\x20Details'};let _0x26171a=_0x2c6cd1['nLnAl'](getPlatformName),_0x36e336=os[_0x517068(0x1de)]()[_0x517068(0x291)]();switch(_0x26171a){case _0x2c6cd1['ptWZU']:_0x36e336=_0x2c6cd1[_0x517068(0x257)](getMacOSVersion);break;case _0x2c6cd1[_0x517068(0x282)]:try{const _0x842ae2=(await import(_0x2c6cd1[_0x517068(0x262)]))[_0x517068(0x256)];_0x36e336=_0x2c6cd1[_0x517068(0x1a8)](_0x842ae2);}catch(_0x26fcad){exports[_0x517068(0x1d5)]('Error\x20in\x20importing\x20windows-release\x20'+_0x26fcad[_0x517068(0x291)]());}break;case _0x2c6cd1['YcTla']:try{const _0x134bb0=await _0x2c6cd1[_0x517068(0x1a8)](getLinuxDetails);_0x134bb0['dist']&&(_0x26171a=_0x134bb0[_0x517068(0x192)]),_0x134bb0[_0x517068(0x1de)]&&(_0x36e336=_0x134bb0[_0x517068(0x1de)][_0x517068(0x291)]());}catch(_0x4d93a0){exports['debug'](_0x2c6cd1['PquXg']);}break;default:break;}const _0x120850={};return _0x120850[_0x517068(0x21b)]=_0x26171a,_0x120850['platformVersion']=_0x36e336,_0x120850;},exports[a88_0x4665c8(0x216)]=(_0x272f9a,_0x5ec757)=>{const _0x4fde6e=a88_0x4665c8,_0x14525d={};_0x14525d[_0x4fde6e(0x250)]=function(_0xd63ef8,_0x18862d){return _0xd63ef8===_0x18862d;},_0x14525d['UOjzK']=_0x4fde6e(0x1af),_0x14525d[_0x4fde6e(0x1f5)]=_0x4fde6e(0x1a0);const _0x29b613=_0x14525d;if(!_0x272f9a)return[];try{if(_0x29b613[_0x4fde6e(0x250)](_0x5ec757,_0x29b613[_0x4fde6e(0x1e6)]))return _0x272f9a['map'](_0x151244=>{const _0x11dd0a=_0x4fde6e,{stack:_0x333bef,..._0x2927ee}=_0x151244,_0x4dcacf=Object['keys'](_0x2927ee)[_0x11dd0a(0x288)](_0x57ae01=>{return _0x57ae01+':\x20'+_0x2927ee[_0x57ae01];}),_0x1ea701=_0x333bef?exports['removeAnsiColors'](_0x333bef)[_0x11dd0a(0x281)](/\r?\n/):[exports[_0x11dd0a(0x1e1)](_0x151244[_0x11dd0a(0x27c)])],_0x4e775f={};return _0x4e775f[_0x11dd0a(0x1c8)]=_0x1ea701,_0x4e775f['expanded']=_0x4dcacf,_0x4e775f;});else{if(_0x29b613[_0x4fde6e(0x250)](_0x5ec757,_0x29b613[_0x4fde6e(0x1f5)])){const _0x2ed92f=[],_0x200dda=[];return Object[_0x4fde6e(0x1f6)](_0x272f9a)['forEach'](_0x24d759=>{const _0x4d8c42=_0x4fde6e;try{_0x200dda['push'](_0x24d759+':\x20'+_0x272f9a[_0x24d759]);}catch(_0x42de6c){exports[_0x4d8c42(0x1d5)](_0x4d8c42(0x1f3)+_0x42de6c[_0x4d8c42(0x27c)]+_0x4d8c42(0x215)+_0x42de6c[_0x4d8c42(0x1c8)]);}}),_0x2ed92f[_0x4fde6e(0x298)]({'backtrace':exports[_0x4fde6e(0x1e1)](_0x272f9a[_0x4fde6e(0x1b2)])['split'](/\r?\n/),'expanded':_0x200dda}),_0x2ed92f;}}return[];}catch(_0xa9067a){exports[_0x4fde6e(0x1d5)](_0x4fde6e(0x1f3)+_0xa9067a[_0x4fde6e(0x27c)]+_0x4fde6e(0x215)+_0xa9067a['backtrace']);}return[];};class PathHelper{constructor(_0x2b7ba2,_0x1f731c){const _0x54af7c=a88_0x4665c8;this['config']=_0x2b7ba2,this[_0x54af7c(0x248)]=_0x1f731c;}[a88_0x4665c8(0x209)](_0x5c4ede){const _0x249f85=a88_0x4665c8,_0x5ce4c2=this['config'][_0x249f85(0x193)]||this[_0x249f85(0x271)][_0x249f85(0x28f)];return path[_0x249f85(0x20b)](_0x5ce4c2,_0x5c4ede);}['prefixTestPath'](_0x49e9df){const _0xc36861=a88_0x4665c8,_0x4625bf=this[_0xc36861(0x209)](_0x49e9df);return this[_0xc36861(0x248)]?path[_0xc36861(0x190)](this[_0xc36861(0x248)],_0x4625bf):_0x4625bf;}}exports[a88_0x4665c8(0x259)]=PathHelper,exports[a88_0x4665c8(0x25c)]=(_0x2061d0=!![])=>{const _0x25a92e=a88_0x4665c8,_0x1fe0ac={};_0x1fe0ac[_0x25a92e(0x1b6)]=function(_0x37e99b,_0xf26636){return _0x37e99b===_0xf26636;},_0x1fe0ac[_0x25a92e(0x247)]=_0x25a92e(0x228),_0x1fe0ac[_0x25a92e(0x21a)]=_0x25a92e(0x22f),_0x1fe0ac[_0x25a92e(0x1dd)]=_0x25a92e(0x22c),_0x1fe0ac[_0x25a92e(0x25f)]=_0x25a92e(0x1c1),_0x1fe0ac[_0x25a92e(0x1b9)]=_0x25a92e(0x25e);const _0x260c23=_0x1fe0ac;requestSpy[_0x25a92e(0x195)]((_0x2f5fef,_0x3eea66)=>{const _0x5ef7b4=_0x25a92e;_0x3eea66&&!(_0x3eea66[_0x5ef7b4(0x20e)]&&_0x260c23[_0x5ef7b4(0x1b6)](_0x3eea66[_0x5ef7b4(0x20e)][_0x260c23['Rmuwj']],_0x260c23['vUIPY']))&&(_0x3eea66[_0x5ef7b4(0x208)]=_0x3eea66['hostname'],delete _0x3eea66[_0x5ef7b4(0x26e)],_0x2061d0&&process[_0x5ef7b4(0x1d3)](_0x5ef7b4(0x234)+process[_0x5ef7b4(0x26d)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x260c23['Wzjcq'],'http_response':_0x3eea66})),_0x3eea66&&(constants[_0x5ef7b4(0x1ab)][_0x5ef7b4(0x1af)](_0x3eea66['host'])||constants[_0x5ef7b4(0x226)]['test'](_0x3eea66['host']))?global[_0x5ef7b4(0x1e4)]=_0x260c23[_0x5ef7b4(0x25f)]:global[_0x5ef7b4(0x1e4)]=_0x260c23[_0x5ef7b4(0x1b9)];});},exports[a88_0x4665c8(0x1b5)]=()=>{const _0x396318=a88_0x4665c8,_0x3ba7d7={'McOzh':function(_0x24262a,_0x338a15){return _0x24262a(_0x338a15);}};console={},Object[_0x396318(0x1f6)](consoleHolder)[_0x396318(0x252)](_0x170a78=>{const _0x1cea0c=_0x396318;_0x3ba7d7[_0x1cea0c(0x290)](isFunction,consoleHolder[_0x170a78])?console[_0x170a78]=(..._0xc9d936)=>{const _0x2d09e2=_0x1cea0c;try{!Object['keys'](BSTestOpsPatcher)[_0x2d09e2(0x1b4)](_0x170a78)?consoleHolder[_0x170a78](..._0xc9d936):BSTestOpsPatcher[_0x170a78](..._0xc9d936);}catch(_0x11b440){consoleHolder[_0x170a78](..._0xc9d936);}}:console[_0x170a78]=consoleHolder[_0x170a78];});},exports['getSyncScript']=()=>a88_0x4665c8(0x1da)+JSON[a88_0x4665c8(0x1ff)]({'action':a88_0x4665c8(0x1b0),'arguments':{'data':a88_0x4665c8(0x1c0)+Date['now'](),'level':a88_0x4665c8(0x1d5)}}),exports[a88_0x4665c8(0x1bf)]=_0x189e17=>{const _0x263f35=a88_0x4665c8,_0x1b7e00={};_0x1b7e00[_0x263f35(0x1d4)]=function(_0x5d8847,_0x3457ef){return _0x5d8847===_0x3457ef;},_0x1b7e00['kEHTi']=_0x263f35(0x1c1),_0x1b7e00[_0x263f35(0x279)]=_0x263f35(0x200),_0x1b7e00[_0x263f35(0x1fe)]=_0x263f35(0x1a5),_0x1b7e00[_0x263f35(0x1bc)]=function(_0x3d6ea3,_0x1ace62){return _0x3d6ea3>_0x1ace62;},_0x1b7e00[_0x263f35(0x1f4)]=_0x263f35(0x1a3),_0x1b7e00[_0x263f35(0x277)]=_0x263f35(0x227),_0x1b7e00[_0x263f35(0x24c)]=_0x263f35(0x1aa),_0x1b7e00[_0x263f35(0x1e0)]=_0x263f35(0x289),_0x1b7e00[_0x263f35(0x28c)]='automate';const _0x38ebf0=_0x1b7e00;let _0x20bba9=null;try{if(_0x38ebf0[_0x263f35(0x1d4)](global[_0x263f35(0x1e4)],_0x38ebf0['kEHTi'])){if(_0x189e17[_0x38ebf0['shYzC']]||_0x189e17[_0x38ebf0[_0x263f35(0x1fe)]]||!bsSetupHelper[_0x263f35(0x198)](global[_0x263f35(0x1e5)])&&_0x38ebf0[_0x263f35(0x1bc)](global[_0x263f35(0x1e5)][_0x263f35(0x265)],0x0)&&(global['capabilities'][0x0][_0x38ebf0[_0x263f35(0x1fe)]]||global[_0x263f35(0x1e5)][0x0][_0x38ebf0[_0x263f35(0x279)]]))_0x20bba9=_0x38ebf0[_0x263f35(0x1f4)];else _0x189e17[_0x38ebf0['ltGgq']]&&_0x189e17[_0x38ebf0[_0x263f35(0x277)]][_0x38ebf0[_0x263f35(0x24c)]]?_0x20bba9=_0x38ebf0[_0x263f35(0x1e0)]:_0x20bba9=_0x38ebf0['dhrVH'];}}catch(_0xe63947){exports[_0x263f35(0x1d5)](_0x263f35(0x232)+_0xe63947);}return _0x20bba9;},exports[a88_0x4665c8(0x210)]=async(_0x1d7485,_0x1357f0,_0x37d074=![])=>{const _0x71ccb1=a88_0x4665c8,_0x10ac22={};_0x10ac22[_0x71ccb1(0x295)]=function(_0x528dda,_0x3f8b14){return _0x528dda===_0x3f8b14;},_0x10ac22[_0x71ccb1(0x237)]=_0x71ccb1(0x1c1),_0x10ac22['qvqyo']=_0x71ccb1(0x1fd),_0x10ac22[_0x71ccb1(0x1f2)]=_0x71ccb1(0x194);const _0x268be4=_0x10ac22;try{const _0x39448c=await _0x1d7485['getCapabilities'](),_0x409abb=await _0x1d7485['getSession'](),_0x1bacf6={},_0x3ace90=Object[_0x71ccb1(0x293)](_0x409abb['getCapabilities']()[_0x71ccb1(0x219)]),_0x26d78b={'product':exports[_0x71ccb1(0x1bf)](_0x3ace90),'capabilities':_0x3ace90,'platform':_0x39448c[_0x71ccb1(0x1ec)](),'platform_version':bsSetupHelper[_0x71ccb1(0x211)](_0x268be4[_0x71ccb1(0x295)](global[_0x71ccb1(0x1e4)],_0x268be4[_0x71ccb1(0x237)])),'browser':_0x39448c[_0x71ccb1(0x1fa)](),'browser_version':_0x39448c['getBrowserVersion'](),'session_id':_0x409abb[_0x71ccb1(0x1b1)]()};global[_0x71ccb1(0x1e4)]?_0x1bacf6[global['__cloud_provider___']]=_0x26d78b:_0x1bacf6[_0x268be4[_0x71ccb1(0x268)]]=_0x26d78b;if(_0x37d074)return _0x1bacf6;process['emit'](_0x71ccb1(0x220)+process[_0x71ccb1(0x26d)],{'timestamp':new Date()[_0x71ccb1(0x19e)](),'level':null,'message':null,'kind':_0x268be4['zpWhE'],'http_response':_0x1bacf6,'uuid':_0x1357f0});}catch(_0x2e2e2b){exports[_0x71ccb1(0x1d5)](_0x71ccb1(0x212)+_0x2e2e2b);}},exports[a88_0x4665c8(0x1bb)]=_0x3230a1=>{const _0x4a45fd=a88_0x4665c8;return _0x3230a1&&_0x3230a1[_0x4a45fd(0x291)]()['match'](/browserstack internal helper hook/);};
|
|
1
|
+
const a88_0x4e01c7=a88_0x12c6;(function(_0x37e00a,_0x42e1bf){const _0x56de91=a88_0x12c6,_0x2c3d28=_0x37e00a();while(!![]){try{const _0x389834=-parseInt(_0x56de91(0x11c))/0x1+-parseInt(_0x56de91(0x156))/0x2*(-parseInt(_0x56de91(0x1ed))/0x3)+-parseInt(_0x56de91(0x1cd))/0x4*(parseInt(_0x56de91(0x1ac))/0x5)+-parseInt(_0x56de91(0x1db))/0x6+-parseInt(_0x56de91(0x1ae))/0x7*(parseInt(_0x56de91(0x1cb))/0x8)+parseInt(_0x56de91(0x128))/0x9+-parseInt(_0x56de91(0x20a))/0xa*(-parseInt(_0x56de91(0x112))/0xb);if(_0x389834===_0x42e1bf)break;else _0x2c3d28['push'](_0x2c3d28['shift']());}catch(_0x38cf80){_0x2c3d28['push'](_0x2c3d28['shift']());}}}(a88_0xd8e8,0xac59c));function a88_0xd8e8(){const _0x1be9f9=['Windows','xmJXo','../performance/constants','appium:app','WdRCs','YNCck','TKksL','capabilities','length','OoxIq','../logger','filter','data','map','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','rIbDC','getos','^CUSTOM_TAG_\x5cd+$','fromEntries','push','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','TEST_OBSERVABILITY_BUILD_TAG','10OLKvbV','includes','format','cPojD','AssertionError','split','ceurl','execSync','headers','uibPK','stack','XPmsk','nodeRequest','tGnqy','browserstack','bs:addPlatformDetails:','test_run_uuid','JMOdN','21354674mXqmPO','yqAMp','IkUCx','isUndefined','null','json','release','@playwright/test','https','app-automate','1041268drJLQk','wgBOP','windows-release','BNApV','addRequestSpy','turboScaleGridDetails','spy','nybZY','3|4|0|2|5|1','Visit\x20https://observability.browserstack.com/builds/','now','SNmgA','7443774ZloOJC','OhRBb','MnKSu','CODECEPT','MTahz','message','TEST_PLATFORM','extractValuesWithRegexKeyMatch','map_','trace','JJgnj','PLAYWRIGHT','hostname','rXlUL','IrcDJ','EzlbW','ywAkA','util','\x20:\x20','bs:addLog:','xggVH','git-last-commit','match','patchConsoleLogger','getPackageVersion','env','../helper','pid','NqVLd','sleep','../performance/performance-tester','getDefaultHeaders','maxTotalSockets','zixqq','url','buildTag','dSDAg','keys','./constants','awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27','wzSRq','WqnKS','BS_TESTOPS_BUILD_HASHED_ID','qCefV','getCapabilities','default','187478YqdqIQ','child_process','JEST','qApRj','expanded','application/json','getPlatformDetails','automate','getBrowserStackConfig','PaQFo','CUSTOM_TAG','Linux','host','OYGqe','stringify','kfqiE','test','Uploading\x20trace\x20logs\x20to:\x20','Lcjkp','Error\x20in\x20importing\x20windows-release\x20','IOCya','toISOString','__cloud_provider___','lodash','catch','getFrameworkVersion','cFoJo','BROWSERSTACK_TEST_OBSERVABILITY_YML','asyncAwaitNodeReq','bstack:options','join','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','app','BROWSERSTACK_OBSERVABILITY_DEBUG','Unknown','fileName','isArray','getUserCredentials','HVvIB','../../helpers/request-spy','logs','BZVCc','object','KugvZ','darwin','OWQWz','IQIvE','path','oKopa','LJyZd','jtcNp','][\x20OBSERVABILITY\x20]\x20','getPlatformVersion','deNHr','mocha','win32','http','CODECEPT_CUCUMBER','cwd','vxUxE','relative','PRINT_BUILDLINK','nsUXS','maxSockets','getSession','local_grid','platform','ZiGLB','isInternalHook','TwokU','rootDir','lMmVg','HUB_URL_REGEX','AvgTU','UMcdf','TsCNU','keepAlive','PLAYWRIGHT_TRACE_LOGS','unknown_grid','Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20','parse','aYLjq','FqoUI','prefixTestPath','ftyHH','PathHelper','9340ojBDvp','WMLkn','14cCjGiD','YFLWb','UnhandledError','PQzQE','OS\x20X','BROWSERSTACK_TESTHUB_JWT','parseFileNames','debug','Error\x20in\x20getting\x20Linux\x20Details','getAccessKey','dist','forEach','getUserName','SDCvs','git-repo-info','replace','removeAnsiColors','error','Agent','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','Auwtj','jhodI','bSdNc','isTestObservabilitySession','CUCUMBER','emit','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','SODZh','prefix','1039672bIbwaG','gevpX','1188uqUmHR','readConfig','nKepY','getPlatform','Smefo','BROWSERSTACK_RERUN_TESTS','DNVrE','BROWSERSTACK_TEST_OBSERVABILITY','turboscale','AsjSJ','TbdIQ','DblJs','Content-Type','modifyReqForTraceUpload','5175978sjLihm','platformVersion','OscrD','trim','info','body','yXhxP','fGEdn','UdoRj','timeout','backtrace','true','getObservabilityLinkedProductName','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','EtWPd','toString','config','annotate','21XiqfoL','relativeTestFilePath','jsEBx','shouldReRunObservabilityTests','PROmH','browserstack_executor:\x20','eRuRn'];a88_0xd8e8=function(){return _0x1be9f9;};return a88_0xd8e8();}const fs=require('fs'),path=require(a88_0x4e01c7(0x185)),gitLastCommit=require(a88_0x4e01c7(0x13d)),getRepoInfo=require(a88_0x4e01c7(0x1bc)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a88_0x4e01c7(0x14e)),http=require(a88_0x4e01c7(0x18e)),https=require('https'),child_process=require(a88_0x4e01c7(0x157)),getos=require(a88_0x4e01c7(0x204)),os=require('os'),logger=require(a88_0x4e01c7(0x1fe))['winstonLogger'],bsSetupHelper=require(a88_0x4e01c7(0x142)),requestSpy=require(a88_0x4e01c7(0x17d)),constants=require('../../bin/utils/constants'),logPatcher=require('../../bin/utils/logPatcher'),util=require(a88_0x4e01c7(0x139)),{fileLogger}=require(a88_0x4e01c7(0x1fe)),PerformanceTester=require(a88_0x4e01c7(0x146)),{isFunction}=require(a88_0x4e01c7(0x16d)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a88_0x4e01c7(0x1f6));exports[a88_0x4e01c7(0x131)]=_0x90d9be=>{const _0x37df6f=a88_0x4e01c7;fileLogger['silly']('['+new Date()[_0x37df6f(0x16b)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x90d9be);},exports['debug']=_0x2586dc=>{const _0x4dfa51=a88_0x4e01c7,_0xbe5e71={};_0xbe5e71['hGUvA']=function(_0x27b676,_0x4ab97d){return _0x27b676===_0x4ab97d;},_0xbe5e71['IOCya']=_0x4dfa51(0x1e6),_0xbe5e71[_0x4dfa51(0x1a7)]=function(_0x1c1b4f,_0x522378){return _0x1c1b4f===_0x522378;};const _0x4bf1df=_0xbe5e71;fileLogger[_0x4dfa51(0x1b5)]('['+new Date()[_0x4dfa51(0x16b)]()+_0x4dfa51(0x189)+_0x2586dc),(_0x4bf1df['hGUvA'](process['env'][_0x4dfa51(0x177)],_0x4bf1df[_0x4dfa51(0x16a)])||_0x4bf1df[_0x4dfa51(0x1a7)](process[_0x4dfa51(0x141)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x4dfa51(0x16b)]()+_0x4dfa51(0x189)+_0x2586dc+'\x0a');};const a88_0x3766c3={};a88_0x3766c3[a88_0x4e01c7(0x1a2)]=!![],a88_0x3766c3[a88_0x4e01c7(0x1e4)]=0xea60,a88_0x3766c3[a88_0x4e01c7(0x195)]=0x2,a88_0x3766c3[a88_0x4e01c7(0x148)]=0x2;const httpKeepAliveAgent=new http['Agent'](a88_0x3766c3),a88_0x5ef967={};function a88_0x12c6(_0x4db50a,_0x48e214){const _0xd8e87c=a88_0xd8e8();return a88_0x12c6=function(_0x12c603,_0x21a8cf){_0x12c603=_0x12c603-0x103;let _0x2144dd=_0xd8e87c[_0x12c603];return _0x2144dd;},a88_0x12c6(_0x4db50a,_0x48e214);}a88_0x5ef967[a88_0x4e01c7(0x1a2)]=!![],a88_0x5ef967[a88_0x4e01c7(0x1e4)]=0xea60,a88_0x5ef967[a88_0x4e01c7(0x195)]=0x2,a88_0x5ef967[a88_0x4e01c7(0x148)]=0x2;const httpsKeepAliveAgent=new https[(a88_0x4e01c7(0x1c0))](a88_0x5ef967),a88_0x5e14fa={};a88_0x5e14fa[a88_0x4e01c7(0x1a2)]=!![],a88_0x5e14fa[a88_0x4e01c7(0x1e4)]=0xea60,a88_0x5e14fa[a88_0x4e01c7(0x195)]=0x2,a88_0x5e14fa['maxTotalSockets']=0x2;const httpScreenshotsKeepAliveAgent=new http['Agent'](a88_0x5e14fa),a88_0x552b28={};a88_0x552b28[a88_0x4e01c7(0x1a2)]=!![],a88_0x552b28[a88_0x4e01c7(0x1e4)]=0xea60,a88_0x552b28[a88_0x4e01c7(0x195)]=0x2,a88_0x552b28['maxTotalSockets']=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a88_0x4e01c7(0x1c0))](a88_0x552b28);exports[a88_0x4e01c7(0x1f0)]=()=>{const _0x219050=a88_0x4e01c7,_0x1a4e6c={};_0x1a4e6c[_0x219050(0x150)]=function(_0x436f70,_0x659d2b){return _0x436f70!==_0x659d2b;},_0x1a4e6c[_0x219050(0x187)]='null';const _0x510330=_0x1a4e6c;return process[_0x219050(0x141)]['BROWSERSTACK_RERUN_TESTS']&&_0x510330[_0x219050(0x150)](process[_0x219050(0x141)][_0x219050(0x1d2)],_0x510330[_0x219050(0x187)])?!![]:![];},exports[a88_0x4e01c7(0x1c5)]=()=>{const _0x1850d7=a88_0x4e01c7,_0x5f75e7={};_0x5f75e7['uibPK']=function(_0x151725,_0x398860){return _0x151725===_0x398860;},_0x5f75e7[_0x1850d7(0x129)]='true',_0x5f75e7[_0x1850d7(0x1c2)]=function(_0x76c16d,_0x40e25d){return _0x76c16d===_0x40e25d;};const _0x435e0d=_0x5f75e7;let _0x403989=!![];return process[_0x1850d7(0x141)][_0x1850d7(0x171)]&&(_0x403989=_0x435e0d[_0x1850d7(0x109)](process[_0x1850d7(0x141)][_0x1850d7(0x171)],_0x435e0d[_0x1850d7(0x129)])),process[_0x1850d7(0x141)][_0x1850d7(0x1d4)]&&(_0x403989=_0x435e0d[_0x1850d7(0x1c2)](process['env'][_0x1850d7(0x1d4)],_0x435e0d[_0x1850d7(0x129)])),_0x403989;},exports[a88_0x4e01c7(0x1b4)]=_0x9fda32=>{const _0xf64a19=a88_0x4e01c7;if(bsSetupHelper[_0xf64a19(0x115)](_0x9fda32))return undefined;try{return _0x9fda32[_0xf64a19(0x1de)]()[_0xf64a19(0x105)](',');}catch(_0x37a57c){return undefined;}},exports['printBuildLink']=()=>{const _0x45a80f=a88_0x4e01c7,_0xc91302={};_0xc91302[_0x45a80f(0x113)]=function(_0x3071fb,_0x1d17a7){return _0x3071fb!==_0x1d17a7;},_0xc91302[_0x45a80f(0x1f5)]=_0x45a80f(0x116),_0xc91302[_0x45a80f(0x194)]=function(_0x338004,_0x1f8434){return _0x338004!==_0x1f8434;},_0xc91302[_0x45a80f(0x1fa)]='undefined';const _0x2cefaa=_0xc91302;return PerformanceTester['measureWrapper'](PerformanceO11yEvents[_0x45a80f(0x193)],async()=>{const _0x1c8460=_0x45a80f;try{process[_0x1c8460(0x141)]['BS_TESTOPS_BUILD_HASHED_ID']&&_0x2cefaa[_0x1c8460(0x113)](process['env'][_0x1c8460(0x152)],_0x2cefaa['xmJXo'])&&_0x2cefaa[_0x1c8460(0x194)](process[_0x1c8460(0x141)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x2cefaa[_0x1c8460(0x1fa)])&&logger[_0x1c8460(0x1df)](_0x1c8460(0x125)+process[_0x1c8460(0x141)][_0x1c8460(0x152)]+_0x1c8460(0x175));}catch(_0x515f97){logger[_0x1c8460(0x1bf)]('['+new Date()[_0x1c8460(0x16b)]()+'][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found');}})();},exports['getFailureType']=_0x2a7280=>{const _0x1cb0fe=a88_0x4e01c7,_0x50511b={};_0x50511b[_0x1cb0fe(0x12a)]=_0x1cb0fe(0x104),_0x50511b[_0x1cb0fe(0x149)]=_0x1cb0fe(0x1b0);const _0x25f5ed=_0x50511b;if(!_0x2a7280)return null;return _0x2a7280[_0x1cb0fe(0x1ea)]()[_0x1cb0fe(0x13e)](/AssertionError/)?_0x25f5ed[_0x1cb0fe(0x12a)]:_0x25f5ed[_0x1cb0fe(0x149)];},exports[a88_0x4e01c7(0x16f)]=_0x46871a=>{const _0x44e28c=a88_0x4e01c7,_0x330194={};_0x330194[_0x44e28c(0x1f1)]=_0x44e28c(0x18c),_0x330194[_0x44e28c(0x153)]=_0x44e28c(0x119),_0x330194[_0x44e28c(0x1ef)]='codeceptjs',_0x330194[_0x44e28c(0x14c)]='jest',_0x330194[_0x44e28c(0x106)]='@cucumber/cucumber';const _0x44ee66=_0x330194;let _0x14c6c9=null;switch(_0x46871a){case FRAMEWORKS['MOCHA']:_0x14c6c9=bsSetupHelper['getPackageVersion'](_0x44ee66[_0x44e28c(0x1f1)]);break;case FRAMEWORKS[_0x44e28c(0x133)]:_0x14c6c9=bsSetupHelper[_0x44e28c(0x140)](_0x44ee66['qCefV']);break;case FRAMEWORKS[_0x44e28c(0x12b)]:case FRAMEWORKS[_0x44e28c(0x18f)]:_0x14c6c9=bsSetupHelper[_0x44e28c(0x140)](_0x44ee66[_0x44e28c(0x1ef)]);break;case FRAMEWORKS[_0x44e28c(0x158)]:_0x14c6c9=bsSetupHelper[_0x44e28c(0x140)](_0x44ee66['dSDAg']);break;case FRAMEWORKS[_0x44e28c(0x1c6)]:_0x14c6c9=bsSetupHelper[_0x44e28c(0x140)](_0x44ee66[_0x44e28c(0x106)]);break;default:break;}return _0x14c6c9;},exports[a88_0x4e01c7(0x15e)]=_0x4ff4cc=>{const _0x280b79=a88_0x4e01c7;let _0x47c5b3=null;switch(_0x4ff4cc){case FRAMEWORKS[_0x280b79(0x133)]:_0x47c5b3=process[_0x280b79(0x141)]['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x47c5b3)return;return bsSetupHelper[_0x280b79(0x1ce)](_0x47c5b3,![]);},exports[a88_0x4e01c7(0x17b)]=_0x38dd00=>{const _0x56d541=a88_0x4e01c7;return{'username':bsSetupHelper[_0x56d541(0x1ba)](_0x38dd00),'accessKey':bsSetupHelper[_0x56d541(0x1b7)](_0x38dd00)};},exports['modifyReqForTraceUpload']=(_0x3c12e0,_0x4e9311)=>{const _0x259278=a88_0x4e01c7,_0x3c0ecb={};_0x3c0ecb[_0x259278(0x1cc)]=_0x259278(0x124),_0x3c0ecb[_0x259278(0x1a8)]='LogCreated',_0x3c0ecb[_0x259278(0x19f)]='TEST_ATTACHMENT',_0x3c0ecb[_0x259278(0x1a1)]=_0x259278(0x1a3);const _0x1d1b02=_0x3c0ecb,_0x299e80=_0x1d1b02[_0x259278(0x1cc)]['split']('|');let _0x5a859f=0x0;while(!![]){switch(_0x299e80[_0x5a859f++]){case'0':_0x3c12e0['formData']={'data':_0x3c12e0[_0x259278(0x1e0)][0x0][_0x259278(0x17e)][0x0]['data'],'test_run_uuid':_0x3c12e0[_0x259278(0x1e0)][0x0][_0x259278(0x17e)][0x0][_0x259278(0x110)],'event_type':_0x1d1b02[_0x259278(0x1a8)],'kind':_0x1d1b02[_0x259278(0x19f)],'attachmentType':_0x1d1b02[_0x259278(0x1a1)],'timestamp':new Date()[_0x259278(0x16b)](),'fileName':_0x3c12e0['body'][0x0][_0x259278(0x17e)][0x0][_0x259278(0x179)]};continue;case'1':delete _0x4e9311[_0x259278(0x108)];continue;case'2':delete _0x3c12e0['body'];continue;case'3':if(!_0x3c12e0[_0x259278(0x1e0)]||!Array[_0x259278(0x17a)](_0x3c12e0['body']))return;continue;case'4':if(!_0x3c12e0['body'][0x0]||!_0x3c12e0[_0x259278(0x1e0)][0x0][_0x259278(0x17e)]||!_0x3c12e0[_0x259278(0x1e0)][0x0][_0x259278(0x17e)][_0x259278(0x1fc)])return;continue;case'5':delete _0x3c12e0[_0x259278(0x117)];continue;}break;}},exports[a88_0x4e01c7(0x172)]=async(_0x525116,_0xa0cda1,_0x3145b1,_0x47a00f,_0x4781f7=!![])=>{const _0x39c059=a88_0x4e01c7,_0x42aeed={};_0x42aeed[_0x39c059(0x137)]=function(_0x390d4e,_0x1af23e){return _0x390d4e===_0x1af23e;},_0x42aeed[_0x39c059(0x165)]='Content-Type',_0x42aeed[_0x39c059(0x1ad)]=_0x39c059(0x15b),_0x42aeed[_0x39c059(0x199)]=_0x39c059(0x11a),_0x42aeed['SNmgA']=function(_0x2a6926,_0x5664a4){return _0x2a6926!==_0x5664a4;},_0x42aeed[_0x39c059(0x13c)]=_0x39c059(0x180),_0x42aeed[_0x39c059(0x1d6)]=_0x39c059(0x1c8);const _0x3f6731=_0x42aeed,_0x12610b={..._0x47a00f,...{'method':_0x525116,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0xa0cda1,'body':_0x3145b1,'json':_0x3f6731[_0x39c059(0x137)](_0x47a00f[_0x39c059(0x108)][_0x3f6731['kfqiE']],_0x3f6731[_0x39c059(0x1ad)]),'agent':API_URL[_0x39c059(0x20b)](_0x3f6731[_0x39c059(0x199)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x3f6731[_0x39c059(0x137)](_0xa0cda1,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x12610b['agent']=API_URL[_0x39c059(0x20b)](_0x3f6731[_0x39c059(0x199)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x39c059(0x1da)](_0x12610b,_0x47a00f),logger[_0x39c059(0x1b5)](_0x39c059(0x167)+_0x12610b[_0x39c059(0x14a)]));try{const {statusCode:_0x108af6,body:_0x276164}=await bsSetupHelper[_0x39c059(0x10c)](_0x525116,_0xa0cda1,_0x12610b,_0x47a00f,_0x12610b[_0x39c059(0x14a)]);if(_0x3f6731[_0x39c059(0x127)](_0x108af6,0xc8))return _0x276164?_0x276164:_0x39c059(0x1c1)+_0x108af6;let _0x62db00=_0x276164;if(_0x4781f7)try{_0x3f6731[_0x39c059(0x127)](typeof _0x276164,_0x3f6731[_0x39c059(0x13c)])&&(_0x62db00=JSON['parse'](_0x276164));}catch(_0x5b05f3){logger['error'](_0x3f6731['AsjSJ'],_0x276164,util[_0x39c059(0x20c)](_0x5b05f3));}const _0x3833b9={};return _0x3833b9[_0x39c059(0x200)]=_0x62db00,_0x3833b9;}catch(_0x195354){logger[_0x39c059(0x1bf)]('Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20'+util['format'](_0x195354));throw _0x195354;}},exports['nodeRequest']=(_0x460bdc,_0x4c41f0,_0x4d3a16,_0x2d9e52,_0x31d504=!![])=>{const _0x276297=a88_0x4e01c7,_0x3808f3={'dUXjv':function(_0x55a621,_0x570032){return _0x55a621(_0x570032);},'Joima':function(_0x1c9eec,_0x369e35){return _0x1c9eec!==_0x369e35;},'nKepY':function(_0x5f466,_0x1e5591){return _0x5f466!==_0x1e5591;},'PQzQE':_0x276297(0x180),'AUdnm':_0x276297(0x208),'zwyIN':function(_0x3901d8,_0x25f5b8){return _0x3901d8===_0x25f5b8;},'SDCvs':'Content-Type','cPojD':_0x276297(0x15b),'PaQFo':_0x276297(0x11a),'OoxIq':function(_0xc4ac13,_0x1cc733){return _0xc4ac13===_0x1cc733;}};return new Promise((_0x3c25a0,_0x272173)=>{const _0x28bf57=_0x276297,_0x2d0843={'hETCj':function(_0xc5cc6c,_0x59d638){return _0x3808f3['Joima'](_0xc5cc6c,_0x59d638);},'DNVrE':function(_0x8e7aab,_0x550532){return _0x3808f3['dUXjv'](_0x8e7aab,_0x550532);},'jhodI':function(_0x262f19,_0x15a423){const _0x19c3c4=a88_0x12c6;return _0x3808f3[_0x19c3c4(0x1cf)](_0x262f19,_0x15a423);},'sQkRk':_0x3808f3[_0x28bf57(0x1b1)],'deNHr':_0x3808f3['AUdnm']},_0xc614a0={..._0x2d9e52,...{'method':_0x460bdc,'url':API_URL+'/'+_0x4c41f0,'body':_0x4d3a16,'json':_0x3808f3['zwyIN'](_0x2d9e52[_0x28bf57(0x108)][_0x3808f3[_0x28bf57(0x1bb)]],_0x3808f3[_0x28bf57(0x103)]),'agent':API_URL['includes'](_0x3808f3['PaQFo'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x3808f3[_0x28bf57(0x1fd)](_0x4c41f0,SCREENSHOT_ENDPOINT)&&(_0xc614a0['agent']=API_URL['includes'](_0x3808f3[_0x28bf57(0x15f)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper['nodeRequest'](_0x460bdc,_0x4c41f0,_0xc614a0,_0x2d9e52,API_URL)['then'](({statusCode:_0x1b0fc1,body:_0x25d409})=>{const _0x502479=_0x28bf57;if(_0x2d0843['hETCj'](_0x1b0fc1,0xc8))_0x2d0843[_0x502479(0x1d3)](_0x272173,_0x25d409?_0x25d409:_0x502479(0x1c1)+_0x1b0fc1);else{if(_0x31d504)try{_0x2d0843[_0x502479(0x1c3)](typeof _0x25d409,_0x2d0843['sQkRk'])&&(_0x25d409=JSON[_0x502479(0x1a6)](_0x25d409));}catch(_0x3ecb8b){_0x2d0843[_0x502479(0x1d3)](_0x272173,_0x2d0843[_0x502479(0x18b)]);return;}const _0x55b20c={};_0x55b20c[_0x502479(0x200)]=_0x25d409,_0x2d0843[_0x502479(0x1d3)](_0x3c25a0,_0x55b20c);}})[_0x28bf57(0x16e)](_0xddd7a=>{_0xddd7a&&_0x3808f3['dUXjv'](_0x272173,_0xddd7a);});});},exports['getBuildTags']=_0x2434c0=>{const _0x4a76e0=a88_0x4e01c7;if(process[_0x4a76e0(0x141)][_0x4a76e0(0x209)])return process[_0x4a76e0(0x141)]['TEST_OBSERVABILITY_BUILD_TAG']['split'](',');if(_0x2434c0[_0x4a76e0(0x14b)])return _0x2434c0['buildTag'];return[];},exports[a88_0x4e01c7(0x147)]=(_0x24ef78=!![])=>{const _0xde08ed=a88_0x4e01c7,_0x4c8a2f={};_0x4c8a2f[_0xde08ed(0x163)]=_0xde08ed(0x15b),_0x4c8a2f[_0xde08ed(0x123)]=_0xde08ed(0x1e6),_0x4c8a2f[_0xde08ed(0x151)]='Authorization';const _0x5f1366=_0x4c8a2f,_0x18ea37={};_0x18ea37[_0xde08ed(0x1d9)]=_0x5f1366[_0xde08ed(0x163)],_0x18ea37['X-BSTACK-TESTOPS']=_0x5f1366[_0xde08ed(0x123)];const _0x5bedef=_0x18ea37;return _0x24ef78&&process[_0xde08ed(0x141)][_0xde08ed(0x1b3)]&&(_0x5bedef[_0x5f1366['WqnKS']]='Bearer\x20'+process['env'][_0xde08ed(0x1b3)]),_0x5bedef;},exports[a88_0x4e01c7(0x12f)]=_0x39bc32=>{const _0x46c9cf=a88_0x4e01c7,_0x40eae1={};_0x40eae1['YFZwP']=_0x46c9cf(0x205);const _0x20328a=_0x40eae1,_0xa9cb20=[],_0x2ea2a7=new RegExp(_0x20328a['YFZwP'],'i');return Object[_0x46c9cf(0x14d)](_0x39bc32)[_0x46c9cf(0x1ff)](_0x53f9aa=>_0x2ea2a7[_0x46c9cf(0x166)](_0x53f9aa))[_0x46c9cf(0x1b9)](_0x21ecb0=>_0xa9cb20[_0x46c9cf(0x207)](_0x39bc32[_0x21ecb0])),_0xa9cb20;},exports['getCustomTags']=_0x12b8fe=>{const _0x48f121=a88_0x4e01c7,_0x4e8e8e=[],_0x3548c6=_0x12b8fe['customTag']||process[_0x48f121(0x141)][_0x48f121(0x160)];return _0x3548c6&&_0x4e8e8e[_0x48f121(0x207)](_0x3548c6),_0x4e8e8e[_0x48f121(0x207)](...exports[_0x48f121(0x12f)](process[_0x48f121(0x141)])),_0x4e8e8e['push'](...exports['extractValuesWithRegexKeyMatch'](_0x12b8fe)),_0x4e8e8e;},exports['removeAnsiColors']=_0x1b5a92=>{const _0x289054=a88_0x4e01c7;if(!_0x1b5a92)return'';return _0x1b5a92[_0x289054(0x1bd)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a88_0x4e01c7(0x145)]=(_0xabd4af=0x64)=>new Promise(_0x268d58=>setTimeout(_0x268d58,_0xabd4af));const getPlatformName=()=>{const _0x438d3d=a88_0x4e01c7,_0x9ed48b={};_0x9ed48b[_0x438d3d(0x12c)]=function(_0x59dc6b,_0x222497){return _0x59dc6b===_0x222497;},_0x9ed48b[_0x438d3d(0x1a0)]=_0x438d3d(0x18d),_0x9ed48b[_0x438d3d(0x188)]=_0x438d3d(0x1f4),_0x9ed48b[_0x438d3d(0x191)]=_0x438d3d(0x182),_0x9ed48b[_0x438d3d(0x11d)]=_0x438d3d(0x1b2),_0x9ed48b['JJgnj']=function(_0x23139d,_0x372e9c){return _0x23139d===_0x372e9c;},_0x9ed48b[_0x438d3d(0x1f9)]='linux',_0x9ed48b[_0x438d3d(0x1c4)]=_0x438d3d(0x161),_0x9ed48b[_0x438d3d(0x11f)]=_0x438d3d(0x178);const _0x509270=_0x9ed48b;if(_0x509270['MTahz'](process[_0x438d3d(0x198)],_0x509270[_0x438d3d(0x1a0)]))return _0x509270[_0x438d3d(0x188)];if(_0x509270[_0x438d3d(0x12c)](process['platform'],_0x509270['vxUxE']))return _0x509270[_0x438d3d(0x11d)];if(_0x509270[_0x438d3d(0x132)](process[_0x438d3d(0x198)],_0x509270['YNCck']))return _0x509270[_0x438d3d(0x1c4)];return _0x509270[_0x438d3d(0x11f)];},getMacOSVersion=()=>{const _0x361dd0=a88_0x4e01c7,_0x36eade={};_0x36eade[_0x361dd0(0x1af)]=_0x361dd0(0x14f);const _0x35cc90=_0x36eade;return child_process[_0x361dd0(0x107)](_0x35cc90['YFLWb'])['toString']()[_0x361dd0(0x1de)]();},getLinuxDetails=()=>{const _0x17bdb8={'SODZh':function(_0x32ac2c,_0xf6e37f){return _0x32ac2c(_0xf6e37f);}};return new Promise((_0x250024,_0x5e1b01)=>{const _0x16d12d={'WdRCs':function(_0x3df8b0,_0x12c0be){const _0x528016=a88_0x12c6;return _0x17bdb8[_0x528016(0x1c9)](_0x3df8b0,_0x12c0be);}};_0x17bdb8['SODZh'](getos,(_0x34b66c,_0x49d400)=>{const _0x10105b=a88_0x12c6;if(_0x34b66c)return _0x16d12d[_0x10105b(0x1f8)](_0x5e1b01,_0x34b66c);_0x16d12d[_0x10105b(0x1f8)](_0x250024,_0x49d400);});});};exports[a88_0x4e01c7(0x15c)]=async()=>{const _0x118ded=a88_0x4e01c7,_0x198eba={'UdoRj':function(_0x3bbec0){return _0x3bbec0();},'qApRj':_0x118ded(0x1b2),'IkUCx':function(_0x265a9a){return _0x265a9a();},'JMOdN':_0x118ded(0x1f4),'TbdIQ':_0x118ded(0x11e),'rXlUL':_0x118ded(0x161),'yXhxP':_0x118ded(0x1b6)};let _0x45bb9c=_0x198eba[_0x118ded(0x1e3)](getPlatformName),_0x404d20=os['release']()[_0x118ded(0x1ea)]();switch(_0x45bb9c){case _0x198eba[_0x118ded(0x159)]:_0x404d20=_0x198eba[_0x118ded(0x114)](getMacOSVersion);break;case _0x198eba[_0x118ded(0x111)]:try{const _0x223a10=(await import(_0x198eba[_0x118ded(0x1d7)]))[_0x118ded(0x155)];_0x404d20=_0x198eba[_0x118ded(0x1e3)](_0x223a10);}catch(_0x5e69be){exports[_0x118ded(0x1b5)](_0x118ded(0x169)+_0x5e69be[_0x118ded(0x1ea)]());}break;case _0x198eba[_0x118ded(0x135)]:try{const _0x53a9d9=await _0x198eba[_0x118ded(0x114)](getLinuxDetails);_0x53a9d9[_0x118ded(0x1b8)]&&(_0x45bb9c=_0x53a9d9[_0x118ded(0x1b8)]),_0x53a9d9[_0x118ded(0x118)]&&(_0x404d20=_0x53a9d9[_0x118ded(0x118)]['toString']());}catch(_0x5382af){exports['debug'](_0x198eba[_0x118ded(0x1e1)]);}break;default:break;}const _0x66ffae={};return _0x66ffae['platformName']=_0x45bb9c,_0x66ffae[_0x118ded(0x1dc)]=_0x404d20,_0x66ffae;},exports['failureData']=(_0x463804,_0x486517)=>{const _0x586386=a88_0x4e01c7,_0x1a225d={};_0x1a225d['rIbDC']=function(_0x2dd877,_0x2213b6){return _0x2dd877===_0x2213b6;},_0x1a225d[_0x586386(0x1e9)]=_0x586386(0x166),_0x1a225d[_0x586386(0x1d8)]='err';const _0x328d61=_0x1a225d;if(!_0x463804)return[];try{if(_0x328d61[_0x586386(0x203)](_0x486517,_0x328d61[_0x586386(0x1e9)]))return _0x463804[_0x586386(0x201)](_0x152449=>{const _0x5bda65=_0x586386,{stack:_0x143689,..._0x1ffe55}=_0x152449,_0x16920d=Object['keys'](_0x1ffe55)['map'](_0x23cb7d=>{return _0x23cb7d+':\x20'+_0x1ffe55[_0x23cb7d];}),_0x2ed758=_0x143689?exports[_0x5bda65(0x1be)](_0x143689)['split'](/\r?\n/):[exports['removeAnsiColors'](_0x152449[_0x5bda65(0x12d)])],_0x5041d1={};return _0x5041d1[_0x5bda65(0x1e5)]=_0x2ed758,_0x5041d1[_0x5bda65(0x15a)]=_0x16920d,_0x5041d1;});else{if(_0x328d61['rIbDC'](_0x486517,_0x328d61[_0x586386(0x1d8)])){const _0x29a2e6=[],_0x3317fe=[];return Object[_0x586386(0x14d)](_0x463804)[_0x586386(0x1b9)](_0x41b897=>{const _0x1adfba=_0x586386;try{_0x3317fe['push'](_0x41b897+':\x20'+_0x463804[_0x41b897]);}catch(_0x4c8b70){exports['debug'](_0x1adfba(0x202)+_0x4c8b70[_0x1adfba(0x12d)]+_0x1adfba(0x13a)+_0x4c8b70['backtrace']);}}),_0x29a2e6[_0x586386(0x207)]({'backtrace':exports['removeAnsiColors'](_0x463804[_0x586386(0x10a)])[_0x586386(0x105)](/\r?\n/),'expanded':_0x3317fe}),_0x29a2e6;}}return[];}catch(_0x123e37){exports[_0x586386(0x1b5)](_0x586386(0x202)+_0x123e37['message']+_0x586386(0x13a)+_0x123e37['backtrace']);}return[];};class PathHelper{constructor(_0x1765b0,_0x10cd0f){const _0x265b02=a88_0x4e01c7;this[_0x265b02(0x1eb)]=_0x1765b0,this[_0x265b02(0x1ca)]=_0x10cd0f;}[a88_0x4e01c7(0x1ee)](_0x2266e6){const _0x5aeb23=a88_0x4e01c7,_0x5df568=this[_0x5aeb23(0x1eb)][_0x5aeb23(0x190)]||this[_0x5aeb23(0x1eb)][_0x5aeb23(0x19c)];return path[_0x5aeb23(0x192)](_0x5df568,_0x2266e6);}[a88_0x4e01c7(0x1a9)](_0x565ab8){const _0x4e59c2=a88_0x4e01c7,_0x4566a5=this[_0x4e59c2(0x1ee)](_0x565ab8);return this['prefix']?path[_0x4e59c2(0x174)](this[_0x4e59c2(0x1ca)],_0x4566a5):_0x4566a5;}}exports[a88_0x4e01c7(0x1ab)]=PathHelper,exports[a88_0x4e01c7(0x120)]=(_0x3f9c3b=!![])=>{const _0x4ad77e=a88_0x4e01c7,_0x29fd78={};_0x29fd78[_0x4ad77e(0x181)]=function(_0x4bf54d,_0x1675c1){return _0x4bf54d===_0x1675c1;},_0x29fd78[_0x4ad77e(0x184)]='X-BSTACK-TESTOPS',_0x29fd78[_0x4ad77e(0x10d)]=_0x4ad77e(0x1e6),_0x29fd78[_0x4ad77e(0x183)]='HTTP',_0x29fd78[_0x4ad77e(0x1dd)]=_0x4ad77e(0x10e),_0x29fd78[_0x4ad77e(0x1d1)]=_0x4ad77e(0x197);const _0x3db4b6=_0x29fd78;requestSpy[_0x4ad77e(0x122)]((_0x179790,_0x3bd3ad)=>{const _0x23e043=_0x4ad77e;_0x3bd3ad&&!(_0x3bd3ad[_0x23e043(0x108)]&&_0x3db4b6[_0x23e043(0x181)](_0x3bd3ad[_0x23e043(0x108)][_0x3db4b6[_0x23e043(0x184)]],_0x3db4b6[_0x23e043(0x10d)]))&&(_0x3bd3ad[_0x23e043(0x162)]=_0x3bd3ad[_0x23e043(0x134)],delete _0x3bd3ad['hostname'],_0x3f9c3b&&process[_0x23e043(0x1c7)](_0x23e043(0x13b)+process[_0x23e043(0x143)],{'timestamp':new Date()[_0x23e043(0x16b)](),'level':null,'message':null,'kind':_0x3db4b6['OWQWz'],'http_response':_0x3bd3ad})),_0x3bd3ad&&(constants[_0x23e043(0x19e)][_0x23e043(0x166)](_0x3bd3ad[_0x23e043(0x162)])||constants['ATS_HUB_URL_REGEX'][_0x23e043(0x166)](_0x3bd3ad[_0x23e043(0x162)]))?global[_0x23e043(0x16c)]=_0x3db4b6['OscrD']:global['__cloud_provider___']=_0x3db4b6[_0x23e043(0x1d1)];});},exports[a88_0x4e01c7(0x13f)]=()=>{const _0x437c65=a88_0x4e01c7,_0x2dee5a={'dPJUd':function(_0x3cffa4,_0x5027ef){return _0x3cffa4(_0x5027ef);}};console={},Object['keys'](consoleHolder)[_0x437c65(0x1b9)](_0x3ecd40=>{_0x2dee5a['dPJUd'](isFunction,consoleHolder[_0x3ecd40])?console[_0x3ecd40]=(..._0x13a131)=>{const _0x3a84ab=a88_0x12c6;try{!Object[_0x3a84ab(0x14d)](BSTestOpsPatcher)[_0x3a84ab(0x20b)](_0x3ecd40)?consoleHolder[_0x3ecd40](..._0x13a131):BSTestOpsPatcher[_0x3ecd40](..._0x13a131);}catch(_0x3cd36d){consoleHolder[_0x3ecd40](..._0x13a131);}}:console[_0x3ecd40]=consoleHolder[_0x3ecd40];});},exports['getSyncScript']=()=>a88_0x4e01c7(0x1f2)+JSON[a88_0x4e01c7(0x164)]({'action':a88_0x4e01c7(0x1ec),'arguments':{'data':'ObservabilitySync:'+Date[a88_0x4e01c7(0x126)](),'level':a88_0x4e01c7(0x1b5)}}),exports[a88_0x4e01c7(0x1e7)]=_0x13ac9c=>{const _0x13d373=a88_0x4e01c7,_0x28714a={};_0x28714a[_0x13d373(0x1f3)]=function(_0x17012e,_0x573fca){return _0x17012e===_0x573fca;},_0x28714a[_0x13d373(0x10b)]=_0x13d373(0x10e),_0x28714a[_0x13d373(0x17c)]=_0x13d373(0x1f7),_0x28714a[_0x13d373(0x19d)]=_0x13d373(0x176),_0x28714a[_0x13d373(0x136)]=function(_0x10a883,_0x36ade0){return _0x10a883>_0x36ade0;},_0x28714a[_0x13d373(0x144)]=_0x13d373(0x11b),_0x28714a[_0x13d373(0x168)]=_0x13d373(0x173),_0x28714a[_0x13d373(0x17f)]=_0x13d373(0x121),_0x28714a[_0x13d373(0x1e2)]=_0x13d373(0x1d5),_0x28714a[_0x13d373(0x170)]=_0x13d373(0x15d);const _0x405724=_0x28714a;let _0x7b1177=null;try{if(_0x405724[_0x13d373(0x1f3)](global[_0x13d373(0x16c)],_0x405724['XPmsk'])){if(_0x13ac9c[_0x405724[_0x13d373(0x17c)]]||_0x13ac9c[_0x405724[_0x13d373(0x19d)]]||!bsSetupHelper[_0x13d373(0x115)](global[_0x13d373(0x1fb)])&&_0x405724[_0x13d373(0x136)](global[_0x13d373(0x1fb)]['length'],0x0)&&(global[_0x13d373(0x1fb)][0x0][_0x405724[_0x13d373(0x19d)]]||global['capabilities'][0x0][_0x405724[_0x13d373(0x17c)]]))_0x7b1177=_0x405724[_0x13d373(0x144)];else _0x13ac9c[_0x405724[_0x13d373(0x168)]]&&_0x13ac9c[_0x405724[_0x13d373(0x168)]][_0x405724[_0x13d373(0x17f)]]?_0x7b1177=_0x405724['fGEdn']:_0x7b1177=_0x405724[_0x13d373(0x170)];}}catch(_0x2b23a3){exports['debug'](_0x13d373(0x1a5)+_0x2b23a3);}return _0x7b1177;},exports['sendPlatformDetails']=async(_0x3c6461,_0x423c8,_0x18fa70=![])=>{const _0xf61083=a88_0x4e01c7,_0xcba230={};_0xcba230['ywAkA']=function(_0x2510e7,_0x102e98){return _0x2510e7===_0x102e98;},_0xcba230[_0xf61083(0x19b)]=_0xf61083(0x10e),_0xcba230['oKopa']=_0xf61083(0x1a4),_0xcba230[_0xf61083(0x1aa)]=_0xf61083(0x12e);const _0x53579a=_0xcba230;try{const _0x4f0c53=await _0x3c6461[_0xf61083(0x154)](),_0x7232c8=await _0x3c6461[_0xf61083(0x196)](),_0x558897={},_0x31d7d1=Object[_0xf61083(0x206)](_0x7232c8['getCapabilities']()[_0xf61083(0x130)]),_0x4ca8a7={'product':exports[_0xf61083(0x1e7)](_0x31d7d1),'capabilities':_0x31d7d1,'platform':_0x4f0c53[_0xf61083(0x1d0)](),'platform_version':bsSetupHelper[_0xf61083(0x18a)](_0x53579a[_0xf61083(0x138)](global['__cloud_provider___'],_0x53579a['TwokU'])),'browser':_0x4f0c53['getBrowserName'](),'browser_version':_0x4f0c53['getBrowserVersion'](),'session_id':_0x7232c8['toJSON']()};global[_0xf61083(0x16c)]?_0x558897[global[_0xf61083(0x16c)]]=_0x4ca8a7:_0x558897[_0x53579a[_0xf61083(0x186)]]=_0x4ca8a7;if(_0x18fa70)return _0x558897;process[_0xf61083(0x1c7)](_0xf61083(0x10f)+process[_0xf61083(0x143)],{'timestamp':new Date()[_0xf61083(0x16b)](),'level':null,'message':null,'kind':_0x53579a[_0xf61083(0x1aa)],'http_response':_0x558897,'uuid':_0x423c8});}catch(_0x187225){exports[_0xf61083(0x1b5)](_0xf61083(0x1e8)+_0x187225);}},exports[a88_0x4e01c7(0x19a)]=_0x5c6609=>{const _0x5a8eeb=a88_0x4e01c7;return _0x5c6609&&_0x5c6609['toString']()[_0x5a8eeb(0x13e)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a89_0x3f101c=a89_0x2239;(function(_0x5a834e,_0x59142e){var _0x56245e=a89_0x2239,_0x206b9d=_0x5a834e();while(!![]){try{var _0xa7d7e3=-parseInt(_0x56245e(0xac))/0x1*(-parseInt(_0x56245e(0xa6))/0x2)+parseInt(_0x56245e(0xa2))/0x3*(parseInt(_0x56245e(0x99))/0x4)+-parseInt(_0x56245e(0x93))/0x5+-parseInt(_0x56245e(0x9d))/0x6+-parseInt(_0x56245e(0xad))/0x7*(-parseInt(_0x56245e(0x9b))/0x8)+-parseInt(_0x56245e(0xa7))/0x9+-parseInt(_0x56245e(0xa9))/0xa*(-parseInt(_0x56245e(0xab))/0xb);if(_0xa7d7e3===_0x59142e)break;else _0x206b9d['push'](_0x206b9d['shift']());}catch(_0x3fb806){_0x206b9d['push'](_0x206b9d['shift']());}}}(a89_0x1336,0x6ae29));var a89_0x46255d={};a89_0x46255d[a89_0x3f101c(0x97)]=a89_0x3f101c(0xa0),a89_0x46255d[a89_0x3f101c(0xae)]=a89_0x3f101c(0x98),a89_0x46255d['ACCESS_DENIED']=a89_0x3f101c(0xaf);var a89_0x1fce31={};a89_0x1fce31[a89_0x3f101c(0x96)]=a89_0x3f101c(0x94),a89_0x1fce31[a89_0x3f101c(0xaa)]=a89_0x3f101c(0x9a),a89_0x1fce31['TestSkipped']='TestRunSkipped',a89_0x1fce31[a89_0x3f101c(0x95)]='LogCreated',a89_0x1fce31[a89_0x3f101c(0x9c)]=a89_0x3f101c(0xa8),a89_0x1fce31[a89_0x3f101c(0xa3)]=a89_0x3f101c(0x9f),a89_0x1fce31['CBTSessionCreated']=a89_0x3f101c(0xa4);function a89_0x2239(_0x35f8d0,_0x3a850c){var _0x13368a=a89_0x1336();return a89_0x2239=function(_0x223965,_0x42b8e8){_0x223965=_0x223965-0x91;var _0x5a7efa=_0x13368a[_0x223965];return _0x5a7efa;},a89_0x2239(_0x35f8d0,_0x3a850c);}function a89_0x1336(){var _0xd13dc9=['TestFinished','636119WwTEMi','783041rtGCzg','35JFkfNx','DEPRECATED','ERROR_ACCESS_DENIED','observability','exports','OBSERVABILITY','1307040DSmezG','TestRunStarted','LogCreated','TestStarted','INVALID_CREDENTIALS','ERROR_SDK_DEPRECATED','27428jGkFeD','TestRunFinished','145080DeIKPn','HookStarted','4505682YPZkuC','BROWSERSTACK_TESTHUB_UUID','HookRunFinished','ERROR_INVALID_CREDENTIALS','ERROR','75mylyUS','HookFinished','CBTSessionCreated','TESTHUB_BUILD_API','2siotmf','2600397qOwYfs','HookRunStarted','120ZaZvos'];a89_0x1336=function(){return _0xd13dc9;};return a89_0x1336();}var a89_0x277de6={};a89_0x277de6[a89_0x3f101c(0x9e)]=a89_0x3f101c(0x9e),a89_0x277de6['BROWSERSTACK_TESTHUB_JWT']='BROWSERSTACK_TESTHUB_JWT';var a89_0x5f252c={};a89_0x5f252c[a89_0x3f101c(0xa5)]='api/v2/builds',a89_0x5f252c['ACCESSIBILITY']='accessibility',a89_0x5f252c[a89_0x3f101c(0x92)]=a89_0x3f101c(0xb0),a89_0x5f252c[a89_0x3f101c(0xa1)]=a89_0x46255d,a89_0x5f252c['EVENT']=a89_0x1fce31,a89_0x5f252c['ENV_VAR']=a89_0x277de6,module[a89_0x3f101c(0x91)]=a89_0x5f252c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a90_0x3fe6(){const _0xfc015=['null','lcnc','ENV_VAR','setupPercy','BROWSERSTACK_TESTHUB_JWT','settings','oalMP','GjduA','basename','xlEkA','eHdeE','assign','IbnhN','getUserName','resolve','getConfig','oxGSc','lzskb','PKXAp','getFrameworkDetails','env','generateBuildUpstreamData','./utils.js','IQvXp','isBrowserstackInfra','getGitMetaData','waitForBuildStatus','Error\x20while\x20waiting\x20for\x20events:\x20','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','logBuildError','506366FZQWMg','BROWSERSTACK_CENTRAL_SCANNER_JOBID','exports','includes','percy','RPuIS','buildIdentifier','../test-observability/utils','getCentralUser','START','BROWSERSTACK_TESTHUB_UUID','forEach','../../bin/playwright/reporter/test-details.js','api/v1/builds/','Axqkb','path','UnNUB','push','getCiInfo','measureWrapper','ZfekJ','BROWSERSTACK_RERUN','winstonLogger','framework','message','svknY','util','1401822hWfohw','7uoYXKC','BROWSERSTACK_TEST_OBSERVABILITY','ACCESSIBILITY','error','../test-observability/sessionHandler.js','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER','YULrJ','config','stringify','buildName','format','uRUUz','getAccessibilityOptions','token','data','../logger','isAccessibilityEnabled','3541880oIHGOA','getAccessKey','user_killed','../../bin/playwright/reporter/pwUtils.js','false','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','getInstance','response','250GNwYgv','2626940zxmood','getHostInfo','All\x20trace\x20zip\x20send\x20events\x20complete','debug','processTraceZips','REWhY','TESTHUB_BUILD_API','success','info','stopBuildUpstream\x20event\x20successful!','buildHashedId','stop','status','iqsxF','true','nSWDc','BROWSERSTACK_CENTRAL_SCANNER_JWT','../helper','add','authToken','STOP','BROWSERSTACK_BUILD_RUN_IDENTIFIER','setAccessibilityVariables','miVxV','OBSERVABILITY','556143ONgjgh','aliDh','vxuQI','3oAyEKa','../performance/performance-tester.js','getTraceFilePaths','3778892IKWkTn','central_scanner','isUndefined','UgZXV','GLMxs','allowScreenshot','username','accessibilityOptions','jOEIV','password','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','extractDataFromResponse','buildStopSent','Testhub\x20started\x20with\x20id:\x20','RyfWw','BS_TESTOPS_BUILD_COMPLETED','Percy\x20is\x20not\x20supported\x20for\x20','84393JErIiL','checkAndSetupPercy','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','PUT'];a90_0x3fe6=function(){return _0xfc015;};return a90_0x3fe6();}const a90_0x204ada=a90_0x5272;(function(_0x2884fa,_0xa64f56){const _0x4f8683=a90_0x5272,_0x4f7f02=_0x2884fa();while(!![]){try{const _0x3f45f6=-parseInt(_0x4f8683(0x1ac))/0x1+-parseInt(_0x4f8683(0x15d))/0x2+parseInt(_0x4f8683(0x1af))/0x3*(parseInt(_0x4f8683(0x1b2))/0x4)+-parseInt(_0x4f8683(0x193))/0x5+parseInt(_0x4f8683(0x178))/0x6+parseInt(_0x4f8683(0x179))/0x7*(parseInt(_0x4f8683(0x18a))/0x8)+parseInt(_0x4f8683(0x1c3))/0x9*(parseInt(_0x4f8683(0x192))/0xa);if(_0x3f45f6===_0xa64f56)break;else _0x4f7f02['push'](_0x4f7f02['shift']());}catch(_0xe774d1){_0x4f7f02['push'](_0x4f7f02['shift']());}}}(a90_0x3fe6,0x7f266));const bsSetupHelper=require(a90_0x204ada(0x1a4)),path=require(a90_0x204ada(0x16c)),util=require(a90_0x204ada(0x177)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a90_0x204ada(0x164)),testhubUtils=require(a90_0x204ada(0x155)),testHubConstants=require('./constants.js'),constants=require('../../bin/utils/constants.js'),RequestQueueHandler=require('../test-observability/requestQueueHandler.js'),logger=require(a90_0x204ada(0x188))[a90_0x204ada(0x173)],SessionHandler=require(a90_0x204ada(0x17d)),PerformanceTester=require(a90_0x204ada(0x1b0)),{TESTHUB_EVENTS:PerformanceEvents}=require('../performance/constants'),TestDetails=require(a90_0x204ada(0x169)),{uploadTraceZip}=require(a90_0x204ada(0x18d)),OngoingEvents=new Set();function a90_0x5272(_0x1fe47e,_0x4fbf53){const _0x3fe688=a90_0x3fe6();return a90_0x5272=function(_0x5272dd,_0x1a5f20){_0x5272dd=_0x5272dd-0x13c;let _0x4b3026=_0x3fe688[_0x5272dd];return _0x4b3026;},a90_0x5272(_0x1fe47e,_0x4fbf53);}let processedTraceZips=![];const addEvent=_0x2b4aed=>{const _0x32d26f=a90_0x204ada;OngoingEvents[_0x32d26f(0x1a5)](_0x2b4aed);},awaitAllEvents=async()=>{return Promise['allSettled'](OngoingEvents);};class TestHubHandler{static ['buildStopSent']=![];static async['launchBuild'](_0x3d3641,_0x261ca9){const _0x2a545b=a90_0x204ada,_0x160d6f={'Axqkb':function(_0x1437fc,_0x4780ef){return _0x1437fc||_0x4780ef;},'PKXAp':function(_0x13a30f,_0x417f04){return _0x13a30f===_0x417f04;},'UgZXV':function(_0x454105){return _0x454105();},'REWhY':_0x2a545b(0x18f),'xlEkA':'false','nSWDc':_0x2a545b(0x1bc),'gwENg':function(_0x153a30,_0x54c68c,_0x4f7d65,_0x90909f,_0x1989f7){return _0x153a30(_0x54c68c,_0x4f7d65,_0x90909f,_0x1989f7);},'RPuIS':'POST'};await PerformanceTester[_0x2a545b(0x170)](PerformanceEvents[_0x2a545b(0x166)],async()=>{const _0x4c66b9=_0x2a545b,_0xeb2f7=Object[_0x4c66b9(0x14a)]({},_0x261ca9['config'],{'root_dir_path':'','framework':_0x261ca9[_0x4c66b9(0x174)]}),_0x5d712a=bsSetupHelper[_0x4c66b9(0x14c)](_0xeb2f7),_0x16a104=bsSetupHelper[_0x4c66b9(0x18b)](_0xeb2f7),_0x440b66=_0x160d6f[_0x4c66b9(0x16b)](_0x5d712a,'')+':'+_0x160d6f[_0x4c66b9(0x16b)](_0x16a104,''),_0x56a211=testhubUtils['getProductMap'](_0xeb2f7);process[_0x4c66b9(0x153)]['BROWSERSTACK_PRODUCT_MAP']=JSON[_0x4c66b9(0x181)](_0x56a211);if(_0x160d6f[_0x4c66b9(0x151)](_0x440b66,':'))return _0x160d6f[_0x4c66b9(0x1b5)](isTestObservabilitySession)&&(logger[_0x4c66b9(0x196)](_0x160d6f[_0x4c66b9(0x198)]),process[_0x4c66b9(0x153)]['BS_TESTOPS_BUILD_COMPLETED']=_0x160d6f[_0x4c66b9(0x148)]),testhubUtils['isAccessibilityEnabled'](_0xeb2f7)&&logger['debug'](_0x160d6f[_0x4c66b9(0x1a2)]),[null,null];try{const _0x12fa1f=await this[_0x4c66b9(0x154)](_0xeb2f7,_0x3d3641),_0x141b3f=this[_0x4c66b9(0x14e)](_0x5d712a,_0x16a104),_0x3122a6=await _0x160d6f['gwENg'](nodeRequest,_0x160d6f[_0x4c66b9(0x162)],testHubConstants[_0x4c66b9(0x199)],_0x12fa1f,_0x141b3f),_0xb8c333=this[_0x4c66b9(0x1bd)](_0xeb2f7,_0x3122a6,_0x141b3f);return await this[_0x4c66b9(0x13c)](_0x261ca9,_0x3d3641),_0xb8c333;}catch(_0x36b6bd){if(_0x160d6f[_0x4c66b9(0x151)](_0x36b6bd[_0x4c66b9(0x19a)],![])){testhubUtils[_0x4c66b9(0x15c)](_0x36b6bd);return;}}})();}static async[a90_0x204ada(0x197)](){const _0x3e3dfb=a90_0x204ada,_0x12acd4={'JySqz':function(_0x54c1ff,_0x3a7ee4,_0x13407){return _0x54c1ff(_0x3a7ee4,_0x13407);},'ZfekJ':function(_0x4b141e,_0x9f2fa4){return _0x4b141e(_0x9f2fa4);},'jOEIV':function(_0x3bb93f){return _0x3bb93f();},'RyfWw':_0x3e3dfb(0x195)};if(processedTraceZips)return;const _0x41dfdc=TestDetails[_0x3e3dfb(0x1b1)]();_0x41dfdc[_0x3e3dfb(0x168)](({testUId:_0x52a602,filePath:_0x868923})=>{const _0x38b6c1=_0x3e3dfb;var _0x206c3c=_0x12acd4['JySqz'](uploadTraceZip,_0x868923,_0x52a602);_0x12acd4[_0x38b6c1(0x171)](addEvent,_0x206c3c);});try{await _0x12acd4[_0x3e3dfb(0x1ba)](awaitAllEvents),logger['debug'](_0x12acd4[_0x3e3dfb(0x1c0)]),processedTraceZips=!![];}catch(_0x4db194){logger[_0x3e3dfb(0x17c)](_0x3e3dfb(0x15a)+util[_0x3e3dfb(0x183)](_0x4db194));}}static async[a90_0x204ada(0x13c)](_0x443f06,_0x3ccd79){const _0x2bae09=a90_0x204ada;if(constants['PERCY_SUPPORTED_FRAMEWORKS'][_0x2bae09(0x160)](_0x3ccd79)){await _0x443f06[_0x2bae09(0x142)]();return;}_0x443f06[_0x2bae09(0x180)][_0x2bae09(0x161)]&&logger[_0x2bae09(0x196)](_0x2bae09(0x1c2)+_0x3ccd79+'\x20framework');}static[a90_0x204ada(0x185)](_0x106a93){const _0x4bf254=a90_0x204ada,_0x1595d3={};_0x1595d3[_0x4bf254(0x144)]=_0x106a93[_0x4bf254(0x1b9)];const _0x10cb7c=_0x1595d3;return _0x10cb7c;}static[a90_0x204ada(0x14e)](_0x12c88d,_0x435de7){const _0xf635bc=a90_0x204ada,_0x78d3e5={'iqsxF':function(_0x24e351,_0x945281){return _0x24e351(_0x945281);}},_0x4236c2={};return _0x4236c2[_0xf635bc(0x1b8)]=_0x12c88d,_0x4236c2[_0xf635bc(0x1bb)]=_0x435de7,{'auth':_0x4236c2,'headers':_0x78d3e5[_0xf635bc(0x1a0)](getDefaultHeaders,![])};}static async[a90_0x204ada(0x154)](_0x244e7e,_0x3e27d8){const _0x216eff=a90_0x204ada,_0x539fa7={'IYBfZ':function(_0x101e6d,_0x362fa0){return _0x101e6d(_0x362fa0);}},_0x548b9f={'project_name':_0x244e7e['projectName']||'','name':_0x244e7e[_0x216eff(0x182)]||path[_0x216eff(0x147)](path[_0x216eff(0x14d)](process['cwd']())),'build_identifier':_0x244e7e[_0x216eff(0x163)],'description':_0x244e7e['buildDescription']||'','started_at':new Date()['toISOString'](),'tags':_0x539fa7['IYBfZ'](getCustomTags,_0x244e7e),'host_info':bsSetupHelper[_0x216eff(0x194)](),'ci_info':bsSetupHelper[_0x216eff(0x16f)](),'build_run_identifier':process['env'][_0x216eff(0x1a8)],'failed_tests_rerun':process[_0x216eff(0x153)][_0x216eff(0x172)]||![],'version_control':await bsSetupHelper[_0x216eff(0x158)](),'accessibility':this[_0x216eff(0x185)](_0x244e7e),'framework_details':testhubUtils[_0x216eff(0x152)](_0x244e7e,_0x3e27d8),'product_map':testhubUtils['getProductMap'](_0x244e7e),'browserstackAutomation':bsSetupHelper[_0x216eff(0x157)](),'grouping_identifier':process[_0x216eff(0x153)][_0x216eff(0x17e)]};if(bsSetupHelper[_0x216eff(0x165)]()[_0x216eff(0x1b3)]||bsSetupHelper[_0x216eff(0x165)]()[_0x216eff(0x140)]){const _0x1c8986={};_0x1c8986['job_id']=process['env'][_0x216eff(0x15e)],_0x1c8986[_0x216eff(0x186)]=process[_0x216eff(0x153)][_0x216eff(0x1a3)],_0x548b9f['central_scanner']=_0x1c8986;}return _0x548b9f;}static[a90_0x204ada(0x1bd)](_0x387024,_0x576783,_0x1cfe42){const _0x45865d=a90_0x204ada,_0x5144ce={'WzODJ':function(_0x17d3aa){return _0x17d3aa();},'eHdeE':function(_0x187fe2,_0x501a46){return _0x187fe2&&_0x501a46;},'GjduA':_0x45865d(0x1a1),'oalMP':_0x45865d(0x18e),'miVxV':function(_0xbafc05,_0x9a55cb){return _0xbafc05&&_0x9a55cb;}},_0x674710={};if(_0x5144ce['WzODJ'](isTestObservabilitySession)){const [_0x482aa0,_0x17ce5f,_0x5af0f4]=testhubUtils['setTestObservabilityVariables'](_0x576783[_0x45865d(0x187)],_0x1cfe42['auth']);if(_0x5144ce[_0x45865d(0x149)](_0x482aa0,_0x17ce5f)){const _0x3e47ec={};_0x3e47ec['jwt']=_0x482aa0,_0x3e47ec[_0x45865d(0x19d)]=_0x17ce5f,_0x3e47ec[_0x45865d(0x1b7)]=_0x5af0f4,_0x674710[testHubConstants[_0x45865d(0x1ab)]]=_0x3e47ec,process['env'][_0x45865d(0x17a)]=_0x5144ce[_0x45865d(0x146)];}else _0x674710[testHubConstants[_0x45865d(0x1ab)]]={},process[_0x45865d(0x153)][_0x45865d(0x17a)]=_0x5144ce[_0x45865d(0x145)];}else process[_0x45865d(0x153)][_0x45865d(0x17a)]=_0x5144ce['oalMP'];if(testhubUtils[_0x45865d(0x189)](_0x387024)){const [_0x19977c,_0x549bb2]=testhubUtils[_0x45865d(0x1a9)](_0x576783[_0x45865d(0x187)]);if(_0x5144ce[_0x45865d(0x1aa)](_0x19977c,_0x549bb2)){const _0x347ae6={};_0x347ae6[_0x45865d(0x1a6)]=_0x19977c,_0x347ae6[_0x45865d(0x19d)]=_0x549bb2,_0x674710[testHubConstants[_0x45865d(0x17b)]]=_0x347ae6,process[_0x45865d(0x153)]['BROWSERSTACK_ACCESSIBILITY']=_0x5144ce['GjduA'];}else _0x674710[testHubConstants[_0x45865d(0x17b)]]={},process['env']['BROWSERSTACK_ACCESSIBILITY']=_0x5144ce['oalMP'];}else process[_0x45865d(0x153)]['BROWSERSTACK_ACCESSIBILITY']=_0x5144ce['oalMP'];return testhubUtils['setTestHubCommonMetaInfo'](_0x576783['data']),logger[_0x45865d(0x19b)](_0x45865d(0x1bf)+process['env'][_0x45865d(0x167)]),_0x674710;}static async[a90_0x204ada(0x19e)](_0x3e616c){const _0x1e9a75=a90_0x204ada,_0x40d2f4={'UnNUB':function(_0xf8c8e4,_0x5805a5){return _0xf8c8e4===_0x5805a5;},'GLMxs':_0x1e9a75(0x18e),'iDlJd':function(_0x59788e,_0x4d09b0){return _0x59788e===_0x4d09b0;},'YULrJ':_0x1e9a75(0x13f),'aliDh':_0x1e9a75(0x15b),'IQvXp':_0x1e9a75(0x17c),'svknY':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','TtEXi':'finished_metadata','lzskb':_0x1e9a75(0x18c),'vxuQI':function(_0x4e3bd2){return _0x4e3bd2();},'oxGSc':function(_0xc4e4e9,_0x1e475f,_0x1f222d,_0xcf48fe,_0x53ee3a,_0x12078b){return _0xc4e4e9(_0x1e475f,_0x1f222d,_0xcf48fe,_0x53ee3a,_0x12078b);},'IbnhN':_0x1e9a75(0x13e),'uRUUz':_0x1e9a75(0x19c),'FyoMd':_0x1e9a75(0x19a)};await this['processTraceZips'](),await PerformanceTester[_0x1e9a75(0x170)](PerformanceEvents[_0x1e9a75(0x1a7)],async()=>{const _0x4c74e4=_0x1e9a75;if(_0x40d2f4[_0x4c74e4(0x16d)](process[_0x4c74e4(0x153)][_0x4c74e4(0x1c1)],_0x40d2f4[_0x4c74e4(0x1b6)])||TestHubHandler[_0x4c74e4(0x1be)]||bsSetupHelper[_0x4c74e4(0x1b4)](process[_0x4c74e4(0x153)][testHubConstants[_0x4c74e4(0x141)][_0x4c74e4(0x143)]]))return;TestHubHandler[_0x4c74e4(0x1be)]=!![],await RequestQueueHandler[_0x4c74e4(0x190)]()['uploadPending'](),await SessionHandler[_0x4c74e4(0x159)]();if(_0x40d2f4['iDlJd'](process[_0x4c74e4(0x153)][testHubConstants[_0x4c74e4(0x141)][_0x4c74e4(0x143)]],_0x40d2f4[_0x4c74e4(0x17f)])||_0x40d2f4[_0x4c74e4(0x16d)](process[_0x4c74e4(0x153)][testHubConstants[_0x4c74e4(0x141)]['BROWSERSTACK_TESTHUB_UUID']],_0x40d2f4['YULrJ'])){logger[_0x4c74e4(0x196)](_0x40d2f4[_0x4c74e4(0x1ad)]);const _0x193a94={};return _0x193a94[_0x4c74e4(0x19f)]=_0x40d2f4[_0x4c74e4(0x156)],_0x193a94['message']=_0x40d2f4[_0x4c74e4(0x176)],_0x193a94;}const _0x26d0f4={'finished_at':new Date()['toISOString'](),'finished_metadata':[]};!!_0x3e616c&&_0x26d0f4[_0x40d2f4['TtEXi']][_0x4c74e4(0x16e)]({'reason':_0x40d2f4[_0x4c74e4(0x150)],'signal':_0x3e616c,'failure_data':''});const _0x2babb2={'headers':_0x40d2f4[_0x4c74e4(0x1ae)](getDefaultHeaders)};try{const _0x46921b=await _0x40d2f4[_0x4c74e4(0x14f)](nodeRequest,_0x40d2f4[_0x4c74e4(0x14b)],_0x4c74e4(0x16a)+process[_0x4c74e4(0x153)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']]+'/stop',_0x26d0f4,_0x2babb2,![]);if(_0x46921b['data']&&_0x46921b[_0x4c74e4(0x187)][_0x4c74e4(0x17c)]){const _0x19d6a2={};_0x19d6a2['message']=_0x46921b[_0x4c74e4(0x187)][_0x4c74e4(0x17c)];throw _0x19d6a2;}else{logger[_0x4c74e4(0x196)](_0x40d2f4[_0x4c74e4(0x184)]);const _0x31bf87={};return _0x31bf87[_0x4c74e4(0x19f)]=_0x40d2f4['FyoMd'],_0x31bf87['message']='',_0x31bf87;}}catch(_0x37cb6d){_0x37cb6d['response']?logger[_0x4c74e4(0x196)]('EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20'+_0x37cb6d[_0x4c74e4(0x191)]['status']+'\x20'+_0x37cb6d[_0x4c74e4(0x191)]['statusText']+'\x20'+JSON[_0x4c74e4(0x181)](_0x37cb6d['response'][_0x4c74e4(0x187)])):logger[_0x4c74e4(0x196)](_0x4c74e4(0x13d)+(_0x37cb6d['message']||_0x37cb6d));const _0x3ee2d9={};return _0x3ee2d9['status']=_0x40d2f4[_0x4c74e4(0x156)],_0x3ee2d9['message']=_0x37cb6d[_0x4c74e4(0x175)]||_0x37cb6d[_0x4c74e4(0x191)]?_0x37cb6d[_0x4c74e4(0x191)]['status']+':'+_0x37cb6d['response']['statusText']:_0x37cb6d,_0x3ee2d9;}})();}}module[a90_0x204ada(0x15f)]=TestHubHandler;
|
|
1
|
+
const a90_0x5df58c=a90_0x4b69;function a90_0x9ea8(){const _0x355037=['../../bin/playwright/reporter/test-details.js','START','processTraceZips','tVGIg','status','percy','password','includes','4PrYYHE','KvPmA','BROWSERSTACK_TESTHUB_UUID','isAccessibilityEnabled','iHbhc','cPSes','setTestObservabilityVariables','6963560DxvApM','eFVBo','stringify','TESTHUB_BUILD_API','evvpA','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','XZoRj','1682376OnPiIw','dTtuO','yjHQL','QoVyh','Testhub\x20started\x20with\x20id:\x20','PxGCZ','extractDataFromResponse','BROWSERSTACK_BUILD_RUN_IDENTIFIER','success','1758QtbAfp','basename','getAccessKey','buildHashedId','OBSERVABILITY','13425LQGdPM','getHostInfo','getConfig','util','../performance/constants','../performance/performance-tester.js','accessibilityOptions','response','ENV_VAR','GbcYN','../test-observability/requestQueueHandler.js','PtJHp','buildStopSent','allowScreenshot','Percy\x20is\x20not\x20supported\x20for\x20','ELOlD','projectName','wkHSj','BROWSERSTACK_RERUN','setupPercy','config','cwd','waitForBuildStatus','getUserName','BROWSERSTACK_ACCESSIBILITY','authToken','statusText','toISOString','env','10xnhDPX','central_scanner','uploadPending','1898019bDikIK','getAccessibilityOptions','launchBuild','finished_metadata','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','buildIdentifier','FouPf','VvstJ','EsdTo','setTestHubCommonMetaInfo','stopBuildUpstream\x20event\x20successful!','./utils.js','fqdvw','1EeeKDf','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER','BROWSERSTACK_TEST_OBSERVABILITY','auth','job_id','getCentralUser','20036388bFUJQL','QjWOR','error','message','NRBnj','false','api/v1/builds/','debug','checkAndSetupPercy','/stop','zBJuM','isBrowserstackInfra','format','getCiInfo','Error\x20while\x20waiting\x20for\x20events:\x20','PUT','logBuildError','exports','getGitMetaData','ACCESSIBILITY','PERCY_SUPPORTED_FRAMEWORKS','push','info','true','buildName','settings','getProductMap','2021781hpvyss','7PwAbJb','stop','QNnfF','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','data','8181855EtERca','setAccessibilityVariables','forEach','measureWrapper','PxDfM','POST','../../bin/playwright/reporter/pwUtils.js','BROWSERSTACK_TESTHUB_JWT','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','../test-observability/sessionHandler.js','null','STOP','getTraceFilePaths','isUndefined','jwt','BROWSERSTACK_CENTRAL_SCANNER_JWT','kcouf','HVoiM','zcwmw','allSettled','BS_TESTOPS_BUILD_COMPLETED'];a90_0x9ea8=function(){return _0x355037;};return a90_0x9ea8();}(function(_0x326398,_0x47df55){const _0x144ac9=a90_0x4b69,_0x4f20a0=_0x326398();while(!![]){try{const _0x47a4ec=-parseInt(_0x144ac9(0x115))/0x1*(parseInt(_0x144ac9(0xda))/0x2)+-parseInt(_0x144ac9(0x136))/0x3*(-parseInt(_0x144ac9(0xcc))/0x4)+-parseInt(_0x144ac9(0xe8))/0x5*(-parseInt(_0x144ac9(0xe3))/0x6)+-parseInt(_0x144ac9(0x137))/0x7*(parseInt(_0x144ac9(0xd3))/0x8)+-parseInt(_0x144ac9(0x108))/0x9+-parseInt(_0x144ac9(0x105))/0xa*(parseInt(_0x144ac9(0x13c))/0xb)+parseInt(_0x144ac9(0x11b))/0xc;if(_0x47a4ec===_0x47df55)break;else _0x4f20a0['push'](_0x4f20a0['shift']());}catch(_0x3b43c2){_0x4f20a0['push'](_0x4f20a0['shift']());}}}(a90_0x9ea8,0x71482));function a90_0x4b69(_0x38a63d,_0x5d6f7e){const _0x9ea85e=a90_0x9ea8();return a90_0x4b69=function(_0x4b6981,_0x44d371){_0x4b6981=_0x4b6981-0xbb;let _0x544085=_0x9ea85e[_0x4b6981];return _0x544085;},a90_0x4b69(_0x38a63d,_0x5d6f7e);}const bsSetupHelper=require('../helper'),path=require('path'),util=require(a90_0x5df58c(0xeb)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require('../test-observability/utils'),testhubUtils=require(a90_0x5df58c(0x113)),testHubConstants=require('./constants.js'),constants=require('../../bin/utils/constants.js'),RequestQueueHandler=require(a90_0x5df58c(0xf2)),logger=require('../logger')['winstonLogger'],SessionHandler=require(a90_0x5df58c(0x145)),PerformanceTester=require(a90_0x5df58c(0xed)),{TESTHUB_EVENTS:PerformanceEvents}=require(a90_0x5df58c(0xec)),TestDetails=require(a90_0x5df58c(0xc4)),{uploadTraceZip}=require(a90_0x5df58c(0x142)),OngoingEvents=new Set();let processedTraceZips=![];const addEvent=_0x31bea9=>{OngoingEvents['add'](_0x31bea9);},awaitAllEvents=async()=>{const _0x31a86a=a90_0x5df58c;return Promise[_0x31a86a(0xc2)](OngoingEvents);};class TestHubHandler{static ['buildStopSent']=![];static async[a90_0x5df58c(0x10a)](_0x3dcd1e,_0x3cefe1){const _0x58a92f=a90_0x5df58c,_0x1d0c44={'yjHQL':function(_0x2adc4,_0x2f47d1){return _0x2adc4||_0x2f47d1;},'dTtuO':function(_0x39befa,_0x4cbfc0){return _0x39befa||_0x4cbfc0;},'tVGIg':function(_0x4c25d8,_0x2b6e11){return _0x4c25d8===_0x2b6e11;},'iHbhc':function(_0x47612d){return _0x47612d();},'KvPmA':_0x58a92f(0x13a),'FouPf':_0x58a92f(0x120),'evvpA':_0x58a92f(0xd8),'HVoiM':function(_0x41bda6,_0x1e5c2b,_0xb4fc33,_0x1d40b0,_0x10be48){return _0x41bda6(_0x1e5c2b,_0xb4fc33,_0x1d40b0,_0x10be48);},'QNnfF':_0x58a92f(0x141),'GbcYN':function(_0x5c8a91,_0x770d66){return _0x5c8a91===_0x770d66;}};await PerformanceTester[_0x58a92f(0x13f)](PerformanceEvents[_0x58a92f(0xc5)],async()=>{const _0x487a48=_0x58a92f,_0x1a9867=Object['assign']({},_0x3cefe1['config'],{'root_dir_path':'','framework':_0x3cefe1['framework']}),_0x523890=bsSetupHelper[_0x487a48(0xff)](_0x1a9867),_0x3d8797=bsSetupHelper[_0x487a48(0xe5)](_0x1a9867),_0x22a974=_0x1d0c44[_0x487a48(0xdc)](_0x523890,'')+':'+_0x1d0c44[_0x487a48(0xdb)](_0x3d8797,''),_0x4600bd=testhubUtils[_0x487a48(0x135)](_0x1a9867);process[_0x487a48(0x104)]['BROWSERSTACK_PRODUCT_MAP']=JSON[_0x487a48(0xd5)](_0x4600bd);if(_0x1d0c44[_0x487a48(0xc7)](_0x22a974,':'))return _0x1d0c44[_0x487a48(0xd0)](isTestObservabilitySession)&&(logger[_0x487a48(0x122)](_0x1d0c44[_0x487a48(0xcd)]),process[_0x487a48(0x104)][_0x487a48(0xc3)]=_0x1d0c44[_0x487a48(0x10e)]),testhubUtils['isAccessibilityEnabled'](_0x1a9867)&&logger[_0x487a48(0x122)](_0x1d0c44[_0x487a48(0xd7)]),[null,null];try{const _0x101328=await this['generateBuildUpstreamData'](_0x1a9867,_0x3dcd1e),_0x43faae=this['getConfig'](_0x523890,_0x3d8797),_0x5f31de=await _0x1d0c44[_0x487a48(0xc0)](nodeRequest,_0x1d0c44[_0x487a48(0x139)],testHubConstants[_0x487a48(0xd6)],_0x101328,_0x43faae),_0x4a4830=this[_0x487a48(0xe0)](_0x1a9867,_0x5f31de,_0x43faae);return await this[_0x487a48(0x123)](_0x3cefe1,_0x3dcd1e),_0x4a4830;}catch(_0x2ba033){if(_0x1d0c44[_0x487a48(0xf1)](_0x2ba033[_0x487a48(0xe2)],![])){testhubUtils[_0x487a48(0x12b)](_0x2ba033);return;}}})();}static async[a90_0x5df58c(0xc6)](){const _0x31b54a=a90_0x5df58c,_0x2a4fc7={'WvFwc':function(_0x2de916,_0x11979b,_0x17f605){return _0x2de916(_0x11979b,_0x17f605);},'PxDfM':function(_0x14dbe3,_0x3b0a8a){return _0x14dbe3(_0x3b0a8a);},'PtJHp':function(_0xe2626a){return _0xe2626a();},'rUcBa':'All\x20trace\x20zip\x20send\x20events\x20complete'};if(processedTraceZips)return;const _0x2e6aad=TestDetails[_0x31b54a(0xbb)]();_0x2e6aad[_0x31b54a(0x13e)](({testUId:_0x5284eb,filePath:_0xd128d0})=>{const _0x4caa24=_0x31b54a;var _0x19169c=_0x2a4fc7['WvFwc'](uploadTraceZip,_0xd128d0,_0x5284eb);_0x2a4fc7[_0x4caa24(0x140)](addEvent,_0x19169c);});try{await _0x2a4fc7[_0x31b54a(0xf3)](awaitAllEvents),logger[_0x31b54a(0x122)](_0x2a4fc7['rUcBa']),processedTraceZips=!![];}catch(_0x30f6e2){logger['error'](_0x31b54a(0x129)+util[_0x31b54a(0x127)](_0x30f6e2));}}static async[a90_0x5df58c(0x123)](_0x63e1cd,_0x59b987){const _0x1aa3e1=a90_0x5df58c;if(constants[_0x1aa3e1(0x12f)][_0x1aa3e1(0xcb)](_0x59b987)){await _0x63e1cd[_0x1aa3e1(0xfb)]();return;}_0x63e1cd[_0x1aa3e1(0xfc)][_0x1aa3e1(0xc9)]&&logger[_0x1aa3e1(0x122)](_0x1aa3e1(0xf6)+_0x59b987+'\x20framework');}static[a90_0x5df58c(0x109)](_0xe93ad7){const _0x3ba7e9=a90_0x5df58c,_0x4d9f77={};_0x4d9f77[_0x3ba7e9(0x134)]=_0xe93ad7[_0x3ba7e9(0xee)];const _0x23da9e=_0x4d9f77;return _0x23da9e;}static[a90_0x5df58c(0xea)](_0xf64735,_0x474291){const _0x39124f=a90_0x5df58c,_0x4eed48={'NRBnj':function(_0x40626a,_0x3fc3a4){return _0x40626a(_0x3fc3a4);}},_0x5c01c7={};return _0x5c01c7['username']=_0xf64735,_0x5c01c7[_0x39124f(0xca)]=_0x474291,{'auth':_0x5c01c7,'headers':_0x4eed48[_0x39124f(0x11f)](getDefaultHeaders,![])};}static async['generateBuildUpstreamData'](_0x50bf55,_0x920378){const _0x5d47e0=a90_0x5df58c,_0xc31dae={'XZoRj':function(_0xc1d145,_0x5aa513){return _0xc1d145(_0x5aa513);}},_0x3de445={'project_name':_0x50bf55[_0x5d47e0(0xf8)]||'','name':_0x50bf55[_0x5d47e0(0x133)]||path[_0x5d47e0(0xe4)](path['resolve'](process[_0x5d47e0(0xfd)]())),'build_identifier':_0x50bf55[_0x5d47e0(0x10d)],'description':_0x50bf55['buildDescription']||'','started_at':new Date()[_0x5d47e0(0x103)](),'tags':_0xc31dae[_0x5d47e0(0xd9)](getCustomTags,_0x50bf55),'host_info':bsSetupHelper[_0x5d47e0(0xe9)](),'ci_info':bsSetupHelper[_0x5d47e0(0x128)](),'build_run_identifier':process[_0x5d47e0(0x104)][_0x5d47e0(0xe1)],'failed_tests_rerun':process[_0x5d47e0(0x104)][_0x5d47e0(0xfa)]||![],'version_control':await bsSetupHelper[_0x5d47e0(0x12d)](),'accessibility':this['getAccessibilityOptions'](_0x50bf55),'framework_details':testhubUtils['getFrameworkDetails'](_0x50bf55,_0x920378),'product_map':testhubUtils['getProductMap'](_0x50bf55),'browserstackAutomation':bsSetupHelper[_0x5d47e0(0x126)](),'grouping_identifier':process['env'][_0x5d47e0(0x116)]};if(bsSetupHelper[_0x5d47e0(0x11a)]()[_0x5d47e0(0x106)]||bsSetupHelper[_0x5d47e0(0x11a)]()['lcnc']){const _0xa450f6={};_0xa450f6[_0x5d47e0(0x119)]=process[_0x5d47e0(0x104)]['BROWSERSTACK_CENTRAL_SCANNER_JOBID'],_0xa450f6['token']=process[_0x5d47e0(0x104)][_0x5d47e0(0xbe)],_0x3de445[_0x5d47e0(0x106)]=_0xa450f6;}return _0x3de445;}static[a90_0x5df58c(0xe0)](_0x2badff,_0x471e84,_0x35ed66){const _0x23dbb5=a90_0x5df58c,_0xed53e0={'QjWOR':function(_0x23a822){return _0x23a822();},'eFVBo':function(_0x5a2803,_0x449775){return _0x5a2803&&_0x449775;},'cPSes':_0x23dbb5(0x132),'wkHSj':'false','ELOlD':function(_0x1fd10e,_0x5cdb3e){return _0x1fd10e&&_0x5cdb3e;}},_0x3d9d47={};if(_0xed53e0[_0x23dbb5(0x11c)](isTestObservabilitySession)){const [_0x5fd065,_0xbe1842,_0x44ba32]=testhubUtils[_0x23dbb5(0xd2)](_0x471e84[_0x23dbb5(0x13b)],_0x35ed66[_0x23dbb5(0x118)]);if(_0xed53e0[_0x23dbb5(0xd4)](_0x5fd065,_0xbe1842)){const _0x51dc3c={};_0x51dc3c[_0x23dbb5(0xbd)]=_0x5fd065,_0x51dc3c[_0x23dbb5(0xe6)]=_0xbe1842,_0x51dc3c[_0x23dbb5(0xf5)]=_0x44ba32,_0x3d9d47[testHubConstants[_0x23dbb5(0xe7)]]=_0x51dc3c,process[_0x23dbb5(0x104)][_0x23dbb5(0x117)]=_0xed53e0['cPSes'];}else _0x3d9d47[testHubConstants[_0x23dbb5(0xe7)]]={},process['env'][_0x23dbb5(0x117)]=_0xed53e0[_0x23dbb5(0xf9)];}else process['env'][_0x23dbb5(0x117)]=_0xed53e0['wkHSj'];if(testhubUtils[_0x23dbb5(0xcf)](_0x2badff)){const [_0x59fdec,_0x2d4076]=testhubUtils[_0x23dbb5(0x13d)](_0x471e84[_0x23dbb5(0x13b)]);if(_0xed53e0[_0x23dbb5(0xf7)](_0x59fdec,_0x2d4076)){const _0x2ec2b7={};_0x2ec2b7[_0x23dbb5(0x101)]=_0x59fdec,_0x2ec2b7[_0x23dbb5(0xe6)]=_0x2d4076,_0x3d9d47[testHubConstants[_0x23dbb5(0x12e)]]=_0x2ec2b7,process[_0x23dbb5(0x104)]['BROWSERSTACK_ACCESSIBILITY']=_0xed53e0[_0x23dbb5(0xd1)];}else _0x3d9d47[testHubConstants[_0x23dbb5(0x12e)]]={},process[_0x23dbb5(0x104)][_0x23dbb5(0x100)]=_0xed53e0['wkHSj'];}else process[_0x23dbb5(0x104)][_0x23dbb5(0x100)]=_0xed53e0[_0x23dbb5(0xf9)];return testhubUtils[_0x23dbb5(0x111)](_0x471e84['data']),logger[_0x23dbb5(0x131)](_0x23dbb5(0xde)+process[_0x23dbb5(0x104)][_0x23dbb5(0xce)]),_0x3d9d47;}static async[a90_0x5df58c(0x138)](_0x12dd61){const _0x2e696b=a90_0x5df58c,_0x40b6ce={'VvstJ':function(_0x2d1114,_0x2c5986){return _0x2d1114===_0x2c5986;},'EsdTo':_0x2e696b(0x120),'QoVyh':_0x2e696b(0x146),'zcwmw':_0x2e696b(0x144),'fqdvw':'error','pfMPk':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','oRBdd':_0x2e696b(0x10b),'kcouf':'user_killed','mcUCG':function(_0x23d004){return _0x23d004();},'CrFcI':function(_0x530dc2,_0x4a3e2b,_0x58bd39,_0x1e6045,_0x4a0ef4,_0x10418b){return _0x530dc2(_0x4a3e2b,_0x58bd39,_0x1e6045,_0x4a0ef4,_0x10418b);},'PxGCZ':_0x2e696b(0x12a),'zBJuM':_0x2e696b(0x112),'DyciT':_0x2e696b(0xe2)};await this[_0x2e696b(0xc6)](),await PerformanceTester[_0x2e696b(0x13f)](PerformanceEvents[_0x2e696b(0x147)],async()=>{const _0x29f8a4=_0x2e696b;if(_0x40b6ce[_0x29f8a4(0x10f)](process[_0x29f8a4(0x104)]['BS_TESTOPS_BUILD_COMPLETED'],_0x40b6ce[_0x29f8a4(0x110)])||TestHubHandler[_0x29f8a4(0xf4)]||bsSetupHelper[_0x29f8a4(0xbc)](process[_0x29f8a4(0x104)][testHubConstants[_0x29f8a4(0xf0)]['BROWSERSTACK_TESTHUB_JWT']]))return;TestHubHandler[_0x29f8a4(0xf4)]=!![],await RequestQueueHandler['getInstance']()[_0x29f8a4(0x107)](),await SessionHandler[_0x29f8a4(0xfe)]();if(_0x40b6ce[_0x29f8a4(0x10f)](process['env'][testHubConstants[_0x29f8a4(0xf0)][_0x29f8a4(0x143)]],_0x40b6ce[_0x29f8a4(0xdd)])||_0x40b6ce['VvstJ'](process[_0x29f8a4(0x104)][testHubConstants[_0x29f8a4(0xf0)][_0x29f8a4(0xce)]],_0x40b6ce[_0x29f8a4(0xdd)])){logger[_0x29f8a4(0x122)](_0x40b6ce[_0x29f8a4(0xc1)]);const _0x3947c7={};return _0x3947c7[_0x29f8a4(0xc8)]=_0x40b6ce[_0x29f8a4(0x114)],_0x3947c7[_0x29f8a4(0x11e)]=_0x40b6ce['pfMPk'],_0x3947c7;}const _0x4037b5={'finished_at':new Date()[_0x29f8a4(0x103)](),'finished_metadata':[]};!!_0x12dd61&&_0x4037b5[_0x40b6ce['oRBdd']][_0x29f8a4(0x130)]({'reason':_0x40b6ce[_0x29f8a4(0xbf)],'signal':_0x12dd61,'failure_data':''});const _0x566bae={'headers':_0x40b6ce['mcUCG'](getDefaultHeaders)};try{const _0x498b4f=await _0x40b6ce['CrFcI'](nodeRequest,_0x40b6ce[_0x29f8a4(0xdf)],_0x29f8a4(0x121)+process['env'][testHubConstants[_0x29f8a4(0xf0)]['BROWSERSTACK_TESTHUB_UUID']]+_0x29f8a4(0x124),_0x4037b5,_0x566bae,![]);if(_0x498b4f[_0x29f8a4(0x13b)]&&_0x498b4f[_0x29f8a4(0x13b)][_0x29f8a4(0x11d)]){const _0x173639={};_0x173639[_0x29f8a4(0x11e)]=_0x498b4f[_0x29f8a4(0x13b)][_0x29f8a4(0x11d)];throw _0x173639;}else{logger[_0x29f8a4(0x122)](_0x40b6ce[_0x29f8a4(0x125)]);const _0x3bc622={};return _0x3bc622[_0x29f8a4(0xc8)]=_0x40b6ce['DyciT'],_0x3bc622['message']='',_0x3bc622;}}catch(_0x5c6f26){_0x5c6f26['response']?logger[_0x29f8a4(0x122)]('EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20'+_0x5c6f26['response']['status']+'\x20'+_0x5c6f26[_0x29f8a4(0xef)][_0x29f8a4(0x102)]+'\x20'+JSON[_0x29f8a4(0xd5)](_0x5c6f26[_0x29f8a4(0xef)][_0x29f8a4(0x13b)])):logger['debug'](_0x29f8a4(0x10c)+(_0x5c6f26[_0x29f8a4(0x11e)]||_0x5c6f26));const _0x3bec61={};return _0x3bec61[_0x29f8a4(0xc8)]=_0x40b6ce[_0x29f8a4(0x114)],_0x3bec61[_0x29f8a4(0x11e)]=_0x5c6f26[_0x29f8a4(0x11e)]||_0x5c6f26[_0x29f8a4(0xef)]?_0x5c6f26[_0x29f8a4(0xef)]['status']+':'+_0x5c6f26[_0x29f8a4(0xef)][_0x29f8a4(0x102)]:_0x5c6f26,_0x3bec61;}})();}}module[a90_0x5df58c(0x12c)]=TestHubHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a91_0x2ec1(){const _0x1cc55a=['toJson','tags','false','1vtyHyy','checkAccessibilityPlatformConfig','../helper','password','scannerVersion','join','includes','\x20Build\x20creation\x20failed','jwt','uXazG','ACCESS_DENIED','744906JjjMML','HookRunFinished','getCurrentTestData','env','FFkqw','mknUe','cjYBS','dbdLQ','[OBSERVABILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','../globals.js','kTRnk','CBTSessionCreated','VfahZ','WiPlK','XhhSR','true','kMNWN','1127775RIKGYc','JEST','etFiE','Gvmco','errors','BROWSERSTACK_TESTHUB_UUID:\x20','ljaxS','119iNyBaF','titlePath','FlssN','xozvb','fzDjE','wyzHf','RXkFX','HookRunStarted','value','byvln','BROWSERSTACK_TEST_ACCESSIBILITY_YML','setCurrentTestData','UulUs','DEPRECATED','BS_TESTOPS_BUILD_COMPLETED','wZDgW','INVALID_CREDENTIALS','EVpfP','winstonLogger','psvKQ','lyetQ','rKhva','app','shouldScanTestForAccessibility','logBuildError','BROWSERSTACK_ACCESSIBILITY','getCentralUser','oppqh','CUCUMBER','qxyuX','1|3|5|4|0|2','build_hashed_id','4|0|2|6|5|3|1','isBrowserstackInfra','Lmccp','1|2|4|3|0','getTestData','success','ERROR','30DcKHBG','commandsToWrap','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','BS_TESTOPS_JWT','CREDENTIALS_FOR_CRASH_REPORTING','cvooF','BS_A11Y_JWT','136504nGoilX','TzFeb','2225241cbZhVI','accessibilityPlatform','setTestHubCommonMetaInfo','handleErrorForAccessibility','LogCreated','52dLJXOD','rtTYE','getProductMap','YpbQt','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','allow_screenshots','keys','parseFromJson','4112537AsgxvZ','getFrameworkDetails','EVsIr','stringify','ZBFaR','qxqOT','../logger','uuid','../../bin/playwright/reporter/test-details.js','shouldProcessEventForTesthub','isUndefined','TestRunStarted','ZHlwi','LwjGt','isRunning','ACCESSIBILITY','toString','NYbuX','username','isPercyBuild','setTestData','LKmlc','../test-observability/utils','BS_TESTOPS_ALLOW_SCREENSHOTS','isAccessibilityEnabled','315300cPsJVA','uploadEventData','null','setPercyFlag','appendTesthubParams','name','toUpperCase','../test-observability/constants.js','GMACt','test_run','BROWSERSTACK_TESTHUB_JWT','YEBHC','BROWSERSTACK_PERCY','LVZWE','GtVHr','PLAYWRIGHT','scripts','BROWSERSTACK_TESTHUB_UUID','percy','getGlobal','capabilities','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','length','scopes','psaiy','command','LyexY','javascript','observability','split','parse','error','MOCHA','60798JrzVIS','isTrue','assign','shLHW','oUWoq','commands','info','wuiua','handleErrorForObservability','key','options','accessibility','bstackA11yShouldScan','isAccessibilityPlatform','FIdUJ'];a91_0x2ec1=function(){return _0x1cc55a;};return a91_0x2ec1();}const a91_0x8462e6=a91_0x1092;(function(_0x1f39e3,_0x5969d4){const _0x28f680=a91_0x1092,_0x314f69=_0x1f39e3();while(!![]){try{const _0x2b9979=parseInt(_0x28f680(0x1a6))/0x1*(parseInt(_0x28f680(0x1b1))/0x2)+-parseInt(_0x28f680(0x194))/0x3*(-parseInt(_0x28f680(0x152))/0x4)+parseInt(_0x28f680(0x1c2))/0x5+-parseInt(_0x28f680(0x173))/0x6+-parseInt(_0x28f680(0x1c9))/0x7*(-parseInt(_0x28f680(0x14b))/0x8)+parseInt(_0x28f680(0x14d))/0x9+parseInt(_0x28f680(0x144))/0xa*(-parseInt(_0x28f680(0x15a))/0xb);if(_0x2b9979===_0x5969d4)break;else _0x314f69['push'](_0x314f69['shift']());}catch(_0x347c6d){_0x314f69['push'](_0x314f69['shift']());}}}(a91_0x2ec1,0x36d7b));function a91_0x1092(_0x316a2e,_0x1b0aab){const _0x2ec1a3=a91_0x2ec1();return a91_0x1092=function(_0x10927f,_0x9d54bd){_0x10927f=_0x10927f-0x121;let _0x5c517d=_0x2ec1a3[_0x10927f];return _0x5c517d;},a91_0x1092(_0x316a2e,_0x1b0aab);}const bsSetupHelper=require(a91_0x8462e6(0x1a8)),{isTestObservabilitySession,getFrameworkVersion}=require(a91_0x8462e6(0x170)),accessibilityHelper=require('../accessibility-automation/helper'),logger=require(a91_0x8462e6(0x160))[a91_0x8462e6(0x12f)],{nestedKeyValue}=require('../helper.js'),scripts=require('../accessibility-automation/scripts.js'),globals=require(a91_0x8462e6(0x1ba)),testHubConstants=require('./constants.js'),PWTestDetails=require(a91_0x8462e6(0x162)),JestTestDetails=require('../../bin/jest/test-observability/test-details.js'),{FRAMEWORKS}=require(a91_0x8462e6(0x17a)),{isTurboScaleSession}=require('../ats/helper');let testData={};exports[a91_0x8462e6(0x154)]=_0x516499=>{const _0x2f14ce=a91_0x8462e6,_0x3fae64={'fzDjE':function(_0x2c441a){return _0x2c441a();},'uWmlN':function(_0x2eee8a,_0x38fce5){return _0x2eee8a(_0x38fce5);}};let _0x5c9eb0=![],_0x30e321=![];if(bsSetupHelper[_0x2f14ce(0x13e)]()&&_0x516499[_0x2f14ce(0x133)])_0x30e321=!![];else bsSetupHelper[_0x2f14ce(0x13e)]()&&(_0x5c9eb0=!![]);return Object[_0x2f14ce(0x196)]({'observability':_0x3fae64[_0x2f14ce(0x121)](isTestObservabilitySession),'accessibility':exports['isAccessibilityEnabled'](_0x516499),'percy':_0x516499['percy']||![],'automate':_0x5c9eb0,'app_automate':_0x30e321,'turboscale':_0x3fae64['uWmlN'](isTurboScaleSession,_0x516499)},bsSetupHelper[_0x2f14ce(0x137)]());},exports[a91_0x8462e6(0x15b)]=(_0x597230,_0x1c6db5)=>{const _0x20f501=a91_0x8462e6,_0x1ecb72={'kTRnk':function(_0x4796b9,_0x2ea994){return _0x4796b9(_0x2ea994);},'wuiua':_0x20f501(0x18e)};return{'frameworkName':_0x1c6db5,'frameworkVersion':_0x1ecb72[_0x20f501(0x1bb)](getFrameworkVersion,_0x1c6db5),'sdkVersion':bsSetupHelper['getAgentVersion'](),'language':_0x1ecb72[_0x20f501(0x19b)],'testFramework':bsSetupHelper['getTestFrameworkDetails'](_0x597230,_0x1c6db5)};},exports[a91_0x8462e6(0x176)]=_0x4d489e=>{const _0x73d91c=a91_0x8462e6,_0x530772={};_0x530772['kOVLt']=_0x73d91c(0x1a5),_0x530772['wyzHf']=_0x73d91c(0x1c0);const _0x112921=_0x530772;process[_0x73d91c(0x1b4)]['BROWSERSTACK_PERCY']=_0x112921['kOVLt'],bsSetupHelper['isTrue'](_0x4d489e['config'][_0x73d91c(0x185)])&&(!_0x4d489e[_0x73d91c(0x185)]||!_0x4d489e[_0x73d91c(0x185)][_0x73d91c(0x168)]())&&(process[_0x73d91c(0x1b4)][_0x73d91c(0x17f)]=_0x112921[_0x73d91c(0x122)]);},exports[a91_0x8462e6(0x16d)]=()=>{const _0x4fc112=a91_0x8462e6;return bsSetupHelper[_0x4fc112(0x195)](process['env']['BROWSERSTACK_PERCY']);},exports[a91_0x8462e6(0x172)]=(_0x283bf7={})=>{const _0x3cdb51=a91_0x8462e6,_0x26dfef={};_0x26dfef['YEBHC']=function(_0x58dae3,_0x3e1885){return _0x58dae3!==_0x3e1885;},_0x26dfef[_0x3cdb51(0x13a)]=function(_0x1ad1f4,_0x4b1d10){return _0x1ad1f4===_0x4b1d10;},_0x26dfef[_0x3cdb51(0x167)]=_0x3cdb51(0x1c0),_0x26dfef[_0x3cdb51(0x1af)]=function(_0x26e8f2,_0x2e4727){return _0x26e8f2>_0x2e4727;};const _0x1e576d=_0x26dfef;if(_0x1e576d[_0x3cdb51(0x17e)](process[_0x3cdb51(0x1b4)]['BROWSERSTACK_ACCESSIBILITY'],undefined))return bsSetupHelper[_0x3cdb51(0x195)](process[_0x3cdb51(0x1b4)][_0x3cdb51(0x136)]);let _0x192e5e=_0x1e576d[_0x3cdb51(0x13a)](process[_0x3cdb51(0x1b4)][_0x3cdb51(0x127)],_0x1e576d[_0x3cdb51(0x167)]);return _0x1e576d['uXazG'](Object[_0x3cdb51(0x158)](_0x283bf7)[_0x3cdb51(0x189)],0x0)&&(process[_0x3cdb51(0x1b4)][_0x3cdb51(0x188)]=accessibilityHelper[_0x3cdb51(0x1a7)](_0x283bf7)),_0x192e5e=_0x192e5e||_0x1e576d[_0x3cdb51(0x13a)](process['env'][_0x3cdb51(0x188)],_0x1e576d[_0x3cdb51(0x167)]),_0x192e5e;},exports['setTestObservabilityVariables']=(_0x55dcd8,_0x5ec8cb)=>{const _0x52d87b=a91_0x8462e6,_0x256fa1={'KZDPD':function(_0xd6ae6){return _0xd6ae6();},'rtTYE':_0x52d87b(0x13b),'slSaV':_0x52d87b(0x1c0),'XghcS':function(_0x45e817,_0x18cd4a,_0x6112a6){return _0x45e817(_0x18cd4a,_0x6112a6);},'EVpfP':_0x52d87b(0x18f),'YpbQt':_0x52d87b(0x19e)};if(!_0x55dcd8||!_0x55dcd8[_0x52d87b(0x18f)])return exports['handleErrorForObservability'](),[null,null,null];if(!_0x55dcd8[_0x52d87b(0x18f)][_0x52d87b(0x142)])return exports[_0x52d87b(0x19c)](_0x55dcd8['observability']),[null,null,null];if(_0x256fa1['KZDPD'](isTestObservabilitySession)){const _0x38821c=_0x256fa1[_0x52d87b(0x153)][_0x52d87b(0x190)]('|');let _0x56dc0f=0x0;while(!![]){switch(_0x38821c[_0x56dc0f++]){case'0':logger['debug'](_0x52d87b(0x1b9)+_0x55dcd8['build_hashed_id']);continue;case'1':process[_0x52d87b(0x1b4)][_0x52d87b(0x12b)]=_0x256fa1['slSaV'];continue;case'2':return[_0x55dcd8[_0x52d87b(0x1ae)],_0x55dcd8[_0x52d87b(0x13c)],process[_0x52d87b(0x1b4)][_0x52d87b(0x171)]];case'3':if(_0x55dcd8[_0x52d87b(0x1ae)]){process[_0x52d87b(0x1b4)][_0x52d87b(0x147)]=_0x55dcd8[_0x52d87b(0x1ae)];const _0x1b853a={};_0x1b853a[_0x52d87b(0x16c)]=_0x5ec8cb[_0x52d87b(0x16c)],_0x1b853a[_0x52d87b(0x1a9)]=_0x5ec8cb[_0x52d87b(0x1a9)],process[_0x52d87b(0x1b4)][_0x52d87b(0x148)]=JSON[_0x52d87b(0x15d)](_0x1b853a);}continue;case'4':_0x256fa1['XghcS'](nestedKeyValue,_0x55dcd8,[_0x256fa1[_0x52d87b(0x12e)],_0x256fa1[_0x52d87b(0x155)]])&&(process[_0x52d87b(0x1b4)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x55dcd8['observability'][_0x52d87b(0x19e)][_0x52d87b(0x157)][_0x52d87b(0x16a)]());continue;case'5':_0x55dcd8[_0x52d87b(0x13c)]&&(process[_0x52d87b(0x1b4)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x55dcd8['build_hashed_id']);continue;}break;}}return[null,null,null];},exports['setAccessibilityVariables']=_0x33d85b=>{const _0x2bafa8=a91_0x8462e6,_0x1f03b7={'shLHW':function(_0x134320,_0x278e9d,_0x2028fe){return _0x134320(_0x278e9d,_0x2028fe);},'LKmlc':_0x2bafa8(0x19f),'FlssN':_0x2bafa8(0x19e),'LyexY':function(_0x661f69,_0x17c486,_0x4357dd,_0x31b94d){return _0x661f69(_0x17c486,_0x4357dd,_0x31b94d);},'psvKQ':_0x2bafa8(0x178),'oppqh':_0x2bafa8(0x125),'hkdxQ':function(_0x160e93,_0x32ebfb,_0x427b76,_0x34f591){return _0x160e93(_0x32ebfb,_0x427b76,_0x34f591);},'GtVHr':_0x2bafa8(0x18c),'sRBgE':_0x2bafa8(0x199)};if(!_0x33d85b['accessibility'])return exports[_0x2bafa8(0x150)](),[null,null];if(!_0x33d85b[_0x2bafa8(0x19f)][_0x2bafa8(0x142)])return exports[_0x2bafa8(0x150)](_0x33d85b[_0x2bafa8(0x19f)]),[null,null];if(_0x1f03b7[_0x2bafa8(0x197)](nestedKeyValue,_0x33d85b,[_0x1f03b7[_0x2bafa8(0x16f)],_0x1f03b7[_0x2bafa8(0x1cb)]])){const {accessibilityToken:_0xe7f898,scannerVersion:_0x3d0e01}=_0x1f03b7[_0x2bafa8(0x18d)](jsonifyAccessibilityArray,_0x33d85b[_0x2bafa8(0x19f)][_0x2bafa8(0x19e)][_0x2bafa8(0x187)],_0x1f03b7[_0x2bafa8(0x130)],_0x1f03b7[_0x2bafa8(0x138)]),_0x15bd0e={'scripts':_0x1f03b7['hkdxQ'](jsonifyAccessibilityArray,_0x33d85b[_0x2bafa8(0x19f)][_0x2bafa8(0x19e)][_0x2bafa8(0x183)],_0x1f03b7[_0x2bafa8(0x130)],_0x1f03b7[_0x2bafa8(0x181)])};_0x15bd0e[_0x1f03b7['sRBgE']]=_0x33d85b[_0x2bafa8(0x19f)][_0x2bafa8(0x19e)][_0x2bafa8(0x145)][_0x2bafa8(0x199)],scripts[_0x2bafa8(0x159)](_0x15bd0e),scripts[_0x2bafa8(0x1a3)]();let _0x150afb=process[_0x2bafa8(0x1b4)][_0x2bafa8(0x156)];return _0x150afb=!!_0x150afb?JSON[_0x2bafa8(0x191)](_0x150afb):{},_0x150afb[_0x2bafa8(0x1aa)]=_0x3d0e01,process[_0x2bafa8(0x1b4)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x150afb),process[_0x2bafa8(0x1b4)][_0x2bafa8(0x14a)]=_0xe7f898,logger['debug'](_0x2bafa8(0x146)+_0x33d85b['build_hashed_id']),[_0xe7f898,_0x33d85b[_0x2bafa8(0x13c)]];}return[null,null];},exports['handleErrorForObservability']=_0x517b57=>{const _0x542a50=a91_0x8462e6,_0x491d47={};_0x491d47['TzFeb']=_0x542a50(0x13d),_0x491d47[_0x542a50(0x123)]=_0x542a50(0x175),_0x491d47[_0x542a50(0x15c)]=_0x542a50(0x1a5);const _0x40f482=_0x491d47,_0x309e5e=_0x40f482[_0x542a50(0x14c)][_0x542a50(0x190)]('|');let _0x12ab86=0x0;while(!![]){switch(_0x309e5e[_0x12ab86++]){case'0':process['env']['BROWSERSTACK_TESTHUB_JWT']=_0x40f482[_0x542a50(0x123)];continue;case'1':exports[_0x542a50(0x135)](_0x517b57,testHubConstants['OBSERVABILITY']);continue;case'2':process[_0x542a50(0x1b4)][_0x542a50(0x12b)]=_0x40f482['EVsIr'];continue;case'3':process[_0x542a50(0x1b4)][_0x542a50(0x171)]=_0x40f482['RXkFX'];continue;case'4':process[_0x542a50(0x1b4)][_0x542a50(0x184)]=_0x40f482['RXkFX'];continue;case'5':process[_0x542a50(0x1b4)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x40f482['RXkFX'];continue;case'6':process['env'][_0x542a50(0x147)]=_0x40f482['RXkFX'];continue;}break;}},exports[a91_0x8462e6(0x150)]=_0x45288d=>{const _0x3f9442=a91_0x8462e6,_0x29fcc5={};_0x29fcc5[_0x3f9442(0x132)]=_0x3f9442(0x140),_0x29fcc5[_0x3f9442(0x1bf)]=_0x3f9442(0x175),_0x29fcc5[_0x3f9442(0x1b8)]=_0x3f9442(0x1a5);const _0x4d6757=_0x29fcc5,_0x12e379=_0x4d6757['rKhva'][_0x3f9442(0x190)]('|');let _0x27d28b=0x0;while(!![]){switch(_0x12e379[_0x27d28b++]){case'0':exports['logBuildError'](_0x45288d,testHubConstants[_0x3f9442(0x169)]);continue;case'1':process[_0x3f9442(0x1b4)][_0x3f9442(0x184)]=_0x4d6757[_0x3f9442(0x1bf)];continue;case'2':process[_0x3f9442(0x1b4)]['BROWSERSTACK_TESTHUB_JWT']=_0x4d6757[_0x3f9442(0x1bf)];continue;case'3':process[_0x3f9442(0x1b4)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=_0x4d6757[_0x3f9442(0x1b8)];continue;case'4':process[_0x3f9442(0x1b4)][_0x3f9442(0x127)]=_0x4d6757['dbdLQ'];continue;}break;}},exports['logBuildError']=(_0x41e35e,_0x123e60='')=>{const _0x3c8752=a91_0x8462e6,_0x1054a2={};_0x1054a2[_0x3c8752(0x1b5)]=function(_0x5307ae,_0xc5c89a){return _0x5307ae===_0xc5c89a;};const _0xfc90f9=_0x1054a2;if(_0xfc90f9[_0x3c8752(0x1b5)](_0x41e35e,undefined)){logger[_0x3c8752(0x192)](_0x123e60[_0x3c8752(0x179)]()+_0x3c8752(0x1ad));return;}for(const _0x5eb3fb of _0x41e35e[_0x3c8752(0x1c6)]){const _0x252ec1=_0x5eb3fb[_0x3c8752(0x19d)],_0x3ce0d5=_0x5eb3fb['message'];if(_0x3ce0d5)switch(_0x252ec1){case testHubConstants['ERROR'][_0x3c8752(0x12d)]:logger[_0x3c8752(0x192)](_0x3ce0d5);break;case testHubConstants[_0x3c8752(0x143)][_0x3c8752(0x1b0)]:logger[_0x3c8752(0x19a)](_0x3ce0d5);break;case testHubConstants[_0x3c8752(0x143)][_0x3c8752(0x12a)]:logger[_0x3c8752(0x192)](_0x3ce0d5);break;default:logger[_0x3c8752(0x192)](_0x3ce0d5);}}};const jsonifyAccessibilityArray=(_0x363d48,_0x241a81,_0x4b083f)=>{const _0x184682={};return _0x363d48['forEach'](_0x4191a2=>{_0x184682[_0x4191a2[_0x241a81]]=_0x4191a2[_0x4b083f];}),_0x184682;};exports[a91_0x8462e6(0x14f)]=_0x3fadc3=>{const _0x189e50=a91_0x8462e6;_0x3fadc3[_0x189e50(0x1ae)]&&(process[_0x189e50(0x1b4)][_0x189e50(0x17d)]=_0x3fadc3[_0x189e50(0x1ae)]);_0x3fadc3['build_hashed_id']&&(process[_0x189e50(0x1b4)][_0x189e50(0x184)]=_0x3fadc3[_0x189e50(0x13c)],logger['debug'](_0x189e50(0x1c7)+_0x3fadc3[_0x189e50(0x13c)]));;},exports[a91_0x8462e6(0x163)]=(_0x1b6c05='',_0x9116be='')=>{const _0x31fc9a=a91_0x8462e6,_0x388b59={'qxqOT':function(_0x462147){return _0x462147();},'etFiE':function(_0x434921,_0x3403f0){return _0x434921===_0x3403f0;},'NYbuX':_0x31fc9a(0x174),'oUWoq':_0x31fc9a(0x151),'lyetQ':_0x31fc9a(0x1bc),'LVZWE':function(_0x4be0f9){return _0x4be0f9();},'mvxTH':_0x31fc9a(0x124),'byvln':_0x31fc9a(0x1b2),'psaiy':function(_0x1e9c1d){return _0x1e9c1d();}};if(exports['isPercyBuild']()&&!exports['isAccessibilityEnabled']()&&!_0x388b59[_0x31fc9a(0x15f)](isTestObservabilitySession)){if(_0x388b59[_0x31fc9a(0x1c4)](_0x9116be,_0x388b59[_0x31fc9a(0x16b)]))return![];if([_0x388b59[_0x31fc9a(0x198)],_0x388b59[_0x31fc9a(0x131)]]['includes'](_0x1b6c05))return![];return!![];}if(exports[_0x31fc9a(0x172)]()&&!_0x388b59[_0x31fc9a(0x180)](isTestObservabilitySession)){if([_0x388b59['mvxTH'],_0x388b59[_0x31fc9a(0x126)],_0x388b59[_0x31fc9a(0x198)]]['includes'](_0x1b6c05))return![];return!![];}return exports[_0x31fc9a(0x172)]()||_0x388b59[_0x31fc9a(0x18b)](isTestObservabilitySession)||exports['isPercyBuild']();},exports[a91_0x8462e6(0x177)]=(_0x239128,_0x31ee00,_0x218e07='',_0x13749c)=>{const _0x2deb76=a91_0x8462e6,_0x4697db={};_0x4697db[_0x2deb76(0x1be)]='HookRunStarted',_0x4697db['Lmccp']=_0x2deb76(0x1b2),_0x4697db[_0x2deb76(0x15e)]=function(_0x51e63b,_0x3efb71){return _0x51e63b===_0x3efb71;},_0x4697db[_0x2deb76(0x149)]=_0x2deb76(0x1a0),_0x4697db[_0x2deb76(0x1c8)]=_0x2deb76(0x1a1),_0x4697db['xozvb']=_0x2deb76(0x19f),_0x4697db[_0x2deb76(0x1c1)]=function(_0x1a6dcb,_0x4d9fbc){return _0x1a6dcb&&_0x4d9fbc;},_0x4697db[_0x2deb76(0x129)]=function(_0x5f39f3,_0x1753d4){return _0x5f39f3===_0x1753d4;},_0x4697db['FIdUJ']=function(_0x1d72a0,_0x49ce4a){return _0x1d72a0+_0x49ce4a;},_0x4697db[_0x2deb76(0x12c)]=function(_0x59cf6a,_0x5ef986){return _0x59cf6a===_0x5ef986;},_0x4697db[_0x2deb76(0x1b7)]=_0x2deb76(0x165),_0x4697db[_0x2deb76(0x1b6)]=function(_0x33408c,_0x3b59b0){return _0x33408c===_0x3b59b0;},_0x4697db['VfahZ']=function(_0x18100e,_0xc7707a){return _0x18100e===_0xc7707a;},_0x4697db[_0x2deb76(0x166)]=function(_0x4903d4,_0x397bc4){return _0x4903d4&&_0x397bc4;},_0x4697db[_0x2deb76(0x17b)]='product_map';const _0x2a1073=_0x4697db;if(![_0x2a1073[_0x2deb76(0x1be)],_0x2a1073[_0x2deb76(0x13f)]][_0x2deb76(0x1ac)](_0x31ee00)&&exports['isAccessibilityEnabled']()){const _0x4db97e={};if(_0x2a1073[_0x2deb76(0x15e)](_0x13749c,FRAMEWORKS[_0x2deb76(0x193)])){const _0x5a6402=globals[_0x2deb76(0x186)](_0x2a1073[_0x2deb76(0x149)])||accessibilityHelper['shouldScanTestForAccessibility'](_0x218e07[_0x2deb76(0x1ca)](),!![]),_0x7af388=globals[_0x2deb76(0x186)](_0x2a1073['ljaxS']);_0x4db97e[_0x2a1073['xozvb']]=_0x2a1073[_0x2deb76(0x1c1)](_0x7af388,_0x5a6402);}if(_0x2a1073[_0x2deb76(0x129)](_0x13749c,FRAMEWORKS['JEST'])){const _0x40b0f6=_0x2a1073[_0x2deb76(0x1a2)](_0x2a1073['FIdUJ'](_0x239128[_0x2deb76(0x18a)][_0x2deb76(0x1ab)]('\x20'),'\x20'),_0x218e07['name']),_0x1a2f5b=globals['getGlobal'](_0x2a1073[_0x2deb76(0x149)])||accessibilityHelper[_0x2deb76(0x134)](_0x40b0f6,![]),_0x590b9a=browserStackGlobals[_0x2deb76(0x1a1)];_0x4db97e[_0x2a1073[_0x2deb76(0x1cc)]]=_0x2a1073[_0x2deb76(0x1c1)](_0x590b9a,_0x1a2f5b);}if(_0x2a1073[_0x2deb76(0x129)](_0x13749c,FRAMEWORKS[_0x2deb76(0x182)])){if(_0x2a1073[_0x2deb76(0x12c)](_0x31ee00,_0x2a1073[_0x2deb76(0x1b7)]))return;_0x4db97e[_0x2a1073['xozvb']]=PWTestDetails['getAccessibilityPlatformValidation'](_0x239128[_0x2deb76(0x161)]);}if(_0x2a1073[_0x2deb76(0x1b6)](_0x13749c,FRAMEWORKS['CODECEPT'])){const _0x2534d8=accessibilityHelper[_0x2deb76(0x134)](_0x218e07[_0x2deb76(0x1ca)](),!![]),_0x38e8d1=global[_0x2deb76(0x14e)]&&bsSetupHelper[_0x2deb76(0x13e)]();_0x4db97e[_0x2a1073[_0x2deb76(0x1cc)]]=_0x2a1073[_0x2deb76(0x1c1)](_0x38e8d1,_0x2534d8);}if(_0x2a1073[_0x2deb76(0x1bd)](_0x13749c,FRAMEWORKS[_0x2deb76(0x139)])){const _0x1a004b=accessibilityHelper['shouldScanTestForAccessibility'](null,![],_0x239128[_0x2deb76(0x1a4)]),_0x23dfe7=globals[_0x2deb76(0x186)](_0x2a1073['ljaxS']);_0x4db97e[_0x2a1073['xozvb']]=_0x2a1073['ZHlwi'](_0x23dfe7,_0x1a004b);}_0x239128[_0x2a1073['GMACt']]=_0x4db97e;}},exports[a91_0x8462e6(0x1b3)]=_0x5051a1=>{const _0x4873d0=a91_0x8462e6,_0x1abeb0={};_0x1abeb0[_0x4873d0(0x1c5)]=function(_0x4941d2,_0x4e6653){return _0x4941d2>_0x4e6653;};const _0x3b52cc=_0x1abeb0;let _0x132ff7={};if(_0x3b52cc[_0x4873d0(0x1c5)](Object['keys'](testData)['length'],0x0))return testData;_0x132ff7=JestTestDetails[_0x4873d0(0x141)]();if(_0x3b52cc['Gvmco'](Object['keys'](_0x132ff7)[_0x4873d0(0x189)],0x0))return _0x132ff7;return _0x132ff7;},exports[a91_0x8462e6(0x128)]=(_0x1d43d3,_0x2f364b={})=>{const _0x429fe5=a91_0x8462e6;if(bsSetupHelper[_0x429fe5(0x164)](_0x2f364b[_0x429fe5(0x17c)]))return;switch(_0x1d43d3){case FRAMEWORKS[_0x429fe5(0x193)]:testData=_0x2f364b[_0x429fe5(0x17c)];break;case FRAMEWORKS[_0x429fe5(0x1c3)]:JestTestDetails[_0x429fe5(0x16e)](_0x2f364b[_0x429fe5(0x17c)]);break;default:break;}};
|
|
1
|
+
const a91_0x3a8f8c=a91_0x5d7d;function a91_0x21c3(){const _0x11788e=['isRunning','titlePath','accessibility','itllg','CODECEPT','BROWSERSTACK_TESTHUB_UUID:\x20','dlWMq','yYpmN','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','xmsKC','BriNp','BROWSERSTACK_PERCY','observability','checkAccessibilityPlatformConfig','kTytR','false','Zxujn','isTrue','rhlUc','info','BS_TESTOPS_JWT','product_map','bstackA11yShouldScan','handleErrorForObservability','tJhnl','Expes','FsuVA','null','name','../test-observability/constants.js','scripts','setAccessibilityVariables','scannerVersion','ISZBH','password','BS_TESTOPS_BUILD_COMPLETED','12MOhDPA','lDsIr','../test-observability/utils','NAKPZ','setCurrentTestData','username','ryZMB','uuid','xjHJX','getCurrentTestData','BROWSERSTACK_TESTHUB_JWT','BgVqP','shouldScanTestForAccessibility','isPercyBuild','app','WzvWb','success','QKLCW','XEKdo','OSrjt','includes','shouldProcessEventForTesthub','aTWMh','setTestHubCommonMetaInfo','parse','isBrowserstackInfra','accessibilityPlatform','isAccessibilityPlatform','gbYtQ','../helper','uGpEA','appendTesthubParams','getGlobal','jaFoD','jwt','../ats/helper','options','zzdHY','5871zqMhlG','xvOJt','commandsToWrap','aaxuw','join','ERROR','NnVUq','../helper.js','getTestFrameworkDetails','handleErrorForAccessibility','POntS','debug','hejNs','ACCESSIBILITY','DvGiJ','BROWSERSTACK_TESTHUB_UUID','../logger','percy','LogCreated','tags','MOCHA','winstonLogger','JEST','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','3|2|1|5|0|4','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','message','ZBCJP','3|1|0|4|6|2|5','setTestObservabilityVariables','[OBSERVABILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','sELPw','zINOP','../accessibility-automation/scripts.js','getAccessibilityPlatformValidation','464527xLiitk','BS_TESTOPS_BUILD_HASHED_ID','1605821FmvKMW','assign','4216630JNepwa','BROWSERSTACK_TEST_ACCESSIBILITY_YML','CREDENTIALS_FOR_CRASH_REPORTING','1|2|4|3|0','capabilities','XkxbN','../../bin/jest/test-observability/test-details.js','getAgentVersion','../globals.js','true','getProductMap','logBuildError','vCljX','forEach','XEowF','SXTFN','stringify','error','env','INVALID_CREDENTIALS','length','CBTSessionCreated','keys','PLAYWRIGHT','ngLhA','OBSERVABILITY','7730aXkJZO','zzgBM','HookRunFinished','HylbY','CUCUMBER','\x20Build\x20creation\x20failed','build_hashed_id','xBFWX','xFNoZ','zzPGO','uploadEventData','setTestData','test_run','KjDJK','config','BROWSERSTACK_ACCESSIBILITY','BS_TESTOPS_ALLOW_SCREENSHOTS','636CJtfxY','xtKjl','toJson','RNcUb','LchEK','GZLDg','QvWWi','1664080JsHKWP','fAGae','wkxnh','CVGSh','errors','243864EGozza','../accessibility-automation/helper','split','toUpperCase','isAccessibilityEnabled','HookRunStarted','344KlBzac'];a91_0x21c3=function(){return _0x11788e;};return a91_0x21c3();}(function(_0x298c15,_0x18a92c){const _0x334a22=a91_0x5d7d,_0x36dd28=_0x298c15();while(!![]){try{const _0x4984fe=-parseInt(_0x334a22(0x169))/0x1+-parseInt(_0x334a22(0x198))/0x2*(-parseInt(_0x334a22(0x1f5))/0x3)+-parseInt(_0x334a22(0x1aa))/0x4*(-parseInt(_0x334a22(0x187))/0x5)+-parseInt(_0x334a22(0x1cf))/0x6*(parseInt(_0x334a22(0x16b))/0x7)+parseInt(_0x334a22(0x19f))/0x8+parseInt(_0x334a22(0x1a4))/0x9+parseInt(_0x334a22(0x16d))/0xa;if(_0x4984fe===_0x18a92c)break;else _0x36dd28['push'](_0x36dd28['shift']());}catch(_0x300b43){_0x36dd28['push'](_0x36dd28['shift']());}}}(a91_0x21c3,0x7750e));function a91_0x5d7d(_0x5d8f47,_0x2d03a0){const _0x21c3cb=a91_0x21c3();return a91_0x5d7d=function(_0x5d7d17,_0x4aebeb){_0x5d7d17=_0x5d7d17-0x15e;let _0x4eeab0=_0x21c3cb[_0x5d7d17];return _0x4eeab0;},a91_0x5d7d(_0x5d8f47,_0x2d03a0);}const bsSetupHelper=require(a91_0x3a8f8c(0x1ec)),{isTestObservabilitySession,getFrameworkVersion}=require(a91_0x3a8f8c(0x1d1)),accessibilityHelper=require(a91_0x3a8f8c(0x1a5)),logger=require(a91_0x3a8f8c(0x205))[a91_0x3a8f8c(0x20a)],{nestedKeyValue}=require(a91_0x3a8f8c(0x1fc)),scripts=require(a91_0x3a8f8c(0x167)),globals=require(a91_0x3a8f8c(0x175)),testHubConstants=require('./constants.js'),PWTestDetails=require('../../bin/playwright/reporter/test-details.js'),JestTestDetails=require(a91_0x3a8f8c(0x173)),{FRAMEWORKS}=require(a91_0x3a8f8c(0x1c8)),{isTurboScaleSession}=require(a91_0x3a8f8c(0x1f2));let testData={};exports[a91_0x3a8f8c(0x177)]=_0x2267ce=>{const _0x204712=a91_0x3a8f8c,_0x4c8458={'KjDJK':function(_0x3a7998){return _0x3a7998();},'XkxbN':function(_0x4b5661,_0x28e003){return _0x4b5661(_0x28e003);}};let _0x97c890=![],_0x5c40c3=![];if(bsSetupHelper['isBrowserstackInfra']()&&_0x2267ce[_0x204712(0x1dd)])_0x5c40c3=!![];else bsSetupHelper[_0x204712(0x1e8)]()&&(_0x97c890=!![]);return Object[_0x204712(0x16c)]({'observability':_0x4c8458[_0x204712(0x194)](isTestObservabilitySession),'accessibility':exports[_0x204712(0x1a8)](_0x2267ce),'percy':_0x2267ce[_0x204712(0x206)]||![],'automate':_0x97c890,'app_automate':_0x5c40c3,'turboscale':_0x4c8458[_0x204712(0x172)](isTurboScaleSession,_0x2267ce)},bsSetupHelper['getCentralUser']());},exports['getFrameworkDetails']=(_0x219551,_0x8ddc4a)=>{const _0x5e1141=a91_0x3a8f8c,_0x4a718a={'jaFoD':function(_0x31fd83,_0x56cbd3){return _0x31fd83(_0x56cbd3);},'PaJvq':'javascript'};return{'frameworkName':_0x8ddc4a,'frameworkVersion':_0x4a718a[_0x5e1141(0x1f0)](getFrameworkVersion,_0x8ddc4a),'sdkVersion':bsSetupHelper[_0x5e1141(0x174)](),'language':_0x4a718a['PaJvq'],'testFramework':bsSetupHelper[_0x5e1141(0x1fd)](_0x219551,_0x8ddc4a)};},exports['setPercyFlag']=_0x43d564=>{const _0xe6da3b=a91_0x3a8f8c,_0x22bba5={};_0x22bba5[_0xe6da3b(0x1a1)]=_0xe6da3b(0x1ba),_0x22bba5[_0xe6da3b(0x1ed)]=_0xe6da3b(0x176);const _0x43b52f=_0x22bba5;process[_0xe6da3b(0x17f)][_0xe6da3b(0x1b6)]=_0x43b52f['wkxnh'],bsSetupHelper[_0xe6da3b(0x1bc)](_0x43d564[_0xe6da3b(0x195)][_0xe6da3b(0x206)])&&(!_0x43d564[_0xe6da3b(0x206)]||!_0x43d564[_0xe6da3b(0x206)][_0xe6da3b(0x1ab)]())&&(process['env']['BROWSERSTACK_PERCY']=_0x43b52f[_0xe6da3b(0x1ed)]);},exports[a91_0x3a8f8c(0x1dc)]=()=>{const _0x56f753=a91_0x3a8f8c;return bsSetupHelper['isTrue'](process[_0x56f753(0x17f)][_0x56f753(0x1b6)]);},exports[a91_0x3a8f8c(0x1a8)]=(_0x7f57d6={})=>{const _0x4614c3=a91_0x3a8f8c,_0x40239d={};_0x40239d[_0x4614c3(0x185)]=function(_0x5a4d06,_0x2c9a44){return _0x5a4d06!==_0x2c9a44;},_0x40239d[_0x4614c3(0x19b)]=function(_0x231826,_0x4ec055){return _0x231826===_0x4ec055;},_0x40239d[_0x4614c3(0x201)]=_0x4614c3(0x176),_0x40239d[_0x4614c3(0x1b1)]=function(_0x5e3861,_0x37d107){return _0x5e3861>_0x37d107;},_0x40239d[_0x4614c3(0x1f8)]=function(_0x5c57ea,_0x36eeb9){return _0x5c57ea===_0x36eeb9;};const _0x2084a2=_0x40239d;if(_0x2084a2['ngLhA'](process['env'][_0x4614c3(0x196)],undefined))return bsSetupHelper['isTrue'](process[_0x4614c3(0x17f)][_0x4614c3(0x196)]);let _0x5482e1=_0x2084a2[_0x4614c3(0x19b)](process['env'][_0x4614c3(0x16e)],_0x2084a2[_0x4614c3(0x201)]);return _0x2084a2[_0x4614c3(0x1b1)](Object[_0x4614c3(0x183)](_0x7f57d6)[_0x4614c3(0x181)],0x0)&&(process[_0x4614c3(0x17f)][_0x4614c3(0x20c)]=accessibilityHelper[_0x4614c3(0x1b8)](_0x7f57d6)),_0x5482e1=_0x5482e1||_0x2084a2[_0x4614c3(0x1f8)](process[_0x4614c3(0x17f)][_0x4614c3(0x20c)],_0x2084a2['hejNs']),_0x5482e1;},exports[a91_0x3a8f8c(0x163)]=(_0x292595,_0x2219cc)=>{const _0x564f74=a91_0x3a8f8c,_0x1ad76b={'ZBCJP':function(_0x5dcbe8){return _0x5dcbe8();},'GZLDg':_0x564f74(0x15e),'XEowF':_0x564f74(0x176),'xBFWX':function(_0x502677,_0x57e827,_0x3182b1){return _0x502677(_0x57e827,_0x3182b1);},'WxdtZ':_0x564f74(0x1b7),'WzvWb':'options'};if(!_0x292595||!_0x292595['observability'])return exports['handleErrorForObservability'](),[null,null,null];if(!_0x292595[_0x564f74(0x1b7)][_0x564f74(0x1df)])return exports[_0x564f74(0x1c2)](_0x292595[_0x564f74(0x1b7)]),[null,null,null];if(_0x1ad76b[_0x564f74(0x161)](isTestObservabilitySession)){const _0x2b3997=_0x1ad76b[_0x564f74(0x19d)][_0x564f74(0x1a6)]('|');let _0xd3a4e1=0x0;while(!![]){switch(_0x2b3997[_0xd3a4e1++]){case'0':logger['debug'](_0x564f74(0x164)+_0x292595[_0x564f74(0x18d)]);continue;case'1':_0x292595['build_hashed_id']&&(process[_0x564f74(0x17f)][_0x564f74(0x16a)]=_0x292595[_0x564f74(0x18d)]);continue;case'2':if(_0x292595[_0x564f74(0x1f1)]){process['env'][_0x564f74(0x1bf)]=_0x292595['jwt'];const _0x21d17d={};_0x21d17d[_0x564f74(0x1d4)]=_0x2219cc['username'],_0x21d17d[_0x564f74(0x1cd)]=_0x2219cc['password'],process[_0x564f74(0x17f)][_0x564f74(0x16f)]=JSON[_0x564f74(0x17d)](_0x21d17d);}continue;case'3':process[_0x564f74(0x17f)][_0x564f74(0x1ce)]=_0x1ad76b[_0x564f74(0x17b)];continue;case'4':return[_0x292595[_0x564f74(0x1f1)],_0x292595[_0x564f74(0x18d)],process[_0x564f74(0x17f)][_0x564f74(0x197)]];case'5':_0x1ad76b[_0x564f74(0x18e)](nestedKeyValue,_0x292595,[_0x1ad76b['WxdtZ'],_0x1ad76b[_0x564f74(0x1de)]])&&(process[_0x564f74(0x17f)][_0x564f74(0x197)]=_0x292595[_0x564f74(0x1b7)]['options']['allow_screenshots']['toString']());continue;}break;}}return[null,null,null];},exports[a91_0x3a8f8c(0x1ca)]=_0x486c91=>{const _0x1ce76f=a91_0x3a8f8c,_0x899f28={'fAGae':function(_0x5d610a,_0xdd9a2b,_0x1ef37b){return _0x5d610a(_0xdd9a2b,_0x1ef37b);},'SXTFN':_0x1ce76f(0x1ad),'BgVqP':_0x1ce76f(0x1f3),'XEKdo':function(_0x797544,_0x46f7cb,_0x28162f,_0x4814ee){return _0x797544(_0x46f7cb,_0x28162f,_0x4814ee);},'zINOP':_0x1ce76f(0x1c7),'QvWWi':'value','xFNoZ':'command','lDsIr':'commands'};if(!_0x486c91[_0x1ce76f(0x1ad)])return exports[_0x1ce76f(0x1fe)](),[null,null];if(!_0x486c91[_0x1ce76f(0x1ad)][_0x1ce76f(0x1df)])return exports[_0x1ce76f(0x1fe)](_0x486c91['accessibility']),[null,null];if(_0x899f28[_0x1ce76f(0x1a0)](nestedKeyValue,_0x486c91,[_0x899f28[_0x1ce76f(0x17c)],_0x899f28[_0x1ce76f(0x1da)]])){const {accessibilityToken:_0xf5cb24,scannerVersion:_0x38a724}=_0x899f28[_0x1ce76f(0x1e1)](jsonifyAccessibilityArray,_0x486c91[_0x1ce76f(0x1ad)]['options'][_0x1ce76f(0x171)],_0x899f28[_0x1ce76f(0x166)],_0x899f28[_0x1ce76f(0x19e)]),_0x2e978b={'scripts':_0x899f28['XEKdo'](jsonifyAccessibilityArray,_0x486c91[_0x1ce76f(0x1ad)]['options'][_0x1ce76f(0x1c9)],_0x899f28[_0x1ce76f(0x166)],_0x899f28[_0x1ce76f(0x18f)])};_0x2e978b[_0x899f28[_0x1ce76f(0x1d0)]]=_0x486c91['accessibility'][_0x1ce76f(0x1f3)][_0x1ce76f(0x1f7)]['commands'],scripts['parseFromJson'](_0x2e978b),scripts[_0x1ce76f(0x19a)]();let _0xd4abcc=process[_0x1ce76f(0x17f)][_0x1ce76f(0x15f)];return _0xd4abcc=!!_0xd4abcc?JSON[_0x1ce76f(0x1e7)](_0xd4abcc):{},_0xd4abcc[_0x1ce76f(0x1cb)]=_0x38a724,process[_0x1ce76f(0x17f)][_0x1ce76f(0x15f)]=JSON[_0x1ce76f(0x17d)](_0xd4abcc),process[_0x1ce76f(0x17f)]['BS_A11Y_JWT']=_0xf5cb24,logger[_0x1ce76f(0x200)](_0x1ce76f(0x1b3)+_0x486c91[_0x1ce76f(0x18d)]),[_0xf5cb24,_0x486c91['build_hashed_id']];}return[null,null];},exports['handleErrorForObservability']=_0x456b85=>{const _0x4a0e32=a91_0x3a8f8c,_0x25fe1e={};_0x25fe1e[_0x4a0e32(0x1c3)]=_0x4a0e32(0x162),_0x25fe1e['gbYtQ']=_0x4a0e32(0x1ba),_0x25fe1e['QKLCW']='null';const _0x3bc05a=_0x25fe1e,_0xb99518=_0x3bc05a[_0x4a0e32(0x1c3)][_0x4a0e32(0x1a6)]('|');let _0x5e7ca5=0x0;while(!![]){switch(_0xb99518[_0x5e7ca5++]){case'0':process[_0x4a0e32(0x17f)]['BS_TESTOPS_BUILD_COMPLETED']=_0x3bc05a[_0x4a0e32(0x1eb)];continue;case'1':process[_0x4a0e32(0x17f)]['BROWSERSTACK_TESTHUB_JWT']=_0x3bc05a[_0x4a0e32(0x1e0)];continue;case'2':process['env'][_0x4a0e32(0x197)]=_0x3bc05a['QKLCW'];continue;case'3':process[_0x4a0e32(0x17f)][_0x4a0e32(0x204)]=_0x3bc05a[_0x4a0e32(0x1e0)];continue;case'4':process[_0x4a0e32(0x17f)][_0x4a0e32(0x1bf)]=_0x3bc05a[_0x4a0e32(0x1e0)];continue;case'5':exports[_0x4a0e32(0x178)](_0x456b85,testHubConstants[_0x4a0e32(0x186)]);continue;case'6':process[_0x4a0e32(0x17f)][_0x4a0e32(0x16a)]=_0x3bc05a[_0x4a0e32(0x1e0)];continue;}break;}},exports[a91_0x3a8f8c(0x1fe)]=_0x552293=>{const _0xf5cb6c=a91_0x3a8f8c,_0x3273aa={};_0x3273aa[_0xf5cb6c(0x1d7)]=_0xf5cb6c(0x170),_0x3273aa['Expes']=_0xf5cb6c(0x1c6),_0x3273aa[_0xf5cb6c(0x188)]=_0xf5cb6c(0x1ba);const _0xd7bc6b=_0x3273aa,_0x44ab70=_0xd7bc6b[_0xf5cb6c(0x1d7)][_0xf5cb6c(0x1a6)]('|');let _0x15f6c2=0x0;while(!![]){switch(_0x44ab70[_0x15f6c2++]){case'0':exports[_0xf5cb6c(0x178)](_0x552293,testHubConstants[_0xf5cb6c(0x202)]);continue;case'1':process['env'][_0xf5cb6c(0x204)]=_0xd7bc6b[_0xf5cb6c(0x1c4)];continue;case'2':process[_0xf5cb6c(0x17f)][_0xf5cb6c(0x1d9)]=_0xd7bc6b['Expes'];continue;case'3':process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=_0xd7bc6b['zzgBM'];continue;case'4':process['env'][_0xf5cb6c(0x16e)]=_0xd7bc6b[_0xf5cb6c(0x188)];continue;}break;}},exports['logBuildError']=(_0x41c1e0,_0x3a33f1='')=>{const _0x1c4d0e=a91_0x3a8f8c,_0x34a922={};_0x34a922['ryZMB']=function(_0x138bee,_0x2f6b79){return _0x138bee===_0x2f6b79;};const _0x12b4ed=_0x34a922;if(_0x12b4ed[_0x1c4d0e(0x1d5)](_0x41c1e0,undefined)){logger[_0x1c4d0e(0x17e)](_0x3a33f1[_0x1c4d0e(0x1a7)]()+_0x1c4d0e(0x18c));return;}for(const _0x3d8f8c of _0x41c1e0[_0x1c4d0e(0x1a3)]){const _0x5ca223=_0x3d8f8c['key'],_0x496f7c=_0x3d8f8c[_0x1c4d0e(0x160)];if(_0x496f7c)switch(_0x5ca223){case testHubConstants['ERROR'][_0x1c4d0e(0x180)]:logger['error'](_0x496f7c);break;case testHubConstants[_0x1c4d0e(0x1fa)]['ACCESS_DENIED']:logger[_0x1c4d0e(0x1be)](_0x496f7c);break;case testHubConstants['ERROR']['DEPRECATED']:logger[_0x1c4d0e(0x17e)](_0x496f7c);break;default:logger['error'](_0x496f7c);}}};const jsonifyAccessibilityArray=(_0x4ade59,_0x3e47a8,_0x19a1a0)=>{const _0x66341a=a91_0x3a8f8c,_0xcbce0b={};return _0x4ade59[_0x66341a(0x17a)](_0x5be569=>{_0xcbce0b[_0x5be569[_0x3e47a8]]=_0x5be569[_0x19a1a0];}),_0xcbce0b;};exports[a91_0x3a8f8c(0x1e6)]=_0x567bd7=>{const _0x1b879f=a91_0x3a8f8c;_0x567bd7['jwt']&&(process[_0x1b879f(0x17f)][_0x1b879f(0x1d9)]=_0x567bd7[_0x1b879f(0x1f1)]);_0x567bd7[_0x1b879f(0x18d)]&&(process[_0x1b879f(0x17f)][_0x1b879f(0x204)]=_0x567bd7[_0x1b879f(0x18d)],logger[_0x1b879f(0x200)](_0x1b879f(0x1b0)+_0x567bd7['build_hashed_id']));;},exports[a91_0x3a8f8c(0x1e4)]=(_0x4d48dc='',_0x1d7462='')=>{const _0xd1a0fa=a91_0x3a8f8c,_0x92000e={'vCljX':function(_0x501709){return _0x501709();},'ISZBH':function(_0x3684fe,_0x7d706b){return _0x3684fe===_0x7d706b;},'yYpmN':_0xd1a0fa(0x191),'xtKjl':_0xd1a0fa(0x207),'ALOsj':_0xd1a0fa(0x182),'FsuVA':'HookRunStarted','OSrjt':_0xd1a0fa(0x189),'itllg':function(_0xe998d){return _0xe998d();}};if(exports[_0xd1a0fa(0x1dc)]()&&!exports[_0xd1a0fa(0x1a8)]()&&!_0x92000e[_0xd1a0fa(0x179)](isTestObservabilitySession)){if(_0x92000e[_0xd1a0fa(0x1cc)](_0x1d7462,_0x92000e[_0xd1a0fa(0x1b2)]))return![];if([_0x92000e[_0xd1a0fa(0x199)],_0x92000e['ALOsj']][_0xd1a0fa(0x1e3)](_0x4d48dc))return![];return!![];}if(exports[_0xd1a0fa(0x1a8)]()&&!_0x92000e['vCljX'](isTestObservabilitySession)){if([_0x92000e[_0xd1a0fa(0x1c5)],_0x92000e[_0xd1a0fa(0x1e2)],_0x92000e['xtKjl']][_0xd1a0fa(0x1e3)](_0x4d48dc))return![];return!![];}return exports[_0xd1a0fa(0x1a8)]()||_0x92000e[_0xd1a0fa(0x1ae)](isTestObservabilitySession)||exports['isPercyBuild']();},exports[a91_0x3a8f8c(0x1ee)]=(_0x463faf,_0x1b9f4b,_0x5d08bd='',_0x3df342)=>{const _0x52e5d8=a91_0x3a8f8c,_0x20bd99={};_0x20bd99[_0x52e5d8(0x1fb)]=_0x52e5d8(0x1a9),_0x20bd99['DvGiJ']=_0x52e5d8(0x189),_0x20bd99['xvOJt']=function(_0x455c6b,_0x5f2b74){return _0x455c6b===_0x5f2b74;},_0x20bd99[_0x52e5d8(0x1b9)]=_0x52e5d8(0x1c1),_0x20bd99['LchEK']='isAccessibilityPlatform',_0x20bd99[_0x52e5d8(0x1a2)]=_0x52e5d8(0x1ad),_0x20bd99[_0x52e5d8(0x1ff)]=function(_0xbdf864,_0x4728e2){return _0xbdf864&&_0x4728e2;},_0x20bd99[_0x52e5d8(0x165)]=function(_0x365164,_0x368d5d){return _0x365164===_0x368d5d;},_0x20bd99['Zxujn']=function(_0x1dd939,_0x22930c){return _0x1dd939+_0x22930c;},_0x20bd99[_0x52e5d8(0x1b5)]=function(_0x2ff456,_0x40c933){return _0x2ff456+_0x40c933;},_0x20bd99['zzdHY']=function(_0x51e918,_0x2ba0c0){return _0x51e918&&_0x2ba0c0;},_0x20bd99[_0x52e5d8(0x1e5)]=function(_0x1f089e,_0x16959e){return _0x1f089e===_0x16959e;},_0x20bd99['SXBHj']=function(_0x2f12b2,_0x1f7888){return _0x2f12b2===_0x1f7888;},_0x20bd99[_0x52e5d8(0x1bd)]='TestRunStarted',_0x20bd99[_0x52e5d8(0x18a)]=function(_0x3fceef,_0x318734){return _0x3fceef&&_0x318734;},_0x20bd99[_0x52e5d8(0x1d2)]=function(_0x2b0a60,_0x4f1794){return _0x2b0a60&&_0x4f1794;},_0x20bd99[_0x52e5d8(0x1b4)]=_0x52e5d8(0x1c0);const _0x15e84e=_0x20bd99;if(![_0x15e84e[_0x52e5d8(0x1fb)],_0x15e84e[_0x52e5d8(0x203)]][_0x52e5d8(0x1e3)](_0x1b9f4b)&&exports[_0x52e5d8(0x1a8)]()){const _0x39bf1a={};if(_0x15e84e[_0x52e5d8(0x1f6)](_0x3df342,FRAMEWORKS[_0x52e5d8(0x209)])){const _0x55eb94=globals['getGlobal'](_0x15e84e[_0x52e5d8(0x1b9)])||accessibilityHelper[_0x52e5d8(0x1db)](_0x5d08bd[_0x52e5d8(0x1ac)](),!![]),_0xc4c8fa=globals[_0x52e5d8(0x1ef)](_0x15e84e['LchEK']);_0x39bf1a[_0x15e84e[_0x52e5d8(0x1a2)]]=_0x15e84e[_0x52e5d8(0x1ff)](_0xc4c8fa,_0x55eb94);}if(_0x15e84e[_0x52e5d8(0x165)](_0x3df342,FRAMEWORKS[_0x52e5d8(0x20b)])){const _0x5429ee=_0x15e84e[_0x52e5d8(0x1bb)](_0x15e84e['BriNp'](_0x463faf['scopes'][_0x52e5d8(0x1f9)]('\x20'),'\x20'),_0x5d08bd['name']),_0x36b602=globals[_0x52e5d8(0x1ef)](_0x15e84e['kTytR'])||accessibilityHelper[_0x52e5d8(0x1db)](_0x5429ee,![]),_0x456459=browserStackGlobals[_0x52e5d8(0x1ea)];_0x39bf1a[_0x15e84e[_0x52e5d8(0x1a2)]]=_0x15e84e[_0x52e5d8(0x1f4)](_0x456459,_0x36b602);}if(_0x15e84e[_0x52e5d8(0x1e5)](_0x3df342,FRAMEWORKS[_0x52e5d8(0x184)])){if(_0x15e84e['SXBHj'](_0x1b9f4b,_0x15e84e[_0x52e5d8(0x1bd)]))return;_0x39bf1a[_0x15e84e[_0x52e5d8(0x1a2)]]=PWTestDetails[_0x52e5d8(0x168)](_0x463faf[_0x52e5d8(0x1d6)]);}if(_0x15e84e[_0x52e5d8(0x1e5)](_0x3df342,FRAMEWORKS[_0x52e5d8(0x1af)])){const _0x4e1895=accessibilityHelper['shouldScanTestForAccessibility'](_0x5d08bd[_0x52e5d8(0x1ac)](),!![]),_0x4309c3=global[_0x52e5d8(0x1e9)]&&bsSetupHelper['isBrowserstackInfra']();_0x39bf1a[_0x15e84e[_0x52e5d8(0x1a2)]]=_0x15e84e[_0x52e5d8(0x18a)](_0x4309c3,_0x4e1895);}if(_0x15e84e[_0x52e5d8(0x1f6)](_0x3df342,FRAMEWORKS[_0x52e5d8(0x18b)])){const _0x46267d=accessibilityHelper[_0x52e5d8(0x1db)](null,![],_0x463faf[_0x52e5d8(0x208)]),_0x33037b=globals[_0x52e5d8(0x1ef)](_0x15e84e[_0x52e5d8(0x19c)]);_0x39bf1a[_0x15e84e[_0x52e5d8(0x1a2)]]=_0x15e84e[_0x52e5d8(0x1d2)](_0x33037b,_0x46267d);}_0x463faf[_0x15e84e[_0x52e5d8(0x1b4)]]=_0x39bf1a;}},exports[a91_0x3a8f8c(0x1d8)]=_0x1656a4=>{const _0x1903c8=a91_0x3a8f8c,_0x2bf92f={};_0x2bf92f[_0x1903c8(0x190)]=function(_0x441966,_0x444c29){return _0x441966>_0x444c29;};const _0x5992e0=_0x2bf92f;let _0xf542bb={};if(_0x5992e0[_0x1903c8(0x190)](Object[_0x1903c8(0x183)](testData)['length'],0x0))return testData;_0xf542bb=JestTestDetails['getTestData']();if(_0x5992e0[_0x1903c8(0x190)](Object[_0x1903c8(0x183)](_0xf542bb)[_0x1903c8(0x181)],0x0))return _0xf542bb;return _0xf542bb;},exports[a91_0x3a8f8c(0x1d3)]=(_0x2d17d5,_0x1a3845={})=>{const _0x31d956=a91_0x3a8f8c;if(bsSetupHelper['isUndefined'](_0x1a3845[_0x31d956(0x193)]))return;switch(_0x2d17d5){case FRAMEWORKS[_0x31d956(0x209)]:testData=_0x1a3845['test_run'];break;case FRAMEWORKS[_0x31d956(0x20b)]:JestTestDetails[_0x31d956(0x192)](_0x1a3845[_0x31d956(0x193)]);break;default:break;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a92_0x417e45=a92_0x52ad;(function(_0x365d49,_0x3b786a){const _0x16c901=a92_0x52ad,_0x4a7c2e=_0x365d49();while(!![]){try{const _0x34899e=-parseInt(_0x16c901(0x82))/0x1+parseInt(_0x16c901(0x7a))/0x2*(-parseInt(_0x16c901(0x7e))/0x3)+-parseInt(_0x16c901(0x84))/0x4+parseInt(_0x16c901(0x7f))/0x5*(parseInt(_0x16c901(0x7d))/0x6)+-parseInt(_0x16c901(0x7c))/0x7*(-parseInt(_0x16c901(0x79))/0x8)+parseInt(_0x16c901(0x80))/0x9+parseInt(_0x16c901(0x78))/0xa;if(_0x34899e===_0x3b786a)break;else _0x4a7c2e['push'](_0x4a7c2e['shift']());}catch(_0x29d17f){_0x4a7c2e['push'](_0x4a7c2e['shift']());}}}(a92_0x10bb,0x838c4));const utilities=require(a92_0x417e45(0x77));module[a92_0x417e45(0x7b)]=(_0x220078,_0x5246c9,_0x37b3ff,_0x56012e,_0x40b1a2,_0x2de255)=>{const _0x24c10d={'jSysR':function(_0x231ce9,_0x55a5de){return _0x231ce9-_0x55a5de;},'DOJUF':function(_0x24e775,_0x38d84f){return _0x24e775(_0x38d84f);},'OLNBW':function(_0xa0a224,_0x12bb4f,_0xa5ec2d){return _0xa0a224(_0x12bb4f,_0xa5ec2d);},'BCiQK':function(_0x2a2320,_0x4c60e2){return _0x2a2320(_0x4c60e2);}};let _0x4d754f,_0x7aff87=![];const _0x102f0d=new Promise((_0x2482eb,_0x4b418c)=>{const _0x396259=a92_0x52ad;_0x4d754f=_0x24c10d[_0x396259(0x83)](setTimeout,()=>{const _0x4c9c5c=_0x396259;if(!_0x7aff87){const _0x571318={'status':''+_0x5246c9,'timeTaken':_0x24c10d[_0x4c9c5c(0x85)](new Date(),_0x56012e)};utilities['fireFunnelTestEvent'](_0x37b3ff,_0x571318,_0x40b1a2,_0x2de255),_0x24c10d['DOJUF'](_0x4b418c,new Error(_0x5246c9));}},_0x220078);});return _0x102f0d['cancel']=()=>{const _0x39e5c6=a92_0x52ad;_0x7aff87=!![],_0x24c10d[_0x39e5c6(0x81)](clearTimeout,_0x4d754f);},_0x102f0d;};function a92_0x52ad(_0x3ff608,_0x39b048){const _0x10bba8=a92_0x10bb();return a92_0x52ad=function(_0x52ad1f,_0xd6ab7c){_0x52ad1f=_0x52ad1f-0x77;let _0xa5caa7=_0x10bba8[_0x52ad1f];return _0xa5caa7;},a92_0x52ad(_0x3ff608,_0x39b048);}function a92_0x10bb(){const _0x32b57d=['BCiQK','946168dVfgtu','OLNBW','1751848fqKmPG','jSysR','./utilities','18957630xSspZN','1909552tWiDNv','1004738xjYBsm','exports','7gaMdha','7416ZKnOca','6vCBadm','775ghyZUa','5414859DHTFVI'];a92_0x10bb=function(){return _0x32b57d;};return a92_0x10bb();}
|
package/src/helpers/utilities.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a93_0x3044(_0xf078a0,_0x3fbba6){const _0x2b66ee=a93_0x2b66();return a93_0x3044=function(_0x3044b2,_0x201c7e){_0x3044b2=_0x3044b2-0x1e6;let _0xd0683b=_0x2b66ee[_0x3044b2];return _0xd0683b;},a93_0x3044(_0xf078a0,_0x3fbba6);}function a93_0x2b66(){const _0x3e69b0=['./testhub/utils','AUTOMATE_PRODUCTS','push','nodeRequest','getGlobal','getTestFrameworkDetails','BROWSERSTACK_TESTHUB_UUID','assign','oJgJi','JrMto','getNodeAgent',',\x20testhub\x20id:\x20','TXRHC','7271940kvPhjU','values','unknown','getTurboScaleSessionsList','forEach','NRZtI','wsmcd','Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20','osVersion','./logger','566847HsWIQV','FUNNEL_INSTRUMENTATION_API_URL','format','Error\x20in\x20firing\x20request\x20to\x20','sdkRunId','vCJBm','sdkRunID','user_killed','util','YpqbF','SDKTestSuccessful','sendLogs','KoMeX','_buildHashedId','killSignal','length','keys','playwrightVersion','apply','RIBXm','WLqEx','3549036qjWtsR','replace','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','null','cqzTC','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','../bin/utils/constants','type','browserVersion','15382kfEghJ','348YzXPsY','Playwright','./helper','cVKjE','lowIQ','body','\x20:\x20','notifyUpdate','getOptimalHubUrl','../bin/playwright/reporter/pwUtils','111272OhMTzL','148mFuPhq','version','undefined','isBrowserstackInfra','stopPercy','codeceptjs','VFWWb','./globals','nodejs','getUserName','../helpers/testhub/constants','name','errorMessage','app','voACK','32115MdCtnR','event_properties','mFdVO','4238432CRtWfu','getFrameworkVersion','uKARe','framework','WeIoQ','tests','all','16mHamrL','finalExecution','stringify','NvCzV','every','wTjfD','jVwRZ','lMbix','debug','APP_AUTOMATE','VAtWn','./ats/helper','yoTrf','getSessionsList','source','getAccessKey','error','getTurboScaleBuildLink','browser','buildIdentifier','content-type','uSdcR','config','TrCYO','./test-observability/utils','object','kfuSO','requirePWModule','winstonLogger','DNaNM','\x20response\x20-\x20','POST','application/json','fireFunnelTestEvent','AUTOMATE','Tmfep','103gfNxuB','browserStackConfig','env','join','API\x20Event\x20','KnByW','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','getBuildLink'];a93_0x2b66=function(){return _0x3e69b0;};return a93_0x2b66();}const a93_0x4c8262=a93_0x3044;(function(_0x46b3d7,_0x5c329b){const _0x55d441=a93_0x3044,_0x44bf5f=_0x46b3d7();while(!![]){try{const _0x35719a=-parseInt(_0x55d441(0x22f))/0x1*(parseInt(_0x55d441(0x1e6))/0x2)+parseInt(_0x55d441(0x263))/0x3+-parseInt(_0x55d441(0x1f2))/0x4*(-parseInt(_0x55d441(0x201))/0x5)+-parseInt(_0x55d441(0x1e7))/0x6*(parseInt(_0x55d441(0x1f1))/0x7)+parseInt(_0x55d441(0x20b))/0x8*(-parseInt(_0x55d441(0x24e))/0x9)+parseInt(_0x55d441(0x244))/0xa+parseInt(_0x55d441(0x204))/0xb;if(_0x35719a===_0x5c329b)break;else _0x44bf5f['push'](_0x44bf5f['shift']());}catch(_0x579b1c){_0x44bf5f['push'](_0x44bf5f['shift']());}}}(a93_0x2b66,0xa9346));const os=require('os'),util=require(a93_0x4c8262(0x256)),{getProductMap}=require(a93_0x4c8262(0x237)),logger=require(a93_0x4c8262(0x24d))[a93_0x4c8262(0x227)],constants=require(a93_0x4c8262(0x269)),testHubConstants=require(a93_0x4c8262(0x1fc)),{getTransformPath}=require(a93_0x4c8262(0x1f0)),{FUNNEL_INSTRUMENTATION_API_URL}=require(a93_0x4c8262(0x269)),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a93_0x4c8262(0x1e9)),PerformanceTester=require('./performance/performance-tester'),globals=require(a93_0x4c8262(0x1f9)),{isTurboScaleSession}=require(a93_0x4c8262(0x216)),helper=require(a93_0x4c8262(0x1e9)),{isTestObservabilitySession}=require(a93_0x4c8262(0x223));let unhandledErrors='';exports[a93_0x4c8262(0x22c)]=async(_0x4c249f,_0x3e2ed3={},_0x4a2a8d,_0x6ab167)=>{const _0x2d2bf7=a93_0x4c8262,_0x4fd7a6={'VAtWn':function(_0x1b54b4,_0x42b74f){return _0x1b54b4===_0x42b74f;},'uKARe':_0x2d2bf7(0x224),'Tmfep':function(_0x383316,_0x31f8e0){return _0x383316>_0x31f8e0;},'NvCzV':_0x2d2bf7(0x209),'TXRHC':function(_0x3592b2){return _0x3592b2();},'VFWWb':function(_0x6adfc7){return _0x6adfc7();},'GGfUQ':function(_0x3d7a21,_0xa90db4){return _0x3d7a21==_0xa90db4;},'uSdcR':_0x2d2bf7(0x266),'NRZtI':function(_0x11d2b0,_0x4bfec6){return _0x11d2b0===_0x4bfec6;},'jVwRZ':_0x2d2bf7(0x1f4),'yoTrf':function(_0x2f1538,_0x3faa9b){return _0x2f1538>_0x3faa9b;},'KnByW':function(_0x1d4ec5,_0x19b8ae){return _0x1d4ec5===_0x19b8ae;},'JrMto':_0x2d2bf7(0x1f7),'PddIp':function(_0x301f5c,_0x5b9e04){return _0x301f5c>_0x5b9e04;},'pPrmq':function(_0x4f353d,_0x439c13){return _0x4f353d!==_0x439c13;},'kfuSO':_0x2d2bf7(0x1e8),'lowIQ':_0x2d2bf7(0x21b),'VFEob':function(_0x548862,_0x153b3a){return _0x548862>_0x153b3a;},'wTjfD':function(_0x50de8e,_0x1cd12b){return _0x50de8e+_0x1cd12b;},'wsmcd':_0x2d2bf7(0x265),'WLqEx':_0x2d2bf7(0x25b),'WeIoQ':function(_0x43f347,_0x5dac29){return _0x43f347(_0x5dac29);},'mFdVO':_0x2d2bf7(0x246),'KoMeX':_0x2d2bf7(0x1fa),'TrCYO':_0x2d2bf7(0x258),'OjSnT':'selenium-webdriver','vCJBm':_0x2d2bf7(0x22b),'RIBXm':'[REDACTED]','oJgJi':_0x2d2bf7(0x22a)};let _0x59633c=[];if(helper[_0x2d2bf7(0x1f5)]()&&_0x4fd7a6[_0x2d2bf7(0x243)](isTestObservabilitySession))_0x59633c=_0x4a2a8d['app']?constants['APP_AUTOMATE_PRODUCTS']:constants[_0x2d2bf7(0x238)];else{if(_0x4fd7a6[_0x2d2bf7(0x1f8)](isTestObservabilitySession))_0x59633c=constants[_0x2d2bf7(0x268)];else helper[_0x2d2bf7(0x1f5)]()&&(_0x59633c=_0x4a2a8d[_0x2d2bf7(0x1ff)]?constants[_0x2d2bf7(0x214)]:constants[_0x2d2bf7(0x22d)]);}let _0x14536b=_0x4a2a8d[_0x2d2bf7(0x21e)];if(_0x4fd7a6['GGfUQ'](_0x14536b,null))_0x14536b=_0x4fd7a6[_0x2d2bf7(0x220)];else _0x4fd7a6[_0x2d2bf7(0x249)](_0x14536b,undefined)&&(_0x14536b=_0x4fd7a6[_0x2d2bf7(0x211)]);unhandledErrors&&_0x4fd7a6[_0x2d2bf7(0x217)](unhandledErrors['length'],0x0)&&(_0x3e2ed3['globalException']=unhandledErrors);global[_0x2d2bf7(0x254)]&&(_0x3e2ed3[_0x2d2bf7(0x252)]=global[_0x2d2bf7(0x254)]);try{if(_0x3e2ed3['error']){if(_0x4fd7a6[_0x2d2bf7(0x234)](_0x6ab167,_0x4fd7a6[_0x2d2bf7(0x240)])&&_0x4fd7a6['PddIp'](_0x3e2ed3['error'][_0x2d2bf7(0x25d)],0x0)){const _0x4316a6={};_0x4316a6['os']='',_0x4316a6['osVersion']='',_0x4316a6[_0x2d2bf7(0x21d)]='',_0x4316a6[_0x2d2bf7(0x26b)]='';const _0xf63ce0=_0x4316a6;let _0x4fcfac={};const _0x3d6c53=_0x3e2ed3['error'];_0x4fcfac=_0x3d6c53['reduce']((_0xa33601,_0x11a62c)=>{for(const _0xf58978 in _0x11a62c){_0xa33601[_0xf58978]=_0x11a62c[_0xf58978];}return _0xa33601;},{});const _0xcdda5c={};_0xcdda5c['tests']=_0x4fcfac,_0x3e2ed3[_0x2d2bf7(0x21b)]=[Object[_0x2d2bf7(0x23e)]({},_0xf63ce0,_0xcdda5c)];}else{let _0x66cdfd=0x0;const _0x1541e1=_0x4fd7a6['pPrmq'](_0x6ab167,_0x4fd7a6[_0x2d2bf7(0x225)])?JSON['parse'](_0x3e2ed3[_0x2d2bf7(0x21b)]):_0x3e2ed3[_0x2d2bf7(0x21b)],_0x2b5555=Object[_0x2d2bf7(0x245)](_0x1541e1);_0x2b5555['forEach'](_0x2780fa=>{const _0x32a5e9=_0x2d2bf7;if(_0x4fd7a6[_0x32a5e9(0x215)](typeof _0x2780fa,_0x4fd7a6[_0x32a5e9(0x206)])){const _0x4f3757=Object['values'](_0x2780fa);!_0x4f3757[_0x32a5e9(0x20f)](_0xc789=>_0xc789===null||_0xc789===undefined||_0xc789==='')&&(_0x66cdfd+=0x1);}});if(_0x4fd7a6[_0x2d2bf7(0x249)](_0x66cdfd,0x0))delete _0x3e2ed3[_0x4fd7a6[_0x2d2bf7(0x1eb)]];else{const _0x229071=[];Object[_0x2d2bf7(0x25e)](_0x1541e1)[_0x2d2bf7(0x248)](_0x13bc77=>{const _0x5a0417=_0x2d2bf7,[_0x594a9c,_0x3eec56,_0x11b5df,_0x24a49a]=_0x13bc77['split'](',\x20');let _0x2710ac={};if(!_0x24a49a){const _0x84c3a1={};_0x84c3a1['deviceName']=_0x594a9c,_0x84c3a1[_0x5a0417(0x24c)]=_0x3eec56,_0x84c3a1['browser']=_0x11b5df,_0x2710ac=_0x84c3a1;}else{const _0x2027a7={};_0x2027a7['os']=_0x594a9c,_0x2027a7[_0x5a0417(0x24c)]=_0x3eec56,_0x2027a7[_0x5a0417(0x21d)]=_0x11b5df,_0x2027a7[_0x5a0417(0x26b)]=_0x24a49a,_0x2710ac=_0x2027a7;}const _0x56d511={},_0x1622a5=_0x1541e1[_0x13bc77];Object[_0x5a0417(0x25e)](_0x1622a5)['forEach'](_0x28b378=>{const _0x3da262=_0x5a0417;_0x4fd7a6[_0x3da262(0x22e)](_0x1622a5[_0x28b378][_0x3da262(0x25d)],0x0)&&(_0x56d511[_0x28b378]=_0x1622a5[_0x28b378]);}),_0x4fd7a6[_0x5a0417(0x22e)](Object[_0x5a0417(0x25e)](_0x56d511)[_0x5a0417(0x25d)],0x0)&&(_0x2710ac[_0x4fd7a6[_0x5a0417(0x20e)]]=_0x56d511,_0x229071[_0x5a0417(0x239)](_0x2710ac));}),_0x4fd7a6['VFEob'](_0x229071['length'],0x0)?_0x3e2ed3[_0x2d2bf7(0x21b)]=_0x229071:delete _0x3e2ed3[_0x4fd7a6[_0x2d2bf7(0x1eb)]];}}}}catch(_0xef7726){delete _0x3e2ed3[_0x4fd7a6['lowIQ']],logger[_0x2d2bf7(0x213)](_0x4fd7a6[_0x2d2bf7(0x210)](_0x4fd7a6[_0x2d2bf7(0x24a)],_0xef7726));}const _0x1376a6=helper[_0x2d2bf7(0x23c)](_0x4a2a8d,_0x4a2a8d[_0x2d2bf7(0x207)]),_0x20bb09={'userName':helper[_0x2d2bf7(0x1fb)](_0x4a2a8d),'accessKey':helper[_0x2d2bf7(0x21a)](_0x4a2a8d),'event_type':_0x4c249f,'detectedFramework':_0x6ab167,'buildHashedId':globals[_0x2d2bf7(0x23b)](_0x4fd7a6[_0x2d2bf7(0x262)]),'optimalHubUrl':helper[_0x2d2bf7(0x1ef)](),'event_properties':{'testhub_uuid':process[_0x2d2bf7(0x231)][testHubConstants['ENV_VAR'][_0x2d2bf7(0x23d)]]||'','sdkRunId':global[_0x2d2bf7(0x254)],'product_map':_0x4fd7a6['WeIoQ'](getProductMap,_0x4a2a8d),'productMap':_0x4fd7a6[_0x2d2bf7(0x208)](getProductMap,_0x4a2a8d),'language_framework':_0x4a2a8d[_0x2d2bf7(0x219)]||_0x4fd7a6['mFdVO'],'referrer':helper[_0x2d2bf7(0x241)](_0x6ab167),'framework':_0x4a2a8d['framework'],'frameworkVersion':helper[_0x2d2bf7(0x205)](_0x6ab167),'automationFramework':_0x1376a6[_0x2d2bf7(0x1fd)],'automationFrameworkVersion':_0x1376a6[_0x2d2bf7(0x1f3)],'language':_0x4fd7a6[_0x2d2bf7(0x25a)],'languageVersion':process[_0x2d2bf7(0x1f3)],'product':_0x59633c,'buildName':_0x4a2a8d['buildName']||_0x4fd7a6[_0x2d2bf7(0x211)],'buildIdentifier':_0x14536b,'os':os[_0x2d2bf7(0x26a)]()||_0x4fd7a6[_0x2d2bf7(0x203)],'hostname':os['hostname']()||_0x4fd7a6['mFdVO'],..._0x3e2ed3}};try{_0x4fd7a6[_0x2d2bf7(0x234)](_0x4c249f,_0x4fd7a6[_0x2d2bf7(0x222)])&&(_0x20bb09[_0x2d2bf7(0x202)][_0x2d2bf7(0x230)]=helper['sanitizeBrowserStackConfig'](_0x4a2a8d)),_0x4fd7a6[_0x2d2bf7(0x215)](_0x6ab167,_0x4fd7a6[_0x2d2bf7(0x225)])?_0x20bb09[_0x2d2bf7(0x202)][_0x2d2bf7(0x25f)]=helper[_0x2d2bf7(0x226)][_0x2d2bf7(0x260)](null,_0x4fd7a6[_0x2d2bf7(0x243)](getTransformPath),!![]):_0x20bb09['event_properties']['seleniumVersion']=helper['getPackageVersion'](_0x4fd7a6['OjSnT']);}catch(_0x234882){logger['debug']('Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20'+_0x234882);}const _0x452370={};_0x452370[_0x2d2bf7(0x21f)]=_0x4fd7a6[_0x2d2bf7(0x253)];const _0x22d660={'headers':_0x452370,'body':_0x20bb09,'auth':{'user':helper[_0x2d2bf7(0x1fb)](_0x4a2a8d),'pass':helper[_0x2d2bf7(0x21a)](_0x4a2a8d)},'json':!![]};logger[_0x2d2bf7(0x213)](_0x2d2bf7(0x235)+JSON[_0x2d2bf7(0x20d)](_0x22d660[_0x2d2bf7(0x1ec)])[_0x2d2bf7(0x264)](new RegExp(helper[_0x2d2bf7(0x1fb)](_0x4a2a8d),'g'),_0x4fd7a6['RIBXm'])[_0x2d2bf7(0x264)](new RegExp(helper[_0x2d2bf7(0x21a)](_0x4a2a8d),'g'),_0x4fd7a6[_0x2d2bf7(0x261)]));try{const _0x2b66d2=await helper[_0x2d2bf7(0x23a)](_0x4fd7a6[_0x2d2bf7(0x23f)],constants[_0x2d2bf7(0x24f)],_0x22d660,_0x4a2a8d);logger[_0x2d2bf7(0x213)](_0x2d2bf7(0x233)+_0x4c249f+_0x2d2bf7(0x229)+util[_0x2d2bf7(0x250)]('%j',_0x2b66d2));}catch(_0x4e7600){logger[_0x2d2bf7(0x213)](_0x2d2bf7(0x251)+FUNNEL_INSTRUMENTATION_API_URL+_0x2d2bf7(0x1ed)+util[_0x2d2bf7(0x250)](_0x4e7600));}},exports[a93_0x4c8262(0x20c)]=async _0x1f9a41=>{const _0x5ee533=a93_0x4c8262,_0x33da3f={'lMbix':function(_0x5cc247){return _0x5cc247();},'bIiDs':'finishedMetadata','DNaNM':_0x5ee533(0x255),'voACK':function(_0x258f67,_0x494f81){return _0x258f67(_0x494f81);},'cVKjE':_0x5ee533(0x258),'cqzTC':function(_0x3b9c96,_0x4cc4fb,_0xec5f45){return _0x3b9c96(_0x4cc4fb,_0xec5f45);},'YpqbF':function(_0x131bc8,_0x2e7911){return _0x131bc8+_0x2e7911;},'lYrTa':_0x5ee533(0x24b)};try{await _0x1f9a41[_0x5ee533(0x1f6)](),_0x33da3f[_0x5ee533(0x212)](printNudgeLocalNotSetError);const _0x53a140={};_0x53a140[_0x5ee533(0x21b)]=_0x1f9a41['errorMessage']?_0x1f9a41[_0x5ee533(0x1fe)]:'{}';const _0xa6d160=_0x53a140,_0x80144f=Object['assign']({},_0xa6d160);!!_0x1f9a41[_0x5ee533(0x25c)]&&(_0x80144f[_0x33da3f['bIiDs']]={'reason':_0x33da3f[_0x5ee533(0x228)],'signal':_0x1f9a41['killSignal']});unhandledErrors=_0x1f9a41['unhandledErrors'][_0x5ee533(0x232)]('\x0a');let _0x58009c,_0x203dbb,_0x347d1d;_0x33da3f[_0x5ee533(0x200)](isTurboScaleSession,_0x1f9a41[_0x5ee533(0x221)])?([_0x58009c,_0x203dbb]=await helper[_0x5ee533(0x21c)](_0x1f9a41[_0x5ee533(0x221)]),[_0x347d1d]=await Promise[_0x5ee533(0x20a)]([helper[_0x5ee533(0x247)](_0x58009c,_0x1f9a41[_0x5ee533(0x221)]),exports['fireFunnelTestEvent'](_0x33da3f[_0x5ee533(0x1ea)],_0x80144f,_0x1f9a41[_0x5ee533(0x221)],_0x1f9a41[_0x5ee533(0x207)])])):([_0x58009c,_0x203dbb]=await helper[_0x5ee533(0x236)](_0x1f9a41['config']),[_0x347d1d]=await Promise['all']([helper[_0x5ee533(0x218)](_0x58009c,_0x1f9a41[_0x5ee533(0x221)]),exports[_0x5ee533(0x22c)](_0x33da3f[_0x5ee533(0x1ea)],_0x80144f,_0x1f9a41[_0x5ee533(0x221)],_0x1f9a41[_0x5ee533(0x207)])])),_0x347d1d&&await _0x33da3f[_0x5ee533(0x267)](generateCIArtifacts,_0x347d1d,_0x203dbb),logger['info']('SDK\x20run\x20ended\x20for\x20id:\x20'+_0x1f9a41['sdkRunID']+_0x5ee533(0x242)+process[_0x5ee533(0x231)]['BROWSERSTACK_TESTHUB_UUID']),await helper[_0x5ee533(0x259)](_0x1f9a41['config']);}catch(_0x180a62){logger[_0x5ee533(0x213)](_0x33da3f[_0x5ee533(0x257)](_0x33da3f['lYrTa'],_0x180a62));}helper[_0x5ee533(0x1ee)]();};
|
|
1
|
+
const a93_0x36fb41=a93_0x53c5;(function(_0x10b216,_0x577241){const _0x5efb20=a93_0x53c5,_0xececaf=_0x10b216();while(!![]){try{const _0x4728da=-parseInt(_0x5efb20(0x178))/0x1*(parseInt(_0x5efb20(0x196))/0x2)+-parseInt(_0x5efb20(0x177))/0x3*(-parseInt(_0x5efb20(0x143))/0x4)+parseInt(_0x5efb20(0x157))/0x5*(-parseInt(_0x5efb20(0x18b))/0x6)+parseInt(_0x5efb20(0x153))/0x7+-parseInt(_0x5efb20(0x195))/0x8*(-parseInt(_0x5efb20(0x17b))/0x9)+-parseInt(_0x5efb20(0x182))/0xa*(parseInt(_0x5efb20(0x170))/0xb)+parseInt(_0x5efb20(0x19d))/0xc*(parseInt(_0x5efb20(0x132))/0xd);if(_0x4728da===_0x577241)break;else _0xececaf['push'](_0xececaf['shift']());}catch(_0x55b5af){_0xececaf['push'](_0xececaf['shift']());}}}(a93_0x2c2a,0xecf72));const os=require('os'),util=require('util'),{getProductMap}=require(a93_0x36fb41(0x161)),logger=require(a93_0x36fb41(0x156))[a93_0x36fb41(0x15f)],constants=require(a93_0x36fb41(0x131)),testHubConstants=require(a93_0x36fb41(0x13a)),{getTransformPath}=require(a93_0x36fb41(0x18f)),{FUNNEL_INSTRUMENTATION_API_URL}=require(a93_0x36fb41(0x131)),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a93_0x36fb41(0x1b0)),PerformanceTester=require('./performance/performance-tester'),globals=require(a93_0x36fb41(0x133)),{isTurboScaleSession}=require(a93_0x36fb41(0x1a7)),helper=require('./helper'),{isTestObservabilitySession}=require('./test-observability/utils');function a93_0x53c5(_0xd04676,_0x4c29cd){const _0x2c2a5f=a93_0x2c2a();return a93_0x53c5=function(_0x53c56d,_0x5e45ac){_0x53c56d=_0x53c56d-0x130;let _0x4a25cd=_0x2c2a5f[_0x53c56d];return _0x4a25cd;},a93_0x53c5(_0xd04676,_0x4c29cd);}let unhandledErrors='';exports[a93_0x36fb41(0x19b)]=async(_0x34c9ab,_0x4e2d8c={},_0xe7cbd,_0x42d725)=>{const _0x39c0d8=a93_0x36fb41,_0x5ac4e7={'JDofF':function(_0x38cd9c,_0x4f619f){return _0x38cd9c===_0x4f619f;},'KkrQk':_0x39c0d8(0x15e),'OeyiR':function(_0x3a2615,_0xf6ce80){return _0x3a2615>_0xf6ce80;},'VsqwO':_0x39c0d8(0x162),'IgIQA':function(_0x76c518){return _0x76c518();},'OIgFQ':function(_0x3ddeba,_0x14dd1e){return _0x3ddeba==_0x14dd1e;},'uvAJG':_0x39c0d8(0x17a),'pheLV':'undefined','vCYqQ':_0x39c0d8(0x147),'NsOul':function(_0x1b1d9c,_0x1ae908){return _0x1b1d9c!==_0x1ae908;},'MhjwQ':_0x39c0d8(0x136),'MJCSM':function(_0x152475,_0x2f9fb2){return _0x152475===_0x2f9fb2;},'ZPuFg':'error','dQvYH':function(_0x3be3e3,_0x151894){return _0x3be3e3+_0x151894;},'YgXER':_0x39c0d8(0x1b1),'IfCYK':_0x39c0d8(0x1a4),'UNtOV':function(_0x464a7d,_0x202c07){return _0x464a7d(_0x202c07);},'epqwF':function(_0x12e722,_0x538042){return _0x12e722(_0x538042);},'qcsYQ':'unknown','oMLkR':_0x39c0d8(0x19a),'XcwaP':_0x39c0d8(0x167),'fpzBe':_0x39c0d8(0x19c),'uFRRi':'application/json','eGLuN':_0x39c0d8(0x194),'IkNut':_0x39c0d8(0x1b3)};let _0x2fabfa=[];if(helper[_0x39c0d8(0x191)]()&&_0x5ac4e7[_0x39c0d8(0x14b)](isTestObservabilitySession))_0x2fabfa=_0xe7cbd['app']?constants['APP_AUTOMATE_PRODUCTS']:constants[_0x39c0d8(0x14f)];else{if(_0x5ac4e7['IgIQA'](isTestObservabilitySession))_0x2fabfa=constants[_0x39c0d8(0x16a)];else helper['isBrowserstackInfra']()&&(_0x2fabfa=_0xe7cbd[_0x39c0d8(0x1af)]?constants[_0x39c0d8(0x1b7)]:constants['AUTOMATE']);}let _0x286f0d=_0xe7cbd[_0x39c0d8(0x16e)];if(_0x5ac4e7[_0x39c0d8(0x15a)](_0x286f0d,null))_0x286f0d=_0x5ac4e7[_0x39c0d8(0x1a3)];else _0x5ac4e7[_0x39c0d8(0x141)](_0x286f0d,undefined)&&(_0x286f0d=_0x5ac4e7[_0x39c0d8(0x179)]);unhandledErrors&&_0x5ac4e7[_0x39c0d8(0x135)](unhandledErrors[_0x39c0d8(0x1ae)],0x0)&&(_0x4e2d8c[_0x39c0d8(0x18c)]=unhandledErrors);global[_0x39c0d8(0x15d)]&&(_0x4e2d8c['sdkRunId']=global[_0x39c0d8(0x15d)]);try{if(_0x4e2d8c[_0x39c0d8(0x145)]){if(_0x5ac4e7[_0x39c0d8(0x141)](_0x42d725,_0x5ac4e7[_0x39c0d8(0x1ad)])&&_0x5ac4e7['OeyiR'](_0x4e2d8c[_0x39c0d8(0x145)][_0x39c0d8(0x1ae)],0x0)){const _0x4eba96={};_0x4eba96['os']='',_0x4eba96[_0x39c0d8(0x130)]='',_0x4eba96[_0x39c0d8(0x1a6)]='',_0x4eba96[_0x39c0d8(0x139)]='';const _0x197e98=_0x4eba96;let _0x32ae02={};const _0x7ce9f9=_0x4e2d8c[_0x39c0d8(0x145)];_0x32ae02=_0x7ce9f9['reduce']((_0x4f6e13,_0x1913b5)=>{for(const _0x11e3b8 in _0x1913b5){_0x4f6e13[_0x11e3b8]=_0x1913b5[_0x11e3b8];}return _0x4f6e13;},{});const _0x3fb6e9={};_0x3fb6e9['tests']=_0x32ae02,_0x4e2d8c[_0x39c0d8(0x145)]=[Object['assign']({},_0x197e98,_0x3fb6e9)];}else{let _0x1369db=0x0;const _0x471cc2=_0x5ac4e7['NsOul'](_0x42d725,_0x5ac4e7[_0x39c0d8(0x14d)])?JSON['parse'](_0x4e2d8c[_0x39c0d8(0x145)]):_0x4e2d8c[_0x39c0d8(0x145)],_0x2c0b98=Object[_0x39c0d8(0x17e)](_0x471cc2);_0x2c0b98['forEach'](_0x26f2c2=>{const _0x3d6b2b=_0x39c0d8;if(_0x5ac4e7[_0x3d6b2b(0x141)](typeof _0x26f2c2,_0x5ac4e7[_0x3d6b2b(0x173)])){const _0x35259a=Object[_0x3d6b2b(0x17e)](_0x26f2c2);!_0x35259a[_0x3d6b2b(0x172)](_0x41b403=>_0x41b403===null||_0x41b403===undefined||_0x41b403==='')&&(_0x1369db+=0x1);}});if(_0x5ac4e7['MJCSM'](_0x1369db,0x0))delete _0x4e2d8c[_0x5ac4e7['ZPuFg']];else{const _0x3f6595=[];Object[_0x39c0d8(0x14c)](_0x471cc2)['forEach'](_0x1ed917=>{const _0x5d3682=_0x39c0d8,_0x45e5cb={'HThsc':function(_0x1b4d24,_0x5acddb){const _0x346efd=a93_0x53c5;return _0x5ac4e7[_0x346efd(0x135)](_0x1b4d24,_0x5acddb);}},[_0x1c29d4,_0x45b95e,_0x456744,_0x31130a]=_0x1ed917[_0x5d3682(0x187)](',\x20');let _0x164cf1={};if(!_0x31130a){const _0x4937d8={};_0x4937d8[_0x5d3682(0x13f)]=_0x1c29d4,_0x4937d8[_0x5d3682(0x130)]=_0x45b95e,_0x4937d8[_0x5d3682(0x1a6)]=_0x456744,_0x164cf1=_0x4937d8;}else{const _0x134232={};_0x134232['os']=_0x1c29d4,_0x134232[_0x5d3682(0x130)]=_0x45b95e,_0x134232[_0x5d3682(0x1a6)]=_0x456744,_0x134232['browserVersion']=_0x31130a,_0x164cf1=_0x134232;}const _0x3aa6b9={},_0x13ce4e=_0x471cc2[_0x1ed917];Object['keys'](_0x13ce4e)[_0x5d3682(0x151)](_0x16b9a8=>{const _0x1d7f57=_0x5d3682;_0x45e5cb[_0x1d7f57(0x144)](_0x13ce4e[_0x16b9a8]['length'],0x0)&&(_0x3aa6b9[_0x16b9a8]=_0x13ce4e[_0x16b9a8]);}),_0x5ac4e7['OeyiR'](Object[_0x5d3682(0x14c)](_0x3aa6b9)[_0x5d3682(0x1ae)],0x0)&&(_0x164cf1[_0x5ac4e7[_0x5d3682(0x16f)]]=_0x3aa6b9,_0x3f6595['push'](_0x164cf1));}),_0x5ac4e7[_0x39c0d8(0x135)](_0x3f6595[_0x39c0d8(0x1ae)],0x0)?_0x4e2d8c[_0x39c0d8(0x145)]=_0x3f6595:delete _0x4e2d8c[_0x5ac4e7[_0x39c0d8(0x140)]];}}}}catch(_0x3ed237){delete _0x4e2d8c[_0x5ac4e7[_0x39c0d8(0x140)]],logger[_0x39c0d8(0x148)](_0x5ac4e7[_0x39c0d8(0x1a9)](_0x5ac4e7[_0x39c0d8(0x14e)],_0x3ed237));}const _0x3e49a2=helper[_0x39c0d8(0x149)](_0xe7cbd,_0xe7cbd[_0x39c0d8(0x176)]),_0x2b5fc0={'userName':helper[_0x39c0d8(0x18e)](_0xe7cbd),'accessKey':helper[_0x39c0d8(0x13e)](_0xe7cbd),'event_type':_0x34c9ab,'detectedFramework':_0x42d725,'buildHashedId':globals[_0x39c0d8(0x1a8)](_0x5ac4e7['IfCYK']),'optimalHubUrl':helper['getOptimalHubUrl'](),'event_properties':{'testhub_uuid':process[_0x39c0d8(0x160)][testHubConstants[_0x39c0d8(0x185)][_0x39c0d8(0x186)]]||'','sdkRunId':global[_0x39c0d8(0x15d)],'product_map':_0x5ac4e7['UNtOV'](getProductMap,_0xe7cbd),'productMap':_0x5ac4e7[_0x39c0d8(0x1ac)](getProductMap,_0xe7cbd),'language_framework':_0xe7cbd[_0x39c0d8(0x1ab)]||_0x5ac4e7[_0x39c0d8(0x1aa)],'referrer':helper[_0x39c0d8(0x181)](_0x42d725),'framework':_0xe7cbd['framework'],'frameworkVersion':helper[_0x39c0d8(0x198)](_0x42d725),'automationFramework':_0x3e49a2[_0x39c0d8(0x15b)],'automationFrameworkVersion':_0x3e49a2['version'],'language':_0x5ac4e7[_0x39c0d8(0x19f)],'languageVersion':process[_0x39c0d8(0x19e)],'product':_0x2fabfa,'buildName':_0xe7cbd[_0x39c0d8(0x164)]||_0x5ac4e7[_0x39c0d8(0x179)],'buildIdentifier':_0x286f0d,'os':os[_0x39c0d8(0x1b6)]()||_0x5ac4e7[_0x39c0d8(0x1aa)],'hostname':os[_0x39c0d8(0x165)]()||_0x5ac4e7[_0x39c0d8(0x1aa)],..._0x4e2d8c}};try{_0x5ac4e7[_0x39c0d8(0x141)](_0x34c9ab,_0x5ac4e7[_0x39c0d8(0x169)])&&(_0x2b5fc0[_0x39c0d8(0x18d)][_0x39c0d8(0x134)]=helper['sanitizeBrowserStackConfig'](_0xe7cbd)),_0x5ac4e7[_0x39c0d8(0x141)](_0x42d725,_0x5ac4e7[_0x39c0d8(0x14d)])?_0x2b5fc0['event_properties'][_0x39c0d8(0x152)]=helper[_0x39c0d8(0x166)][_0x39c0d8(0x1b5)](null,_0x5ac4e7[_0x39c0d8(0x14b)](getTransformPath),!![]):_0x2b5fc0['event_properties'][_0x39c0d8(0x16c)]=helper[_0x39c0d8(0x1a1)](_0x5ac4e7['fpzBe']);}catch(_0x3f33b9){logger[_0x39c0d8(0x148)](_0x39c0d8(0x138)+_0x3f33b9);}const _0x5cdde4={};_0x5cdde4[_0x39c0d8(0x16b)]=_0x5ac4e7[_0x39c0d8(0x193)];const _0x189720={'headers':_0x5cdde4,'body':_0x2b5fc0,'auth':{'user':helper[_0x39c0d8(0x18e)](_0xe7cbd),'pass':helper[_0x39c0d8(0x13e)](_0xe7cbd)},'json':!![]};logger['debug'](_0x39c0d8(0x168)+JSON[_0x39c0d8(0x1a0)](_0x189720[_0x39c0d8(0x159)])[_0x39c0d8(0x17d)](new RegExp(helper[_0x39c0d8(0x18e)](_0xe7cbd),'g'),_0x5ac4e7[_0x39c0d8(0x1a2)])[_0x39c0d8(0x17d)](new RegExp(helper['getAccessKey'](_0xe7cbd),'g'),_0x5ac4e7[_0x39c0d8(0x1a2)]));try{const _0x20a374=await helper[_0x39c0d8(0x174)](_0x5ac4e7[_0x39c0d8(0x175)],constants[_0x39c0d8(0x1b4)],_0x189720,_0xe7cbd);logger[_0x39c0d8(0x148)](_0x39c0d8(0x163)+_0x34c9ab+_0x39c0d8(0x18a)+util[_0x39c0d8(0x13b)]('%j',_0x20a374));}catch(_0x3fe637){logger[_0x39c0d8(0x148)](_0x39c0d8(0x1b2)+FUNNEL_INSTRUMENTATION_API_URL+_0x39c0d8(0x155)+util['format'](_0x3fe637));}},exports[a93_0x36fb41(0x137)]=async _0x9d0f70=>{const _0x38b413=a93_0x36fb41,_0x119625={'ysKBP':function(_0x28cf62){return _0x28cf62();},'ZQxVn':_0x38b413(0x150),'LvTcn':_0x38b413(0x190),'GBNRt':function(_0x1bbb23,_0x14d6f4){return _0x1bbb23(_0x14d6f4);},'WpOMj':_0x38b413(0x167),'aauTQ':function(_0x4d5bad,_0x34e355,_0x108aaa){return _0x4d5bad(_0x34e355,_0x108aaa);},'OeuSR':function(_0x36e772,_0x1d1a2f){return _0x36e772+_0x1d1a2f;},'UVxrH':'Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20'};try{await _0x9d0f70['stopPercy'](),_0x119625['ysKBP'](printNudgeLocalNotSetError);const _0x1cab74={};_0x1cab74['error']=_0x9d0f70[_0x38b413(0x13d)]?_0x9d0f70[_0x38b413(0x13d)]:'{}';const _0x266cbf=_0x1cab74,_0x4f28bd=Object['assign']({},_0x266cbf);!!_0x9d0f70[_0x38b413(0x158)]&&(_0x4f28bd[_0x119625[_0x38b413(0x16d)]]={'reason':_0x119625[_0x38b413(0x199)],'signal':_0x9d0f70[_0x38b413(0x158)]});unhandledErrors=_0x9d0f70[_0x38b413(0x1a5)][_0x38b413(0x154)]('\x0a');let _0x37f4aa,_0x4c09f8,_0x16d20d;_0x119625[_0x38b413(0x184)](isTurboScaleSession,_0x9d0f70[_0x38b413(0x17c)])?([_0x37f4aa,_0x4c09f8]=await helper[_0x38b413(0x17f)](_0x9d0f70[_0x38b413(0x17c)]),[_0x16d20d]=await Promise['all']([helper[_0x38b413(0x183)](_0x37f4aa,_0x9d0f70[_0x38b413(0x17c)]),exports['fireFunnelTestEvent'](_0x119625[_0x38b413(0x180)],_0x4f28bd,_0x9d0f70['config'],_0x9d0f70[_0x38b413(0x176)])])):([_0x37f4aa,_0x4c09f8]=await helper['getBuildLink'](_0x9d0f70['config']),[_0x16d20d]=await Promise[_0x38b413(0x192)]([helper[_0x38b413(0x197)](_0x37f4aa,_0x9d0f70['config']),exports[_0x38b413(0x19b)](_0x119625['WpOMj'],_0x4f28bd,_0x9d0f70['config'],_0x9d0f70[_0x38b413(0x176)])])),_0x16d20d&&await _0x119625[_0x38b413(0x189)](generateCIArtifacts,_0x16d20d,_0x4c09f8),logger[_0x38b413(0x146)](_0x38b413(0x15c)+_0x9d0f70[_0x38b413(0x15d)]+_0x38b413(0x13c)+process[_0x38b413(0x160)]['BROWSERSTACK_TESTHUB_UUID']),await helper[_0x38b413(0x188)](_0x9d0f70[_0x38b413(0x17c)]);}catch(_0x362f6e){logger['debug'](_0x119625[_0x38b413(0x14a)](_0x119625[_0x38b413(0x142)],_0x362f6e));}helper[_0x38b413(0x171)]();};function a93_0x2c2a(){const _0x171f71=['fireFunnelTestEvent','selenium-webdriver','222408Llpper','version','oMLkR','stringify','getPackageVersion','eGLuN','uvAJG','_buildHashedId','unhandledErrors','browser','./ats/helper','getGlobal','dQvYH','qcsYQ','source','epqwF','vCYqQ','length','app','./helper','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','Error\x20in\x20firing\x20request\x20to\x20','POST','FUNNEL_INSTRUMENTATION_API_URL','apply','type','APP_AUTOMATE','osVersion','../bin/utils/constants','39DsxhSO','./globals','browserStackConfig','OeyiR','Playwright','finalExecution','Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20','browserVersion','../helpers/testhub/constants','format',',\x20testhub\x20id:\x20','errorMessage','getAccessKey','deviceName','ZPuFg','JDofF','UVxrH','28IfNztg','HThsc','error','info','codeceptjs','debug','getTestFrameworkDetails','OeuSR','IgIQA','keys','MhjwQ','YgXER','AUTOMATE_PRODUCTS','finishedMetadata','forEach','playwrightVersion','9425220zTexih','join','\x20:\x20','./logger','5tQJPls','killSignal','body','OIgFQ','name','SDK\x20run\x20ended\x20for\x20id:\x20','sdkRunID','object','winstonLogger','env','./testhub/utils','tests','API\x20Event\x20','buildName','hostname','requirePWModule','SDKTestSuccessful','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','XcwaP','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','content-type','seleniumVersion','ZQxVn','buildIdentifier','VsqwO','189024YInetd','notifyUpdate','every','KkrQk','nodeRequest','IkNut','framework','448842AcACnY','1stAkfn','pheLV','null','1548qXwNDl','config','replace','values','getTurboScaleBuildLink','WpOMj','getNodeAgent','680eGsUNt','getTurboScaleSessionsList','GBNRt','ENV_VAR','BROWSERSTACK_TESTHUB_UUID','split','sendLogs','aauTQ','\x20response\x20-\x20','50250rNLyMG','globalException','event_properties','getUserName','../bin/playwright/reporter/pwUtils','user_killed','isBrowserstackInfra','all','uFRRi','[REDACTED]','71992UfUvOG','3699382yvMPzC','getSessionsList','getFrameworkVersion','LvTcn','nodejs'];a93_0x2c2a=function(){return _0x171f71;};return a93_0x2c2a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x40da24,_0xb73230){var _0x4c3d41=a94_0x4726,_0x48da45=_0x40da24();while(!![]){try{var _0x35d6a2=parseInt(_0x4c3d41(0x1e5))/0x1+parseInt(_0x4c3d41(0x20b))/0x2*(parseInt(_0x4c3d41(0x1e4))/0x3)+parseInt(_0x4c3d41(0x239))/0x4+-parseInt(_0x4c3d41(0x1e1))/0x5+parseInt(_0x4c3d41(0x223))/0x6+-parseInt(_0x4c3d41(0x1fa))/0x7+parseInt(_0x4c3d41(0x1e8))/0x8*(parseInt(_0x4c3d41(0x230))/0x9);if(_0x35d6a2===_0xb73230)break;else _0x48da45['push'](_0x48da45['shift']());}catch(_0x15d6be){_0x48da45['push'](_0x48da45['shift']());}}}(a94_0xbbb8,0x401eb),exports['W3CMapping']=()=>{var _0x4f996c=a94_0x4726,_0xe965ba={};_0xe965ba[_0x4f996c(0x1e9)]=_0x4f996c(0x221),_0xe965ba['EtoGE']='accessKey',_0xe965ba[_0x4f996c(0x20d)]=_0x4f996c(0x217),_0xe965ba[_0x4f996c(0x1d9)]=_0x4f996c(0x204),_0xe965ba['EFyqp']='browserVersion',_0xe965ba[_0x4f996c(0x24d)]=_0x4f996c(0x23d),_0xe965ba[_0x4f996c(0x227)]='projectName',_0xe965ba[_0x4f996c(0x21f)]=_0x4f996c(0x254),_0xe965ba[_0x4f996c(0x22e)]='sessionName',_0xe965ba[_0x4f996c(0x209)]=_0x4f996c(0x257),_0xe965ba[_0x4f996c(0x206)]=_0x4f996c(0x1ff),_0xe965ba['TCybf']=_0x4f996c(0x1e0),_0xe965ba[_0x4f996c(0x24f)]=_0x4f996c(0x212),_0xe965ba['iVxsD']=_0x4f996c(0x224),_0xe965ba['UDThf']=_0x4f996c(0x203),_0xe965ba[_0x4f996c(0x218)]='appiumLogs',_0xe965ba[_0x4f996c(0x1ee)]=_0x4f996c(0x21b),_0xe965ba['wZYkh']=_0x4f996c(0x219),_0xe965ba[_0x4f996c(0x24c)]='telemetryLogs',_0xe965ba[_0x4f996c(0x1f6)]=_0x4f996c(0x226),_0xe965ba['TUIbM']=_0x4f996c(0x247),_0xe965ba[_0x4f996c(0x21c)]=_0x4f996c(0x1ed),_0xe965ba['iKFsU']='seleniumVersion',_0xe965ba[_0x4f996c(0x245)]='maskCommands',_0xe965ba['eqUGI']=_0x4f996c(0x1f8),_0xe965ba[_0x4f996c(0x20a)]=_0x4f996c(0x1e6),_0xe965ba['IAGcG']=_0x4f996c(0x22d),_0xe965ba['Ihnuv']=_0x4f996c(0x22f),_0xe965ba[_0x4f996c(0x214)]='bfcache',_0xe965ba[_0x4f996c(0x205)]=_0x4f996c(0x1d8),_0xe965ba[_0x4f996c(0x255)]='disableCorsRestrictions',_0xe965ba[_0x4f996c(0x20c)]=_0x4f996c(0x200),_0xe965ba['YzfgL']=_0x4f996c(0x234),_0xe965ba[_0x4f996c(0x23c)]='appiumVersion',_0xe965ba[_0x4f996c(0x242)]=_0x4f996c(0x253),_0xe965ba['ECUYp']='customNetwork',_0xe965ba[_0x4f996c(0x1f0)]='networkProfile',_0xe965ba['qcCER']=_0x4f996c(0x23e),_0xe965ba[_0x4f996c(0x1f5)]=_0x4f996c(0x222),_0xe965ba[_0x4f996c(0x1eb)]=_0x4f996c(0x1f2),_0xe965ba[_0x4f996c(0x258)]=_0x4f996c(0x23f),_0xe965ba[_0x4f996c(0x23a)]=_0x4f996c(0x1fb),_0xe965ba[_0x4f996c(0x231)]=_0x4f996c(0x1df),_0xe965ba[_0x4f996c(0x225)]='accessibilityOptions.scannerVersion',_0xe965ba['uTqHV']='accessibilityOptions.scannerProcessingTimeout',_0xe965ba['LuQYj']=_0x4f996c(0x248),_0xe965ba['lkpKn']='accessibilityOptions.includeIssueType.needsReview',_0xe965ba[_0x4f996c(0x22a)]=_0x4f996c(0x202),_0xe965ba['bxzhA']=_0x4f996c(0x20e),_0xe965ba[_0x4f996c(0x1ea)]='enableSim',_0xe965ba[_0x4f996c(0x1f7)]=_0x4f996c(0x251),_0xe965ba['KLiwM']=_0x4f996c(0x21a),_0xe965ba[_0x4f996c(0x1fd)]=_0x4f996c(0x21d),_0xe965ba[_0x4f996c(0x233)]=_0x4f996c(0x235);var _0x3a11d4=_0xe965ba,_0x557edb={};return _0x557edb['browserstack.user']=_0x3a11d4[_0x4f996c(0x1e9)],_0x557edb['browserstack.key']=_0x3a11d4[_0x4f996c(0x229)],_0x557edb['os']='os',_0x557edb[_0x4f996c(0x1e7)]=_0x3a11d4[_0x4f996c(0x20d)],_0x557edb[_0x4f996c(0x204)]=_0x3a11d4[_0x4f996c(0x1d9)],_0x557edb[_0x4f996c(0x211)]=_0x3a11d4['EFyqp'],_0x557edb['browserstack.use_w3c']=_0x3a11d4['ugQvZ'],_0x557edb[_0x4f996c(0x207)]=_0x3a11d4[_0x4f996c(0x227)],_0x557edb['build']=_0x3a11d4[_0x4f996c(0x21f)],_0x557edb['name']=_0x3a11d4[_0x4f996c(0x22e)],_0x557edb[_0x4f996c(0x24b)]=_0x3a11d4['XtPFC'],_0x557edb[_0x4f996c(0x213)]=_0x3a11d4['sTGVM'],_0x557edb[_0x4f996c(0x1db)]=_0x3a11d4[_0x4f996c(0x1de)],_0x557edb[_0x4f996c(0x1dd)]=_0x3a11d4[_0x4f996c(0x24f)],_0x557edb[_0x4f996c(0x250)]=_0x3a11d4['iVxsD'],_0x557edb['browserstack.networkLogsOptions']=_0x3a11d4[_0x4f996c(0x201)],_0x557edb[_0x4f996c(0x236)]=_0x3a11d4[_0x4f996c(0x218)],_0x557edb[_0x4f996c(0x240)]=_0x3a11d4['ZHdiI'],_0x557edb['browserstack.seleniumLogs']=_0x3a11d4[_0x4f996c(0x1fe)],_0x557edb[_0x4f996c(0x232)]=_0x3a11d4[_0x4f996c(0x24c)],_0x557edb[_0x4f996c(0x228)]=_0x3a11d4['CzRYO'],_0x557edb[_0x4f996c(0x1f4)]=_0x3a11d4['TUIbM'],_0x557edb['resolution']=_0x3a11d4[_0x4f996c(0x21c)],_0x557edb['browserstack.selenium_version']=_0x3a11d4['iKFsU'],_0x557edb[_0x4f996c(0x1ec)]=_0x3a11d4[_0x4f996c(0x245)],_0x557edb[_0x4f996c(0x1fc)]=_0x3a11d4[_0x4f996c(0x22c)],_0x557edb['browserstack.maskBasicAuth']=_0x3a11d4[_0x4f996c(0x20a)],_0x557edb[_0x4f996c(0x24e)]=_0x3a11d4['IAGcG'],_0x557edb[_0x4f996c(0x208)]=_0x3a11d4[_0x4f996c(0x210)],_0x557edb[_0x4f996c(0x238)]=_0x3a11d4[_0x4f996c(0x214)],_0x557edb['browserstack.wsLocalSupport']=_0x3a11d4['hGvtg'],_0x557edb[_0x4f996c(0x244)]=_0x3a11d4[_0x4f996c(0x255)],_0x557edb['device']=_0x3a11d4[_0x4f996c(0x20c)],_0x557edb['realMobile']=_0x3a11d4[_0x4f996c(0x215)],_0x557edb[_0x4f996c(0x22b)]=_0x3a11d4['nRiAm'],_0x557edb[_0x4f996c(0x253)]=_0x3a11d4[_0x4f996c(0x242)],_0x557edb[_0x4f996c(0x23b)]=_0x3a11d4[_0x4f996c(0x259)],_0x557edb['browserstack.networkProfile']=_0x3a11d4[_0x4f996c(0x1f0)],_0x557edb[_0x4f996c(0x241)]=_0x3a11d4[_0x4f996c(0x1f3)],_0x557edb[_0x4f996c(0x252)]=_0x3a11d4['CLEdR'],_0x557edb[_0x4f996c(0x20f)]=_0x3a11d4[_0x4f996c(0x1eb)],_0x557edb['browserstack.buildProductMap']=_0x3a11d4[_0x4f996c(0x258)],_0x557edb[_0x4f996c(0x256)]=_0x3a11d4[_0x4f996c(0x23a)],_0x557edb[_0x4f996c(0x216)]=_0x3a11d4[_0x4f996c(0x231)],_0x557edb[_0x4f996c(0x21e)]=_0x3a11d4['MozTL'],_0x557edb[_0x4f996c(0x246)]=_0x3a11d4['uTqHV'],_0x557edb[_0x4f996c(0x237)]=_0x3a11d4[_0x4f996c(0x1f9)],_0x557edb[_0x4f996c(0x1dc)]=_0x3a11d4[_0x4f996c(0x249)],_0x557edb[_0x4f996c(0x1e3)]=_0x3a11d4[_0x4f996c(0x22a)],_0x557edb[_0x4f996c(0x1ef)]=_0x3a11d4['bxzhA'],_0x557edb[_0x4f996c(0x243)]=_0x3a11d4[_0x4f996c(0x1ea)],_0x557edb[_0x4f996c(0x1e2)]=_0x3a11d4[_0x4f996c(0x1f7)],_0x557edb[_0x4f996c(0x220)]=_0x3a11d4[_0x4f996c(0x24a)],_0x557edb[_0x4f996c(0x1f1)]=_0x3a11d4[_0x4f996c(0x1fd)],_0x557edb[_0x4f996c(0x1da)]=_0x3a11d4[_0x4f996c(0x233)],_0x557edb;});function a94_0x4726(_0x27c7a1,_0x56a1b4){var _0xbbb885=a94_0xbbb8();return a94_0x4726=function(_0x47261b,_0x272704){_0x47261b=_0x47261b-0x1d8;var _0xa83f09=_0xbbb885[_0x47261b];return _0xa83f09;},a94_0x4726(_0x27c7a1,_0x56a1b4);}function a94_0xbbb8(){var _0x162bf7=['HwUBs','browserstack.overridelocalInfo.localIdentifier','browserstack.debug','browserstack.accessibilityOptions.includeIssueType.needsReview','browserstack.console','TCybf','accessibilityOptions.wcagVersion','debug','1345580sUcLgp','browserstack.simOptions','browserstack.accessibilityOptions.authToken','159NRdsFb','15473QQjmSl','maskBasicAuth','os_version','39968YcUXct','ylULT','pmLNX','sDUvn','browserstack.maskCommands','resolution','ZHdiI','browserstack.uploadMedia','CsDJK','browserstack.overridelocalInfo.userAuthToken','accessibility','qcCER','browserstack.timezone','CLEdR','CzRYO','MmpMI','idleTimeout','LuQYj','2089780hfXfft','testhubBuildUuid','browserstack.idleTimeout','pFpiA','wZYkh','localIdentifier','deviceName','UDThf','accessibilityOptions.authToken','networkLogsOptions','browser','hGvtg','sTGVM','project','browserstack.hosts','XtPFC','PzVBv','2922HFYtkm','nzBct','cQaWj','uploadMedia','browserstack.accessibility','Ihnuv','browser_version','consoleLogs','browserstack.localIdentifier','YVxpI','YzfgL','browserstack.accessibilityOptions.wcagVersion','osVersion','LDJlf','seleniumLogs','playwrightVersion','video','Ajcli','overridelocalInfo.userAuthToken','browserstack.accessibilityOptions.scannerVersion','CMwSJ','browserstack.playwrightVersion','userName','browserstackSDK','1570524yrpDOA','networkLogs','MozTL','geoLocation','hErOz','browserstack.geoLocation','EtoGE','cHFLe','browserstack.appium_version','eqUGI','autoWait','viYQq','hosts','225FMtIql','GfHdL','browserstack.telemetryLogs','HqAfJ','realMobile','overridelocalInfo.localIdentifier','browserstack.appiumLogs','browserstack.accessibilityOptions.includeIssueType.bestPractice','browserstack.bfcache','1402924cCqLjQ','BzHvv','browserstack.customNetwork','nRiAm','useW3c','buildIdentifier','buildProductMap','browserstack.video','browserstack.buildIdentifier','QWRTv','browserstack.enableSim','browserstack.disableCorsRestrictions','QjBAn','browserstack.accessibilityOptions.scannerProcessingTimeout','timezone','accessibilityOptions.includeIssueType.bestPractice','lkpKn','KLiwM','browserstack.local','dluZG','ugQvZ','browserstack.autoWait','DfnAi','browserstack.networkLogs','simOptions','browserstack.browserstackSDK','deviceOrientation','buildName','wtSqC','browserstack.testhubBuildUuid','local','RvXnK','ECUYp','wsLocalSupport'];a94_0xbbb8=function(){return _0x162bf7;};return a94_0xbbb8();}
|