browserstack-node-sdk 1.34.10 → 1.34.12
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/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.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 +2 -2
- 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/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.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-tester.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 a1_0x1caa40=a1_0x8953;(function(_0x53f36e,_0x4bc477){const _0xdb4035=a1_0x8953,_0x1483ff=_0x53f36e();while(!![]){try{const _0x54a344=parseInt(_0xdb4035(0x15c))/0x1+parseInt(_0xdb4035(0x1b4))/0x2+parseInt(_0xdb4035(0x1c9))/0x3+-parseInt(_0xdb4035(0x156))/0x4+-parseInt(_0xdb4035(0x193))/0x5*(-parseInt(_0xdb4035(0x1d6))/0x6)+parseInt(_0xdb4035(0x16e))/0x7*(parseInt(_0xdb4035(0x188))/0x8)+-parseInt(_0xdb4035(0x162))/0x9;if(_0x54a344===_0x4bc477)break;else _0x1483ff['push'](_0x1483ff['shift']());}catch(_0x56667c){_0x1483ff['push'](_0x1483ff['shift']());}}}(a1_0x4738,0x4a02c));const fs=require('fs'),util=require(a1_0x1caa40(0x1c2)),{requireModule,markSessionStatus,isUndefined,isTrue,isBrowserstackInfra}=require(a1_0x1caa40(0x1cd)),logger=require(a1_0x1caa40(0x192))[a1_0x1caa40(0x1a9)],testOpsHelper=require(a1_0x1caa40(0x1da)),requestSpy=require(a1_0x1caa40(0x198)),PlaywrightSessionDetails=require('../../bin/playwright/sessionDetails'),{O11yHelper,TEST_EVENTS,STATE_PASSED,STATE_FAILED}=require(a1_0x1caa40(0x164)),{shouldScanTestForAccessibility,isAccessibilityAutomationSession}=require(a1_0x1caa40(0x1e0)),AccessibilityHelper=require(a1_0x1caa40(0x167)),scripts=require(a1_0x1caa40(0x1dd)),PerformanceTester=require('../../helpers/performance-tester'),{processWebDriverConfig,shouldPatchExecuteScript}=require(a1_0x1caa40(0x17a)),testHubConstants=require(a1_0x1caa40(0x1a2)),CodeceptJS=requireModule('codeceptjs/lib/index.js'),CodeceptUtils=requireModule(a1_0x1caa40(0x189)),CodeceptWebDriver=requireModule('codeceptjs/lib/helper/WebDriver.js'),CodeceptRecorder=requireModule('codeceptjs/lib/recorder.js'),CodeceptPlaywright=requireModule(a1_0x1caa40(0x170)),playwrightMarkSessionStatus=(_0x2ae804,_0x2fed05,_0x3612d1)=>{const _0x4bea78=a1_0x1caa40,_0x4daa10={'IBCMN':'setSessionStatus','EjNpv':function(_0x17c1d0,_0x566dec){return _0x17c1d0(_0x566dec);}},_0x1c51c1={};_0x1c51c1[_0x4bea78(0x1ae)]=_0x2fed05;const _0x2d6893={};_0x2d6893[_0x4bea78(0x14a)]=_0x4daa10['IBCMN'],_0x2d6893['arguments']=_0x1c51c1;const _0x163847=_0x2d6893;return!_0x4daa10[_0x4bea78(0x153)](isUndefined,_0x3612d1)&&(_0x163847['arguments'][_0x4bea78(0x17c)]=JSON['stringify'](_0x3612d1)),_0x2ae804[_0x4bea78(0x1a4)](()=>{},_0x4bea78(0x1d5)+JSON['stringify'](_0x163847));},o11ySync=async _0x20116e=>{const _0x2b0dd5=a1_0x1caa40,_0x8e8986={};_0x8e8986[_0x2b0dd5(0x1b3)]=function(_0x65e04f,_0x55a7f5){return _0x65e04f===_0x55a7f5;},_0x8e8986[_0x2b0dd5(0x151)]=_0x2b0dd5(0x185);const _0x5ea9ee=_0x8e8986;_0x5ea9ee[_0x2b0dd5(0x1b3)](_0x20116e[_0x2b0dd5(0x158)][_0x2b0dd5(0x16b)],_0x5ea9ee['JDzpK'])?await _0x20116e[_0x2b0dd5(0x1a4)](_0x4d8909=>{},testOpsHelper[_0x2b0dd5(0x14e)]()):await _0x20116e[_0x2b0dd5(0x1a4)](testOpsHelper[_0x2b0dd5(0x14e)]());},markSessionName=async(_0x805c15,_0xc992e8)=>{const _0x3b2a32=a1_0x1caa40,_0x18047e={};_0x18047e[_0x3b2a32(0x1df)]=_0x3b2a32(0x14c),_0x18047e[_0x3b2a32(0x179)]=function(_0x592edf,_0x48972d){return _0x592edf===_0x48972d;},_0x18047e[_0x3b2a32(0x1a7)]=_0x3b2a32(0x185);const _0x2de3db=_0x18047e,_0x468da2={};_0x468da2[_0x3b2a32(0x16b)]=_0xc992e8;const _0x455357={};_0x455357[_0x3b2a32(0x14a)]=_0x2de3db['COBzM'],_0x455357['arguments']=_0x468da2;const _0x515cb9=_0x455357;_0x2de3db[_0x3b2a32(0x179)](_0x805c15[_0x3b2a32(0x158)][_0x3b2a32(0x16b)],_0x2de3db[_0x3b2a32(0x1a7)])?await _0x805c15[_0x3b2a32(0x1a4)](()=>{},'browserstack_executor:\x20'+JSON[_0x3b2a32(0x15e)](_0x515cb9)):await _0x805c15['executeScript'](_0x3b2a32(0x1d5)+JSON[_0x3b2a32(0x15e)](_0x515cb9));},patchSaveScreenshot=_0x5eb733=>{const _0x48f006=a1_0x1caa40,_0x202a91={'fRiiB':'base64','kahHP':'TEST_SCREENSHOT','bHIzc':function(_0x5bf56b){return _0x5bf56b();},'bEAgJ':function(_0x35ee7b,_0x26228f){return _0x35ee7b(_0x26228f);}};_0x202a91[_0x48f006(0x159)](isTrue,process[_0x48f006(0x19b)]['BS_TESTOPS_ALLOW_SCREENSHOTS'])&&!_0x5eb733[_0x48f006(0x163)]&&(_0x5eb733[_0x48f006(0x163)]=!![],_0x5eb733[_0x48f006(0x14b)]=_0x5eb733[_0x48f006(0x181)],_0x5eb733[_0x48f006(0x181)]=(_0x357c80,_0x4f2fef=![])=>{const _0x4fc2a5=_0x48f006,_0x82aff6={'YRtzy':_0x202a91[_0x4fc2a5(0x1d8)],'fyBCY':_0x202a91[_0x4fc2a5(0x1cb)],'Bltdj':function(_0x6f26c9){const _0xe60a37=_0x4fc2a5;return _0x202a91[_0xe60a37(0x1a3)](_0x6f26c9);}};return new Promise(function(_0x5bac2d,_0x38bcca){const _0x3acf84=_0x4fc2a5;_0x5eb733[_0x3acf84(0x14b)](_0x357c80,_0x4f2fef)[_0x3acf84(0x18d)](()=>{const _0xcc9149=_0x3acf84,_0x52d1f7=CodeceptUtils[_0xcc9149(0x149)](_0x357c80),_0x3231a6=fs['readFileSync'](_0x52d1f7);process[_0xcc9149(0x19f)](_0xcc9149(0x1a8)+process[_0xcc9149(0x152)],{'timestamp':new Date()['toISOString'](),'message':_0x3231a6[_0xcc9149(0x1ba)](_0x82aff6['YRtzy']),'kind':_0x82aff6['fyBCY']}),_0x82aff6[_0xcc9149(0x1c8)](_0x5bac2d);})['catch'](()=>null);});});},patchWebDriverBefore=_0x556325=>{const _0x307830=a1_0x1caa40,_0x4c7d2f={'lbScL':function(_0x2fde64){return _0x2fde64();},'Dtgjg':function(_0x5722ed,_0x1e635c){return _0x5722ed(_0x1e635c);},'qYcHz':function(_0x37fb0c,_0x10739c){return _0x37fb0c===_0x10739c;},'eimaS':'Element','dyjcV':function(_0x3b3a67,_0x3fb182){return _0x3b3a67(_0x3fb182);}},_0x201840=async function(_0x2313b9,_0x25ee92){const _0x5152f4=a1_0x8953;return _0x4c7d2f[_0x5152f4(0x1c1)](isAccessibilityAutomationSession)&&!global[_0x5152f4(0x1c6)]&&global[_0x5152f4(0x19e)]&&scripts[_0x5152f4(0x17d)](_0x2313b9[_0x5152f4(0x16b)])&&_0x4c7d2f[_0x5152f4(0x154)](shouldPatchExecuteScript,arguments[0x2])&&(global['bstackAllyScanning']=!![],logger[_0x5152f4(0x1d0)](_0x5152f4(0x18e)+_0x2313b9[_0x5152f4(0x1ca)]+'\x20'+_0x2313b9['name']),await AccessibilityHelper['browserStackExecuteDriver'](_0x556325,scripts[_0x5152f4(0x190)])),global[_0x5152f4(0x1c6)]=![],_0x25ee92[_0x5152f4(0x18f)](this,Array['prototype'][_0x5152f4(0x1d7)]['call'](arguments,0x2));},_0x229cd9=CodeceptWebDriver['prototype'][_0x307830(0x1ac)];CodeceptWebDriver[_0x307830(0x1a5)]['_before']=async function(){const _0x46e96c=_0x307830;await _0x229cd9[_0x46e96c(0x18f)](this,arguments),scripts['commandsToWrap'][_0x46e96c(0x1c7)](_0xc7a0c3=>_0xc7a0c3[_0x46e96c(0x16b)]&&_0xc7a0c3['class'])[_0x46e96c(0x166)](_0x2ec7fc=>{const _0x14a672=_0x46e96c;this['browser'][_0x14a672(0x1a1)](_0x2ec7fc[_0x14a672(0x16b)],_0x201840[_0x14a672(0x187)](this,_0x2ec7fc),_0x4c7d2f['qYcHz'](_0x2ec7fc[_0x14a672(0x1ca)],_0x4c7d2f[_0x14a672(0x1b1)]));}),_0x4c7d2f['dyjcV'](processWebDriverConfig,_0x556325);};},patchPlaywrightBefore=()=>{const _0xe433b=a1_0x1caa40;PlaywrightSessionDetails[_0xe433b(0x147)]();const _0x4d95a0=CodeceptPlaywright[_0xe433b(0x1a5)][_0xe433b(0x1ac)];CodeceptPlaywright[_0xe433b(0x1a5)][_0xe433b(0x1ac)]=async function(){const _0x389fa5=_0xe433b;this[_0x389fa5(0x191)]=await this['browser'][_0x389fa5(0x14d)]()[0x0],await _0x4d95a0[_0x389fa5(0x18f)](this,arguments);};},getCodeceptDriver=()=>{const _0x2dfbeb=a1_0x1caa40,_0x2b520c={};_0x2b520c['njxqc']='WebDriver',_0x2b520c[_0x2dfbeb(0x15f)]=_0x2dfbeb(0x185),_0x2b520c['DXQxS']=_0x2dfbeb(0x1b0),_0x2b520c['UwJOG']='TestCafe';const _0x13e6a9=_0x2b520c,_0x3a25fe=[_0x13e6a9[_0x2dfbeb(0x184)],_0x13e6a9['HEvlF'],_0x13e6a9[_0x2dfbeb(0x173)],_0x13e6a9[_0x2dfbeb(0x1bc)]],_0xa93be6=_0x3a25fe['find'](_0x18e41c=>!!CodeceptJS[_0x2dfbeb(0x15d)][_0x2dfbeb(0x17e)](_0x18e41c));if(!_0xa93be6)return null;return CodeceptJS[_0x2dfbeb(0x15d)]['helpers'](_0xa93be6);};function a1_0x8953(_0x227e44,_0x504134){const _0x4738b1=a1_0x4738();return a1_0x8953=function(_0x895314,_0x3967b6){_0x895314=_0x895314-0x146;let _0x3edcb3=_0x4738b1[_0x895314];return _0x3edcb3;},a1_0x8953(_0x227e44,_0x504134);}function a1_0x4738(){const _0x83c336=['thJwtToken','MnAgR','oAwQk','./helper.js','after','reason','shouldWrapCommand','helpers','skipSessionStatus','info','saveScreenshot','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20summary.','IRZyE','njxqc','Playwright','exports','bind','92648gpSgHK','codeceptjs/lib/utils.js','BROWSERSTACK_TESTHUB_JWT','vXGcm','all','then','Performing\x20scan\x20for\x20','apply','performScan','browserContext','../../helpers/logger','16955qBJowI','GRfPw','vLDdn','stop','hook','../../helpers/request-spy','nCcgp','NOEwt','env','stopMonitoring','started','accessibilityPlatform','emit','getResultsSummary','overwriteCommand','../../helpers/testhub/constants.js','bHIzc','executeScript','prototype','bViCf','DpvTr','bs:addLog:','winstonLogger','test','TEST_LOG','_before','HOOK_RUN_STARTED','status','toISOString','Puppeteer','eimaS','step','yROCi','117144zyZdzR','TEST_RUN_STARTED','failed','skipSessionName','HOOK_RUN_FINISHED','browserStackExecuteDriver','toString','warn','UwJOG','format','saveTestResults','skipped','startMonitoring','lbScL','util','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','getResults','ENV_VAR','bstackAllyScanning','filter','Bltdj','619704pXXshd','class','kahHP','title','../../helpers/helper','FiBdL','passed','debug','before','Failed\x20in\x20sending\x20TestRunFinish\x20event:\x20','testAnalyticsId','TEST_RUN_FINISHED','browserstack_executor:\x20','246Gpfxpk','slice','fRiiB','MvcPC','../../helpers/test-observability/utils','captureError','ZgjPn','../../helpers/accessibility-automation/scripts','Suite','COBzM','../../helpers/accessibility-automation/helper','FqocZ','patch','thTestRunUuid','screenshotOutputFolder','action','initSaveScreenshot','setSessionName','contexts','getSyncScript','ctx','captureEvent','JDzpK','pid','EjNpv','Dtgjg','enabled','761444qvJlUI','fireEvent','constructor','bEAgJ','__driver','thBuildUuid','102229FpoMXE','container','stringify','HEvlF','etVob','event','1783683OXHsHg','patchSaveScreenshot','./o11yHelper','bddStep','forEach','../../bin/playwright/accessibility-helper','TEST_RUN_SKIPPED','getAccessibilityResults','titlePath','name','ZOgNQ','__skipSessionStatus','112EziMfq','start','codeceptjs/lib/helper/Playwright.js','restore','dispatcher','DXQxS','add','eXOpU','INFO'];a1_0x4738=function(){return _0x83c336;};return a1_0x4738();}module[a1_0x1caa40(0x186)]=function(_0x302340){const _0x2a8480=a1_0x1caa40,_0x165ce6={'vLDdn':_0x2a8480(0x182),'FiBdL':'Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','etVob':function(_0x102dc7){return _0x102dc7();},'bViCf':function(_0x2e5bd0,_0x2d258e){return _0x2e5bd0(_0x2d258e);},'nCcgp':function(_0x3ee8f3,_0x5bd929,_0x7d293d){return _0x3ee8f3(_0x5bd929,_0x7d293d);},'vXGcm':function(_0x13afae,_0x58b81e,_0x577ff3){return _0x13afae(_0x58b81e,_0x577ff3);},'GRfPw':function(_0x37fe69,_0x30b096,_0x14c3fa){return _0x37fe69(_0x30b096,_0x14c3fa);},'FqocZ':function(_0x59b1e3,_0x2b7cb3,_0x573be4,_0x3a0969){return _0x59b1e3(_0x2b7cb3,_0x573be4,_0x3a0969);},'NTZnF':function(_0xe29429,_0x3fb9eb){return _0xe29429===_0x3fb9eb;},'ZgjPn':_0x2a8480(0x1de),'MvcPC':_0x2a8480(0x1c3),'NOEwt':_0x2a8480(0x176),'rBiYW':_0x2a8480(0x1ab),'eXOpU':function(_0x1d765b){return _0x1d765b();},'IRZyE':_0x2a8480(0x185),'JKGKr':function(_0x4a12b1){return _0x4a12b1();}};_0x302340[_0x2a8480(0x17f)]&&(global[_0x2a8480(0x16d)]=_0x302340[_0x2a8480(0x17f)]);PerformanceTester[_0x2a8480(0x1c0)]();const _0x24f67d=_0x165ce6[_0x2a8480(0x175)](getCodeceptDriver),_0x54872e=new O11yHelper(_0x24f67d,_0x302340),_0x525887=!!CodeceptJS[_0x2a8480(0x15d)]['helpers'](_0x165ce6[_0x2a8480(0x183)]);global[_0x2a8480(0x15a)]=_0x24f67d,_0x24f67d&&(_0x525887?_0x165ce6['JKGKr'](patchPlaywrightBefore):_0x165ce6[_0x2a8480(0x1a6)](patchWebDriverBefore,_0x24f67d),_0x24f67d['getAccessibilityResultsSummary']=async()=>{const _0x1f87da=_0x2a8480;if(global[_0x1f87da(0x19e)])await AccessibilityHelper['browserStackExecuteDriver'](_0x24f67d,scripts[_0x1f87da(0x190)]),await AccessibilityHelper[_0x1f87da(0x1b9)](_0x24f67d,scripts[_0x1f87da(0x1a0)]);else return logger[_0x1f87da(0x1bb)](_0x165ce6[_0x1f87da(0x195)]),{};},_0x24f67d[_0x2a8480(0x169)]=async()=>{const _0x41b601=_0x2a8480;if(global[_0x41b601(0x19e)])await AccessibilityHelper[_0x41b601(0x1b9)](_0x24f67d,scripts[_0x41b601(0x190)]),await AccessibilityHelper[_0x41b601(0x1b9)](_0x24f67d,scripts[_0x41b601(0x1c4)]);else return logger[_0x41b601(0x1bb)](_0x165ce6[_0x41b601(0x1ce)]),{};},_0x165ce6[_0x2a8480(0x1a6)](patchSaveScreenshot,_0x24f67d)),CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x172)]['on'](CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x18c)]['before'],()=>{const _0x9c0026=_0x2a8480;try{_0x54872e[_0x9c0026(0x16f)](),testOpsHelper['addRequestSpy']();}catch(_0x2bd0a1){PerformanceTester[_0x9c0026(0x1db)](_0x2bd0a1);}}),CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x172)]['on'](CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x18c)][_0x2a8480(0x17b)],async()=>{const _0x3bed9c=_0x2a8480;try{requestSpy[_0x3bed9c(0x171)](),await _0x54872e[_0x3bed9c(0x196)]();}catch(_0x14f5da){PerformanceTester[_0x3bed9c(0x1db)](_0x14f5da);}finally{PerformanceTester[_0x3bed9c(0x19c)]();}}),CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x172)]['on'](CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x197)]['started'],_0x5bf5bc=>{const _0x5442ee=_0x2a8480;try{const _0x3f9239=_0x5bf5bc[_0x5442ee(0x14f)][_0x5442ee(0x1aa)],_0x39b1f9=_0x54872e[_0x5442ee(0x150)](TEST_EVENTS[_0x5442ee(0x1ad)],_0x3f9239);CodeceptRecorder[_0x5442ee(0x174)](()=>_0x54872e[_0x5442ee(0x157)](TEST_EVENTS[_0x5442ee(0x1ad)],_0x39b1f9));}catch(_0x12980a){PerformanceTester[_0x5442ee(0x1db)](_0x12980a);}}),CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x172)]['on'](CodeceptJS[_0x2a8480(0x161)]['hook'][_0x2a8480(0x1cf)],_0x564f43=>{const _0x15539c=_0x2a8480;try{const _0x3a4148=_0x564f43[_0x15539c(0x14f)][_0x15539c(0x1aa)],_0x1788ce=_0x54872e[_0x15539c(0x150)](TEST_EVENTS[_0x15539c(0x1b8)],_0x3a4148);CodeceptRecorder[_0x15539c(0x174)](()=>_0x54872e[_0x15539c(0x157)](TEST_EVENTS[_0x15539c(0x1b8)],_0x1788ce));}catch(_0x2befef){PerformanceTester[_0x15539c(0x1db)](_0x2befef);}}),CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x172)]['on'](CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x197)][_0x2a8480(0x1b6)],async(_0x2538a2,_0x34fcac)=>{const _0x2a213d=_0x2a8480;try{const _0x4dfe1f=_0x2538a2[_0x2a213d(0x14f)][_0x2a213d(0x1aa)],_0x2a4631=_0x54872e['captureEvent'](TEST_EVENTS[_0x2a213d(0x1b8)],_0x4dfe1f,_0x34fcac);CodeceptRecorder['add'](()=>_0x54872e[_0x2a213d(0x157)](TEST_EVENTS[_0x2a213d(0x1b8)],_0x2a4631));}catch(_0x186969){PerformanceTester[_0x2a213d(0x1db)](_0x186969);}}),CodeceptJS[_0x2a8480(0x161)]['dispatcher']['on'](CodeceptJS[_0x2a8480(0x161)]['test'][_0x2a8480(0x1d1)],_0x2f52da=>{const _0x5b42d2=_0x2a8480;try{_0x165ce6[_0x5b42d2(0x160)](isBrowserstackInfra)&&(_0x525887&&(global['__workerDetails']={'currentTest':{'name':_0x2f52da[_0x5b42d2(0x1cc)],'testInfo':{'titlePath':_0x2f52da[_0x5b42d2(0x16a)]()}}}));}catch(_0x1df3c2){PerformanceTester[_0x5b42d2(0x1db)](_0x1df3c2);}}),CodeceptJS[_0x2a8480(0x161)]['dispatcher']['on'](CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x1aa)][_0x2a8480(0x19d)],_0x56cce6=>{const _0x5972d4=_0x2a8480,_0x2426c={'viRzL':function(_0xda13bf){const _0xc091ea=a1_0x8953;return _0x165ce6[_0xc091ea(0x160)](_0xda13bf);},'MnAgR':function(_0x125a07,_0x5b25c5){const _0x21ead5=a1_0x8953;return _0x165ce6[_0x21ead5(0x1a6)](_0x125a07,_0x5b25c5);},'ZOgNQ':function(_0x163524,_0x8b301,_0x2012e2){const _0x3f031e=a1_0x8953;return _0x165ce6[_0x3f031e(0x199)](_0x163524,_0x8b301,_0x2012e2);},'BFZid':function(_0x25b91e,_0x2c266b){const _0x5efd3c=a1_0x8953;return _0x165ce6[_0x5efd3c(0x1a6)](_0x25b91e,_0x2c266b);}};try{const _0x503855=_0x54872e[_0x5972d4(0x150)](TEST_EVENTS[_0x5972d4(0x1b5)],_0x56cce6);CodeceptRecorder[_0x5972d4(0x174)](()=>_0x54872e[_0x5972d4(0x157)](TEST_EVENTS[_0x5972d4(0x1b5)],_0x503855)),CodeceptRecorder['add'](async()=>{const _0x321952=_0x5972d4;_0x2426c['viRzL'](isBrowserstackInfra)&&(!_0x2426c[_0x321952(0x178)](isTrue,_0x302340[_0x321952(0x1b7)])&&await _0x2426c[_0x321952(0x16c)](markSessionName,_0x24f67d,_0x56cce6[_0x321952(0x1cc)]),_0x54872e[_0x321952(0x155)]&&await _0x2426c['BFZid'](o11ySync,_0x24f67d));});}catch(_0x575717){PerformanceTester[_0x5972d4(0x1db)](_0x575717);}}),CodeceptJS[_0x2a8480(0x161)]['dispatcher']['on'](CodeceptJS[_0x2a8480(0x161)]['test'][_0x2a8480(0x1cf)],_0x3deeba=>{const _0x209f5e=_0x2a8480;try{const _0x2ae39a=_0x54872e['captureEvent'](TEST_EVENTS[_0x209f5e(0x1d4)],_0x3deeba);CodeceptRecorder[_0x209f5e(0x174)](()=>_0x54872e[_0x209f5e(0x157)](TEST_EVENTS['TEST_RUN_FINISHED'],_0x2ae39a)),CodeceptRecorder[_0x209f5e(0x174)](async()=>{const _0x2776fd=_0x209f5e;_0x165ce6[_0x2776fd(0x160)](isBrowserstackInfra)&&(_0x525887?await _0x165ce6[_0x2776fd(0x18b)](playwrightMarkSessionStatus,_0x24f67d,STATE_PASSED):await _0x165ce6[_0x2776fd(0x194)](markSessionStatus,_0x24f67d,STATE_PASSED));});}catch(_0x4fbfd7){PerformanceTester[_0x209f5e(0x1db)](_0x4fbfd7);}}),CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x172)]['on'](CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x1aa)][_0x2a8480(0x1b6)],(_0x25386a,_0xd2ae1d)=>{const _0x4fbabb=_0x2a8480;try{if(_0x165ce6['NTZnF'](_0x25386a['constructor']['name'],_0x165ce6[_0x4fbabb(0x1dc)])){const _0xa301d1=_0x54872e[_0x4fbabb(0x150)](TEST_EVENTS[_0x4fbabb(0x168)],_0x25386a[_0x4fbabb(0x14f)]['currentTest']);CodeceptRecorder[_0x4fbabb(0x174)](()=>_0x54872e['fireEvent'](TEST_EVENTS[_0x4fbabb(0x168)],_0xa301d1));}else{const _0x138f60=_0x54872e['captureEvent'](TEST_EVENTS[_0x4fbabb(0x1d4)],_0x25386a,_0xd2ae1d);CodeceptRecorder[_0x4fbabb(0x174)](()=>{const _0x121ea9=_0x4fbabb;try{_0x54872e[_0x121ea9(0x157)](TEST_EVENTS[_0x121ea9(0x1d4)],_0x138f60);}catch(_0x2ae965){logger['debug'](_0x121ea9(0x1d2)+util[_0x121ea9(0x1bd)](_0x2ae965));}}),CodeceptRecorder[_0x4fbabb(0x174)](async()=>{const _0x5d0725=_0x4fbabb;try{_0x165ce6['etVob'](isBrowserstackInfra)&&(_0x525887?await _0x165ce6[_0x5d0725(0x146)](playwrightMarkSessionStatus,_0x24f67d,STATE_FAILED,_0xd2ae1d):await _0x165ce6[_0x5d0725(0x146)](markSessionStatus,_0x24f67d,STATE_FAILED,_0xd2ae1d));}catch(_0xad726d){logger[_0x5d0725(0x1d0)]('Failed\x20in\x20marking\x20session\x20status\x20of\x20test:\x20'+util[_0x5d0725(0x1bd)](_0xad726d));}});}}catch(_0x2ceb51){PerformanceTester['captureError'](_0x2ceb51);}}),CodeceptJS[_0x2a8480(0x161)]['dispatcher']['on'](CodeceptJS['event']['test'][_0x2a8480(0x1bf)],_0x38b247=>{const _0x4f548b=_0x2a8480;try{const _0x219a03=_0x54872e[_0x4f548b(0x150)](TEST_EVENTS[_0x4f548b(0x168)],_0x38b247);CodeceptRecorder[_0x4f548b(0x174)](()=>_0x54872e['fireEvent'](TEST_EVENTS[_0x4f548b(0x168)],_0x219a03));}catch(_0x3bc1a7){PerformanceTester[_0x4f548b(0x1db)](_0x3bc1a7);}}),CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x172)]['on'](CodeceptJS[_0x2a8480(0x161)]['test'][_0x2a8480(0x17b)],async(_0x5c183a,_0x56e349)=>{const _0x32ac4c=_0x2a8480;try{if(_0x165ce6['etVob'](isBrowserstackInfra)){const _0x5ef0cc=_0x165ce6[_0x32ac4c(0x18b)](shouldScanTestForAccessibility,_0x5c183a[_0x32ac4c(0x16a)](),!![]);if(_0x165ce6['etVob'](isAccessibilityAutomationSession)&&global[_0x32ac4c(0x19e)]&&_0x5ef0cc){const _0x1bc6cd={};_0x1bc6cd[_0x32ac4c(0x148)]=_0x5c183a[_0x32ac4c(0x1d3)],_0x1bc6cd[_0x32ac4c(0x15b)]=process[_0x32ac4c(0x19b)][testHubConstants[_0x32ac4c(0x1c5)]['BROWSERSTACK_TESTHUB_UUID']],_0x1bc6cd[_0x32ac4c(0x177)]=process[_0x32ac4c(0x19b)][testHubConstants[_0x32ac4c(0x1c5)][_0x32ac4c(0x18a)]];const _0xd167f5=_0x1bc6cd;logger[_0x32ac4c(0x1d0)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x32ac4c(0x15e)](_0xd167f5)),CodeceptRecorder[_0x32ac4c(0x174)](async()=>{const _0x2e8ae8=_0x32ac4c;await AccessibilityHelper[_0x2e8ae8(0x1b9)](_0x24f67d,scripts['performScan']),await AccessibilityHelper[_0x2e8ae8(0x1b9)](_0x24f67d,scripts[_0x2e8ae8(0x1be)],_0xd167f5);}),logger[_0x32ac4c(0x180)](_0x165ce6[_0x32ac4c(0x1d9)]);}}}catch(_0x4b6127){PerformanceTester[_0x32ac4c(0x1db)](_0x4b6127);}}),CodeceptJS['event'][_0x2a8480(0x172)]['on'](CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x1b2)]['comment'],_0x149acf=>{const _0x35ee7c=_0x2a8480;try{process['emit'](_0x35ee7c(0x1a8)+process[_0x35ee7c(0x152)],{'timestamp':new Date()[_0x35ee7c(0x1af)](),'level':_0x165ce6[_0x35ee7c(0x19a)],'message':_0x149acf,'kind':_0x165ce6['rBiYW'],'http_response':{}});}catch(_0x10bd7d){PerformanceTester[_0x35ee7c(0x1db)](_0x10bd7d);}}),CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x172)]['on'](CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x165)][_0x2a8480(0x1d1)],_0x3511c0=>{_0x54872e['bddStepStart'](_0x3511c0);}),CodeceptJS['event']['dispatcher']['on'](CodeceptJS[_0x2a8480(0x161)][_0x2a8480(0x165)][_0x2a8480(0x17b)],_0x485fbf=>{_0x54872e['bddStepFinish'](_0x485fbf);});};
|
|
1
|
+
function a1_0x5b54(_0xd38517,_0x384c8a){const _0x513ae7=a1_0x513a();return a1_0x5b54=function(_0x5b545e,_0x11181d){_0x5b545e=_0x5b545e-0x1c8;let _0x3554b7=_0x513ae7[_0x5b545e];return _0x3554b7;},a1_0x5b54(_0xd38517,_0x384c8a);}function a1_0x513a(){const _0x45abf8=['frpOH','test','add','__skipSessionStatus','thBuildUuid','LqbKR','browser','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','all','xIDlA','setSessionName','3620700JdcSSt','env','122308TDTUsB','comment','getAccessibilityResults','getResultsSummary','HOOK_RUN_STARTED','helpers','cHNnX','BS_TESTOPS_ALLOW_SCREENSHOTS','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20summary.','LTsbb','WdCpi','passed','DXrxq','fireEvent','container','find','bind','event','WebDriver','performScan','dispatcher','exports','PvVHJ','12xfVeOz','../../helpers/helper','reason','Failed\x20in\x20sending\x20TestRunFinish\x20event:\x20','info','captureError','cKXil','stopMonitoring','commandsToWrap','FoMXX','../../helpers/accessibility-automation/scripts','7809340woDypB','patchSaveScreenshot','start','captureEvent','emit','name','TestCafe','tGMwz','TEST_RUN_SKIPPED','started','status','failed','hook','yyzsm','catch','arguments','getResults','Playwright','apply','step','cSfqD','codeceptjs/lib/index.js','codeceptjs/lib/recorder.js','bs:addLog:','Puppeteer','../../bin/playwright/sessionDetails','ENV_VAR','base64','BgrGa','class','warn','uffnv','browserStackExecuteDriver','TEST_RUN_FINISHED','codeceptjs/lib/helper/WebDriver.js','xwzgF','readFileSync','after','executeScript','__driver','bddStepFinish','Suite','TEST_SCREENSHOT','3945130VPkPiT','WlhFd','Performing\x20scan\x20for\x20','../../helpers/request-spy','call','bGTGj','../../helpers/logger','bstackAllyScanning','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','vFWtv','skipSessionName','YeEqR','bddStep','codeceptjs/lib/helper/Playwright.js','startMonitoring','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','RPFpD','action','titlePath','QyuCY','stringify','toISOString','9cNjGlk','24JTwhcB','browserstack_executor:\x20','overwriteCommand','./helper.js','../../helpers/test-observability/utils','format','16220490UViXjf','currentTest','RhnvJ','../../bin/playwright/accessibility-helper','skipped','kYgJh','prototype','Wbctf','getSyncScript','Failed\x20in\x20marking\x20session\x20status\x20of\x20test:\x20','initSaveScreenshot','179468yMphRi','constructor','Element','oKhgq','testAnalyticsId','./o11yHelper','HOOK_RUN_FINISHED','accessibilityPlatform','before','restore','saveScreenshot','XBhKM','BROWSERSTACK_TESTHUB_UUID','icsQH','_before','gCtWV','24KJexjz','winstonLogger','forEach','slice','Xumny','TNsTj','xBKxg','ctx','OUUMl','thTestRunUuid','zvLWo','../../helpers/accessibility-automation/helper','3526816pOQzrp','codeceptjs/lib/utils.js','debug','TEST_RUN_STARTED','skipSessionStatus','ciHmY'];a1_0x513a=function(){return _0x45abf8;};return a1_0x513a();}const a1_0x216233=a1_0x5b54;(function(_0x1c8bb6,_0x3dfcfe){const _0x19b0cc=a1_0x5b54,_0x41f76d=_0x1c8bb6();while(!![]){try{const _0x5e86e7=parseInt(_0x19b0cc(0x23d))/0x1*(-parseInt(_0x19b0cc(0x1d9))/0x2)+parseInt(_0x19b0cc(0x25e))/0x3*(parseInt(_0x19b0cc(0x24e))/0x4)+-parseInt(_0x19b0cc(0x1d7))/0x5*(parseInt(_0x19b0cc(0x1f0))/0x6)+parseInt(_0x19b0cc(0x1fb))/0x7+parseInt(_0x19b0cc(0x26a))/0x8+parseInt(_0x19b0cc(0x23c))/0x9*(parseInt(_0x19b0cc(0x226))/0xa)+parseInt(_0x19b0cc(0x243))/0xb;if(_0x5e86e7===_0x3dfcfe)break;else _0x41f76d['push'](_0x41f76d['shift']());}catch(_0x1bd364){_0x41f76d['push'](_0x41f76d['shift']());}}}(a1_0x513a,0xd40b7));const fs=require('fs'),util=require('util'),{requireModule,markSessionStatus,isUndefined,isTrue,isBrowserstackInfra}=require(a1_0x216233(0x1f1)),logger=require(a1_0x216233(0x22c))[a1_0x216233(0x25f)],testOpsHelper=require(a1_0x216233(0x241)),requestSpy=require(a1_0x216233(0x229)),PlaywrightSessionDetails=require(a1_0x216233(0x214)),{O11yHelper,TEST_EVENTS,STATE_PASSED,STATE_FAILED}=require(a1_0x216233(0x253)),{shouldScanTestForAccessibility,isAccessibilityAutomationSession}=require(a1_0x216233(0x269)),AccessibilityHelper=require(a1_0x216233(0x246)),scripts=require(a1_0x216233(0x1fa)),PerformanceTester=require('../../helpers/performance-tester'),{processWebDriverConfig,shouldPatchExecuteScript}=require(a1_0x216233(0x240)),testHubConstants=require('../../helpers/testhub/constants.js'),CodeceptJS=requireModule(a1_0x216233(0x210)),CodeceptUtils=requireModule(a1_0x216233(0x26b)),CodeceptWebDriver=requireModule(a1_0x216233(0x21d)),CodeceptRecorder=requireModule(a1_0x216233(0x211)),CodeceptPlaywright=requireModule(a1_0x216233(0x233)),playwrightMarkSessionStatus=(_0x1b8486,_0x30df8b,_0x57fb1c)=>{const _0x230547=a1_0x216233,_0x2f81a5={'FoMXX':'setSessionStatus','kYgJh':function(_0x4fa120,_0x599f06){return _0x4fa120(_0x599f06);}},_0xb53ad8={};_0xb53ad8[_0x230547(0x205)]=_0x30df8b;const _0x297fa7={};_0x297fa7['action']=_0x2f81a5[_0x230547(0x1f9)],_0x297fa7[_0x230547(0x20a)]=_0xb53ad8;const _0x2f1136=_0x297fa7;return!_0x2f81a5[_0x230547(0x248)](isUndefined,_0x57fb1c)&&(_0x2f1136[_0x230547(0x20a)][_0x230547(0x1f2)]=JSON[_0x230547(0x23a)](_0x57fb1c)),_0x1b8486[_0x230547(0x221)](()=>{},_0x230547(0x23e)+JSON[_0x230547(0x23a)](_0x2f1136));},o11ySync=async _0x56a429=>{const _0x4bdfb1=a1_0x216233,_0x3706d6={};_0x3706d6[_0x4bdfb1(0x245)]=function(_0x1c5dd1,_0x2beafa){return _0x1c5dd1===_0x2beafa;},_0x3706d6[_0x4bdfb1(0x25b)]=_0x4bdfb1(0x20c);const _0x34eed5=_0x3706d6;_0x34eed5[_0x4bdfb1(0x245)](_0x56a429[_0x4bdfb1(0x24f)]['name'],_0x34eed5[_0x4bdfb1(0x25b)])?await _0x56a429[_0x4bdfb1(0x221)](_0x5211d3=>{},testOpsHelper[_0x4bdfb1(0x24b)]()):await _0x56a429['executeScript'](testOpsHelper[_0x4bdfb1(0x24b)]());},markSessionName=async(_0x254a30,_0x5e3d3f)=>{const _0x5b466d=a1_0x216233,_0xd15b01={};_0xd15b01['xwzgF']=_0x5b466d(0x1d6),_0xd15b01[_0x5b466d(0x1df)]=function(_0x357960,_0x3cb6d8){return _0x357960===_0x3cb6d8;},_0xd15b01['oQpqi']='Playwright';const _0x3376d8=_0xd15b01,_0x3ea86a={};_0x3ea86a[_0x5b466d(0x200)]=_0x5e3d3f;const _0x1d1215={};_0x1d1215[_0x5b466d(0x237)]=_0x3376d8[_0x5b466d(0x21e)],_0x1d1215[_0x5b466d(0x20a)]=_0x3ea86a;const _0x2205fa=_0x1d1215;_0x3376d8[_0x5b466d(0x1df)](_0x254a30[_0x5b466d(0x24f)][_0x5b466d(0x200)],_0x3376d8['oQpqi'])?await _0x254a30[_0x5b466d(0x221)](()=>{},_0x5b466d(0x23e)+JSON[_0x5b466d(0x23a)](_0x2205fa)):await _0x254a30[_0x5b466d(0x221)](_0x5b466d(0x23e)+JSON[_0x5b466d(0x23a)](_0x2205fa));},patchSaveScreenshot=_0x1bbcdc=>{const _0x3a033a=a1_0x216233,_0x3b23dc={'iYDzE':_0x3a033a(0x216),'IfBwS':_0x3a033a(0x225),'WdCpi':function(_0x1743f7){return _0x1743f7();},'QyuCY':function(_0x1e8852,_0x3d890e){return _0x1e8852(_0x3d890e);}};_0x3b23dc[_0x3a033a(0x239)](isTrue,process['env'][_0x3a033a(0x1e0)])&&!_0x1bbcdc[_0x3a033a(0x1fc)]&&(_0x1bbcdc[_0x3a033a(0x1fc)]=!![],_0x1bbcdc[_0x3a033a(0x24d)]=_0x1bbcdc[_0x3a033a(0x258)],_0x1bbcdc['saveScreenshot']=(_0x1ca8ea,_0x5029c4=![])=>{const _0x14739f={'zvLWo':_0x3b23dc['iYDzE'],'PvVHJ':_0x3b23dc['IfBwS'],'cKXil':function(_0x3be421){const _0x301657=a1_0x5b54;return _0x3b23dc[_0x301657(0x1e3)](_0x3be421);}};return new Promise(function(_0x1c680,_0x57c041){const _0x4eca3c=a1_0x5b54,_0x3c26da={'ZGyqa':_0x14739f[_0x4eca3c(0x268)],'bGTGj':_0x14739f[_0x4eca3c(0x1ef)],'XBhKM':function(_0xb36e76){const _0xad3fb9=_0x4eca3c;return _0x14739f[_0xad3fb9(0x1f6)](_0xb36e76);}};_0x1bbcdc['initSaveScreenshot'](_0x1ca8ea,_0x5029c4)['then'](()=>{const _0x57efbe=_0x4eca3c,_0x1cfe43=CodeceptUtils['screenshotOutputFolder'](_0x1ca8ea),_0x2a3745=fs[_0x57efbe(0x21f)](_0x1cfe43);process[_0x57efbe(0x1ff)](_0x57efbe(0x212)+process['pid'],{'timestamp':new Date()['toISOString'](),'message':_0x2a3745['toString'](_0x3c26da['ZGyqa']),'kind':_0x3c26da[_0x57efbe(0x22b)]}),_0x3c26da[_0x57efbe(0x259)](_0x1c680);})[_0x4eca3c(0x209)](()=>null);});});},patchWebDriverBefore=_0x24aae4=>{const _0x505db2=a1_0x216233,_0x4f3ed4={'RPFpD':function(_0x72d38a){return _0x72d38a();},'tGMwz':function(_0x356a5f,_0x1e363e){return _0x356a5f(_0x1e363e);},'WlhFd':function(_0x437b59,_0x4c87ca){return _0x437b59===_0x4c87ca;},'TNsTj':_0x505db2(0x250)},_0x46c08b=async function(_0x4d5168,_0x3cf4b9){const _0x5a62e1=_0x505db2;return _0x4f3ed4[_0x5a62e1(0x236)](isAccessibilityAutomationSession)&&!global['bstackAllyScanning']&&global['accessibilityPlatform']&&scripts['shouldWrapCommand'](_0x4d5168[_0x5a62e1(0x200)])&&_0x4f3ed4[_0x5a62e1(0x202)](shouldPatchExecuteScript,arguments[0x2])&&(global[_0x5a62e1(0x22d)]=!![],logger[_0x5a62e1(0x1c8)](_0x5a62e1(0x228)+_0x4d5168[_0x5a62e1(0x218)]+'\x20'+_0x4d5168[_0x5a62e1(0x200)]),await AccessibilityHelper[_0x5a62e1(0x21b)](_0x24aae4,scripts[_0x5a62e1(0x1ec)])),global[_0x5a62e1(0x22d)]=![],_0x3cf4b9[_0x5a62e1(0x20d)](this,Array[_0x5a62e1(0x249)][_0x5a62e1(0x261)][_0x5a62e1(0x22a)](arguments,0x2));},_0xe50120=CodeceptWebDriver[_0x505db2(0x249)][_0x505db2(0x25c)];CodeceptWebDriver[_0x505db2(0x249)]['_before']=async function(){const _0xb2a61f=_0x505db2,_0x1508c7={'Wbctf':function(_0x51ba55,_0x3247ab){const _0x2839d2=a1_0x5b54;return _0x4f3ed4[_0x2839d2(0x227)](_0x51ba55,_0x3247ab);},'gxAZj':_0x4f3ed4[_0xb2a61f(0x263)]};await _0xe50120['apply'](this,arguments),scripts[_0xb2a61f(0x1f8)]['filter'](_0x1c3eed=>_0x1c3eed['name']&&_0x1c3eed['class'])[_0xb2a61f(0x260)](_0x27bfd1=>{const _0x1709ea=_0xb2a61f;this[_0x1709ea(0x1d2)][_0x1709ea(0x23f)](_0x27bfd1[_0x1709ea(0x200)],_0x46c08b[_0x1709ea(0x1e9)](this,_0x27bfd1),_0x1508c7[_0x1709ea(0x24a)](_0x27bfd1[_0x1709ea(0x218)],_0x1508c7['gxAZj']));}),_0x4f3ed4[_0xb2a61f(0x202)](processWebDriverConfig,_0x24aae4);};},patchPlaywrightBefore=()=>{const _0x3da010=a1_0x216233;PlaywrightSessionDetails['patch']();const _0xf733eb=CodeceptPlaywright[_0x3da010(0x249)]['_before'];CodeceptPlaywright[_0x3da010(0x249)][_0x3da010(0x25c)]=async function(){const _0x5b0d0e=_0x3da010;this['browserContext']=await this[_0x5b0d0e(0x1d2)]['contexts']()[0x0],await _0xf733eb['apply'](this,arguments);};},getCodeceptDriver=()=>{const _0x153a03=a1_0x216233,_0x3cec06={};_0x3cec06['ZjmFy']=_0x153a03(0x1eb),_0x3cec06['BgrGa']=_0x153a03(0x20c),_0x3cec06['oKhgq']=_0x153a03(0x213),_0x3cec06['OUUMl']=_0x153a03(0x201);const _0x45c5ba=_0x3cec06,_0x49569d=[_0x45c5ba['ZjmFy'],_0x45c5ba[_0x153a03(0x217)],_0x45c5ba[_0x153a03(0x251)],_0x45c5ba[_0x153a03(0x266)]],_0xeb355e=_0x49569d[_0x153a03(0x1e8)](_0x129948=>!!CodeceptJS[_0x153a03(0x1e7)]['helpers'](_0x129948));if(!_0xeb355e)return null;return CodeceptJS[_0x153a03(0x1e7)][_0x153a03(0x1de)](_0xeb355e);};module[a1_0x216233(0x1ee)]=function(_0x4665f7){const _0x33b865=a1_0x216233,_0x4ebc0f={'pgBNU':_0x33b865(0x1e1),'GJWNr':_0x33b865(0x235),'yyzsm':function(_0x2c8506){return _0x2c8506();},'cSfqD':function(_0x414c10){return _0x414c10();},'YeEqR':function(_0x4fd0f4,_0x5ea716){return _0x4fd0f4(_0x5ea716);},'frpOH':function(_0x10482d,_0x3fc44f,_0x51f202){return _0x10482d(_0x3fc44f,_0x51f202);},'EGLqI':function(_0x2c1b57,_0x132774){return _0x2c1b57(_0x132774);},'KhyOL':function(_0x4d012b,_0x4e7b70,_0x4fb3c4){return _0x4d012b(_0x4e7b70,_0x4fb3c4);},'DxjRw':function(_0x28c134,_0xfa18aa,_0x269c7a,_0x111f36){return _0x28c134(_0xfa18aa,_0x269c7a,_0x111f36);},'DXrxq':function(_0x2307e3,_0x186d24){return _0x2307e3===_0x186d24;},'oIrka':_0x33b865(0x224),'Xumny':_0x33b865(0x22e),'xIDlA':'INFO','LTsbb':'TEST_LOG','xLrhV':function(_0x6df841){return _0x6df841();},'vFWtv':_0x33b865(0x20c),'xBKxg':function(_0x64e46c){return _0x64e46c();},'uffnv':function(_0x2934fd,_0x582fef){return _0x2934fd(_0x582fef);}};_0x4665f7['skipSessionStatus']&&(global[_0x33b865(0x1cf)]=_0x4665f7[_0x33b865(0x1ca)]);PerformanceTester[_0x33b865(0x234)]();const _0x542f9f=_0x4ebc0f['xLrhV'](getCodeceptDriver),_0x174b59=new O11yHelper(_0x542f9f,_0x4665f7),_0x2b8074=!!CodeceptJS[_0x33b865(0x1e7)][_0x33b865(0x1de)](_0x4ebc0f[_0x33b865(0x22f)]);global[_0x33b865(0x222)]=_0x542f9f,_0x542f9f&&(_0x2b8074?_0x4ebc0f[_0x33b865(0x264)](patchPlaywrightBefore):_0x4ebc0f[_0x33b865(0x21a)](patchWebDriverBefore,_0x542f9f),_0x542f9f['getAccessibilityResultsSummary']=async()=>{const _0x35c1e6=_0x33b865;if(global['accessibilityPlatform'])await AccessibilityHelper[_0x35c1e6(0x21b)](_0x542f9f,scripts[_0x35c1e6(0x1ec)]),await AccessibilityHelper[_0x35c1e6(0x21b)](_0x542f9f,scripts[_0x35c1e6(0x1dc)]);else return logger['warn'](_0x4ebc0f['pgBNU']),{};},_0x542f9f[_0x33b865(0x1db)]=async()=>{const _0x14fdff=_0x33b865;if(global[_0x14fdff(0x255)])await AccessibilityHelper[_0x14fdff(0x21b)](_0x542f9f,scripts['performScan']),await AccessibilityHelper[_0x14fdff(0x21b)](_0x542f9f,scripts[_0x14fdff(0x20b)]);else return logger[_0x14fdff(0x219)](_0x4ebc0f['GJWNr']),{};},_0x4ebc0f[_0x33b865(0x21a)](patchSaveScreenshot,_0x542f9f)),CodeceptJS[_0x33b865(0x1ea)]['dispatcher']['on'](CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x1d4)][_0x33b865(0x256)],()=>{const _0x5b8e54=_0x33b865;try{_0x174b59[_0x5b8e54(0x1fd)](),testOpsHelper['addRequestSpy']();}catch(_0x303faf){PerformanceTester['captureError'](_0x303faf);}}),CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x1ed)]['on'](CodeceptJS[_0x33b865(0x1ea)]['all'][_0x33b865(0x220)],async()=>{const _0x5ee436=_0x33b865;try{requestSpy[_0x5ee436(0x257)](),await _0x174b59['stop']();}catch(_0x3418c6){PerformanceTester[_0x5ee436(0x1f5)](_0x3418c6);}finally{PerformanceTester[_0x5ee436(0x1f7)]();}}),CodeceptJS[_0x33b865(0x1ea)]['dispatcher']['on'](CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x207)][_0x33b865(0x204)],_0x4e535a=>{const _0x5f2b2b=_0x33b865;try{const _0x146b32=_0x4e535a[_0x5f2b2b(0x265)][_0x5f2b2b(0x1cd)],_0x305f48=_0x174b59['captureEvent'](TEST_EVENTS['HOOK_RUN_STARTED'],_0x146b32);CodeceptRecorder[_0x5f2b2b(0x1ce)](()=>_0x174b59['fireEvent'](TEST_EVENTS[_0x5f2b2b(0x1dd)],_0x305f48));}catch(_0x259158){PerformanceTester[_0x5f2b2b(0x1f5)](_0x259158);}}),CodeceptJS[_0x33b865(0x1ea)]['dispatcher']['on'](CodeceptJS[_0x33b865(0x1ea)]['hook'][_0x33b865(0x1e4)],_0x8ab583=>{const _0xebb554=_0x33b865;try{const _0x2b40ac=_0x8ab583['ctx'][_0xebb554(0x1cd)],_0x46c5b4=_0x174b59[_0xebb554(0x1fe)](TEST_EVENTS[_0xebb554(0x254)],_0x2b40ac);CodeceptRecorder['add'](()=>_0x174b59[_0xebb554(0x1e6)](TEST_EVENTS[_0xebb554(0x254)],_0x46c5b4));}catch(_0x3499ba){PerformanceTester[_0xebb554(0x1f5)](_0x3499ba);}}),CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x1ed)]['on'](CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x207)]['failed'],async(_0x1d09ca,_0x359211)=>{const _0x5a282c=_0x33b865;try{const _0x26ab08=_0x1d09ca[_0x5a282c(0x265)][_0x5a282c(0x1cd)],_0xe4efba=_0x174b59[_0x5a282c(0x1fe)](TEST_EVENTS[_0x5a282c(0x254)],_0x26ab08,_0x359211);CodeceptRecorder[_0x5a282c(0x1ce)](()=>_0x174b59[_0x5a282c(0x1e6)](TEST_EVENTS[_0x5a282c(0x254)],_0xe4efba));}catch(_0x3dc1bc){PerformanceTester['captureError'](_0x3dc1bc);}}),CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x1ed)]['on'](CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x1cd)][_0x33b865(0x256)],_0x45bc67=>{const _0x52c470=_0x33b865;try{_0x4ebc0f['yyzsm'](isBrowserstackInfra)&&(_0x2b8074&&(global['__workerDetails']={'currentTest':{'name':_0x45bc67['title'],'testInfo':{'titlePath':_0x45bc67[_0x52c470(0x238)]()}}}));}catch(_0x26e5d9){PerformanceTester[_0x52c470(0x1f5)](_0x26e5d9);}}),CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x1ed)]['on'](CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x1cd)][_0x33b865(0x204)],_0x4e02c6=>{const _0x37b6db=_0x33b865;try{const _0x2f5c58=_0x174b59[_0x37b6db(0x1fe)](TEST_EVENTS['TEST_RUN_STARTED'],_0x4e02c6);CodeceptRecorder[_0x37b6db(0x1ce)](()=>_0x174b59['fireEvent'](TEST_EVENTS[_0x37b6db(0x1c9)],_0x2f5c58)),CodeceptRecorder['add'](async()=>{const _0x31e939=_0x37b6db;_0x4ebc0f['cSfqD'](isBrowserstackInfra)&&(!_0x4ebc0f[_0x31e939(0x231)](isTrue,_0x4665f7[_0x31e939(0x230)])&&await _0x4ebc0f[_0x31e939(0x1cc)](markSessionName,_0x542f9f,_0x4e02c6['title']),_0x174b59['enabled']&&await _0x4ebc0f['EGLqI'](o11ySync,_0x542f9f));});}catch(_0x3595f2){PerformanceTester['captureError'](_0x3595f2);}}),CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x1ed)]['on'](CodeceptJS['event'][_0x33b865(0x1cd)][_0x33b865(0x1e4)],_0x125c4f=>{const _0x240d9f=_0x33b865,_0x36650c={'MXPzH':function(_0x37cd2e){const _0x26b080=a1_0x5b54;return _0x4ebc0f[_0x26b080(0x20f)](_0x37cd2e);},'LqbKR':function(_0x5e76f8,_0x11eaca,_0x1b7741){const _0x5a2464=a1_0x5b54;return _0x4ebc0f[_0x5a2464(0x1cc)](_0x5e76f8,_0x11eaca,_0x1b7741);},'GhHAM':function(_0xe1c0c7,_0xbadf19,_0x56a581){return _0x4ebc0f['KhyOL'](_0xe1c0c7,_0xbadf19,_0x56a581);}};try{const _0x2e18a3=_0x174b59['captureEvent'](TEST_EVENTS[_0x240d9f(0x21c)],_0x125c4f);CodeceptRecorder[_0x240d9f(0x1ce)](()=>_0x174b59['fireEvent'](TEST_EVENTS[_0x240d9f(0x21c)],_0x2e18a3)),CodeceptRecorder[_0x240d9f(0x1ce)](async()=>{const _0x27d754=_0x240d9f;_0x36650c['MXPzH'](isBrowserstackInfra)&&(_0x2b8074?await _0x36650c[_0x27d754(0x1d1)](playwrightMarkSessionStatus,_0x542f9f,STATE_PASSED):await _0x36650c['GhHAM'](markSessionStatus,_0x542f9f,STATE_PASSED));});}catch(_0x2b5be9){PerformanceTester[_0x240d9f(0x1f5)](_0x2b5be9);}}),CodeceptJS['event'][_0x33b865(0x1ed)]['on'](CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x1cd)][_0x33b865(0x206)],(_0x486487,_0x391f37)=>{const _0xaabc1c=_0x33b865,_0x249c3e={'gCtWV':function(_0x4df8a1){const _0x599dd3=a1_0x5b54;return _0x4ebc0f[_0x599dd3(0x20f)](_0x4df8a1);},'ciHmY':function(_0x686817,_0x332645,_0x3f489c,_0x259232){return _0x4ebc0f['DxjRw'](_0x686817,_0x332645,_0x3f489c,_0x259232);},'cniat':function(_0x4cb775,_0x462ac8,_0x1ed763,_0xb8b875){return _0x4ebc0f['DxjRw'](_0x4cb775,_0x462ac8,_0x1ed763,_0xb8b875);}};try{if(_0x4ebc0f[_0xaabc1c(0x1e5)](_0x486487[_0xaabc1c(0x24f)][_0xaabc1c(0x200)],_0x4ebc0f['oIrka'])){const _0x27a2cb=_0x174b59['captureEvent'](TEST_EVENTS[_0xaabc1c(0x203)],_0x486487[_0xaabc1c(0x265)][_0xaabc1c(0x244)]);CodeceptRecorder[_0xaabc1c(0x1ce)](()=>_0x174b59[_0xaabc1c(0x1e6)](TEST_EVENTS['TEST_RUN_SKIPPED'],_0x27a2cb));}else{const _0x6b529d=_0x174b59['captureEvent'](TEST_EVENTS['TEST_RUN_FINISHED'],_0x486487,_0x391f37);CodeceptRecorder['add'](()=>{const _0xb04b2b=_0xaabc1c;try{_0x174b59[_0xb04b2b(0x1e6)](TEST_EVENTS[_0xb04b2b(0x21c)],_0x6b529d);}catch(_0x353c65){logger[_0xb04b2b(0x1c8)](_0xb04b2b(0x1f3)+util['format'](_0x353c65));}}),CodeceptRecorder['add'](async()=>{const _0x31d9e4=_0xaabc1c;try{_0x249c3e[_0x31d9e4(0x25d)](isBrowserstackInfra)&&(_0x2b8074?await _0x249c3e[_0x31d9e4(0x1cb)](playwrightMarkSessionStatus,_0x542f9f,STATE_FAILED,_0x391f37):await _0x249c3e['cniat'](markSessionStatus,_0x542f9f,STATE_FAILED,_0x391f37));}catch(_0x3a11cd){logger['debug'](_0x31d9e4(0x24c)+util[_0x31d9e4(0x242)](_0x3a11cd));}});}}catch(_0x18f7d3){PerformanceTester[_0xaabc1c(0x1f5)](_0x18f7d3);}}),CodeceptJS['event'][_0x33b865(0x1ed)]['on'](CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x1cd)][_0x33b865(0x247)],_0x1edac2=>{const _0x3e7070=_0x33b865;try{const _0x24fb44=_0x174b59['captureEvent'](TEST_EVENTS[_0x3e7070(0x203)],_0x1edac2);CodeceptRecorder[_0x3e7070(0x1ce)](()=>_0x174b59[_0x3e7070(0x1e6)](TEST_EVENTS[_0x3e7070(0x203)],_0x24fb44));}catch(_0x59aecb){PerformanceTester[_0x3e7070(0x1f5)](_0x59aecb);}}),CodeceptJS[_0x33b865(0x1ea)]['dispatcher']['on'](CodeceptJS['event'][_0x33b865(0x1cd)][_0x33b865(0x220)],async(_0x31f343,_0x110366)=>{const _0x2b556f=_0x33b865;try{if(_0x4ebc0f['cSfqD'](isBrowserstackInfra)){const _0x42b1a2=_0x4ebc0f[_0x2b556f(0x1cc)](shouldScanTestForAccessibility,_0x31f343[_0x2b556f(0x238)](),!![]);if(_0x4ebc0f[_0x2b556f(0x208)](isAccessibilityAutomationSession)&&global[_0x2b556f(0x255)]&&_0x42b1a2){const _0x38b283={};_0x38b283[_0x2b556f(0x267)]=_0x31f343[_0x2b556f(0x252)],_0x38b283[_0x2b556f(0x1d0)]=process[_0x2b556f(0x1d8)][testHubConstants[_0x2b556f(0x215)][_0x2b556f(0x25a)]],_0x38b283['thJwtToken']=process[_0x2b556f(0x1d8)][testHubConstants[_0x2b556f(0x215)]['BROWSERSTACK_TESTHUB_JWT']];const _0x4cc61f=_0x38b283;logger[_0x2b556f(0x1c8)](_0x2b556f(0x1d3)+JSON[_0x2b556f(0x23a)](_0x4cc61f)),CodeceptRecorder[_0x2b556f(0x1ce)](async()=>{const _0xfd9a58=_0x2b556f;await AccessibilityHelper[_0xfd9a58(0x21b)](_0x542f9f,scripts[_0xfd9a58(0x1ec)]),await AccessibilityHelper['browserStackExecuteDriver'](_0x542f9f,scripts['saveTestResults'],_0x4cc61f);}),logger[_0x2b556f(0x1f4)](_0x4ebc0f[_0x2b556f(0x262)]);}}}catch(_0x416a02){PerformanceTester['captureError'](_0x416a02);}}),CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x1ed)]['on'](CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x20e)][_0x33b865(0x1da)],_0x8c6580=>{const _0x5950ab=_0x33b865;try{process['emit'](_0x5950ab(0x212)+process['pid'],{'timestamp':new Date()[_0x5950ab(0x23b)](),'level':_0x4ebc0f[_0x5950ab(0x1d5)],'message':_0x8c6580,'kind':_0x4ebc0f[_0x5950ab(0x1e2)],'http_response':{}});}catch(_0x235cb1){PerformanceTester[_0x5950ab(0x1f5)](_0x235cb1);}}),CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x1ed)]['on'](CodeceptJS[_0x33b865(0x1ea)]['bddStep'][_0x33b865(0x256)],_0x73c2c1=>{_0x174b59['bddStepStart'](_0x73c2c1);}),CodeceptJS[_0x33b865(0x1ea)]['dispatcher']['on'](CodeceptJS[_0x33b865(0x1ea)][_0x33b865(0x232)][_0x33b865(0x220)],_0x557dc4=>{const _0x245982=_0x33b865;_0x174b59[_0x245982(0x223)](_0x557dc4);});};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a2_0x4faa(_0x47d2b5,_0x55c179){const _0x43be63=a2_0x43be();return a2_0x4faa=function(_0x4faa1f,_0x199c03){_0x4faa1f=_0x4faa1f-0xab;let _0x1e7c8c=_0x43be63[_0x4faa1f];return _0x1e7c8c;},a2_0x4faa(_0x47d2b5,_0x55c179);}const a2_0x38016f=a2_0x4faa;(function(_0x262932,_0x251c6d){const _0x484ac7=a2_0x4faa,_0x682d88=_0x262932();while(!![]){try{const _0xa62a99=-parseInt(_0x484ac7(0x12d))/0x1+-parseInt(_0x484ac7(0xc9))/0x2*(parseInt(_0x484ac7(0x132))/0x3)+-parseInt(_0x484ac7(0x119))/0x4*(-parseInt(_0x484ac7(0xdb))/0x5)+parseInt(_0x484ac7(0x111))/0x6*(-parseInt(_0x484ac7(0x11d))/0x7)+parseInt(_0x484ac7(0xbc))/0x8+parseInt(_0x484ac7(0x112))/0x9+parseInt(_0x484ac7(0xfd))/0xa;if(_0xa62a99===_0x251c6d)break;else _0x682d88['push'](_0x682d88['shift']());}catch(_0x1bb3db){_0x682d88['push'](_0x682d88['shift']());}}}(a2_0x43be,0xb85e0));const fs=require('fs'),path=require('path'),util=require(a2_0x38016f(0x101)),process=require(a2_0x38016f(0xe9)),logger=require(a2_0x38016f(0xd4))[a2_0x38016f(0xcf)],{default:BrowserStackSetup}=require(a2_0x38016f(0xc8)),helper=require(a2_0x38016f(0x116)),utilities=require('../../helpers/utilities'),{checkAccessibilityPlatformConfig}=require(a2_0x38016f(0xf0)),{setAccessibilityCapabilities}=require('../../bin/playwright/accessibility-helper'),{requireModule,nestedKeyValue,isBrowserstackInfra}=require(a2_0x38016f(0x116)),CodeceptJS=requireModule(a2_0x38016f(0x134)),testOpsHelper=require('../../helpers/test-observability/utils'),TestHubHandler=require('../../helpers/testhub/testhubHandler'),constants=require(a2_0x38016f(0xcb)),_testErrorData=[],getUserCodeceptJSConfigs=(_0x2d810b,_0x32e0cd)=>{const _0x5941bb=a2_0x38016f,_0x156fc5={};_0x156fc5['zucIg']=function(_0x38fd8b,_0x54cbb5){return _0x38fd8b===_0x54cbb5;},_0x156fc5[_0x5941bb(0x121)]=_0x5941bb(0xd1),_0x156fc5[_0x5941bb(0x12c)]=_0x5941bb(0xe5);const _0x29e34a=_0x156fc5;let _0x56b8fe=null;const _0x2f89c9={};let _0x32afe0=_0x32e0cd[_0x5941bb(0xf5)](_0x44eda5=>_0x44eda5===_0x5941bb(0x11a));_0x29e34a[_0x5941bb(0x12f)](_0x32afe0,-0x1)&&(_0x32afe0=_0x32e0cd[_0x5941bb(0xf5)](_0x189700=>_0x189700==='-c'));if(!helper[_0x5941bb(0xbd)](_0x2d810b[_0x5941bb(0xb7)])&&fs['existsSync'](path[_0x5941bb(0xe7)](process[_0x5941bb(0xf1)](),_0x2d810b[_0x5941bb(0xb7)])))_0x56b8fe=path['join'](process['cwd'](),_0x2d810b[_0x5941bb(0xb7)]),_0x32e0cd[_0x5941bb(0xf7)](_0x32afe0,0x2);else{if(!helper[_0x5941bb(0xbd)](_0x2d810b['c'])&&fs[_0x5941bb(0xc0)](path[_0x5941bb(0xe7)](process[_0x5941bb(0xf1)](),_0x2d810b['c'])))_0x56b8fe=path[_0x5941bb(0xe7)](process['cwd'](),_0x2d810b['c']),_0x32e0cd[_0x5941bb(0xf7)](_0x32afe0,0x2);else{if(fs[_0x5941bb(0xc0)](path['join'](process[_0x5941bb(0xf1)](),_0x29e34a[_0x5941bb(0x121)])))_0x56b8fe=path['join'](process[_0x5941bb(0xf1)](),_0x29e34a['fZVTq']);else fs[_0x5941bb(0xc0)](path[_0x5941bb(0xe7)](process[_0x5941bb(0xf1)](),_0x29e34a[_0x5941bb(0x12c)]))&&(_0x56b8fe=path[_0x5941bb(0xe7)](process[_0x5941bb(0xf1)](),_0x29e34a['EHaKC']));}}return _0x56b8fe;},getO11yRerunPattern=()=>{const _0x272a99=a2_0x38016f,_0x4349b7={};_0x4349b7[_0x272a99(0xd8)]=function(_0x383c94,_0x25be2f){return _0x383c94!==_0x25be2f;},_0x4349b7[_0x272a99(0xae)]=_0x272a99(0xee);const _0x3eaf92=_0x4349b7,_0x41f80d=helper[_0x272a99(0xc2)](process[_0x272a99(0x122)][_0x272a99(0xf8)]);if(_0x41f80d){const _0x188786=process[_0x272a99(0x122)][_0x272a99(0x103)],_0x46a152=[];if(_0x3eaf92['uOWBu'](_0x188786,_0x3eaf92[_0x272a99(0xae)])&&!helper[_0x272a99(0xbd)](_0x188786)){_0x188786[_0x272a99(0x108)](',')[_0x272a99(0x10c)](_0x1bb22f=>{_0x46a152['push']('('+_0x1bb22f['trim']()+')');});const _0x469467='^'+_0x46a152[_0x272a99(0xe7)]('|')+'$';return _0x469467;}}return null;},a2_0x289ff2={};a2_0x289ff2[a2_0x38016f(0x12e)]='chromium',a2_0x289ff2[a2_0x38016f(0xf9)]=a2_0x38016f(0xad),a2_0x289ff2[a2_0x38016f(0x131)]=a2_0x38016f(0x118),a2_0x289ff2['playwright-webkit']=a2_0x38016f(0xb8);const pwToCodeceptBrowser=a2_0x289ff2;function a2_0x43be(){const _0x2b2661=['validPlatformsPresent','../../helpers/accessibility-automation/helper','cwd','ItirP','wXokV','Workers','findIndex','MUgIw','slice','BROWSERSTACK_RERUN','playwright-chromium','prepareCapabilities','zaVyZ','forEach','2507310dowVhU','getUserWorkerCount','debug','testConfig','util','isTestObservabilitySession','BROWSERSTACK_RERUN_TESTS','BROWSERSTACK_TEST_OBSERVABILITY_YML','printResults','testContextOptions','WLyza','split','finalExecution','plugins','Playwright','map','event','getPlatformName','cMprI','profile','685092hbODoA','3082095yUdtyB','desiredCapabilities','mergeDeep','WiTuq','../../helpers/helper','KFpiL','firefox','52hZIUrh','--config','helpers','test','56OgseTy','chdir','printBuildLink','browserName','fZVTq','env','getPlaywrightUrl','title','false','browserWSEndpoint','skipSessionStatus','errorMessage','addConfig','MNbIu','toLowerCase','EHaKC','585824ttlkpw','chrome','zucIg','-cucumber','playwright-firefox','68529mOkHJp','all','codeceptjs/lib/index.js','parallelsPerPlatform','platforms','testObservability','CODECEPT','chromium','AGwNX','enabled','push','omsHi','codeceptjs','exports','browserStackCwd','failed','log','config','webkit','dirname','ySjYh','VWbDr','9689984mFsAMa','isUndefined','browser','info','existsSync','Gotbf','isTrue','XVYqh','VXMqx','launchBuild','stringify','before','../../helpers/BrowserStackSetup','20uEvpIW','stack','../utils/constants','initialize','run','4|2|1|3|0','winstonLogger','BROWSERSTACK_TEST_ACCESSIBILITY_YML','codecept.conf.js','accessibility','handleApp','../../helpers/logger','cqItE','spawn','gherkin','uOWBu','KlDje','frameworkName','260940pEhdVO','NuTnE','Passed\x20:\x20','length','BrowserStackPlugin.js','iVkxZ','root','addTests','skipSessionName','createGroupsOfSuites','codecept.json','format','join','DsGzq','process','FRAMEWORKS','bootstrapAll','SRGtx','ZrwLO','null'];a2_0x43be=function(){return _0x2b2661;};return a2_0x43be();}async function run(_0x3e2be0,_0x27d435){const _0x506960=a2_0x38016f,_0x50ff61={'TRYlZ':function(_0x2417a0,_0x1f792c){return _0x2417a0+_0x1f792c;},'PUUNo':function(_0x244a7a,_0x5aa3a4){return _0x244a7a(_0x5aa3a4);},'XVYqh':function(_0x58c4b9,_0x655d46,_0x4cb11d){return _0x58c4b9(_0x655d46,_0x4cb11d);},'KlDje':_0x506960(0xb7),'KFpiL':_0x506960(0x11b),'ItirP':function(_0x53f291){return _0x53f291();},'wXokV':function(_0x166aef){return _0x166aef();},'oCcwE':'Failed\x20:\x20','dbiEM':_0x506960(0xdd),'SRGtx':'Started\x20:\x20','ZrwLO':_0x506960(0xce),'WiTuq':_0x506960(0xb2),'iVkxZ':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','MUgIw':function(_0x1c8a7e,_0x47dd1c,_0x325f23){return _0x1c8a7e(_0x47dd1c,_0x325f23);},'zaVyZ':_0x506960(0x10b),'liQfk':'WebDriver','pGaEm':function(_0x58bd4c,_0x223b8a){return _0x58bd4c(_0x223b8a);},'MNbIu':function(_0x49893f,_0xdace3){return _0x49893f!=_0xdace3;},'Gotbf':_0x506960(0x125),'WLyza':function(_0x2e1502,_0x2350fc,_0x209f2a){return _0x2e1502(_0x2350fc,_0x209f2a);},'cqItE':_0x506960(0xd7),'DsGzq':_0x506960(0x130),'VWbDr':function(_0x59f3b9,_0x30be03){return _0x59f3b9(_0x30be03);},'ySjYh':function(_0x84af65,_0x300de5){return _0x84af65*_0x300de5;},'ldUqh':_0x506960(0xbe),'NuTnE':function(_0x35e2c0,_0x5a7c0c,_0x235612){return _0x35e2c0(_0x5a7c0c,_0x235612);},'VXMqx':_0x506960(0x113),'hjaJz':function(_0x19aa09,_0x17327d,_0x2817e7){return _0x19aa09(_0x17327d,_0x2817e7);},'cMprI':_0x506960(0xe1),'UxtBN':_0x506960(0xdf),'omsHi':_0x506960(0xb4)},_0xf81c85=new BrowserStackSetup(_0x3e2be0,_0x50ff61[_0x506960(0x115)]);await _0xf81c85[_0x506960(0xcc)](),await helper[_0x506960(0xd3)](_0xf81c85[_0x506960(0xb7)]);if(!_0xf81c85[_0x506960(0xb7)])return;process['profile']=_0x3e2be0[_0x506960(0x110)];_0x3e2be0['profile']&&(process[_0x506960(0x122)][_0x506960(0x110)]=_0x3e2be0[_0x506960(0x110)]);const _0x353688=_0x50ff61[_0x506960(0xc3)](getUserCodeceptJSConfigs,_0x3e2be0,_0x27d435);let _0x3bdf8f={};_0x353688?(logger['info']('Getting\x20your\x20codeceptjs\x20configs\x20from\x20'+_0x353688),_0x3bdf8f=_0x50ff61['PUUNo'](require,_0x353688)):logger[_0x506960(0xbf)](_0x50ff61[_0x506960(0xe0)]);let _0x196ef8=![];_0x50ff61[_0x506960(0xf6)](nestedKeyValue,_0x3bdf8f,[_0x50ff61[_0x506960(0xd9)],_0x50ff61[_0x506960(0x117)],_0x50ff61[_0x506960(0xfb)]])&&(_0x196ef8=!![]);const _0x4221aa=_0x196ef8?_0x50ff61[_0x506960(0xfb)]:_0x50ff61['liQfk'];let _0x490627=!_0x196ef8?helper['useW3C'](_0xf81c85['config']):![];!helper[_0x506960(0xbd)](_0xf81c85[_0x506960(0xb7)]['accessibilityOptions'])&&(process[_0x506960(0x122)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x506960(0xc6)](_0xf81c85[_0x506960(0xb7)]['accessibilityOptions']));let _0x35d8e9=_0xf81c85['config'][_0x506960(0xd2)];_0x35d8e9=_0x35d8e9||_0x50ff61['pGaEm'](checkAccessibilityPlatformConfig,_0xf81c85[_0x506960(0xb7)]),process[_0x506960(0x122)][_0x506960(0xd0)]=_0x35d8e9;_0x35d8e9&&(_0x490627=!_0x35d8e9);_0x50ff61[_0x506960(0x12a)](_0xf81c85[_0x506960(0xb7)][_0x506960(0xab)],null)?process[_0x506960(0x122)][_0x506960(0x104)]=_0xf81c85['config'][_0x506960(0xab)]:process[_0x506960(0x122)][_0x506960(0x104)]=_0x50ff61[_0x506960(0xc1)];const _0x27eef6=_0x50ff61['TRYlZ'](_0x50ff61[_0x506960(0x115)],_0x50ff61[_0x506960(0x107)](nestedKeyValue,_0x3bdf8f,[_0x50ff61['KlDje'],_0x50ff61[_0x506960(0xd5)]])?_0x50ff61[_0x506960(0xe8)]:''),_0x17ab10=await TestHubHandler[_0x506960(0xc5)](_0x27eef6,_0xf81c85);_0x35d8e9&&_0x50ff61[_0x506960(0xbb)](setAccessibilityCapabilities,_0xf81c85[_0x506960(0xb7)]);const _0x115a7c={},_0x4739e9=[],_0xe17df9=_0xf81c85[_0x506960(0xb7)][_0x506960(0x135)]||helper[_0x506960(0xfe)](_0x3e2be0,_0x27d435,_0xf81c85[_0x506960(0xb7)],constants[_0x506960(0xea)][_0x506960(0xac)])||0x1;let _0x183f7d=0x1;if(_0x50ff61[_0x506960(0xf2)](isBrowserstackInfra)){const _0x5a8171=helper[_0x506960(0xfa)](_0xf81c85['config'],_0x490627,constants['FRAMEWORKS'][_0x506960(0xac)]);helper[_0x506960(0xef)](_0xf81c85[_0x506960(0xb7)])?_0x183f7d=_0x50ff61[_0x506960(0xba)](_0xe17df9,_0xf81c85[_0x506960(0xb7)][_0x506960(0x136)][_0x506960(0xde)]):_0x183f7d=_0xe17df9,_0x5a8171[_0x506960(0xfc)](_0x4b3f65=>{const _0x42a427=_0x506960,_0xec75f=_0x50ff61['TRYlZ'](helper[_0x42a427(0x10e)](_0x4b3f65,'_'),'_'+Date['now']()),_0x358728=((()=>{const _0x44edcc=_0x42a427;if(_0x196ef8){const _0x411c63=pwToCodeceptBrowser[_0x4b3f65['browserName']]||_0x4b3f65[_0x44edcc(0x120)];return{'browser':_0x411c63,[_0x411c63]:{'browserWSEndpoint':_0x50ff61['TRYlZ'](helper[_0x44edcc(0x123)](_0xf81c85[_0x44edcc(0xb7)]),_0x50ff61['PUUNo'](encodeURIComponent,JSON['stringify'](_0x4b3f65)))}};}const _0x2dee53={};return _0x2dee53[_0x44edcc(0x113)]=_0x4b3f65,_0x2dee53;})()),_0x24dc04=_0x50ff61[_0x42a427(0xc3)](nestedKeyValue,_0x3bdf8f,[_0x50ff61[_0x42a427(0xd9)],_0x50ff61[_0x42a427(0x117)],_0x4221aa]);_0x115a7c[_0xec75f]=_0x24dc04?helper[_0x42a427(0x114)](_0x358728,_0x24dc04):_0x358728,!_0x196ef8&&(_0x115a7c[_0xec75f][_0x42a427(0xbe)]=_0x4b3f65[_0x42a427(0x120)]||_0x358728[_0x42a427(0xbe)]),_0x4739e9[_0x42a427(0xb0)](_0xec75f);});}else{_0x183f7d=0x1;if(_0x196ef8){const _0x3d0278=_0x50ff61[_0x506960(0x107)](nestedKeyValue,_0x3bdf8f,[_0x50ff61['KlDje'],_0x50ff61['KFpiL'],_0x4221aa,_0x50ff61['ldUqh']]),_0x302555=_0x50ff61[_0x506960(0xdc)](nestedKeyValue,_0x3bdf8f,[_0x50ff61[_0x506960(0xd9)],_0x50ff61[_0x506960(0x117)],_0x4221aa,_0x3d0278]);_0x302555&&_0x302555[_0x506960(0x126)]&&(_0x302555[_0x506960(0x126)]=helper[_0x506960(0xfa)](null,null,_0x27eef6[_0x506960(0x12b)](),null,null,_0x302555[_0x506960(0x126)]));}else _0x3bdf8f[_0x506960(0xb7)][_0x50ff61[_0x506960(0x117)]][_0x4221aa][_0x50ff61['VXMqx']]=helper[_0x506960(0xfa)](null,null,_0x27eef6[_0x506960(0x12b)](),_0x50ff61['hjaJz'](nestedKeyValue,_0x3bdf8f,[_0x50ff61[_0x506960(0xd9)],_0x50ff61['KFpiL'],_0x4221aa,_0x50ff61[_0x506960(0xc4)]]),null,null);_0x115a7c[_0x50ff61['cMprI']]=_0x3bdf8f[_0x506960(0xb7)],_0x4739e9['push'](_0x50ff61[_0x506960(0x10f)]);}const _0x1ffd73={};_0x1ffd73[_0x506960(0x100)]=_0x353688;const _0x96c8f0=_0x1ffd73,_0x487e49=path[_0x506960(0xe7)](__dirname,_0x50ff61['UxtBN']),_0x55d51e=process[_0x506960(0xf1)]();process['env'][_0x50ff61[_0x506960(0xb1)]]=_0x55d51e,process[_0x506960(0x11e)](path[_0x506960(0xb9)](_0x353688));const _0x35c00c=new CodeceptJS[(_0x506960(0xf4))](null,_0x96c8f0),_0x38cd22=_0x35c00c[_0x506960(0xe4)](_0x183f7d),_0x4629f6=testOpsHelper[_0x506960(0x102)](),_0x107440=_0x4739e9['map'](_0x33d948=>{const _0x36294d=_0x506960,_0x279fd4={};_0x279fd4[_0x36294d(0x10b)]=_0x115a7c[_0x33d948];const _0x3a35ad={};_0x3a35ad['WebDriver']=_0x115a7c[_0x33d948];const _0x1336b6=_0x196ef8?_0x279fd4:_0x3a35ad,_0x43088e=_0x50ff61[_0x36294d(0xf2)](getO11yRerunPattern),_0x57eb83={};_0x57eb83['helpers']=_0x1336b6;const _0x110578={};_0x110578['require']=_0x487e49,_0x110578[_0x36294d(0xaf)]=!![],_0x110578[_0x36294d(0xe3)]=_0xf81c85[_0x36294d(0xb7)][_0x36294d(0x106)]['skipSessionName'],_0x110578[_0x36294d(0x127)]=_0xf81c85[_0x36294d(0xb7)][_0x36294d(0x106)]['skipSessionStatus'],_0x110578[_0x36294d(0xab)]=_0x4629f6,_0x110578[_0x36294d(0xda)]=_0x27eef6;const _0x2d337b={};_0x2d337b['BrowserStackPlugin']=_0x110578;const _0xc9706={};return _0xc9706[_0x36294d(0x10a)]=_0x2d337b,helper['mergeDeep']({},_0x3bdf8f[_0x36294d(0xb7)],_0x50ff61['wXokV'](isBrowserstackInfra)?_0x57eb83:{},_0x43088e?{'grep':_0x43088e}:{},_0xc9706);});for(const _0x4e97d4 of _0x107440){for(const _0x13e2e1 of _0x38cd22){const _0x1e6c0d=_0x35c00c[_0x506960(0xd6)]();_0x1e6c0d[_0x506960(0xe2)](_0x13e2e1),_0x1e6c0d[_0x506960(0x129)](_0x4e97d4);}}_0x35c00c['on'](CodeceptJS[_0x506960(0x10d)]['test'][_0x506960(0xb5)],(_0x442bbd,_0x4277c5)=>{const _0x2dfdab=_0x506960;console[_0x2dfdab(0xb6)](_0x50ff61['oCcwE'],_0x442bbd[_0x2dfdab(0x124)]);const _0x549499={[_0x442bbd['title']]:_0x442bbd['err'][_0x2dfdab(0xca)]};_testErrorData[_0x2dfdab(0xb0)](_0x549499);}),_0x35c00c['on'](CodeceptJS[_0x506960(0x10d)][_0x506960(0x11c)]['passed'],async _0x676953=>{const _0x40c833=_0x506960;console[_0x40c833(0xb6)](_0x50ff61['dbiEM'],_0x676953['title']);}),_0x35c00c['on'](CodeceptJS[_0x506960(0x10d)]['test'][_0x506960(0xc7)],async _0x2b276e=>{const _0x558a90=_0x506960;console['log'](_0x50ff61[_0x558a90(0xec)],_0x2b276e[_0x558a90(0x124)]);}),_0x35c00c['on'](CodeceptJS['event'][_0x506960(0x133)]['result'],async()=>{const _0x1f15a1=_0x506960,_0xda94ef=_0x50ff61[_0x1f15a1(0xed)][_0x1f15a1(0x108)]('|');let _0x13f110=0x0;while(!![]){switch(_0xda94ef[_0x13f110++]){case'0':_0x35c00c[_0x1f15a1(0x105)]();continue;case'1':utilities[_0x1f15a1(0x109)](_0xf81c85);continue;case'2':testOpsHelper[_0x1f15a1(0x11f)]();continue;case'3':try{await TestHubHandler['stop']();}catch(_0x3d4b69){logger[_0x1f15a1(0xff)]('Exception\x20in\x20stop\x20build\x20request\x20to\x20testhub\x20:\x20'+util[_0x1f15a1(0xe6)](_0x3d4b69));}continue;case'4':_0xf81c85[_0x1f15a1(0x128)]=_testErrorData;continue;}break;}});async function _0x1a6bdf(){const _0x3b539c=_0x506960;try{await _0x35c00c[_0x3b539c(0xeb)](),await _0x35c00c[_0x3b539c(0xcd)]();}finally{process[_0x3b539c(0x11e)](_0x55d51e),await _0x35c00c['teardownAll']();}}_0x50ff61[_0x506960(0xf3)](_0x1a6bdf);}module[a2_0x38016f(0xb3)]=run;
|
|
2
|
+
'use strict';const a2_0x191651=a2_0x2f72;(function(_0x23e369,_0x5e8a6d){const _0x2ef413=a2_0x2f72,_0x5db723=_0x23e369();while(!![]){try{const _0x1c8167=-parseInt(_0x2ef413(0x1ea))/0x1*(parseInt(_0x2ef413(0x1ef))/0x2)+-parseInt(_0x2ef413(0x206))/0x3+-parseInt(_0x2ef413(0x1c7))/0x4+parseInt(_0x2ef413(0x1fb))/0x5*(-parseInt(_0x2ef413(0x1e9))/0x6)+-parseInt(_0x2ef413(0x20c))/0x7+-parseInt(_0x2ef413(0x1ca))/0x8*(parseInt(_0x2ef413(0x1d6))/0x9)+parseInt(_0x2ef413(0x1cd))/0xa;if(_0x1c8167===_0x5e8a6d)break;else _0x5db723['push'](_0x5db723['shift']());}catch(_0x2046e6){_0x5db723['push'](_0x5db723['shift']());}}}(a2_0x5ecc,0x4a843));function a2_0x5ecc(){const _0x18af3f=['handleApp','isTrue','LcfYZ','info','moTpf','length','Workers','testObservability','30oNQzZN','236iHnxOt','Failed\x20:\x20','useW3C','Mepua','parallelsPerPlatform','4474zQjTGO','stack','helpers','accessibilityOptions','platforms','getUserWorkerCount','findIndex','errorMessage','vjnsd','0|1|4|3|2','isTestObservabilitySession','chromium','21785QgttRw','before','gBNfL','WebDriver','FRAMEWORKS','TxTtS','getPlaywrightUrl','TIVEv','codeceptjs/lib/index.js','env','browserWSEndpoint','1708524rGYGmQ','toLowerCase','playwright-webkit','skipSessionStatus','accessibility','shXsD','2898672nsJDeG','Started\x20:\x20','../../helpers/logger','frameworkName','vkHqp','BROWSERSTACK_RERUN','slice','gherkin','-cucumber','test','browser','webkit','Passed\x20:\x20','all','validPlatformsPresent','result','cSVsv','Rftfy','msGrQ','../../bin/playwright/accessibility-helper','profile','ugSZH','codecept.json','failed','QciIM','itcGQ','wUqHe','testConfig','teardownAll','dirname','cwd','Exception\x20in\x20stop\x20build\x20request\x20to\x20testhub\x20:\x20','CODECEPT','../../helpers/accessibility-automation/helper','NChYy','addConfig','log','debug','browserStackCwd','mergeDeep','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','chrome','null','wLYHu','desiredCapabilities','BrowserStackPlugin','split','skipSessionName','gYbfO','event','push','format','playwright-firefox','ywASV','title','passed','playwright-chromium','codecept.conf.js','trim','Drwdj','BROWSERSTACK_RERUN_TESTS','prepareCapabilities','BROWSERSTACK_TEST_OBSERVABILITY_YML','spawn','jPvmM','browserName','err','bootstrapAll','process','ADQkk','IBwTk','isUndefined','Getting\x20your\x20codeceptjs\x20configs\x20from\x20','map','YfDaj','config','BtQrE','addTests','1759324yMKvVH','false','hgSKC','8DuYTtz','existsSync','join','25440440wiGTjB','../../helpers/helper','xaoTG','mCdHM','util','path','getPlatformName','WYBAu','Playwright','2391057pgcNIH','dfGlw','enabled','VIGnF','IqRkz','plugins','codeceptjs','RDsPo','jWnIL','testContextOptions','../../helpers/utilities'];a2_0x5ecc=function(){return _0x18af3f;};return a2_0x5ecc();}const fs=require('fs'),path=require(a2_0x191651(0x1d2)),util=require(a2_0x191651(0x1d1)),process=require(a2_0x191651(0x1bd)),logger=require(a2_0x191651(0x20e))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a2_0x191651(0x1ce)),utilities=require(a2_0x191651(0x1e0)),{checkAccessibilityPlatformConfig}=require(a2_0x191651(0x19a)),{setAccessibilityCapabilities}=require(a2_0x191651(0x21f)),{requireModule,nestedKeyValue,isBrowserstackInfra}=require(a2_0x191651(0x1ce)),CodeceptJS=requireModule(a2_0x191651(0x203)),testOpsHelper=require('../../helpers/test-observability/utils'),TestHubHandler=require('../../helpers/testhub/testhubHandler'),constants=require('../utils/constants'),_testErrorData=[],getUserCodeceptJSConfigs=(_0x13b679,_0x4a088b)=>{const _0x19b845=a2_0x191651,_0x792114={};_0x792114[_0x19b845(0x21d)]=function(_0xb6c9f,_0x108104){return _0xb6c9f===_0x108104;},_0x792114['jPvmM']=_0x19b845(0x1b2),_0x792114[_0x19b845(0x1c9)]=_0x19b845(0x222);const _0x4c4018=_0x792114;let _0x4bf0b0=null;const _0x46776c={};let _0x5b57ec=_0x4a088b['findIndex'](_0x5dbcf2=>_0x5dbcf2==='--config');_0x4c4018[_0x19b845(0x21d)](_0x5b57ec,-0x1)&&(_0x5b57ec=_0x4a088b[_0x19b845(0x1f5)](_0x47e2e0=>_0x47e2e0==='-c'));if(!helper[_0x19b845(0x1c0)](_0x13b679['config'])&&fs[_0x19b845(0x1cb)](path['join'](process[_0x19b845(0x22a)](),_0x13b679['config'])))_0x4bf0b0=path[_0x19b845(0x1cc)](process[_0x19b845(0x22a)](),_0x13b679[_0x19b845(0x1c4)]),_0x4a088b[_0x19b845(0x212)](_0x5b57ec,0x2);else{if(!helper[_0x19b845(0x1c0)](_0x13b679['c'])&&fs['existsSync'](path[_0x19b845(0x1cc)](process[_0x19b845(0x22a)](),_0x13b679['c'])))_0x4bf0b0=path[_0x19b845(0x1cc)](process[_0x19b845(0x22a)](),_0x13b679['c']),_0x4a088b['slice'](_0x5b57ec,0x2);else{if(fs[_0x19b845(0x1cb)](path[_0x19b845(0x1cc)](process[_0x19b845(0x22a)](),_0x4c4018[_0x19b845(0x1b9)])))_0x4bf0b0=path[_0x19b845(0x1cc)](process[_0x19b845(0x22a)](),_0x4c4018[_0x19b845(0x1b9)]);else fs['existsSync'](path[_0x19b845(0x1cc)](process[_0x19b845(0x22a)](),_0x4c4018[_0x19b845(0x1c9)]))&&(_0x4bf0b0=path[_0x19b845(0x1cc)](process[_0x19b845(0x22a)](),_0x4c4018[_0x19b845(0x1c9)]));}}return _0x4bf0b0;},getO11yRerunPattern=()=>{const _0xe50170=a2_0x191651,_0x377589={};_0x377589[_0xe50170(0x1f7)]=function(_0x52b595,_0x12cbe2){return _0x52b595!==_0x12cbe2;},_0x377589[_0xe50170(0x20b)]=_0xe50170(0x1a3);const _0x1e923c=_0x377589,_0x3fd837=helper[_0xe50170(0x1e2)](process[_0xe50170(0x204)][_0xe50170(0x211)]);if(_0x3fd837){const _0x14c71d=process[_0xe50170(0x204)][_0xe50170(0x1b5)],_0x3726a1=[];if(_0x1e923c[_0xe50170(0x1f7)](_0x14c71d,_0x1e923c[_0xe50170(0x20b)])&&!helper[_0xe50170(0x1c0)](_0x14c71d)){_0x14c71d['split'](',')['map'](_0x34d7de=>{const _0x2c1320=_0xe50170;_0x3726a1[_0x2c1320(0x1ab)]('('+_0x34d7de[_0x2c1320(0x1b3)]()+')');});const _0x5e6b12='^'+_0x3726a1[_0xe50170(0x1cc)]('|')+'$';return _0x5e6b12;}}return null;},a2_0x2a4845={};a2_0x2a4845[a2_0x191651(0x1a2)]=a2_0x191651(0x1fa),a2_0x2a4845[a2_0x191651(0x1b1)]='chromium',a2_0x2a4845[a2_0x191651(0x1ad)]='firefox',a2_0x2a4845[a2_0x191651(0x208)]=a2_0x191651(0x217);const pwToCodeceptBrowser=a2_0x2a4845;function a2_0x2f72(_0x4b0c02,_0xba3f9f){const _0x5ecc17=a2_0x5ecc();return a2_0x2f72=function(_0x2f726c,_0x1de2c3){_0x2f726c=_0x2f726c-0x19a;let _0x3cab01=_0x5ecc17[_0x2f726c];return _0x3cab01;},a2_0x2f72(_0x4b0c02,_0xba3f9f);}async function run(_0x10efa6,_0x39019){const _0xe8dfea=a2_0x191651,_0x2030b4={'TIVEv':function(_0x4ca019,_0x3cc474){return _0x4ca019+_0x3cc474;},'wLYHu':function(_0xf9ece7,_0x59d829){return _0xf9ece7(_0x59d829);},'chhaF':function(_0x328f39,_0x42d5f7,_0x1e7393){return _0x328f39(_0x42d5f7,_0x1e7393);},'vkHqp':'config','itcGQ':'helpers','eQRii':function(_0x5b9b37){return _0x5b9b37();},'RDsPo':function(_0x47d40d){return _0x47d40d();},'Mepua':_0xe8dfea(0x1eb),'mCdHM':_0xe8dfea(0x218),'gosbf':_0xe8dfea(0x20d),'gYbfO':_0xe8dfea(0x1f8),'dfGlw':_0xe8dfea(0x1dc),'NChYy':function(_0x1b543b,_0x1a658e,_0x2df7f4){return _0x1b543b(_0x1a658e,_0x2df7f4);},'moTpf':function(_0x2465da,_0x5ceab6){return _0x2465da(_0x5ceab6);},'tnVdE':_0xe8dfea(0x1a1),'QciIM':function(_0x169de6,_0x18b6a8,_0x2e38b1){return _0x169de6(_0x18b6a8,_0x2e38b1);},'gBNfL':'Playwright','cSVsv':_0xe8dfea(0x1fe),'jWnIL':function(_0x46cac7,_0x4fbfd6){return _0x46cac7!=_0x4fbfd6;},'ugSZH':_0xe8dfea(0x1c8),'msGrQ':function(_0xac9aac,_0x1c221e){return _0xac9aac+_0x1c221e;},'Drwdj':_0xe8dfea(0x213),'ADQkk':_0xe8dfea(0x214),'BtQrE':function(_0x425c80,_0x1a4e01){return _0x425c80(_0x1a4e01);},'IBwTk':function(_0x310bf1,_0x509f33){return _0x310bf1*_0x509f33;},'WYBAu':function(_0x914580,_0x5a71fd,_0x45eccf){return _0x914580(_0x5a71fd,_0x45eccf);},'wUqHe':'browser','xaoTG':function(_0x3d0e76,_0x55876e,_0x479621){return _0x3d0e76(_0x55876e,_0x479621);},'ywASV':'desiredCapabilities','YfDaj':'root','LcfYZ':'BrowserStackPlugin.js','VIGnF':_0xe8dfea(0x19f)},_0x26dd42=new BrowserStackSetup(_0x10efa6,_0x2030b4[_0xe8dfea(0x1d7)]);await _0x26dd42['initialize'](),await helper[_0xe8dfea(0x1e1)](_0x26dd42[_0xe8dfea(0x1c4)]);if(!_0x26dd42['config'])return;process[_0xe8dfea(0x220)]=_0x10efa6[_0xe8dfea(0x220)];_0x10efa6[_0xe8dfea(0x220)]&&(process[_0xe8dfea(0x204)][_0xe8dfea(0x220)]=_0x10efa6[_0xe8dfea(0x220)]);const _0x2e0ebe=_0x2030b4[_0xe8dfea(0x19b)](getUserCodeceptJSConfigs,_0x10efa6,_0x39019);let _0x1ae887={};_0x2e0ebe?(logger[_0xe8dfea(0x1e4)](_0xe8dfea(0x1c1)+_0x2e0ebe),_0x1ae887=_0x2030b4[_0xe8dfea(0x1e5)](require,_0x2e0ebe)):logger['info'](_0x2030b4['tnVdE']);let _0x28a019=![];_0x2030b4[_0xe8dfea(0x224)](nestedKeyValue,_0x1ae887,[_0x2030b4[_0xe8dfea(0x210)],_0x2030b4['itcGQ'],_0x2030b4['gBNfL']])&&(_0x28a019=!![]);const _0xcd7f1b=_0x28a019?_0x2030b4[_0xe8dfea(0x1fd)]:_0x2030b4[_0xe8dfea(0x21c)];let _0x5e1404=!_0x28a019?helper[_0xe8dfea(0x1ec)](_0x26dd42[_0xe8dfea(0x1c4)]):![];!helper['isUndefined'](_0x26dd42['config'][_0xe8dfea(0x1f2)])&&(process[_0xe8dfea(0x204)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x26dd42[_0xe8dfea(0x1c4)][_0xe8dfea(0x1f2)]));let _0x2a3d2b=_0x26dd42[_0xe8dfea(0x1c4)][_0xe8dfea(0x20a)];_0x2a3d2b=_0x2a3d2b||_0x2030b4[_0xe8dfea(0x1e5)](checkAccessibilityPlatformConfig,_0x26dd42[_0xe8dfea(0x1c4)]),process[_0xe8dfea(0x204)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x2a3d2b;_0x2a3d2b&&(_0x5e1404=!_0x2a3d2b);_0x2030b4[_0xe8dfea(0x1de)](_0x26dd42[_0xe8dfea(0x1c4)][_0xe8dfea(0x1e8)],null)?process[_0xe8dfea(0x204)][_0xe8dfea(0x1b7)]=_0x26dd42[_0xe8dfea(0x1c4)][_0xe8dfea(0x1e8)]:process[_0xe8dfea(0x204)][_0xe8dfea(0x1b7)]=_0x2030b4[_0xe8dfea(0x221)];const _0x3818a0=_0x2030b4[_0xe8dfea(0x21e)](_0x2030b4[_0xe8dfea(0x1d7)],_0x2030b4[_0xe8dfea(0x224)](nestedKeyValue,_0x1ae887,[_0x2030b4[_0xe8dfea(0x210)],_0x2030b4[_0xe8dfea(0x1b4)]])?_0x2030b4[_0xe8dfea(0x1be)]:''),_0x2f32ed=await TestHubHandler['launchBuild'](_0x3818a0,_0x26dd42);_0x2a3d2b&&_0x2030b4[_0xe8dfea(0x1c5)](setAccessibilityCapabilities,_0x26dd42[_0xe8dfea(0x1c4)]);const _0x5dc84c={},_0x1d1554=[],_0x188625=_0x26dd42[_0xe8dfea(0x1c4)][_0xe8dfea(0x1ee)]||helper[_0xe8dfea(0x1f4)](_0x10efa6,_0x39019,_0x26dd42[_0xe8dfea(0x1c4)],constants[_0xe8dfea(0x1ff)][_0xe8dfea(0x22c)])||0x1;let _0x63cb48=0x1;if(_0x2030b4[_0xe8dfea(0x1dd)](isBrowserstackInfra)){const _0x14b581=helper[_0xe8dfea(0x1b6)](_0x26dd42[_0xe8dfea(0x1c4)],_0x5e1404,constants['FRAMEWORKS'][_0xe8dfea(0x22c)]);helper[_0xe8dfea(0x21a)](_0x26dd42[_0xe8dfea(0x1c4)])?_0x63cb48=_0x2030b4[_0xe8dfea(0x1bf)](_0x188625,_0x26dd42['config'][_0xe8dfea(0x1f3)][_0xe8dfea(0x1e6)]):_0x63cb48=_0x188625,_0x14b581['forEach'](_0x95f877=>{const _0x592d02=_0xe8dfea,_0x33aa47={'TxTtS':function(_0x7a9931,_0x3cb9b5){const _0x1d1bb6=a2_0x2f72;return _0x2030b4[_0x1d1bb6(0x202)](_0x7a9931,_0x3cb9b5);},'IqRkz':function(_0x6c3d5b,_0x29a16c){const _0x5304a7=a2_0x2f72;return _0x2030b4[_0x5304a7(0x1a4)](_0x6c3d5b,_0x29a16c);}},_0x1fa882=_0x2030b4[_0x592d02(0x202)](helper[_0x592d02(0x1d3)](_0x95f877,'_'),'_'+Date['now']()),_0x288b2a=((()=>{const _0x58f7db=_0x592d02;if(_0x28a019){const _0x3c2994=pwToCodeceptBrowser[_0x95f877['browserName']]||_0x95f877[_0x58f7db(0x1ba)];return{'browser':_0x3c2994,[_0x3c2994]:{'browserWSEndpoint':_0x33aa47[_0x58f7db(0x200)](helper[_0x58f7db(0x201)](_0x26dd42[_0x58f7db(0x1c4)]),_0x33aa47[_0x58f7db(0x1da)](encodeURIComponent,JSON['stringify'](_0x95f877)))}};}const _0x1e14f7={};return _0x1e14f7[_0x58f7db(0x1a5)]=_0x95f877,_0x1e14f7;})()),_0x12f68b=_0x2030b4['chhaF'](nestedKeyValue,_0x1ae887,[_0x2030b4[_0x592d02(0x210)],_0x2030b4['itcGQ'],_0xcd7f1b]);_0x5dc84c[_0x1fa882]=_0x12f68b?helper[_0x592d02(0x1a0)](_0x288b2a,_0x12f68b):_0x288b2a,!_0x28a019&&(_0x5dc84c[_0x1fa882][_0x592d02(0x216)]=_0x95f877[_0x592d02(0x1ba)]||_0x288b2a[_0x592d02(0x216)]),_0x1d1554['push'](_0x1fa882);});}else{_0x63cb48=0x1;if(_0x28a019){const _0x1c58c5=_0x2030b4[_0xe8dfea(0x1d4)](nestedKeyValue,_0x1ae887,[_0x2030b4[_0xe8dfea(0x210)],_0x2030b4['itcGQ'],_0xcd7f1b,_0x2030b4[_0xe8dfea(0x226)]]),_0x278099=_0x2030b4[_0xe8dfea(0x1cf)](nestedKeyValue,_0x1ae887,[_0x2030b4[_0xe8dfea(0x210)],_0x2030b4[_0xe8dfea(0x225)],_0xcd7f1b,_0x1c58c5]);_0x278099&&_0x278099[_0xe8dfea(0x205)]&&(_0x278099[_0xe8dfea(0x205)]=helper[_0xe8dfea(0x1b6)](null,null,_0x3818a0[_0xe8dfea(0x207)](),null,null,_0x278099[_0xe8dfea(0x205)]));}else _0x1ae887[_0xe8dfea(0x1c4)][_0x2030b4['itcGQ']][_0xcd7f1b][_0x2030b4[_0xe8dfea(0x1ae)]]=helper[_0xe8dfea(0x1b6)](null,null,_0x3818a0[_0xe8dfea(0x207)](),_0x2030b4[_0xe8dfea(0x1d4)](nestedKeyValue,_0x1ae887,[_0x2030b4[_0xe8dfea(0x210)],_0x2030b4[_0xe8dfea(0x225)],_0xcd7f1b,_0x2030b4[_0xe8dfea(0x1ae)]]),null,null);_0x5dc84c[_0x2030b4['YfDaj']]=_0x1ae887[_0xe8dfea(0x1c4)],_0x1d1554['push'](_0x2030b4[_0xe8dfea(0x1c3)]);}const _0x5642e9={};_0x5642e9[_0xe8dfea(0x227)]=_0x2e0ebe;const _0x576322=_0x5642e9,_0x55def8=path[_0xe8dfea(0x1cc)](__dirname,_0x2030b4[_0xe8dfea(0x1e3)]),_0x4067aa=process[_0xe8dfea(0x22a)]();process[_0xe8dfea(0x204)][_0x2030b4[_0xe8dfea(0x1d9)]]=_0x4067aa,process['chdir'](path[_0xe8dfea(0x229)](_0x2e0ebe));const _0x1fe863=new CodeceptJS[(_0xe8dfea(0x1e7))](null,_0x576322),_0x271491=_0x1fe863['createGroupsOfSuites'](_0x63cb48),_0x2b9edc=testOpsHelper[_0xe8dfea(0x1f9)](),_0x53dd2d=_0x1d1554[_0xe8dfea(0x1c2)](_0x7706eb=>{const _0x32fc9e=_0xe8dfea,_0x2d41d7={};_0x2d41d7[_0x32fc9e(0x1d5)]=_0x5dc84c[_0x7706eb];const _0x5c05cc={};_0x5c05cc[_0x32fc9e(0x1fe)]=_0x5dc84c[_0x7706eb];const _0x5b9597=_0x28a019?_0x2d41d7:_0x5c05cc,_0x5bff38=_0x2030b4['eQRii'](getO11yRerunPattern),_0x5465be={};_0x5465be[_0x32fc9e(0x1f1)]=_0x5b9597;const _0x55dfa1={};_0x55dfa1['require']=_0x55def8,_0x55dfa1[_0x32fc9e(0x1d8)]=!![],_0x55dfa1[_0x32fc9e(0x1a8)]=_0x26dd42[_0x32fc9e(0x1c4)]['testContextOptions']['skipSessionName'],_0x55dfa1[_0x32fc9e(0x209)]=_0x26dd42['config'][_0x32fc9e(0x1df)][_0x32fc9e(0x209)],_0x55dfa1[_0x32fc9e(0x1e8)]=_0x2b9edc,_0x55dfa1[_0x32fc9e(0x20f)]=_0x3818a0;const _0x43b39f={};_0x43b39f[_0x32fc9e(0x1a6)]=_0x55dfa1;const _0x25f526={};return _0x25f526[_0x32fc9e(0x1db)]=_0x43b39f,helper[_0x32fc9e(0x1a0)]({},_0x1ae887['config'],_0x2030b4[_0x32fc9e(0x1dd)](isBrowserstackInfra)?_0x5465be:{},_0x5bff38?{'grep':_0x5bff38}:{},_0x25f526);});for(const _0x549eb9 of _0x53dd2d){for(const _0x534b20 of _0x271491){const _0x4ce21a=_0x1fe863[_0xe8dfea(0x1b8)]();_0x4ce21a[_0xe8dfea(0x1c6)](_0x534b20),_0x4ce21a[_0xe8dfea(0x19c)](_0x549eb9);}}_0x1fe863['on'](CodeceptJS['event']['test'][_0xe8dfea(0x223)],(_0x39c402,_0x4a1b1a)=>{const _0xef3f38=_0xe8dfea;console[_0xef3f38(0x19d)](_0x2030b4[_0xef3f38(0x1ed)],_0x39c402[_0xef3f38(0x1af)]);const _0x241a4e={[_0x39c402['title']]:_0x39c402[_0xef3f38(0x1bb)][_0xef3f38(0x1f0)]};_testErrorData[_0xef3f38(0x1ab)](_0x241a4e);}),_0x1fe863['on'](CodeceptJS[_0xe8dfea(0x1aa)]['test'][_0xe8dfea(0x1b0)],async _0x338ce9=>{const _0x269792=_0xe8dfea;console[_0x269792(0x19d)](_0x2030b4[_0x269792(0x1d0)],_0x338ce9[_0x269792(0x1af)]);}),_0x1fe863['on'](CodeceptJS[_0xe8dfea(0x1aa)][_0xe8dfea(0x215)][_0xe8dfea(0x1fc)],async _0x16ec81=>{const _0x1ecb58=_0xe8dfea;console[_0x1ecb58(0x19d)](_0x2030b4['gosbf'],_0x16ec81[_0x1ecb58(0x1af)]);}),_0x1fe863['on'](CodeceptJS[_0xe8dfea(0x1aa)][_0xe8dfea(0x219)][_0xe8dfea(0x21b)],async()=>{const _0x478109=_0xe8dfea,_0xd3051e=_0x2030b4[_0x478109(0x1a9)][_0x478109(0x1a7)]('|');let _0x3e366b=0x0;while(!![]){switch(_0xd3051e[_0x3e366b++]){case'0':_0x26dd42[_0x478109(0x1f6)]=_testErrorData;continue;case'1':testOpsHelper['printBuildLink']();continue;case'2':_0x1fe863['printResults']();continue;case'3':try{await TestHubHandler['stop']();}catch(_0x4a9565){logger[_0x478109(0x19e)](_0x478109(0x22b)+util[_0x478109(0x1ac)](_0x4a9565));}continue;case'4':utilities['finalExecution'](_0x26dd42);continue;}break;}});async function _0x59c758(){const _0x35ca10=_0xe8dfea;try{await _0x1fe863[_0x35ca10(0x1bc)](),await _0x1fe863['run']();}finally{process['chdir'](_0x4067aa),await _0x1fe863[_0x35ca10(0x228)]();}}_0x2030b4[_0xe8dfea(0x1dd)](_0x59c758);}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x1518f5=a3_0x41e4;function a3_0x41e4(_0x25a5b6,_0x3d7568){const _0x3afbcf=a3_0x3afb();return a3_0x41e4=function(_0x41e45d,_0x2148d6){_0x41e45d=_0x41e45d-0x12b;let _0x9fa095=_0x3afbcf[_0x41e45d];return _0x9fa095;},a3_0x41e4(_0x25a5b6,_0x3d7568);}function a3_0x3afb(){const _0x268e97=['../../bin/playwright/sessionDetails','playwright-chromium','platformName','accessibilityPlatform','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','../../helpers/logger','browserName','LRIJk','../../helpers/accessibility-automation/helper','OnLCP','RQmYx','LDkqn','bstack:options','latest','warn','125928tZJwft','DmhNQ','platform','1235157bpGpJp','TDyOj','Playwright','12dyBmgg','cMGrm','sessionId','eJITN','4138056FzzRtJ','browser','18618SBHihB','cLyXb','config','../../helpers/helper','dWeAv','QTxis','huBTP','browserVersion','includes','getDetails','XMrYQ','chrome','browserWSEndpoint','WAtlC','oShLa','143801zbrgUe','winstonLogger','constructor','ixiHN','parse','get','dsRAN','osVersion','cloudProvider','HVGxT','capabilities','platformVersion','77667dVWadl','browser_version','757225nqmtzf','NGvcX','awsos','browserstack_executor','os_version','fetchPlatformDetails','name','eGRaV','../../helpers/test-observability/utils','DTaIO','platform_version','desiredCapabilities','unknown_grid','RLvID','jkAjp','mApnh','shouldPatchExecuteScript','iLsGJ','searchParams'];a3_0x3afb=function(){return _0x268e97;};return a3_0x3afb();}(function(_0x502263,_0x55175b){const _0x2a5f30=a3_0x41e4,_0xde0a2b=_0x502263();while(!![]){try{const _0xe92df5=-parseInt(_0x2a5f30(0x13a))/0x1+parseInt(_0x2a5f30(0x12b))/0x2+-parseInt(_0x2a5f30(0x146))/0x3*(-parseInt(_0x2a5f30(0x170))/0x4)+-parseInt(_0x2a5f30(0x148))/0x5+-parseInt(_0x2a5f30(0x16a))/0x6+-parseInt(_0x2a5f30(0x16d))/0x7+parseInt(_0x2a5f30(0x174))/0x8;if(_0xe92df5===_0x55175b)break;else _0xde0a2b['push'](_0xde0a2b['shift']());}catch(_0x4f45d1){_0xde0a2b['push'](_0xde0a2b['shift']());}}}(a3_0x3afb,0x1b3bc));const {isUndefined,nestedKeyValue}=require(a3_0x1518f5(0x12e)),logger=require(a3_0x1518f5(0x160))[a3_0x1518f5(0x13b)],PlaywrightSessionDetails=require(a3_0x1518f5(0x15b)),{isAccessibilityAutomationSession}=require(a3_0x1518f5(0x163)),{getObservabilityLinkedProductName}=require(a3_0x1518f5(0x150)),getOSVersionFromCaps=_0x15b361=>{const _0x18ef23=a3_0x1518f5,_0x3312f3={};_0x3312f3[_0x18ef23(0x131)]=_0x18ef23(0x167),_0x3312f3[_0x18ef23(0x140)]=_0x18ef23(0x145),_0x3312f3[_0x18ef23(0x156)]='platform_version',_0x3312f3[_0x18ef23(0x138)]=_0x18ef23(0x141),_0x3312f3[_0x18ef23(0x171)]=_0x18ef23(0x14c);const _0x4d90e8=_0x3312f3;if(!_0x15b361)return null;const _0x2e1f70=_0x15b361[_0x4d90e8['huBTP']],_0x4c48bc=[_0x4d90e8[_0x18ef23(0x140)],_0x4d90e8[_0x18ef23(0x156)],_0x4d90e8['WAtlC'],_0x4d90e8['cMGrm']];for(const _0x3a24e6 of _0x4c48bc){if(_0x2e1f70&&_0x2e1f70[_0x3a24e6])return _0x2e1f70[_0x3a24e6];else{if(_0x15b361[_0x3a24e6])return _0x15b361[_0x3a24e6];}}return null;};exports[a3_0x1518f5(0x14d)]=_0x4c5660=>{const _0x4e2382=a3_0x1518f5,_0x41eece={'eGRaV':_0x4e2382(0x154),'HVGxT':function(_0x57a269,_0x5ad1a0){return _0x57a269===_0x5ad1a0;},'thAwM':'WebDriver','OnLCP':function(_0x2c5451,_0x468cdb){return _0x2c5451(_0x468cdb);},'RQmYx':function(_0x1af7c8,_0x2bb07d,_0x189dfe){return _0x1af7c8(_0x2bb07d,_0x189dfe);},'LDkqn':_0x4e2382(0x12d),'DTaIO':_0x4e2382(0x153),'eJITN':_0x4e2382(0x16f),'mApnh':function(_0x4a825f,_0x135d9a,_0x43b5f6){return _0x4a825f(_0x135d9a,_0x43b5f6);},'RLvID':_0x4e2382(0x175),'QTxis':_0x4e2382(0x137),'cLyXb':'caps'};if(!_0x4c5660)return null;let _0x28d3f0=global['__cloud_provider___']||_0x41eece[_0x4e2382(0x14f)];if(_0x41eece[_0x4e2382(0x143)](_0x4c5660['constructor'][_0x4e2382(0x14e)],_0x41eece['thAwM'])){const _0x5baf83=_0x4c5660[_0x4e2382(0x175)];if(!_0x5baf83)return null;const _0x23619b=_0x5baf83[_0x4e2382(0x144)],_0x44e4bf=_0x41eece[_0x4e2382(0x164)](getOSVersionFromCaps,_0x41eece[_0x4e2382(0x165)](nestedKeyValue,_0x4c5660,[_0x41eece[_0x4e2382(0x166)],_0x41eece[_0x4e2382(0x151)]]));return{[_0x28d3f0]:{'browser':_0x23619b[_0x4e2382(0x161)],'browser_version':_0x23619b['browserVersion'],'capabilities':_0x23619b,'platform':_0x23619b[_0x4e2382(0x15d)],'platform_version':_0x23619b[_0x4e2382(0x145)]||_0x44e4bf,'product':_0x41eece['OnLCP'](getObservabilityLinkedProductName,_0x23619b),'session_id':_0x5baf83[_0x4e2382(0x172)]}};}else{if(_0x41eece['HVGxT'](_0x4c5660[_0x4e2382(0x13c)][_0x4e2382(0x14e)],_0x41eece[_0x4e2382(0x173)])){const _0x30f2f2=PlaywrightSessionDetails[_0x4e2382(0x134)]();_0x28d3f0=_0x30f2f2[_0x4e2382(0x142)]||_0x28d3f0;const _0x353cbd=_0x41eece[_0x4e2382(0x157)](nestedKeyValue,_0x4c5660,[_0x41eece['LDkqn'],_0x41eece[_0x4e2382(0x155)],_0x41eece[_0x4e2382(0x130)]]),_0x51ef70=_0x353cbd?JSON[_0x4e2382(0x13e)](new URL(_0x353cbd)[_0x4e2382(0x15a)][_0x4e2382(0x13f)](_0x41eece[_0x4e2382(0x12c)])):{};return{[_0x28d3f0]:{'browser':_0x30f2f2[_0x4e2382(0x175)]||_0x51ef70[_0x4e2382(0x161)],'browser_version':_0x30f2f2[_0x4e2382(0x147)]||_0x51ef70[_0x4e2382(0x147)],'capabilities':_0x51ef70,'platform':_0x30f2f2[_0x4e2382(0x16c)],'platform_version':_0x30f2f2[_0x4e2382(0x152)],'product':_0x41eece[_0x4e2382(0x164)](getObservabilityLinkedProductName,_0x51ef70),'session_id':_0x30f2f2['bsSessionId']}};}}},exports['processWebDriverConfig']=_0x52d154=>{const _0x2eec32=a3_0x1518f5,_0x72da05={'iLsGJ':function(_0x321115){return _0x321115();},'NGvcX':function(_0x1b02f3,_0x5bbff2){return _0x1b02f3===_0x5bbff2;},'awsos':_0x2eec32(0x168),'UPmZS':function(_0x2854e3,_0x48e1ee){return _0x2854e3>_0x48e1ee;},'ixiHN':function(_0x2b73b7,_0x41ac64){return _0x2b73b7(_0x41ac64);},'XFgvT':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','LRIJk':_0x2eec32(0x136),'WGXSR':_0x2eec32(0x15c),'XMrYQ':_0x2eec32(0x15f),'TDyOj':function(_0x2cada,_0xf3a857){return _0x2cada(_0xf3a857);},'dWeAv':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.'};if(_0x72da05[_0x2eec32(0x159)](isAccessibilityAutomationSession)){const _0x562413=_0x52d154[_0x2eec32(0x175)],_0x21d760=_0x562413['capabilities'];global[_0x2eec32(0x15e)]=!![],!(_0x72da05[_0x2eec32(0x149)](_0x21d760[_0x2eec32(0x132)],_0x72da05[_0x2eec32(0x14a)])||_0x72da05['UPmZS'](_0x72da05[_0x2eec32(0x13d)](parseInt,_0x21d760['browserVersion']),0x5e))&&(logger[_0x2eec32(0x169)](_0x72da05['XFgvT']),global['accessibilityPlatform']=![]),!(_0x72da05['NGvcX'](_0x21d760[_0x2eec32(0x161)],_0x72da05[_0x2eec32(0x162)])||_0x72da05[_0x2eec32(0x149)](_0x21d760['browserName'],_0x72da05['WGXSR']))&&(logger[_0x2eec32(0x169)](_0x72da05[_0x2eec32(0x135)]),global['accessibilityPlatform']=![]),!_0x72da05[_0x2eec32(0x16e)](isUndefined,_0x21d760['deviceName'])&&(logger[_0x2eec32(0x169)](_0x72da05[_0x2eec32(0x12f)]),global[_0x2eec32(0x15e)]=![]);}},exports[a3_0x1518f5(0x158)]=_0x466255=>{const _0x216c23=a3_0x1518f5,_0x275046={};_0x275046['DmhNQ']=_0x216c23(0x14b),_0x275046['oShLa']='browserstack_accessibility_automation_script';const _0x57e6a8=_0x275046;if(!_0x466255)return![];return!_0x466255[_0x216c23(0x133)](_0x57e6a8[_0x216c23(0x16b)])&&!_0x466255[_0x216c23(0x133)](_0x57e6a8[_0x216c23(0x139)]);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4_0x44196d=a4_0x3133;function a4_0x3133(_0x3d815d,_0x175f54){const _0x149bd8=a4_0x149b();return a4_0x3133=function(_0x313336,_0x4cadd2){_0x313336=_0x313336-0x99;let _0x48cafb=_0x149bd8[_0x313336];return _0x48cafb;},a4_0x3133(_0x3d815d,_0x175f54);}(function(_0x55d07f,_0x380daa){const _0x9092ab=a4_0x3133,_0x97c83e=_0x55d07f();while(!![]){try{const _0x3abee0=parseInt(_0x9092ab(0x123))/0x1*(-parseInt(_0x9092ab(0x10e))/0x2)+parseInt(_0x9092ab(0x103))/0x3*(-parseInt(_0x9092ab(0x12b))/0x4)+parseInt(_0x9092ab(0x145))/0x5+-parseInt(_0x9092ab(0xc3))/0x6*(parseInt(_0x9092ab(0x11b))/0x7)+-parseInt(_0x9092ab(0x18d))/0x8*(parseInt(_0x9092ab(0xd1))/0x9)+parseInt(_0x9092ab(0x167))/0xa+parseInt(_0x9092ab(0x159))/0xb;if(_0x3abee0===_0x380daa)break;else _0x97c83e['push'](_0x97c83e['shift']());}catch(_0xce39ea){_0x97c83e['push'](_0x97c83e['shift']());}}}(a4_0x149b,0x23893));const path=require(a4_0x44196d(0xe1)),fs=require('fs'),{v4:uuidv4}=require('uuid'),{importFileFromPWCore,nestedKeyValue,parseWSEndpoint,isUndefined}=require('../../helpers/helper'),testOpsHelper=require(a4_0x44196d(0x197)),{getTestEnv}=require('../mocha/test-observability/mochaUtils'),{FRAMEWORKS}=require(a4_0x44196d(0xe0)),logger=require('../../helpers/logger')[a4_0x44196d(0xc5)],SessionHandler=require('../../helpers/test-observability/sessionHandler'),RequestQueueHandler=require(a4_0x44196d(0x194)),PlaywrightSessionDetails=require('../playwright/sessionDetails'),debug=testOpsHelper[a4_0x44196d(0xa6)],{processAccessibilityCaps}=require(a4_0x44196d(0x139)),Constants=require(a4_0x44196d(0xd7)),{fetchPlatformDetails}=require(a4_0x44196d(0x162)),{shouldProcessEventForTesthub,appendTesthubParams}=require('../../helpers/testhub/utils.js'),STATE_PASSED=a4_0x44196d(0x111),STATE_FAILED=a4_0x44196d(0x168),a4_0x3f7285={};a4_0x3f7285[a4_0x44196d(0x174)]=a4_0x44196d(0x128),a4_0x3f7285[a4_0x44196d(0x104)]=a4_0x44196d(0x166),a4_0x3f7285[a4_0x44196d(0xc2)]=a4_0x44196d(0x178),a4_0x3f7285[a4_0x44196d(0x13d)]=a4_0x44196d(0x188),a4_0x3f7285[a4_0x44196d(0x117)]=a4_0x44196d(0xe9);const TEST_EVENTS=a4_0x3f7285,parseEvent=_0x59533c=>{const _0x5d5e85=a4_0x44196d,_0x20e8b6={};_0x20e8b6[_0x5d5e85(0xb6)]=function(_0x19bfb5,_0x6f9134){return _0x19bfb5<_0x6f9134;},_0x20e8b6[_0x5d5e85(0x9a)]=function(_0x52d1b3,_0x9a1e31){return _0x52d1b3===_0x9a1e31;},_0x20e8b6['thmeN']=_0x5d5e85(0x13f),_0x20e8b6[_0x5d5e85(0xb8)]=_0x5d5e85(0x133),_0x20e8b6[_0x5d5e85(0x141)]=function(_0x3afd11,_0xc1918c){return _0x3afd11===_0xc1918c;},_0x20e8b6[_0x5d5e85(0xb1)]=_0x5d5e85(0xcf),_0x20e8b6[_0x5d5e85(0x119)]=function(_0x278a43,_0x342f2c){return _0x278a43===_0x342f2c;},_0x20e8b6[_0x5d5e85(0x17e)]=_0x5d5e85(0xbb),_0x20e8b6[_0x5d5e85(0xc9)]=function(_0x300889,_0xb6eeb7){return _0x300889===_0xb6eeb7;},_0x20e8b6[_0x5d5e85(0x155)]=_0x5d5e85(0x120);const _0x120846=_0x20e8b6,_0x5a63fb=_0x59533c[_0x5d5e85(0x9c)](/^(.*)Run(.*)$/);if(!_0x5a63fb)return null;if(_0x120846[_0x5d5e85(0xb6)](_0x5a63fb[_0x5d5e85(0xd2)],0x3))return null;const _0xa24bc2=_0x5a63fb[0x1][_0x5d5e85(0x9f)](),_0xd4c0ab=_0x5a63fb[0x2][_0x5d5e85(0x9f)]();return{'test':_0x120846[_0x5d5e85(0x9a)](_0xa24bc2,_0x120846['thmeN']),'hook':_0x120846['KoaxK'](_0xa24bc2,_0x120846['QikSf']),'skipped':_0x120846[_0x5d5e85(0x141)](_0xd4c0ab,_0x120846['eVmED']),'started':_0x120846[_0x5d5e85(0x119)](_0xd4c0ab,_0x120846['pUKnC']),'finished':_0x120846[_0x5d5e85(0xc9)](_0xd4c0ab,_0x120846['dheIZ'])};},mockPWBrowserType=_0x18b4dc=>{const _0x3ed854=a4_0x44196d,_0x2141dc={'MsiBD':function(_0x2639b4,_0x1aeabc){return _0x2639b4===_0x1aeabc;},'xGLhC':_0x3ed854(0x146),'SenZo':function(_0x33c348,_0xf14fde,_0x47c98f){return _0x33c348(_0xf14fde,_0x47c98f);},'DbMZB':'wsEndpoint','sdsLR':function(_0x19b0a4,_0x110fea){return _0x19b0a4(_0x110fea);},'kRYBL':_0x3ed854(0x125),'rKZFL':_0x3ed854(0x124),'rxCaq':'client','lCEEB':_0x3ed854(0x12a),'JcIbn':function(_0x332b5e,_0x8fcd35){return _0x332b5e(_0x8fcd35);},'cbKoL':_0x3ed854(0xd9),'IYlqL':_0x3ed854(0xf9),'jnUFJ':_0x3ed854(0x160)},_0x236739=path[_0x3ed854(0x143)](_0x2141dc[_0x3ed854(0x101)],_0x2141dc[_0x3ed854(0x16b)],_0x2141dc[_0x3ed854(0x156)]),_0x527e3a=_0x2141dc[_0x3ed854(0xba)](importFileFromPWCore,_0x236739);if(!_0x527e3a){_0x2141dc[_0x3ed854(0xba)](debug,_0x2141dc['cbKoL']);return;}const _0x40b448=_0x527e3a[_0x3ed854(0x16d)],_0x265ff4=_0x40b448[_0x3ed854(0x177)];if(_0x265ff4[_0x3ed854(0x15f)])return;const _0x42046b=_0x265ff4['connect'];Object[_0x3ed854(0x13b)](_0x265ff4,_0x2141dc['IYlqL'],{'get':function(){const _0x268717=_0x3ed854,_0x3e9dfc={'tuCJn':function(_0x26dc33,_0x164d5c){return _0x2141dc['MsiBD'](_0x26dc33,_0x164d5c);},'HEdmn':_0x2141dc[_0x268717(0x189)],'ertzE':function(_0x1f9d84,_0x5330c4,_0x1c27f3){return _0x2141dc['SenZo'](_0x1f9d84,_0x5330c4,_0x1c27f3);},'gETHk':_0x2141dc[_0x268717(0x186)],'vmyEI':function(_0x595eef,_0x25aed5){const _0x264897=_0x268717;return _0x2141dc[_0x264897(0x10f)](_0x595eef,_0x25aed5);},'fOBCn':_0x2141dc[_0x268717(0x176)]};return async function _0x1e80b0(_0xc4c3d4,_0x3eb94c){const _0x34fe5b=_0x268717,_0x2cb76c={'tgBhr':function(_0xe736be,_0x19524a){return _0x3e9dfc['tuCJn'](_0xe736be,_0x19524a);},'UzgNx':_0x3e9dfc['HEdmn']},_0x41cba7=_0x3e9dfc[_0x34fe5b(0xa3)](nestedKeyValue,_0xc4c3d4,[_0x3e9dfc[_0x34fe5b(0x135)]])||_0xc4c3d4;let _0x59ecb3=null,_0x4bccbd=null;try{[_0x4bccbd,_0x59ecb3]=_0x41cba7?_0x3e9dfc['vmyEI'](parseWSEndpoint,_0x41cba7):[null,null],global['__platformCaps']=_0x59ecb3,_0x4bccbd[_0x34fe5b(0x195)](_0x3e9dfc[_0x34fe5b(0xbf)])&&(global['__cloud_provider___']=_0x3e9dfc[_0x34fe5b(0xbf)]);}catch(_0x5e34ed){logger[_0x34fe5b(0xa6)](_0x34fe5b(0xd8)+_0x41cba7+'\x20'+_0x5e34ed);}_0x3e9dfc[_0x34fe5b(0xa3)](processAccessibilityCaps,_0x59ecb3,_0x4bccbd);if(global[_0x34fe5b(0x14e)]){const _0x4588d8=await _0x265ff4[_0x34fe5b(0x108)][_0x34fe5b(0x17c)](this,[''+Constants[_0x34fe5b(0x16a)]+_0x3e9dfc[_0x34fe5b(0xca)](encodeURIComponent,JSON[_0x34fe5b(0xb4)](_0x59ecb3))]);return PlaywrightSessionDetails[_0x34fe5b(0x17d)](_0x4588d8,_0x18b4dc,_0x41cba7),_0x4588d8;}return _0x42046b[_0x34fe5b(0x17c)](this,arguments)[_0x34fe5b(0x16c)](_0x1302c7=>{const _0x26ba24=_0x34fe5b;let _0x3d85a3=_0xc4c3d4[_0x26ba24(0x171)];return _0x2cb76c['tgBhr'](typeof _0xc4c3d4,_0x2cb76c[_0x26ba24(0x15a)])&&(_0x3d85a3=_0xc4c3d4),PlaywrightSessionDetails[_0x26ba24(0x17d)](_0x1302c7,_0x18b4dc,_0x3d85a3),_0x1302c7;});};}});const _0x4d24a9=_0x265ff4['launch'];Object[_0x3ed854(0x13b)](_0x265ff4,_0x2141dc[_0x3ed854(0xb0)],{'get':function(){return async function _0x191ad1(){const _0x160ed8=a4_0x3133;return _0x4d24a9[_0x160ed8(0x17c)](this,arguments)[_0x160ed8(0x16c)](_0x4016da=>{return PlaywrightSessionDetails['setupBrowserDetails'](_0x4016da,null),_0x4016da;});};}});};class O11yHelper{[a4_0x44196d(0x14c)]=null;[a4_0x44196d(0x144)]=null;[a4_0x44196d(0x140)]=![];[a4_0x44196d(0x127)]=![];constructor(_0x47e4ef,_0x5129d9){const _0x1efe6d=a4_0x44196d,_0xe1b77b={'TFDyb':_0x1efe6d(0x17b),'FdMNZ':function(_0x2c42f4,_0x25f031){return _0x2c42f4===_0x25f031;},'sKEhi':_0x1efe6d(0x11e),'WjrKA':function(_0x28cb64,_0x4a09d4){return _0x28cb64(_0x4a09d4);},'CrAqH':function(_0x22feeb){return _0x22feeb();},'bGPtS':function(_0x4493a0){return _0x4493a0();}},_0x30f95f=_0xe1b77b['TFDyb'][_0x1efe6d(0xdd)]('|');let _0x581853=0x0;while(!![]){switch(_0x30f95f[_0x581853++]){case'0':this[_0x1efe6d(0x131)]=new testOpsHelper[(_0x1efe6d(0x165))]({'cwd':process[_0x1efe6d(0x183)]()},this[_0x1efe6d(0xcd)][_0x1efe6d(0x16e)]);continue;case'1':this[_0x1efe6d(0x127)]=_0x5129d9['frameworkName'];continue;case'2':this[_0x1efe6d(0xe5)]&&_0xe1b77b[_0x1efe6d(0xe4)](this[_0x1efe6d(0xe5)][_0x1efe6d(0x134)][_0x1efe6d(0x121)],_0xe1b77b[_0x1efe6d(0xac)])&&_0xe1b77b['WjrKA'](mockPWBrowserType,null);continue;case'3':this[_0x1efe6d(0xcd)]=_0xe1b77b[_0x1efe6d(0x12e)](getTestEnv);continue;case'4':this[_0x1efe6d(0x140)]=_0xe1b77b['bGPtS'](shouldProcessEventForTesthub);continue;case'5':this['driver']=_0x47e4ef;continue;}break;}}[a4_0x44196d(0x163)](){const _0x20c990=a4_0x44196d;if(!this[_0x20c990(0x140)])return;testOpsHelper[_0x20c990(0x18b)](),process[_0x20c990(0x14b)](_0x20c990(0xa7)+process[_0x20c990(0x9d)]),process['on'](_0x20c990(0xa7)+process[_0x20c990(0x9d)],this['appendTestItemLog'][_0x20c990(0xfe)](this));}async[a4_0x44196d(0xcc)](){const _0x784714=a4_0x44196d;await RequestQueueHandler[_0x784714(0xd3)]()[_0x784714(0xb3)]();}async['appendTestItemLog'](_0x488e2f){const _0x5b52b3=a4_0x44196d,_0x3e6223={'gEfAp':'LogCreated','ZfiFd':function(_0x2149f9,_0x5958e9){return _0x2149f9(_0x5958e9);}};try{this[_0x5b52b3(0x144)]&&!this[_0x5b52b3(0x144)]['markedStatus']&&(_0x488e2f[_0x5b52b3(0xde)]=this['currentHook'][_0x5b52b3(0xaa)]);!_0x488e2f['hook_run_uuid']&&this['currentTest']&&!this[_0x5b52b3(0x14c)][_0x5b52b3(0xdc)]&&(_0x488e2f[_0x5b52b3(0xf8)]=this[_0x5b52b3(0x14c)][_0x5b52b3(0xd6)]);if(_0x488e2f['hook_run_uuid']||_0x488e2f['test_run_uuid']){const _0x51dff1={};_0x51dff1[_0x5b52b3(0xd5)]=_0x3e6223[_0x5b52b3(0x107)],_0x51dff1[_0x5b52b3(0x132)]=[_0x488e2f],await SessionHandler[_0x5b52b3(0x192)](_0x51dff1);}}catch(_0x1c51c2){_0x3e6223[_0x5b52b3(0x113)](debug,_0x5b52b3(0x148)+_0x1c51c2);}}async['sendCBTInfo'](_0x3bb952){const _0x6fd936=a4_0x44196d,_0x129da7={'erHPq':_0x6fd936(0x10a),'wVaDD':function(_0x47e55d,_0x5bc072){return _0x47e55d(_0x5bc072);}};if(!this[_0x6fd936(0x140)])return;const _0x17449d=this['getCBTInfo'](this[_0x6fd936(0xe5)]);try{const _0x3314a8={};_0x3314a8['uuid']=_0x3bb952,_0x3314a8[_0x6fd936(0x169)]=_0x17449d;const _0x588452=_0x3314a8,_0xba8a9e={};_0xba8a9e[_0x6fd936(0xd5)]=_0x129da7[_0x6fd936(0x136)],_0xba8a9e['test_run']=_0x588452,await SessionHandler[_0x6fd936(0x192)](_0xba8a9e);}catch(_0x4087b3){_0x129da7['wVaDD'](debug,_0x6fd936(0x11a)+_0x4087b3);}}['getCBTInfo'](_0x5df8af){const _0x4da8c5=a4_0x44196d,_0x5acde2={'lMTmX':function(_0x5a0ee1,_0x38fad0){return _0x5a0ee1(_0x38fad0);}};return _0x5acde2[_0x4da8c5(0x13c)](fetchPlatformDetails,_0x5df8af);}[a4_0x44196d(0xff)]=_0x58aa0b=>{const _0x1ecfb8=a4_0x44196d,_0x5260e1={};_0x5260e1[_0x1ecfb8(0x115)]=_0x1ecfb8(0xab),_0x5260e1[_0x1ecfb8(0xf4)]=_0x1ecfb8(0x109);const _0x411c20=_0x5260e1;if(!_0x58aa0b||!_0x58aa0b['parent'])return;[_0x411c20[_0x1ecfb8(0x115)],_0x411c20[_0x1ecfb8(0xf4)]][_0x1ecfb8(0xda)](_0x126779=>{const _0x40ceee=_0x1ecfb8,_0x93fce8=_0x58aa0b[_0x40ceee(0xbd)][_0x126779];_0x93fce8[_0x40ceee(0xda)](_0x4d5d15=>{const _0x4cd245=_0x40ceee;_0x4d5d15[_0x4cd245(0xaa)]&&(_0x4d5d15[_0x4cd245(0xaa)]=null);});});};['mapTestHooks'](_0x303484){const _0xfb57c9=a4_0x44196d,_0x3a1739={'zMQTu':_0xfb57c9(0xce),'gCjyP':function(_0x245a9f){return _0x245a9f();},'rcFKu':function(_0x440085,_0x54e3f3){return _0x440085===_0x54e3f3;},'CpoyY':_0xfb57c9(0x109),'sRfmE':function(_0x56eda5){return _0x56eda5();},'LKNwG':_0xfb57c9(0x18f),'JJHge':_0xfb57c9(0x112),'zPTGX':'_beforeEach'};if(!_0x303484||!_0x303484[_0xfb57c9(0xbd)])return;[_0x3a1739[_0xfb57c9(0x180)],_0x3a1739[_0xfb57c9(0x105)],_0x3a1739[_0xfb57c9(0x193)],_0x3a1739[_0xfb57c9(0xe8)]][_0xfb57c9(0xda)](_0x57063b=>{const _0x119509=_0xfb57c9,_0x21c58b={'COunR':_0x3a1739['zMQTu'],'UmnVc':function(_0x5bab3c){const _0x22f58b=a4_0x3133;return _0x3a1739[_0x22f58b(0x172)](_0x5bab3c);},'pbnwC':function(_0x422485,_0x19f2cc){const _0x2d136e=a4_0x3133;return _0x3a1739[_0x2d136e(0xc6)](_0x422485,_0x19f2cc);},'CHSwd':_0x3a1739[_0x119509(0xe8)],'wXNsU':function(_0x236636){return _0x3a1739['sRfmE'](_0x236636);}},_0x56da02=_0x303484[_0x119509(0xbd)][_0x57063b]||[];_0x56da02[_0x119509(0xda)](_0x2527e6=>{const _0x5f5021=_0x119509;if(_0x2527e6[_0x5f5021(0x151)][_0x5f5021(0x195)](_0x21c58b[_0x5f5021(0xd4)]))return;if(!_0x2527e6[_0x5f5021(0xaa)])_0x2527e6[_0x5f5021(0xaa)]=_0x21c58b[_0x5f5021(0xe7)](uuidv4);else _0x2527e6[_0x5f5021(0xdc)]&&_0x21c58b[_0x5f5021(0x190)](_0x57063b,_0x21c58b[_0x5f5021(0xb7)])&&(_0x2527e6[_0x5f5021(0xaa)]=_0x21c58b['wXNsU'](uuidv4),delete _0x2527e6['markedStatus']);});}),this[_0xfb57c9(0x175)](_0x303484[_0xfb57c9(0xbd)]);}[a4_0x44196d(0x181)](_0x2a6653){const _0x2feb00=a4_0x44196d,_0x81caa8={};_0x81caa8[_0x2feb00(0x13a)]='_beforeAll',_0x81caa8[_0x2feb00(0x99)]='_afterAll',_0x81caa8[_0x2feb00(0x187)]='_beforeEach',_0x81caa8[_0x2feb00(0xe2)]=_0x2feb00(0x109);const _0x193c27=_0x81caa8;if(!_0x2a6653||!_0x2a6653['parent'])return[];const _0x1e012e=[];return[_0x193c27[_0x2feb00(0x13a)],_0x193c27[_0x2feb00(0x99)],_0x193c27[_0x2feb00(0x187)],_0x193c27['wOKBw']][_0x2feb00(0xda)](_0x476f5d=>{const _0x3f5fcc=_0x2feb00,_0x414f80=_0x2a6653[_0x3f5fcc(0xbd)][_0x476f5d]||[];_0x414f80[_0x3f5fcc(0xda)](_0x21b301=>{const _0x4ba353=_0x3f5fcc;_0x21b301[_0x4ba353(0xaa)]&&_0x1e012e[_0x4ba353(0xf7)](_0x21b301[_0x4ba353(0xaa)]);});}),[][_0x2feb00(0x15e)](_0x1e012e,this[_0x2feb00(0x181)](_0x2a6653[_0x2feb00(0xbd)]));}[a4_0x44196d(0xe6)](_0x4b0f8f){const _0x72f75b=a4_0x44196d,_0x49e1f6=/^"(?<hook>.*)" hook:.*$/,_0x50fd08=_0x4b0f8f[_0x72f75b(0x151)],_0x266ec4=_0x50fd08[_0x72f75b(0x9c)](_0x49e1f6);if(_0x266ec4&&_0x266ec4[_0x72f75b(0x153)])return _0x266ec4[_0x72f75b(0x153)]['hook'][_0x72f75b(0xee)]()['replace']('\x20','_');return null;}[a4_0x44196d(0x12c)](_0x44a9ab){const _0x557dd3=a4_0x44196d,_0x51a4a1={};_0x51a4a1[_0x557dd3(0xfa)]=function(_0x5a9f13,_0x1e163a){return _0x5a9f13===_0x1e163a;},_0x51a4a1[_0x557dd3(0xef)]=function(_0x2d0264,_0x5d978c){return _0x2d0264===_0x5d978c;},_0x51a4a1['rpjli']='.git',_0x51a4a1[_0x557dd3(0xdb)]=_0x557dd3(0x164);const _0x24785f=_0x51a4a1,_0x53ad0=path[_0x557dd3(0x11f)];if(_0x24785f[_0x557dd3(0xfa)](_0x44a9ab,null)||_0x24785f[_0x557dd3(0xef)](_0x44a9ab,'')||_0x24785f[_0x557dd3(0xef)](_0x44a9ab,_0x53ad0))return null;try{return fs[_0x557dd3(0xc4)](path[_0x557dd3(0x143)](_0x44a9ab,_0x24785f['rpjli'],_0x24785f['Jxevp'])),_0x44a9ab;}catch(_0x4fb878){const _0xdf6bae=path[_0x557dd3(0x152)](_0x44a9ab);return this['findGitConfig'](_0xdf6bae);}}[a4_0x44196d(0x14a)](_0x3c6551){const _0x1c602f=a4_0x44196d,_0x4df53b={};_0x4df53b[_0x1c602f(0x149)]=function(_0x2f78bf,_0x4e5c6f){return _0x2f78bf>_0x4e5c6f;};const _0x6d6672=_0x4df53b;if(_0x3c6551[_0x1c602f(0x15b)])return _0x3c6551[_0x1c602f(0x15b)];if(_0x3c6551[_0x1c602f(0xea)]){const _0x3b71fd=_0x3c6551['ctx'][_0x1c602f(0x14c)]?this['getRootParentFile'](_0x3c6551[_0x1c602f(0xea)]['currentTest']):null;if(_0x3b71fd)return _0x3b71fd;}if(_0x3c6551[_0x1c602f(0xbd)]){const _0x47d5de=this['getRootParentFile'](_0x3c6551[_0x1c602f(0xbd)])||(_0x3c6551['parent'][_0x1c602f(0xea)]&&_0x3c6551[_0x1c602f(0xbd)][_0x1c602f(0xea)][_0x1c602f(0x14c)]?this[_0x1c602f(0x14a)](_0x3c6551[_0x1c602f(0xbd)][_0x1c602f(0xea)][_0x1c602f(0x14c)]):null);if(_0x47d5de)return _0x47d5de;_0x3c6551[_0x1c602f(0xbd)]['suites']&&_0x6d6672['llWot'](_0x3c6551[_0x1c602f(0xbd)]['suites'][_0x1c602f(0xd2)],0x0)&&_0x3c6551[_0x1c602f(0xbd)][_0x1c602f(0x185)][_0x1c602f(0xda)](_0x52dd2d=>{const _0x1a24f8=_0x1c602f,_0x5e9c00=_0x52dd2d[_0x1a24f8(0xea)]?this[_0x1a24f8(0x14a)](_0x52dd2d['ctx']):null;if(_0x5e9c00)return _0x5e9c00;});}return null;}[a4_0x44196d(0x10d)](_0x1848ab){const _0x1d1532=a4_0x44196d,_0x292cd8={};_0x292cd8[_0x1d1532(0xf3)]=function(_0xb72c3d,_0x113e37){return _0xb72c3d!==_0x113e37;};const _0x2f78a4=_0x292cd8,_0x440f86=[];if(_0x1848ab&&_0x1848ab[_0x1d1532(0xbd)]){let _0x5d728a=_0x1848ab['parent'];while(_0x5d728a&&_0x2f78a4['iDOUk'](_0x5d728a[_0x1d1532(0x151)],'')){_0x440f86['push'](_0x5d728a['title']),_0x5d728a=_0x5d728a[_0x1d1532(0xbd)];}}return _0x440f86;}[a4_0x44196d(0x100)](_0x1652bd,_0x11aed6,_0x50ef62=undefined){const _0x5a4f7b=a4_0x44196d,_0x296fd8={'WYOCs':function(_0x348389,_0x5c6e6c){return _0x348389(_0x5c6e6c);},'xKihb':function(_0x526762){return _0x526762();},'JjwFY':function(_0x169324,_0x3bc1ba){return _0x169324(_0x3bc1ba);},'uxJLT':_0x5a4f7b(0x17a),'ECIdA':_0x5a4f7b(0xec),'sKDkf':function(_0x2d536a,_0x194c40){return _0x2d536a!==_0x194c40;},'ORNSp':_0x5a4f7b(0x138),'wuMLx':'pending','OtvYo':'failed','CUtwL':'passed','VajWm':'skipped','XicRJ':'javascript','fNzCw':function(_0x575c53,_0x1e35d6){return _0x575c53-_0x1e35d6;},'bnGkA':function(_0xb720e1,_0x24cea2,_0x42aded,_0x36e9a7,_0x2430f4){return _0xb720e1(_0x24cea2,_0x42aded,_0x36e9a7,_0x2430f4);},'bdJNv':_0x5a4f7b(0x169),'cXute':_0x5a4f7b(0xb2),'ITnVk':_0x5a4f7b(0x147),'vmiEm':_0x5a4f7b(0xaf),'vUbQC':_0x5a4f7b(0xeb),'wIpkm':_0x5a4f7b(0xad),'iKiYX':_0x5a4f7b(0x158),'CLItG':function(_0x1c5492,_0x1b3c3d){return _0x1c5492===_0x1b3c3d;},'TKgMG':'hook_run','KZSHJ':_0x5a4f7b(0x150)};if(!this[_0x5a4f7b(0x140)])return;try{if(_0x11aed6['fn']&&_0x11aed6['fn'][_0x5a4f7b(0x16f)]()[_0x5a4f7b(0x9c)](/browserstack internal helper hook/))return;const _0x4f4106=_0x296fd8[_0x5a4f7b(0x114)](parseEvent,_0x1652bd);if(!_0x4f4106)return;if(_0x4f4106[_0x5a4f7b(0x13f)]){this[_0x5a4f7b(0x14c)]=_0x11aed6,this[_0x5a4f7b(0x144)]=null;if(_0x4f4106[_0x5a4f7b(0xbb)]||_0x4f4106[_0x5a4f7b(0xcf)]){_0x11aed6['startedAt']=new Date(),_0x11aed6[_0x5a4f7b(0xdc)]=![];if(!_0x11aed6[_0x5a4f7b(0xd6)])_0x11aed6[_0x5a4f7b(0xd6)]=_0x296fd8['xKihb'](uuidv4);else _0x11aed6['markedStatus']&&(!_0x11aed6[_0x5a4f7b(0xfb)]&&(_0x11aed6[_0x5a4f7b(0xfb)]=_0x11aed6[_0x5a4f7b(0xd6)]),_0x11aed6['testAnalyticsId']=_0x296fd8[_0x5a4f7b(0x18e)](uuidv4));}}else{if(_0x4f4106['hook']){this['currentHook']=_0x11aed6;if(_0x4f4106[_0x5a4f7b(0xbb)]){_0x11aed6[_0x5a4f7b(0x179)]=new Date(),_0x11aed6[_0x5a4f7b(0xdc)]=![];if(!_0x11aed6['hookAnalyticsId'])_0x11aed6[_0x5a4f7b(0xaa)]=_0x296fd8[_0x5a4f7b(0x18e)](uuidv4);else _0x11aed6[_0x5a4f7b(0xaa)]&&_0x11aed6[_0x5a4f7b(0xdc)]&&(_0x11aed6['hookAnalyticsId']=_0x296fd8[_0x5a4f7b(0x18e)](uuidv4));}}}if(_0x4f4106[_0x5a4f7b(0x120)]&&_0x11aed6[_0x5a4f7b(0xdc)])return;let _0x2e8584;try{_0x2e8584=this[_0x5a4f7b(0x14a)](_0x11aed6);}catch(_0xe62f27){logger[_0x5a4f7b(0xa6)](_0x5a4f7b(0xb5)+_0xe62f27),_0x2e8584=null;}const _0x5ce36a=_0x296fd8[_0x5a4f7b(0xa4)](require,_0x296fd8[_0x5a4f7b(0x13e)]);let _0x1a2962=[];_0x50ef62&&(_0x1a2962=[_0x50ef62,_0x296fd8[_0x5a4f7b(0x102)]]);const _0x2831e9=_0x296fd8[_0x5a4f7b(0x142)](_0x11aed6[_0x5a4f7b(0x9e)],undefined)?_0x5ce36a['inspect'](_0x11aed6[_0x5a4f7b(0x9e)][0x0]):_0x296fd8[_0x5a4f7b(0x142)](_0x50ef62,undefined)?_0x50ef62['toString']():undefined,_0x5909ca=_0x2e8584?this[_0x5a4f7b(0x12c)](_0x2e8584):null,_0x5ae943=_0x2e8584?this[_0x5a4f7b(0x131)][_0x5a4f7b(0x10c)](this['getRootParentFile'](_0x11aed6)):_0x296fd8[_0x5a4f7b(0xfc)];let _0x5d7337=_0x296fd8[_0x5a4f7b(0x9b)];const _0x4e3dbd=!_0x4f4106[_0x5a4f7b(0xbb)]?new Date()['toISOString']():null;if(_0x4f4106[_0x5a4f7b(0x120)])_0x5d7337=_0x50ef62?_0x296fd8[_0x5a4f7b(0x184)]:_0x296fd8[_0x5a4f7b(0x137)],_0x11aed6[_0x5a4f7b(0xdc)]=!![];else _0x4f4106[_0x5a4f7b(0xcf)]&&(_0x5d7337=_0x296fd8[_0x5a4f7b(0xb9)],_0x11aed6['markedStatus']=!![]);const _0x76206b={'framework':this[_0x5a4f7b(0x127)],'uuid':_0x11aed6[_0x5a4f7b(0xd6)]||_0x11aed6[_0x5a4f7b(0xaa)],'name':_0x11aed6[_0x5a4f7b(0x151)],'body':{'lang':_0x296fd8[_0x5a4f7b(0x14f)],'code':_0x11aed6[_0x5a4f7b(0x14d)]['toString']()},'type':_0x11aed6[_0x5a4f7b(0x173)],'scope':_0x11aed6[_0x5a4f7b(0xbc)](),'scopes':this[_0x5a4f7b(0x10d)](_0x11aed6),'file_name':_0x5ae943,'vc_filepath':_0x5909ca?path[_0x5a4f7b(0xa8)](_0x5909ca,_0x2e8584):null,'location':_0x5ae943,'result':_0x5d7337,'failure_reason':_0x2831e9,'duration_in_ms':_0x11aed6[_0x5a4f7b(0x18a)]||(_0x4f4106['finished']||_0x4f4106[_0x5a4f7b(0xcf)])?_0x296fd8[_0x5a4f7b(0x126)](Date[_0x5a4f7b(0x11d)](),new Date(_0x11aed6[_0x5a4f7b(0x179)])[_0x5a4f7b(0xfd)]()):null,'started_at':new Date(_0x11aed6[_0x5a4f7b(0x179)])[_0x5a4f7b(0xcb)](),'finished_at':_0x4e3dbd,'failure':testOpsHelper[_0x5a4f7b(0x182)][_0x5a4f7b(0x17c)](null,_0x1a2962),'failure_type':!_0x2831e9?null:testOpsHelper[_0x5a4f7b(0x12f)](_0x2831e9),'retry_of':_0x11aed6[_0x5a4f7b(0xfb)]||null,'tags':_0x11aed6[_0x5a4f7b(0xdf)]||[],'customRerunParam':{'rerun_name':_0x11aed6['fullTitle']()}};_0x296fd8[_0x5a4f7b(0x15c)](appendTesthubParams,_0x76206b,_0x1652bd,_0x11aed6,FRAMEWORKS[_0x5a4f7b(0xa1)]);if(_0x4f4106[_0x5a4f7b(0x133)])[_0x76206b[_0x5a4f7b(0x129)],_0x76206b[_0x5a4f7b(0x121)]]=[this['getHookType'](_0x11aed6),_0x11aed6[_0x5a4f7b(0xea)][_0x5a4f7b(0x13f)][_0x5a4f7b(0x151)]],_0x4f4106[_0x5a4f7b(0x120)]?_0x296fd8['sKDkf'](_0x76206b[_0x5a4f7b(0xc0)],_0x296fd8[_0x5a4f7b(0x184)])&&(_0x76206b[_0x5a4f7b(0xc0)]=_0x296fd8['CUtwL']):_0x76206b['body']={};else _0x4f4106[_0x5a4f7b(0x13f)]&&(this[_0x5a4f7b(0x175)](_0x11aed6),_0x4f4106[_0x5a4f7b(0xcf)]&&this[_0x5a4f7b(0xff)](_0x11aed6),(_0x4f4106['finished']||_0x4f4106[_0x5a4f7b(0xcf)])&&(_0x76206b[_0x5a4f7b(0x191)]=this[_0x5a4f7b(0x181)](_0x11aed6)));this[_0x5a4f7b(0xe5)]&&(_0x4f4106[_0x5a4f7b(0xbb)]||_0x4f4106['skipped'])&&(_0x76206b[_0x296fd8[_0x5a4f7b(0xf1)]]=this[_0x5a4f7b(0x11c)](this[_0x5a4f7b(0xe5)]));_0x4f4106[_0x5a4f7b(0x13f)]&&_0x4f4106[_0x5a4f7b(0x120)]&&_0x11aed6[_0x5a4f7b(0x10b)]&&(_0x76206b[_0x296fd8[_0x5a4f7b(0x17f)]]={'feature':{'name':_0x11aed6[_0x5a4f7b(0xbd)][_0x5a4f7b(0x116)][_0x5a4f7b(0x121)],'path':_0x76206b[_0x5a4f7b(0xa0)],'description':_0x11aed6[_0x5a4f7b(0xbd)]['comment']},'scenario':{'name':_0x11aed6[_0x5a4f7b(0x151)]},'steps':_0x11aed6['bddSteps']});const _0x4fad4f=_0x76206b[_0x296fd8['ITnVk']][0x0];_0x4fad4f&&(_0x76206b[_0x296fd8['vmiEm']]=_0x4fad4f[_0x296fd8[_0x5a4f7b(0xf6)]],_0x76206b[_0x296fd8['wIpkm']]=_0x4fad4f[_0x296fd8[_0x5a4f7b(0xae)]]);if(_0x11aed6[_0x5a4f7b(0x10b)])for(const _0x40ec25 of _0x11aed6['bddSteps']){!_0x40ec25[_0x5a4f7b(0xe3)]&&(_0x40ec25[_0x5a4f7b(0xe3)]=new Date()[_0x5a4f7b(0xcb)](),_0x296fd8[_0x5a4f7b(0xa9)](_0x40ec25[_0x5a4f7b(0xc0)],_0x296fd8[_0x5a4f7b(0x9b)])&&(_0x4fad4f?(_0x40ec25[_0x5a4f7b(0xc0)]=_0x296fd8[_0x5a4f7b(0x184)],_0x40ec25[_0x5a4f7b(0x147)]=_0x4fad4f[_0x296fd8[_0x5a4f7b(0xf6)]][0x0]):_0x40ec25['result']=_0x296fd8[_0x5a4f7b(0x137)]));}const _0x1dea7d={};_0x1dea7d[_0x5a4f7b(0xd5)]=_0x4f4106[_0x5a4f7b(0xcf)]?TEST_EVENTS[_0x5a4f7b(0x104)]:_0x1652bd;const _0x4afc65=_0x1dea7d;return _0x4f4106[_0x5a4f7b(0x133)]?_0x4afc65[_0x296fd8[_0x5a4f7b(0xa2)]]=_0x76206b:_0x4afc65[_0x296fd8[_0x5a4f7b(0xf2)]]=_0x76206b,_0x4afc65;}catch(_0x3489de){logger[_0x5a4f7b(0xa6)](_0x5a4f7b(0x161)+_0x1652bd+_0x5a4f7b(0x15d)+_0x3489de);}}async[a4_0x44196d(0xf0)](_0x2fe6ac,_0x52df43){const _0xe031c5=a4_0x44196d;if(!this[_0xe031c5(0x140)]||!_0x52df43||!_0x2fe6ac)return![];try{return await SessionHandler[_0xe031c5(0x192)](_0x52df43);}catch(_0x25ed3a){logger[_0xe031c5(0xa6)]('Exception\x20in\x20sending\x20test\x20data\x20for\x20event\x20'+_0x2fe6ac+_0xe031c5(0x15d)+_0x25ed3a);}}['initializeBddStep'](_0x1d74e5){const _0x55bfd7=a4_0x44196d,_0x38eb33={};_0x38eb33[_0x55bfd7(0x154)]=_0x55bfd7(0x130);const _0x3c3542=_0x38eb33;return{'id':_0x1d74e5['stepAnalyticsId'],'text':_0x1d74e5['text'],'keyword':_0x1d74e5[_0x55bfd7(0x118)],'started_at':_0x1d74e5[_0x55bfd7(0x179)][_0x55bfd7(0xcb)](),'result':_0x3c3542[_0x55bfd7(0x154)]};}['bddStepStart'](_0x116a38){const _0x5e7612=a4_0x44196d,_0x42da03={'wmIeu':function(_0x5e3caf){return _0x5e3caf();}};!this['currentTest'][_0x5e7612(0x10b)]&&(this[_0x5e7612(0x14c)][_0x5e7612(0x10b)]=[]),!_0x116a38['stepAnalyticsId']&&(_0x116a38[_0x5e7612(0xc7)]=_0x42da03[_0x5e7612(0x157)](uuidv4),_0x116a38[_0x5e7612(0x179)]=new Date(),this['currentTest'][_0x5e7612(0x10b)][_0x5e7612(0xf7)](this[_0x5e7612(0x106)](_0x116a38)));}[a4_0x44196d(0xc1)](_0x295941){const _0x4a1a90=a4_0x44196d,_0x3b78d0={'FIJmX':function(_0x6be223,_0x185bd4){return _0x6be223(_0x185bd4);},'QsIHt':_0x4a1a90(0x122),'KEIOB':'pending','Kewga':_0x4a1a90(0x111),'YOhGT':function(_0x1b9ad7,_0xdbde10){return _0x1b9ad7-_0xdbde10;}};let _0x29d667=this[_0x4a1a90(0x14c)][_0x4a1a90(0x10b)][_0x4a1a90(0xbe)](_0x43680b=>_0x43680b['id']===_0x295941[_0x4a1a90(0xc7)]);_0x3b78d0[_0x4a1a90(0xc8)](isUndefined,_0x29d667)&&(_0x29d667=this['initializeBddStep'](_0x295941)),_0x29d667['result']=[_0x3b78d0[_0x4a1a90(0x12d)],_0x3b78d0[_0x4a1a90(0xf5)]][_0x4a1a90(0x195)](_0x295941[_0x4a1a90(0xed)])?_0x3b78d0['Kewga']:_0x295941['status'],_0x29d667[_0x4a1a90(0xe3)]=new Date()['toISOString'](),_0x29d667[_0x4a1a90(0x18a)]=_0x3b78d0[_0x4a1a90(0xd0)](Date[_0x4a1a90(0x11d)](),_0x295941['startedAt']['getTime']()),_0x29d667['failure']=_0x295941[_0x4a1a90(0xec)]?_0x295941[_0x4a1a90(0xec)][_0x4a1a90(0x18c)]:null;}}const a4_0x286fce={};a4_0x286fce['O11yHelper']=O11yHelper,a4_0x286fce[a4_0x44196d(0x196)]=STATE_PASSED,a4_0x286fce[a4_0x44196d(0x110)]=STATE_FAILED,a4_0x286fce[a4_0x44196d(0x170)]=TEST_EVENTS,module[a4_0x44196d(0xa5)]=a4_0x286fce;function a4_0x149b(){const _0x129941=['stop','_testEnv','codeceptjs','skipped','YOhGT','98001NgrbKe','length','getInstance','COunR','event_type','testAnalyticsId','../utils/constants','Failed\x20to\x20parse\x20wsendpoint\x20','Not\x20able\x20to\x20import\x20Browser','forEach','Jxevp','markedStatus','split','hook_run_uuid','tags','../../helpers/test-observability/constants','path','wOKBw','finished_at','FdMNZ','driver','getHookType','UmnVc','CpoyY','HookRunFinished','ctx','backtrace','err','status','toUpperCase','ggaNe','fireEvent','bdJNv','KZSHJ','iDOUk','oqWeh','KEIOB','vUbQC','push','test_run_uuid','connect','nSphg','retryOf','ORNSp','getTime','bind','resetSkipTestHooks','captureEvent','rKZFL','ECIdA','3BpyPhX','TEST_RUN_FINISHED','JJHge','initializeBddStep','gEfAp','connectOverCDP','_afterEach','CBTSessionCreated','bddSteps','prefixTestPath','getHierarchy','23396nBsWzh','sdsLR','STATE_FAILED','passed','_afterAll','ZfiFd','WYOCs','vWjRG','feature','HOOK_RUN_FINISHED','keyword','MPTfL','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20Observability\x20with\x20error\x20:\x20','2219mCiHtB','getCBTInfo','now','Playwright','sep','finished','name','success','23HNssvm','lib','browserstack','fNzCw','frameworkName','TestRunStarted','hook_type','browserType.js','26164bkCBgs','findGitConfig','QsIHt','CrAqH','getFailureType','pending','_paths','logs','hook','constructor','gETHk','erHPq','CUtwL','File\x20path\x20could\x20not\x20be\x20found','../playwright/accessibility-helper','Zlijd','defineProperty','lMTmX','HOOK_RUN_STARTED','uxJLT','test','enabled','JdVXJ','sKDkf','join','currentHook','24015EsHWfl','string','failure','Exception\x20in\x20uploading\x20log\x20data\x20to\x20Observability\x20with\x20error\x20:\x20','llWot','getRootParentFile','removeAllListeners','currentTest','body','accessibilityPlatform','XicRJ','test_run','title','dirname','groups','fcbiI','dheIZ','lCEEB','wmIeu','expanded','5390649gkAJFw','UzgNx','file','bnGkA','\x20with\x20error\x20:\x20','concat','obsBrowserTypeMockApplied','launch','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','./helper.js','start','config','PathHelper','TestRunFinished','982130bSfSOC','failed','integrations','PLAYWRIGHT_HUB_URL','rxCaq','then','BrowserType','location_prefix','toString','TEST_EVENTS','wsEndpoint','gCjyP','type','TEST_RUN_STARTED','mapTestHooks','kRYBL','prototype','TestRunSkipped','startedAt','util','4|1|5|3|0|2','apply','setupBrowserDetails','pUKnC','cXute','LKNwG','getHooksForTest','failureData','cwd','OtvYo','suites','DbMZB','xOoOt','HookRunStarted','xGLhC','duration','patchConsoleLogger','message','8AuoAML','xKihb','_beforeAll','pbnwC','hooks','uploadEventData','zPTGX','../../helpers/test-observability/requestQueueHandler','includes','STATE_PASSED','../../helpers/test-observability/utils','lacZo','KoaxK','wuMLx','match','pid','errorsDetailed','toLowerCase','file_name','CODECEPT','TKgMG','ertzE','JjwFY','exports','debug','bs:addLog:','relative','CLItG','hookAnalyticsId','_beforeEach','sKEhi','failure_reason_expanded','iKiYX','failure_backtrace','jnUFJ','eVmED','meta','shutdown','stringify','failed\x20to\x20get\x20root\x20parent\x20file\x20','xzupA','CHSwd','QikSf','VajWm','JcIbn','started','fullTitle','parent','find','fOBCn','result','bddStepFinish','TEST_RUN_SKIPPED','3048KKmfcv','statSync','winstonLogger','rcFKu','stepAnalyticsId','FIJmX','ZZglX','vmyEI','toISOString'];a4_0x149b=function(){return _0x129941;};return a4_0x149b();}
|
|
1
|
+
const a4_0x2e3e5a=a4_0x3016;(function(_0x26351d,_0x10c030){const _0x3b9dda=a4_0x3016,_0x26196e=_0x26351d();while(!![]){try{const _0x1767c8=parseInt(_0x3b9dda(0x1d9))/0x1*(-parseInt(_0x3b9dda(0x1ea))/0x2)+-parseInt(_0x3b9dda(0x1f5))/0x3+parseInt(_0x3b9dda(0x212))/0x4+parseInt(_0x3b9dda(0x20f))/0x5+parseInt(_0x3b9dda(0x1c5))/0x6+-parseInt(_0x3b9dda(0x256))/0x7*(parseInt(_0x3b9dda(0x227))/0x8)+parseInt(_0x3b9dda(0x27f))/0x9;if(_0x1767c8===_0x10c030)break;else _0x26196e['push'](_0x26196e['shift']());}catch(_0x12ecb6){_0x26196e['push'](_0x26196e['shift']());}}}(a4_0x785b,0xeea19));const path=require(a4_0x2e3e5a(0x24a)),fs=require('fs'),{v4:uuidv4}=require(a4_0x2e3e5a(0x21f)),{importFileFromPWCore,nestedKeyValue,parseWSEndpoint,isUndefined}=require(a4_0x2e3e5a(0x27e)),testOpsHelper=require(a4_0x2e3e5a(0x1fd)),{getTestEnv}=require(a4_0x2e3e5a(0x266)),{FRAMEWORKS}=require(a4_0x2e3e5a(0x279)),logger=require(a4_0x2e3e5a(0x218))[a4_0x2e3e5a(0x1ff)],SessionHandler=require(a4_0x2e3e5a(0x1bf)),RequestQueueHandler=require('../../helpers/test-observability/requestQueueHandler'),PlaywrightSessionDetails=require(a4_0x2e3e5a(0x208)),debug=testOpsHelper[a4_0x2e3e5a(0x271)],{processAccessibilityCaps}=require('../playwright/accessibility-helper'),Constants=require(a4_0x2e3e5a(0x220)),{fetchPlatformDetails}=require(a4_0x2e3e5a(0x23f)),{shouldProcessEventForTesthub,appendTesthubParams}=require(a4_0x2e3e5a(0x1db)),STATE_PASSED=a4_0x2e3e5a(0x1f1),STATE_FAILED='failed',a4_0x3e2a25={};function a4_0x3016(_0x12b12d,_0x1dd96c){const _0x785b48=a4_0x785b();return a4_0x3016=function(_0x3016e6,_0x173618){_0x3016e6=_0x3016e6-0x19e;let _0xca5e16=_0x785b48[_0x3016e6];return _0xca5e16;},a4_0x3016(_0x12b12d,_0x1dd96c);}a4_0x3e2a25[a4_0x2e3e5a(0x260)]=a4_0x2e3e5a(0x201),a4_0x3e2a25[a4_0x2e3e5a(0x27b)]='TestRunFinished',a4_0x3e2a25[a4_0x2e3e5a(0x25b)]='TestRunSkipped',a4_0x3e2a25[a4_0x2e3e5a(0x261)]='HookRunStarted',a4_0x3e2a25[a4_0x2e3e5a(0x22d)]='HookRunFinished';const TEST_EVENTS=a4_0x3e2a25,parseEvent=_0x5e25cb=>{const _0x4849fc=a4_0x2e3e5a,_0xa7bd6d={};_0xa7bd6d[_0x4849fc(0x1ae)]=function(_0x128600,_0x4372f4){return _0x128600<_0x4372f4;},_0xa7bd6d['eYHkd']=function(_0x221f26,_0x5d0bec){return _0x221f26===_0x5d0bec;},_0xa7bd6d[_0x4849fc(0x26b)]='test',_0xa7bd6d[_0x4849fc(0x1e7)]=_0x4849fc(0x262),_0xa7bd6d[_0x4849fc(0x253)]=function(_0x5e5902,_0x48a880){return _0x5e5902===_0x48a880;},_0xa7bd6d['NNJEQ']='skipped',_0xa7bd6d[_0x4849fc(0x1c6)]=_0x4849fc(0x22f),_0xa7bd6d['gafLq']=function(_0xa30265,_0x2bac76){return _0xa30265===_0x2bac76;},_0xa7bd6d[_0x4849fc(0x246)]=_0x4849fc(0x1dd);const _0x4fcbc8=_0xa7bd6d,_0x3f2d5a=_0x5e25cb[_0x4849fc(0x1f0)](/^(.*)Run(.*)$/);if(!_0x3f2d5a)return null;if(_0x4fcbc8[_0x4849fc(0x1ae)](_0x3f2d5a[_0x4849fc(0x1ba)],0x3))return null;const _0x3e5059=_0x3f2d5a[0x1]['toLowerCase'](),_0x34ef36=_0x3f2d5a[0x2]['toLowerCase']();return{'test':_0x4fcbc8[_0x4849fc(0x255)](_0x3e5059,_0x4fcbc8[_0x4849fc(0x26b)]),'hook':_0x4fcbc8['eYHkd'](_0x3e5059,_0x4fcbc8[_0x4849fc(0x1e7)]),'skipped':_0x4fcbc8[_0x4849fc(0x253)](_0x34ef36,_0x4fcbc8[_0x4849fc(0x213)]),'started':_0x4fcbc8[_0x4849fc(0x253)](_0x34ef36,_0x4fcbc8[_0x4849fc(0x1c6)]),'finished':_0x4fcbc8[_0x4849fc(0x28a)](_0x34ef36,_0x4fcbc8[_0x4849fc(0x246)])};},mockPWBrowserType=_0x2a939=>{const _0x27fb65=a4_0x2e3e5a,_0x32760a={'WbsUF':function(_0x18669a,_0x173092){return _0x18669a===_0x173092;},'CmeOM':'string','liqfx':function(_0x25804c,_0x18dc04,_0x464933){return _0x25804c(_0x18dc04,_0x464933);},'uhiCG':_0x27fb65(0x251),'NfQAX':function(_0x4c8cfe,_0x13fdc9){return _0x4c8cfe(_0x13fdc9);},'fqLUj':_0x27fb65(0x27a),'BpUwD':function(_0x6e55c6,_0x56ee37){return _0x6e55c6(_0x56ee37);},'eRkZS':_0x27fb65(0x211),'xOfkj':_0x27fb65(0x206),'uCCCq':_0x27fb65(0x29a),'pJhEN':function(_0x2c0dfc,_0x2773b0){return _0x2c0dfc(_0x2773b0);},'NykbV':function(_0x16d14b,_0x325396){return _0x16d14b(_0x325396);},'qBVuP':_0x27fb65(0x1c8),'WXJmZ':_0x27fb65(0x28b),'vJWww':'launch'},_0x3e8cc2=path[_0x27fb65(0x21a)](_0x32760a[_0x27fb65(0x205)],_0x32760a[_0x27fb65(0x24d)],_0x32760a[_0x27fb65(0x21e)]),_0x3432a7=_0x32760a[_0x27fb65(0x19e)](importFileFromPWCore,_0x3e8cc2);if(!_0x3432a7){_0x32760a[_0x27fb65(0x248)](debug,_0x32760a[_0x27fb65(0x1f6)]);return;}const _0x125519=_0x3432a7[_0x27fb65(0x1b1)],_0x5890a3=_0x125519[_0x27fb65(0x1bc)];if(_0x5890a3[_0x27fb65(0x245)])return;const _0x204dd3=_0x5890a3[_0x27fb65(0x28b)];Object['defineProperty'](_0x5890a3,_0x32760a['WXJmZ'],{'get':function(){const _0x9a80d7=_0x27fb65,_0xc6ee0c={'TqMkO':function(_0x2b94dd,_0x41e950){const _0x16b553=a4_0x3016;return _0x32760a[_0x16b553(0x223)](_0x2b94dd,_0x41e950);},'NlDPy':_0x32760a['CmeOM'],'lubJz':function(_0x3fe922,_0x13d511,_0x3b4934){const _0x142004=a4_0x3016;return _0x32760a[_0x142004(0x230)](_0x3fe922,_0x13d511,_0x3b4934);},'XBtYs':_0x32760a[_0x9a80d7(0x217)],'dYcYa':function(_0x197884,_0x407db4){const _0x493082=_0x9a80d7;return _0x32760a[_0x493082(0x267)](_0x197884,_0x407db4);},'YYrcL':_0x32760a[_0x9a80d7(0x275)],'tQJlm':function(_0x1e923f,_0x1bf0e8,_0x273fd0){const _0x5e7cb8=_0x9a80d7;return _0x32760a[_0x5e7cb8(0x230)](_0x1e923f,_0x1bf0e8,_0x273fd0);},'lHUAN':function(_0x4ad54a,_0x8f4904){const _0x2f91ea=_0x9a80d7;return _0x32760a[_0x2f91ea(0x1f9)](_0x4ad54a,_0x8f4904);}};return async function _0x47bf0c(_0x5cfcf7,_0x95eeea){const _0x252f71=_0x9a80d7,_0xfdc439={'eXIUn':function(_0x537ac6,_0x50b8dd){const _0xf3fd65=a4_0x3016;return _0xc6ee0c[_0xf3fd65(0x1d3)](_0x537ac6,_0x50b8dd);},'slJGm':_0xc6ee0c['NlDPy']},_0x5e7739=_0xc6ee0c[_0x252f71(0x204)](nestedKeyValue,_0x5cfcf7,[_0xc6ee0c[_0x252f71(0x1b9)]])||_0x5cfcf7;let _0x4fe0be=null,_0x8286af=null;try{[_0x8286af,_0x4fe0be]=_0x5e7739?_0xc6ee0c[_0x252f71(0x250)](parseWSEndpoint,_0x5e7739):[null,null],global[_0x252f71(0x1e1)]=_0x4fe0be,_0x8286af[_0x252f71(0x233)](_0xc6ee0c['YYrcL'])&&(global['__cloud_provider___']=_0xc6ee0c[_0x252f71(0x24e)]);}catch(_0x373fde){logger[_0x252f71(0x271)]('Failed\x20to\x20parse\x20wsendpoint\x20'+_0x5e7739+'\x20'+_0x373fde);}_0xc6ee0c[_0x252f71(0x1be)](processAccessibilityCaps,_0x4fe0be,_0x8286af);if(global[_0x252f71(0x296)]){const _0x58588c=await _0x5890a3[_0x252f71(0x24f)][_0x252f71(0x1d7)](this,[''+Constants['PLAYWRIGHT_HUB_URL']+_0xc6ee0c[_0x252f71(0x24b)](encodeURIComponent,JSON[_0x252f71(0x241)](_0x4fe0be))]);return PlaywrightSessionDetails['setupBrowserDetails'](_0x58588c,_0x2a939,_0x5e7739),_0x58588c;}return _0x204dd3[_0x252f71(0x1d7)](this,arguments)[_0x252f71(0x1c2)](_0x521c2c=>{const _0x29731c=_0x252f71;let _0x3a32a7=_0x5cfcf7[_0x29731c(0x251)];return _0xfdc439['eXIUn'](typeof _0x5cfcf7,_0xfdc439[_0x29731c(0x23a)])&&(_0x3a32a7=_0x5cfcf7),PlaywrightSessionDetails[_0x29731c(0x226)](_0x521c2c,_0x2a939,_0x3a32a7),_0x521c2c;});};}});const _0x5000f8=_0x5890a3[_0x27fb65(0x1a6)];Object['defineProperty'](_0x5890a3,_0x32760a[_0x27fb65(0x1a7)],{'get':function(){return async function _0x2a4efd(){const _0x4540a5=a4_0x3016;return _0x5000f8[_0x4540a5(0x1d7)](this,arguments)[_0x4540a5(0x1c2)](_0x2a975f=>{return PlaywrightSessionDetails['setupBrowserDetails'](_0x2a975f,null),_0x2a975f;});};}});};function a4_0x785b(){const _0x28301e=['file','fpsdn','lsiCk','IVDOv','currentHook','LkkjF','launch','vJWww','message','cSZDf','inspect','SOdJG','failed\x20to\x20get\x20root\x20parent\x20file\x20','removeAllListeners','NdIzn','skipped','Exception\x20in\x20uploading\x20log\x20data\x20to\x20Observability\x20with\x20error\x20:\x20','BrowserType','1|5|3|4|0|2','parent','event_type','bddSteps','uploadEventData','success','relative','XBtYs','length','shutdown','prototype','File\x20path\x20could\x20not\x20be\x20found','tQJlm','../../helpers/test-observability/sessionHandler','_testEnv','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20Observability\x20with\x20error\x20:\x20','then','result','ilpUe','899670Pdlwte','BrKBP','NOfbE','Not\x20able\x20to\x20import\x20Browser','err','sendCBTInfo','xTNHU','markedStatus','mihAu','test','STATE_PASSED','vnPNM','_paths','failure_backtrace','TqMkO','wxiBU','appendTestItemLog','dOfGf','apply','push','1lSzvHX','hook_type','../../helpers/testhub/utils.js','prefixTestPath','finished','cwd','hooks','title','__platformCaps','getHierarchy','TKYXf','GKMvG','getCBTInfo','driver','qevIV','YmMYh','CBTSessionCreated','2266898vWyxwg','getTime','KxMUk','Dfadf','testAnalyticsId','hook_run','match','passed','mapTestHooks','meta','comment','1446726XIYHYJ','qBVuP','name','toUpperCase','BpUwD','retryOf','pid','failure','../../helpers/test-observability/utils','tags','winstonLogger','bs:addLog:','TestRunStarted','yvCyG','concat','lubJz','eRkZS','client','test_run','../playwright/sessionDetails','eknHr','TEST_EVENTS','_afterEach','finished_at','LIxPg','now','7613080knXOpP','constructor','lib','4508464FNQqlt','NNJEQ','errorsDetailed','toISOString','initializeBddStep','uhiCG','../../helpers/logger','file_name','join','Playwright','toString','ruDhR','uCCCq','uuid','../utils/constants','vRxWU','nsjhO','WbsUF','text','ugbjH','setupBrowserDetails','7071368OrfzFE','gAUKD','_afterAll','replace','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','keyword','HOOK_RUN_FINISHED','groups','started','liqfx','test_run_uuid','split','includes','expanded','Exception\x20in\x20sending\x20test\x20data\x20for\x20event\x20','getHookType','currentTest','KkPjG','stop','slJGm','feature','hook_run_uuid','getRootParentFile','duration','./helper.js','\x20with\x20error\x20:\x20','stringify','statSync','_beforeAll','fullTitle','obsBrowserTypeMockApplied','ejgoV','pvrCp','NykbV','hookAnalyticsId','path','lHUAN','codeceptjs','xOfkj','YYrcL','connectOverCDP','dYcYa','wsEndpoint','getHooksForTest','EWXjJ','stepAnalyticsId','eYHkd','7NnXoBS','SDqwi','bddStepStart','aVASf','resetSkipTestHooks','TEST_RUN_SKIPPED','ikRNw','frameworkName','SYVLX','getInstance','TEST_RUN_STARTED','HOOK_RUN_STARTED','hook','forEach','ctx','startedAt','../mocha/test-observability/mochaUtils','NfQAX','IYutH','vmRms','srIhV','oXNRn','javascript','DMTZJ','enabled','jBuKs','O11yHelper','debug','qHEsy','fireEvent','suites','fqLUj','kNYuX','XBYGB','patchConsoleLogger','../../helpers/test-observability/constants','browserstack','TEST_RUN_FINISHED','QAfzO','logs','../../helpers/helper','6096312bUFZWQ','status','GpMeS','integrations','failed','RySIr','backtrace','body','_beforeEach','CxaMV','nHuzT','gafLq','connect','PathHelper','cnxbe','type','findGitConfig','VNoKE','upatP','CgdZG','exports','LVYGD','.git','accessibilityPlatform','vglAG','WsJEU','pending','browserType.js','pJhEN','Gxvsi'];a4_0x785b=function(){return _0x28301e;};return a4_0x785b();}class O11yHelper{[a4_0x2e3e5a(0x237)]=null;[a4_0x2e3e5a(0x1a4)]=null;[a4_0x2e3e5a(0x26e)]=![];[a4_0x2e3e5a(0x25d)]=![];constructor(_0x4a3cba,_0x1e3456){const _0x20c471=a4_0x2e3e5a,_0x5aab7f={'upatP':_0x20c471(0x1b2),'aQGNG':function(_0x2504f6){return _0x2504f6();},'nHuzT':function(_0x59242b,_0x3f3fef){return _0x59242b===_0x3f3fef;},'DMTZJ':_0x20c471(0x21b),'YZGYI':function(_0x54a878,_0x2cfe94){return _0x54a878(_0x2cfe94);},'KkPjG':function(_0x1ea49e){return _0x1ea49e();}},_0xd47378=_0x5aab7f[_0x20c471(0x291)][_0x20c471(0x232)]('|');let _0x1386cc=0x0;while(!![]){switch(_0xd47378[_0x1386cc++]){case'0':this[_0x20c471(0x1d1)]=new testOpsHelper[(_0x20c471(0x28c))]({'cwd':process[_0x20c471(0x1de)]()},this[_0x20c471(0x1c0)]['location_prefix']);continue;case'1':this[_0x20c471(0x26e)]=_0x5aab7f['aQGNG'](shouldProcessEventForTesthub);continue;case'2':this[_0x20c471(0x1e6)]&&_0x5aab7f[_0x20c471(0x289)](this[_0x20c471(0x1e6)][_0x20c471(0x210)]['name'],_0x5aab7f[_0x20c471(0x26d)])&&_0x5aab7f['YZGYI'](mockPWBrowserType,null);continue;case'3':this['driver']=_0x4a3cba;continue;case'4':this[_0x20c471(0x1c0)]=_0x5aab7f[_0x20c471(0x238)](getTestEnv);continue;case'5':this[_0x20c471(0x25d)]=_0x1e3456[_0x20c471(0x25d)];continue;}break;}}['start'](){const _0x2289f3=a4_0x2e3e5a;if(!this[_0x2289f3(0x26e)])return;testOpsHelper[_0x2289f3(0x278)](),process[_0x2289f3(0x1ad)](_0x2289f3(0x200)+process[_0x2289f3(0x1fb)]),process['on'](_0x2289f3(0x200)+process[_0x2289f3(0x1fb)],this[_0x2289f3(0x1d5)]['bind'](this));}async[a4_0x2e3e5a(0x239)](){const _0x1a6110=a4_0x2e3e5a;await RequestQueueHandler[_0x1a6110(0x25f)]()[_0x1a6110(0x1bb)]();}async[a4_0x2e3e5a(0x1d5)](_0x233912){const _0x3bfd57=a4_0x2e3e5a,_0x187c6e={'jpZsH':'LogCreated','LIxPg':function(_0x423e46,_0x390a5f){return _0x423e46(_0x390a5f);}};try{this[_0x3bfd57(0x1a4)]&&!this[_0x3bfd57(0x1a4)]['markedStatus']&&(_0x233912[_0x3bfd57(0x23c)]=this['currentHook'][_0x3bfd57(0x249)]);!_0x233912['hook_run_uuid']&&this['currentTest']&&!this['currentTest'][_0x3bfd57(0x1cc)]&&(_0x233912[_0x3bfd57(0x231)]=this['currentTest'][_0x3bfd57(0x1ee)]);if(_0x233912[_0x3bfd57(0x23c)]||_0x233912[_0x3bfd57(0x231)]){const _0xccc798={};_0xccc798['event_type']=_0x187c6e['jpZsH'],_0xccc798[_0x3bfd57(0x27d)]=[_0x233912],await SessionHandler[_0x3bfd57(0x1b6)](_0xccc798);}}catch(_0x1052b0){_0x187c6e[_0x3bfd57(0x20d)](debug,_0x3bfd57(0x1b0)+_0x1052b0);}}async[a4_0x2e3e5a(0x1ca)](_0x343d0c){const _0x217522=a4_0x2e3e5a,_0x191bd6={'aYXrj':_0x217522(0x1e9),'XBYGB':function(_0x437719,_0x3383ec){return _0x437719(_0x3383ec);}};if(!this[_0x217522(0x26e)])return;const _0x1e5360=this[_0x217522(0x1e5)](this[_0x217522(0x1e6)]);try{const _0x3bbc46={};_0x3bbc46[_0x217522(0x21f)]=_0x343d0c,_0x3bbc46[_0x217522(0x282)]=_0x1e5360;const _0x402eaa=_0x3bbc46,_0x590d5e={};_0x590d5e[_0x217522(0x1b4)]=_0x191bd6['aYXrj'],_0x590d5e[_0x217522(0x207)]=_0x402eaa,await SessionHandler[_0x217522(0x1b6)](_0x590d5e);}catch(_0x52d55b){_0x191bd6[_0x217522(0x277)](debug,_0x217522(0x1c1)+_0x52d55b);}}[a4_0x2e3e5a(0x1e5)](_0x441b8c){const _0xdf7619={'gLNNl':function(_0x1b6c1f,_0x1cb10f){return _0x1b6c1f(_0x1cb10f);}};return _0xdf7619['gLNNl'](fetchPlatformDetails,_0x441b8c);}['resetSkipTestHooks']=_0x59c896=>{const _0xc89b3d=a4_0x2e3e5a,_0x2927f3={};_0x2927f3[_0xc89b3d(0x1cb)]=_0xc89b3d(0x287),_0x2927f3[_0xc89b3d(0x294)]=_0xc89b3d(0x20b);const _0x586c1e=_0x2927f3;if(!_0x59c896||!_0x59c896[_0xc89b3d(0x1b3)])return;[_0x586c1e[_0xc89b3d(0x1cb)],_0x586c1e[_0xc89b3d(0x294)]][_0xc89b3d(0x263)](_0x50b775=>{const _0x32b963=_0xc89b3d,_0x4886c0=_0x59c896[_0x32b963(0x1b3)][_0x50b775];_0x4886c0[_0x32b963(0x263)](_0x55c500=>{const _0x45d412=_0x32b963;_0x55c500[_0x45d412(0x249)]&&(_0x55c500['hookAnalyticsId']=null);});});};[a4_0x2e3e5a(0x1f2)](_0x1aeb10){const _0x1eb394=a4_0x2e3e5a,_0x4487ff={'USmEL':_0x1eb394(0x24c),'SDqwi':function(_0x432e57){return _0x432e57();},'TKYXf':function(_0x19b5db,_0x4145f2){return _0x19b5db===_0x4145f2;},'SYVLX':_0x1eb394(0x20b),'QAfzO':_0x1eb394(0x243),'WYTfB':_0x1eb394(0x229),'pvrCp':'_beforeEach'};if(!_0x1aeb10||!_0x1aeb10[_0x1eb394(0x1b3)])return;[_0x4487ff[_0x1eb394(0x27c)],_0x4487ff['WYTfB'],_0x4487ff[_0x1eb394(0x247)],_0x4487ff[_0x1eb394(0x25e)]][_0x1eb394(0x263)](_0x17972f=>{const _0x3b00ee=_0x1eb394,_0x533e91={'CgdZG':_0x4487ff['USmEL'],'IVDOv':function(_0x1bc43f){const _0x510841=a4_0x3016;return _0x4487ff[_0x510841(0x257)](_0x1bc43f);},'qHEsy':function(_0x3c3084,_0x2f1409){const _0x268c35=a4_0x3016;return _0x4487ff[_0x268c35(0x1e3)](_0x3c3084,_0x2f1409);},'vRxWU':_0x4487ff[_0x3b00ee(0x25e)]},_0x2b8d33=_0x1aeb10[_0x3b00ee(0x1b3)][_0x17972f]||[];_0x2b8d33['forEach'](_0x32aaad=>{const _0x1a89b8=_0x3b00ee;if(_0x32aaad[_0x1a89b8(0x1e0)][_0x1a89b8(0x233)](_0x533e91[_0x1a89b8(0x292)]))return;if(!_0x32aaad['hookAnalyticsId'])_0x32aaad[_0x1a89b8(0x249)]=_0x533e91[_0x1a89b8(0x1a3)](uuidv4);else _0x32aaad[_0x1a89b8(0x1cc)]&&_0x533e91[_0x1a89b8(0x272)](_0x17972f,_0x533e91[_0x1a89b8(0x221)])&&(_0x32aaad['hookAnalyticsId']=_0x533e91['IVDOv'](uuidv4),delete _0x32aaad[_0x1a89b8(0x1cc)]);});}),this[_0x1eb394(0x1f2)](_0x1aeb10[_0x1eb394(0x1b3)]);}[a4_0x2e3e5a(0x252)](_0x3e0c71){const _0x2029ba=a4_0x2e3e5a,_0x5a509d={};_0x5a509d[_0x2029ba(0x276)]=_0x2029ba(0x243),_0x5a509d['fpsdn']=_0x2029ba(0x229),_0x5a509d[_0x2029ba(0x1c7)]=_0x2029ba(0x287),_0x5a509d[_0x2029ba(0x281)]=_0x2029ba(0x20b);const _0x12e95c=_0x5a509d;if(!_0x3e0c71||!_0x3e0c71['parent'])return[];const _0x5c6cf9=[];return[_0x12e95c[_0x2029ba(0x276)],_0x12e95c[_0x2029ba(0x1a1)],_0x12e95c[_0x2029ba(0x1c7)],_0x12e95c[_0x2029ba(0x281)]][_0x2029ba(0x263)](_0x3f38df=>{const _0x5e87be=_0x2029ba,_0x443512=_0x3e0c71['parent'][_0x3f38df]||[];_0x443512[_0x5e87be(0x263)](_0x48e8d7=>{const _0x5445f7=_0x5e87be;_0x48e8d7[_0x5445f7(0x249)]&&_0x5c6cf9[_0x5445f7(0x1d8)](_0x48e8d7['hookAnalyticsId']);});}),[][_0x2029ba(0x203)](_0x5c6cf9,this[_0x2029ba(0x252)](_0x3e0c71['parent']));}[a4_0x2e3e5a(0x236)](_0x3d653d){const _0x1c8f6e=a4_0x2e3e5a,_0x474abf=/^"(?<hook>.*)" hook:.*$/,_0x4ce095=_0x3d653d['title'],_0xf5bc25=_0x4ce095[_0x1c8f6e(0x1f0)](_0x474abf);if(_0xf5bc25&&_0xf5bc25[_0x1c8f6e(0x22e)])return _0xf5bc25[_0x1c8f6e(0x22e)][_0x1c8f6e(0x262)][_0x1c8f6e(0x1f8)]()[_0x1c8f6e(0x22a)]('\x20','_');return null;}[a4_0x2e3e5a(0x28f)](_0x382643){const _0x199410=a4_0x2e3e5a,_0x55f19b={};_0x55f19b[_0x199410(0x222)]=function(_0x1a9a65,_0x4135ea){return _0x1a9a65===_0x4135ea;},_0x55f19b[_0x199410(0x25c)]=function(_0x950a73,_0x145d9f){return _0x950a73===_0x145d9f;},_0x55f19b['yvCyG']=_0x199410(0x295),_0x55f19b['GKMvG']='config';const _0x4cf261=_0x55f19b,_0x4bb582=path['sep'];if(_0x4cf261[_0x199410(0x222)](_0x382643,null)||_0x4cf261[_0x199410(0x25c)](_0x382643,'')||_0x4cf261[_0x199410(0x25c)](_0x382643,_0x4bb582))return null;try{return fs[_0x199410(0x242)](path[_0x199410(0x21a)](_0x382643,_0x4cf261[_0x199410(0x202)],_0x4cf261[_0x199410(0x1e4)])),_0x382643;}catch(_0x28be8c){const _0x3c18df=path['dirname'](_0x382643);return this[_0x199410(0x28f)](_0x3c18df);}}['getRootParentFile'](_0x412f9c){const _0x57693c=a4_0x2e3e5a,_0xdee621={};_0xdee621['WXSyw']=function(_0x4693c8,_0x522667){return _0x4693c8>_0x522667;};const _0x54bf44=_0xdee621;if(_0x412f9c[_0x57693c(0x1a0)])return _0x412f9c[_0x57693c(0x1a0)];if(_0x412f9c[_0x57693c(0x264)]){const _0x304092=_0x412f9c[_0x57693c(0x264)][_0x57693c(0x237)]?this[_0x57693c(0x23d)](_0x412f9c[_0x57693c(0x264)][_0x57693c(0x237)]):null;if(_0x304092)return _0x304092;}if(_0x412f9c[_0x57693c(0x1b3)]){const _0x6bb742=this[_0x57693c(0x23d)](_0x412f9c[_0x57693c(0x1b3)])||(_0x412f9c[_0x57693c(0x1b3)][_0x57693c(0x264)]&&_0x412f9c[_0x57693c(0x1b3)][_0x57693c(0x264)][_0x57693c(0x237)]?this[_0x57693c(0x23d)](_0x412f9c[_0x57693c(0x1b3)]['ctx'][_0x57693c(0x237)]):null);if(_0x6bb742)return _0x6bb742;_0x412f9c[_0x57693c(0x1b3)][_0x57693c(0x274)]&&_0x54bf44['WXSyw'](_0x412f9c[_0x57693c(0x1b3)][_0x57693c(0x274)]['length'],0x0)&&_0x412f9c[_0x57693c(0x1b3)]['suites'][_0x57693c(0x263)](_0x35b988=>{const _0x2beca5=_0x57693c,_0x348bd5=_0x35b988[_0x2beca5(0x264)]?this['getRootParentFile'](_0x35b988[_0x2beca5(0x264)]):null;if(_0x348bd5)return _0x348bd5;});}return null;}['getHierarchy'](_0x3e3cc1){const _0x384bb8=a4_0x2e3e5a,_0x1f95a5={};_0x1f95a5[_0x384bb8(0x1d6)]=function(_0x139faf,_0x4ade1e){return _0x139faf!==_0x4ade1e;};const _0x28aed9=_0x1f95a5,_0x147e1c=[];if(_0x3e3cc1&&_0x3e3cc1[_0x384bb8(0x1b3)]){let _0x33ca98=_0x3e3cc1[_0x384bb8(0x1b3)];while(_0x33ca98&&_0x28aed9['dOfGf'](_0x33ca98[_0x384bb8(0x1e0)],'')){_0x147e1c[_0x384bb8(0x1d8)](_0x33ca98['title']),_0x33ca98=_0x33ca98['parent'];}}return _0x147e1c;}['captureEvent'](_0x5298fe,_0x1a2a5c,_0x9d459c=undefined){const _0x429994=a4_0x2e3e5a,_0x1ad81b={'IYutH':function(_0x24d30a,_0x48bf8b){return _0x24d30a(_0x48bf8b);},'YmMYh':function(_0x2cfff1){return _0x2cfff1();},'jBuKs':function(_0x5c2b80){return _0x5c2b80();},'ZMXbp':function(_0x2caba1){return _0x2caba1();},'eknHr':'util','VNoKE':_0x429994(0x1c9),'WsJEU':function(_0x5a3f16,_0x4cef2f){return _0x5a3f16!==_0x4cef2f;},'cnxbe':function(_0x1cdda1,_0x18e47d){return _0x1cdda1!==_0x18e47d;},'RiIkr':_0x429994(0x1bd),'KxMUk':'pending','Gxvsi':_0x429994(0x283),'srIhV':_0x429994(0x1f1),'vnPNM':_0x429994(0x1af),'SlguY':_0x429994(0x26c),'vglAG':function(_0x4efabe,_0x4ea895){return _0x4efabe-_0x4ea895;},'ugbjH':function(_0x49fbb1,_0x1101de,_0x342e06,_0xdefe13,_0x1027f6){return _0x49fbb1(_0x1101de,_0x342e06,_0xdefe13,_0x1027f6);},'JsdaB':function(_0x24b4b4,_0x2a3d04){return _0x24b4b4!==_0x2a3d04;},'SOdJG':_0x429994(0x282),'qRyuT':_0x429994(0x1f3),'CxaMV':_0x429994(0x1fc),'RySIr':_0x429994(0x1d2),'LkkjF':_0x429994(0x285),'ruDhR':'failure_reason_expanded','wujvr':_0x429994(0x234),'ilpUe':function(_0x91cd0b,_0x4e3c39){return _0x91cd0b===_0x4e3c39;},'cSZDf':_0x429994(0x1ef),'WGKxb':'test_run'};if(!this['enabled'])return;try{if(_0x1a2a5c['fn']&&_0x1a2a5c['fn'][_0x429994(0x21c)]()[_0x429994(0x1f0)](/browserstack internal helper hook/))return;const _0x48cf76=_0x1ad81b['IYutH'](parseEvent,_0x5298fe);if(!_0x48cf76)return;if(_0x48cf76['test']){this['currentTest']=_0x1a2a5c,this[_0x429994(0x1a4)]=null;if(_0x48cf76[_0x429994(0x22f)]||_0x48cf76[_0x429994(0x1af)]){_0x1a2a5c['startedAt']=new Date(),_0x1a2a5c['markedStatus']=![];if(!_0x1a2a5c[_0x429994(0x1ee)])_0x1a2a5c['testAnalyticsId']=_0x1ad81b[_0x429994(0x1e8)](uuidv4);else _0x1a2a5c['markedStatus']&&(!_0x1a2a5c['retryOf']&&(_0x1a2a5c['retryOf']=_0x1a2a5c[_0x429994(0x1ee)]),_0x1a2a5c[_0x429994(0x1ee)]=_0x1ad81b['jBuKs'](uuidv4));}}else{if(_0x48cf76[_0x429994(0x262)]){this[_0x429994(0x1a4)]=_0x1a2a5c;if(_0x48cf76[_0x429994(0x22f)]){_0x1a2a5c[_0x429994(0x265)]=new Date(),_0x1a2a5c['markedStatus']=![];if(!_0x1a2a5c['hookAnalyticsId'])_0x1a2a5c[_0x429994(0x249)]=_0x1ad81b[_0x429994(0x26f)](uuidv4);else _0x1a2a5c[_0x429994(0x249)]&&_0x1a2a5c[_0x429994(0x1cc)]&&(_0x1a2a5c[_0x429994(0x249)]=_0x1ad81b['ZMXbp'](uuidv4));}}}if(_0x48cf76['finished']&&_0x1a2a5c['markedStatus'])return;let _0x4092c3;try{_0x4092c3=this[_0x429994(0x23d)](_0x1a2a5c);}catch(_0x4779ad){logger[_0x429994(0x271)](_0x429994(0x1ac)+_0x4779ad),_0x4092c3=null;}const _0x3f8f7a=_0x1ad81b[_0x429994(0x268)](require,_0x1ad81b[_0x429994(0x209)]);let _0x39bc07=[];_0x9d459c&&(_0x39bc07=[_0x9d459c,_0x1ad81b[_0x429994(0x290)]]);const _0x50231f=_0x1ad81b[_0x429994(0x298)](_0x1a2a5c[_0x429994(0x214)],undefined)?_0x3f8f7a[_0x429994(0x1aa)](_0x1a2a5c[_0x429994(0x214)][0x0]):_0x1ad81b[_0x429994(0x28d)](_0x9d459c,undefined)?_0x9d459c['toString']():undefined,_0x1ab8b8=_0x4092c3?this[_0x429994(0x28f)](_0x4092c3):null,_0x401664=_0x4092c3?this[_0x429994(0x1d1)][_0x429994(0x1dc)](this[_0x429994(0x23d)](_0x1a2a5c)):_0x1ad81b['RiIkr'];let _0xeb0153=_0x1ad81b[_0x429994(0x1ec)];const _0x4c4661=!_0x48cf76['started']?new Date()['toISOString']():null;if(_0x48cf76['finished'])_0xeb0153=_0x9d459c?_0x1ad81b[_0x429994(0x19f)]:_0x1ad81b['srIhV'],_0x1a2a5c['markedStatus']=!![];else _0x48cf76['skipped']&&(_0xeb0153=_0x1ad81b[_0x429994(0x1d0)],_0x1a2a5c['markedStatus']=!![]);const _0x506db2={'framework':this[_0x429994(0x25d)],'uuid':_0x1a2a5c[_0x429994(0x1ee)]||_0x1a2a5c['hookAnalyticsId'],'name':_0x1a2a5c['title'],'body':{'lang':_0x1ad81b['SlguY'],'code':_0x1a2a5c[_0x429994(0x286)][_0x429994(0x21c)]()},'type':_0x1a2a5c[_0x429994(0x28e)],'scope':_0x1a2a5c[_0x429994(0x244)](),'scopes':this[_0x429994(0x1e2)](_0x1a2a5c),'file_name':_0x401664,'vc_filepath':_0x1ab8b8?path[_0x429994(0x1b8)](_0x1ab8b8,_0x4092c3):null,'location':_0x401664,'result':_0xeb0153,'failure_reason':_0x50231f,'duration_in_ms':_0x1a2a5c[_0x429994(0x23e)]||(_0x48cf76[_0x429994(0x1dd)]||_0x48cf76[_0x429994(0x1af)])?_0x1ad81b[_0x429994(0x297)](Date[_0x429994(0x20e)](),new Date(_0x1a2a5c[_0x429994(0x265)])[_0x429994(0x1eb)]()):null,'started_at':new Date(_0x1a2a5c[_0x429994(0x265)])[_0x429994(0x215)](),'finished_at':_0x4c4661,'failure':testOpsHelper['failureData'][_0x429994(0x1d7)](null,_0x39bc07),'failure_type':!_0x50231f?null:testOpsHelper['getFailureType'](_0x50231f),'retry_of':_0x1a2a5c[_0x429994(0x1fa)]||null,'tags':_0x1a2a5c[_0x429994(0x1fe)]||[],'customRerunParam':{'rerun_name':_0x1a2a5c['fullTitle']()}};_0x1ad81b[_0x429994(0x225)](appendTesthubParams,_0x506db2,_0x5298fe,_0x1a2a5c,FRAMEWORKS['CODECEPT']);if(_0x48cf76[_0x429994(0x262)])[_0x506db2[_0x429994(0x1da)],_0x506db2[_0x429994(0x1f7)]]=[this[_0x429994(0x236)](_0x1a2a5c),_0x1a2a5c['ctx'][_0x429994(0x1ce)][_0x429994(0x1e0)]],_0x48cf76['finished']?_0x1ad81b['JsdaB'](_0x506db2[_0x429994(0x1c3)],_0x1ad81b[_0x429994(0x19f)])&&(_0x506db2['result']=_0x1ad81b['srIhV']):_0x506db2[_0x429994(0x286)]={};else _0x48cf76[_0x429994(0x1ce)]&&(this[_0x429994(0x1f2)](_0x1a2a5c),_0x48cf76[_0x429994(0x1af)]&&this[_0x429994(0x25a)](_0x1a2a5c),(_0x48cf76[_0x429994(0x1dd)]||_0x48cf76[_0x429994(0x1af)])&&(_0x506db2[_0x429994(0x1df)]=this[_0x429994(0x252)](_0x1a2a5c)));this[_0x429994(0x1e6)]&&(_0x48cf76[_0x429994(0x22f)]||_0x48cf76[_0x429994(0x1af)])&&(_0x506db2[_0x1ad81b[_0x429994(0x1ab)]]=this[_0x429994(0x1e5)](this[_0x429994(0x1e6)]));_0x48cf76[_0x429994(0x1ce)]&&_0x48cf76[_0x429994(0x1dd)]&&_0x1a2a5c[_0x429994(0x1b5)]&&(_0x506db2[_0x1ad81b['qRyuT']]={'feature':{'name':_0x1a2a5c['parent'][_0x429994(0x23b)][_0x429994(0x1f7)],'path':_0x506db2[_0x429994(0x219)],'description':_0x1a2a5c[_0x429994(0x1b3)][_0x429994(0x1f4)]},'scenario':{'name':_0x1a2a5c[_0x429994(0x1e0)]},'steps':_0x1a2a5c[_0x429994(0x1b5)]});const _0x58a8ef=_0x506db2[_0x1ad81b[_0x429994(0x288)]][0x0];_0x58a8ef&&(_0x506db2[_0x1ad81b[_0x429994(0x284)]]=_0x58a8ef[_0x1ad81b[_0x429994(0x1a5)]],_0x506db2[_0x1ad81b[_0x429994(0x21d)]]=_0x58a8ef[_0x1ad81b['wujvr']]);if(_0x1a2a5c[_0x429994(0x1b5)])for(const _0xfda261 of _0x1a2a5c[_0x429994(0x1b5)]){!_0xfda261[_0x429994(0x20c)]&&(_0xfda261[_0x429994(0x20c)]=new Date()[_0x429994(0x215)](),_0x1ad81b[_0x429994(0x1c4)](_0xfda261[_0x429994(0x1c3)],_0x1ad81b[_0x429994(0x1ec)])&&(_0x58a8ef?(_0xfda261[_0x429994(0x1c3)]=_0x1ad81b[_0x429994(0x19f)],_0xfda261[_0x429994(0x1fc)]=_0x58a8ef[_0x1ad81b[_0x429994(0x1a5)]][0x0]):_0xfda261['result']=_0x1ad81b[_0x429994(0x26a)]));}const _0x4271be={};_0x4271be[_0x429994(0x1b4)]=_0x48cf76[_0x429994(0x1af)]?TEST_EVENTS[_0x429994(0x27b)]:_0x5298fe;const _0x3ebfaa=_0x4271be;return _0x48cf76[_0x429994(0x262)]?_0x3ebfaa[_0x1ad81b[_0x429994(0x1a9)]]=_0x506db2:_0x3ebfaa[_0x1ad81b['WGKxb']]=_0x506db2,_0x3ebfaa;}catch(_0x2278a0){logger[_0x429994(0x271)](_0x429994(0x22b)+_0x5298fe+_0x429994(0x240)+_0x2278a0);}}async[a4_0x2e3e5a(0x273)](_0x5f3aff,_0x4af065){const _0x28d422=a4_0x2e3e5a;if(!this[_0x28d422(0x26e)]||!_0x4af065||!_0x5f3aff)return![];try{return await SessionHandler[_0x28d422(0x1b6)](_0x4af065);}catch(_0x33c14b){logger['debug'](_0x28d422(0x235)+_0x5f3aff+_0x28d422(0x240)+_0x33c14b);}}[a4_0x2e3e5a(0x216)](_0x23defc){const _0x4fc56a=a4_0x2e3e5a,_0x4aa1d5={};_0x4aa1d5[_0x4fc56a(0x1a2)]=_0x4fc56a(0x299);const _0x46ec80=_0x4aa1d5;return{'id':_0x23defc[_0x4fc56a(0x254)],'text':_0x23defc[_0x4fc56a(0x224)],'keyword':_0x23defc[_0x4fc56a(0x22c)],'started_at':_0x23defc[_0x4fc56a(0x265)][_0x4fc56a(0x215)](),'result':_0x46ec80[_0x4fc56a(0x1a2)]};}[a4_0x2e3e5a(0x258)](_0x484f8a){const _0x54dca0=a4_0x2e3e5a,_0x45a4a5={'vmRms':function(_0x215bfa){return _0x215bfa();}};!this[_0x54dca0(0x237)]['bddSteps']&&(this[_0x54dca0(0x237)][_0x54dca0(0x1b5)]=[]),!_0x484f8a[_0x54dca0(0x254)]&&(_0x484f8a['stepAnalyticsId']=_0x45a4a5[_0x54dca0(0x269)](uuidv4),_0x484f8a[_0x54dca0(0x265)]=new Date(),this[_0x54dca0(0x237)][_0x54dca0(0x1b5)][_0x54dca0(0x1d8)](this[_0x54dca0(0x216)](_0x484f8a)));}['bddStepFinish'](_0x115527){const _0x112d66=a4_0x2e3e5a,_0x365646={'Dfadf':function(_0x47c8b6,_0x1393c7){return _0x47c8b6(_0x1393c7);},'aVASf':_0x112d66(0x1b7),'wxiBU':_0x112d66(0x299),'gAUKD':_0x112d66(0x1f1),'mihAu':function(_0x1960c9,_0x2950ae){return _0x1960c9-_0x2950ae;}};let _0x2a1900=this[_0x112d66(0x237)][_0x112d66(0x1b5)]['find'](_0x105891=>_0x105891['id']===_0x115527[_0x112d66(0x254)]);_0x365646[_0x112d66(0x1ed)](isUndefined,_0x2a1900)&&(_0x2a1900=this[_0x112d66(0x216)](_0x115527)),_0x2a1900[_0x112d66(0x1c3)]=[_0x365646[_0x112d66(0x259)],_0x365646[_0x112d66(0x1d4)]][_0x112d66(0x233)](_0x115527[_0x112d66(0x280)])?_0x365646[_0x112d66(0x228)]:_0x115527['status'],_0x2a1900[_0x112d66(0x20c)]=new Date()['toISOString'](),_0x2a1900['duration']=_0x365646[_0x112d66(0x1cd)](Date[_0x112d66(0x20e)](),_0x115527[_0x112d66(0x265)][_0x112d66(0x1eb)]()),_0x2a1900['failure']=_0x115527['err']?_0x115527[_0x112d66(0x1c9)][_0x112d66(0x1a8)]:null;}}const a4_0x25085c={};a4_0x25085c[a4_0x2e3e5a(0x270)]=O11yHelper,a4_0x25085c[a4_0x2e3e5a(0x1cf)]=STATE_PASSED,a4_0x25085c['STATE_FAILED']=STATE_FAILED,a4_0x25085c[a4_0x2e3e5a(0x20a)]=TEST_EVENTS,module[a4_0x2e3e5a(0x293)]=a4_0x25085c;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a5_0x365a(_0x30e686,_0x98baa8){const _0x5450c5=a5_0x5450();return a5_0x365a=function(_0x365a4a,_0x2ecf02){_0x365a4a=_0x365a4a-0x9b;let _0x4e784e=_0x5450c5[_0x365a4a];return _0x4e784e;},a5_0x365a(_0x30e686,_0x98baa8);}const a5_0x5d12ba=a5_0x365a;(function(_0x96183c,_0x5350b0){const _0x3825d8=a5_0x365a,_0x4ce4a2=_0x96183c();while(!![]){try{const _0x267d1f=-parseInt(_0x3825d8(0xe3))/0x1+-parseInt(_0x3825d8(0xf9))/0x2*(-parseInt(_0x3825d8(0xf5))/0x3)+-parseInt(_0x3825d8(0x103))/0x4*(-parseInt(_0x3825d8(0xae))/0x5)+-parseInt(_0x3825d8(0x9c))/0x6*(-parseInt(_0x3825d8(0x9e))/0x7)+parseInt(_0x3825d8(0xb4))/0x8+parseInt(_0x3825d8(0xd6))/0x9*(parseInt(_0x3825d8(0xa1))/0xa)+-parseInt(_0x3825d8(0xc7))/0xb;if(_0x267d1f===_0x5350b0)break;else _0x4ce4a2['push'](_0x4ce4a2['shift']());}catch(_0x1bcde7){_0x4ce4a2['push'](_0x4ce4a2['shift']());}}}(a5_0x5450,0xbe893));function a5_0x5450(){const _0x485e88=['\x20passed','handleApp','stepsSkipped','cucumber','stepsPassed','gnyAG','DYDDJ','pVIVz','fOhNU','env','21369733Quphmb','CUCUMBER','hdPtd','KkSJM','txjXC','unlinkSync','testContextOptions','JVfGk','KcQsC','rSgZE','proxySettings','config','error\x20removing\x20tcg\x20config\x20file','mergeOutputFiles','stepsAmbiguous','1809855uxAtTM','errorMessage','YszKs','\x20scenarios','markSDKSetupComplete','removeDir','isBrowserstackInfra','log','argv','scenarios','BXgfK','AzvzR','tQhQq','116595BmMkTg','debug','getHubUrl','Yvnow','../utils/constants','stop','join','\x20skipped','stepsUnknown','accessibilityOptions','then','jsBvT','rrEVs','Generating\x20consolidated\x20report...','\x20failed','processSuccess','tmp','../../helpers/helper','447sDsvGE','isUndefined','\x20undefined','\x20steps','7426YOADog','stepsPending','skipSessionName','stringify','../../helpers/testhub/testhubHandler','cwd','****\x20RESULTS\x20****','getErrorMessageFromResults','cTJaP','kKNsb','84ZKYQkO','../../helpers/logger','../../helpers/utilities','../../helpers/test-observability/utils','logLevel','format','MuSRj','\x20pending','WuqsO','finalExecution','cyan','fRQja','green','222eDctRc','exitCode','89572HaoRfl','false','yellow','20QtwnRi','KDwTQ','baOyw','length','splice','xmIFq','initialize','launchBuild','xDMXU','skipSessionStatus','red','bold','push','144575LDlnar','stepsFailed','testObservability','finally','nmWUN','path','6429112uDUtnH','exports','rmdirSync','createDir','dZONc','FRAMEWORKS','FoCZi','scenariosFailed','turboScaleUrl'];a5_0x5450=function(){return _0x485e88;};return a5_0x5450();}const fs=require('fs'),path=require(a5_0x5d12ba(0xb3)),util=require('util'),logger=require(a5_0x5d12ba(0x104))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a5_0x5d12ba(0xf4)),utilities=require(a5_0x5d12ba(0x105)),constants=require(a5_0x5d12ba(0xe7)),{parallelCucumberRun}=require('../test-runner'),TestHubHandler=require(a5_0x5d12ba(0xfd)),testOpsHelper=require(a5_0x5d12ba(0x106)),chalk=require('chalk');function printCucumberStats(_0x197689){const _0x8b878=a5_0x5d12ba,_0x544c77={};_0x544c77['rSgZE']=function(_0x29253e,_0x253e0e){return _0x29253e>_0x253e0e;},_0x544c77[_0x8b878(0xc3)]=function(_0xd50d8,_0x3d43b7){return _0xd50d8-_0x3d43b7;},_0x544c77[_0x8b878(0xc4)]=function(_0x20654e,_0x5aa2ff){return _0x20654e-_0x5aa2ff;},_0x544c77[_0x8b878(0xca)]=function(_0xafde9a,_0x506c9a){return _0xafde9a>_0x506c9a;},_0x544c77['jsBvT']=function(_0x5b4581,_0x5bb61b){return _0x5b4581>_0x5bb61b;},_0x544c77[_0x8b878(0xe2)]=function(_0x5b20e0,_0x282b0c){return _0x5b20e0>_0x282b0c;},_0x544c77[_0x8b878(0xd8)]=function(_0x58b63c,_0x5d04a9){return _0x58b63c>_0x5d04a9;},_0x544c77[_0x8b878(0x10e)]=function(_0x25aaa0,_0x55af32){return _0x25aaa0>_0x55af32;},_0x544c77[_0x8b878(0x10b)]=function(_0x422494,_0x177feb){return _0x422494>_0x177feb;},_0x544c77[_0x8b878(0xef)]=function(_0x358a5d,_0x579e11){return _0x358a5d>_0x579e11;},_0x544c77[_0x8b878(0xa6)]=function(_0x341f8e,_0x426423){return _0x341f8e>_0x426423;},_0x544c77[_0x8b878(0xc9)]=function(_0x1a276d,_0x29fd46){return _0x1a276d>_0x29fd46;},_0x544c77[_0x8b878(0xba)]=function(_0x4a7fe4,_0x5f2275){return _0x4a7fe4+_0x5f2275;},_0x544c77['xDMXU']=function(_0x4c0bfe,_0x4b0543){return _0x4c0bfe+_0x4b0543;},_0x544c77[_0x8b878(0xe6)]=function(_0x2d2b34,_0x3d6b55){return _0x2d2b34+_0x3d6b55;},_0x544c77[_0x8b878(0xce)]=function(_0x478699,_0x5173c8){return _0x478699+_0x5173c8;},_0x544c77[_0x8b878(0xb8)]=function(_0x457841,_0x7f4925){return _0x457841+_0x7f4925;},_0x544c77[_0x8b878(0xa3)]=function(_0x5b322b,_0x44d42c){return _0x5b322b===_0x44d42c;},_0x544c77[_0x8b878(0xe1)]=_0x8b878(0xff);const _0x40a58c=_0x544c77;let _0x4f2f28=0x0;if(_0x40a58c[_0x8b878(0xa3)](_0x197689[_0x8b878(0xa4)],0x0))return _0x4f2f28;return console[_0x8b878(0xdd)](chalk['bold']['bgWhite'](_0x40a58c[_0x8b878(0xe1)])),_0x197689['forEach'](_0x1a1d5f=>{const _0x136ee4=_0x8b878,_0x5cf7e7=_0x1a1d5f[0x0],_0x1bc405=_0x1a1d5f[0x1];console[_0x136ee4(0xdd)]('\x0a'+chalk['bold'][_0x136ee4(0xa0)](''+helper['getPlatformName'](_0x5cf7e7)));const _0x2439a7=_0x1bc405[_0x136ee4(0xdf)],_0xd29125=_0x1bc405['steps'],_0x11654f=_0x1bc405[_0x136ee4(0xbb)],_0x580c1a=_0x1bc405[_0x136ee4(0xaf)],_0x12f290=_0x1bc405[_0x136ee4(0xc1)],_0x3459e8=_0x1bc405[_0x136ee4(0xbf)],_0x2114c9=_0x1bc405[_0x136ee4(0xfa)],_0x40ac34=_0x1bc405['stepsUndefined'],_0x5cd2c4=_0x1bc405[_0x136ee4(0xeb)],_0x15dc1b=_0x1bc405[_0x136ee4(0xd5)],_0x16e4f4=_0x1bc405[_0x136ee4(0xf2)];let _0x3d8c4a=_0x2439a7+_0x136ee4(0xd9);const _0x4a6f8c=_0x40a58c[_0x136ee4(0xd0)](_0x40a58c[_0x136ee4(0xc3)](_0x2439a7,_0x11654f),0x0)?_0x40a58c[_0x136ee4(0xc4)](_0x2439a7,_0x11654f):0x0;if(_0x40a58c[_0x136ee4(0xca)](_0x11654f,0x0)&&_0x40a58c[_0x136ee4(0xd0)](_0x4a6f8c,0x0))_0x3d8c4a+='\x20('+chalk[_0x136ee4(0xac)][_0x136ee4(0xab)](_0x11654f+_0x136ee4(0xf1))+',\x20'+chalk[_0x136ee4(0xac)][_0x136ee4(0x9b)](_0x4a6f8c+_0x136ee4(0xbd))+')';else(_0x40a58c[_0x136ee4(0xd0)](_0x11654f,0x0)||_0x40a58c['KkSJM'](_0x4a6f8c,0x0))&&(_0x3d8c4a+=_0x40a58c[_0x136ee4(0xee)](_0x11654f,0x0)?'\x20('+chalk[_0x136ee4(0xac)]['red'](_0x11654f+'\x20failed')+')':'\x20('+chalk[_0x136ee4(0xac)][_0x136ee4(0x9b)](_0x4a6f8c+_0x136ee4(0xbd))+')');const _0x5e98b0=_0xd29125+_0x136ee4(0xf8),_0x50378b=[];_0x40a58c[_0x136ee4(0xe2)](_0x15dc1b,0x0)&&_0x50378b[_0x136ee4(0xad)](''+chalk[_0x136ee4(0xac)]['red'](_0x15dc1b+'\x20ambiguous'));_0x40a58c[_0x136ee4(0xd8)](_0x580c1a,0x0)&&_0x50378b['push'](''+chalk['bold'][_0x136ee4(0xab)](_0x580c1a+_0x136ee4(0xf1)));_0x40a58c[_0x136ee4(0x10e)](_0x12f290,0x0)&&_0x50378b[_0x136ee4(0xad)](''+chalk[_0x136ee4(0xac)][_0x136ee4(0x9b)](_0x12f290+'\x20passed'));_0x40a58c[_0x136ee4(0x10b)](_0x2114c9,0x0)&&_0x50378b['push'](''+chalk[_0x136ee4(0xac)][_0x136ee4(0xa0)](_0x2114c9+_0x136ee4(0x10a)));_0x40a58c[_0x136ee4(0xef)](_0x3459e8,0x0)&&_0x50378b[_0x136ee4(0xad)](''+chalk[_0x136ee4(0xac)][_0x136ee4(0x10d)](_0x3459e8+_0x136ee4(0xea)));_0x40a58c[_0x136ee4(0xa6)](_0x40ac34,0x0)&&_0x50378b[_0x136ee4(0xad)](''+chalk[_0x136ee4(0xac)][_0x136ee4(0xa0)](_0x40ac34+_0x136ee4(0xf7)));_0x40a58c['hdPtd'](_0x5cd2c4,0x0)&&_0x50378b[_0x136ee4(0xad)](''+chalk[_0x136ee4(0xac)][_0x136ee4(0xa0)](_0x5cd2c4+_0x136ee4(0xea)));const _0x2cf3f0=_0x40a58c[_0x136ee4(0xba)](_0x40a58c[_0x136ee4(0xa9)](_0x40a58c[_0x136ee4(0xa9)](_0x5e98b0,'('),_0x50378b[_0x136ee4(0xe9)](',\x20')),')');console[_0x136ee4(0xdd)](_0x40a58c[_0x136ee4(0xe6)](_0x40a58c[_0x136ee4(0xba)](_0x40a58c[_0x136ee4(0xce)](_0x40a58c[_0x136ee4(0xb8)]('\x0a',_0x3d8c4a),'\x0a'),_0x2cf3f0),'\x0a')),_0x40a58c[_0x136ee4(0xa3)](_0x16e4f4,![])&&(_0x4f2f28=0x1);}),_0x4f2f28;}async function run(_0x1f426c,_0x3d568e){const _0x539004=a5_0x5d12ba,_0x2aca63={'cTJaP':function(_0xdb7d5f,_0x311eac){return _0xdb7d5f(_0x311eac);},'MuSRj':function(_0xc71df4,_0xd57653){return _0xc71df4>_0xd57653;},'BXgfK':_0x539004(0xf0),'XbCyf':'Removing\x20tmp\x20directory\x20created\x20for\x20reports','fOhNU':_0x539004(0xc0),'KDwTQ':_0x539004(0xd3),'qvTIv':'cucumber-js','gnyAG':_0x539004(0xf3),'mOWgq':function(_0x429316,_0x275702){return _0x429316>_0x275702;},'txjXC':function(_0x562733,_0x4b7eb2){return _0x562733-_0x4b7eb2;},'KcQsC':function(_0x507e49,_0x1b982f){return _0x507e49>=_0x1b982f;},'kKNsb':function(_0x19bac4,_0x449795){return _0x19bac4!=_0x449795;},'JQzYT':_0x539004(0x9f),'nmWUN':function(_0x202c80,_0x469f9b,_0x499b7e,_0xfd045d,_0x539581,_0x35b6d8){return _0x202c80(_0x469f9b,_0x499b7e,_0xfd045d,_0x539581,_0x35b6d8);}},_0x2f69a5=new BrowserStackSetup(_0x1f426c,_0x2aca63['qvTIv']);await _0x2f69a5[_0x539004(0xa7)]();!helper[_0x539004(0xdc)]()&&await _0x2f69a5['setupTCGAuth']();await helper[_0x539004(0xbe)](_0x2f69a5['config']);const _0x16bbbe=helper['useW3C'](_0x2f69a5[_0x539004(0xd2)]),_0x1e0374=helper['prepareCapabilities'](_0x2f69a5[_0x539004(0xd2)],_0x16bbbe,constants[_0x539004(0xb9)][_0x539004(0xc8)]);if(!_0x2f69a5[_0x539004(0xd2)])return;const _0x25a116=_0x2f69a5[_0x539004(0xd2)]['parallelsPerPlatform']||helper['getUserWorkerCount'](_0x1f426c,_0x3d568e,_0x2f69a5[_0x539004(0xd2)],constants['FRAMEWORKS'][_0x539004(0xc8)])||0x1,_0x5cd447={'server':helper[_0x539004(0xe5)](_0x2f69a5[_0x539004(0xd2)]),'proxySettings':_0x2f69a5[_0x539004(0xd2)][_0x539004(0xd1)],'maxWorkers':_0x25a116,'browserStackLogLevel':_0x2f69a5[_0x539004(0xd2)][_0x539004(0x107)],'skipSessionName':_0x2f69a5['config'][_0x539004(0xcd)][_0x539004(0xfb)],'skipSessionStatus':_0x2f69a5['config'][_0x539004(0xcd)][_0x539004(0xaa)],'turboScaleUrl':_0x2f69a5['config'][_0x539004(0xbc)]},_0x31eb1c=process[_0x539004(0xde)],[_0x287b4a,_0x5e3cb5]=helper['parseFormatters'](_0x31eb1c),_0x5520de=path[_0x539004(0xe9)](process[_0x539004(0xfe)](),_0x2aca63[_0x539004(0xc2)]);if(_0x2aca63['mOWgq'](_0x5e3cb5[_0x539004(0xa4)],0x0)){helper[_0x539004(0xb7)](_0x5520de);for(let _0x3bc42c=_0x2aca63[_0x539004(0xcb)](_0x287b4a[_0x539004(0xa4)],0x1);_0x2aca63[_0x539004(0xcf)](_0x3bc42c,0x0);_0x3bc42c--){_0x31eb1c[_0x539004(0xa5)](_0x287b4a[_0x3bc42c],0x2);}}!helper[_0x539004(0xf6)](_0x2f69a5[_0x539004(0xd2)][_0x539004(0xec)])&&(process[_0x539004(0xc6)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x539004(0xfc)](_0x2f69a5['config'][_0x539004(0xec)]));_0x2aca63[_0x539004(0x102)](_0x2f69a5[_0x539004(0xd2)]['testObservability'],null)?process[_0x539004(0xc6)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']=_0x2f69a5[_0x539004(0xd2)][_0x539004(0xb0)]:process[_0x539004(0xc6)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']=_0x2aca63['JQzYT'];const _0x5d14c5=await TestHubHandler[_0x539004(0xa8)](constants[_0x539004(0xb9)][_0x539004(0xc8)],_0x2f69a5);helper[_0x539004(0xda)]();let _0x48a4c2;_0x2aca63[_0x539004(0xb2)](parallelCucumberRun,_0x1e0374,_0x5cd447,_0x2f69a5[_0x539004(0xd2)],_0x31eb1c,_0x5e3cb5)[_0x539004(0xed)](async _0x3feccb=>{const _0x39d781=_0x539004;_0x48a4c2=_0x3feccb;const _0x32233f=_0x2aca63[_0x39d781(0x101)](printCucumberStats,_0x3feccb);process[_0x39d781(0x9d)]=_0x32233f,_0x2aca63[_0x39d781(0x109)](_0x5e3cb5[_0x39d781(0xa4)],0x0)&&(logger[_0x39d781(0xe4)](_0x2aca63[_0x39d781(0xe0)]),helper[_0x39d781(0xd4)](_0x5520de,_0x5e3cb5),logger[_0x39d781(0xe4)](_0x2aca63['XbCyf']),helper[_0x39d781(0xdb)](_0x5520de));})[_0x539004(0xb1)](async()=>{const _0x29d3c0=_0x539004;_0x2f69a5[_0x29d3c0(0xd7)]=helper[_0x29d3c0(0x100)](_0x48a4c2,_0x2aca63[_0x29d3c0(0xc5)]),testOpsHelper['printBuildLink']();try{await TestHubHandler[_0x29d3c0(0xe8)]();}catch(_0x494b3d){logger[_0x29d3c0(0xe4)]('Exception\x20in\x20stop\x20build\x20request\x20to\x20testhub\x20:\x20'+util[_0x29d3c0(0x108)](_0x494b3d));}try{const {browserstackFolderPath:_0x3163f0,tcgConfigPath:_0x779337}=helper['getTCGConfigFilePaths']();fs[_0x29d3c0(0xcc)](_0x779337),fs[_0x29d3c0(0xb6)](_0x3163f0);}catch(_0x4cba54){logger['debug'](_0x2aca63[_0x29d3c0(0xa2)],_0x4cba54);}await utilities[_0x29d3c0(0x10c)](_0x2f69a5);});}module[a5_0x5d12ba(0xb5)]=run;
|
|
2
|
+
'use strict';const a5_0x4f18d1=a5_0x2f28;(function(_0x2a61d0,_0x8da08a){const _0x39ef19=a5_0x2f28,_0x170b1c=_0x2a61d0();while(!![]){try{const _0x2affff=-parseInt(_0x39ef19(0x1ff))/0x1+parseInt(_0x39ef19(0x1e3))/0x2*(-parseInt(_0x39ef19(0x1d2))/0x3)+parseInt(_0x39ef19(0x201))/0x4+parseInt(_0x39ef19(0x1ca))/0x5+parseInt(_0x39ef19(0x1a4))/0x6+parseInt(_0x39ef19(0x1d8))/0x7+-parseInt(_0x39ef19(0x1b2))/0x8*(parseInt(_0x39ef19(0x197))/0x9);if(_0x2affff===_0x8da08a)break;else _0x170b1c['push'](_0x170b1c['shift']());}catch(_0x46e556){_0x170b1c['push'](_0x170b1c['shift']());}}}(a5_0x40d2,0x9e9d8));function a5_0x2f28(_0x4e1ca1,_0xa17328){const _0x40d2f8=a5_0x40d2();return a5_0x2f28=function(_0x2f286c,_0x4a6259){_0x2f286c=_0x2f286c-0x193;let _0x3fca79=_0x40d2f8[_0x2f286c];return _0x3fca79;},a5_0x2f28(_0x4e1ca1,_0xa17328);}const fs=require('fs'),path=require(a5_0x4f18d1(0x1bd)),util=require('util'),logger=require(a5_0x4f18d1(0x1f2))[a5_0x4f18d1(0x1a8)],{default:BrowserStackSetup}=require(a5_0x4f18d1(0x1ef)),helper=require(a5_0x4f18d1(0x1b4)),utilities=require('../../helpers/utilities'),constants=require('../utils/constants'),{parallelCucumberRun}=require(a5_0x4f18d1(0x1aa)),TestHubHandler=require(a5_0x4f18d1(0x198)),testOpsHelper=require(a5_0x4f18d1(0x1cc)),chalk=require(a5_0x4f18d1(0x1d9));function printCucumberStats(_0x3422db){const _0x5499b1=a5_0x4f18d1,_0x58f6a5={};_0x58f6a5[_0x5499b1(0x1d3)]=function(_0x4a5e00,_0x48c9fe){return _0x4a5e00>_0x48c9fe;},_0x58f6a5[_0x5499b1(0x1c1)]=function(_0x39516c,_0xe7b945){return _0x39516c-_0xe7b945;},_0x58f6a5[_0x5499b1(0x19f)]=function(_0x8b5419,_0x59bf39){return _0x8b5419>_0x59bf39;},_0x58f6a5[_0x5499b1(0x1d4)]=function(_0x27a0bc,_0x38cf69){return _0x27a0bc>_0x38cf69;},_0x58f6a5[_0x5499b1(0x1fa)]=function(_0x1d3576,_0x5068a9){return _0x1d3576>_0x5068a9;},_0x58f6a5['qhczD']=function(_0x4206ea,_0x3cdb0b){return _0x4206ea>_0x3cdb0b;},_0x58f6a5[_0x5499b1(0x1c3)]=function(_0x5467d9,_0x1312f2){return _0x5467d9>_0x1312f2;},_0x58f6a5['zTNFH']=function(_0x1c8a02,_0xdcf9dd){return _0x1c8a02>_0xdcf9dd;},_0x58f6a5[_0x5499b1(0x1c4)]=function(_0x61bcd5,_0x2ad15c){return _0x61bcd5>_0x2ad15c;},_0x58f6a5[_0x5499b1(0x1ee)]=function(_0x280418,_0xd9ab67){return _0x280418+_0xd9ab67;},_0x58f6a5[_0x5499b1(0x204)]=function(_0x2aade0,_0x3944f2){return _0x2aade0+_0x3944f2;},_0x58f6a5[_0x5499b1(0x19d)]=function(_0xc8c605,_0xf4b1ee){return _0xc8c605+_0xf4b1ee;},_0x58f6a5[_0x5499b1(0x1ab)]=function(_0x218fc7,_0x48f2ab){return _0x218fc7+_0x48f2ab;},_0x58f6a5[_0x5499b1(0x1f1)]=function(_0x197745,_0x4fc3d3){return _0x197745===_0x4fc3d3;},_0x58f6a5[_0x5499b1(0x1c8)]=_0x5499b1(0x1a1);const _0x57d9fb=_0x58f6a5;let _0x2a9d03=0x0;if(_0x57d9fb[_0x5499b1(0x1f1)](_0x3422db['length'],0x0))return _0x2a9d03;return console[_0x5499b1(0x1b3)](chalk[_0x5499b1(0x1a0)]['bgWhite'](_0x57d9fb[_0x5499b1(0x1c8)])),_0x3422db[_0x5499b1(0x1fe)](_0x959e6a=>{const _0x2104d8=_0x5499b1,_0x92a95d=_0x959e6a[0x0],_0x5f5dbd=_0x959e6a[0x1];console[_0x2104d8(0x1b3)]('\x0a'+chalk['bold'][_0x2104d8(0x1dd)](''+helper[_0x2104d8(0x1bc)](_0x92a95d)));const _0x12fa72=_0x5f5dbd[_0x2104d8(0x1ec)],_0x188491=_0x5f5dbd[_0x2104d8(0x1c2)],_0x320358=_0x5f5dbd[_0x2104d8(0x1ed)],_0x10ad07=_0x5f5dbd[_0x2104d8(0x1d6)],_0x15f1c6=_0x5f5dbd[_0x2104d8(0x1a5)],_0x2f99f3=_0x5f5dbd[_0x2104d8(0x1bb)],_0x2ee235=_0x5f5dbd[_0x2104d8(0x1c6)],_0x50c75=_0x5f5dbd['stepsUndefined'],_0x2e0dd1=_0x5f5dbd['stepsUnknown'],_0x227850=_0x5f5dbd[_0x2104d8(0x1d1)],_0x4c64a0=_0x5f5dbd[_0x2104d8(0x200)];let _0x479e98=_0x12fa72+_0x2104d8(0x1db);const _0x358967=_0x57d9fb['pZRKn'](_0x57d9fb[_0x2104d8(0x1c1)](_0x12fa72,_0x320358),0x0)?_0x57d9fb['lcymv'](_0x12fa72,_0x320358):0x0;if(_0x57d9fb['pZRKn'](_0x320358,0x0)&&_0x57d9fb['CAUUb'](_0x358967,0x0))_0x479e98+='\x20('+chalk['bold'][_0x2104d8(0x1b9)](_0x320358+_0x2104d8(0x1be))+',\x20'+chalk[_0x2104d8(0x1a0)]['green'](_0x358967+_0x2104d8(0x1c5))+')';else(_0x57d9fb['CAUUb'](_0x320358,0x0)||_0x57d9fb[_0x2104d8(0x1d4)](_0x358967,0x0))&&(_0x479e98+=_0x57d9fb[_0x2104d8(0x1d3)](_0x320358,0x0)?'\x20('+chalk[_0x2104d8(0x1a0)][_0x2104d8(0x1b9)](_0x320358+'\x20failed')+')':'\x20('+chalk[_0x2104d8(0x1a0)]['green'](_0x358967+_0x2104d8(0x1c5))+')');const _0x1158b6=_0x188491+_0x2104d8(0x195),_0x25e570=[];_0x57d9fb[_0x2104d8(0x1d3)](_0x227850,0x0)&&_0x25e570['push'](''+chalk[_0x2104d8(0x1a0)]['red'](_0x227850+'\x20ambiguous'));_0x57d9fb[_0x2104d8(0x1d4)](_0x10ad07,0x0)&&_0x25e570['push'](''+chalk[_0x2104d8(0x1a0)][_0x2104d8(0x1b9)](_0x10ad07+_0x2104d8(0x1be)));_0x57d9fb[_0x2104d8(0x1fa)](_0x15f1c6,0x0)&&_0x25e570[_0x2104d8(0x1fd)](''+chalk[_0x2104d8(0x1a0)][_0x2104d8(0x1fb)](_0x15f1c6+_0x2104d8(0x1c5)));_0x57d9fb['qhczD'](_0x2ee235,0x0)&&_0x25e570[_0x2104d8(0x1fd)](''+chalk['bold'][_0x2104d8(0x1dd)](_0x2ee235+'\x20pending'));_0x57d9fb[_0x2104d8(0x1c3)](_0x2f99f3,0x0)&&_0x25e570['push'](''+chalk['bold'][_0x2104d8(0x199)](_0x2f99f3+_0x2104d8(0x1ce)));_0x57d9fb[_0x2104d8(0x1e8)](_0x50c75,0x0)&&_0x25e570[_0x2104d8(0x1fd)](''+chalk[_0x2104d8(0x1a0)][_0x2104d8(0x1dd)](_0x50c75+_0x2104d8(0x1dc)));_0x57d9fb[_0x2104d8(0x1c4)](_0x2e0dd1,0x0)&&_0x25e570[_0x2104d8(0x1fd)](''+chalk[_0x2104d8(0x1a0)][_0x2104d8(0x1dd)](_0x2e0dd1+_0x2104d8(0x1ce)));const _0x1545e6=_0x57d9fb[_0x2104d8(0x1ee)](_0x57d9fb[_0x2104d8(0x204)](_0x57d9fb[_0x2104d8(0x204)](_0x1158b6,'('),_0x25e570[_0x2104d8(0x1ae)](',\x20')),')');console[_0x2104d8(0x1b3)](_0x57d9fb[_0x2104d8(0x1ee)](_0x57d9fb[_0x2104d8(0x19d)](_0x57d9fb[_0x2104d8(0x1ee)](_0x57d9fb[_0x2104d8(0x1ab)]('\x0a',_0x479e98),'\x0a'),_0x1545e6),'\x0a')),_0x57d9fb[_0x2104d8(0x1f1)](_0x4c64a0,![])&&(_0x2a9d03=0x1);}),_0x2a9d03;}async function run(_0x372fad,_0x4eefe6){const _0x1c8f7c=a5_0x4f18d1,_0x55c4a4={'LNMLs':function(_0x11a68b,_0x5b8c30){return _0x11a68b(_0x5b8c30);},'cdqOE':function(_0x34f3ea,_0x189b19){return _0x34f3ea>_0x189b19;},'tyCAQ':_0x1c8f7c(0x1de),'fKZiE':_0x1c8f7c(0x1d7),'Tjzxf':'cucumber','lObmu':_0x1c8f7c(0x1ad),'cfPUE':_0x1c8f7c(0x1cd),'FCnAC':_0x1c8f7c(0x1c9),'pURFg':function(_0x62762,_0x217f4c){return _0x62762-_0x217f4c;},'iQdss':function(_0x5ec86d,_0x39284c){return _0x5ec86d>=_0x39284c;},'MxSsf':function(_0x13fd27,_0x195824){return _0x13fd27!=_0x195824;},'IoWLS':_0x1c8f7c(0x1d0),'aGCqx':function(_0xbe9f76,_0x3e2ce8,_0x570060,_0x57a5ff,_0x2f3d09,_0x10300b){return _0xbe9f76(_0x3e2ce8,_0x570060,_0x57a5ff,_0x2f3d09,_0x10300b);}},_0x542d4a=new BrowserStackSetup(_0x372fad,_0x55c4a4[_0x1c8f7c(0x19b)]);await _0x542d4a[_0x1c8f7c(0x1e6)]();!helper['isBrowserstackInfra']()&&await _0x542d4a[_0x1c8f7c(0x1df)]();await helper[_0x1c8f7c(0x1af)](_0x542d4a[_0x1c8f7c(0x1e5)]);const _0x132281=helper[_0x1c8f7c(0x19c)](_0x542d4a[_0x1c8f7c(0x1e5)]),_0x5edade=helper[_0x1c8f7c(0x196)](_0x542d4a[_0x1c8f7c(0x1e5)],_0x132281,constants[_0x1c8f7c(0x1cf)][_0x1c8f7c(0x1cb)]);if(!_0x542d4a['config'])return;const _0x4d84b2=_0x542d4a[_0x1c8f7c(0x1e5)]['parallelsPerPlatform']||helper[_0x1c8f7c(0x1b5)](_0x372fad,_0x4eefe6,_0x542d4a[_0x1c8f7c(0x1e5)],constants[_0x1c8f7c(0x1cf)]['CUCUMBER'])||0x1,_0x2ccf60={'server':helper[_0x1c8f7c(0x1a2)](_0x542d4a[_0x1c8f7c(0x1e5)]),'proxySettings':_0x542d4a[_0x1c8f7c(0x1e5)][_0x1c8f7c(0x1a9)],'maxWorkers':_0x4d84b2,'browserStackLogLevel':_0x542d4a[_0x1c8f7c(0x1e5)][_0x1c8f7c(0x1f4)],'skipSessionName':_0x542d4a[_0x1c8f7c(0x1e5)]['testContextOptions'][_0x1c8f7c(0x203)],'skipSessionStatus':_0x542d4a['config'][_0x1c8f7c(0x1a7)][_0x1c8f7c(0x1da)],'turboScaleUrl':_0x542d4a[_0x1c8f7c(0x1e5)][_0x1c8f7c(0x1b7)]},_0x44c2b4=process[_0x1c8f7c(0x1b6)],[_0x2d75d3,_0x2389ae]=helper[_0x1c8f7c(0x193)](_0x44c2b4),_0x479ed2=path[_0x1c8f7c(0x1ae)](process[_0x1c8f7c(0x1e9)](),_0x55c4a4[_0x1c8f7c(0x1ea)]);if(_0x55c4a4['cdqOE'](_0x2389ae[_0x1c8f7c(0x1e0)],0x0)){helper[_0x1c8f7c(0x1d5)](_0x479ed2);for(let _0x5f124e=_0x55c4a4[_0x1c8f7c(0x1fc)](_0x2d75d3[_0x1c8f7c(0x1e0)],0x1);_0x55c4a4[_0x1c8f7c(0x1f9)](_0x5f124e,0x0);_0x5f124e--){_0x44c2b4[_0x1c8f7c(0x1f5)](_0x2d75d3[_0x5f124e],0x2);}}!helper[_0x1c8f7c(0x19e)](_0x542d4a[_0x1c8f7c(0x1e5)]['accessibilityOptions'])&&(process[_0x1c8f7c(0x1f3)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x1c8f7c(0x1ac)](_0x542d4a[_0x1c8f7c(0x1e5)]['accessibilityOptions']));_0x55c4a4['MxSsf'](_0x542d4a[_0x1c8f7c(0x1e5)][_0x1c8f7c(0x1a6)],null)?process[_0x1c8f7c(0x1f3)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']=_0x542d4a[_0x1c8f7c(0x1e5)][_0x1c8f7c(0x1a6)]:process[_0x1c8f7c(0x1f3)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']=_0x55c4a4[_0x1c8f7c(0x1f6)];const _0x7b3b91=await TestHubHandler[_0x1c8f7c(0x1ba)](constants[_0x1c8f7c(0x1cf)]['CUCUMBER'],_0x542d4a);helper[_0x1c8f7c(0x1eb)]();let _0x378c48;_0x55c4a4[_0x1c8f7c(0x1bf)](parallelCucumberRun,_0x5edade,_0x2ccf60,_0x542d4a[_0x1c8f7c(0x1e5)],_0x44c2b4,_0x2389ae)[_0x1c8f7c(0x1b0)](async _0x3a3e1a=>{const _0x24c93b=_0x1c8f7c;_0x378c48=_0x3a3e1a;const _0x2cb624=_0x55c4a4[_0x24c93b(0x1c0)](printCucumberStats,_0x3a3e1a);process[_0x24c93b(0x1e4)]=_0x2cb624,_0x55c4a4[_0x24c93b(0x1e2)](_0x2389ae[_0x24c93b(0x1e0)],0x0)&&(logger['debug'](_0x55c4a4['tyCAQ']),helper[_0x24c93b(0x1b8)](_0x479ed2,_0x2389ae),logger[_0x24c93b(0x19a)](_0x55c4a4[_0x24c93b(0x1f8)]),helper['removeDir'](_0x479ed2));})[_0x1c8f7c(0x1c7)](async()=>{const _0x13919f=_0x1c8f7c;_0x542d4a['errorMessage']=helper[_0x13919f(0x202)](_0x378c48,_0x55c4a4[_0x13919f(0x1f0)]),testOpsHelper['printBuildLink']();try{await TestHubHandler['stop']();}catch(_0x4c4df6){logger['debug']('Exception\x20in\x20stop\x20build\x20request\x20to\x20testhub\x20:\x20'+util[_0x13919f(0x194)](_0x4c4df6));}try{const {browserstackFolderPath:_0x4bc8c7,tcgConfigPath:_0x3bed06}=helper[_0x13919f(0x1f7)]();fs[_0x13919f(0x1b1)](_0x3bed06),fs['rmdirSync'](_0x4bc8c7);}catch(_0x53a746){logger['debug'](_0x55c4a4[_0x13919f(0x1e7)],_0x53a746);}await utilities[_0x13919f(0x1e1)](_0x542d4a);});}function a5_0x40d2(){const _0x51cbfd=['../../helpers/logger','env','logLevel','splice','IoWLS','getTCGConfigFilePaths','fKZiE','iQdss','xuHhe','green','pURFg','push','forEach','497888kVitqV','processSuccess','1578664DxSKvO','getErrorMessageFromResults','skipSessionName','FKKqY','parseFormatters','format','\x20steps','prepareCapabilities','18GWALPP','../../helpers/testhub/testhubHandler','cyan','debug','cfPUE','useW3C','qDglI','isUndefined','CAUUb','bold','****\x20RESULTS\x20****','getHubUrl','exports','5785344rGdYrz','stepsPassed','testObservability','testContextOptions','winstonLogger','proxySettings','../test-runner','cQeXZ','stringify','error\x20removing\x20tcg\x20config\x20file','join','handleApp','then','unlinkSync','7012264EtQWzg','log','../../helpers/helper','getUserWorkerCount','argv','turboScaleUrl','mergeOutputFiles','red','launchBuild','stepsSkipped','getPlatformName','path','\x20failed','aGCqx','LNMLs','lcymv','steps','jgVLA','moUTm','\x20passed','stepsPending','finally','JnMJH','tmp','6127505bHOiYc','CUCUMBER','../../helpers/test-observability/utils','cucumber-js','\x20skipped','FRAMEWORKS','false','stepsAmbiguous','10839RAMDmV','pZRKn','nwCSv','createDir','stepsFailed','Removing\x20tmp\x20directory\x20created\x20for\x20reports','2340212qVSzOv','chalk','skipSessionStatus','\x20scenarios','\x20undefined','yellow','Generating\x20consolidated\x20report...','setupTCGAuth','length','finalExecution','cdqOE','10RBpNbm','exitCode','config','initialize','lObmu','zTNFH','cwd','FCnAC','markSDKSetupComplete','scenarios','scenariosFailed','TDlnl','../../helpers/BrowserStackSetup','Tjzxf','JPxjs'];a5_0x40d2=function(){return _0x51cbfd;};return a5_0x40d2();}module[a5_0x4f18d1(0x1a3)]=run;
|