browserstack-node-sdk 1.49.11 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +2 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/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/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/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/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a44_0x9c7145=a44_0x2a8b;(function(_0x1cb130,_0x4e238c){const _0x4228b5=a44_0x2a8b,_0x41d126=_0x1cb130();while(!![]){try{const _0x4b232d=parseInt(_0x4228b5(0x1e4))/0x1+parseInt(_0x4228b5(0x1cf))/0x2+parseInt(_0x4228b5(0x1d4))/0x3+-parseInt(_0x4228b5(0x1ad))/0x4+-parseInt(_0x4228b5(0x1e0))/0x5+parseInt(_0x4228b5(0x1ba))/0x6+-parseInt(_0x4228b5(0x19c))/0x7*(-parseInt(_0x4228b5(0x18e))/0x8);if(_0x4b232d===_0x4e238c)break;else _0x41d126['push'](_0x41d126['shift']());}catch(_0x299c46){_0x41d126['push'](_0x41d126['shift']());}}}(a44_0x41b2,0xb1f73));const {debug,getFrameworkVersion,removeAnsiColors,failureData}=require(a44_0x9c7145(0x1ff)),PerformanceTester=require(a44_0x9c7145(0x213)),fs=require('fs'),{FRAMEWORKS,MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE}=require(a44_0x9c7145(0x224)),helper=require('../../../helpers/helper'),path=require(a44_0x9c7145(0x1b2)),logger=require('../../../helpers/logger')[a44_0x9c7145(0x216)],SessionHandler=require('../../../helpers/test-observability/sessionHandler'),TestDetails=require(a44_0x9c7145(0x21c)),util=require(a44_0x9c7145(0x1ea)),TestInfo=require(a44_0x9c7145(0x1db));let BrowserstackCLIInstance=null;function getBrowserstackCLI(){const _0x229757={'flDqp':function(_0x5a7e4c,_0x41a834){return _0x5a7e4c(_0x41a834);},'QpjxM':'../../v2/browserstackCLI'};return!BrowserstackCLIInstance&&(BrowserstackCLIInstance=_0x229757['flDqp'](require,_0x229757['QpjxM'])),BrowserstackCLIInstance;}const getTagsFromTitle=_0x36528d=>{const _0x4f7e4a=a44_0x9c7145;return _0x36528d[_0x4f7e4a(0x1a3)](/@(\w+)/g)?.['map'](_0x4a7078=>_0x4a7078[_0x4f7e4a(0x201)](0x1))||[];};exports['getTestTags']=_0x115b47=>{const _0x2214c4=a44_0x9c7145,_0x1d0c34={'fmVnf':function(_0x394cc0,_0x57141f){return _0x394cc0(_0x57141f);}};if(_0x115b47[_0x2214c4(0x198)])return _0x115b47['tags'][_0x2214c4(0x1ca)](_0x2f03b9=>_0x2f03b9[_0x2214c4(0x21b)]('@')?_0x2f03b9[_0x2214c4(0x1a0)](0x1):_0x2f03b9);return _0x1d0c34[_0x2214c4(0x1ab)](getTagsFromTitle,_0x115b47[_0x2214c4(0x227)]);},exports[a44_0x9c7145(0x1f0)]=async()=>{const _0x2f6cf3=a44_0x9c7145,_0x240410={'lHwzO':function(_0x3e8500,_0x49ff7c){return _0x3e8500-_0x49ff7c;},'OFFzX':_0x2f6cf3(0x20c),'NHlZq':_0x2f6cf3(0x1da),'riRRr':_0x2f6cf3(0x1c7),'jCnFv':'onTestBegin','cEzhS':_0x2f6cf3(0x1b3),'DcWMf':_0x2f6cf3(0x192),'oMtnd':_0x2f6cf3(0x1bc),'bDKeU':_0x2f6cf3(0x21d),'JTzRM':_0x2f6cf3(0x1e1),'gHWIu':_0x2f6cf3(0x19a),'SOkrJ':_0x2f6cf3(0x1ef),'SWPQv':_0x2f6cf3(0x1d5),'yUhaJ':_0x2f6cf3(0x1b0),'UgkLn':_0x2f6cf3(0x1e7),'onpcY':_0x2f6cf3(0x1ce),'nwYtR':_0x2f6cf3(0x1c4),'JxAXx':_0x2f6cf3(0x18d),'bRmep':function(_0x1fe58b,_0x559dda){return _0x1fe58b(_0x559dda);},'TnONf':function(_0x2a5084,_0x1f4931){return _0x2a5084/_0x1f4931;},'oqcJl':function(_0xee1b2f,_0x38f1b3){return _0xee1b2f(_0x38f1b3);},'McJpb':function(_0x29193a,_0x3fd4dc){return _0x29193a+_0x3fd4dc;},'SHvCB':function(_0x47829b,_0x25d70d){return _0x47829b(_0x25d70d);},'lsUmE':function(_0x289b98,_0x1a1516){return _0x289b98*_0x1a1516;},'KWCRE':function(_0x147dcd,_0x565348){return _0x147dcd/_0x565348;},'kdpSE':function(_0x350940,_0x182168){return _0x350940+_0x182168;}};if(!process['env'][_0x2f6cf3(0x1ed)])return;const _0x3487b1=_0x240410[_0x2f6cf3(0x186)](new Date()[_0x2f6cf3(0x19b)](),new Date(process[_0x2f6cf3(0x1e9)][_0x2f6cf3(0x1ed)])[_0x2f6cf3(0x19b)]()),_0x35c46b=await PerformanceTester[_0x2f6cf3(0x226)](_0x240410[_0x2f6cf3(0x1c5)],[_0x240410['NHlZq'],_0x240410[_0x2f6cf3(0x184)],_0x240410['jCnFv'],_0x240410['cEzhS'],_0x240410['DcWMf'],_0x240410['oMtnd']]),_0x5b939c=fs['readdirSync']('.'),_0x24374c=_0x5b939c['filter'](_0x31ab24=>_0x31ab24[_0x2f6cf3(0x21b)](_0x2f6cf3(0x205))&&_0x31ab24[_0x2f6cf3(0x1af)](_0x2f6cf3(0x1b5))),_0x123f8e=await PerformanceTester[_0x2f6cf3(0x1f4)](_0x24374c,[_0x240410[_0x2f6cf3(0x217)],_0x240410['JTzRM'],_0x240410[_0x2f6cf3(0x220)],_0x240410[_0x2f6cf3(0x1f8)],_0x240410[_0x2f6cf3(0x1a2)],_0x240410[_0x2f6cf3(0x1be)],_0x240410[_0x2f6cf3(0x1d3)],_0x240410['onpcY'],_0x240410[_0x2f6cf3(0x1d1)],_0x240410[_0x2f6cf3(0x18b)]]);_0x240410[_0x2f6cf3(0x1e2)](debug,_0x2f6cf3(0x210)+_0x240410[_0x2f6cf3(0x189)](_0x3487b1,0x3e8)+'\x20s'),_0x240410[_0x2f6cf3(0x200)](debug,'Total\x20time\x20taken\x20by\x20O11y\x20is\x20'+_0x240410[_0x2f6cf3(0x21f)](_0x123f8e,_0x35c46b)),_0x240410[_0x2f6cf3(0x195)](debug,'Percentage\x20of\x20increased\x20time\x20is\x20'+_0x240410[_0x2f6cf3(0x20a)](_0x240410['KWCRE'](_0x240410[_0x2f6cf3(0x203)](_0x123f8e,_0x35c46b),_0x3487b1),0x64));},exports['getTransformPath']=()=>{const _0x2ef59b=a44_0x9c7145,_0x490cd1={'FFoGP':function(_0x3a2906,_0x23b31c){return _0x3a2906(_0x23b31c);},'qYHWO':function(_0x1d8e50,_0x37dd0b){return _0x1d8e50>=_0x37dd0b;},'UsJsO':_0x2ef59b(0x17d),'IXOqk':_0x2ef59b(0x18a),'pbDME':'playwright','hTetQ':'1.35.0','XuJak':'@playwright/test/lib/transform/transform.js','apdmC':_0x2ef59b(0x1a4),'OuTrj':'@playwright/test/lib/common/transform.js'},_0x5f3e46=_0x490cd1[_0x2ef59b(0x1cd)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);if(_0x490cd1[_0x2ef59b(0x17b)](helper['compareVersions'](_0x5f3e46,_0x490cd1[_0x2ef59b(0x1f2)]),0x0))return[_0x490cd1['IXOqk'],_0x490cd1[_0x2ef59b(0x190)]];if(_0x490cd1['qYHWO'](helper['compareVersions'](_0x5f3e46,_0x490cd1[_0x2ef59b(0x211)]),0x0))return[_0x490cd1[_0x2ef59b(0x1aa)],_0x490cd1[_0x2ef59b(0x207)]];return[_0x490cd1[_0x2ef59b(0x1bd)],_0x490cd1[_0x2ef59b(0x207)]];},exports[a44_0x9c7145(0x1cb)]=()=>{const _0xa3abe4=a44_0x9c7145,_0x366e1f={'ouhUa':function(_0xe74093,_0xb9ba03){return _0xe74093(_0xb9ba03);},'ZQtst':function(_0x47ee12,_0x23de47){return _0x47ee12>=_0x23de47;},'avqPC':_0xa3abe4(0x17d),'IDJlR':_0xa3abe4(0x19f),'JxPXN':'playwright','dLZBz':_0xa3abe4(0x1d6),'WeeAN':_0xa3abe4(0x1a4)},_0x19618f=_0x366e1f[_0xa3abe4(0x1b4)](getFrameworkVersion,FRAMEWORKS[_0xa3abe4(0x1b1)]);if(_0x366e1f[_0xa3abe4(0x1fa)](helper[_0xa3abe4(0x20e)](_0x19618f,_0x366e1f[_0xa3abe4(0x188)]),0x0))return[_0x366e1f[_0xa3abe4(0x17f)],_0x366e1f['JxPXN']];return[_0x366e1f[_0xa3abe4(0x206)],_0x366e1f[_0xa3abe4(0x1cc)]];},exports[a44_0x9c7145(0x228)]=()=>{const _0x5a9d63=a44_0x9c7145,_0x3e117={};_0x3e117[_0x5a9d63(0x1b8)]=_0x5a9d63(0x1df);const _0x152585=_0x3e117;return helper[_0x5a9d63(0x212)](_0x152585[_0x5a9d63(0x1b8)]);},exports[a44_0x9c7145(0x1e5)]=()=>{const _0x30446e=a44_0x9c7145,_0x149016={};_0x149016[_0x30446e(0x1d0)]=_0x30446e(0x1fb);const _0x27a09c=_0x149016;return helper['getPlaywrightLibPath'](_0x27a09c[_0x30446e(0x1d0)]);},exports[a44_0x9c7145(0x176)]=()=>{const _0x56e5ee=a44_0x9c7145,_0x2523ce={'xUHSB':function(_0x35c26b,_0x135698){return _0x35c26b(_0x135698);},'kOqbY':function(_0x5218e0,_0x2523bc){return _0x5218e0>=_0x2523bc;},'KsnRU':_0x56e5ee(0x17d),'COeVR':_0x56e5ee(0x1de),'ynROM':_0x56e5ee(0x1a5),'okFOY':_0x56e5ee(0x1ac),'GWmuU':_0x56e5ee(0x1d7)},_0x43f230=_0x2523ce[_0x56e5ee(0x1ee)](getFrameworkVersion,FRAMEWORKS[_0x56e5ee(0x1b1)]);if(_0x2523ce[_0x56e5ee(0x219)](helper[_0x56e5ee(0x20e)](_0x43f230,_0x2523ce['KsnRU']),0x0))return path[_0x56e5ee(0x20d)](_0x2523ce[_0x56e5ee(0x1c8)],_0x2523ce['ynROM'],_0x2523ce[_0x56e5ee(0x1c2)]);return path[_0x56e5ee(0x20d)](_0x2523ce[_0x56e5ee(0x20f)],_0x2523ce[_0x56e5ee(0x1c8)],_0x2523ce[_0x56e5ee(0x185)],_0x2523ce[_0x56e5ee(0x1c2)]);},exports[a44_0x9c7145(0x1bb)]=(_0x251576,{test_run_uuid:_0x9a77ba})=>{const _0x31b2b4=a44_0x9c7145,_0xa61a9f={'NsnMl':_0x31b2b4(0x209),'kanHO':_0x31b2b4(0x1dc),'AYplU':function(_0x20958d,_0x468e30){return _0x20958d<=_0x468e30;},'FbSdA':function(_0x25dcd5,_0x408e18){return _0x25dcd5(_0x408e18);},'QJWGX':_0x31b2b4(0x1ae),'VJNxV':function(_0x549389,_0xdfce7e){return _0x549389(_0xdfce7e);},'Uzkae':function(_0x1a4026,_0x247d67){return _0x1a4026>=_0x247d67;},'iPbCR':_0x31b2b4(0x181),'koDmN':function(_0x4c701c,_0x2a4268){return _0x4c701c>_0x2a4268;},'QVGGG':function(_0x4c04f9,_0x4c82a2){return _0x4c04f9(_0x4c82a2);},'WksyQ':function(_0x266cde,_0x243473,_0x308fe7){return _0x266cde(_0x243473,_0x308fe7);},'sTDxl':_0x31b2b4(0x1d7)};if(!_0x251576||_0xa61a9f[_0x31b2b4(0x1a9)](_0x251576[_0x31b2b4(0x202)],0x0))return[];const _0x26aba4=_0xa61a9f[_0x31b2b4(0x1f3)](removeAnsiColors,_0x251576[0x0][_0x31b2b4(0x1e6)]);if(_0x26aba4['startsWith'](_0xa61a9f[_0x31b2b4(0x178)])){const _0x2c31fb=_0x251576[0x0],_0x13eaa8=_0xa61a9f[_0x31b2b4(0x1fc)](getFrameworkVersion,FRAMEWORKS[_0x31b2b4(0x1b1)]);if((!_0x2c31fb[_0x31b2b4(0x17c)]||_0xa61a9f[_0x31b2b4(0x1c3)](_0x13eaa8,_0xa61a9f[_0x31b2b4(0x1c0)]))&&_0xa61a9f[_0x31b2b4(0x1d2)](_0x251576['length'],0x1))return{'failureData':[{'backtrace':[_0x26aba4,_0xa61a9f[_0x31b2b4(0x187)](removeAnsiColors,_0x251576[0x1][_0x31b2b4(0x17c)])]}],'logs':_0x251576[_0x31b2b4(0x201)](0x2)[_0x31b2b4(0x1ca)](_0x3c2e9e=>{const _0x59323d=_0x31b2b4;return{'timestamp':new Date()[_0x59323d(0x182)](),'level':_0xa61a9f['NsnMl'],'message':''+_0x3c2e9e[_0x59323d(0x1e6)],'kind':_0xa61a9f['kanHO'],'http_response':{},'test_run_uuid':_0x9a77ba};})};}return{'failureData':_0xa61a9f[_0x31b2b4(0x1c9)](failureData,_0x251576,_0xa61a9f[_0x31b2b4(0x225)]),'logs':[]};},exports[a44_0x9c7145(0x1d9)]=_0x82474b=>{const _0x116a79=a44_0x9c7145,_0x55e67b={};_0x55e67b[_0x116a79(0x183)]=function(_0x3489f6,_0x558606){return _0x3489f6!==_0x558606;},_0x55e67b['AQHpH']=_0x116a79(0x221),_0x55e67b['LmZrk']=function(_0x54d729,_0x243390){return _0x54d729>_0x243390;};const _0x567766=_0x55e67b;if(_0x82474b&&fs[_0x116a79(0x193)](_0x82474b)){if(_0x567766[_0x116a79(0x183)](path[_0x116a79(0x1a7)](_0x82474b)[_0x116a79(0x218)](),_0x567766['AQHpH']))return logger['error'](_0x116a79(0x1e8)+_0x82474b),![];const _0x2ce294=fs[_0x116a79(0x1d8)](_0x82474b)[_0x116a79(0x204)];if(_0x567766[_0x116a79(0x208)](_0x2ce294,MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE))return logger[_0x116a79(0x19e)](_0x116a79(0x1eb)+_0x2ce294+_0x116a79(0x1b7)),![];return!![];}return![];},exports[a44_0x9c7145(0x1bf)]=(_0x1be437,_0x1202ba)=>{const _0x380691=a44_0x9c7145,_0x3ef6ac={};_0x3ef6ac[_0x380691(0x1c1)]=_0x380691(0x1f7);const _0x1a109a=_0x3ef6ac;logger[_0x380691(0x17a)](_0x380691(0x196)+_0x1202ba);if(_0x1be437&&_0x1be437[_0x380691(0x180)]){const _0x2235d0=_0x1be437[_0x380691(0x180)][_0x380691(0x222)](_0x44bbd9=>_0x44bbd9[_0x380691(0x191)]===_0x380691(0x179));if(_0x2235d0)return logger['debug']('Found\x20key:\x20'+_0x1202ba+_0x380691(0x1f1)),_0x2235d0[_0x1202ba];}else{if(_0x1be437&&Object[_0x380691(0x177)]['toString'][_0x380691(0x214)](_0x1be437)['includes'](_0x1a109a['BVFDi']))for(const _0x2fe116 of _0x1be437){if(_0x2fe116[_0x1202ba])return logger['debug'](_0x380691(0x1f6)+_0x1202ba+_0x380691(0x1f5)),_0x2fe116[_0x1202ba];}};return'';},exports[a44_0x9c7145(0x215)]=async(_0x2185ff,_0x42939a)=>{const _0x2b9298=a44_0x9c7145,_0x151628={};_0x151628[_0x2b9298(0x199)]=_0x2b9298(0x1f9),_0x151628['uqygo']='TEST_ATTACHMENT',_0x151628[_0x2b9298(0x1dd)]=_0x2b9298(0x19d),_0x151628[_0x2b9298(0x1c6)]=_0x2b9298(0x1b6);const _0x5d8b78=_0x151628;try{const _0x50aa49={'event_type':_0x5d8b78[_0x2b9298(0x199)],'logs':[{'data':_0x2185ff?fs[_0x2b9298(0x18c)](_0x2185ff):'','test_run_uuid':_0x42939a,'kind':_0x5d8b78['uqygo'],'fileName':_0x2185ff?path[_0x2b9298(0x20b)](_0x2185ff):''}]};return await SessionHandler[_0x2b9298(0x1fe)](_0x50aa49,0x0,_0x5d8b78[_0x2b9298(0x1dd)]);}catch(_0x2d9966){logger[_0x2b9298(0x19e)](util['format'](_0x5d8b78['eSLCh'],_0x2d9966));}},exports[a44_0x9c7145(0x19d)]=async(_0x57cb91,_0xcb92bb)=>{const _0x46f095=a44_0x9c7145,_0x2d13a0={'JMjmA':_0x46f095(0x1b2),'clrWB':_0x46f095(0x1b9),'BAWAL':function(_0x11b9a1){return _0x11b9a1();},'bCpbD':'Error\x20in\x20sending\x20trace\x20file:\x20%s'};try{logger[_0x46f095(0x17a)]('Checking\x20if\x20trace\x20is\x20enabled\x20for\x20test:\x20'+_0xcb92bb);let _0xf4fd7f=await exports[_0x46f095(0x1bf)](_0x57cb91,_0x2d13a0[_0x46f095(0x18f)]);if(exports['validateFilePath'](_0xf4fd7f)){logger[_0x46f095(0x17a)](_0x2d13a0[_0x46f095(0x223)]),_0xf4fd7f=path[_0x46f095(0x197)](_0xf4fd7f);const _0x393899={};_0x393899['testUId']=_0xcb92bb,_0x393899[_0x46f095(0x21a)]=_0xf4fd7f;const _0x3df3d7=_0x393899;_0x2d13a0[_0x46f095(0x17e)](getBrowserstackCLI)[_0x46f095(0x1a8)]()['isRunning']()?TestInfo[_0x46f095(0x1a1)](_0x3df3d7):TestDetails['addTraceFilePath'](_0x3df3d7);};}catch(_0x3a03db){logger['error'](util[_0x46f095(0x1ec)](_0x2d13a0['bCpbD'],_0x3a03db));}},exports[a44_0x9c7145(0x1a6)]=_0xec6a07=>{const _0x162244=a44_0x9c7145,_0x37ad8a={};_0x37ad8a[_0x162244(0x1fd)]=function(_0x180959,_0x4c6a53){return _0x180959+_0x4c6a53;};const _0x12ad25=_0x37ad8a;return _0x12ad25[_0x162244(0x1fd)](_0x12ad25[_0x162244(0x1fd)](_0xec6a07[_0x162244(0x21e)],'-'),_0xec6a07['id']);},exports[a44_0x9c7145(0x194)]=(_0x26cae3,_0x347467)=>{const _0x45f413=a44_0x9c7145,_0x19f649={};_0x19f649[_0x45f413(0x1e3)]=function(_0x4cfc1b,_0x3caace){return _0x4cfc1b+_0x3caace;};const _0x37cd2b=_0x19f649;return _0x37cd2b[_0x45f413(0x1e3)](_0x37cd2b['aSCQr'](_0x26cae3['id'],'-'),_0x347467);};function a44_0x2a8b(_0xa22223,_0x11b8ba){const _0x41b282=a44_0x41b2();return a44_0x2a8b=function(_0x2a8b57,_0x4aa67e){_0x2a8b57=_0x2a8b57-0x176;let _0x4a093=_0x41b282[_0x2a8b57];return _0x4a093;},a44_0x2a8b(_0xa22223,_0x11b8ba);}function a44_0x41b2(){const _0x69ef4=['playwright/lib/transform/transform.js','JxAXx','createReadStream','sendTestLog','87712yFCOzN','JMjmA','pbDME','name','onStepBegin','existsSync','getTestRunIdentifier','SHvCB','Searching\x20for\x20key:\x20','resolve','tags','TrVsP','beforeTestHook','getTime','203aHRagW','sendTraceZip','error','playwright/lib/common/configLoader.js','substr','addTraceFilePath','SWPQv','match','@playwright/test','common','getTestIdentifier','extname','getInstance','AYplU','XuJak','fmVnf','process.js','5358444AVoJCn','Test\x20timeout\x20of','endsWith','processPageScreenshot','PLAYWRIGHT','path','onTestEnd','ouhUa','.json','Error\x20in\x20sending\x20trace\x20file:\x20%s','\x20bytes','MjOWH','Trace\x20enabled','7123062LxlNyI','getFailureData','onStepEnd','OuTrj','yUhaJ','findNestedKey','iPbCR','BVFDi','okFOY','Uzkae','requestSpyCallback','OFFzX','eSLCh','endSession','COeVR','WksyQ','map','getConfigLoaderPath','WeeAN','FFoGP','setupBrowserDetails','1204102kzNmEA','LZzbs','nwYtR','koDmN','UgkLn','2246226SIaLGG','doo11ySync','@playwright/test/lib/common/configLoader.js','test','statSync','validateFilePath','onBegin','../../v2/TestInfo','TEST_LOG','xPZgM','lib','runner/loadUtils.js','7268145bINPxV','afterWorkerHook','bRmep','aSCQr','666261gPKcDr','getProjectUtilsPath','message','sendSessionDetails','Invalid\x20file\x20format.\x20Expected\x20a\x20.zip\x20file,\x20but\x20got:\x20','env','util','Trace\x20file\x20size\x20exceeds\x20100MB:\x20','format','START_TIME','xUHSB','afterTestHook','calculatePerformance','\x20in\x20attachments','UsJsO','FbSdA','calculateTimesFromMultipleFiles','\x20in\x20arguments','Found\x20key:\x20','Arguments','SOkrJ','LogCreated','ZQtst','runner/projectUtils.js','VJNxV','EFyaz','sendEventData','../../../helpers/test-observability/utils','oqcJl','slice','length','kdpSE','size','performance-report-worker-','dLZBz','apdmC','LmZrk','ERROR','lsUmE','basename','performance-reporter.html','join','compareVersions','GWmuU','Total\x20duration\x20for\x20whole\x20build\x20is\x20','hTetQ','getPlaywrightLibPath','../../../helpers/performance/performance-tester','call','uploadTraceZip','winstonLogger','bDKeU','toLowerCase','kOqbY','filePath','startsWith','./test-details','beforeWorkerHook','_projectId','McJpb','gHWIu','.zip','find','clrWB','../../../helpers/test-observability/constants','sTDxl','stopAndGenerate','title','getLoadUtilsPath','getForkProcessPath','prototype','QJWGX','trace','debug','qYHWO','stack','1.38.0','BAWAL','IDJlR','attachments','1.42.0','toISOString','rfwct','riRRr','ynROM','lHwzO','QVGGG','avqPC','TnONf'];a44_0x41b2=function(){return _0x69ef4;};return a44_0x41b2();}
|
|
1
|
+
const a44_0x28400f=a44_0x1d25;(function(_0x3d6956,_0x4aab50){const _0x28928d=a44_0x1d25,_0x11b8c2=_0x3d6956();while(!![]){try{const _0x3cbf15=parseInt(_0x28928d(0x172))/0x1*(-parseInt(_0x28928d(0x146))/0x2)+parseInt(_0x28928d(0x18f))/0x3*(-parseInt(_0x28928d(0x127))/0x4)+parseInt(_0x28928d(0x11c))/0x5*(-parseInt(_0x28928d(0x159))/0x6)+parseInt(_0x28928d(0x15b))/0x7+-parseInt(_0x28928d(0x12c))/0x8*(parseInt(_0x28928d(0x134))/0x9)+parseInt(_0x28928d(0x157))/0xa+parseInt(_0x28928d(0x145))/0xb;if(_0x3cbf15===_0x4aab50)break;else _0x11b8c2['push'](_0x11b8c2['shift']());}catch(_0x120df4){_0x11b8c2['push'](_0x11b8c2['shift']());}}}(a44_0x53eb,0xa8491));const {debug,getFrameworkVersion,removeAnsiColors,failureData}=require(a44_0x28400f(0x181)),PerformanceTester=require(a44_0x28400f(0x137)),fs=require('fs'),{FRAMEWORKS,MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE}=require(a44_0x28400f(0x105)),helper=require(a44_0x28400f(0x10b)),path=require('path'),logger=require(a44_0x28400f(0x118))['winstonLogger'],SessionHandler=require(a44_0x28400f(0x13e)),TestDetails=require('./test-details'),util=require('util'),TestInfo=require(a44_0x28400f(0x162));let BrowserstackCLIInstance=null;function a44_0x53eb(){const _0xa73227=['slice','path','../../../helpers/test-observability/sessionHandler','getPlaywrightLibPath','wMOhC','addTraceFilePath','getFailureData','uIaiN','wiTzK','15540822BSySCH','3994TEzvds','sendTraceZip','tags','existsSync','match','PLAYWRIGHT','lURip','Checking\x20if\x20trace\x20is\x20enabled\x20for\x20test:\x20','@playwright/test/lib/transform/transform.js','muECM','stack','IlEja','Error\x20in\x20sending\x20trace\x20file:\x20%s','getTestRunIdentifier','Searching\x20for\x20key:\x20','ERROR','\x20bytes','4405020XJydWR','playwright','6mPGvLE','Test\x20timeout\x20of','991774WlIsSG','zgqqr','_projectId','getInstance','readdirSync','resolve','playwright/lib/common/configLoader.js','../../v2/TestInfo','calculateTimesFromMultipleFiles','jbCzQ','isRunning','UkSbG','cgOCc','uuYqi','rCpmO','wrMlW','test','rdRpW','afterTestHook','jULay','format','doo11ySync','env','166cxYJRT','CHIPQ','title','onStepBegin','EUDDs','wPUQq','fBvOB','startsWith','basename','PgWrr','AdfNV','validateFilePath','requestSpyCallback','abmxv','AowxP','../../../helpers/test-observability/utils','TEST_ATTACHMENT','PTEVl','runner/projectUtils.js','Trace\x20file\x20size\x20exceeds\x20100MB:\x20','endSession','VYvNY','getTransformPath','RefDC','common','join','VBMga','DTWBw','VYAge','519pyTPMG','getTestIdentifier','CRQuT','PKGML','gUrAS','FMMkA','jaWUQ','substr','XuQLx','\x20in\x20arguments','sPEzz','calculatePerformance','length','call','beforeWorkerHook','gwnXC','afterWorkerHook','Arguments','includes','NhwIF','lib','Total\x20duration\x20for\x20whole\x20build\x20is\x20','1.38.0','filePath','filter','ekCjx','Invalid\x20file\x20format.\x20Expected\x20a\x20.zip\x20file,\x20but\x20got:\x20','\x20in\x20attachments','rIvZU','lMuzM','LogCreated','Percentage\x20of\x20increased\x20time\x20is\x20','stopAndGenerate','HmrBt','setupBrowserDetails','compareVersions','../../../helpers/test-observability/constants','@playwright/test','runner/loadUtils.js','bbWLF','uploadTraceZip','find','../../../helpers/helper','mUKAq','prototype','hnzso','jQHnu','onTestBegin','getLoadUtilsPath','getTime','LlUwR','playwright/lib/transform/transform.js','paLwI','CzZgu','attachments','../../../helpers/logger','@playwright/test/lib/common/configLoader.js','nICXh','slTlT','2583785uKXSCY','trace','IzokY','map','QtCdu','../../v2/browserstackCLI','debug','DuGWK','size','juJmS','JRobQ','5676LjlntX','.json','START_TIME','error','fyxyi','1695544PnGSzF','gUoQW','gQsxv','1.42.0','QNQyb','sendSessionDetails','Total\x20time\x20taken\x20by\x20O11y\x20is\x20','getConfigLoaderPath','9RgvZmx','message','onBegin','../../../helpers/performance/performance-tester','findNestedKey','CHYBQ','JrlSg','beforeTestHook'];a44_0x53eb=function(){return _0xa73227;};return a44_0x53eb();}function getBrowserstackCLI(){const _0x462292=a44_0x28400f,_0x968685={'AdfNV':function(_0x46ea6d,_0x5beb58){return _0x46ea6d(_0x5beb58);},'EUDDs':_0x462292(0x121)};return!BrowserstackCLIInstance&&(BrowserstackCLIInstance=_0x968685[_0x462292(0x17c)](require,_0x968685[_0x462292(0x176)])),BrowserstackCLIInstance;}const getTagsFromTitle=_0x2f73fa=>{const _0x10c78e=a44_0x28400f;return _0x2f73fa[_0x10c78e(0x14a)](/@(\w+)/g)?.[_0x10c78e(0x11f)](_0x2bdacf=>_0x2bdacf[_0x10c78e(0x13c)](0x1))||[];};function a44_0x1d25(_0xebff88,_0x175d6d){const _0x53eb65=a44_0x53eb();return a44_0x1d25=function(_0x1d259d,_0x4d7720){_0x1d259d=_0x1d259d-0x104;let _0x59093a=_0x53eb65[_0x1d259d];return _0x59093a;},a44_0x1d25(_0xebff88,_0x175d6d);}exports['getTestTags']=_0x23aae5=>{const _0x32ed86=a44_0x28400f,_0x1eb270={'AowxP':function(_0x1cb78e,_0x3b4f0f){return _0x1cb78e(_0x3b4f0f);}};if(_0x23aae5[_0x32ed86(0x148)])return _0x23aae5[_0x32ed86(0x148)][_0x32ed86(0x11f)](_0x35af5f=>_0x35af5f[_0x32ed86(0x179)]('@')?_0x35af5f[_0x32ed86(0x196)](0x1):_0x35af5f);return _0x1eb270[_0x32ed86(0x180)](getTagsFromTitle,_0x23aae5[_0x32ed86(0x174)]);},exports[a44_0x28400f(0x19a)]=async()=>{const _0x4ef18e=a44_0x28400f,_0x847e52={'zgqqr':function(_0x158616,_0x54f7c8){return _0x158616-_0x54f7c8;},'rCpmO':'performance-reporter.html','nICXh':_0x4ef18e(0x136),'FMMkA':_0x4ef18e(0x186),'gUoQW':_0x4ef18e(0x110),'Kmkwm':'onTestEnd','COVnz':_0x4ef18e(0x175),'aXWOi':'onStepEnd','CHYBQ':_0x4ef18e(0x19d),'RefDC':_0x4ef18e(0x19f),'AFMRa':_0x4ef18e(0x13b),'DTWBw':_0x4ef18e(0x16d),'QQBvH':_0x4ef18e(0x170),'XuQLx':'processPageScreenshot','VDAcr':_0x4ef18e(0x131),'abmxv':_0x4ef18e(0x1b1),'qlBBM':_0x4ef18e(0x17e),'PTEVl':'sendTestLog','sPEzz':function(_0x3ba421,_0x1b287a){return _0x3ba421(_0x1b287a);},'zmYJW':function(_0x3ba358,_0x42bb8b){return _0x3ba358/_0x42bb8b;},'CCNJU':function(_0x21ab4c,_0x32f462){return _0x21ab4c(_0x32f462);},'hnzso':function(_0x1f0fa4,_0x4f4dfd){return _0x1f0fa4+_0x4f4dfd;},'slTlT':function(_0xe2da3f,_0x32a1fc){return _0xe2da3f*_0x32a1fc;},'jbCzQ':function(_0x23d2e7,_0x46aec8){return _0x23d2e7/_0x46aec8;}};if(!process['env']['START_TIME'])return;const _0x39213a=_0x847e52[_0x4ef18e(0x15c)](new Date()['getTime'](),new Date(process[_0x4ef18e(0x171)][_0x4ef18e(0x129)])[_0x4ef18e(0x112)]()),_0x1d9fd8=await PerformanceTester[_0x4ef18e(0x1af)](_0x847e52[_0x4ef18e(0x169)],[_0x847e52[_0x4ef18e(0x11a)],_0x847e52[_0x4ef18e(0x194)],_0x847e52[_0x4ef18e(0x12d)],_0x847e52['Kmkwm'],_0x847e52['COVnz'],_0x847e52['aXWOi']]),_0x3af76a=fs[_0x4ef18e(0x15f)]('.'),_0x440b58=_0x3af76a[_0x4ef18e(0x1a7)](_0x515d85=>_0x515d85[_0x4ef18e(0x179)]('performance-report-worker-')&&_0x515d85['endsWith'](_0x4ef18e(0x128))),_0x5f46c5=await PerformanceTester[_0x4ef18e(0x163)](_0x440b58,[_0x847e52[_0x4ef18e(0x139)],_0x847e52[_0x4ef18e(0x189)],_0x847e52['AFMRa'],_0x847e52[_0x4ef18e(0x18d)],_0x847e52['QQBvH'],_0x847e52[_0x4ef18e(0x197)],_0x847e52['VDAcr'],_0x847e52[_0x4ef18e(0x17f)],_0x847e52['qlBBM'],_0x847e52[_0x4ef18e(0x183)]]);_0x847e52[_0x4ef18e(0x199)](debug,_0x4ef18e(0x1a4)+_0x847e52['zmYJW'](_0x39213a,0x3e8)+'\x20s'),_0x847e52['CCNJU'](debug,_0x4ef18e(0x132)+_0x847e52[_0x4ef18e(0x10e)](_0x5f46c5,_0x1d9fd8)),_0x847e52['CCNJU'](debug,_0x4ef18e(0x1ae)+_0x847e52[_0x4ef18e(0x11b)](_0x847e52[_0x4ef18e(0x164)](_0x847e52[_0x4ef18e(0x10e)](_0x5f46c5,_0x1d9fd8),_0x39213a),0x64));},exports[a44_0x28400f(0x188)]=()=>{const _0x489419=a44_0x28400f,_0x495f7f={'sSsOC':function(_0x2214c2,_0xcc9fc9){return _0x2214c2(_0xcc9fc9);},'yYDLK':function(_0x292d88,_0x549014){return _0x292d88>=_0x549014;},'paLwI':'1.38.0','cgOCc':_0x489419(0x114),'JrlSg':_0x489419(0x158),'LPjqc':function(_0x258c70,_0x419597){return _0x258c70>=_0x419597;},'uuYqi':'1.35.0','LdThm':_0x489419(0x14e),'wiTzK':'@playwright/test','lURip':'@playwright/test/lib/common/transform.js'},_0x1cd0fb=_0x495f7f['sSsOC'](getFrameworkVersion,FRAMEWORKS[_0x489419(0x14b)]);if(_0x495f7f['yYDLK'](helper['compareVersions'](_0x1cd0fb,_0x495f7f[_0x489419(0x115)]),0x0))return[_0x495f7f[_0x489419(0x167)],_0x495f7f[_0x489419(0x13a)]];if(_0x495f7f['LPjqc'](helper['compareVersions'](_0x1cd0fb,_0x495f7f[_0x489419(0x168)]),0x0))return[_0x495f7f['LdThm'],_0x495f7f[_0x489419(0x144)]];return[_0x495f7f[_0x489419(0x14c)],_0x495f7f[_0x489419(0x144)]];},exports[a44_0x28400f(0x133)]=()=>{const _0x16eeec=a44_0x28400f,_0x393b91={'juJmS':function(_0x4b1bfa,_0x5014e8){return _0x4b1bfa(_0x5014e8);},'LlUwR':function(_0x3ca498,_0x5bb242){return _0x3ca498>=_0x5bb242;},'QNQyb':_0x16eeec(0x1a5),'lMuzM':_0x16eeec(0x161),'gQswH':'playwright','gCQKS':_0x16eeec(0x119),'jULay':_0x16eeec(0x106)},_0x595ffe=_0x393b91[_0x16eeec(0x125)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);if(_0x393b91[_0x16eeec(0x113)](helper[_0x16eeec(0x104)](_0x595ffe,_0x393b91[_0x16eeec(0x130)]),0x0))return[_0x393b91[_0x16eeec(0x1ac)],_0x393b91['gQswH']];return[_0x393b91['gCQKS'],_0x393b91[_0x16eeec(0x16e)]];},exports[a44_0x28400f(0x111)]=()=>{const _0x4c3ba7=a44_0x28400f,_0x53f56a={};_0x53f56a[_0x4c3ba7(0x18e)]=_0x4c3ba7(0x107);const _0x2723b9=_0x53f56a;return helper[_0x4c3ba7(0x13f)](_0x2723b9[_0x4c3ba7(0x18e)]);},exports['getProjectUtilsPath']=()=>{const _0x35eed8=a44_0x28400f,_0x1872be={};_0x1872be[_0x35eed8(0x140)]=_0x35eed8(0x184);const _0x4d751f=_0x1872be;return helper[_0x35eed8(0x13f)](_0x4d751f[_0x35eed8(0x140)]);},exports['getForkProcessPath']=()=>{const _0x5f355c=a44_0x28400f,_0x170cb1={'NhwIF':function(_0x251ee3,_0x26de78){return _0x251ee3(_0x26de78);},'JRobQ':function(_0x5c2d17,_0x5cfcb2){return _0x5c2d17>=_0x5cfcb2;},'IzokY':_0x5f355c(0x1a5),'rdRpW':_0x5f355c(0x1a3),'jQHnu':_0x5f355c(0x18a),'bbWLF':'process.js','CzZgu':_0x5f355c(0x16b)},_0x4b9918=_0x170cb1[_0x5f355c(0x1a2)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);if(_0x170cb1[_0x5f355c(0x126)](helper[_0x5f355c(0x104)](_0x4b9918,_0x170cb1[_0x5f355c(0x11e)]),0x0))return path[_0x5f355c(0x18b)](_0x170cb1[_0x5f355c(0x16c)],_0x170cb1[_0x5f355c(0x10f)],_0x170cb1['bbWLF']);return path[_0x5f355c(0x18b)](_0x170cb1[_0x5f355c(0x116)],_0x170cb1['rdRpW'],_0x170cb1[_0x5f355c(0x10f)],_0x170cb1[_0x5f355c(0x108)]);},exports[a44_0x28400f(0x142)]=(_0x39da73,{test_run_uuid:_0x112a18})=>{const _0xf53c44=a44_0x28400f,_0x1bc1a6={'wrMlW':_0xf53c44(0x155),'ekCjx':'TEST_LOG','jaWUQ':function(_0x440d6b,_0x2c7508){return _0x440d6b<=_0x2c7508;},'gUrAS':function(_0x2949e7,_0x20cf95){return _0x2949e7(_0x20cf95);},'wPUQq':_0xf53c44(0x15a),'CRQuT':function(_0x12daf5,_0x3000e1){return _0x12daf5(_0x3000e1);},'cCaoK':function(_0x2fab86,_0x2f9b9c){return _0x2fab86>=_0x2f9b9c;},'fBvOB':_0xf53c44(0x12f),'PKGML':function(_0x59ef25,_0x52d20a){return _0x59ef25>_0x52d20a;},'PgWrr':function(_0x38d25d,_0x31f63e,_0x1e17a2){return _0x38d25d(_0x31f63e,_0x1e17a2);},'CHIPQ':_0xf53c44(0x16b)};if(!_0x39da73||_0x1bc1a6[_0xf53c44(0x195)](_0x39da73[_0xf53c44(0x19b)],0x0))return[];const _0x452504=_0x1bc1a6[_0xf53c44(0x193)](removeAnsiColors,_0x39da73[0x0]['message']);if(_0x452504[_0xf53c44(0x179)](_0x1bc1a6[_0xf53c44(0x177)])){const _0x219f32=_0x39da73[0x0],_0x47704e=_0x1bc1a6[_0xf53c44(0x191)](getFrameworkVersion,FRAMEWORKS[_0xf53c44(0x14b)]);if((!_0x219f32[_0xf53c44(0x150)]||_0x1bc1a6['cCaoK'](_0x47704e,_0x1bc1a6[_0xf53c44(0x178)]))&&_0x1bc1a6[_0xf53c44(0x192)](_0x39da73[_0xf53c44(0x19b)],0x1))return{'failureData':[{'backtrace':[_0x452504,_0x1bc1a6[_0xf53c44(0x191)](removeAnsiColors,_0x39da73[0x1]['stack'])]}],'logs':_0x39da73['slice'](0x2)[_0xf53c44(0x11f)](_0x4ffc04=>{const _0x55859d=_0xf53c44;return{'timestamp':new Date()['toISOString'](),'level':_0x1bc1a6[_0x55859d(0x16a)],'message':''+_0x4ffc04[_0x55859d(0x135)],'kind':_0x1bc1a6[_0x55859d(0x1a8)],'http_response':{},'test_run_uuid':_0x112a18};})};}return{'failureData':_0x1bc1a6[_0xf53c44(0x17b)](failureData,_0x39da73,_0x1bc1a6[_0xf53c44(0x173)]),'logs':[]};},exports[a44_0x28400f(0x17d)]=_0x5950ed=>{const _0x47de58=a44_0x28400f,_0x30a5cf={};_0x30a5cf[_0x47de58(0x187)]=function(_0x3bc53d,_0xc108){return _0x3bc53d!==_0xc108;},_0x30a5cf['DuGWK']='.zip',_0x30a5cf[_0x47de58(0x151)]=function(_0x2f3976,_0x4f5821){return _0x2f3976>_0x4f5821;};const _0x19a067=_0x30a5cf;if(_0x5950ed&&fs[_0x47de58(0x149)](_0x5950ed)){if(_0x19a067['VYvNY'](path['extname'](_0x5950ed)['toLowerCase'](),_0x19a067[_0x47de58(0x123)]))return logger['error'](_0x47de58(0x1a9)+_0x5950ed),![];const _0x1ed8e9=fs['statSync'](_0x5950ed)[_0x47de58(0x124)];if(_0x19a067[_0x47de58(0x151)](_0x1ed8e9,MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE))return logger['error'](_0x47de58(0x185)+_0x1ed8e9+_0x47de58(0x156)),![];return!![];}return![];},exports['findNestedKey']=(_0x3e8f71,_0x547294)=>{const _0x1518c8=a44_0x28400f,_0x182d78={};_0x182d78[_0x1518c8(0x10c)]=_0x1518c8(0x1a0);const _0x1810b3=_0x182d78;logger['debug'](_0x1518c8(0x154)+_0x547294);if(_0x3e8f71&&_0x3e8f71[_0x1518c8(0x117)]){const _0x3826d2=_0x3e8f71['attachments'][_0x1518c8(0x10a)](_0x48ef0f=>_0x48ef0f['name']===_0x1518c8(0x11d));if(_0x3826d2)return logger[_0x1518c8(0x122)]('Found\x20key:\x20'+_0x547294+_0x1518c8(0x1aa)),_0x3826d2[_0x547294];}else{if(_0x3e8f71&&Object[_0x1518c8(0x10d)]['toString'][_0x1518c8(0x19c)](_0x3e8f71)[_0x1518c8(0x1a1)](_0x1810b3[_0x1518c8(0x10c)]))for(const _0x966286 of _0x3e8f71){if(_0x966286[_0x547294])return logger[_0x1518c8(0x122)]('Found\x20key:\x20'+_0x547294+_0x1518c8(0x198)),_0x966286[_0x547294];}};return'';},exports[a44_0x28400f(0x109)]=async(_0x59926f,_0x3582bf)=>{const _0x2c0c85=a44_0x28400f,_0x4bf217={};_0x4bf217[_0x2c0c85(0x1b0)]=_0x2c0c85(0x1ad),_0x4bf217[_0x2c0c85(0x12e)]=_0x2c0c85(0x182),_0x4bf217['UkSbG']=_0x2c0c85(0x147),_0x4bf217[_0x2c0c85(0x12b)]=_0x2c0c85(0x152);const _0x44f176=_0x4bf217;try{const _0x43367b={'event_type':_0x44f176[_0x2c0c85(0x1b0)],'logs':[{'data':_0x59926f?fs['createReadStream'](_0x59926f):'','test_run_uuid':_0x3582bf,'kind':_0x44f176['gQsxv'],'fileName':_0x59926f?path[_0x2c0c85(0x17a)](_0x59926f):''}]};return await SessionHandler['sendEventData'](_0x43367b,0x0,_0x44f176[_0x2c0c85(0x166)]);}catch(_0x2448b0){logger[_0x2c0c85(0x12a)](util[_0x2c0c85(0x16f)](_0x44f176[_0x2c0c85(0x12b)],_0x2448b0));}},exports[a44_0x28400f(0x147)]=async(_0x28e0d9,_0x2dbd0a)=>{const _0x3d8d2d=a44_0x28400f,_0x1c797d={'rIvZU':_0x3d8d2d(0x13d),'muECM':'Trace\x20enabled','VBMga':function(_0x15f8ca){return _0x15f8ca();},'QtCdu':_0x3d8d2d(0x152)};try{logger[_0x3d8d2d(0x122)](_0x3d8d2d(0x14d)+_0x2dbd0a);let _0x4eaaae=await exports[_0x3d8d2d(0x138)](_0x28e0d9,_0x1c797d[_0x3d8d2d(0x1ab)]);if(exports[_0x3d8d2d(0x17d)](_0x4eaaae)){logger['debug'](_0x1c797d[_0x3d8d2d(0x14f)]),_0x4eaaae=path[_0x3d8d2d(0x160)](_0x4eaaae);const _0x106bd1={};_0x106bd1['testUId']=_0x2dbd0a,_0x106bd1[_0x3d8d2d(0x1a6)]=_0x4eaaae;const _0x10ea13=_0x106bd1;_0x1c797d[_0x3d8d2d(0x18c)](getBrowserstackCLI)[_0x3d8d2d(0x15e)]()[_0x3d8d2d(0x165)]()?TestInfo[_0x3d8d2d(0x141)](_0x10ea13):TestDetails[_0x3d8d2d(0x141)](_0x10ea13);};}catch(_0x331ea6){logger['error'](util[_0x3d8d2d(0x16f)](_0x1c797d[_0x3d8d2d(0x120)],_0x331ea6));}},exports[a44_0x28400f(0x190)]=_0x4fc51a=>{const _0x7b7c91=a44_0x28400f,_0x1b13be={};_0x1b13be[_0x7b7c91(0x19e)]=function(_0x3f036e,_0x152890){return _0x3f036e+_0x152890;};const _0x26f173=_0x1b13be;return _0x26f173[_0x7b7c91(0x19e)](_0x26f173[_0x7b7c91(0x19e)](_0x4fc51a[_0x7b7c91(0x15d)],'-'),_0x4fc51a['id']);},exports[a44_0x28400f(0x153)]=(_0x4eb05d,_0x4246b3)=>{const _0x368402=a44_0x28400f,_0x39390a={};_0x39390a[_0x368402(0x143)]=function(_0x4f02bb,_0x10b13d){return _0x4f02bb+_0x10b13d;};const _0x3b0860=_0x39390a;return _0x3b0860[_0x368402(0x143)](_0x3b0860[_0x368402(0x143)](_0x4eb05d['id'],'-'),_0x4246b3);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45_0x330fd7=a45_0x4093;(function(_0x3af1e8,_0x4f4c2a){const _0x1cedf3=a45_0x4093,_0x5aed8a=_0x3af1e8();while(!![]){try{const _0x289851=-parseInt(_0x1cedf3(0x19d))/0x1*(-parseInt(_0x1cedf3(0x252))/0x2)+parseInt(_0x1cedf3(0x144))/0x3+-parseInt(_0x1cedf3(0x189))/0x4*(parseInt(_0x1cedf3(0x194))/0x5)+-parseInt(_0x1cedf3(0x1fc))/0x6+parseInt(_0x1cedf3(0x191))/0x7*(-parseInt(_0x1cedf3(0x151))/0x8)+-parseInt(_0x1cedf3(0x1ec))/0x9+parseInt(_0x1cedf3(0x1e7))/0xa;if(_0x289851===_0x4f4c2a)break;else _0x5aed8a['push'](_0x5aed8a['shift']());}catch(_0xd5a444){_0x5aed8a['push'](_0x5aed8a['shift']());}}}(a45_0x3e17,0x683ba));const RequestQueueHandler=require(a45_0x330fd7(0x228)),{calculatePerformance,getTestTags,getFailureData,sendTraceZip,findNestedKey,validateFilePath,getTestIdentifier,getTestRunIdentifier}=require(a45_0x330fd7(0x222)),{v4:uuidv4}=require(a45_0x330fd7(0x1df)),path=require(a45_0x330fd7(0x15d)),{debug,removeAnsiColors,printBuildLink,getFailureType,failureData,trace}=require(a45_0x330fd7(0x173)),{getGitMetaData,setLogLevel}=require(a45_0x330fd7(0x199)),TestDetails=require(a45_0x330fd7(0x13f)),fs=require('fs'),util=require('util'),{o11yClassErrorHandler}=require(a45_0x330fd7(0x1b5)),PerformanceTester=require('../../../helpers/performance/performance-tester'),{FRAMEWORKS}=require(a45_0x330fd7(0x242)),SessionHandler=require(a45_0x330fd7(0x207)),{appendTesthubParams}=require('../../../helpers/testhub/utils'),helper=require(a45_0x330fd7(0x199)),BrowserstackCLI=require(a45_0x330fd7(0x224)),TestFrameworkState=require('../../v2/state/testFrameworkState'),HookState=require(a45_0x330fd7(0x1d6)),TestInfo=require(a45_0x330fd7(0x1bf)),{PLAYWRIGHT_TRACE_LOGS}=require('../../../../src/bin/utils/constants');function a45_0x4093(_0x2b8a12,_0x1fca2e){const _0x3e17b5=a45_0x3e17();return a45_0x4093=function(_0x4093fa,_0x8e2441){_0x4093fa=_0x4093fa-0x13d;let _0x1c1076=_0x3e17b5[_0x4093fa];return _0x1c1076;},a45_0x4093(_0x2b8a12,_0x1fca2e);}class MyReporter{constructor(_0x44ebbe){const _0x4edbf4=a45_0x330fd7,_0x45f4ef={'ZVWjk':'0|3|6|7|4|2|1|5','PWDTO':function(_0xf191ad,_0x5819c4,_0x5a5d3c,_0x105371){return _0xf191ad(_0x5819c4,_0x5a5d3c,_0x105371);},'jBJGK':_0x4edbf4(0x153)},_0x115acc=_0x45f4ef[_0x4edbf4(0x235)][_0x4edbf4(0x164)]('|');let _0x30fd1f=0x0;while(!![]){switch(_0x115acc[_0x30fd1f++]){case'0':const _0x865759={};_0x865759[_0x4edbf4(0x225)]=process['env'][_0x4edbf4(0x1b0)],_0x45f4ef[_0x4edbf4(0x1ba)](setLogLevel,_0x865759,new Map(),new Map());continue;case'1':this['_gitConfigPath']=null;continue;case'2':this[_0x4edbf4(0x16e)]=![];continue;case'3':process[_0x4edbf4(0x20f)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&(PerformanceTester[_0x4edbf4(0x1b6)](_0x45f4ef[_0x4edbf4(0x240)]),process['env']['START_TIME']=new Date()['toISOString']());continue;case'4':this[_0x4edbf4(0x157)]=_0x44ebbe;continue;case'5':this[_0x4edbf4(0x251)]=[];continue;case'6':this[_0x4edbf4(0x230)]={};continue;case'7':this[_0x4edbf4(0x1cc)]={};continue;}break;}}async[a45_0x330fd7(0x24c)](){const _0x4fd2f5=a45_0x330fd7,_0x569c54={};_0x569c54[_0x4fd2f5(0x1e3)]='Playwright';const _0x41056c=_0x569c54;TestDetails['setup'](),await this[_0x4fd2f5(0x1aa)](),TestInfo[_0x4fd2f5(0x1c9)](_0x41056c[_0x4fd2f5(0x1e3)]);if(BrowserstackCLI[_0x4fd2f5(0x1a2)]()['isRunning']()){await BrowserstackCLI[_0x4fd2f5(0x1a2)]()['getTestFramework']()['trackEvent'](TestFrameworkState[_0x4fd2f5(0x19a)],HookState[_0x4fd2f5(0x1b2)],{});return;}}async['onTestBegin'](_0x245052,_0x1f72e9){const _0x2df4be=a45_0x330fd7,_0x46b0c4={'RDNry':function(_0xb5989,_0x571974){return _0xb5989(_0x571974);},'fylVM':function(_0x7b9aa5,_0xb4e8f7,_0x1f77f5){return _0x7b9aa5(_0xb4e8f7,_0x1f77f5);},'odAkX':_0x2df4be(0x1c7)};if(BrowserstackCLI[_0x2df4be(0x1a2)]()[_0x2df4be(0x1c5)]()){const _0x315ca2={};_0x315ca2['test']=_0x245052,_0x315ca2[_0x2df4be(0x1d9)]=_0x1f72e9,await BrowserstackCLI[_0x2df4be(0x1a2)]()[_0x2df4be(0x205)]()['trackEvent'](TestFrameworkState[_0x2df4be(0x1b9)],HookState['PRE'],_0x315ca2);return;}const _0x274fe5=_0x46b0c4['RDNry'](getTestIdentifier,_0x245052),_0x3f9114=TestDetails[_0x2df4be(0x182)](_0x46b0c4[_0x2df4be(0x236)](getTestRunIdentifier,_0x245052,_0x1f72e9[_0x2df4be(0x1ab)]));process['env'][_0x2df4be(0x15f)]=_0x3f9114;const _0x24c7e6={};_0x24c7e6['uuid']=_0x3f9114,_0x24c7e6[_0x2df4be(0x20b)]=_0x1f72e9[_0x2df4be(0x1ea)],this['_tests'][_0x274fe5]=_0x24c7e6,_0x46b0c4[_0x2df4be(0x217)](trace,_0x2df4be(0x177)+_0x274fe5),await this['sendTestRunEvent'](_0x245052,_0x46b0c4[_0x2df4be(0x17d)],_0x1f72e9);}async['onStepBegin'](_0xc5aa60,_0x2f2d7d,_0x4e07ec){const _0x32a0f1=a45_0x330fd7,_0x20ec33={'dSxSO':function(_0x207802,_0x17c0a4,_0x27f19d){return _0x207802(_0x17c0a4,_0x27f19d);},'AKhhZ':function(_0xee1c20,_0xcdeed){return _0xee1c20(_0xcdeed);},'gQCcV':'HookRunStarted'};if(!this[_0x32a0f1(0x204)](_0x4e07ec,_0xc5aa60))return;if(BrowserstackCLI[_0x32a0f1(0x1a2)]()[_0x32a0f1(0x1c5)]()){const _0x40a69e=this[_0x32a0f1(0x1d4)](_0x4e07ec[_0x32a0f1(0x16f)]),_0x29fb40=TestFrameworkState[_0x40a69e],_0x20700b={};_0x20700b[_0x32a0f1(0x181)]=_0xc5aa60,_0x20700b['result']=_0x2f2d7d,_0x20700b[_0x32a0f1(0x23c)]=_0x4e07ec,await BrowserstackCLI['getInstance']()[_0x32a0f1(0x205)]()[_0x32a0f1(0x1a4)](_0x29fb40,HookState[_0x32a0f1(0x1b2)],_0x20700b);return;}const _0x4ee42e=this['setStepIdentifier'](_0xc5aa60,_0x4e07ec);this[_0x32a0f1(0x230)][_0x4ee42e]={'uuid':TestDetails[_0x32a0f1(0x182)](_0x4ee42e),'startedAt':_0x4e07ec['startTime'][_0x32a0f1(0x253)]()};const _0x2c58fd=_0x20ec33[_0x32a0f1(0x1a0)](getTestRunIdentifier,_0xc5aa60,_0x2f2d7d['retry']);!this[_0x32a0f1(0x1cc)][_0x2c58fd]&&(this[_0x32a0f1(0x1cc)][_0x2c58fd]=[]),this['_testHooksMap'][_0x2c58fd]['push'](this['_tests'][_0x4ee42e][_0x32a0f1(0x1df)]),_0x20ec33[_0x32a0f1(0x226)](trace,_0x32a0f1(0x1cb)+_0x4ee42e+'\x20is\x20triggered\x20for\x20test\x20'+_0x2c58fd),await this['sendHookRunEvent'](_0xc5aa60,_0x4e07ec,_0x20ec33[_0x32a0f1(0x146)],_0x2f2d7d);}async['onStepEnd'](_0x1be9db,_0x807cee,_0x3d310b){const _0x146973=a45_0x330fd7,_0x45eee4={'uXZpK':function(_0x15fdd4,_0x2465a5){return _0x15fdd4+_0x2465a5;},'wWEVT':function(_0x522ea5,_0x2e9797){return _0x522ea5(_0x2e9797);},'DXUIQ':_0x146973(0x214)};if(!this[_0x146973(0x204)](_0x3d310b,_0x1be9db))return;if(BrowserstackCLI[_0x146973(0x1a2)]()[_0x146973(0x1c5)]()){const _0x47c451=this[_0x146973(0x1d4)](_0x3d310b[_0x146973(0x16f)]),_0x4e8eb9=TestFrameworkState[_0x47c451],_0xcec239={};_0xcec239[_0x146973(0x181)]=_0x1be9db,_0xcec239['result']=_0x807cee,_0xcec239['step']=_0x3d310b,await BrowserstackCLI['getInstance']()['getTestFramework']()[_0x146973(0x1a4)](_0x4e8eb9,HookState[_0x146973(0x185)],_0xcec239);return;}const _0xa96fe5=this[_0x146973(0x16a)](_0x1be9db,_0x3d310b);this[_0x146973(0x230)][_0xa96fe5]={...this[_0x146973(0x230)][_0xa96fe5]||{},'finishedAt':new Date(_0x45eee4[_0x146973(0x18c)](_0x3d310b[_0x146973(0x1ea)][_0x146973(0x1dd)](),_0x3d310b[_0x146973(0x1fd)]))},_0x45eee4['wWEVT'](trace,_0x146973(0x1f8)+_0xa96fe5+_0x146973(0x1ff)),await this[_0x146973(0x22b)](_0x1be9db,_0x3d310b,_0x45eee4[_0x146973(0x202)],_0x807cee);}async[a45_0x330fd7(0x16b)](_0x2a3cff,_0x1aaec3){const _0x4999f3=a45_0x330fd7,_0xd3a52c={'wkLkN':function(_0x455634,_0x31dd31){return _0x455634===_0x31dd31;},'owMTY':_0x4999f3(0x1e2),'NwMyd':_0x4999f3(0x1cf),'cwPYj':_0x4999f3(0x159),'ZNHXI':function(_0x3518f8,_0x40b76e){return _0x3518f8(_0x40b76e);},'zboNv':function(_0x162efc,_0x5f8226,_0x32c12e){return _0x162efc(_0x5f8226,_0x32c12e);},'cbYrU':function(_0x51df23,_0x459549){return _0x51df23(_0x459549);},'TsoKq':_0x4999f3(0x1e1),'hiUKQ':function(_0x3cfd7f,_0x1f5db9){return _0x3cfd7f(_0x1f5db9);},'bgPiP':_0x4999f3(0x229),'mZhBc':function(_0x3ec2e3,_0x592724){return _0x3ec2e3(_0x592724);},'smuDT':function(_0x1ef85b,_0x57e03f,_0x16c0eb){return _0x1ef85b(_0x57e03f,_0x16c0eb);},'pTgyE':_0x4999f3(0x23f),'ozniF':function(_0x48ded7,_0x5c113c){return _0x48ded7>_0x5c113c;}};if(BrowserstackCLI[_0x4999f3(0x1a2)]()[_0x4999f3(0x1c5)]()){const _0x38341a={};_0x38341a[_0x4999f3(0x181)]=_0x2a3cff,_0x38341a[_0x4999f3(0x1d9)]=_0x1aaec3,this[_0x4999f3(0x251)]['push'](BrowserstackCLI[_0x4999f3(0x1a2)]()[_0x4999f3(0x205)]()[_0x4999f3(0x1a4)](TestFrameworkState[_0x4999f3(0x1b9)],HookState['POST'],_0x38341a));return;}const _0x297b37=_0xd3a52c['ZNHXI'](getTestIdentifier,_0x2a3cff),_0x3faf4c=TestDetails[_0x4999f3(0x182)](_0xd3a52c[_0x4999f3(0x17b)](getTestRunIdentifier,_0x2a3cff,_0x1aaec3[_0x4999f3(0x1ab)]));this[_0x4999f3(0x230)][_0x297b37]={...this['_tests'][_0x297b37]||{},'finishedAt':new Date()['toISOString']()},_0xd3a52c[_0x4999f3(0x156)](debug,_0x4999f3(0x15b)+_0x297b37);try{await this[_0x4999f3(0x1e8)](_0x2a3cff,_0xd3a52c['TsoKq'],_0x1aaec3);}catch(_0x5647ab){_0xd3a52c['hiUKQ'](debug,util['format'](_0xd3a52c[_0x4999f3(0x219)],_0x5647ab[_0x4999f3(0x172)]()));}try{_0xd3a52c[_0x4999f3(0x206)](debug,_0x4999f3(0x1c4)+_0x3faf4c),await _0xd3a52c[_0x4999f3(0x20d)](sendTraceZip,_0x1aaec3,_0x3faf4c);}catch(_0x2d15ab){_0xd3a52c[_0x4999f3(0x183)](debug,util[_0x4999f3(0x1a1)](_0xd3a52c[_0x4999f3(0x1ee)],_0x2d15ab[_0x4999f3(0x172)]()));}const _0x43c865=[];_0x1aaec3[_0x4999f3(0x143)]&&_0x1aaec3[_0x4999f3(0x143)][_0x4999f3(0x1ed)](_0x4129d8=>{const _0x52480a=_0x4999f3;if(_0xd3a52c['wkLkN'](_0x4129d8[_0x52480a(0x223)],_0xd3a52c[_0x52480a(0x190)])){if(!_0x4129d8[_0x52480a(0x15d)]||!fs[_0x52480a(0x1a5)](_0x4129d8['path']))return;_0x43c865[_0x52480a(0x192)]({'test_run_uuid':_0x3faf4c,'timestamp':fs[_0x52480a(0x14a)](_0x4129d8['path'])[_0x52480a(0x1e9)],'kind':_0xd3a52c[_0x52480a(0x14e)],'message':fs[_0x52480a(0x20c)](_0x4129d8['path'],{'encoding':_0xd3a52c[_0x52480a(0x15e)]})});}}),_0xd3a52c[_0x4999f3(0x1a8)](_0x43c865['length'],0x0)&&await MyReporter[_0x4999f3(0x237)](_0x43c865);}async['endSession'](){const _0x5281bb=a45_0x330fd7;await RequestQueueHandler[_0x5281bb(0x1a2)]()[_0x5281bb(0x1b8)]();}async[a45_0x330fd7(0x227)](_0x1a0670){const _0x269293=a45_0x330fd7,_0x5cb8c6={'CNEKL':function(_0x5ceb6e){return _0x5ceb6e();},'QVVEv':function(_0x1ab10a,_0x34f48f){return _0x1ab10a(_0x34f48f);}};await Promise[_0x269293(0x21f)](this[_0x269293(0x251)]),await this['endSession']();try{process[_0x269293(0x20f)][_0x269293(0x170)]&&await _0x5cb8c6[_0x269293(0x15a)](calculatePerformance);}catch(_0x569edf){_0x5cb8c6[_0x269293(0x1fa)](debug,'Error\x20in\x20calculating\x20performance:\x20'+_0x569edf['toString']());}}static async[a45_0x330fd7(0x1e0)](_0x363187,_0x2a57ed){const _0xd12d09=a45_0x330fd7;_0x2a57ed[_0xd12d09(0x201)]=TestDetails[_0xd12d09(0x182)](_0x363187),await this['reportLogs']([_0x2a57ed]);}static async['reportLogs'](_0xb62405){const _0x455a60=a45_0x330fd7,_0x3b01e1={};_0x3b01e1['TFEpe']=_0x455a60(0x1ad);const _0x2f3be2=_0x3b01e1;if(BrowserstackCLI[_0x455a60(0x1a2)]()['isRunning']())return;const _0x45dd9b={};_0x45dd9b['event_type']=_0x2f3be2[_0x455a60(0x1bd)],_0x45dd9b['logs']=_0xb62405,await SessionHandler[_0x455a60(0x1d5)](_0x45dd9b);}async[a45_0x330fd7(0x22b)](_0x13dbb9,_0x3c0692,_0x218c71,_0x3ac0d0){const _0x4213e5=a45_0x330fd7,_0x512215={'JkgdH':'hook','aXEhi':'javascript','mSUcY':_0x4213e5(0x149),'WvEvi':function(_0x5bb4f7,_0xa3380e){return _0x5bb4f7>=_0xa3380e;},'flNRY':function(_0x5b64b5,_0x20e8df){return _0x5b64b5===_0x20e8df;},'OvvYu':_0x4213e5(0x214),'uQiVL':function(_0x3c0d51,_0x488f5f){return _0x3c0d51>_0x488f5f;},'XYwyy':_0x4213e5(0x1f1),'XJwie':function(_0x5ef039,_0x1b297e){return _0x5ef039(_0x1b297e);},'JKEiI':function(_0x7ef32e,_0x4d7dbc){return _0x7ef32e(_0x4d7dbc);},'tUHeE':function(_0x1ee1a1,_0x5305d6,_0x10d372){return _0x1ee1a1(_0x5305d6,_0x10d372);},'SaJuC':_0x4213e5(0x148),'gcDNK':_0x4213e5(0x244)},_0x1b4166=this['getStepIdentifier'](_0x13dbb9,_0x3c0692),_0x1c6052=this[_0x4213e5(0x230)][_0x1b4166],_0x4b13cf={'uuid':_0x1c6052[_0x4213e5(0x1df)],'type':_0x512215[_0x4213e5(0x1c6)],'hook_type':this['getHookType'](_0x3c0692[_0x4213e5(0x16f)]),'name':_0x3c0692[_0x4213e5(0x16f)],'scope':this[_0x4213e5(0x17a)](_0x3c0692),'scopes':this[_0x4213e5(0x1da)](_0x13dbb9),'body':{'lang':_0x512215[_0x4213e5(0x1ef)],'code':null},'identifier':_0x1b4166,'file_name':path['relative'](process['cwd'](),_0x13dbb9[_0x4213e5(0x23b)][_0x4213e5(0x20a)]),'location':path['relative'](process['cwd'](),_0x13dbb9[_0x4213e5(0x23b)][_0x4213e5(0x20a)]),'result':_0x512215['mSUcY'],'duration_in_ms':_0x512215['WvEvi'](_0x3c0692[_0x4213e5(0x1fd)],0x0)?_0x3c0692[_0x4213e5(0x1fd)]:undefined,'vc_filepath':this[_0x4213e5(0x1d7)]&&_0x13dbb9[_0x4213e5(0x23b)][_0x4213e5(0x20a)]?path[_0x4213e5(0x232)](this[_0x4213e5(0x1d7)],_0x13dbb9[_0x4213e5(0x23b)][_0x4213e5(0x20a)]):undefined,'started_at':_0x1c6052[_0x4213e5(0x20b)],'finished_at':_0x1c6052[_0x4213e5(0x154)],'framework':FRAMEWORKS[_0x4213e5(0x1f2)]};if(_0x512215[_0x4213e5(0x163)](_0x218c71,_0x512215[_0x4213e5(0x17e)])){const {steps:_0x240121,logs:_0x94a7c5}=this[_0x4213e5(0x1c1)](_0x3c0692[_0x4213e5(0x216)],_0x1c6052['uuid'],_0x512215[_0x4213e5(0x1c6)]);_0x94a7c5&&_0x512215[_0x4213e5(0x18b)](_0x94a7c5[_0x4213e5(0x1d2)],0x0)&&await MyReporter[_0x4213e5(0x237)](_0x94a7c5);const _0x5985f2={};_0x5985f2[_0x4213e5(0x216)]=_0x240121,_0x4b13cf[_0x4213e5(0x18e)]=_0x5985f2;if(_0x3c0692[_0x4213e5(0x16c)]){_0x4b13cf[_0x4213e5(0x1d9)]=_0x512215[_0x4213e5(0x166)],_0x4b13cf[_0x4213e5(0x160)]=_0x512215[_0x4213e5(0x142)](removeAnsiColors,_0x3c0692['error'][_0x4213e5(0x180)]),_0x4b13cf[_0x4213e5(0x1be)]=_0x512215[_0x4213e5(0x1b1)](getFailureType,_0x3c0692[_0x4213e5(0x16c)]['message']);const _0x354626=_0x512215[_0x4213e5(0x15c)](failureData,_0x3c0692[_0x4213e5(0x16c)],_0x512215[_0x4213e5(0x208)]);if(_0x354626&&_0x512215[_0x4213e5(0x163)](_0x354626['length'],0x0)){const _0x54fe20={};_0x54fe20[_0x4213e5(0x212)]=[_0x4b13cf[_0x4213e5(0x160)]],_0x54fe20[_0x4213e5(0x1ae)]=[],_0x354626[_0x4213e5(0x192)](_0x54fe20);}_0x4b13cf['failure']=_0x354626;}else _0x4b13cf[_0x4213e5(0x1d9)]=_0x512215[_0x4213e5(0x147)];}const _0x2142a9={};_0x2142a9[_0x4213e5(0x1e6)]=_0x218c71,_0x2142a9[_0x4213e5(0x1dc)]=_0x4b13cf;const _0x35c9bc=_0x2142a9;await SessionHandler[_0x4213e5(0x1d5)](_0x35c9bc);}[a45_0x330fd7(0x1c1)](_0x477ca1,_0x31c0a3,_0x575d4c){const _0xcce50=a45_0x330fd7,_0xc10b={'FhPte':function(_0x235882,_0x5c35a3){return _0x235882===_0x5c35a3;},'StzYV':_0xcce50(0x1c8),'wKjMC':_0xcce50(0x1a7),'DnGFq':'Before\x20Hooks','DpwWb':'test','kFpIF':_0xcce50(0x201),'HlvmA':_0xcce50(0x241),'lVtzW':_0xcce50(0x1d0),'sdoaB':_0xcce50(0x1f1),'XgPjn':'passed','zWByt':function(_0x5aa16a,_0x42ca7b){return _0x5aa16a(_0x42ca7b);},'ZkweK':function(_0xbf27f7){return _0xbf27f7();},'YSbcG':function(_0x497a39,_0x11ab5d){return _0x497a39(_0x11ab5d);},'PxEGi':function(_0x549c46,_0x1794f6){return _0x549c46(_0x1794f6);},'jgyIC':function(_0x1ce2cc,_0x328d58,_0x41859e){return _0x1ce2cc(_0x328d58,_0x41859e);}},_0x441f15=[],_0x536582=[],_0x415bac=_0x477ca1[_0xcce50(0x1f4)](_0x44b965=>{const _0x309fd2=_0xcce50;if(_0xc10b[_0x309fd2(0x211)](_0x44b965['category'],_0xc10b['StzYV'])&&(_0xc10b['FhPte'](_0x44b965[_0x309fd2(0x16f)],_0xc10b[_0x309fd2(0x1a9)])||_0xc10b[_0x309fd2(0x211)](_0x44b965[_0x309fd2(0x16f)],_0xc10b['DnGFq'])))return![];return!![];}),_0x578a9f=(_0x4209a7,_0x14fde6=![])=>{const _0x181641=_0xcce50;if(_0xc10b[_0x181641(0x211)](_0x4209a7[_0x181641(0x216)][_0x181641(0x1d2)],0x0)){const _0x2583da=_0xc10b[_0x181641(0x211)](_0x575d4c,_0xc10b[_0x181641(0x22a)])?_0xc10b[_0x181641(0x22e)]:_0xc10b[_0x181641(0x14d)];_0x536582['push']({'kind':_0xc10b[_0x181641(0x1cd)],[_0x2583da]:_0x31c0a3,'message':_0x4209a7['title'],'timestamp':_0x4209a7[_0x181641(0x1ea)][_0x181641(0x253)](),'level':_0x4209a7[_0x181641(0x16c)]?_0xc10b[_0x181641(0x169)]:_0xc10b[_0x181641(0x24e)],'duration':_0x4209a7[_0x181641(0x1fd)],'failure':_0x4209a7[_0x181641(0x16c)]&&_0x4209a7[_0x181641(0x16c)][_0x181641(0x180)]&&_0xc10b[_0x181641(0x150)](removeAnsiColors,_0x4209a7[_0x181641(0x16c)][_0x181641(0x180)]),'failure_type':_0xc10b[_0x181641(0x150)](getFailureType,_0x4209a7['error']&&_0x4209a7[_0x181641(0x16c)][_0x181641(0x180)])});}else{!_0x14fde6&&_0x441f15[_0x181641(0x192)]({'id':_0xc10b[_0x181641(0x193)](uuidv4),'text':_0x4209a7[_0x181641(0x16f)],'keyword':undefined,'started_at':_0x4209a7[_0x181641(0x1ea)]['toISOString'](),'duration':_0x4209a7[_0x181641(0x1fd)],'result':_0x4209a7[_0x181641(0x16c)]?_0xc10b[_0x181641(0x169)]:_0xc10b[_0x181641(0x24e)],'failure':_0x4209a7['error']&&_0x4209a7['error']['message']&&_0xc10b[_0x181641(0x1c3)](removeAnsiColors,_0x4209a7[_0x181641(0x16c)][_0x181641(0x180)]),'failure_type':_0xc10b[_0x181641(0x167)](getFailureType,_0x4209a7['error']&&_0x4209a7[_0x181641(0x16c)]['message'])});for(const _0x3f5616 of _0x4209a7[_0x181641(0x216)]){_0xc10b[_0x181641(0x161)](_0x578a9f,_0x3f5616,!![]);}}};for(const _0x211b39 of _0x415bac){_0xc10b[_0xcce50(0x161)](_0x578a9f,_0x211b39,![]);}const _0x3b69a3={};return _0x3b69a3[_0xcce50(0x216)]=_0x441f15,_0x3b69a3[_0xcce50(0x246)]=_0x536582,_0x3b69a3;}async[a45_0x330fd7(0x1e8)](_0x13f144,_0xeda780,_0x232e09){const _0x494f6f=a45_0x330fd7,_0x3c40ae={'QHEEe':function(_0x52af02,_0x40c41c){return _0x52af02(_0x40c41c);},'YPtgr':_0x494f6f(0x215),'cJesS':function(_0x46309a,_0x19d70d){return _0x46309a(_0x19d70d);},'YdjyA':_0x494f6f(0x181),'Xbjxw':_0x494f6f(0x21d),'Spuwj':_0x494f6f(0x149),'kbofq':function(_0x4a2e8c,_0x143fc0){return _0x4a2e8c(_0x143fc0);},'oEZaT':function(_0xbd813e,_0xe95a95,_0x41b423,_0x2aa3ce,_0x26a7d7){return _0xbd813e(_0xe95a95,_0x41b423,_0x2aa3ce,_0x26a7d7);},'bUnvf':function(_0x346dc2,_0xb7227b){return _0x346dc2>_0xb7227b;},'vAdbM':function(_0x2d32d6,_0x1a00a9,_0x19457e){return _0x2d32d6(_0x1a00a9,_0x19457e);},'xFUIj':function(_0x2bdcd1,_0x262fe4){return _0x2bdcd1-_0x262fe4;},'vHfDZ':function(_0x29c5d4,_0xf27cb0){return _0x29c5d4===_0xf27cb0;},'HMTln':_0x494f6f(0x1e1),'GgVzJ':function(_0x5ee567,_0x3c73d5){return _0x5ee567===_0x3c73d5;},'wGcVR':'skipped','qDpsZ':_0x494f6f(0x244),'BuRNk':function(_0x34f31c,_0x5affa2){return _0x34f31c===_0x5affa2;},'FxEPH':'failed','wXtBk':function(_0x179067,_0x2b16db){return _0x179067===_0x2b16db;},'vpzgY':_0x494f6f(0x18a),'GrZWa':function(_0x436ee1,_0x55f0e6){return _0x436ee1===_0x55f0e6;},'xDBFE':function(_0x15df38,_0x38b246){return _0x15df38===_0x38b246;},'raCKR':_0x494f6f(0x176),'PGAro':function(_0x86182c,_0xd499c0,_0x58d366){return _0x86182c(_0xd499c0,_0x58d366);},'vwIFs':function(_0x23ec93,_0x47279d){return _0x23ec93(_0x47279d);},'TWuap':function(_0x524c7d,_0x1ec59e){return _0x524c7d===_0x1ec59e;},'OPCQN':function(_0x29fdd5,_0x183c68,_0x41deca){return _0x29fdd5(_0x183c68,_0x41deca);},'QLMrP':_0x494f6f(0x15d),'wERwW':function(_0x149f88,_0x59d49d){return _0x149f88(_0x59d49d);},'uWpVj':_0x494f6f(0x17f),'mPFat':_0x494f6f(0x21c),'cohDg':function(_0x15b9a2,_0x280be0){return _0x15b9a2(_0x280be0);},'DUGko':function(_0x4537f3,_0x57c02b){return _0x4537f3!==_0x57c02b;}},_0x5476c8=_0x3c40ae[_0x494f6f(0x24d)](getTestIdentifier,_0x13f144),_0x24c862=this[_0x494f6f(0x17a)](_0x13f144),_0x4fbc7d=this[_0x494f6f(0x230)][_0x5476c8],_0x36116e=path['relative'](process[_0x494f6f(0x1fb)](),_0x13f144[_0x494f6f(0x23b)]['file']);await this[_0x494f6f(0x1aa)]();const _0x380222={'uuid':_0x4fbc7d['uuid'],'type':_0x3c40ae['YdjyA'],'name':_0x13f144[_0x494f6f(0x16f)],'body':{'lang':_0x3c40ae['Xbjxw'],'code':_0x13f144['fn'][_0x494f6f(0x172)]()},'scope':_0x24c862,'scopes':this[_0x494f6f(0x1da)](_0x13f144),'identifier':_0x5476c8,'file_name':_0x36116e,'location':_0x36116e,'result':_0x3c40ae[_0x494f6f(0x140)],'duration_in_ms':_0x232e09&&_0x232e09[_0x494f6f(0x1fd)]?_0x232e09[_0x494f6f(0x1fd)]:null,'vc_filepath':this[_0x494f6f(0x1d7)]&&_0x13f144[_0x494f6f(0x23b)][_0x494f6f(0x20a)]?path['relative'](this['_gitConfigPath'],_0x13f144[_0x494f6f(0x23b)][_0x494f6f(0x20a)]):undefined,'started_at':_0x4fbc7d[_0x494f6f(0x20b)],'finished_at':_0x4fbc7d['finishedAt'],'framework':FRAMEWORKS[_0x494f6f(0x1f2)],'customRerunParam':{'rerun_name':this[_0x494f6f(0x203)](_0x13f144)},'tags':_0x3c40ae['kbofq'](getTestTags,_0x13f144)};_0x3c40ae['oEZaT'](appendTesthubParams,_0x380222,_0xeda780,_0x13f144,FRAMEWORKS['PLAYWRIGHT']);_0x232e09&&_0x3c40ae['bUnvf'](_0x232e09['retry'],0x0)&&(_0x380222['retry_of']=TestDetails['getTestUUID'](_0x3c40ae[_0x494f6f(0x155)](getTestRunIdentifier,_0x13f144,_0x3c40ae[_0x494f6f(0x168)](_0x232e09[_0x494f6f(0x1ab)],0x1))));if(_0x3c40ae[_0x494f6f(0x13e)](_0xeda780,_0x3c40ae[_0x494f6f(0x243)])){_0x380222[_0x494f6f(0x1d9)]=_0x232e09[_0x494f6f(0x1c2)];if(_0x3c40ae[_0x494f6f(0x24a)](_0x232e09['status'],_0x13f144[_0x494f6f(0x23e)]))_0x380222[_0x494f6f(0x1d9)]=_0x3c40ae[_0x494f6f(0x13e)](_0x232e09['status'],_0x3c40ae[_0x494f6f(0x1fe)])?_0x3c40ae[_0x494f6f(0x1fe)]:_0x3c40ae['qDpsZ'];else{(_0x3c40ae[_0x494f6f(0x24a)](_0x380222[_0x494f6f(0x1d9)],_0x3c40ae['qDpsZ'])||_0x3c40ae[_0x494f6f(0x248)](_0x380222[_0x494f6f(0x1d9)],_0x3c40ae[_0x494f6f(0x198)])||_0x3c40ae['wXtBk'](_0x380222[_0x494f6f(0x1d9)],_0x3c40ae[_0x494f6f(0x13d)]))&&(_0x380222[_0x494f6f(0x1d9)]=_0x3c40ae[_0x494f6f(0x198)]);if(_0x3c40ae[_0x494f6f(0x221)](_0x232e09[_0x494f6f(0x1c2)],_0x3c40ae['qDpsZ'])&&_0x3c40ae[_0x494f6f(0x22d)](_0x13f144[_0x494f6f(0x23e)],_0x3c40ae[_0x494f6f(0x198)])){const _0x3c810f={};_0x3c810f[_0x494f6f(0x180)]=_0x3c40ae[_0x494f6f(0x1ce)],_0x3c810f['stack']=_0x3c40ae[_0x494f6f(0x1ce)],_0x232e09[_0x494f6f(0x16c)]=_0x3c810f,_0x232e09[_0x494f6f(0x1de)]=[_0x232e09[_0x494f6f(0x16c)]];}}const _0x535a9c=_0x3c40ae[_0x494f6f(0x14f)](getTestRunIdentifier,_0x13f144,_0x232e09['retry']);_0x380222[_0x494f6f(0x250)]=this[_0x494f6f(0x1cc)][_0x535a9c];const {steps:_0x54cfda,logs:_0x492a97}=this[_0x494f6f(0x1c1)](_0x232e09[_0x494f6f(0x216)],_0x4fbc7d[_0x494f6f(0x1df)],_0x3c40ae[_0x494f6f(0x220)]);await MyReporter[_0x494f6f(0x237)](_0x492a97);const _0x1b160d={};_0x1b160d[_0x494f6f(0x216)]=_0x54cfda,_0x380222[_0x494f6f(0x18e)]=_0x1b160d;if(_0x232e09[_0x494f6f(0x16c)]){_0x380222['failure_reason']=_0x3c40ae['vwIFs'](removeAnsiColors,_0x232e09[_0x494f6f(0x16c)]['message']),_0x380222[_0x494f6f(0x1be)]=_0x3c40ae[_0x494f6f(0x1f9)](getFailureType,_0x232e09[_0x494f6f(0x16c)][_0x494f6f(0x180)]);const _0x2df3c3={};_0x2df3c3[_0x494f6f(0x201)]=_0x4fbc7d[_0x494f6f(0x1df)];const {failureData:_0x595a47,logs:_0x429974}=_0x3c40ae[_0x494f6f(0x155)](getFailureData,_0x232e09[_0x494f6f(0x1de)],_0x2df3c3);if(_0x595a47&&_0x3c40ae['TWuap'](_0x595a47[_0x494f6f(0x1d2)],0x0)){const _0x127439={};_0x127439['backtrace']=[_0x380222['failure_reason']],_0x127439['expanded']=[],_0x595a47['push'](_0x127439);}_0x380222['failure']=_0x595a47,_0x429974&&_0x3c40ae[_0x494f6f(0x210)](_0x429974['length'],0x0)&&await MyReporter[_0x494f6f(0x237)](_0x429974);}}let _0xb9c028=_0x3c40ae['OPCQN'](findNestedKey,_0x232e09,_0x3c40ae[_0x494f6f(0x245)]);if(_0xb9c028&&_0x3c40ae[_0x494f6f(0x162)](validateFilePath,_0xb9c028))_0x3c40ae[_0x494f6f(0x200)](debug,_0x494f6f(0x197)+_0x4fbc7d[_0x494f6f(0x1df)]+_0x494f6f(0x247)+_0xb9c028);else{const _0x5783a2=path['join'](helper['homedir'](),_0x3c40ae['uWpVj']);!fs[_0x494f6f(0x1a5)](_0x5783a2)&&fs[_0x494f6f(0x17c)](_0x5783a2),fs[_0x494f6f(0x1a5)](path[_0x494f6f(0x187)](_0x5783a2,_0x494f6f(0x1af)+_0x4fbc7d['uuid']+_0x494f6f(0x1ac)))&&(_0xb9c028=fs['readFileSync'](path[_0x494f6f(0x187)](_0x5783a2,_0x494f6f(0x1af)+_0x4fbc7d['uuid']+_0x494f6f(0x1ac)),_0x3c40ae[_0x494f6f(0x239)]),_0x3c40ae[_0x494f6f(0x20e)](debug,'Trace\x20file\x20found\x20for\x20test:\x20'+_0x4fbc7d[_0x494f6f(0x1df)]+_0x494f6f(0x247)+_0xb9c028));}const _0x7587d2={};_0x7587d2[_0x494f6f(0x1e6)]=_0xeda780,_0x7587d2[_0x494f6f(0x22f)]=_0x380222;const _0xd606b=_0x7587d2;_0xb9c028&&_0x3c40ae[_0x494f6f(0x24f)](_0xb9c028,'')&&_0x3c40ae[_0x494f6f(0x22d)](_0xeda780,_0x3c40ae[_0x494f6f(0x243)])&&(!_0xd606b[_0x494f6f(0x246)]&&(_0xd606b['logs']=[]),_0xb9c028[_0x494f6f(0x164)]('\x0a')[_0x494f6f(0x19c)](_0x3fb106=>{const _0x1a48ec=_0x494f6f;_0x3fb106&&_0x3c40ae['QHEEe'](validateFilePath,_0x3fb106)&&_0xd606b[_0x1a48ec(0x246)][_0x1a48ec(0x192)]({'kind':_0x3c40ae[_0x1a48ec(0x213)],'timestamp':new Date()[_0x1a48ec(0x253)](),'test_run_uuid':_0x4fbc7d[_0x1a48ec(0x1df)],'file_name':path[_0x1a48ec(0x14c)](_0x3fb106),'file_size':fs[_0x1a48ec(0x14a)](_0x3fb106)[_0x1a48ec(0x152)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});})),await SessionHandler[_0x494f6f(0x1d5)](_0xd606b);}[a45_0x330fd7(0x203)](_0x2a4e6f){const _0x495dca=a45_0x330fd7,_0x53f551={};_0x53f551['EVaYU']=function(_0x2898f1,_0x148bdb){return _0x2898f1===_0x148bdb;},_0x53f551[_0x495dca(0x1bb)]=function(_0x54f07a,_0x5d8bdb){return _0x54f07a>_0x5d8bdb;},_0x53f551[_0x495dca(0x23a)]=function(_0x3154b3,_0x2199ad){return _0x3154b3+_0x2199ad;},_0x53f551[_0x495dca(0x1ca)]=function(_0xfc3f75,_0x4eecc0){return _0xfc3f75===_0x4eecc0;},_0x53f551[_0x495dca(0x1f0)]=function(_0x2f176f,_0x568c00){return _0x2f176f+_0x568c00;},_0x53f551[_0x495dca(0x175)]=function(_0x9dcc1f,_0x466ae0){return _0x9dcc1f+_0x466ae0;};const _0x390675=_0x53f551,_0x1f352f=_0x2a4e6f[_0x495dca(0x238)]()[_0x495dca(0x1ed)](_0x1e50c2=>{const _0x5c1bab=_0x495dca;if(_0x2a4e6f[_0x5c1bab(0x186)]&&_0x390675[_0x5c1bab(0x19f)](_0x1e50c2,_0x2a4e6f['parent'][_0x5c1bab(0x16f)])&&_0x2a4e6f[_0x5c1bab(0x186)][_0x5c1bab(0x16d)]&&_0x390675['IeaWJ'](_0x2a4e6f['parent'][_0x5c1bab(0x16d)][_0x5c1bab(0x1d2)],0x0))return _0x390675[_0x5c1bab(0x23a)](_0x390675[_0x5c1bab(0x23a)](_0x1e50c2,'\x20'),_0x2a4e6f['parent']['_tags']['join']('\x20'));if(_0x390675[_0x5c1bab(0x1ca)](_0x1e50c2,_0x2a4e6f[_0x5c1bab(0x16f)])&&_0x2a4e6f[_0x5c1bab(0x16d)]&&_0x390675[_0x5c1bab(0x1bb)](_0x2a4e6f[_0x5c1bab(0x16d)][_0x5c1bab(0x1d2)],0x0))return _0x390675['JYHcS'](_0x390675[_0x5c1bab(0x175)](_0x1e50c2,'\x20'),_0x2a4e6f[_0x5c1bab(0x16d)]['join']('\x20'));return _0x1e50c2;})[_0x495dca(0x187)]('\x20');return _0x1f352f;}static async[a45_0x330fd7(0x1e4)](_0x21a14c,_0x35e7a9){const _0x280bce=a45_0x330fd7,_0x28d2e1={'LcsfN':function(_0x4b889f,_0xaab855){return _0x4b889f(_0xaab855);},'lqjSY':_0x280bce(0x165)},_0x1971d4={'uuid':TestDetails['getTestUUID'](_0x21a14c),'integrations':_0x35e7a9},_0x62ea44={};_0x62ea44[_0x280bce(0x19e)]=null,_0x28d2e1[_0x280bce(0x22c)](debug,_0x280bce(0x18d)+_0x21a14c+',\x20'+util['inspect'](_0x35e7a9,_0x62ea44));const _0x566821={};_0x566821[_0x280bce(0x1e6)]=_0x28d2e1[_0x280bce(0x1b7)],_0x566821[_0x280bce(0x22f)]=_0x1971d4,await SessionHandler[_0x280bce(0x1d5)](_0x566821);}async['configureGit'](){const _0x5c1916=a45_0x330fd7,_0x19be88={'swKqh':function(_0x5e2ad8){return _0x5e2ad8();}};if(this[_0x5c1916(0x16e)])return;const _0x20412d=await _0x19be88[_0x5c1916(0x1a3)](getGitMetaData);_0x20412d&&(this[_0x5c1916(0x1d7)]=_0x20412d['root']),this['_gitConfigured']=!![];}['getHierarchy'](_0x10413c){const _0x406eef=a45_0x330fd7,_0x7a1932={};_0x7a1932[_0x406eef(0x188)]=function(_0x5a17ba,_0x56d9ce){return _0x5a17ba!==_0x56d9ce;};const _0x4c092e=_0x7a1932,_0x346765=[];if(_0x10413c&&_0x10413c[_0x406eef(0x186)]){let _0x4cec03=_0x10413c[_0x406eef(0x186)];while(_0x4cec03&&_0x4c092e[_0x406eef(0x188)](_0x4cec03[_0x406eef(0x16f)],'')){_0x346765['push'](_0x4cec03[_0x406eef(0x16f)]),_0x4cec03=_0x4cec03[_0x406eef(0x186)];}}return _0x346765[_0x406eef(0x1d8)]()[_0x406eef(0x158)](0x0,0x2),_0x346765;}[a45_0x330fd7(0x204)](_0x4ef53d){const _0x33929c=a45_0x330fd7,_0x484054={};_0x484054[_0x33929c(0x1f3)]=function(_0x358dca,_0x418b16){return _0x358dca!==_0x418b16;},_0x484054[_0x33929c(0x218)]=_0x33929c(0x1c8),_0x484054[_0x33929c(0x21b)]=function(_0x4bd146,_0x3142ff){return _0x4bd146===_0x3142ff;},_0x484054[_0x33929c(0x1c0)]='beforeEach\x20hook',_0x484054[_0x33929c(0x1f6)]='beforeAll\x20hook',_0x484054[_0x33929c(0x1a6)]='afterAll\x20hook',_0x484054[_0x33929c(0x174)]='afterEach\x20hook';const _0x1f426f=_0x484054;if(_0x1f426f[_0x33929c(0x1f3)](_0x4ef53d[_0x33929c(0x1f7)],_0x1f426f['yFYil']))return![];if(_0x1f426f[_0x33929c(0x21b)]([_0x1f426f[_0x33929c(0x1c0)],_0x1f426f[_0x33929c(0x1f6)],_0x1f426f[_0x33929c(0x1a6)],_0x1f426f[_0x33929c(0x174)]]['indexOf'](_0x4ef53d['title']),-0x1))return![];return!![];}['getStepIdentifier'](_0xf3fb74,_0x13905d){const _0x111f45=a45_0x330fd7,_0x1e431c={'UrWGE':function(_0x467d6a,_0x2cf32d){return _0x467d6a(_0x2cf32d);}},_0x370907=_0x13905d['_bs_hookIdentifier'];if(_0x370907)return _0x370907;return _0x13905d[_0x111f45(0x16f)]+_0x111f45(0x1e5)+_0x1e431c[_0x111f45(0x21e)](getTestIdentifier,_0xf3fb74);}[a45_0x330fd7(0x1bc)](_0x1a0c3a,_0x264bd1){const _0xc84ac5=a45_0x330fd7,_0x4b2a17={'dtnkF':function(_0x3d2617,_0x3b10ab){return _0x3d2617(_0x3b10ab);},'GEAdc':function(_0x293e5e){return _0x293e5e();}};let _0x524222=_0x264bd1[_0xc84ac5(0x16f)]+_0xc84ac5(0x1e5)+_0x4b2a17[_0xc84ac5(0x178)](getTestIdentifier,_0x1a0c3a);return this[_0xc84ac5(0x230)][_0x524222]&&(_0x524222=_0x524222+'\x20-\x20'+_0x4b2a17[_0xc84ac5(0x231)](uuidv4)),_0x264bd1[_0xc84ac5(0x196)]=_0x524222,_0x524222;}[a45_0x330fd7(0x1d4)]=_0x1c5666=>{const _0x32b1ac=a45_0x330fd7,_0x86b173={};_0x86b173[_0x32b1ac(0x195)]=_0x32b1ac(0x1db),_0x86b173[_0x32b1ac(0x24b)]='BEFORE_EACH',_0x86b173[_0x32b1ac(0x14b)]=_0x32b1ac(0x1f5),_0x86b173[_0x32b1ac(0x145)]=_0x32b1ac(0x1d3),_0x86b173[_0x32b1ac(0x19b)]=_0x32b1ac(0x1d1),_0x86b173['BcRhP']='AFTER_EACH',_0x86b173[_0x32b1ac(0x1eb)]=_0x32b1ac(0x141),_0x86b173['zkeIY']=_0x32b1ac(0x184),_0x86b173[_0x32b1ac(0x171)]=_0x32b1ac(0x234);const _0x98d6c4=_0x86b173;if(_0x1c5666['startsWith'](_0x98d6c4[_0x32b1ac(0x195)]))return _0x98d6c4[_0x32b1ac(0x24b)];else{if(_0x1c5666[_0x32b1ac(0x18f)](_0x98d6c4[_0x32b1ac(0x14b)]))return _0x98d6c4[_0x32b1ac(0x145)];else{if(_0x1c5666['startsWith'](_0x98d6c4['dkSpI']))return _0x98d6c4[_0x32b1ac(0x249)];else{if(_0x1c5666[_0x32b1ac(0x18f)](_0x98d6c4[_0x32b1ac(0x1eb)]))return _0x98d6c4['zkeIY'];}}}return _0x98d6c4['BVsGV'];};['getScope']=_0x4a0d1a=>{const _0x21f416=a45_0x330fd7,_0x47ee71={};_0x47ee71[_0x21f416(0x23d)]=function(_0x11d47f,_0x49dc01){return _0x11d47f===_0x49dc01;},_0x47ee71['DRBjC']='object';const _0x2c4d9b=_0x47ee71;let _0x391a7d=_0x4a0d1a[_0x21f416(0x186)];return _0x2c4d9b['cQvfL'](typeof _0x4a0d1a[_0x21f416(0x186)],_0x2c4d9b[_0x21f416(0x209)])&&(_0x391a7d=_0x391a7d[_0x21f416(0x16f)]),_0x391a7d+_0x21f416(0x1b3)+_0x4a0d1a[_0x21f416(0x16f)];};['printsToStdio'](){return![];}}module['exports']=o11yClassErrorHandler(MyReporter,[a45_0x330fd7(0x24c),a45_0x330fd7(0x1b4),a45_0x330fd7(0x179),'onTestEnd','onStepBegin',a45_0x330fd7(0x21a),a45_0x330fd7(0x1e4)],a45_0x330fd7(0x233));function a45_0x3e17(){const _0x1eb68f=['errors','uuid','addTestUIDAndReportLog','TestRunFinished','screenshot','uklut','sendSessionDetails','\x20for\x20','event_type','9856190fYDfaR','sendTestRunEvent','mtime','startTime','UjjGp','1295469mwYpws','map','pTgyE','aXEhi','JYHcS','failed','PLAYWRIGHT','YIXVI','filter','beforeAll\x20hook','uUeVd','category','Hook\x20Finished\x20with\x20unique\x20id\x20','vwIFs','QVVEv','cwd','2926404tfaYTA','duration','wGcVR','\x20is\x20triggered','kbofq','test_run_uuid','DXUIQ','getCustomRerunParam','needToReportStep','getTestFramework','mZhBc','../../../helpers/test-observability/sessionHandler','SaJuC','DRBjC','file','startedAt','readFileSync','smuDT','cohDg','env','bUnvf','FhPte','backtrace','YPtgr','HookRunFinished','TEST_ATTACHMENT','steps','RDNry','yFYil','bgPiP','onStepEnd','nPjKd','utf8','javascript','UrWGE','all','YdjyA','GrZWa','./pwUtils','name','../../v2/browserstackCLI','logLevel','AKhhZ','onEnd','../../../helpers/test-observability/requestQueueHandler','Error\x20in\x20sending\x20test\x20run\x20event:\x20%s','DpwWb','sendHookRunEvent','LcsfN','xDBFE','kFpIF','test_run','_tests','GEAdc','relative','MyReporter','unknown','ZVWjk','fylVM','reportLogs','titlePath','mPFat','LgQqS','location','step','cQvfL','expectedStatus','Error\x20in\x20sending\x20trace\x20zip:\x20%s','jBJGK','hook_run_uuid','../../../helpers/test-observability/constants','HMTln','passed','QLMrP','logs','\x20at\x20','BuRNk','BcRhP','GgVzJ','MUvlg','onBegin','cJesS','XgPjn','DUGko','hooks','_trackedEvents','426066gDwcMV','toISOString','vpzgY','vHfDZ','./test-details','Spuwj','afterAll\x20hook','XJwie','attachments','1837131xzkBou','tjsHE','gQCcV','gcDNK','err','pending','statSync','xtQzf','basename','HlvmA','NwMyd','PGAro','zWByt','632lQJGaT','size','performance-report-reporter.json','finishedAt','vAdbM','cbYrU','options','splice','base64','CNEKL','Test\x20Finished\x20with\x20unique\x20id\x20','tUHeE','path','cwPYj','BROWSERSTACK_TEST_RUN_ID','failure_reason','jgyIC','wERwW','flNRY','split','CBTSessionCreated','XYwyy','PxEGi','xFUIj','sdoaB','getStepIdentifier','onTestEnd','error','_tags','_gitConfigured','title','BROWSERSTACK_O11Y_PERF_MEASUREMENT','BVsGV','toString','../../../helpers/test-observability/utils','ujcfk','zAXbO','Expected\x20to\x20fail,\x20but\x20passed.','Test\x20Started\x20with\x20unique\x20id\x20','dtnkF','onTestBegin','getScope','zboNv','mkdirSync','odAkX','OvvYu','.browserstack','message','test','getTestUUID','ZNHXI','AFTER_ALL','POST','parent','join','pbjpM','2723444HvWZiF','timedOut','uQiVL','uXZpK','Sending\x20session\x20details\x20for\x20','meta','startsWith','owMTY','44093KYOhYx','push','ZkweK','5fcWAgC','mBkzy','_bs_hookIdentifier','Trace\x20file\x20found\x20for\x20test:\x20','FxEPH','../../../helpers/helper','INIT_TEST','dkSpI','forEach','3FJiLvU','depth','EVaYU','dSxSO','format','getInstance','swKqh','trackEvent','existsSync','nykSa','After\x20Hooks','ozniF','wKjMC','configureGit','retry','.txt','LogCreated','expanded','trace_','BROWSERSTACK_LOG_LEVEL','JKEiI','PRE','\x20-\x20','endSession','../../../helpers/test-observability/error-handler','startMonitoring','lqjSY','shutdown','TEST','PWDTO','IeaWJ','setStepIdentifier','TFEpe','failure_type','../../v2/TestInfo','BbCdS','getStepsAndLogs','status','YSbcG','Starting\x20sending\x20trace\x20zip\x20for\x20test:\x20','isRunning','JkgdH','TestRunStarted','hook','setup','jODqN','Hook\x20Started\x20with\x20unique\x20id\x20','_testHooksMap','lVtzW','raCKR','TEST_SCREENSHOT','TEST_STEP','afterEach\x20hook','length','BEFORE_ALL','getHookType','uploadEventData','../../v2/state/hookState','_gitConfigPath','reverse','result','getHierarchy','beforeEach\x20hook','hook_run','getTime'];a45_0x3e17=function(){return _0x1eb68f;};return a45_0x3e17();}
|
|
1
|
+
const a45_0x3db7f9=a45_0x2188;function a45_0x2188(_0x36343c,_0x4412c9){const _0x501c46=a45_0x501c();return a45_0x2188=function(_0x21888c,_0x1a4993){_0x21888c=_0x21888c-0xed;let _0x2e5441=_0x501c46[_0x21888c];return _0x2e5441;},a45_0x2188(_0x36343c,_0x4412c9);}(function(_0x559c14,_0x4bf4df){const _0x432eff=a45_0x2188,_0x172734=_0x559c14();while(!![]){try{const _0x37207e=-parseInt(_0x432eff(0x162))/0x1*(parseInt(_0x432eff(0x1a6))/0x2)+-parseInt(_0x432eff(0x1de))/0x3+parseInt(_0x432eff(0x1dd))/0x4*(parseInt(_0x432eff(0x199))/0x5)+-parseInt(_0x432eff(0xf7))/0x6+-parseInt(_0x432eff(0xee))/0x7+-parseInt(_0x432eff(0x103))/0x8+parseInt(_0x432eff(0x11b))/0x9*(parseInt(_0x432eff(0x12f))/0xa);if(_0x37207e===_0x4bf4df)break;else _0x172734['push'](_0x172734['shift']());}catch(_0x3b61e4){_0x172734['push'](_0x172734['shift']());}}}(a45_0x501c,0xdf9d3));function a45_0x501c(){const _0x149011=['Playwright','Halko','../../v2/TestInfo','oigfN','Error\x20in\x20calculating\x20performance:\x20','DfzEO','oVYef','../../../../src/bin/utils/constants','parent','EBsuc','MXwYN','getStepsAndLogs','poelv','FGEFj','_gitConfigured','ncBNd','YuSrB','test_run_uuid','logLevel','levsg','Before\x20Hooks','xKNuy','getTestFramework','BHRbA','hpolg','COmZs','ABgnD','VDjLq','utQFC','result','options','IzCYJ','obNrP','qTmJd','getTestUUID','../../v2/state/hookState','TestRunStarted','readFileSync','shutdown','BEFORE_EACH','uuid','MUrqK','hooks','needToReportStep','_bs_hookIdentifier','wqbif','err','afterAll\x20hook','env','386638rQHOVL','oAxjG','path','vyueY','expectedStatus','setup','category','iJXCP','jJGgA','_gitConfigPath','test_run','Sending\x20session\x20details\x20for\x20','KovlG','mkdirSync','attachments','vLglF','../../../helpers/helper','util','_tags','iCbPJ','AFTER_EACH','screenshot','DnpFz','bKycy','onStepEnd','qZujz','retry','Hook\x20Started\x20with\x20unique\x20id\x20','depth','onBegin','setStepIdentifier','Starting\x20sending\x20trace\x20zip\x20for\x20test:\x20','nblQt','_trackedEvents','rOQRO','yGruY','mfqtt','onTestEnd','BROWSERSTACK_LOG_LEVEL','onStepBegin','zQUgn','POST','steps','failure','trace_','getCustomRerunParam','KAAVz','PLAYWRIGHT','../../v2/browserstackCLI','split','status','expanded','cwd','eTvqh','DviSb','17275RhHUli','pioAQ','pYSfz','addTestUIDAndReportLog','lCbha','\x20is\x20triggered\x20for\x20test\x20','Test\x20Started\x20with\x20unique\x20id\x20','configureGit','../../../helpers/test-observability/utils','joJfi','BgvyU','base64','existsSync','4MnuQKq','ESbXw','format','performance-report-reporter.json','errors','basename','IhTAU','vbnAv','size','reportLogs','meta','CeOzt','pAAPl','failure_reason','PwkAI','finishedAt','getTime','BROWSERSTACK_TEST_RUN_ID','oYsFJ','uploadEventData','ercmQ','onEnd','onTestBegin','mSmFt','CzXUK','Hook\x20Finished\x20with\x20unique\x20id\x20','test','duration','yIwHy','logs','hook','IxEGz','filter','endSession','umLMu','Trace\x20file\x20found\x20for\x20test:\x20','hMEZi','exports','beforeEach\x20hook','map','getStepIdentifier','object','tKfNi','cxZqf','UuEvx','hook_run_uuid','statSync','qIBLe','zhJFH','bHpWC','SnsbW','SqkDF','name','Xzxee','dSExq','244Rxvzov','5428923RTQhvf','skipped','relative','event_type','Fiueh','txjEd','QoFep','taRmq','TyHCI','\x20for\x20','getHookType','IBzee','sendTestRunEvent','BROWSERSTACK_O11Y_PERF_MEASUREMENT','.txt','After\x20Hooks','printsToStdio','_testHooksMap','Expected\x20to\x20fail,\x20but\x20passed.','afterEach\x20hook','length','file','getScope','beforeAll\x20hook','error','TEST','BjQoR','passed','yvzmL','all','SnHgH','step','join','5651366OdInxG','CBTSessionCreated','sendHookRunEvent','startedAt','0|5|2|1|6|7|3|4','toISOString','QkrkJ','INIT_TEST','isRunning','3009636cxLeXZ','TestRunFinished','title','../../../helpers/test-observability/requestQueueHandler','KvjKx','hook_run','MyReporter','iRsJp','OdwgV','\x20is\x20triggered','YhKgS','backtrace','5620648zsFxQz','mcdqy','retry_of','location','push','yYenH','rwkwG','failed','pending','trackEvent','TEST_ATTACHMENT','Error\x20in\x20sending\x20test\x20run\x20event:\x20%s','../../../helpers/testhub/utils','ZiVLI','getHierarchy','PRE','apkxx','stack','startMonitoring','toString','BGFDj','failure_type','startsWith','XikrI','90DWhCLr','timedOut','TEST_SCREENSHOT','CTXXL','aBExG','aGsWZ','message','./test-details','utf8','../../../helpers/performance/performance-tester','./pwUtils','homedir','splice','NwhgY','gZHPU','_tests','BEFORE_ALL','getInstance','indexOf','ysVoM','5299610hAjyVE','sendSessionDetails'];a45_0x501c=function(){return _0x149011;};return a45_0x501c();}const RequestQueueHandler=require(a45_0x3db7f9(0xfa)),{calculatePerformance,getTestTags,getFailureData,sendTraceZip,findNestedKey,validateFilePath,getTestIdentifier,getTestRunIdentifier}=require(a45_0x3db7f9(0x125)),{v4:uuidv4}=require(a45_0x3db7f9(0x159)),path=require(a45_0x3db7f9(0x164)),{debug,removeAnsiColors,printBuildLink,getFailureType,failureData,trace}=require(a45_0x3db7f9(0x1a1)),{getGitMetaData,setLogLevel}=require(a45_0x3db7f9(0x172)),TestDetails=require(a45_0x3db7f9(0x122)),fs=require('fs'),util=require(a45_0x3db7f9(0x173)),{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler'),PerformanceTester=require(a45_0x3db7f9(0x124)),{FRAMEWORKS}=require('../../../helpers/test-observability/constants'),SessionHandler=require('../../../helpers/test-observability/sessionHandler'),{appendTesthubParams}=require(a45_0x3db7f9(0x10f)),helper=require(a45_0x3db7f9(0x172)),BrowserstackCLI=require(a45_0x3db7f9(0x192)),TestFrameworkState=require('../../v2/state/testFrameworkState'),HookState=require(a45_0x3db7f9(0x154)),TestInfo=require(a45_0x3db7f9(0x133)),{PLAYWRIGHT_TRACE_LOGS}=require(a45_0x3db7f9(0x138));class MyReporter{constructor(_0x430478){const _0x585a7f=a45_0x3db7f9,_0xf157b5={'RVshf':_0x585a7f(0xf2),'DrUuq':function(_0x55cd90,_0x43b1ca,_0x1a637b,_0x1f8d5e){return _0x55cd90(_0x43b1ca,_0x1a637b,_0x1f8d5e);},'DviSb':_0x585a7f(0x1a9)},_0x2c01fe=_0xf157b5['RVshf'][_0x585a7f(0x193)]('|');let _0x4dcb01=0x0;while(!![]){switch(_0x2c01fe[_0x4dcb01++]){case'0':const _0x953db1={};_0x953db1[_0x585a7f(0x143)]=process['env'][_0x585a7f(0x188)],_0xf157b5['DrUuq'](setLogLevel,_0x953db1,new Map(),new Map());continue;case'1':this[_0x585a7f(0x1ef)]={};continue;case'2':this[_0x585a7f(0x12a)]={};continue;case'3':this[_0x585a7f(0x16b)]=null;continue;case'4':this['_trackedEvents']=[];continue;case'5':process[_0x585a7f(0x161)][_0x585a7f(0x1eb)]&&(PerformanceTester[_0x585a7f(0x115)](_0xf157b5[_0x585a7f(0x198)]),process[_0x585a7f(0x161)]['START_TIME']=new Date()[_0x585a7f(0xf3)]());continue;case'6':this[_0x585a7f(0x14f)]=_0x430478;continue;case'7':this[_0x585a7f(0x13f)]=![];continue;}break;}}async[a45_0x3db7f9(0x17f)](){const _0x4b0475=a45_0x3db7f9,_0x560f72={};_0x560f72['uRoWq']=_0x4b0475(0x131);const _0x466bf2=_0x560f72;TestDetails[_0x4b0475(0x167)](),await this[_0x4b0475(0x1a0)](),TestInfo[_0x4b0475(0x167)](_0x466bf2['uRoWq']);if(BrowserstackCLI[_0x4b0475(0x12c)]()['isRunning']()){await BrowserstackCLI[_0x4b0475(0x12c)]()[_0x4b0475(0x147)]()['trackEvent'](TestFrameworkState[_0x4b0475(0xf5)],HookState['PRE'],{});return;}}async[a45_0x3db7f9(0x1bc)](_0x48e8ec,_0x48f467){const _0xaefdca=a45_0x3db7f9,_0x35d95e={'oubNn':function(_0x28c9b9,_0x1cecac){return _0x28c9b9(_0x1cecac);},'BHRbA':function(_0x925107,_0x5c1f52,_0x11b204){return _0x925107(_0x5c1f52,_0x11b204);},'zQUgn':function(_0x99c6f6,_0x226800){return _0x99c6f6(_0x226800);},'yYenH':_0xaefdca(0x155)};if(BrowserstackCLI[_0xaefdca(0x12c)]()[_0xaefdca(0xf6)]()){const _0x198851={};_0x198851['test']=_0x48e8ec,_0x198851[_0xaefdca(0x14e)]=_0x48f467,await BrowserstackCLI[_0xaefdca(0x12c)]()['getTestFramework']()['trackEvent'](TestFrameworkState[_0xaefdca(0x1f7)],HookState['PRE'],_0x198851);return;}const _0x514c7d=_0x35d95e['oubNn'](getTestIdentifier,_0x48e8ec),_0x564875=TestDetails[_0xaefdca(0x153)](_0x35d95e[_0xaefdca(0x148)](getTestRunIdentifier,_0x48e8ec,_0x48f467[_0xaefdca(0x17c)]));process[_0xaefdca(0x161)][_0xaefdca(0x1b7)]=_0x564875;const _0x31686f={};_0x31686f['uuid']=_0x564875,_0x31686f[_0xaefdca(0xf1)]=_0x48f467['startTime'],this[_0xaefdca(0x12a)][_0x514c7d]=_0x31686f,_0x35d95e[_0xaefdca(0x18a)](trace,_0xaefdca(0x19f)+_0x514c7d),await this[_0xaefdca(0x1ea)](_0x48e8ec,_0x35d95e[_0xaefdca(0x108)],_0x48f467);}async['onStepBegin'](_0x2d7a97,_0x3383f8,_0x99d992){const _0x18ed11=a45_0x3db7f9,_0x2695e6={'UGrAG':function(_0xc7ae9,_0x37396c,_0x5bc4ab){return _0xc7ae9(_0x37396c,_0x5bc4ab);},'MXwYN':function(_0x4fe0c3,_0xef3fc6){return _0x4fe0c3(_0xef3fc6);},'KdGku':'HookRunStarted'};if(!this['needToReportStep'](_0x99d992,_0x2d7a97))return;if(BrowserstackCLI[_0x18ed11(0x12c)]()[_0x18ed11(0xf6)]()){const _0x4fdfe9=this[_0x18ed11(0x1e8)](_0x99d992['title']),_0x1879ff=TestFrameworkState[_0x4fdfe9],_0x3dce75={};_0x3dce75[_0x18ed11(0x1c0)]=_0x2d7a97,_0x3dce75[_0x18ed11(0x14e)]=_0x3383f8,_0x3dce75[_0x18ed11(0x1fd)]=_0x99d992,await BrowserstackCLI[_0x18ed11(0x12c)]()['getTestFramework']()[_0x18ed11(0x10c)](_0x1879ff,HookState[_0x18ed11(0x112)],_0x3dce75);return;}const _0x5efe27=this[_0x18ed11(0x180)](_0x2d7a97,_0x99d992);this[_0x18ed11(0x12a)][_0x5efe27]={'uuid':TestDetails['getTestUUID'](_0x5efe27),'startedAt':_0x99d992['startTime'][_0x18ed11(0xf3)]()};const _0x3a7cb2=_0x2695e6['UGrAG'](getTestRunIdentifier,_0x2d7a97,_0x3383f8[_0x18ed11(0x17c)]);!this[_0x18ed11(0x1ef)][_0x3a7cb2]&&(this[_0x18ed11(0x1ef)][_0x3a7cb2]=[]),this[_0x18ed11(0x1ef)][_0x3a7cb2][_0x18ed11(0x107)](this[_0x18ed11(0x12a)][_0x5efe27]['uuid']),_0x2695e6[_0x18ed11(0x13b)](trace,_0x18ed11(0x17d)+_0x5efe27+_0x18ed11(0x19e)+_0x3a7cb2),await this['sendHookRunEvent'](_0x2d7a97,_0x99d992,_0x2695e6['KdGku'],_0x3383f8);}async[a45_0x3db7f9(0x17a)](_0x16736f,_0x4f50af,_0x3849e9){const _0x25ff63=a45_0x3db7f9,_0x31264f={'wRnLj':function(_0x13e25a,_0x25d231){return _0x13e25a+_0x25d231;},'vbnAv':function(_0x1f2920,_0x185cec){return _0x1f2920(_0x185cec);},'CeOzt':'HookRunFinished'};if(!this[_0x25ff63(0x15c)](_0x3849e9,_0x16736f))return;if(BrowserstackCLI[_0x25ff63(0x12c)]()[_0x25ff63(0xf6)]()){const _0x25cf9e=this['getHookType'](_0x3849e9[_0x25ff63(0xf9)]),_0x13bafe=TestFrameworkState[_0x25cf9e],_0x574f96={};_0x574f96[_0x25ff63(0x1c0)]=_0x16736f,_0x574f96[_0x25ff63(0x14e)]=_0x4f50af,_0x574f96[_0x25ff63(0x1fd)]=_0x3849e9,await BrowserstackCLI[_0x25ff63(0x12c)]()[_0x25ff63(0x147)]()[_0x25ff63(0x10c)](_0x13bafe,HookState[_0x25ff63(0x18b)],_0x574f96);return;}const _0x54e94c=this[_0x25ff63(0x1ce)](_0x16736f,_0x3849e9);this[_0x25ff63(0x12a)][_0x54e94c]={...this['_tests'][_0x54e94c]||{},'finishedAt':new Date(_0x31264f['wRnLj'](_0x3849e9['startTime'][_0x25ff63(0x1b6)](),_0x3849e9[_0x25ff63(0x1c1)]))},_0x31264f[_0x25ff63(0x1ad)](trace,_0x25ff63(0x1bf)+_0x54e94c+_0x25ff63(0x100)),await this[_0x25ff63(0xf0)](_0x16736f,_0x3849e9,_0x31264f[_0x25ff63(0x1b1)],_0x4f50af);}async[a45_0x3db7f9(0x187)](_0x25dc30,_0x5902f2){const _0x8e22b=a45_0x3db7f9,_0x4d6f9c={'CTXXL':function(_0x3ea480,_0x40d8f5){return _0x3ea480===_0x40d8f5;},'oYsFJ':_0x8e22b(0x177),'SnsbW':_0x8e22b(0x11d),'XikrI':_0x8e22b(0x1a4),'CzXUK':function(_0x245503,_0x1ad49d){return _0x245503(_0x1ad49d);},'COmZs':function(_0x1bbc9c,_0x3ccc6f,_0x2bbb14){return _0x1bbc9c(_0x3ccc6f,_0x2bbb14);},'TyHCI':function(_0x456cbf,_0x449201){return _0x456cbf(_0x449201);},'KAAVz':_0x8e22b(0xf8),'utQFC':_0x8e22b(0x10e),'rwkwG':function(_0x2a7d44,_0x42302d,_0x1b8d1b){return _0x2a7d44(_0x42302d,_0x1b8d1b);},'YuSrB':'Error\x20in\x20sending\x20trace\x20zip:\x20%s','tKfNi':function(_0x3532d5,_0x8a168c){return _0x3532d5>_0x8a168c;}};if(BrowserstackCLI[_0x8e22b(0x12c)]()[_0x8e22b(0xf6)]()){const _0x22f1f1={};_0x22f1f1[_0x8e22b(0x1c0)]=_0x25dc30,_0x22f1f1[_0x8e22b(0x14e)]=_0x5902f2,this[_0x8e22b(0x183)][_0x8e22b(0x107)](BrowserstackCLI['getInstance']()[_0x8e22b(0x147)]()[_0x8e22b(0x10c)](TestFrameworkState[_0x8e22b(0x1f7)],HookState[_0x8e22b(0x18b)],_0x22f1f1));return;}const _0x8bd845=_0x4d6f9c[_0x8e22b(0x1be)](getTestIdentifier,_0x25dc30),_0x37f082=TestDetails['getTestUUID'](_0x4d6f9c[_0x8e22b(0x14a)](getTestRunIdentifier,_0x25dc30,_0x5902f2[_0x8e22b(0x17c)]));this[_0x8e22b(0x12a)][_0x8bd845]={...this[_0x8e22b(0x12a)][_0x8bd845]||{},'finishedAt':new Date()[_0x8e22b(0xf3)]()},_0x4d6f9c[_0x8e22b(0x1e6)](debug,'Test\x20Finished\x20with\x20unique\x20id\x20'+_0x8bd845);try{await this[_0x8e22b(0x1ea)](_0x25dc30,_0x4d6f9c[_0x8e22b(0x190)],_0x5902f2);}catch(_0x3a0aa9){_0x4d6f9c['TyHCI'](debug,util[_0x8e22b(0x1a8)](_0x4d6f9c[_0x8e22b(0x14d)],_0x3a0aa9[_0x8e22b(0x116)]()));}try{_0x4d6f9c[_0x8e22b(0x1e6)](debug,_0x8e22b(0x181)+_0x37f082),await _0x4d6f9c[_0x8e22b(0x109)](sendTraceZip,_0x5902f2,_0x37f082);}catch(_0x49ba6f){_0x4d6f9c['TyHCI'](debug,util[_0x8e22b(0x1a8)](_0x4d6f9c[_0x8e22b(0x141)],_0x49ba6f[_0x8e22b(0x116)]()));}const _0x52a929=[];_0x5902f2[_0x8e22b(0x170)]&&_0x5902f2['attachments'][_0x8e22b(0x1cd)](_0x518468=>{const _0x2628fb=_0x8e22b;if(_0x4d6f9c[_0x2628fb(0x11e)](_0x518468[_0x2628fb(0x1da)],_0x4d6f9c[_0x2628fb(0x1b8)])){if(!_0x518468['path']||!fs[_0x2628fb(0x1a5)](_0x518468[_0x2628fb(0x164)]))return;_0x52a929[_0x2628fb(0x107)]({'test_run_uuid':_0x37f082,'timestamp':fs[_0x2628fb(0x1d4)](_0x518468['path'])['mtime'],'kind':_0x4d6f9c[_0x2628fb(0x1d8)],'message':fs[_0x2628fb(0x156)](_0x518468[_0x2628fb(0x164)],{'encoding':_0x4d6f9c[_0x2628fb(0x11a)]})});}}),_0x4d6f9c[_0x8e22b(0x1d0)](_0x52a929[_0x8e22b(0x1f2)],0x0)&&await MyReporter['reportLogs'](_0x52a929);}async[a45_0x3db7f9(0x1c7)](){const _0x122b6a=a45_0x3db7f9;await RequestQueueHandler['getInstance']()[_0x122b6a(0x157)]();}async[a45_0x3db7f9(0x1bb)](_0x523f05){const _0x53d54e=a45_0x3db7f9,_0x22adeb={'qZujz':function(_0x53a7d2){return _0x53a7d2();},'DnpFz':function(_0x2d1135,_0x3a23fa){return _0x2d1135(_0x3a23fa);}};await Promise[_0x53d54e(0x1fb)](this[_0x53d54e(0x183)]),await this['endSession']();try{process['env']['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&await _0x22adeb[_0x53d54e(0x17b)](calculatePerformance);}catch(_0x11f165){_0x22adeb[_0x53d54e(0x178)](debug,_0x53d54e(0x135)+_0x11f165[_0x53d54e(0x116)]());}}static async[a45_0x3db7f9(0x19c)](_0xa1be41,_0x574592){const _0x136e04=a45_0x3db7f9;_0x574592[_0x136e04(0x142)]=TestDetails[_0x136e04(0x153)](_0xa1be41),await this[_0x136e04(0x1af)]([_0x574592]);}static async[a45_0x3db7f9(0x1af)](_0x141f92){const _0x5c2345=a45_0x3db7f9,_0xd8866a={};_0xd8866a['umLMu']='LogCreated';const _0x2d8879=_0xd8866a;if(BrowserstackCLI[_0x5c2345(0x12c)]()['isRunning']())return;const _0x3f4f12={};_0x3f4f12[_0x5c2345(0x1e1)]=_0x2d8879[_0x5c2345(0x1c8)],_0x3f4f12[_0x5c2345(0x1c3)]=_0x141f92,await SessionHandler[_0x5c2345(0x1b9)](_0x3f4f12);}async[a45_0x3db7f9(0xf0)](_0x5357a2,_0x648e4b,_0x24c6b7,_0x5970ae){const _0x33d742=a45_0x3db7f9,_0x245fd5={'ysVoM':_0x33d742(0x1c4),'SnHgH':'javascript','foBqP':_0x33d742(0x10b),'YhKgS':function(_0x3fbee8,_0x5c3da9){return _0x3fbee8>=_0x5c3da9;},'eTvqh':function(_0x120a75,_0x1a3465){return _0x120a75===_0x1a3465;},'iJXCP':'HookRunFinished','gZHPU':function(_0x5303ca,_0x37253a){return _0x5303ca>_0x37253a;},'pYSfz':_0x33d742(0x10a),'miZcl':function(_0x19735b,_0x24b077){return _0x19735b(_0x24b077);},'ESbXw':function(_0x47d7bc,_0x3e1a45){return _0x47d7bc(_0x3e1a45);},'VDjLq':function(_0x1fca67,_0x282c95,_0x430ce8){return _0x1fca67(_0x282c95,_0x430ce8);},'kNQvb':_0x33d742(0x15f),'bHpWC':_0x33d742(0x1f9)},_0x200d89=this['getStepIdentifier'](_0x5357a2,_0x648e4b),_0x558262=this[_0x33d742(0x12a)][_0x200d89],_0x3c9efb={'uuid':_0x558262[_0x33d742(0x159)],'type':_0x245fd5[_0x33d742(0x12e)],'hook_type':this[_0x33d742(0x1e8)](_0x648e4b[_0x33d742(0xf9)]),'name':_0x648e4b['title'],'scope':this[_0x33d742(0x1f4)](_0x648e4b),'scopes':this[_0x33d742(0x111)](_0x5357a2),'body':{'lang':_0x245fd5[_0x33d742(0x1fc)],'code':null},'identifier':_0x200d89,'file_name':path[_0x33d742(0x1e0)](process[_0x33d742(0x196)](),_0x5357a2[_0x33d742(0x106)][_0x33d742(0x1f3)]),'location':path[_0x33d742(0x1e0)](process[_0x33d742(0x196)](),_0x5357a2[_0x33d742(0x106)]['file']),'result':_0x245fd5['foBqP'],'duration_in_ms':_0x245fd5[_0x33d742(0x101)](_0x648e4b[_0x33d742(0x1c1)],0x0)?_0x648e4b[_0x33d742(0x1c1)]:undefined,'vc_filepath':this[_0x33d742(0x16b)]&&_0x5357a2[_0x33d742(0x106)][_0x33d742(0x1f3)]?path[_0x33d742(0x1e0)](this[_0x33d742(0x16b)],_0x5357a2[_0x33d742(0x106)]['file']):undefined,'started_at':_0x558262[_0x33d742(0xf1)],'finished_at':_0x558262[_0x33d742(0x1b5)],'framework':FRAMEWORKS['PLAYWRIGHT']};if(_0x245fd5[_0x33d742(0x197)](_0x24c6b7,_0x245fd5[_0x33d742(0x169)])){const {steps:_0x44a3a9,logs:_0x5dce70}=this[_0x33d742(0x13c)](_0x648e4b[_0x33d742(0x18c)],_0x558262[_0x33d742(0x159)],_0x245fd5[_0x33d742(0x12e)]);_0x5dce70&&_0x245fd5[_0x33d742(0x129)](_0x5dce70[_0x33d742(0x1f2)],0x0)&&await MyReporter[_0x33d742(0x1af)](_0x5dce70);const _0x3f1ef1={};_0x3f1ef1[_0x33d742(0x18c)]=_0x44a3a9,_0x3c9efb[_0x33d742(0x1b0)]=_0x3f1ef1;if(_0x648e4b[_0x33d742(0x1f6)]){_0x3c9efb[_0x33d742(0x14e)]=_0x245fd5[_0x33d742(0x19b)],_0x3c9efb[_0x33d742(0x1b3)]=_0x245fd5['miZcl'](removeAnsiColors,_0x648e4b['error'][_0x33d742(0x121)]),_0x3c9efb[_0x33d742(0x118)]=_0x245fd5[_0x33d742(0x1a7)](getFailureType,_0x648e4b[_0x33d742(0x1f6)][_0x33d742(0x121)]);const _0x37e112=_0x245fd5[_0x33d742(0x14c)](failureData,_0x648e4b[_0x33d742(0x1f6)],_0x245fd5['kNQvb']);if(_0x37e112&&_0x245fd5[_0x33d742(0x197)](_0x37e112[_0x33d742(0x1f2)],0x0)){const _0x4efbbc={};_0x4efbbc[_0x33d742(0x102)]=[_0x3c9efb[_0x33d742(0x1b3)]],_0x4efbbc[_0x33d742(0x195)]=[],_0x37e112[_0x33d742(0x107)](_0x4efbbc);}_0x3c9efb[_0x33d742(0x18d)]=_0x37e112;}else _0x3c9efb[_0x33d742(0x14e)]=_0x245fd5[_0x33d742(0x1d7)];}const _0x19df7f={};_0x19df7f[_0x33d742(0x1e1)]=_0x24c6b7,_0x19df7f[_0x33d742(0xfc)]=_0x3c9efb;const _0x4f0fcf=_0x19df7f;await SessionHandler['uploadEventData'](_0x4f0fcf);}[a45_0x3db7f9(0x13c)](_0x4de181,_0x13bedd,_0x2e2c87){const _0x252654=a45_0x3db7f9,_0x2bf60b={'BgvyU':function(_0x5f2d5f,_0x4f3b89){return _0x5f2d5f===_0x4f3b89;},'aGsWZ':'hook','mBRMT':function(_0x3794e1,_0x41aa23){return _0x3794e1===_0x41aa23;},'BjQoR':_0x252654(0x1ed),'rOQRO':function(_0x1f52ea,_0x5ed281){return _0x1f52ea===_0x5ed281;},'tbEqH':_0x252654(0x145),'ONmrm':function(_0x171ef6,_0x4865df){return _0x171ef6===_0x4865df;},'IzCYJ':function(_0x390a92,_0x54dffd){return _0x390a92===_0x54dffd;},'KoqtG':_0x252654(0x1c0),'apkxx':_0x252654(0x142),'MUrqK':_0x252654(0x1d3),'rEqYz':'TEST_STEP','pAAPl':'failed','PwkAI':_0x252654(0x1f9),'mcdqy':function(_0x1de90c,_0x212ff7){return _0x1de90c(_0x212ff7);},'vLglF':function(_0x10d075,_0x164387){return _0x10d075(_0x164387);},'txjEd':function(_0x26c6f4){return _0x26c6f4();},'wqbif':function(_0x5cbc44,_0x24b493){return _0x5cbc44(_0x24b493);},'BGFDj':function(_0x124e95,_0x325170,_0x296a2d){return _0x124e95(_0x325170,_0x296a2d);},'hpolg':function(_0x3710a7,_0x43f37a,_0x407b13){return _0x3710a7(_0x43f37a,_0x407b13);}},_0x2dffb0=[],_0x269188=[],_0x122f2=_0x4de181[_0x252654(0x1c6)](_0x4db0dc=>{const _0x5bf456=_0x252654;if(_0x2bf60b[_0x5bf456(0x1a3)](_0x4db0dc['category'],_0x2bf60b[_0x5bf456(0x120)])&&(_0x2bf60b['mBRMT'](_0x4db0dc[_0x5bf456(0xf9)],_0x2bf60b[_0x5bf456(0x1f8)])||_0x2bf60b[_0x5bf456(0x184)](_0x4db0dc[_0x5bf456(0xf9)],_0x2bf60b['tbEqH'])))return![];return!![];}),_0x5a445c=(_0x5dff5b,_0x19944f=![])=>{const _0x3e2a10=_0x252654;if(_0x2bf60b['ONmrm'](_0x5dff5b['steps']['length'],0x0)){const _0x5918ce=_0x2bf60b[_0x3e2a10(0x150)](_0x2e2c87,_0x2bf60b['KoqtG'])?_0x2bf60b[_0x3e2a10(0x113)]:_0x2bf60b[_0x3e2a10(0x15a)];_0x269188[_0x3e2a10(0x107)]({'kind':_0x2bf60b['rEqYz'],[_0x5918ce]:_0x13bedd,'message':_0x5dff5b[_0x3e2a10(0xf9)],'timestamp':_0x5dff5b['startTime'][_0x3e2a10(0xf3)](),'level':_0x5dff5b[_0x3e2a10(0x1f6)]?_0x2bf60b[_0x3e2a10(0x1b2)]:_0x2bf60b['PwkAI'],'duration':_0x5dff5b[_0x3e2a10(0x1c1)],'failure':_0x5dff5b[_0x3e2a10(0x1f6)]&&_0x5dff5b['error'][_0x3e2a10(0x121)]&&_0x2bf60b[_0x3e2a10(0x104)](removeAnsiColors,_0x5dff5b['error']['message']),'failure_type':_0x2bf60b[_0x3e2a10(0x171)](getFailureType,_0x5dff5b[_0x3e2a10(0x1f6)]&&_0x5dff5b[_0x3e2a10(0x1f6)]['message'])});}else{!_0x19944f&&_0x2dffb0['push']({'id':_0x2bf60b[_0x3e2a10(0x1e3)](uuidv4),'text':_0x5dff5b[_0x3e2a10(0xf9)],'keyword':undefined,'started_at':_0x5dff5b['startTime'][_0x3e2a10(0xf3)](),'duration':_0x5dff5b['duration'],'result':_0x5dff5b[_0x3e2a10(0x1f6)]?_0x2bf60b[_0x3e2a10(0x1b2)]:_0x2bf60b[_0x3e2a10(0x1b4)],'failure':_0x5dff5b[_0x3e2a10(0x1f6)]&&_0x5dff5b[_0x3e2a10(0x1f6)][_0x3e2a10(0x121)]&&_0x2bf60b[_0x3e2a10(0x15e)](removeAnsiColors,_0x5dff5b[_0x3e2a10(0x1f6)]['message']),'failure_type':_0x2bf60b['vLglF'](getFailureType,_0x5dff5b[_0x3e2a10(0x1f6)]&&_0x5dff5b['error']['message'])});for(const _0x4d6e63 of _0x5dff5b['steps']){_0x2bf60b[_0x3e2a10(0x117)](_0x5a445c,_0x4d6e63,!![]);}}};for(const _0x18edbc of _0x122f2){_0x2bf60b[_0x252654(0x149)](_0x5a445c,_0x18edbc,![]);}const _0x1deffd={};return _0x1deffd[_0x252654(0x18c)]=_0x2dffb0,_0x1deffd['logs']=_0x269188,_0x1deffd;}async[a45_0x3db7f9(0x1ea)](_0x47f635,_0x9185f0,_0x4d9f9){const _0x2708bc=a45_0x3db7f9,_0x4e0471={'yGruY':function(_0x18f89a,_0x453be3){return _0x18f89a(_0x453be3);},'mfqtt':_0x2708bc(0x10d),'obNrP':_0x2708bc(0x1c0),'cmZUg':'javascript','rMNJN':_0x2708bc(0x10b),'IBzee':function(_0xd1d385,_0x4505f5,_0x2a5847,_0x532c7,_0x19acce){return _0xd1d385(_0x4505f5,_0x2a5847,_0x532c7,_0x19acce);},'taRmq':function(_0x43cb8b,_0x302af2){return _0x43cb8b>_0x302af2;},'pioAQ':function(_0x58f2ca,_0x237baa,_0x17640b){return _0x58f2ca(_0x237baa,_0x17640b);},'cxZqf':function(_0x310e42,_0x456806){return _0x310e42-_0x456806;},'UuEvx':function(_0x248784,_0x264d7d){return _0x248784===_0x264d7d;},'OdwgV':_0x2708bc(0xf8),'KvjKx':function(_0x45912b,_0x1e50a5){return _0x45912b===_0x1e50a5;},'dSExq':function(_0x33d397,_0x522d13){return _0x33d397===_0x522d13;},'yvzmL':_0x2708bc(0x1df),'aBExG':_0x2708bc(0x1f9),'nPdxL':function(_0x464002,_0x133c76){return _0x464002===_0x133c76;},'oVYef':_0x2708bc(0x10a),'oAxjG':_0x2708bc(0x11c),'jJGgA':function(_0x48278d,_0x4c33cc){return _0x48278d===_0x4c33cc;},'qIBLe':_0x2708bc(0x1f0),'joJfi':function(_0xe23678,_0x3cb219,_0x15cae2){return _0xe23678(_0x3cb219,_0x15cae2);},'lCbha':function(_0x5b225d,_0x109061,_0x19de93){return _0x5b225d(_0x109061,_0x19de93);},'dJgCE':function(_0x3bc8af,_0xf15c5f){return _0x3bc8af>_0xf15c5f;},'QoFep':_0x2708bc(0x164),'QkrkJ':function(_0x3a95d2,_0x1fec45){return _0x3a95d2(_0x1fec45);},'SqkDF':'.browserstack','gjtyE':_0x2708bc(0x123),'dYxvA':function(_0x35e397,_0x585653){return _0x35e397(_0x585653);},'poelv':function(_0x231674,_0x560b9b){return _0x231674!==_0x560b9b;}},_0x3e9a7a=_0x4e0471[_0x2708bc(0x185)](getTestIdentifier,_0x47f635),_0x4731fd=this[_0x2708bc(0x1f4)](_0x47f635),_0x20df9d=this[_0x2708bc(0x12a)][_0x3e9a7a],_0x2c9e0f=path[_0x2708bc(0x1e0)](process[_0x2708bc(0x196)](),_0x47f635[_0x2708bc(0x106)][_0x2708bc(0x1f3)]);await this[_0x2708bc(0x1a0)]();const _0x164898={'uuid':_0x20df9d['uuid'],'type':_0x4e0471[_0x2708bc(0x151)],'name':_0x47f635['title'],'body':{'lang':_0x4e0471['cmZUg'],'code':_0x47f635['fn'][_0x2708bc(0x116)]()},'scope':_0x4731fd,'scopes':this[_0x2708bc(0x111)](_0x47f635),'identifier':_0x3e9a7a,'file_name':_0x2c9e0f,'location':_0x2c9e0f,'result':_0x4e0471['rMNJN'],'duration_in_ms':_0x4d9f9&&_0x4d9f9[_0x2708bc(0x1c1)]?_0x4d9f9['duration']:null,'vc_filepath':this[_0x2708bc(0x16b)]&&_0x47f635['location'][_0x2708bc(0x1f3)]?path[_0x2708bc(0x1e0)](this[_0x2708bc(0x16b)],_0x47f635['location'][_0x2708bc(0x1f3)]):undefined,'started_at':_0x20df9d[_0x2708bc(0xf1)],'finished_at':_0x20df9d[_0x2708bc(0x1b5)],'framework':FRAMEWORKS[_0x2708bc(0x191)],'customRerunParam':{'rerun_name':this[_0x2708bc(0x18f)](_0x47f635)},'tags':_0x4e0471[_0x2708bc(0x185)](getTestTags,_0x47f635)};_0x4e0471[_0x2708bc(0x1e9)](appendTesthubParams,_0x164898,_0x9185f0,_0x47f635,FRAMEWORKS[_0x2708bc(0x191)]);_0x4d9f9&&_0x4e0471[_0x2708bc(0x1e5)](_0x4d9f9['retry'],0x0)&&(_0x164898[_0x2708bc(0x105)]=TestDetails[_0x2708bc(0x153)](_0x4e0471[_0x2708bc(0x19a)](getTestRunIdentifier,_0x47f635,_0x4e0471[_0x2708bc(0x1d1)](_0x4d9f9['retry'],0x1))));if(_0x4e0471[_0x2708bc(0x1d2)](_0x9185f0,_0x4e0471[_0x2708bc(0xff)])){_0x164898[_0x2708bc(0x14e)]=_0x4d9f9['status'];if(_0x4e0471[_0x2708bc(0xfb)](_0x4d9f9['status'],_0x47f635[_0x2708bc(0x166)]))_0x164898['result']=_0x4e0471[_0x2708bc(0x1dc)](_0x4d9f9[_0x2708bc(0x194)],_0x4e0471[_0x2708bc(0x1fa)])?_0x4e0471['yvzmL']:_0x4e0471[_0x2708bc(0x11f)];else{(_0x4e0471[_0x2708bc(0x1d2)](_0x164898[_0x2708bc(0x14e)],_0x4e0471[_0x2708bc(0x11f)])||_0x4e0471['nPdxL'](_0x164898[_0x2708bc(0x14e)],_0x4e0471['oVYef'])||_0x4e0471['KvjKx'](_0x164898[_0x2708bc(0x14e)],_0x4e0471[_0x2708bc(0x163)]))&&(_0x164898[_0x2708bc(0x14e)]=_0x4e0471[_0x2708bc(0x137)]);if(_0x4e0471[_0x2708bc(0x1d2)](_0x4d9f9[_0x2708bc(0x194)],_0x4e0471[_0x2708bc(0x11f)])&&_0x4e0471[_0x2708bc(0x16a)](_0x47f635[_0x2708bc(0x166)],_0x4e0471[_0x2708bc(0x137)])){const _0x43c56a={};_0x43c56a['message']=_0x4e0471[_0x2708bc(0x1d5)],_0x43c56a[_0x2708bc(0x114)]=_0x4e0471['qIBLe'],_0x4d9f9['error']=_0x43c56a,_0x4d9f9[_0x2708bc(0x1aa)]=[_0x4d9f9[_0x2708bc(0x1f6)]];}}const _0x4e0389=_0x4e0471[_0x2708bc(0x1a2)](getTestRunIdentifier,_0x47f635,_0x4d9f9[_0x2708bc(0x17c)]);_0x164898[_0x2708bc(0x15b)]=this[_0x2708bc(0x1ef)][_0x4e0389];const {steps:_0x217b71,logs:_0x1b4b9c}=this[_0x2708bc(0x13c)](_0x4d9f9[_0x2708bc(0x18c)],_0x20df9d[_0x2708bc(0x159)],_0x4e0471[_0x2708bc(0x151)]);await MyReporter[_0x2708bc(0x1af)](_0x1b4b9c);const _0x16a24c={};_0x16a24c[_0x2708bc(0x18c)]=_0x217b71,_0x164898[_0x2708bc(0x1b0)]=_0x16a24c;if(_0x4d9f9[_0x2708bc(0x1f6)]){_0x164898[_0x2708bc(0x1b3)]=_0x4e0471[_0x2708bc(0x185)](removeAnsiColors,_0x4d9f9[_0x2708bc(0x1f6)][_0x2708bc(0x121)]),_0x164898[_0x2708bc(0x118)]=_0x4e0471[_0x2708bc(0x185)](getFailureType,_0x4d9f9[_0x2708bc(0x1f6)][_0x2708bc(0x121)]);const _0x201079={};_0x201079['test_run_uuid']=_0x20df9d[_0x2708bc(0x159)];const {failureData:_0x1a6331,logs:_0x508d67}=_0x4e0471[_0x2708bc(0x19d)](getFailureData,_0x4d9f9[_0x2708bc(0x1aa)],_0x201079);if(_0x1a6331&&_0x4e0471['jJGgA'](_0x1a6331[_0x2708bc(0x1f2)],0x0)){const _0x55f4f3={};_0x55f4f3[_0x2708bc(0x102)]=[_0x164898[_0x2708bc(0x1b3)]],_0x55f4f3['expanded']=[],_0x1a6331[_0x2708bc(0x107)](_0x55f4f3);}_0x164898[_0x2708bc(0x18d)]=_0x1a6331,_0x508d67&&_0x4e0471['dJgCE'](_0x508d67[_0x2708bc(0x1f2)],0x0)&&await MyReporter['reportLogs'](_0x508d67);}}let _0x1c8546=_0x4e0471[_0x2708bc(0x1a2)](findNestedKey,_0x4d9f9,_0x4e0471[_0x2708bc(0x1e4)]);if(_0x1c8546&&_0x4e0471[_0x2708bc(0xf4)](validateFilePath,_0x1c8546))_0x4e0471['yGruY'](debug,'Trace\x20file\x20found\x20for\x20test:\x20'+_0x20df9d['uuid']+'\x20at\x20'+_0x1c8546);else{const _0x58b1eb=path[_0x2708bc(0xed)](helper[_0x2708bc(0x126)](),_0x4e0471[_0x2708bc(0x1d9)]);!fs[_0x2708bc(0x1a5)](_0x58b1eb)&&fs[_0x2708bc(0x16f)](_0x58b1eb),fs['existsSync'](path[_0x2708bc(0xed)](_0x58b1eb,_0x2708bc(0x18e)+_0x20df9d[_0x2708bc(0x159)]+_0x2708bc(0x1ec)))&&(_0x1c8546=fs[_0x2708bc(0x156)](path[_0x2708bc(0xed)](_0x58b1eb,'trace_'+_0x20df9d['uuid']+'.txt'),_0x4e0471['gjtyE']),_0x4e0471['dYxvA'](debug,_0x2708bc(0x1c9)+_0x20df9d[_0x2708bc(0x159)]+'\x20at\x20'+_0x1c8546));}const _0x50e624={};_0x50e624[_0x2708bc(0x1e1)]=_0x9185f0,_0x50e624[_0x2708bc(0x16c)]=_0x164898;const _0x2cc294=_0x50e624;_0x1c8546&&_0x4e0471[_0x2708bc(0x13d)](_0x1c8546,'')&&_0x4e0471[_0x2708bc(0xfb)](_0x9185f0,_0x4e0471[_0x2708bc(0xff)])&&(!_0x2cc294[_0x2708bc(0x1c3)]&&(_0x2cc294['logs']=[]),_0x1c8546[_0x2708bc(0x193)]('\x0a')['forEach'](_0x32f57a=>{const _0xdabfe0=_0x2708bc;_0x32f57a&&_0x4e0471['yGruY'](validateFilePath,_0x32f57a)&&_0x2cc294[_0xdabfe0(0x1c3)]['push']({'kind':_0x4e0471[_0xdabfe0(0x186)],'timestamp':new Date()[_0xdabfe0(0xf3)](),'test_run_uuid':_0x20df9d[_0xdabfe0(0x159)],'file_name':path[_0xdabfe0(0x1ab)](_0x32f57a),'file_size':fs['statSync'](_0x32f57a)[_0xdabfe0(0x1ae)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});})),await SessionHandler['uploadEventData'](_0x2cc294);}[a45_0x3db7f9(0x18f)](_0xa3b22b){const _0x48e0ad=a45_0x3db7f9,_0x87acf9={};_0x87acf9[_0x48e0ad(0x13e)]=function(_0x443aab,_0x3fcf70){return _0x443aab===_0x3fcf70;},_0x87acf9[_0x48e0ad(0x140)]=function(_0x1caebf,_0x299349){return _0x1caebf>_0x299349;},_0x87acf9[_0x48e0ad(0x1db)]=function(_0x4cc1c9,_0x527d4a){return _0x4cc1c9+_0x527d4a;},_0x87acf9[_0x48e0ad(0x1c2)]=function(_0x5426a5,_0x4cff81){return _0x5426a5===_0x4cff81;},_0x87acf9[_0x48e0ad(0x175)]=function(_0x478271,_0x29eecb){return _0x478271+_0x29eecb;};const _0x467072=_0x87acf9,_0x39a01c=_0xa3b22b['titlePath']()[_0x48e0ad(0x1cd)](_0xa8a843=>{const _0x3b1f2b=_0x48e0ad;if(_0xa3b22b[_0x3b1f2b(0x139)]&&_0x467072[_0x3b1f2b(0x13e)](_0xa8a843,_0xa3b22b[_0x3b1f2b(0x139)][_0x3b1f2b(0xf9)])&&_0xa3b22b[_0x3b1f2b(0x139)][_0x3b1f2b(0x174)]&&_0x467072['ncBNd'](_0xa3b22b['parent']['_tags'][_0x3b1f2b(0x1f2)],0x0))return _0x467072[_0x3b1f2b(0x1db)](_0x467072[_0x3b1f2b(0x1db)](_0xa8a843,'\x20'),_0xa3b22b[_0x3b1f2b(0x139)][_0x3b1f2b(0x174)][_0x3b1f2b(0xed)]('\x20'));if(_0x467072[_0x3b1f2b(0x1c2)](_0xa8a843,_0xa3b22b[_0x3b1f2b(0xf9)])&&_0xa3b22b[_0x3b1f2b(0x174)]&&_0x467072[_0x3b1f2b(0x140)](_0xa3b22b[_0x3b1f2b(0x174)][_0x3b1f2b(0x1f2)],0x0))return _0x467072[_0x3b1f2b(0x175)](_0x467072[_0x3b1f2b(0x1db)](_0xa8a843,'\x20'),_0xa3b22b['_tags'][_0x3b1f2b(0xed)]('\x20'));return _0xa8a843;})[_0x48e0ad(0xed)]('\x20');return _0x39a01c;}static async[a45_0x3db7f9(0x130)](_0x7fc030,_0x57ba5f){const _0x452a37=a45_0x3db7f9,_0x8c9d27={'levsg':function(_0x4ca2e3,_0x2f7624){return _0x4ca2e3(_0x2f7624);},'EBsuc':_0x452a37(0xef)},_0x4b6a53={'uuid':TestDetails[_0x452a37(0x153)](_0x7fc030),'integrations':_0x57ba5f},_0x15da37={};_0x15da37[_0x452a37(0x17e)]=null,_0x8c9d27[_0x452a37(0x144)](debug,_0x452a37(0x16d)+_0x7fc030+',\x20'+util['inspect'](_0x57ba5f,_0x15da37));const _0x594c7a={};_0x594c7a[_0x452a37(0x1e1)]=_0x8c9d27[_0x452a37(0x13a)],_0x594c7a[_0x452a37(0x16c)]=_0x4b6a53,await SessionHandler[_0x452a37(0x1b9)](_0x594c7a);}async[a45_0x3db7f9(0x1a0)](){const _0x919979=a45_0x3db7f9,_0x32d918={'wsBOE':function(_0xb18214){return _0xb18214();}};if(this[_0x919979(0x13f)])return;const _0x40eb62=await _0x32d918['wsBOE'](getGitMetaData);_0x40eb62&&(this[_0x919979(0x16b)]=_0x40eb62['root']),this[_0x919979(0x13f)]=!![];}['getHierarchy'](_0x38b8e7){const _0x4d57f3=a45_0x3db7f9,_0x51ec16={};_0x51ec16[_0x4d57f3(0x165)]=function(_0x4ecd33,_0x3e86e9){return _0x4ecd33!==_0x3e86e9;};const _0x2dcbe9=_0x51ec16,_0xefb61c=[];if(_0x38b8e7&&_0x38b8e7[_0x4d57f3(0x139)]){let _0x2c556b=_0x38b8e7[_0x4d57f3(0x139)];while(_0x2c556b&&_0x2dcbe9[_0x4d57f3(0x165)](_0x2c556b[_0x4d57f3(0xf9)],'')){_0xefb61c['push'](_0x2c556b[_0x4d57f3(0xf9)]),_0x2c556b=_0x2c556b[_0x4d57f3(0x139)];}}return _0xefb61c['reverse']()[_0x4d57f3(0x127)](0x0,0x2),_0xefb61c;}[a45_0x3db7f9(0x15c)](_0x26cc57){const _0x57f5b7=a45_0x3db7f9,_0x1b9c6a={};_0x1b9c6a['Fiueh']=function(_0x1afd8f,_0x17ef69){return _0x1afd8f!==_0x17ef69;},_0x1b9c6a[_0x57f5b7(0x1d6)]=_0x57f5b7(0x1c4),_0x1b9c6a[_0x57f5b7(0xfe)]=function(_0x404dc7,_0x531f72){return _0x404dc7===_0x531f72;},_0x1b9c6a[_0x57f5b7(0x16e)]=_0x57f5b7(0x1cc),_0x1b9c6a[_0x57f5b7(0x110)]=_0x57f5b7(0x1f5),_0x1b9c6a[_0x57f5b7(0x1ac)]='afterAll\x20hook',_0x1b9c6a[_0x57f5b7(0x128)]=_0x57f5b7(0x1f1);const _0x4cad68=_0x1b9c6a;if(_0x4cad68[_0x57f5b7(0x1e2)](_0x26cc57[_0x57f5b7(0x168)],_0x4cad68['zhJFH']))return![];if(_0x4cad68[_0x57f5b7(0xfe)]([_0x4cad68[_0x57f5b7(0x16e)],_0x4cad68[_0x57f5b7(0x110)],_0x4cad68[_0x57f5b7(0x1ac)],_0x4cad68[_0x57f5b7(0x128)]][_0x57f5b7(0x12d)](_0x26cc57['title']),-0x1))return![];return!![];}[a45_0x3db7f9(0x1ce)](_0x510eac,_0x1f5ff4){const _0xc38166=a45_0x3db7f9,_0x496ba9={'IxEGz':function(_0x9087c9,_0x445cd6){return _0x9087c9(_0x445cd6);}},_0x39fe2d=_0x1f5ff4[_0xc38166(0x15d)];if(_0x39fe2d)return _0x39fe2d;return _0x1f5ff4[_0xc38166(0xf9)]+'\x20for\x20'+_0x496ba9[_0xc38166(0x1c5)](getTestIdentifier,_0x510eac);}[a45_0x3db7f9(0x180)](_0x3547c7,_0x282321){const _0x1a19e6=a45_0x3db7f9,_0x353edb={'hMEZi':function(_0x4c4a75,_0x298726){return _0x4c4a75(_0x298726);},'NeTyt':function(_0x17006e){return _0x17006e();}};let _0x512736=_0x282321[_0x1a19e6(0xf9)]+_0x1a19e6(0x1e7)+_0x353edb[_0x1a19e6(0x1ca)](getTestIdentifier,_0x3547c7);return this[_0x1a19e6(0x12a)][_0x512736]&&(_0x512736=_0x512736+'\x20-\x20'+_0x353edb['NeTyt'](uuidv4)),_0x282321[_0x1a19e6(0x15d)]=_0x512736,_0x512736;}[a45_0x3db7f9(0x1e8)]=_0x3a0561=>{const _0x117104=a45_0x3db7f9,_0x29df8f={};_0x29df8f[_0x117104(0x132)]=_0x117104(0x1cc),_0x29df8f['oigfN']=_0x117104(0x158),_0x29df8f[_0x117104(0x1ba)]=_0x117104(0x1f5),_0x29df8f[_0x117104(0x152)]=_0x117104(0x12b),_0x29df8f['mSmFt']=_0x117104(0x1f1),_0x29df8f['nblQt']=_0x117104(0x176),_0x29df8f[_0x117104(0x14b)]=_0x117104(0x160),_0x29df8f[_0x117104(0x136)]='AFTER_ALL',_0x29df8f['nPYeD']='unknown';const _0xc21a37=_0x29df8f;if(_0x3a0561[_0x117104(0x119)](_0xc21a37['Halko']))return _0xc21a37[_0x117104(0x134)];else{if(_0x3a0561[_0x117104(0x119)](_0xc21a37[_0x117104(0x1ba)]))return _0xc21a37[_0x117104(0x152)];else{if(_0x3a0561[_0x117104(0x119)](_0xc21a37[_0x117104(0x1bd)]))return _0xc21a37[_0x117104(0x182)];else{if(_0x3a0561[_0x117104(0x119)](_0xc21a37[_0x117104(0x14b)]))return _0xc21a37['DfzEO'];}}}return _0xc21a37['nPYeD'];};['getScope']=_0x5ede18=>{const _0x46b9ee=a45_0x3db7f9,_0x303bd8={};_0x303bd8[_0x46b9ee(0x179)]=function(_0x3e0c65,_0x168fd0){return _0x3e0c65===_0x168fd0;},_0x303bd8[_0x46b9ee(0x146)]=_0x46b9ee(0x1cf);const _0x244731=_0x303bd8;let _0x2e38a0=_0x5ede18['parent'];return _0x244731[_0x46b9ee(0x179)](typeof _0x5ede18[_0x46b9ee(0x139)],_0x244731[_0x46b9ee(0x146)])&&(_0x2e38a0=_0x2e38a0['title']),_0x2e38a0+'\x20-\x20'+_0x5ede18['title'];};[a45_0x3db7f9(0x1ee)](){return![];}}module[a45_0x3db7f9(0x1cb)]=o11yClassErrorHandler(MyReporter,[a45_0x3db7f9(0x17f),a45_0x3db7f9(0x1c7),'onTestBegin',a45_0x3db7f9(0x187),a45_0x3db7f9(0x189),a45_0x3db7f9(0x17a),a45_0x3db7f9(0x130)],a45_0x3db7f9(0xfd));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a46_0x363574=a46_0x2793;(function(_0x3d85bc,_0x49059e){const _0x1c11ea=a46_0x2793,_0x1c959d=_0x3d85bc();while(!![]){try{const _0xc88abf=-parseInt(_0x1c11ea(0x1d1))/0x1+parseInt(_0x1c11ea(0x1c8))/0x2*(-parseInt(_0x1c11ea(0x1be))/0x3)+-parseInt(_0x1c11ea(0x1c4))/0x4*(parseInt(_0x1c11ea(0x1d6))/0x5)+parseInt(_0x1c11ea(0x1d4))/0x6+parseInt(_0x1c11ea(0x1a1))/0x7*(-parseInt(_0x1c11ea(0x1f1))/0x8)+parseInt(_0x1c11ea(0x1b7))/0x9*(parseInt(_0x1c11ea(0x1a8))/0xa)+-parseInt(_0x1c11ea(0x1e2))/0xb*(-parseInt(_0x1c11ea(0x1f0))/0xc);if(_0xc88abf===_0x49059e)break;else _0x1c959d['push'](_0x1c959d['shift']());}catch(_0x2730b2){_0x1c959d['push'](_0x1c959d['shift']());}}}(a46_0x1569,0xc131b));const fs=require('fs'),path=require('path'),{v4:uuidv4}=require('uuid'),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require('../../../helpers/helper'),logger=require(a46_0x363574(0x1ad))['winstonLogger'],{getLogDir}=require(a46_0x363574(0x1ad)),util=require(a46_0x363574(0x1fa)),helper=require(a46_0x363574(0x1a2));function a46_0x2793(_0x52bb27,_0x75c786){const _0x156989=a46_0x1569();return a46_0x2793=function(_0x279399,_0x24dcc3){_0x279399=_0x279399-0x1a0;let _0x2f287d=_0x156989[_0x279399];return _0x2f287d;},a46_0x2793(_0x52bb27,_0x75c786);}class TestDetails{static [a46_0x363574(0x1e7)]={};static[a46_0x363574(0x1da)](){const _0x1ecbe1=a46_0x363574;this[_0x1ecbe1(0x1b5)]();const _0x10e4f6={};_0x10e4f6[_0x1ecbe1(0x1e0)]=!![],fs[_0x1ecbe1(0x1ba)](this['getDirPath'](),_0x10e4f6);const _0x450293={};_0x450293['recursive']=!![],fs[_0x1ecbe1(0x1ba)](this['getTraceZipDir'](),_0x450293);}static['getStoreDirName'](){const _0x52ebcb=a46_0x363574,_0x2f66d0={};_0x2f66d0['uAbZb']=function(_0x152770,_0x2b4f87){return _0x152770+_0x2b4f87;};const _0x255e4e=_0x2f66d0;return _0x255e4e['uAbZb'](_0x255e4e[_0x52ebcb(0x1d2)](TEMP_STORE_DIR_NAME,'-'),process[_0x52ebcb(0x1ca)][_0x52ebcb(0x1ee)]);}static[a46_0x363574(0x1f3)](){const _0x260221=a46_0x363574,_0x5e2b21={};_0x5e2b21[_0x260221(0x1e8)]=function(_0x3e70eb,_0x34438d){return _0x3e70eb+_0x34438d;},_0x5e2b21[_0x260221(0x1bc)]=_0x260221(0x1e6);const _0x240cc8=_0x5e2b21;return path['join'](_0x240cc8[_0x260221(0x1e8)](_0x240cc8[_0x260221(0x1e8)](TEMP_STORE_DIR_NAME,'-'),process[_0x260221(0x1ca)][_0x260221(0x1ee)]||_0x240cc8[_0x260221(0x1bc)]));}static['getTraceZipDir'](){const _0x55ad33=a46_0x363574,_0x1ecbdc={};_0x1ecbdc[_0x55ad33(0x1c2)]=_0x55ad33(0x1d9);const _0x29cb15=_0x1ecbdc;return path[_0x55ad33(0x1ae)](this[_0x55ad33(0x1f3)](),_0x29cb15['HZWFF']);}static[a46_0x363574(0x1e4)](){const _0x3e5f67=a46_0x363574;return TestDetails[_0x3e5f67(0x1b3)]();}static[a46_0x363574(0x1c3)](_0x3510e0){const _0x52b5fd=a46_0x363574,_0x170e40={};_0x170e40['YMZXB']=function(_0x1d5da7,_0xff4b12){return _0x1d5da7+_0xff4b12;},_0x170e40[_0x52b5fd(0x1bb)]=_0x52b5fd(0x1dd);const _0xb137d9=_0x170e40;return path[_0x52b5fd(0x1ae)](this[_0x52b5fd(0x1e4)](),_0xb137d9[_0x52b5fd(0x1d7)](_0x3510e0,_0xb137d9[_0x52b5fd(0x1bb)]));}static['getTestRunIdFromTestInfo'](_0x168645){const _0x170ce8=a46_0x363574,_0x1723c8={};_0x1723c8[_0x170ce8(0x1db)]=function(_0xd26a34,_0x4fa54d){return _0xd26a34+_0x4fa54d;},_0x1723c8[_0x170ce8(0x1c7)]=function(_0x25f231,_0x2790e6){return _0x25f231+_0x2790e6;},_0x1723c8['ovYTe']=function(_0x13c362,_0x34904a){return _0x13c362+_0x34904a;};const _0x31e2f4=_0x1723c8;return _0x31e2f4['JWfzf'](_0x31e2f4[_0x170ce8(0x1c7)](_0x31e2f4[_0x170ce8(0x1c7)](_0x31e2f4[_0x170ce8(0x1cd)](this[_0x170ce8(0x1de)](_0x168645),'-'),this['getTestIdFromTestInfo'](_0x168645)),'-'),_0x168645[_0x170ce8(0x1a9)]);}static[a46_0x363574(0x1de)](_0x49782a){const _0x18ed2c=a46_0x363574,_0x5ce86f={'iQoUV':function(_0x1e0b6e,_0xe74b16,_0x22905c){return _0x1e0b6e(_0xe74b16,_0x22905c);},'bsejI':_0x18ed2c(0x1bf),'ikVmY':_0x18ed2c(0x1cb),'XKzCc':function(_0x4eaeea,_0x174e94,_0x272e22){return _0x4eaeea(_0x174e94,_0x272e22);},'xLzdN':_0x18ed2c(0x1eb),'hlDYT':_0x18ed2c(0x1f5)};return _0x5ce86f['iQoUV'](nestedKeyValue,_0x49782a,[_0x5ce86f[_0x18ed2c(0x1a0)],_0x5ce86f[_0x18ed2c(0x1d0)]])||_0x5ce86f[_0x18ed2c(0x1f7)](nestedKeyValue,_0x49782a,[_0x5ce86f[_0x18ed2c(0x1b4)],_0x5ce86f[_0x18ed2c(0x1cc)]]);}static['getTestIdFromTestInfo'](_0x45f551){const _0x21d4ce=a46_0x363574,_0x205a5a={'brEPY':function(_0x5c5ded,_0x1d8634,_0x582b82){return _0x5c5ded(_0x1d8634,_0x582b82);},'NmIuq':'_test'};return _0x205a5a[_0x21d4ce(0x1c5)](nestedKeyValue,_0x45f551,[_0x205a5a[_0x21d4ce(0x1ab)],'id'])||_0x45f551[_0x21d4ce(0x1af)];}static[a46_0x363574(0x1aa)](_0x4cc47f){const _0x29c09d=a46_0x363574,_0x40e26c={'DPyZN':function(_0x4dc948,_0x5a56c4){return _0x4dc948===_0x5a56c4;},'icXcb':'string','Bfkva':function(_0x255015){return _0x255015();}};if(this[_0x29c09d(0x1e7)][_0x4cc47f]&&_0x40e26c[_0x29c09d(0x1c9)](typeof this['tests'][_0x4cc47f]['uuid'],_0x40e26c[_0x29c09d(0x1b8)]))return this['tests'][_0x4cc47f]['uuid'];const _0x354a8a=this['getFilePath'](_0x4cc47f);if(_0x354a8a&&fs[_0x29c09d(0x1df)](_0x354a8a)){const _0x137d0c=JSON[_0x29c09d(0x1f2)](fs['readFileSync'](_0x354a8a)['toString']());return this[_0x29c09d(0x1e7)][_0x4cc47f]=_0x137d0c,this[_0x29c09d(0x1e7)][_0x4cc47f][_0x29c09d(0x1bd)];}return this['tests'][_0x4cc47f]={'uuid':_0x40e26c[_0x29c09d(0x1e3)](uuidv4)},fs[_0x29c09d(0x1d3)](_0x354a8a,JSON['stringify'](this[_0x29c09d(0x1e7)][_0x4cc47f])),this['tests'][_0x4cc47f][_0x29c09d(0x1bd)];}static[a46_0x363574(0x1ed)](_0x128a5e){const _0x180fac=a46_0x363574,_0x1ad027=path['join'](this[_0x180fac(0x1e4)](),_0x128a5e+_0x180fac(0x1ac));if(_0x1ad027&&fs['existsSync'](_0x1ad027))return fs[_0x180fac(0x1e9)](_0x1ad027)[_0x180fac(0x1a5)]();}static[a46_0x363574(0x1e1)](_0x1c0df8,_0x54e56b){const _0x2bd456=a46_0x363574,_0xc84071=path['join'](this[_0x2bd456(0x1e4)](),_0x54e56b+_0x2bd456(0x1ac));fs[_0x2bd456(0x1d3)](_0xc84071,_0x1c0df8[_0x2bd456(0x1a5)]());}static[a46_0x363574(0x1b5)](){const _0x3b6047=a46_0x363574,_0x5e340a={};_0x5e340a[_0x3b6047(0x1e0)]=!![],_0x5e340a[_0x3b6047(0x1a3)]=!![],fs[_0x3b6047(0x1c6)](this[_0x3b6047(0x1e4)](),_0x5e340a);}static['getTestDetails'](_0x2a0867){const _0x4705b8=a46_0x363574;if(this[_0x4705b8(0x1e7)][_0x2a0867])return this[_0x4705b8(0x1e7)][_0x2a0867];const _0x3c6f93=this[_0x4705b8(0x1c3)](_0x2a0867);if(_0x3c6f93&&fs[_0x4705b8(0x1df)](_0x3c6f93)){const _0x104d76=JSON[_0x4705b8(0x1f2)](fs['readFileSync'](_0x3c6f93)[_0x4705b8(0x1a5)]());return this[_0x4705b8(0x1e7)][_0x2a0867]=_0x104d76,_0x104d76;}return{};}static[a46_0x363574(0x1b6)](_0x2e54f4,_0x5307ab){const _0xbc60ea=a46_0x363574,_0x221816=this['getFilePath'](_0x2e54f4);if(_0x221816&&fs[_0xbc60ea(0x1df)](_0x221816)){const _0x3af05f=JSON[_0xbc60ea(0x1f2)](fs[_0xbc60ea(0x1e9)](_0x221816)[_0xbc60ea(0x1a5)]()),_0xc4176b={..._0x3af05f,..._0x5307ab};this['tests'][_0x2e54f4]=_0xc4176b;}else this['tests'][_0x2e54f4]=_0x5307ab;fs['writeFileSync'](_0x221816,this[_0xbc60ea(0x1e7)][_0x2e54f4]);}static['addTraceFilePath'](_0x1d6194){const _0x415cb8=a46_0x363574,_0x3bddb9={};_0x3bddb9['rDFrX']=_0x415cb8(0x1b1);const _0x39f28e=_0x3bddb9;try{const _0x2cf3ec=process['pid'],_0x18809e=path['join'](TestDetails[_0x415cb8(0x1a4)](),_0x2cf3ec+_0x415cb8(0x1ef));let _0x168f5f=[];_0x18809e&&fs[_0x415cb8(0x1df)](_0x18809e)&&(_0x168f5f=JSON['parse'](fs[_0x415cb8(0x1e9)](_0x18809e)['toString']())),!_0x168f5f[_0x415cb8(0x1c0)](_0x2698d8=>_0x2698d8[_0x415cb8(0x1f4)]===_0x1d6194[_0x415cb8(0x1f4)])&&(_0x168f5f[_0x415cb8(0x1cf)](_0x1d6194),fs[_0x415cb8(0x1d3)](_0x18809e,JSON['stringify'](_0x168f5f)));}catch(_0x351395){logger[_0x415cb8(0x1d8)](_0x39f28e[_0x415cb8(0x1b9)],_0x351395);}}static[a46_0x363574(0x1c1)](){const _0x1735df=a46_0x363574,_0x176324={};_0x176324[_0x1735df(0x1b0)]=_0x1735df(0x1ef),_0x176324['fbcsO']=_0x1735df(0x1dc);const _0x13a725=_0x176324,_0x45c29c=[];try{const _0x384898=TestDetails['getTraceZipDir']();if(_0x384898&&!fs[_0x1735df(0x1df)](_0x384898))return _0x45c29c;const _0x417a89=fs['readdirSync'](_0x384898);_0x417a89['forEach'](_0x4466fb=>{const _0x278075=_0x1735df;if(_0x4466fb&&_0x4466fb['endsWith'](_0x13a725[_0x278075(0x1b0)])){const _0x589df7=JSON['parse'](fs['readFileSync'](path[_0x278075(0x1ae)](_0x384898,_0x4466fb))['toString']());_0x45c29c[_0x278075(0x1cf)](..._0x589df7);}});}catch(_0x2da2f7){logger[_0x1735df(0x1d8)](util[_0x1735df(0x1b2)](_0x13a725['fbcsO'],_0x2da2f7));}const _0x1aa2b4={};return _0x45c29c[_0x1735df(0x1a7)](_0x63fc86=>{const _0x1b48f6=_0x1735df;_0x1aa2b4[_0x63fc86[_0x1b48f6(0x1f4)]]=_0x63fc86;}),Object['values'](_0x1aa2b4);}static[a46_0x363574(0x1e5)](_0xd7847b,_0x2195e1){const _0x5de087=a46_0x363574,_0x5c4a44={};_0x5c4a44[_0x5de087(0x1ea)]='.browserstack',_0x5c4a44['ctfwl']=_0x5de087(0x1ec);const _0x284972=_0x5c4a44;try{const _0x3b41a2=path[_0x5de087(0x1ae)](helper['homedir'](),_0x284972[_0x5de087(0x1ea)]);if(!fs[_0x5de087(0x1df)](_0x3b41a2)){const _0x94758e={};_0x94758e[_0x5de087(0x1e0)]=!![],fs[_0x5de087(0x1ba)](_0x3b41a2,_0x94758e);}fs[_0x5de087(0x1a6)](path[_0x5de087(0x1ae)](_0x3b41a2,_0x5de087(0x1ce)+_0x2195e1+_0x5de087(0x1d5)),_0xd7847b+'\x0a',_0x284972[_0x5de087(0x1f8)]);}catch(_0x4e6438){console[_0x5de087(0x1d8)](_0x5de087(0x1f9)+_0x4e6438['message']);}}}function a46_0x1569(){const _0x2c297f=['Wvmqp','project','utf8','getAccessibilityPlatformValidation','BS_TESTOPS_BUILD_HASHED_ID','_traceZipPaths.json','105348iuuvmP','7032zgBGsY','parse','getStoreDirPath','filePath','__projectId','exports','XKzCc','ctfwl','Error\x20writing\x20trace\x20file:\x20','util','bsejI','77gPWkcQ','../../../helpers/helper','force','getTraceZipDir','toString','appendFileSync','forEach','3370bfbcuv','retry','getTestUUID','NmIuq','_platformDetails.json','../../../helpers/logger','join','testId','QHbHj','Error\x20handling\x20trace\x20file\x20paths:\x20','format','getStoreDirName','xLzdN','shutdown','setTestDetails','12303ZAXttJ','icXcb','rDFrX','mkdirSync','lhCFL','HZzvA','uuid','3RhjTwH','_test','some','getTraceFilePaths','HZWFF','getFilePath','24zlUvoQ','brEPY','rmSync','ugxut','980188kPDHhB','DPyZN','env','_projectId','hlDYT','ovYTe','trace_','push','ikVmY','783703VhyWBB','uAbZb','writeFileSync','3903486lCDYJa','.txt','1223545GfStzi','YMZXB','error','traceZipPaths','setup','JWfzf','Error\x20reading\x20trace\x20file\x20paths:\x20%s','.json','getProjectIdFromTestInfo','existsSync','recursive','setAccessibilityPlatformValidation','3047KITydN','Bfkva','getDirPath','appendToTracePaths','default','tests','MkCNK','readFileSync'];a46_0x1569=function(){return _0x2c297f;};return a46_0x1569();}module[a46_0x363574(0x1f6)]=TestDetails;
|
|
1
|
+
const a46_0x8432f1=a46_0x38df;(function(_0x1ef900,_0x398fbd){const _0x270228=a46_0x38df,_0x2ab065=_0x1ef900();while(!![]){try{const _0x14a505=parseInt(_0x270228(0x1e4))/0x1+-parseInt(_0x270228(0x1f7))/0x2+-parseInt(_0x270228(0x1f5))/0x3+-parseInt(_0x270228(0x1e2))/0x4*(-parseInt(_0x270228(0x205))/0x5)+-parseInt(_0x270228(0x218))/0x6+parseInt(_0x270228(0x21d))/0x7*(parseInt(_0x270228(0x1e1))/0x8)+parseInt(_0x270228(0x1eb))/0x9*(parseInt(_0x270228(0x211))/0xa);if(_0x14a505===_0x398fbd)break;else _0x2ab065['push'](_0x2ab065['shift']());}catch(_0x52c25a){_0x2ab065['push'](_0x2ab065['shift']());}}}(a46_0x26b9,0x5709f));const fs=require('fs'),path=require(a46_0x8432f1(0x20f)),{v4:uuidv4}=require(a46_0x8432f1(0x1f4)),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require('../../../helpers/helper'),logger=require(a46_0x8432f1(0x1e5))[a46_0x8432f1(0x22b)],{getLogDir}=require('../../../helpers/logger'),util=require(a46_0x8432f1(0x228)),helper=require(a46_0x8432f1(0x226));class TestDetails{static [a46_0x8432f1(0x1f1)]={};static[a46_0x8432f1(0x219)](){const _0x1afee2=a46_0x8432f1;this[_0x1afee2(0x1ea)]();const _0x2e8ad2={};_0x2e8ad2['recursive']=!![],fs[_0x1afee2(0x1e3)](this[_0x1afee2(0x1d8)](),_0x2e8ad2);const _0x51ecf6={};_0x51ecf6[_0x1afee2(0x231)]=!![],fs[_0x1afee2(0x1e3)](this[_0x1afee2(0x1ec)](),_0x51ecf6);}static[a46_0x8432f1(0x1e9)](){const _0x3e41b8=a46_0x8432f1,_0x182ff8={};_0x182ff8[_0x3e41b8(0x225)]=function(_0x56fb16,_0x3a3e30){return _0x56fb16+_0x3a3e30;},_0x182ff8['iGFHF']=function(_0x4753e0,_0x1000b9){return _0x4753e0+_0x1000b9;};const _0x4d7350=_0x182ff8;return _0x4d7350[_0x3e41b8(0x225)](_0x4d7350[_0x3e41b8(0x214)](TEMP_STORE_DIR_NAME,'-'),process[_0x3e41b8(0x208)]['BS_TESTOPS_BUILD_HASHED_ID']);}static[a46_0x8432f1(0x1e6)](){const _0x1c9eb5=a46_0x8432f1,_0x526182={};_0x526182[_0x1c9eb5(0x222)]=function(_0x4beb6b,_0x1ce013){return _0x4beb6b+_0x1ce013;},_0x526182[_0x1c9eb5(0x203)]=function(_0x54c3c4,_0x518867){return _0x54c3c4+_0x518867;},_0x526182[_0x1c9eb5(0x1fd)]=_0x1c9eb5(0x1dc);const _0xaa91a6=_0x526182;return path[_0x1c9eb5(0x221)](_0xaa91a6[_0x1c9eb5(0x222)](_0xaa91a6[_0x1c9eb5(0x203)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x1c9eb5(0x21a)]||_0xaa91a6['pSjrC']));}static['getTraceZipDir'](){const _0xab4b4f=a46_0x8432f1,_0x380097={};_0x380097[_0xab4b4f(0x223)]='traceZipPaths';const _0x2c5d9d=_0x380097;return path['join'](this['getStoreDirPath'](),_0x2c5d9d[_0xab4b4f(0x223)]);}static['getDirPath'](){const _0x5ec76=a46_0x8432f1;return TestDetails[_0x5ec76(0x1e9)]();}static['getFilePath'](_0x38b3f2){const _0x4beaab=a46_0x8432f1,_0x18b06a={};_0x18b06a['DTXwx']=function(_0x4a0b34,_0x1aece8){return _0x4a0b34+_0x1aece8;},_0x18b06a[_0x4beaab(0x204)]=_0x4beaab(0x233);const _0x343329=_0x18b06a;return path['join'](this[_0x4beaab(0x1d8)](),_0x343329['DTXwx'](_0x38b3f2,_0x343329[_0x4beaab(0x204)]));}static[a46_0x8432f1(0x1f6)](_0xeea320){const _0x9f50a8=a46_0x8432f1,_0x1eb759={};_0x1eb759[_0x9f50a8(0x1f0)]=function(_0x6a8584,_0x552c1a){return _0x6a8584+_0x552c1a;},_0x1eb759[_0x9f50a8(0x1fc)]=function(_0x5bb254,_0x2bffec){return _0x5bb254+_0x2bffec;},_0x1eb759['MwhAZ']=function(_0x3a60a4,_0x157ff2){return _0x3a60a4+_0x157ff2;};const _0x503be0=_0x1eb759;return _0x503be0[_0x9f50a8(0x1f0)](_0x503be0[_0x9f50a8(0x1fc)](_0x503be0[_0x9f50a8(0x1df)](_0x503be0[_0x9f50a8(0x1fc)](this[_0x9f50a8(0x1e0)](_0xeea320),'-'),this[_0x9f50a8(0x21b)](_0xeea320)),'-'),_0xeea320['retry']);}static[a46_0x8432f1(0x1e0)](_0x3e677a){const _0x5bdca5=a46_0x8432f1,_0x2af4b1={'rUYZY':function(_0x4251ab,_0x183b85,_0x3967b6){return _0x4251ab(_0x183b85,_0x3967b6);},'CKlxi':'_test','wcRoI':_0x5bdca5(0x1ee),'TuMdU':_0x5bdca5(0x1f2),'sCsGY':_0x5bdca5(0x21e)};return _0x2af4b1[_0x5bdca5(0x20c)](nestedKeyValue,_0x3e677a,[_0x2af4b1[_0x5bdca5(0x22c)],_0x2af4b1['wcRoI']])||_0x2af4b1[_0x5bdca5(0x20c)](nestedKeyValue,_0x3e677a,[_0x2af4b1[_0x5bdca5(0x201)],_0x2af4b1[_0x5bdca5(0x1e8)]]);}static[a46_0x8432f1(0x21b)](_0x59a581){const _0x193057=a46_0x8432f1,_0x508eab={'pYARI':function(_0x371c85,_0x59e209,_0x41dcd8){return _0x371c85(_0x59e209,_0x41dcd8);},'KyxOp':'_test'};return _0x508eab[_0x193057(0x227)](nestedKeyValue,_0x59a581,[_0x508eab['KyxOp'],'id'])||_0x59a581['testId'];}static['getTestUUID'](_0x21a0a1){const _0x3e90a9=a46_0x8432f1,_0x3bfd9c={'McPcv':function(_0x477850,_0x3d4491){return _0x477850===_0x3d4491;},'oLynm':_0x3e90a9(0x217),'mOhDo':function(_0x21f60f){return _0x21f60f();}};if(this[_0x3e90a9(0x1f1)][_0x21a0a1]&&_0x3bfd9c[_0x3e90a9(0x210)](typeof this['tests'][_0x21a0a1][_0x3e90a9(0x1f4)],_0x3bfd9c['oLynm']))return this[_0x3e90a9(0x1f1)][_0x21a0a1]['uuid'];const _0x36e4ab=this['getFilePath'](_0x21a0a1);if(_0x36e4ab&&fs[_0x3e90a9(0x1f3)](_0x36e4ab)){const _0x313a47=JSON[_0x3e90a9(0x20e)](fs['readFileSync'](_0x36e4ab)[_0x3e90a9(0x20a)]());return this['tests'][_0x21a0a1]=_0x313a47,this['tests'][_0x21a0a1][_0x3e90a9(0x1f4)];}return this[_0x3e90a9(0x1f1)][_0x21a0a1]={'uuid':_0x3bfd9c[_0x3e90a9(0x1fe)](uuidv4)},fs['writeFileSync'](_0x36e4ab,JSON[_0x3e90a9(0x22d)](this[_0x3e90a9(0x1f1)][_0x21a0a1])),this['tests'][_0x21a0a1][_0x3e90a9(0x1f4)];}static[a46_0x8432f1(0x209)](_0x3bcf4a){const _0x715ca2=a46_0x8432f1,_0x3e06ba=path['join'](this[_0x715ca2(0x1d8)](),_0x3bcf4a+_0x715ca2(0x1ed));if(_0x3e06ba&&fs[_0x715ca2(0x1f3)](_0x3e06ba))return fs[_0x715ca2(0x1fa)](_0x3e06ba)[_0x715ca2(0x20a)]();}static[a46_0x8432f1(0x1f8)](_0x4edc5a,_0x2382a5){const _0x382391=a46_0x8432f1,_0x5089ed=path['join'](this[_0x382391(0x1d8)](),_0x2382a5+_0x382391(0x1ed));fs[_0x382391(0x21f)](_0x5089ed,_0x4edc5a[_0x382391(0x20a)]());}static[a46_0x8432f1(0x1ea)](){const _0x214120=a46_0x8432f1,_0x1b17ca={};_0x1b17ca[_0x214120(0x231)]=!![],_0x1b17ca[_0x214120(0x232)]=!![],fs['rmSync'](this[_0x214120(0x1d8)](),_0x1b17ca);}static['getTestDetails'](_0x589257){const _0x58f8d8=a46_0x8432f1;if(this['tests'][_0x589257])return this[_0x58f8d8(0x1f1)][_0x589257];const _0xa130c1=this[_0x58f8d8(0x1dd)](_0x589257);if(_0xa130c1&&fs[_0x58f8d8(0x1f3)](_0xa130c1)){const _0x23ea79=JSON[_0x58f8d8(0x20e)](fs['readFileSync'](_0xa130c1)[_0x58f8d8(0x20a)]());return this['tests'][_0x589257]=_0x23ea79,_0x23ea79;}return{};}static[a46_0x8432f1(0x200)](_0x46ac37,_0x4b9e21){const _0x221e9e=a46_0x8432f1,_0x4b5135=this[_0x221e9e(0x1dd)](_0x46ac37);if(_0x4b5135&&fs[_0x221e9e(0x1f3)](_0x4b5135)){const _0x40ad60=JSON['parse'](fs[_0x221e9e(0x1fa)](_0x4b5135)[_0x221e9e(0x20a)]()),_0x37d9bd={..._0x40ad60,..._0x4b9e21};this['tests'][_0x46ac37]=_0x37d9bd;}else this[_0x221e9e(0x1f1)][_0x46ac37]=_0x4b9e21;fs['writeFileSync'](_0x4b5135,this[_0x221e9e(0x1f1)][_0x46ac37]);}static[a46_0x8432f1(0x1db)](_0x5ee340){const _0x1fb382=a46_0x8432f1,_0x246707={};_0x246707[_0x1fb382(0x1fb)]='Error\x20handling\x20trace\x20file\x20paths:\x20';const _0x253551=_0x246707;try{const _0x420ecc=process['pid'],_0x20b1f1=path[_0x1fb382(0x221)](TestDetails['getTraceZipDir'](),_0x420ecc+'_traceZipPaths.json');let _0x151950=[];_0x20b1f1&&fs[_0x1fb382(0x1f3)](_0x20b1f1)&&(_0x151950=JSON[_0x1fb382(0x20e)](fs['readFileSync'](_0x20b1f1)[_0x1fb382(0x20a)]())),!_0x151950[_0x1fb382(0x213)](_0x2c6842=>_0x2c6842['filePath']===_0x5ee340[_0x1fb382(0x22a)])&&(_0x151950['push'](_0x5ee340),fs[_0x1fb382(0x21f)](_0x20b1f1,JSON[_0x1fb382(0x22d)](_0x151950)));}catch(_0x5ef260){logger[_0x1fb382(0x22f)](_0x253551[_0x1fb382(0x1fb)],_0x5ef260);}}static[a46_0x8432f1(0x216)](){const _0x4bfda4=a46_0x8432f1,_0x516e17={};_0x516e17[_0x4bfda4(0x1ff)]=_0x4bfda4(0x207),_0x516e17[_0x4bfda4(0x21c)]=_0x4bfda4(0x1e7);const _0x4780b0=_0x516e17,_0x541598=[];try{const _0x5ba49e=TestDetails[_0x4bfda4(0x1ec)]();if(_0x5ba49e&&!fs['existsSync'](_0x5ba49e))return _0x541598;const _0x57d0a2=fs[_0x4bfda4(0x1de)](_0x5ba49e);_0x57d0a2['forEach'](_0x4e667b=>{const _0x3a8793=_0x4bfda4;if(_0x4e667b&&_0x4e667b[_0x3a8793(0x1d9)](_0x4780b0[_0x3a8793(0x1ff)])){const _0x371fb1=JSON[_0x3a8793(0x20e)](fs['readFileSync'](path[_0x3a8793(0x221)](_0x5ba49e,_0x4e667b))[_0x3a8793(0x20a)]());_0x541598[_0x3a8793(0x22e)](..._0x371fb1);}});}catch(_0x14cd6f){logger[_0x4bfda4(0x22f)](util[_0x4bfda4(0x215)](_0x4780b0[_0x4bfda4(0x21c)],_0x14cd6f));}const _0x3e8140={};return _0x541598[_0x4bfda4(0x206)](_0x45ad1b=>{const _0x35c5e6=_0x4bfda4;_0x3e8140[_0x45ad1b[_0x35c5e6(0x22a)]]=_0x45ad1b;}),Object[_0x4bfda4(0x202)](_0x3e8140);}static[a46_0x8432f1(0x224)](_0x11e748,_0x21a498){const _0x274d3c=a46_0x8432f1,_0x3cb2f0={};_0x3cb2f0[_0x274d3c(0x229)]=_0x274d3c(0x234),_0x3cb2f0[_0x274d3c(0x1da)]=_0x274d3c(0x20d);const _0x1f4a49=_0x3cb2f0;try{const _0x435c2a=path[_0x274d3c(0x221)](helper[_0x274d3c(0x1f9)](),_0x1f4a49[_0x274d3c(0x229)]);if(!fs['existsSync'](_0x435c2a)){const _0x3da01b={};_0x3da01b[_0x274d3c(0x231)]=!![],fs[_0x274d3c(0x1e3)](_0x435c2a,_0x3da01b);}fs[_0x274d3c(0x1ef)](path[_0x274d3c(0x221)](_0x435c2a,_0x274d3c(0x212)+_0x21a498+_0x274d3c(0x20b)),_0x11e748+'\x0a',_0x1f4a49[_0x274d3c(0x1da)]);}catch(_0x2d86ec){console[_0x274d3c(0x22f)](_0x274d3c(0x220)+_0x2d86ec[_0x274d3c(0x230)]);}}}module['exports']=TestDetails;function a46_0x38df(_0x56357e,_0x42b88a){const _0x26b969=a46_0x26b9();return a46_0x38df=function(_0x38df32,_0x100e59){_0x38df32=_0x38df32-0x1d8;let _0x301be3=_0x26b969[_0x38df32];return _0x301be3;},a46_0x38df(_0x56357e,_0x42b88a);}function a46_0x26b9(){const _0x2936b9=['.browserstack','getDirPath','endsWith','SjDUh','addTraceFilePath','default','getFilePath','readdirSync','MwhAZ','getProjectIdFromTestInfo','16sklgav','7420nGgvIP','mkdirSync','338955eSuLXk','../../../helpers/logger','getStoreDirPath','Error\x20reading\x20trace\x20file\x20paths:\x20%s','sCsGY','getStoreDirName','shutdown','10409229dUIaiE','getTraceZipDir','_platformDetails.json','_projectId','appendFileSync','VQvWu','tests','project','existsSync','uuid','1938630elAgtk','getTestRunIdFromTestInfo','806330kkuONV','setAccessibilityPlatformValidation','homedir','readFileSync','ZfnuV','KCtJS','pSjrC','mOhDo','bEZBe','setTestDetails','TuMdU','values','glZwx','NJtRL','1550nmbmjy','forEach','_traceZipPaths.json','env','getAccessibilityPlatformValidation','toString','.txt','rUYZY','utf8','parse','path','McPcv','10GNUrAU','trace_','some','iGFHF','format','getTraceFilePaths','string','4004952mLcRId','setup','BS_TESTOPS_BUILD_HASHED_ID','getTestIdFromTestInfo','CHgRM','9772puUyFo','__projectId','writeFileSync','Error\x20writing\x20trace\x20file:\x20','join','gyIuB','HOrYS','appendToTracePaths','oOMRs','../../../helpers/helper','pYARI','util','jMIxw','filePath','winstonLogger','CKlxi','stringify','push','error','message','recursive','force','.json'];a46_0x26b9=function(){return _0x2936b9;};return a46_0x26b9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a47_0x13ba(){const _0xc5c086=['_browserType','platform_version','__workerDetails','channel','Not\x20able\x20to\x20import\x20Connection','HSAMy','lib','format','winstonLogger','accessibilityPlatform','bsSessionId','391600kMYpaQ','QbHyn','playwright-','params','use','5phfAPo','EWBjG','Performing\x20scan\x20for\x20','automate','CFFTX','currentTest','project','sendMessageToServer','3984hOGQBQ','ZNqXA','tqVvO','MddPX','platformDetails','connection.js','4gooxRb','OWIWN','product','CRConnection','deviceModel','kRWUg','1412160IZdzaz','xwavd','chrome','getInstance','crConnection.js','fqNii','NnozZ','sMtNV','version','nsHVe','defineProperty','RxCgl','assign','IhZQt','dispatch','ATS_WSS_URL_REGEX','server','wsEndpoint','../utils/clientTroubleshootingService.js','_type','../../helpers/logger','toString','JVTpV','rteyd','NxziN','parse','Error\x20in\x20importing\x20connection\x20','POST','shouldWrapCommand','caps','bstackPerformA11yScan','LJndU','turboscale','gYlQS','test','env','getAutomationFramework','dCJrk','titlePath','sCuIC','platformVersion','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','Page\x20Scan\x20result=','path','_onMessage','sessionId','xuAar','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','../v2/browserstackCLI','ikLey','__driver','DemGE','fromEntries','30SZvqLZ','sJpdw','UpOvt','debug','JvUKc','../../helpers/test-observability/error-handler','../../helpers/test-observability/utils','mjFxv','ixnEI','_defaultConnectOptions','BSoLV','patch','trackEvent','3036930INAnzk','qARsQ','hJuON','JbdzW','iFYtv','BROWSERSTACK_TEST_OBSERVABILITY','isRunning','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','unknown_grid','currentSessionDetails','BSTACK_ATS_URL','platform','PLAYWRIGHT_DISPATCH','browser_version','byGZf','apply','4306496vtSVSQ','3731AQFcVO','HaMCF','query','xkUhy','platformName','Setting\x20session\x20id\x20received\x20from\x20BS\x20','patchConnection','testInfo','bsParams','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','setupBrowserDetails','includes','1088989LLuAjf','url','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','prototype','yTZGb','chromium','hIhGy','cloudProvider','MuSya','toLowerCase','edge','join','capabilities','model','fMScK','local_grid','KsNcs','pwPage','../../helpers/accessibility-automation/scripts','browserName','_name','7780086CDWpqf','getDetails','browser','../v2/state/automationFrameworkState.js','igefV','util','safari','WadBl','client','./accessibility-helper','info','bStackParams','sessionError','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','ndiuD','connectOptions','../utils/constants','_connection','browserstack','patchCRConnection','Connection','../../bin/playwright/accessibility-helper'];a47_0x13ba=function(){return _0xc5c086;};return a47_0x13ba();}const a47_0x29eaa4=a47_0x4a6c;(function(_0x424ce6,_0x40caf4){const _0x56ef3d=a47_0x4a6c,_0x4c4721=_0x424ce6();while(!![]){try{const _0x746cf9=-parseInt(_0x56ef3d(0x1ba))/0x1+parseInt(_0x56ef3d(0x1cd))/0x2*(parseInt(_0x56ef3d(0x1d3))/0x3)+parseInt(_0x56ef3d(0x225))/0x4+parseInt(_0x56ef3d(0x1bf))/0x5*(parseInt(_0x56ef3d(0x215))/0x6)+-parseInt(_0x56ef3d(0x226))/0x7*(parseInt(_0x56ef3d(0x1c7))/0x8)+-parseInt(_0x56ef3d(0x199))/0x9+-parseInt(_0x56ef3d(0x208))/0xa*(parseInt(_0x56ef3d(0x232))/0xb);if(_0x746cf9===_0x40caf4)break;else _0x4c4721['push'](_0x4c4721['shift']());}catch(_0xf0e850){_0x4c4721['push'](_0x4c4721['shift']());}}}(a47_0x13ba,0xac4c6));const path=require(a47_0x29eaa4(0x1fe)),url=require(a47_0x29eaa4(0x233)),util=require(a47_0x29eaa4(0x19e)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require('../../helpers/helper'),{o11yErrorHandler}=require(a47_0x29eaa4(0x20d)),{debug,getPlatformDetails}=require(a47_0x29eaa4(0x20e)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),logger=require(a47_0x29eaa4(0x1e7))[a47_0x29eaa4(0x1b7)],scripts=require(a47_0x29eaa4(0x196)),{browserStackExecuteDriver}=require(a47_0x29eaa4(0x1ae)),AccessibilityHelper=require(a47_0x29eaa4(0x1a2)),constants=require(a47_0x29eaa4(0x1a9)),BrowserstackCLI=require(a47_0x29eaa4(0x203)),AutomationFrameworkState=require(a47_0x29eaa4(0x19c)),HookState=require('../v2/state/hookState.js'),{performScanWithRetry}=require('../../helpers/accessibility-automation/accessibilityRetryHelper.js'),ClientTroubleShootingService=require(a47_0x29eaa4(0x1e5)),getBrowserNameFromChannel=_0x25d19b=>{const _0x3c59c2=a47_0x29eaa4,_0x47dbc6={};_0x47dbc6[_0x3c59c2(0x1d4)]=_0x3c59c2(0x1d5),_0x47dbc6[_0x3c59c2(0x1bb)]=_0x3c59c2(0x18e),_0x47dbc6[_0x3c59c2(0x1d8)]='firefox',_0x47dbc6[_0x3c59c2(0x1d2)]=_0x3c59c2(0x19f);const _0x3cf8e8=_0x47dbc6;if(_0x25d19b['includes'](_0x3cf8e8[_0x3c59c2(0x1d4)]))return _0x3cf8e8['xwavd'];if(_0x25d19b[_0x3c59c2(0x231)](_0x3cf8e8[_0x3c59c2(0x1bb)]))return _0x3cf8e8[_0x3c59c2(0x1bb)];if(_0x25d19b[_0x3c59c2(0x231)](_0x3cf8e8[_0x3c59c2(0x1d8)]))return _0x3cf8e8[_0x3c59c2(0x1d8)];if(_0x25d19b[_0x3c59c2(0x231)](_0x3cf8e8['kRWUg']))return _0x3cf8e8['kRWUg'];},getBrowserFromWSEndpoint=_0x35f77a=>{const _0x82bf92=a47_0x29eaa4,_0x3a9b16={'EWBjG':_0x82bf92(0x1d5),'fMScK':function(_0x6e2409,_0x1f34d7){return _0x6e2409(_0x1f34d7);}};try{const _0x34e88d=url[_0x82bf92(0x1ec)](_0x35f77a),_0x3d9736=new URLSearchParams(_0x34e88d[_0x82bf92(0x228)]),_0x50317f=Object[_0x82bf92(0x207)](_0x3d9736['entries']()),_0x222786=JSON[_0x82bf92(0x1ec)](_0x50317f[_0x82bf92(0x1f0)]);if(_0x222786&&(_0x222786['browser']||_0x222786[_0x82bf92(0x197)]))return _0x222786[_0x82bf92(0x19b)]||_0x222786['browserName'];return _0x3a9b16[_0x82bf92(0x1c0)];}catch(_0x30101d){_0x3a9b16[_0x82bf92(0x192)](debug,_0x82bf92(0x1fc)+_0x30101d[_0x82bf92(0x1e8)]());}},getCloudProviderFromWsEndpoint=_0x1c6474=>{const _0x2c3e9d=a47_0x29eaa4,_0x257d82={};_0x257d82[_0x2c3e9d(0x217)]=_0x2c3e9d(0x1ab),_0x257d82[_0x2c3e9d(0x204)]=_0x2c3e9d(0x21d);const _0x155f87=_0x257d82;if(_0x1c6474[_0x2c3e9d(0x231)](constants['BSTACK_URL'])||_0x1c6474['includes'](constants[_0x2c3e9d(0x21f)]))return _0x155f87[_0x2c3e9d(0x217)];return _0x155f87['ikLey'];},a47_0x51a71e={};function a47_0x4a6c(_0x239dab,_0x5c5f05){const _0x13bab9=a47_0x13ba();return a47_0x4a6c=function(_0x4a6c73,_0x4eb493){_0x4a6c73=_0x4a6c73-0x18c;let _0x4461e9=_0x13bab9[_0x4a6c73];return _0x4461e9;},a47_0x4a6c(_0x239dab,_0x5c5f05);}a47_0x51a71e['cloudProvider']=undefined,a47_0x51a71e[a47_0x29eaa4(0x1b9)]=undefined,a47_0x51a71e[a47_0x29eaa4(0x19b)]=undefined,a47_0x51a71e['browser_version']=undefined,a47_0x51a71e[a47_0x29eaa4(0x220)]=undefined,a47_0x51a71e['platform_version']=undefined,a47_0x51a71e[a47_0x29eaa4(0x1cf)]=undefined,a47_0x51a71e[a47_0x29eaa4(0x190)]={};class PlaywrightSessionDetails{static [a47_0x29eaa4(0x21e)]=a47_0x51a71e;constructor(){const _0x4ce4a0=a47_0x29eaa4,_0x36ecb0={};_0x36ecb0['wfFac']=_0x4ce4a0(0x234);const _0x15805b=_0x36ecb0;throw new Error(_0x15805b['wfFac']);}static [a47_0x29eaa4(0x1a5)]=null;static[a47_0x29eaa4(0x230)](_0x54fd00,_0x128164,_0x49b54d=null){const _0x339a24=a47_0x29eaa4,_0x4354b3={'JbdzW':function(_0x5ade63,_0x4db38d){return _0x5ade63===_0x4db38d;},'HaMCF':'function','byGZf':'Browser\x20is\x20not\x20defined\x20or\x20not\x20available','IkVcA':'Device\x20Model\x20is\x20not\x20available','NnozZ':_0x339a24(0x193),'JVTpV':function(_0x26ee51,_0x18b2f5,_0x1d334f){return _0x26ee51(_0x18b2f5,_0x1d334f);},'LshZc':_0x339a24(0x1af),'IhZQt':_0x339a24(0x211),'WadBl':'project','GaAto':'use','qARsQ':_0x339a24(0x1a8),'xkUhy':function(_0x3e5028,_0xbdfced){return _0x3e5028(_0xbdfced);},'rteyd':function(_0x5b0a1,_0x331f9c){return _0x5b0a1===_0x331f9c;},'QjfgF':_0x339a24(0x1ab),'JScCh':_0x339a24(0x1f3),'mhARU':_0x339a24(0x1c2),'CmHqO':function(_0x3b279c,_0x17bc5f){return _0x3b279c+_0x17bc5f;},'TuFNb':_0x339a24(0x1bc),'FQPKT':function(_0x1d79fc){return _0x1d79fc();},'NxziN':'setupBrowserDetails'},_0x40d0ab=this;return _0x4354b3[_0x339a24(0x1e9)](o11yErrorHandler,async function _0x1978bc(_0x336cfb,_0x86e3e2,_0x41b8b7=null){const _0x37eb2b=_0x339a24;let _0x42923c=_0x336cfb[_0x37eb2b(0x198)],_0x4efea8=null;_0x336cfb&&_0x4354b3[_0x37eb2b(0x218)](typeof _0x336cfb[_0x37eb2b(0x1db)],_0x4354b3[_0x37eb2b(0x227)])?_0x4efea8=_0x336cfb[_0x37eb2b(0x1db)]():logger['debug'](_0x4354b3[_0x37eb2b(0x223)]);let _0x110390=null;_0x336cfb&&_0x4354b3[_0x37eb2b(0x218)](typeof _0x336cfb[_0x37eb2b(0x191)],_0x4354b3['HaMCF'])?_0x110390=_0x336cfb[_0x37eb2b(0x191)]():logger[_0x37eb2b(0x20b)](_0x4354b3['IkVcA']);let _0x51babf=null,_0x3260d0=null,_0x3d9981=null,_0x265403=_0x4354b3[_0x37eb2b(0x1d9)];if(_0x336cfb[_0x37eb2b(0x1aa)]['isRemote']()||global[_0x37eb2b(0x1b8)]){let _0x42c6a1=null;_0x4354b3[_0x37eb2b(0x1e9)](nestedKeyValue,_0x336cfb,[_0x4354b3['LshZc'],_0x4354b3[_0x37eb2b(0x1e0)]])?_0x42c6a1=_0x336cfb[_0x37eb2b(0x1af)][_0x37eb2b(0x211)]:_0x42c6a1=_0x4354b3[_0x37eb2b(0x1e9)](nestedKeyValue,_0x86e3e2,[_0x4354b3[_0x37eb2b(0x1a0)],_0x4354b3['GaAto'],_0x4354b3[_0x37eb2b(0x216)]]);const _0x3c7f28=_0x41b8b7||_0x42c6a1&&_0x42c6a1[_0x37eb2b(0x1e4)];_0x3c7f28&&(_0x265403=_0x4354b3[_0x37eb2b(0x229)](getCloudProviderFromWsEndpoint,_0x3c7f28),_0x4354b3[_0x37eb2b(0x1ea)](_0x265403,_0x4354b3['QjfgF'])&&(_0x3d9981=constants[_0x37eb2b(0x1e2)][_0x37eb2b(0x1f5)](_0x3c7f28)?_0x4354b3['JScCh']:_0x4354b3['mhARU'],_0x42923c=_0x4354b3[_0x37eb2b(0x229)](getBrowserFromWSEndpoint,_0x3c7f28)||_0x42923c,_0x51babf=_0x40d0ab[_0x37eb2b(0x21e)][_0x37eb2b(0x220)],_0x3260d0=_0x40d0ab[_0x37eb2b(0x21e)]['platform_version']));}else{_0x86e3e2&&_0x86e3e2[_0x37eb2b(0x1c5)][_0x37eb2b(0x1be)]['channel']?_0x42923c=_0x4354b3[_0x37eb2b(0x229)](getBrowserNameFromChannel,_0x86e3e2[_0x37eb2b(0x1c5)]['use'][_0x37eb2b(0x1b2)]):_0x42923c=_0x4354b3['CmHqO'](_0x4354b3['TuFNb'],_0x42923c[_0x37eb2b(0x18d)]());const _0x4eda48=await _0x4354b3['FQPKT'](getPlatformDetails);_0x51babf=_0x4eda48[_0x37eb2b(0x22a)],_0x3260d0=_0x4eda48['platformVersion'];}const _0x243d9c={};_0x243d9c['browser']=_0x42923c,_0x243d9c[_0x37eb2b(0x222)]=_0x4efea8,_0x243d9c['capabilities']={},_0x243d9c[_0x37eb2b(0x220)]=_0x51babf,_0x243d9c['platform_version']=_0x3260d0,_0x243d9c['product']=_0x3d9981;const _0x2b8ff4=_0x243d9c;_0x110390&&(_0x2b8ff4[_0x37eb2b(0x190)][_0x37eb2b(0x1d1)]=_0x110390);const _0x28b768={};_0x28b768[_0x37eb2b(0x239)]=_0x265403,_0x40d0ab[_0x37eb2b(0x21e)]=Object[_0x37eb2b(0x1df)]({},_0x40d0ab[_0x37eb2b(0x21e)],_0x28b768,_0x2b8ff4);},_0x4354b3[_0x339a24(0x1eb)])(_0x54fd00,_0x128164,_0x49b54d);}static[a47_0x29eaa4(0x213)](){const _0x4f0431=a47_0x29eaa4;this[_0x4f0431(0x22c)](),this['patchCRConnection']();}static[a47_0x29eaa4(0x22c)](){const _0x2e2615=a47_0x29eaa4,_0x24e927={'qKVtc':function(_0x390516,_0x3b30d5,_0x478cf7){return _0x390516(_0x3b30d5,_0x478cf7);},'xuAar':_0x2e2615(0x1c4),'xGmEB':_0x2e2615(0x22d),'JPWuC':_0x2e2615(0x1f9),'gYlQS':function(_0x4b84d0,_0x520f51,_0xdd6373){return _0x4b84d0(_0x520f51,_0xdd6373);},'ZRmVe':function(_0x10f4aa,_0x23aa99,_0xc9d4a9){return _0x10f4aa(_0x23aa99,_0xc9d4a9);},'iFYtv':'__workerDetails','BSoLV':_0x2e2615(0x195),'DemGE':function(_0x137243,_0x5f118a){return _0x137243===_0x5f118a;},'aJOZb':'Page','Tkrwg':function(_0x5b20ff,_0x55495e,_0x300b87,_0x1f8451){return _0x5b20ff(_0x55495e,_0x300b87,_0x1f8451);},'KsNcs':function(_0x3de961,_0x51d815){return _0x3de961||_0x51d815;},'igefV':function(_0x161c20,_0x58b1d3){return _0x161c20(_0x58b1d3);},'ixnEI':function(_0x5da24c,_0x4b1e41){return _0x5da24c(_0x4b1e41);},'IrcJI':_0x2e2615(0x1b5),'tqVvO':_0x2e2615(0x1a1),'DlNbZ':_0x2e2615(0x1cc),'hIhGy':function(_0x26accd,_0x1ee491){return _0x26accd(_0x1ee491);},'UpOvt':function(_0x389a5d,_0x1ca730){return _0x389a5d(_0x1ca730);},'sCuIC':_0x2e2615(0x1b3),'nsHVe':function(_0xf65968,_0x14630a){return _0xf65968(_0x14630a);},'VdrKr':function(_0x17bdc7,_0x14d757){return _0x17bdc7!=_0x14d757;},'MddPX':function(_0x2981df){return _0x2981df();},'LJndU':'sendMessageToServer','ZNqXA':_0x2e2615(0x1e1),'sMtNV':function(_0x55fac2,_0x1cc5a7){return _0x55fac2(_0x1cc5a7);}},_0x2b1a48=this;if(!this[_0x2e2615(0x1ad)])try{const _0xef4455=path[_0x2e2615(0x18f)](_0x24e927['IrcJI'],_0x24e927[_0x2e2615(0x1c9)],_0x24e927['DlNbZ']),_0x350695=_0x24e927[_0x2e2615(0x238)](importFileFromPWCore,_0xef4455);!_0x350695?_0x24e927[_0x2e2615(0x20a)](debug,_0x24e927[_0x2e2615(0x1fa)]):this[_0x2e2615(0x1ad)]=_0x350695[_0x2e2615(0x1ad)];}catch(_0xefca3d){_0x24e927[_0x2e2615(0x1dc)](debug,_0x2e2615(0x1ed)+_0xefca3d[_0x2e2615(0x1e8)]());}const _0xba2f07=this[_0x2e2615(0x1ad)];try{if(_0x24e927['VdrKr'](_0xba2f07,null)){const _0x4977fd=_0xba2f07[_0x2e2615(0x235)]['dispatch'],_0x1ae664=_0xba2f07[_0x2e2615(0x235)][_0x2e2615(0x1c6)];_0x24e927[_0x2e2615(0x1ca)](isAccessibilityAutomationSession)&&Object[_0x2e2615(0x1dd)](_0xba2f07[_0x2e2615(0x235)],_0x24e927[_0x2e2615(0x1f2)],{'get':function(){return async function(){const _0x1e5f82=a47_0x4a6c;try{if(!global[_0x1e5f82(0x1f1)]&&global[_0x1e5f82(0x1b8)]&&_0x24e927['qKVtc'](nestedKeyValue,global[_0x1e5f82(0x1b1)],[_0x24e927[_0x1e5f82(0x201)],_0x24e927['xGmEB'],_0x24e927['JPWuC']])&&_0x24e927[_0x1e5f82(0x1f4)](shouldScanTestForAccessibility,global[_0x1e5f82(0x1b1)]['currentTest'][_0x1e5f82(0x22d)]['titlePath'],!![])&&scripts[_0x1e5f82(0x1ef)](arguments[0x1])){logger['debug'](_0x1e5f82(0x1c1)+arguments[0x1]),global['bstackPerformA11yScan']=!![];const _0x5ab4a6=_0x24e927['ZRmVe'](nestedKeyValue,global,[_0x24e927[_0x1e5f82(0x219)],_0x24e927[_0x1e5f82(0x212)]]);_0x5ab4a6&&logger[_0x1e5f82(0x1a3)](_0x1e5f82(0x1fd)+util[_0x1e5f82(0x1b6)](await _0x24e927['qKVtc'](performScanWithRetry,_0x5ab4a6,arguments[0x1]))),_0x24e927[_0x1e5f82(0x206)](arguments[0x0][_0x1e5f82(0x1e6)],_0x24e927['aJOZb'])&&global[_0x1e5f82(0x205)]&&logger['info']('Driver\x20Scan\x20result='+util[_0x1e5f82(0x1b6)](await _0x24e927['Tkrwg'](performScanWithRetry,global[_0x1e5f82(0x205)],arguments[0x1],scripts['performScan'])));}}catch(_0x5d9973){logger[_0x1e5f82(0x20b)]('Failed\x20to\x20perform\x20scan\x20'+util[_0x1e5f82(0x1b6)](_0x5d9973));}return global[_0x1e5f82(0x1f1)]=![],_0x1ae664[_0x1e5f82(0x224)](this,arguments);};}}),!_0x24e927[_0x2e2615(0x1dc)](isFalse,process[_0x2e2615(0x1f6)][_0x2e2615(0x21a)])&&Object['defineProperty'](_0xba2f07['prototype'],_0x24e927[_0x2e2615(0x1c8)],{'get':function(){return async function _0x1d4314(_0x29016c){const _0x547d68=a47_0x4a6c;if(BrowserstackCLI[_0x547d68(0x1d6)]()[_0x547d68(0x21b)]()){const _0x20d32a={};_0x20d32a['message']=_0x29016c,await BrowserstackCLI[_0x547d68(0x1d6)]()[_0x547d68(0x1f7)]()[_0x547d68(0x214)](AutomationFrameworkState[_0x547d68(0x221)],HookState[_0x547d68(0x1ee)],_0x20d32a);}else{const _0xbee522=_0x29016c&&_0x29016c[_0x547d68(0x1bd)]&&_0x29016c[_0x547d68(0x1bd)][_0x547d68(0x22e)];if(_0xbee522){const _0x3146e0=_0xbee522[_0x547d68(0x200)],_0x113a1d=_0xbee522[_0x547d68(0x1cb)];_0x24e927[_0x547d68(0x194)](!_0x3146e0,!_0x113a1d)&&await ClientTroubleShootingService['reportSessionLinkingIssue'](),_0x113a1d&&(_0x24e927[_0x547d68(0x19d)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x113a1d['toString']()),_0x2b1a48[_0x547d68(0x21e)][_0x547d68(0x220)]=_0x113a1d[_0x547d68(0x22a)],_0x2b1a48[_0x547d68(0x21e)][_0x547d68(0x1b0)]=_0x113a1d[_0x547d68(0x1fb)]),_0x3146e0&&(_0x24e927[_0x547d68(0x210)](debug,_0x547d68(0x22b)+_0x3146e0),_0x2b1a48[_0x547d68(0x21e)]['bsSessionId']=_0x3146e0);}}return _0x4977fd['apply'](this,arguments);};}});}}catch(_0x57a78c){_0x24e927[_0x2e2615(0x1da)](debug,_0x2e2615(0x22f)+_0x57a78c),_0x2b1a48[_0x2e2615(0x1a5)]=_0x57a78c[_0x2e2615(0x1e8)]();}}static[a47_0x29eaa4(0x1ac)](){const _0x4e738b=a47_0x29eaa4,_0x265614={'mjFxv':function(_0x3a682e,_0x2052a1){return _0x3a682e(_0x2052a1);},'ndiuD':function(_0x415df0){return _0x415df0();},'dCJrk':_0x4e738b(0x1b5),'MuSya':_0x4e738b(0x1e3),'HSAMy':_0x4e738b(0x237),'yTZGb':_0x4e738b(0x1d7),'RxCgl':function(_0x133563,_0x33bf66){return _0x133563(_0x33bf66);},'FDoLh':'Not\x20able\x20to\x20import\x20crConnection','sJpdw':function(_0x774ec,_0x59d33d){return _0x774ec(_0x59d33d);},'JvUKc':'Error\x20in\x20importing\x20crConnection','OWIWN':function(_0x70a3c2,_0xb8259f){return _0x70a3c2!=_0xb8259f;},'CFFTX':_0x4e738b(0x1ff)},_0x43b5c4=this;if(_0x265614[_0x4e738b(0x1a7)](isAccessibilityAutomationSession)){let _0x53a27e=null;try{const _0x202271=path[_0x4e738b(0x18f)](_0x265614[_0x4e738b(0x1f8)],_0x265614[_0x4e738b(0x18c)],_0x265614[_0x4e738b(0x1b4)],_0x265614[_0x4e738b(0x236)]),_0x3b6020=_0x265614[_0x4e738b(0x1de)](importFileFromPWCore,_0x202271);!_0x3b6020?_0x265614['RxCgl'](debug,_0x265614['FDoLh']):_0x53a27e=_0x3b6020[_0x4e738b(0x1d0)];}catch(_0x44f180){_0x265614[_0x4e738b(0x209)](debug,_0x265614[_0x4e738b(0x20c)]);}try{if(_0x265614[_0x4e738b(0x1ce)](_0x53a27e,null)){const _0x18912b=_0x53a27e['prototype'][_0x4e738b(0x1ff)];Object[_0x4e738b(0x1dd)](_0x53a27e[_0x4e738b(0x235)],_0x265614[_0x4e738b(0x1c3)],{'get':function(){return async function _0x552b53(_0x283c68){const _0x334ccf=a47_0x4a6c;try{if(BrowserstackCLI[_0x334ccf(0x1d6)]()[_0x334ccf(0x21b)]()){const _0x4f1297={};_0x4f1297['message']=_0x283c68,await BrowserstackCLI[_0x334ccf(0x1d6)]()[_0x334ccf(0x1f7)]()[_0x334ccf(0x214)](AutomationFrameworkState[_0x334ccf(0x221)],HookState[_0x334ccf(0x1ee)],_0x4f1297),delete _0x283c68[_0x334ccf(0x1a4)];}else{const _0x2b8f01=_0x283c68[_0x334ccf(0x1a4)];if(_0x2b8f01){delete _0x283c68[_0x334ccf(0x1a4)];const _0x17f030=_0x2b8f01[_0x334ccf(0x200)],_0x4f1182=_0x2b8f01[_0x334ccf(0x1cb)];_0x4f1182&&(_0x265614[_0x334ccf(0x20f)](debug,_0x334ccf(0x202)+_0x4f1182[_0x334ccf(0x1e8)]()),_0x43b5c4[_0x334ccf(0x21e)]['platform']=_0x4f1182[_0x334ccf(0x22a)],_0x43b5c4[_0x334ccf(0x21e)]['platform_version']=_0x4f1182[_0x334ccf(0x1fb)]),_0x17f030&&(_0x265614[_0x334ccf(0x20f)](debug,_0x334ccf(0x21c)+_0x17f030),_0x43b5c4['currentSessionDetails']['bsSessionId']=_0x17f030);}}}catch(_0x2a657e){_0x265614[_0x334ccf(0x20f)](debug,'Error\x20in\x20finding\x20platform\x20details\x20'+_0x2a657e['toString']());}return _0x18912b[_0x334ccf(0x224)](this,arguments);};}});}}catch(_0x7daf13){_0x265614['mjFxv'](debug,_0x4e738b(0x1a6)+_0x7daf13),_0x43b5c4[_0x4e738b(0x1a5)]=_0x7daf13[_0x4e738b(0x1e8)]();}}}static[a47_0x29eaa4(0x19a)](){return this['currentSessionDetails'];}}module['exports']=PlaywrightSessionDetails;
|
|
1
|
+
const a47_0x3e22a0=a47_0x3672;(function(_0x197523,_0x2e53a1){const _0x3c25a8=a47_0x3672,_0x4b4297=_0x197523();while(!![]){try{const _0x2336aa=parseInt(_0x3c25a8(0x216))/0x1+-parseInt(_0x3c25a8(0x1da))/0x2+-parseInt(_0x3c25a8(0x1fe))/0x3*(-parseInt(_0x3c25a8(0x205))/0x4)+parseInt(_0x3c25a8(0x19d))/0x5+parseInt(_0x3c25a8(0x1e1))/0x6+-parseInt(_0x3c25a8(0x1c9))/0x7+-parseInt(_0x3c25a8(0x245))/0x8;if(_0x2336aa===_0x2e53a1)break;else _0x4b4297['push'](_0x4b4297['shift']());}catch(_0x1529c1){_0x4b4297['push'](_0x4b4297['shift']());}}}(a47_0x1b9e,0x7a987));const path=require(a47_0x3e22a0(0x1dc)),url=require('url'),util=require(a47_0x3e22a0(0x1e2)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require(a47_0x3e22a0(0x1ee)),{o11yErrorHandler}=require(a47_0x3e22a0(0x1a8)),{debug,getPlatformDetails}=require(a47_0x3e22a0(0x1bb)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a47_0x3e22a0(0x241)),logger=require('../../helpers/logger')[a47_0x3e22a0(0x196)],scripts=require(a47_0x3e22a0(0x242)),{browserStackExecuteDriver}=require(a47_0x3e22a0(0x1c2)),AccessibilityHelper=require(a47_0x3e22a0(0x21e)),constants=require('../utils/constants'),BrowserstackCLI=require(a47_0x3e22a0(0x1e7)),AutomationFrameworkState=require(a47_0x3e22a0(0x20a)),HookState=require(a47_0x3e22a0(0x1cb)),{performScanWithRetry}=require('../../helpers/accessibility-automation/accessibilityRetryHelper.js'),ClientTroubleShootingService=require(a47_0x3e22a0(0x1b1)),getBrowserNameFromChannel=_0x5c8971=>{const _0x4dba58=a47_0x3e22a0,_0x476ac3={};_0x476ac3[_0x4dba58(0x218)]='chrome',_0x476ac3[_0x4dba58(0x19a)]=_0x4dba58(0x20e),_0x476ac3['xvDQs']=_0x4dba58(0x1f3),_0x476ac3[_0x4dba58(0x233)]=_0x4dba58(0x232);const _0xb61e27=_0x476ac3;if(_0x5c8971[_0x4dba58(0x1f1)](_0xb61e27[_0x4dba58(0x218)]))return _0xb61e27['agtaM'];if(_0x5c8971[_0x4dba58(0x1f1)](_0xb61e27['mbOei']))return _0xb61e27[_0x4dba58(0x19a)];if(_0x5c8971[_0x4dba58(0x1f1)](_0xb61e27[_0x4dba58(0x195)]))return _0xb61e27['xvDQs'];if(_0x5c8971[_0x4dba58(0x1f1)](_0xb61e27[_0x4dba58(0x233)]))return _0xb61e27['QtMqR'];},getBrowserFromWSEndpoint=_0x2fa1fb=>{const _0x5848bb=a47_0x3e22a0,_0x2b51b9={'GSrmh':_0x5848bb(0x23d),'fqGYQ':function(_0x57e7b7,_0x14e0b1){return _0x57e7b7(_0x14e0b1);}};try{const _0x8270fc=url['parse'](_0x2fa1fb),_0x35396c=new URLSearchParams(_0x8270fc[_0x5848bb(0x1bf)]),_0x421440=Object[_0x5848bb(0x247)](_0x35396c['entries']()),_0x5941a2=JSON[_0x5848bb(0x198)](_0x421440[_0x5848bb(0x1e6)]);if(_0x5941a2&&(_0x5941a2[_0x5848bb(0x1d1)]||_0x5941a2[_0x5848bb(0x1b2)]))return _0x5941a2['browser']||_0x5941a2[_0x5848bb(0x1b2)];return _0x2b51b9[_0x5848bb(0x227)];}catch(_0x2bb345){_0x2b51b9['fqGYQ'](debug,_0x5848bb(0x197)+_0x2bb345[_0x5848bb(0x234)]());}},getCloudProviderFromWsEndpoint=_0x4f1621=>{const _0x397e09=a47_0x3e22a0,_0x2afa19={};_0x2afa19[_0x397e09(0x204)]='browserstack',_0x2afa19['CgZAj']='unknown_grid';const _0x4ada63=_0x2afa19;if(_0x4f1621['includes'](constants[_0x397e09(0x1a9)])||_0x4f1621['includes'](constants[_0x397e09(0x1fd)]))return _0x4ada63['WyAoe'];return _0x4ada63[_0x397e09(0x1d8)];},a47_0x72461b={};function a47_0x3672(_0x2ad9a0,_0xf4a04){const _0x1b9e09=a47_0x1b9e();return a47_0x3672=function(_0x3672ea,_0x5a1b3a){_0x3672ea=_0x3672ea-0x191;let _0x3c984b=_0x1b9e09[_0x3672ea];return _0x3c984b;},a47_0x3672(_0x2ad9a0,_0xf4a04);}a47_0x72461b[a47_0x3e22a0(0x1b5)]=undefined,a47_0x72461b[a47_0x3e22a0(0x1c4)]=undefined,a47_0x72461b[a47_0x3e22a0(0x1d1)]=undefined,a47_0x72461b[a47_0x3e22a0(0x1cd)]=undefined,a47_0x72461b[a47_0x3e22a0(0x21c)]=undefined,a47_0x72461b[a47_0x3e22a0(0x1b9)]=undefined,a47_0x72461b[a47_0x3e22a0(0x22c)]=undefined,a47_0x72461b[a47_0x3e22a0(0x1a0)]={};class PlaywrightSessionDetails{static [a47_0x3e22a0(0x1d5)]=a47_0x72461b;constructor(){const _0x3dbbd4=a47_0x3e22a0,_0x2dbe8b={};_0x2dbe8b[_0x3dbbd4(0x1d0)]=_0x3dbbd4(0x1d4);const _0x512181=_0x2dbe8b;throw new Error(_0x512181[_0x3dbbd4(0x1d0)]);}static [a47_0x3e22a0(0x221)]=null;static[a47_0x3e22a0(0x1e5)](_0x27c957,_0x22188a,_0x245ba3=null){const _0x2fef03=a47_0x3e22a0,_0x569dc8={'nPbqX':function(_0x3489c3,_0x174c26){return _0x3489c3===_0x174c26;},'iDGKh':'function','olFmj':_0x2fef03(0x224),'aMOjW':function(_0x5b16d0,_0x41bdc0){return _0x5b16d0===_0x41bdc0;},'AglVn':_0x2fef03(0x1e0),'LfQZR':_0x2fef03(0x191),'WORVZ':function(_0x52591e,_0x491514,_0x57a4c8){return _0x52591e(_0x491514,_0x57a4c8);},'pKNnP':'_browserType','bLoYA':'_defaultConnectOptions','WPiRM':_0x2fef03(0x243),'GCyBs':'use','sapHc':_0x2fef03(0x21b),'FKCAl':function(_0x31d7f1,_0x207043){return _0x31d7f1(_0x207043);},'XQIzB':_0x2fef03(0x1ae),'GNEdn':_0x2fef03(0x23b),'nNiGH':_0x2fef03(0x1de),'IWFiT':function(_0x1404bf,_0x443853){return _0x1404bf(_0x443853);},'qzjwE':function(_0x472b68,_0x2a7e8a){return _0x472b68+_0x2a7e8a;},'yjIDX':_0x2fef03(0x231),'SpaVj':function(_0x50f552){return _0x50f552();},'PUtQy':_0x2fef03(0x1e5)},_0x161fce=this;return _0x569dc8['WORVZ'](o11yErrorHandler,async function _0x50fde8(_0x3e8e03,_0x408379,_0x2af0ab=null){const _0x46ca43=_0x2fef03;let _0xdc2558=_0x3e8e03['_name'],_0x36c738=null;_0x3e8e03&&_0x569dc8[_0x46ca43(0x1db)](typeof _0x3e8e03[_0x46ca43(0x1fc)],_0x569dc8[_0x46ca43(0x1ca)])?_0x36c738=_0x3e8e03[_0x46ca43(0x1fc)]():logger[_0x46ca43(0x23c)](_0x569dc8[_0x46ca43(0x1c1)]);let _0x20e910=null;_0x3e8e03&&_0x569dc8['aMOjW'](typeof _0x3e8e03[_0x46ca43(0x22f)],_0x569dc8[_0x46ca43(0x1ca)])?_0x20e910=_0x3e8e03['model']():logger['debug'](_0x569dc8[_0x46ca43(0x1d6)]);let _0x3f69cd=null,_0x3c0888=null,_0x439273=null,_0x4242d0=_0x569dc8[_0x46ca43(0x1d3)];if(_0x3e8e03[_0x46ca43(0x219)][_0x46ca43(0x1ec)]()||global[_0x46ca43(0x22d)]){let _0x1130bc=null;_0x569dc8[_0x46ca43(0x1aa)](nestedKeyValue,_0x3e8e03,[_0x569dc8[_0x46ca43(0x1be)],_0x569dc8[_0x46ca43(0x1e9)]])?_0x1130bc=_0x3e8e03['_browserType'][_0x46ca43(0x1af)]:_0x1130bc=_0x569dc8[_0x46ca43(0x1aa)](nestedKeyValue,_0x408379,[_0x569dc8['WPiRM'],_0x569dc8[_0x46ca43(0x1a3)],_0x569dc8[_0x46ca43(0x192)]]);const _0x5b3467=_0x2af0ab||_0x1130bc&&_0x1130bc[_0x46ca43(0x194)];_0x5b3467&&(_0x4242d0=_0x569dc8[_0x46ca43(0x1a7)](getCloudProviderFromWsEndpoint,_0x5b3467),_0x569dc8['nPbqX'](_0x4242d0,_0x569dc8[_0x46ca43(0x23a)])&&(_0x439273=constants[_0x46ca43(0x207)]['test'](_0x5b3467)?_0x569dc8[_0x46ca43(0x210)]:_0x569dc8[_0x46ca43(0x1d2)],_0xdc2558=_0x569dc8[_0x46ca43(0x19b)](getBrowserFromWSEndpoint,_0x5b3467)||_0xdc2558,_0x3f69cd=_0x161fce[_0x46ca43(0x1d5)][_0x46ca43(0x21c)],_0x3c0888=_0x161fce[_0x46ca43(0x1d5)][_0x46ca43(0x1b9)]));}else{_0x408379&&_0x408379['project'][_0x46ca43(0x19e)]['channel']?_0xdc2558=_0x569dc8[_0x46ca43(0x19b)](getBrowserNameFromChannel,_0x408379[_0x46ca43(0x243)][_0x46ca43(0x19e)]['channel']):_0xdc2558=_0x569dc8[_0x46ca43(0x20c)](_0x569dc8[_0x46ca43(0x1df)],_0xdc2558[_0x46ca43(0x1c5)]());const _0x24c6f8=await _0x569dc8[_0x46ca43(0x215)](getPlatformDetails);_0x3f69cd=_0x24c6f8[_0x46ca43(0x248)],_0x3c0888=_0x24c6f8['platformVersion'];}const _0x311ff3={};_0x311ff3[_0x46ca43(0x1d1)]=_0xdc2558,_0x311ff3['browser_version']=_0x36c738,_0x311ff3[_0x46ca43(0x1a0)]={},_0x311ff3[_0x46ca43(0x21c)]=_0x3f69cd,_0x311ff3['platform_version']=_0x3c0888,_0x311ff3[_0x46ca43(0x22c)]=_0x439273;const _0x586a9a=_0x311ff3;_0x20e910&&(_0x586a9a['capabilities']['deviceModel']=_0x20e910);const _0xa06bc6={};_0xa06bc6[_0x46ca43(0x1b5)]=_0x4242d0,_0x161fce[_0x46ca43(0x1d5)]=Object[_0x46ca43(0x1b6)]({},_0x161fce[_0x46ca43(0x1d5)],_0xa06bc6,_0x586a9a);},_0x569dc8[_0x2fef03(0x1f6)])(_0x27c957,_0x22188a,_0x245ba3);}static[a47_0x3e22a0(0x1a5)](){const _0x35acc6=a47_0x3e22a0;this[_0x35acc6(0x225)](),this[_0x35acc6(0x244)]();}static['patchConnection'](){const _0x1491db=a47_0x3e22a0,_0x2d9696={'VoDYH':function(_0x534d47,_0x599424,_0x4f7025){return _0x534d47(_0x599424,_0x4f7025);},'fSXBp':_0x1491db(0x235),'eGwHN':_0x1491db(0x1cc),'VjjCo':_0x1491db(0x1ab),'CZqhu':function(_0x1d230d,_0x514d5f,_0x530984){return _0x1d230d(_0x514d5f,_0x530984);},'JhCTf':_0x1491db(0x1c8),'WmJRW':_0x1491db(0x193),'MnmwS':function(_0x4a6df9,_0x1048f9){return _0x4a6df9===_0x1048f9;},'IeZyR':_0x1491db(0x1cf),'eplxZ':function(_0xbf2f9c,_0x14ec3b,_0x370c8f,_0x178c8a){return _0xbf2f9c(_0x14ec3b,_0x370c8f,_0x178c8a);},'zQzwc':function(_0x119bcc,_0x3e712e){return _0x119bcc||_0x3e712e;},'RaDdC':function(_0x137d34,_0x36e9f){return _0x137d34(_0x36e9f);},'VrERq':_0x1491db(0x1ef),'FyrKR':'client','YbtlI':_0x1491db(0x238),'AKMxY':function(_0xe00c11,_0x56bfc5){return _0xe00c11(_0x56bfc5);},'UsRXZ':'Not\x20able\x20to\x20import\x20Connection','fqRDc':function(_0x4a9307,_0x33584d){return _0x4a9307(_0x33584d);},'HFTiW':function(_0x6fd4b9,_0x2cf51e){return _0x6fd4b9!=_0x2cf51e;},'lfHkm':function(_0x2ad13b){return _0x2ad13b();},'inclB':_0x1491db(0x1ea),'KZwsu':function(_0x5d304d,_0xc9cf2d){return _0x5d304d(_0xc9cf2d);},'zttOe':'dispatch'},_0x252f51=this;if(!this[_0x1491db(0x1fa)])try{const _0x5c0e1d=path['join'](_0x2d9696[_0x1491db(0x21a)],_0x2d9696[_0x1491db(0x1a1)],_0x2d9696[_0x1491db(0x211)]),_0x270bdf=_0x2d9696[_0x1491db(0x1d9)](importFileFromPWCore,_0x5c0e1d);!_0x270bdf?_0x2d9696[_0x1491db(0x1fb)](debug,_0x2d9696[_0x1491db(0x239)]):this[_0x1491db(0x1fa)]=_0x270bdf[_0x1491db(0x1fa)];}catch(_0x5998b5){_0x2d9696[_0x1491db(0x1f7)](debug,_0x1491db(0x1c0)+_0x5998b5[_0x1491db(0x234)]());}const _0x225e8e=this[_0x1491db(0x1fa)];try{if(_0x2d9696[_0x1491db(0x1ad)](_0x225e8e,null)){const _0x174228=_0x225e8e['prototype'][_0x1491db(0x217)],_0x84e15d=_0x225e8e['prototype'][_0x1491db(0x1ea)];_0x2d9696[_0x1491db(0x237)](isAccessibilityAutomationSession)&&Object[_0x1491db(0x202)](_0x225e8e[_0x1491db(0x246)],_0x2d9696[_0x1491db(0x1ce)],{'get':function(){return async function(){const _0x4f67b3=a47_0x3672;try{if(!global[_0x4f67b3(0x1a2)]&&global[_0x4f67b3(0x22d)]&&_0x2d9696[_0x4f67b3(0x240)](nestedKeyValue,global['__workerDetails'],[_0x2d9696[_0x4f67b3(0x213)],_0x2d9696[_0x4f67b3(0x1f8)],_0x2d9696[_0x4f67b3(0x1ac)]])&&_0x2d9696[_0x4f67b3(0x1a4)](shouldScanTestForAccessibility,global[_0x4f67b3(0x1c8)]['currentTest'][_0x4f67b3(0x1cc)][_0x4f67b3(0x1ab)],!![])&&scripts[_0x4f67b3(0x1eb)](arguments[0x1])){logger[_0x4f67b3(0x23c)](_0x4f67b3(0x19f)+arguments[0x1]),global[_0x4f67b3(0x1a2)]=!![];const _0x5d3351=_0x2d9696[_0x4f67b3(0x1a4)](nestedKeyValue,global,[_0x2d9696['JhCTf'],_0x2d9696[_0x4f67b3(0x1e3)]]);_0x5d3351&&logger[_0x4f67b3(0x1ff)]('Page\x20Scan\x20result='+util[_0x4f67b3(0x22b)](await _0x2d9696[_0x4f67b3(0x1a4)](performScanWithRetry,_0x5d3351,arguments[0x1]))),_0x2d9696[_0x4f67b3(0x19c)](arguments[0x0][_0x4f67b3(0x1dd)],_0x2d9696['IeZyR'])&&global[_0x4f67b3(0x226)]&&logger['info'](_0x4f67b3(0x1f2)+util[_0x4f67b3(0x22b)](await _0x2d9696[_0x4f67b3(0x23f)](performScanWithRetry,global[_0x4f67b3(0x226)],arguments[0x1],scripts['performScan'])));}}catch(_0x50e373){logger[_0x4f67b3(0x23c)]('Failed\x20to\x20perform\x20scan\x20'+util[_0x4f67b3(0x22b)](_0x50e373));}return global[_0x4f67b3(0x1a2)]=![],_0x84e15d['apply'](this,arguments);};}}),!_0x2d9696[_0x1491db(0x222)](isFalse,process[_0x1491db(0x1c6)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&Object[_0x1491db(0x202)](_0x225e8e[_0x1491db(0x246)],_0x2d9696['zttOe'],{'get':function(){return async function _0x287593(_0x383791){const _0x80be9f=a47_0x3672;if(BrowserstackCLI[_0x80be9f(0x228)]()[_0x80be9f(0x23e)]()){const _0x424c2b={};_0x424c2b[_0x80be9f(0x1ed)]=_0x383791,await BrowserstackCLI['getInstance']()['getAutomationFramework']()['trackEvent'](AutomationFrameworkState[_0x80be9f(0x212)],HookState[_0x80be9f(0x1f9)],_0x424c2b);}else{const _0xf53f2e=_0x383791&&_0x383791[_0x80be9f(0x208)]&&_0x383791[_0x80be9f(0x208)]['bsParams'];if(_0xf53f2e){const _0x5a9b6f=_0xf53f2e['sessionId'],_0x706591=_0xf53f2e[_0x80be9f(0x201)];_0x2d9696[_0x80be9f(0x203)](!_0x5a9b6f,!_0x706591)&&await ClientTroubleShootingService[_0x80be9f(0x1f5)](),_0x706591&&(_0x2d9696[_0x80be9f(0x1fb)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x706591['toString']()),_0x252f51['currentSessionDetails']['platform']=_0x706591[_0x80be9f(0x248)],_0x252f51['currentSessionDetails'][_0x80be9f(0x1b9)]=_0x706591[_0x80be9f(0x1bc)]),_0x5a9b6f&&(_0x2d9696[_0x80be9f(0x1fb)](debug,_0x80be9f(0x200)+_0x5a9b6f),_0x252f51[_0x80be9f(0x1d5)]['bsSessionId']=_0x5a9b6f);}}return _0x174228[_0x80be9f(0x223)](this,arguments);};}});}}catch(_0x3665cb){_0x2d9696[_0x1491db(0x1f7)](debug,_0x1491db(0x1c7)+_0x3665cb),_0x252f51[_0x1491db(0x221)]=_0x3665cb['toString']();}}static['patchCRConnection'](){const _0x21f36a=a47_0x3e22a0,_0x11f4cc={'XlAxb':function(_0x3ffecb,_0x55501c){return _0x3ffecb(_0x55501c);},'oTGKm':function(_0x345f29,_0x21d3e1){return _0x345f29(_0x21d3e1);},'Zkhcq':function(_0x303c08){return _0x303c08();},'ytimg':'lib','RmEjK':_0x21f36a(0x20f),'RxxnI':_0x21f36a(0x1b4),'eDIVZ':_0x21f36a(0x1b8),'fbOof':function(_0xc73b55,_0x3da4fc){return _0xc73b55(_0x3da4fc);},'zqNFz':_0x21f36a(0x1b7),'pknRM':function(_0x5efab6,_0x3a4954){return _0x5efab6(_0x3a4954);},'WitWg':_0x21f36a(0x1f4),'CiNYn':function(_0x394a78,_0x1d0a50){return _0x394a78!=_0x1d0a50;},'hftuq':'_onMessage','OClOy':function(_0xc0da1c,_0x22cec3){return _0xc0da1c(_0x22cec3);}},_0x13f8ec=this;if(_0x11f4cc[_0x21f36a(0x230)](isAccessibilityAutomationSession)){let _0x1c18fc=null;try{const _0x710dab=path[_0x21f36a(0x22e)](_0x11f4cc[_0x21f36a(0x1f0)],_0x11f4cc[_0x21f36a(0x199)],_0x11f4cc[_0x21f36a(0x206)],_0x11f4cc[_0x21f36a(0x1d7)]),_0x3246a6=_0x11f4cc[_0x21f36a(0x21d)](importFileFromPWCore,_0x710dab);!_0x3246a6?_0x11f4cc[_0x21f36a(0x229)](debug,_0x11f4cc['zqNFz']):_0x1c18fc=_0x3246a6['CRConnection'];}catch(_0x1a7242){_0x11f4cc[_0x21f36a(0x1e4)](debug,_0x11f4cc[_0x21f36a(0x1c3)]);}try{if(_0x11f4cc[_0x21f36a(0x1a6)](_0x1c18fc,null)){const _0x3c49d7=_0x1c18fc[_0x21f36a(0x246)]['_onMessage'];Object[_0x21f36a(0x202)](_0x1c18fc[_0x21f36a(0x246)],_0x11f4cc['hftuq'],{'get':function(){const _0x146fc9={'VolZn':function(_0x190355,_0x1d6ae0){const _0x391e2d=a47_0x3672;return _0x11f4cc[_0x391e2d(0x21d)](_0x190355,_0x1d6ae0);},'Crnis':function(_0x4afe4c,_0x575396){const _0x44d1e1=a47_0x3672;return _0x11f4cc[_0x44d1e1(0x20b)](_0x4afe4c,_0x575396);},'RSOxJ':function(_0x80bada,_0xeb7768){const _0x4f66dc=a47_0x3672;return _0x11f4cc[_0x4f66dc(0x21d)](_0x80bada,_0xeb7768);}};return async function _0x37cac2(_0x4ea0d7){const _0x445b20=a47_0x3672;try{if(BrowserstackCLI['getInstance']()[_0x445b20(0x23e)]()){const _0x19eb99={};_0x19eb99['message']=_0x4ea0d7,await BrowserstackCLI[_0x445b20(0x228)]()[_0x445b20(0x1b3)]()[_0x445b20(0x214)](AutomationFrameworkState[_0x445b20(0x212)],HookState[_0x445b20(0x1f9)],_0x19eb99),delete _0x4ea0d7[_0x445b20(0x236)];}else{const _0x35e155=_0x4ea0d7['bStackParams'];if(_0x35e155){delete _0x4ea0d7[_0x445b20(0x236)];const _0x3cb636=_0x35e155[_0x445b20(0x22a)],_0x23335a=_0x35e155[_0x445b20(0x201)];_0x23335a&&(_0x146fc9[_0x445b20(0x21f)](debug,_0x445b20(0x1e8)+_0x23335a[_0x445b20(0x234)]()),_0x13f8ec[_0x445b20(0x1d5)]['platform']=_0x23335a[_0x445b20(0x248)],_0x13f8ec[_0x445b20(0x1d5)][_0x445b20(0x1b9)]=_0x23335a[_0x445b20(0x1bc)]),_0x3cb636&&(_0x146fc9['Crnis'](debug,_0x445b20(0x1b0)+_0x3cb636),_0x13f8ec[_0x445b20(0x1d5)][_0x445b20(0x1c4)]=_0x3cb636);}}}catch(_0x44282a){_0x146fc9[_0x445b20(0x220)](debug,_0x445b20(0x209)+_0x44282a[_0x445b20(0x234)]());}return _0x3c49d7['apply'](this,arguments);};}});}}catch(_0x2b1225){_0x11f4cc['OClOy'](debug,_0x21f36a(0x1bd)+_0x2b1225),_0x13f8ec['sessionError']=_0x2b1225[_0x21f36a(0x234)]();}}}static[a47_0x3e22a0(0x20d)](){const _0x1fccf9=a47_0x3e22a0;return this[_0x1fccf9(0x1d5)];}}function a47_0x1b9e(){const _0x1c1bf5=['params','Error\x20in\x20finding\x20platform\x20details\x20','../v2/state/automationFrameworkState.js','oTGKm','qzjwE','getDetails','edge','server','GNEdn','YbtlI','PLAYWRIGHT_DISPATCH','fSXBp','trackEvent','SpaVj','824997xrcJEQ','dispatch','agtaM','_connection','VrERq','connectOptions','platform','XlAxb','./accessibility-helper','VolZn','RSOxJ','sessionError','KZwsu','apply','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','patchConnection','__driver','GSrmh','getInstance','fbOof','sessionId','format','product','accessibilityPlatform','join','model','Zkhcq','playwright-','safari','QtMqR','toString','currentTest','bStackParams','lfHkm','connection.js','UsRXZ','XQIzB','turboscale','debug','chrome','isRunning','eplxZ','VoDYH','../../helpers/accessibility-automation/helper','../../helpers/accessibility-automation/scripts','project','patchCRConnection','5961024uaLigc','prototype','fromEntries','platformName','local_grid','sapHc','pwPage','wsEndpoint','xvDQs','winstonLogger','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','parse','RmEjK','mbOei','IWFiT','MnmwS','1244290HSCYji','use','Performing\x20scan\x20for\x20','capabilities','FyrKR','bstackPerformA11yScan','GCyBs','CZqhu','patch','CiNYn','FKCAl','../../helpers/test-observability/error-handler','BSTACK_URL','WORVZ','titlePath','VjjCo','HFTiW','browserstack','_defaultConnectOptions','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','../utils/clientTroubleshootingService.js','browserName','getAutomationFramework','chromium','cloudProvider','assign','Not\x20able\x20to\x20import\x20crConnection','crConnection.js','platform_version','exports','../../helpers/test-observability/utils','platformVersion','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','pKNnP','query','Error\x20in\x20importing\x20connection\x20','olFmj','../../bin/playwright/accessibility-helper','WitWg','bsSessionId','toLowerCase','env','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','__workerDetails','2250479dHXlvs','iDGKh','../v2/state/hookState.js','testInfo','browser_version','inclB','Page','MpIVZ','browser','nNiGH','LfQZR','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','currentSessionDetails','AglVn','eDIVZ','CgZAj','AKMxY','945996WYQzmv','nPbqX','path','_type','automate','yjIDX','Device\x20Model\x20is\x20not\x20available','274170nEKIyR','util','WmJRW','pknRM','setupBrowserDetails','caps','../v2/browserstackCLI','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','bLoYA','sendMessageToServer','shouldWrapCommand','isRemote','message','../../helpers/helper','lib','ytimg','includes','Driver\x20Scan\x20result=','firefox','Error\x20in\x20importing\x20crConnection','reportSessionLinkingIssue','PUtQy','fqRDc','eGwHN','POST','Connection','RaDdC','version','BSTACK_ATS_URL','1383336SsxIRc','info','Setting\x20session\x20id\x20received\x20from\x20BS\x20','platformDetails','defineProperty','zQzwc','WyAoe','8revOSs','RxxnI','ATS_WSS_URL_REGEX'];a47_0x1b9e=function(){return _0x1c1bf5;};return a47_0x1b9e();}module[a47_0x3e22a0(0x1ba)]=PlaywrightSessionDetails;
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a48_0x3ffe99=a48_0x2411;(function(_0x1c7ba3,_0x249b1a){const _0x658ded=a48_0x2411,_0x416866=_0x1c7ba3();while(!![]){try{const _0x5e6e9c=-parseInt(_0x658ded(0x1c8))/0x1+parseInt(_0x658ded(0x1a5))/0x2+parseInt(_0x658ded(0x1fd))/0x3*(parseInt(_0x658ded(0x1d0))/0x4)+parseInt(_0x658ded(0x1b6))/0x5*(parseInt(_0x658ded(0x18d))/0x6)+-parseInt(_0x658ded(0x1d7))/0x7*(-parseInt(_0x658ded(0x1b2))/0x8)+parseInt(_0x658ded(0x1e7))/0x9+-parseInt(_0x658ded(0x1ff))/0xa;if(_0x5e6e9c===_0x249b1a)break;else _0x416866['push'](_0x416866['shift']());}catch(_0x4fbb4e){_0x416866['push'](_0x416866['shift']());}}}(a48_0x2e52,0x4b28d));function a48_0x2411(_0x3fb902,_0x1636ad){const _0x2e52cb=a48_0x2e52();return a48_0x2411=function(_0x2411c2,_0x3f0ab){_0x2411c2=_0x2411c2-0x17d;let _0x5690ac=_0x2e52cb[_0x2411c2];return _0x5690ac;},a48_0x2411(_0x3fb902,_0x1636ad);}function a48_0x2e52(){const _0x21c5bb=['sendLogs','findAndReplace','info','201090gxwVDG','unlinkSync','./playwright/command','lQFoI','mocha/lib/cli/run.js','format','./load/index','QIZFY','env','../helpers/performance/performance-tester','wSKkm','join','exitProcess','HELP','gHPGb','mJnxO','command','SDK_SETUP','SDK_CLEANUP','LEAle','wrap','existsSync','INFO','mocha/lib/cli/cli.js','258118tiQksG','bZrFC','fireFunnelTestEvent','BROWSERSTACK_CONFIG_FILE_PATH','debug','./cucumber-js/command','uOWmG','setTestObservabilityDisable','QmMby','handler','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','Vjwky','path','2380696htZafZ','EVENTS','SBOTX','../helpers/test-observability/constants','15QJjiEg','homedir','framework','alias','SDKTestSuccessful','lgcQa','describe','Show\x20help','./nightwatch/command','hXejq','VERSION','gTdOE','../helpers/logger','NmzUe','Parsing\x20command\x20line\x20arguments','fIZvM','codeceptjs','yargs','12980nixUCh','strict','argv','GNmNH','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','isUndefined','util','YXwNT','2432ImxdeM','node','winstonLogger','../../ats/src/index','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','HLmSq','tODOb','14nvsClw','.browserstack','bBMPg','XovVB','bjQfw','tFeEg','setBrowserStackAutomationDisable','eHCpd','./codeceptjs/command','push','showHelpOnFail','includes','CUCUMBER','NYYIv','run','HST','2398077dIzczA','./jest/command','ats','boolean','INTEGRATIONS','assign','aIuTy','aSQOY','CHzIx','start','./vanilla-js/command','usage:\x20$0\x20<command>\x20[args]','KLPTO','JEST','nightwatch','SqXhT','../helpers/helper','../helpers/BrowserStackSetup','spawn','mocha','getInstance','EcidQ','204FAMeVX','stack','8117420UHbvBe','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','nxfQk','XWctO','XeKST','cucumber-js','mocha/lib/cli/commands.js','IIINd','CkvHV','--require','slice','--no-config','help','./mocha/command','bBThE','end','--no-opts','./v2/browserstackCLI','error','option','stop','./integrations/command','Runs\x20the\x20binary\x20with\x20load\x20command','--no-package','config'];a48_0x2e52=function(){return _0x21c5bb;};return a48_0x2e52();}const fs=require('fs'),path=require(a48_0x3ffe99(0x1b1)),util=require(a48_0x3ffe99(0x1ce)),spawn=require('child_process')[a48_0x3ffe99(0x1f9)],{requireModule}=require(a48_0x3ffe99(0x1f7)),PerformanceTester=require(a48_0x3ffe99(0x196)),PerformanceEvents=require('../helpers/performance/constants')[a48_0x3ffe99(0x1b3)],helper=require('../helpers/helper'),utilities=require('../helpers/utilities'),{default:BrowserStackSetup}=require(a48_0x3ffe99(0x1f8)),{FRAMEWORKS}=require(a48_0x3ffe99(0x1b5)),runIntegrations=require(a48_0x3ffe99(0x186)),yargs=require(a48_0x3ffe99(0x1c7)),Constants=require('./utils/constants'),BrowserstackCLI=require(a48_0x3ffe99(0x182)),logger=require(a48_0x3ffe99(0x1c2))[a48_0x3ffe99(0x1d2)],origArgs=Object[a48_0x3ffe99(0x1ec)]([],process[a48_0x3ffe99(0x1ca)]),captureError=async(_0x48bd35,_0x4d1b10,_0x55b9cb,_0xb8a156=null)=>{const _0x5cd551=a48_0x3ffe99,_0x2ab147={'lgcQa':function(_0x533899,_0x537b7c,_0x36229f,_0x18f252){return _0x533899(_0x537b7c,_0x36229f,_0x18f252);},'mJnxO':_0x5cd551(0x1ba)};try{logger[_0x5cd551(0x18c)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0x5cd551(0x198)]('\x20')),await _0x2ab147[_0x5cd551(0x1bb)](_0x48bd35,_0x4d1b10,_0xb8a156,_0x55b9cb);}catch(_0x156692){process['exitCode']=0x1,logger['error'](util['format'](_0x156692));const _0x21531f={'globalException':util[_0x5cd551(0x192)]('%j',_0x156692)};PerformanceTester[_0x5cd551(0x180)](PerformanceEvents[_0x5cd551(0x19e)],![],util[_0x5cd551(0x192)](_0x156692));if(helper[_0x5cd551(0x1cd)](global[_0x5cd551(0x189)])&&helper[_0x5cd551(0x1cd)](global[_0x5cd551(0x1b8)]))return;try{utilities[_0x5cd551(0x1a7)](_0x2ab147[_0x5cd551(0x19c)],_0x21531f,global[_0x5cd551(0x189)],global[_0x5cd551(0x1b8)]);}catch(_0x1f748d){logger[_0x5cd551(0x1a9)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x1f748d['stack']);}try{await helper[_0x5cd551(0x18a)](global[_0x5cd551(0x189)]);}catch(_0x2ad93e){logger['debug'](_0x5cd551(0x1d4)+_0x2ad93e[_0x5cd551(0x1fe)]);}await BrowserstackCLI[_0x5cd551(0x1fb)]()[_0x5cd551(0x185)](),PerformanceTester[_0x5cd551(0x180)](PerformanceEvents[_0x5cd551(0x19e)],![],util[_0x5cd551(0x192)](_0x156692));}finally{PerformanceTester[_0x5cd551(0x1f0)](PerformanceEvents[_0x5cd551(0x19f)]);}};try{const browserstackFolderPath=path[a48_0x3ffe99(0x198)](helper[a48_0x3ffe99(0x1b7)](),a48_0x3ffe99(0x1d8));if(fs[a48_0x3ffe99(0x1a2)](browserstackFolderPath)){const filePath=path[a48_0x3ffe99(0x198)](browserstackFolderPath,'.local-not-set.json');fs[a48_0x3ffe99(0x1a2)](filePath)&&fs[a48_0x3ffe99(0x18e)](filePath);}}catch(a48_0x16e2d4){logger[a48_0x3ffe99(0x1a9)](a48_0x3ffe99(0x1af)+a48_0x16e2d4['message']);}process[a48_0x3ffe99(0x1ca)][a48_0x3ffe99(0x1e2)]('mocha')&&(!process[a48_0x3ffe99(0x1ca)][a48_0x3ffe99(0x1e2)]('--opts')&&process['argv'][a48_0x3ffe99(0x1e0)](a48_0x3ffe99(0x181)),!process[a48_0x3ffe99(0x1ca)]['find'](_0x2baebd=>_0x2baebd[a48_0x3ffe99(0x1e2)]('--config'))&&process['argv']['push'](a48_0x3ffe99(0x20a)),!process[a48_0x3ffe99(0x1ca)]['includes']('--package')&&process['argv']['push'](a48_0x3ffe99(0x188)),helper[a48_0x3ffe99(0x18b)](process[a48_0x3ffe99(0x1ca)],a48_0x3ffe99(0x208),'--mochaRequire'));PerformanceTester[a48_0x3ffe99(0x1f0)](PerformanceEvents[a48_0x3ffe99(0x19e)]);const a48_0x5b8b53={};a48_0x5b8b53['dot-notation']=![];const argv=yargs['parserConfiguration'](a48_0x5b8b53)['usage'](a48_0x3ffe99(0x1f2))[a48_0x3ffe99(0x1b9)]('v','version')[a48_0x3ffe99(0x1bc)]('v')['alias']('h',a48_0x3ffe99(0x17d))[a48_0x3ffe99(0x17d)](a48_0x3ffe99(0x17d))[a48_0x3ffe99(0x1e1)](!![],Constants[a48_0x3ffe99(0x1c0)][a48_0x3ffe99(0x19a)])[a48_0x3ffe99(0x19d)]('jest',Constants[a48_0x3ffe99(0x1f4)][a48_0x3ffe99(0x1a3)],function(_0x1b99a7){const _0x4a8ac3=a48_0x3ffe99,_0x1cee56={'HLmSq':'jest','SBOTX':function(_0x340fac,_0x19de1d,_0x123e95,_0x12325c,_0x4986e0){return _0x340fac(_0x19de1d,_0x123e95,_0x12325c,_0x4986e0);},'bBThE':function(_0xa06972,_0xe7a605){return _0xa06972(_0xe7a605);},'QmMby':_0x4a8ac3(0x1e8)},_0x260ead=process['argv'][_0x4a8ac3(0x209)](0x2);helper[_0x4a8ac3(0x1ac)](),helper['setBrowserStackAutomationDisable']();const _0x13d302=new BrowserStackSetup(_0x1b99a7[_0x4a8ac3(0x1ca)],_0x1cee56[_0x4a8ac3(0x1d5)]);return _0x1cee56[_0x4a8ac3(0x1b4)](captureError,_0x1cee56[_0x4a8ac3(0x17f)](require,_0x1cee56[_0x4a8ac3(0x1ad)]),_0x1b99a7[_0x4a8ac3(0x1ca)],_0x13d302,_0x260ead);})[a48_0x3ffe99(0x19d)](a48_0x3ffe99(0x1fa),Constants['MOCHA'][a48_0x3ffe99(0x1a3)],_0x4d6a53=>{const _0x3228cc=a48_0x3ffe99,_0x57613b={'gTdOE':function(_0x58c530,_0x313480,_0x266b54,_0x44e331){return _0x58c530(_0x313480,_0x266b54,_0x44e331);},'XeKST':function(_0x191a67,_0x269445){return _0x191a67(_0x269445);},'tODOb':_0x3228cc(0x17e),'NmzUe':_0x3228cc(0x1fa),'CkvHV':_0x3228cc(0x1c4),'aIuTy':function(_0x1dd196,_0x15726c,_0x31ec10){return _0x1dd196(_0x15726c,_0x31ec10);},'bBMPg':_0x3228cc(0x191),'wSKkm':_0x3228cc(0x205),'XWctO':_0x3228cc(0x1a4),'eHCpd':function(_0x1354df){return _0x1354df();}};process[_0x3228cc(0x1ca)]=process[_0x3228cc(0x1ca)][_0x3228cc(0x209)](0x1),helper['setTestObservabilityDisable'](),helper[_0x3228cc(0x1dd)]();const _0x2816ae=new BrowserStackSetup(_0x4d6a53['argv'],_0x57613b[_0x3228cc(0x1c3)]);logger['debug'](_0x57613b[_0x3228cc(0x207)]);const _0x2673e9=_0x57613b['aIuTy'](requireModule,_0x57613b[_0x3228cc(0x1d9)],_0x57613b[_0x3228cc(0x1c3)]),_0x47eee0=_0x57613b[_0x3228cc(0x1ed)](requireModule,_0x57613b[_0x3228cc(0x197)],_0x57613b['NmzUe']);delete _0x2673e9[_0x3228cc(0x1ae)],_0x2673e9[_0x3228cc(0x1ae)]=function(_0x106944){const _0x304b9e=_0x3228cc;return _0x57613b[_0x304b9e(0x1c1)](captureError,_0x57613b[_0x304b9e(0x203)](require,_0x57613b[_0x304b9e(0x1d6)]),_0x106944,_0x2816ae);},_0x47eee0[_0x3228cc(0x1e5)]=_0x2673e9;const {main:_0x1ac161}=_0x57613b[_0x3228cc(0x1ed)](requireModule,_0x57613b[_0x3228cc(0x202)],_0x57613b['NmzUe']);_0x57613b[_0x3228cc(0x1de)](_0x1ac161);})['command'](a48_0x3ffe99(0x204),Constants[a48_0x3ffe99(0x1e3)][a48_0x3ffe99(0x1a3)],function(_0x382eb1){const _0x58519f=a48_0x3ffe99,_0x5f53ea={'KLPTO':'cucumber-js','uOWmG':function(_0x2e1ed7,_0x48698f,_0x552196,_0x368a35,_0x286378){return _0x2e1ed7(_0x48698f,_0x552196,_0x368a35,_0x286378);},'YXwNT':function(_0x578c26,_0x4faeb9){return _0x578c26(_0x4faeb9);},'uyBEN':_0x58519f(0x1aa)},_0x3da268=process[_0x58519f(0x1ca)][_0x58519f(0x209)](0x2),_0x148e6a=new BrowserStackSetup(_0x382eb1[_0x58519f(0x1ca)],_0x5f53ea[_0x58519f(0x1f3)]);return _0x5f53ea[_0x58519f(0x1ab)](captureError,_0x5f53ea[_0x58519f(0x1cf)](require,_0x5f53ea['uyBEN']),_0x382eb1['argv'],_0x148e6a,_0x3da268);})[a48_0x3ffe99(0x19d)](a48_0x3ffe99(0x1d1),Constants['VANILLA'][a48_0x3ffe99(0x1a3)],function(_0x22aea0){const _0x3698a8=a48_0x3ffe99,_0x53de7d={'bjQfw':'vanilla','SqXhT':function(_0x362fb0,_0x5313f8,_0x51735a,_0x2e5b77,_0x4564af){return _0x362fb0(_0x5313f8,_0x51735a,_0x2e5b77,_0x4564af);},'OMyvr':function(_0x213b4b,_0x3cf978){return _0x213b4b(_0x3cf978);},'gHPGb':_0x3698a8(0x1f1)},_0x4a416f=process['argv'][_0x3698a8(0x209)](0x2),_0x21ea53=new BrowserStackSetup(_0x22aea0[_0x3698a8(0x1ca)],_0x53de7d[_0x3698a8(0x1db)]);return _0x53de7d[_0x3698a8(0x1f6)](captureError,_0x53de7d['OMyvr'](require,_0x53de7d[_0x3698a8(0x19b)]),_0x22aea0[_0x3698a8(0x1ca)],_0x21ea53,_0x4a416f);})['command'](a48_0x3ffe99(0x1f5),Constants['NIGHTWATCH'][a48_0x3ffe99(0x1a3)],function(_0x55ca58){const _0xc9809f=a48_0x3ffe99,_0x37ec2d={'bZrFC':function(_0x559ec5,_0x37fd07,_0x27849b,_0x325555,_0x3ba905){return _0x559ec5(_0x37fd07,_0x27849b,_0x325555,_0x3ba905);},'tFeEg':function(_0x3c4053,_0x484e83){return _0x3c4053(_0x484e83);},'LEAle':_0xc9809f(0x1be)},_0x5b52b0=process['argv']['slice'](0x2),_0xf76b38=new BrowserStackSetup(_0x55ca58[_0xc9809f(0x1ca)]);return _0x37ec2d[_0xc9809f(0x1a6)](captureError,_0x37ec2d[_0xc9809f(0x1dc)](require,_0x37ec2d[_0xc9809f(0x1a0)]),_0x55ca58[_0xc9809f(0x1ca)],_0xf76b38,_0x5b52b0);})['command'](a48_0x3ffe99(0x1c6),Constants['CODECEPTJS']['INFO'],function(_0x34a975){const _0x7ce9fc=a48_0x3ffe99,_0x495135={'lQFoI':_0x7ce9fc(0x1c6),'IIINd':function(_0x25c104,_0x383a37,_0x4c7ae2,_0x465270,_0x431695){return _0x25c104(_0x383a37,_0x4c7ae2,_0x465270,_0x431695);},'EcidQ':function(_0x11c36d,_0x437e56){return _0x11c36d(_0x437e56);},'Vjwky':_0x7ce9fc(0x1df)},_0x3a9a23=process[_0x7ce9fc(0x1ca)][_0x7ce9fc(0x209)](0x2),_0x530dd0=new BrowserStackSetup(_0x34a975[_0x7ce9fc(0x1ca)],_0x495135[_0x7ce9fc(0x190)]);return _0x495135[_0x7ce9fc(0x206)](captureError,_0x495135[_0x7ce9fc(0x1fc)](require,_0x495135[_0x7ce9fc(0x1b0)]),_0x34a975[_0x7ce9fc(0x1ca)],_0x530dd0,_0x3a9a23);})[a48_0x3ffe99(0x19d)](a48_0x3ffe99(0x1e9),Constants[a48_0x3ffe99(0x1e6)][a48_0x3ffe99(0x1a3)],function(_0x1d02c3){const _0x11b2df=a48_0x3ffe99,_0x42b9e0={'CHzIx':function(_0x2bc4cc,_0x201ec3,_0x1f6de8){return _0x2bc4cc(_0x201ec3,_0x1f6de8);},'NYYIv':function(_0x493f5c,_0x1f1c22){return _0x493f5c(_0x1f1c22);},'GNmNH':_0x11b2df(0x1d3)},_0x51c8fa=process[_0x11b2df(0x1ca)][_0x11b2df(0x209)](0x2);return _0x42b9e0[_0x11b2df(0x1ef)](captureError,_0x42b9e0[_0x11b2df(0x1e4)](require,_0x42b9e0[_0x11b2df(0x1cb)]),_0x1d02c3);})[a48_0x3ffe99(0x19d)]('integrations',Constants[a48_0x3ffe99(0x1eb)][a48_0x3ffe99(0x1a3)],function(_0x1e5d00){const _0x4bd427={'GVVZK':function(_0x148d90,_0x5ee32f){return _0x148d90(_0x5ee32f);}};return _0x4bd427['GVVZK'](runIntegrations,_0x1e5d00);})['command']('playwright',Constants['PLAYWRIGHT']['INFO'],function(_0x1ef502){const _0x44ac3c=a48_0x3ffe99,_0x3861a9={'vvsfA':function(_0x298c92,_0x4b2320,_0x48d38e,_0x22c871,_0x492a17){return _0x298c92(_0x4b2320,_0x48d38e,_0x22c871,_0x492a17);},'hXejq':function(_0x5e5dde,_0x2fadbf){return _0x5e5dde(_0x2fadbf);},'iYIgF':_0x44ac3c(0x18f)},_0x7458a8=process[_0x44ac3c(0x1ca)]['slice'](0x2);helper['getConfigPath'](process[_0x44ac3c(0x1ca)])&&(process[_0x44ac3c(0x195)][_0x44ac3c(0x1a8)]=helper['getConfigPath'](process['argv']));helper[_0x44ac3c(0x1ac)](),helper[_0x44ac3c(0x1dd)]();const _0x9cb498=new BrowserStackSetup(_0x1ef502[_0x44ac3c(0x1ca)],FRAMEWORKS['PLAYWRIGHT']);return _0x3861a9['vvsfA'](captureError,_0x3861a9[_0x44ac3c(0x1bf)](require,_0x3861a9['iYIgF']),_0x1ef502['argv'],_0x9cb498,_0x7458a8);})[a48_0x3ffe99(0x19d)]('load\x20[subcommand]',a48_0x3ffe99(0x187),function(_0x1b53f4){const _0x1a0a7e=a48_0x3ffe99,_0xcd0397={};_0xcd0397[_0x1a0a7e(0x194)]=_0x1a0a7e(0x17d),_0xcd0397[_0x1a0a7e(0x1c5)]=_0x1a0a7e(0x1ea),_0xcd0397['XovVB']=_0x1a0a7e(0x1bd);const _0x1ecb25=_0xcd0397;return _0x1b53f4['help'](![])[_0x1a0a7e(0x184)](_0x1ecb25[_0x1a0a7e(0x194)],{'alias':'h','type':_0x1ecb25[_0x1a0a7e(0x1c5)],'describe':_0x1ecb25[_0x1a0a7e(0x1da)]})[_0x1a0a7e(0x1c9)](![])[_0x1a0a7e(0x199)](![]);},function(_0x1cd3dc){const _0x23b1e5=a48_0x3ffe99,_0x1c3542={'QULeq':function(_0x3bb8a3,_0x44f9d6,_0xe114ea){return _0x3bb8a3(_0x44f9d6,_0xe114ea);},'nxfQk':function(_0x55d1b7,_0xe24070){return _0x55d1b7(_0xe24070);},'aSQOY':_0x23b1e5(0x193)},_0x382464={};return _0x382464['argv']=_0x1cd3dc,_0x1c3542['QULeq'](captureError,_0x1c3542[_0x23b1e5(0x201)](require,_0x1c3542[_0x23b1e5(0x1ee)]),_0x382464);})['demandCommand'](0x1,a48_0x3ffe99(0x1cc))[a48_0x3ffe99(0x1a1)](null)[a48_0x3ffe99(0x1ca)];!helper[a48_0x3ffe99(0x1cd)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a48_0x3ffe99(0x1e9)&&console[a48_0x3ffe99(0x183)](a48_0x3ffe99(0x200));
|
|
2
|
+
'use strict';const a48_0x1aa668=a48_0x130f;(function(_0xe29335,_0x55bbbf){const _0x41ece6=a48_0x130f,_0x56cb5f=_0xe29335();while(!![]){try{const _0x29f0cb=parseInt(_0x41ece6(0x1ce))/0x1*(parseInt(_0x41ece6(0x196))/0x2)+-parseInt(_0x41ece6(0x1d4))/0x3*(-parseInt(_0x41ece6(0x19f))/0x4)+-parseInt(_0x41ece6(0x165))/0x5*(parseInt(_0x41ece6(0x1ae))/0x6)+parseInt(_0x41ece6(0x182))/0x7+-parseInt(_0x41ece6(0x190))/0x8+parseInt(_0x41ece6(0x154))/0x9+-parseInt(_0x41ece6(0x15d))/0xa;if(_0x29f0cb===_0x55bbbf)break;else _0x56cb5f['push'](_0x56cb5f['shift']());}catch(_0x4d1561){_0x56cb5f['push'](_0x56cb5f['shift']());}}}(a48_0x5e09,0x6ae3b));const fs=require('fs'),path=require(a48_0x1aa668(0x186)),util=require(a48_0x1aa668(0x1bb)),spawn=require('child_process')[a48_0x1aa668(0x164)],{requireModule}=require('../helpers/helper'),PerformanceTester=require(a48_0x1aa668(0x1d5)),PerformanceEvents=require('../helpers/performance/constants')[a48_0x1aa668(0x1c4)],helper=require(a48_0x1aa668(0x16c)),utilities=require(a48_0x1aa668(0x18c)),{default:BrowserStackSetup}=require(a48_0x1aa668(0x153)),{FRAMEWORKS}=require(a48_0x1aa668(0x18a)),runIntegrations=require('./integrations/command'),yargs=require(a48_0x1aa668(0x151)),Constants=require('./utils/constants'),BrowserstackCLI=require(a48_0x1aa668(0x1d0)),logger=require(a48_0x1aa668(0x1c1))[a48_0x1aa668(0x177)],origArgs=Object[a48_0x1aa668(0x1d6)]([],process[a48_0x1aa668(0x19d)]),captureError=async(_0x2d79c7,_0x304d65,_0x3434b0,_0x3a4464=null)=>{const _0x5f1303=a48_0x1aa668,_0x4d2087={'TxCZn':function(_0x4b6791,_0x260dfc,_0x2ac2c1,_0x5092e4){return _0x4b6791(_0x260dfc,_0x2ac2c1,_0x5092e4);},'owXWk':_0x5f1303(0x175)};try{logger[_0x5f1303(0x159)](_0x5f1303(0x1a2)+origArgs[_0x5f1303(0x193)]('\x20')),await _0x4d2087['TxCZn'](_0x2d79c7,_0x304d65,_0x3a4464,_0x3434b0);}catch(_0x2d6589){process[_0x5f1303(0x1d9)]=0x1,logger[_0x5f1303(0x1d2)](util[_0x5f1303(0x167)](_0x2d6589));const _0x73ebd4={'globalException':util[_0x5f1303(0x167)]('%j',_0x2d6589)};PerformanceTester['end'](PerformanceEvents['SDK_SETUP'],![],util['format'](_0x2d6589));if(helper[_0x5f1303(0x1b7)](global[_0x5f1303(0x1da)])&&helper[_0x5f1303(0x1b7)](global[_0x5f1303(0x1ad)]))return;try{utilities[_0x5f1303(0x181)](_0x4d2087['owXWk'],_0x73ebd4,global[_0x5f1303(0x1da)],global[_0x5f1303(0x1ad)]);}catch(_0x282431){logger[_0x5f1303(0x191)](_0x5f1303(0x1c7)+_0x282431[_0x5f1303(0x162)]);}try{await helper[_0x5f1303(0x178)](global[_0x5f1303(0x1da)]);}catch(_0x1f519f){logger[_0x5f1303(0x191)](_0x5f1303(0x1a6)+_0x1f519f[_0x5f1303(0x162)]);}await BrowserstackCLI[_0x5f1303(0x1a0)]()[_0x5f1303(0x15b)](),PerformanceTester[_0x5f1303(0x15c)](PerformanceEvents[_0x5f1303(0x17a)],![],util[_0x5f1303(0x167)](_0x2d6589));}finally{PerformanceTester[_0x5f1303(0x198)](PerformanceEvents[_0x5f1303(0x1b6)]);}};try{const browserstackFolderPath=path[a48_0x1aa668(0x193)](helper[a48_0x1aa668(0x169)](),a48_0x1aa668(0x161));if(fs[a48_0x1aa668(0x16b)](browserstackFolderPath)){const filePath=path[a48_0x1aa668(0x193)](browserstackFolderPath,a48_0x1aa668(0x18d));fs[a48_0x1aa668(0x16b)](filePath)&&fs[a48_0x1aa668(0x1ab)](filePath);}}catch(a48_0x84ca1e){logger[a48_0x1aa668(0x191)](a48_0x1aa668(0x14f)+a48_0x84ca1e['message']);}process['argv'][a48_0x1aa668(0x188)](a48_0x1aa668(0x15a))&&(!process['argv']['includes']('--opts')&&process[a48_0x1aa668(0x19d)][a48_0x1aa668(0x157)](a48_0x1aa668(0x155)),!process['argv']['find'](_0xab5d9e=>_0xab5d9e[a48_0x1aa668(0x188)](a48_0x1aa668(0x166)))&&process['argv'][a48_0x1aa668(0x157)](a48_0x1aa668(0x1a8)),!process['argv'][a48_0x1aa668(0x188)](a48_0x1aa668(0x1a5))&&process[a48_0x1aa668(0x19d)][a48_0x1aa668(0x157)]('--no-package'),helper[a48_0x1aa668(0x1cb)](process[a48_0x1aa668(0x19d)],a48_0x1aa668(0x173),a48_0x1aa668(0x1c2)));PerformanceTester[a48_0x1aa668(0x198)](PerformanceEvents['SDK_SETUP']);const a48_0x2a56c4={};function a48_0x130f(_0x170aa0,_0x58417e){const _0x5e0986=a48_0x5e09();return a48_0x130f=function(_0x130fed,_0x599aa5){_0x130fed=_0x130fed-0x14f;let _0x19f390=_0x5e0986[_0x130fed];return _0x19f390;},a48_0x130f(_0x170aa0,_0x58417e);}a48_0x2a56c4[a48_0x1aa668(0x18b)]=![];const argv=yargs[a48_0x1aa668(0x170)](a48_0x2a56c4)[a48_0x1aa668(0x1a7)](a48_0x1aa668(0x1bf))[a48_0x1aa668(0x1c6)]('v',a48_0x1aa668(0x17e))[a48_0x1aa668(0x18f)]('v')['alias']('h',a48_0x1aa668(0x156))[a48_0x1aa668(0x156)](a48_0x1aa668(0x156))[a48_0x1aa668(0x1b9)](!![],Constants['VERSION'][a48_0x1aa668(0x1b1)])[a48_0x1aa668(0x199)](a48_0x1aa668(0x176),Constants[a48_0x1aa668(0x152)][a48_0x1aa668(0x19b)],function(_0x2af2df){const _0x270c23=a48_0x1aa668,_0x56803b={'HmxEE':_0x270c23(0x176),'ijEiy':function(_0x3e5ff5,_0x2b446a,_0x1081be,_0x5ecc28,_0x53ad3b){return _0x3e5ff5(_0x2b446a,_0x1081be,_0x5ecc28,_0x53ad3b);},'MZjbK':function(_0x19956e,_0x20faac){return _0x19956e(_0x20faac);},'OdPNy':_0x270c23(0x174)},_0x17fc7f=process['argv'][_0x270c23(0x194)](0x2);helper[_0x270c23(0x1bd)](),helper[_0x270c23(0x1d8)]();const _0x111ec4=new BrowserStackSetup(_0x2af2df[_0x270c23(0x19d)],_0x56803b[_0x270c23(0x1cd)]);return _0x56803b['ijEiy'](captureError,_0x56803b[_0x270c23(0x1a3)](require,_0x56803b['OdPNy']),_0x2af2df[_0x270c23(0x19d)],_0x111ec4,_0x17fc7f);})[a48_0x1aa668(0x199)](a48_0x1aa668(0x15a),Constants[a48_0x1aa668(0x187)][a48_0x1aa668(0x19b)],_0xd0d8ab=>{const _0x44c930=a48_0x1aa668,_0x21933d={'AWMrs':function(_0x3db2f6,_0x438219,_0x3dae32,_0x1dc0c0){return _0x3db2f6(_0x438219,_0x3dae32,_0x1dc0c0);},'Dxfay':function(_0x56cba8,_0x802c38){return _0x56cba8(_0x802c38);},'bVALv':_0x44c930(0x16f),'enSeB':_0x44c930(0x15a),'EOTVg':_0x44c930(0x1c3),'gNruM':function(_0x41577d,_0x9ed571,_0x46b01f){return _0x41577d(_0x9ed571,_0x46b01f);},'NHfVw':_0x44c930(0x1c5),'VHQyk':function(_0x1c44e1,_0x16dee9,_0x5073c2){return _0x1c44e1(_0x16dee9,_0x5073c2);},'ihEdE':'mocha/lib/cli/commands.js','DvJkG':'mocha/lib/cli/cli.js','nqnEk':function(_0x5d37c2){return _0x5d37c2();}};process[_0x44c930(0x19d)]=process[_0x44c930(0x19d)][_0x44c930(0x194)](0x1),helper[_0x44c930(0x1bd)](),helper[_0x44c930(0x1d8)]();const _0xeff540=new BrowserStackSetup(_0xd0d8ab[_0x44c930(0x19d)],_0x21933d['enSeB']);logger[_0x44c930(0x191)](_0x21933d[_0x44c930(0x168)]);const _0x2ee698=_0x21933d['gNruM'](requireModule,_0x21933d['NHfVw'],_0x21933d[_0x44c930(0x19c)]),_0x21967a=_0x21933d[_0x44c930(0x15f)](requireModule,_0x21933d[_0x44c930(0x197)],_0x21933d[_0x44c930(0x19c)]);delete _0x2ee698[_0x44c930(0x1ca)],_0x2ee698['handler']=function(_0x504639){const _0x2fe284=_0x44c930;return _0x21933d[_0x2fe284(0x1cc)](captureError,_0x21933d['Dxfay'](require,_0x21933d[_0x2fe284(0x1bc)]),_0x504639,_0xeff540);},_0x21967a[_0x44c930(0x1b5)]=_0x2ee698;const {main:_0x2344f2}=_0x21933d['VHQyk'](requireModule,_0x21933d[_0x44c930(0x150)],_0x21933d[_0x44c930(0x19c)]);_0x21933d['nqnEk'](_0x2344f2);})[a48_0x1aa668(0x199)](a48_0x1aa668(0x1b4),Constants[a48_0x1aa668(0x163)][a48_0x1aa668(0x19b)],function(_0x575e81){const _0x53fd2b=a48_0x1aa668,_0x11ac6f={'zDeuq':_0x53fd2b(0x1b4),'trQbV':function(_0x21e086,_0x496b37,_0x5b6da6,_0x1c7e06,_0xcb8285){return _0x21e086(_0x496b37,_0x5b6da6,_0x1c7e06,_0xcb8285);},'pBgAW':function(_0x41be65,_0x219e74){return _0x41be65(_0x219e74);},'ObkGp':_0x53fd2b(0x195)},_0x2e497a=process[_0x53fd2b(0x19d)][_0x53fd2b(0x194)](0x2),_0x2b516a=new BrowserStackSetup(_0x575e81[_0x53fd2b(0x19d)],_0x11ac6f['zDeuq']);return _0x11ac6f[_0x53fd2b(0x183)](captureError,_0x11ac6f['pBgAW'](require,_0x11ac6f['ObkGp']),_0x575e81[_0x53fd2b(0x19d)],_0x2b516a,_0x2e497a);})[a48_0x1aa668(0x199)](a48_0x1aa668(0x1aa),Constants[a48_0x1aa668(0x17c)][a48_0x1aa668(0x19b)],function(_0x2634cb){const _0x228222=a48_0x1aa668,_0x1340de={'yubCQ':'vanilla','ofxwM':function(_0x3de855,_0x2c2a0c,_0x51d8d4,_0xc3ac2,_0x54a6ee){return _0x3de855(_0x2c2a0c,_0x51d8d4,_0xc3ac2,_0x54a6ee);},'dCelS':function(_0x19deb5,_0x45bc3f){return _0x19deb5(_0x45bc3f);},'TcHiY':_0x228222(0x1a1)},_0x6709a1=process[_0x228222(0x19d)][_0x228222(0x194)](0x2),_0x434f20=new BrowserStackSetup(_0x2634cb[_0x228222(0x19d)],_0x1340de[_0x228222(0x1c9)]);return _0x1340de[_0x228222(0x189)](captureError,_0x1340de[_0x228222(0x158)](require,_0x1340de['TcHiY']),_0x2634cb[_0x228222(0x19d)],_0x434f20,_0x6709a1);})[a48_0x1aa668(0x199)](a48_0x1aa668(0x180),Constants[a48_0x1aa668(0x1b3)]['INFO'],function(_0x2d858b){const _0xaaee5c=a48_0x1aa668,_0x2f699b={'zlavj':function(_0x1033d8,_0x144b3a,_0x63fb0e,_0x3b167e,_0x5a60d3){return _0x1033d8(_0x144b3a,_0x63fb0e,_0x3b167e,_0x5a60d3);},'nWdTA':function(_0x647a3a,_0x17d651){return _0x647a3a(_0x17d651);},'lKLAc':'./nightwatch/command'},_0x2823e5=process[_0xaaee5c(0x19d)][_0xaaee5c(0x194)](0x2),_0x241fb6=new BrowserStackSetup(_0x2d858b['argv']);return _0x2f699b[_0xaaee5c(0x1d7)](captureError,_0x2f699b[_0xaaee5c(0x1be)](require,_0x2f699b[_0xaaee5c(0x17f)]),_0x2d858b[_0xaaee5c(0x19d)],_0x241fb6,_0x2823e5);})[a48_0x1aa668(0x199)]('codeceptjs',Constants[a48_0x1aa668(0x16e)][a48_0x1aa668(0x19b)],function(_0x2402ba){const _0x270fdd=a48_0x1aa668,_0xcd5735={'PiXiX':_0x270fdd(0x19e),'XRDsz':function(_0x3175af,_0x11cbfa,_0x42c44c,_0x1d63f0,_0x177949){return _0x3175af(_0x11cbfa,_0x42c44c,_0x1d63f0,_0x177949);},'zEhNZ':function(_0x52fb3b,_0x28b9b9){return _0x52fb3b(_0x28b9b9);},'UVkqw':_0x270fdd(0x17b)},_0x121d0c=process[_0x270fdd(0x19d)][_0x270fdd(0x194)](0x2),_0xc999b8=new BrowserStackSetup(_0x2402ba[_0x270fdd(0x19d)],_0xcd5735[_0x270fdd(0x171)]);return _0xcd5735['XRDsz'](captureError,_0xcd5735[_0x270fdd(0x1b0)](require,_0xcd5735['UVkqw']),_0x2402ba[_0x270fdd(0x19d)],_0xc999b8,_0x121d0c);})[a48_0x1aa668(0x199)](a48_0x1aa668(0x1d1),Constants[a48_0x1aa668(0x16a)]['INFO'],function(_0x94bc46){const _0x3c9276=a48_0x1aa668,_0x1405d9={'vJaZw':function(_0x19332b,_0xcc584c,_0x1625c8){return _0x19332b(_0xcc584c,_0x1625c8);},'wKcWt':function(_0x57edc5,_0x4dbc33){return _0x57edc5(_0x4dbc33);},'qUrMn':'../../ats/src/index'},_0x44b3ce=process[_0x3c9276(0x19d)][_0x3c9276(0x194)](0x2);return _0x1405d9[_0x3c9276(0x17d)](captureError,_0x1405d9[_0x3c9276(0x16d)](require,_0x1405d9[_0x3c9276(0x1ba)]),_0x94bc46);})[a48_0x1aa668(0x199)](a48_0x1aa668(0x1d3),Constants['INTEGRATIONS']['INFO'],function(_0x37a2c0){const _0x109e02=a48_0x1aa668,_0x341640={'YUZcu':function(_0x20fdf0,_0x5d3280){return _0x20fdf0(_0x5d3280);}};return _0x341640[_0x109e02(0x1cf)](runIntegrations,_0x37a2c0);})['command'](a48_0x1aa668(0x1af),Constants['PLAYWRIGHT'][a48_0x1aa668(0x19b)],function(_0x35805a){const _0x1e02a1=a48_0x1aa668,_0x349458={'qNtUu':function(_0x7517dd,_0x5e38f5,_0x2ca6b8,_0x9457db,_0x50f464){return _0x7517dd(_0x5e38f5,_0x2ca6b8,_0x9457db,_0x50f464);},'ZOdnE':function(_0x2ff0d3,_0x1ed2b7){return _0x2ff0d3(_0x1ed2b7);},'AaGMq':_0x1e02a1(0x179)},_0x17316d=process[_0x1e02a1(0x19d)][_0x1e02a1(0x194)](0x2);helper[_0x1e02a1(0x15e)](process[_0x1e02a1(0x19d)])&&(process['env'][_0x1e02a1(0x1b8)]=helper[_0x1e02a1(0x15e)](process[_0x1e02a1(0x19d)]));helper[_0x1e02a1(0x1bd)](),helper['setBrowserStackAutomationDisable']();const _0x26b46f=new BrowserStackSetup(_0x35805a[_0x1e02a1(0x19d)],FRAMEWORKS['PLAYWRIGHT']);return _0x349458[_0x1e02a1(0x1c8)](captureError,_0x349458[_0x1e02a1(0x18e)](require,_0x349458['AaGMq']),_0x35805a[_0x1e02a1(0x19d)],_0x26b46f,_0x17316d);})[a48_0x1aa668(0x199)](a48_0x1aa668(0x19a),'Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x10385d){const _0x7e1db9=a48_0x1aa668,_0x413614={};_0x413614['dFmnw']=_0x7e1db9(0x156),_0x413614[_0x7e1db9(0x1b2)]=_0x7e1db9(0x172),_0x413614['nWghS']=_0x7e1db9(0x184);const _0x5ca56f=_0x413614;return _0x10385d[_0x7e1db9(0x156)](![])['option'](_0x5ca56f['dFmnw'],{'alias':'h','type':_0x5ca56f['ATKrE'],'describe':_0x5ca56f['nWghS']})[_0x7e1db9(0x192)](![])[_0x7e1db9(0x1a4)](![]);},function(_0xfcda7c){const _0x147f29=a48_0x1aa668,_0x4c3e2e={'OCBlV':function(_0x5b8116,_0x3f8deb,_0x116947){return _0x5b8116(_0x3f8deb,_0x116947);},'DVOLO':function(_0x4b0c03,_0xa52cd){return _0x4b0c03(_0xa52cd);},'UGXBE':_0x147f29(0x160)},_0x27105a={};return _0x27105a[_0x147f29(0x19d)]=_0xfcda7c,_0x4c3e2e[_0x147f29(0x1a9)](captureError,_0x4c3e2e['DVOLO'](require,_0x4c3e2e[_0x147f29(0x1ac)]),_0x27105a);})['demandCommand'](0x1,a48_0x1aa668(0x185))[a48_0x1aa668(0x1c0)](null)['argv'];function a48_0x5e09(){const _0x41224c=['UGXBE','framework','66QPlAZE','playwright','zEhNZ','HELP','ATKrE','NIGHTWATCH','cucumber-js','run','SDK_CLEANUP','isUndefined','BROWSERSTACK_CONFIG_FILE_PATH','showHelpOnFail','qUrMn','util','bVALv','setTestObservabilityDisable','nWdTA','usage:\x20$0\x20<command>\x20[args]','wrap','../helpers/logger','--mochaRequire','Parsing\x20command\x20line\x20arguments','EVENTS','mocha/lib/cli/run.js','alias','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','qNtUu','yubCQ','handler','findAndReplace','AWMrs','HmxEE','5793YdBFvW','YUZcu','./v2/browserstackCLI','ats','error','integrations','3hIUYkB','../helpers/performance/performance-tester','assign','zlavj','setBrowserStackAutomationDisable','exitCode','config','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','DvJkG','yargs','JEST','../helpers/BrowserStackSetup','5538240FWtJzi','--no-opts','help','push','dCelS','info','mocha','stop','end','5927330CqPlIj','getConfigPath','VHQyk','./load/index','.browserstack','stack','CUCUMBER','spawn','183670INqgho','--config','format','EOTVg','homedir','HST','existsSync','../helpers/helper','wKcWt','CODECEPTJS','./mocha/command','parserConfiguration','PiXiX','boolean','--require','./jest/command','SDKTestSuccessful','jest','winstonLogger','sendLogs','./playwright/command','SDK_SETUP','./codeceptjs/command','VANILLA','vJaZw','version','lKLAc','nightwatch','fireFunnelTestEvent','6103853FYBBsd','trQbV','Show\x20help','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','path','MOCHA','includes','ofxwM','../helpers/test-observability/constants','dot-notation','../helpers/utilities','.local-not-set.json','ZOdnE','describe','6299512CrJaRW','debug','strict','join','slice','./cucumber-js/command','226RnTqxF','ihEdE','start','command','load\x20[subcommand]','INFO','enSeB','argv','codeceptjs','320468ToCctJ','getInstance','./vanilla-js/command','Running\x20SDK\x20with\x20args\x20','MZjbK','exitProcess','--package','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','usage','--no-config','OCBlV','node','unlinkSync'];a48_0x5e09=function(){return _0x41224c;};return a48_0x5e09();}!helper[a48_0x1aa668(0x1b7)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console[a48_0x1aa668(0x1d2)]('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
|