browserstack-node-sdk 1.40.6 → 1.40.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/browserstack.pw.yml.sample +1 -0
- package/browserstack.yml.sample +1 -0
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/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_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/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/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/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/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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/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/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
|
|
1
|
+
const a69_0x44d39a=a69_0x5c4b;(function(_0x1c460d,_0xb3d6e1){const _0x281196=a69_0x5c4b,_0x31e018=_0x1c460d();while(!![]){try{const _0x1eee2b=parseInt(_0x281196(0x138))/0x1+-parseInt(_0x281196(0x122))/0x2+parseInt(_0x281196(0x12f))/0x3*(parseInt(_0x281196(0x13c))/0x4)+-parseInt(_0x281196(0x11d))/0x5+-parseInt(_0x281196(0x128))/0x6+-parseInt(_0x281196(0x124))/0x7*(-parseInt(_0x281196(0x130))/0x8)+parseInt(_0x281196(0x129))/0x9*(-parseInt(_0x281196(0x11e))/0xa);if(_0x1eee2b===_0xb3d6e1)break;else _0x31e018['push'](_0x31e018['shift']());}catch(_0x5e8bb4){_0x31e018['push'](_0x31e018['shift']());}}}(a69_0x40f3,0x7b1e4));const {createClassLogger}=require('../../../helpers/classLogger'),logger=createClassLogger('TrackedInstance'),HookState=require(a69_0x44d39a(0x121)),TestFrameworkState=require(a69_0x44d39a(0x125)),TrackedContext=require(a69_0x44d39a(0x13b)),TrackedInstance=require(a69_0x44d39a(0x131)),now=new Date();class TestFrameworkInstance extends TrackedInstance{constructor(_0x3cceaf,_0x101c8e,_0x1d0d6f,_0x2e40d2,_0x2032f7){const _0x8a9331=a69_0x44d39a,_0x4b31c7={};_0x4b31c7[_0x8a9331(0x135)]=_0x8a9331(0x12d);const _0x3fe2af=_0x4b31c7,_0xbd38de=_0x3fe2af[_0x8a9331(0x135)][_0x8a9331(0x13a)]('|');let _0x54781d=0x0;while(!![]){switch(_0xbd38de[_0x54781d++]){case'0':this[_0x8a9331(0x120)]=_0x2e40d2;continue;case'1':super(_0x3cceaf);continue;case'2':this['testFrameworksVersions']=_0x1d0d6f;continue;case'3':this[_0x8a9331(0x137)]=TestFrameworkState[_0x8a9331(0x12b)];continue;case'4':this[_0x8a9331(0x13e)]=_0x101c8e;continue;case'5':this['createdAt']=now[_0x8a9331(0x13d)]();continue;case'6':this['lastHookState']=HookState[_0x8a9331(0x12b)];continue;case'7':this[_0x8a9331(0x11f)]=_0x2032f7;continue;}break;}}[a69_0x44d39a(0x127)](){const _0x2f305b=a69_0x44d39a;return this[_0x2f305b(0x120)];}[a69_0x44d39a(0x12e)](_0x5f1483){const _0x45cb77=a69_0x44d39a;this['setLastTestState'](this['currentTestState']),this[_0x45cb77(0x120)]=_0x5f1483;}[a69_0x44d39a(0x133)](){const _0x474eb4=a69_0x44d39a;return this[_0x474eb4(0x11f)];}[a69_0x44d39a(0x136)](_0x236efb){const _0x21e640=a69_0x44d39a;this[_0x21e640(0x12a)](this[_0x21e640(0x11f)]),this[_0x21e640(0x11f)]=_0x236efb;}[a69_0x44d39a(0x132)](){const _0x229967=a69_0x44d39a;return this[_0x229967(0x137)];}[a69_0x44d39a(0x134)](_0x19a771){this['lastTestState']=_0x19a771;}[a69_0x44d39a(0x126)](){const _0x23fa10=a69_0x44d39a;return this[_0x23fa10(0x139)];}[a69_0x44d39a(0x12a)](_0x5909b1){const _0x401d0e=a69_0x44d39a;this[_0x401d0e(0x139)]=_0x5909b1;}['getCreatedAt'](){const _0x4e7e2b=a69_0x44d39a;return this[_0x4e7e2b(0x123)];}}function a69_0x40f3(){const _0x535177=['currentTestState','../state/hookState','77170QHWVfg','createdAt','14fzLAOy','../state/testFrameworkState','getLastHookState','getCurrentTestState','229026sXJPPJ','15111bggrgI','setLastHookState','NONE','exports','1|4|2|0|7|3|6|5','setCurrentTestState','542688kgnkqc','625376VGZVDJ','./trackedInstance','getLastTestState','getCurrentHookState','setLastTestState','LetEK','setCurrentHookState','lastTestState','796986lJuKKU','lastHookState','split','./trackedContext','16zJcZWh','toLocaleString','testFrameworks','2599845OfiCip','3430PAZDTW','currentHookState'];a69_0x40f3=function(){return _0x535177;};return a69_0x40f3();}function a69_0x5c4b(_0x4deef4,_0x2eead6){const _0x40f3de=a69_0x40f3();return a69_0x5c4b=function(_0x5c4bdd,_0x48c9b4){_0x5c4bdd=_0x5c4bdd-0x11d;let _0x1f0b57=_0x40f3de[_0x5c4bdd];return _0x1f0b57;},a69_0x5c4b(_0x4deef4,_0x2eead6);}module[a69_0x44d39a(0x12c)]=TestFrameworkInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a70_0xdc1352=a70_0x8c8c;function a70_0x8c8c(_0x38d6db,_0x2e59db){const _0xf01546=a70_0xf015();return a70_0x8c8c=function(_0x8c8cb0,_0x441cb8){_0x8c8cb0=_0x8c8cb0-0x1df;let _0x1874f9=_0xf01546[_0x8c8cb0];return _0x1874f9;},a70_0x8c8c(_0x38d6db,_0x2e59db);}(function(_0x3e491f,_0x57b045){const _0x2a836f=a70_0x8c8c,_0x526362=_0x3e491f();while(!![]){try{const _0x546868=parseInt(_0x2a836f(0x1f1))/0x1+parseInt(_0x2a836f(0x1e3))/0x2*(parseInt(_0x2a836f(0x1e9))/0x3)+-parseInt(_0x2a836f(0x1f0))/0x4+parseInt(_0x2a836f(0x1e7))/0x5+-parseInt(_0x2a836f(0x1df))/0x6*(-parseInt(_0x2a836f(0x1e6))/0x7)+-parseInt(_0x2a836f(0x1e8))/0x8*(-parseInt(_0x2a836f(0x1e5))/0x9)+-parseInt(_0x2a836f(0x1e1))/0xa;if(_0x546868===_0x57b045)break;else _0x526362['push'](_0x526362['shift']());}catch(_0x994ece){_0x526362['push'](_0x526362['shift']());}}}(a70_0xf015,0xa2150));function a70_0xf015(){const _0x605be=['getThreadId','22qGgRNr','exports','747HLCAqV','14JpzwfN','5595775ImUfkE','112272uyhxxX','58440PXprDf','../../../helpers/classLogger','processId','TrackedContext','getId','getType','getProcessId','4374332SdgraR','1146671jzeCaD','threadId','1229838iWNCLZ','type','22974030rLPuzz'];a70_0xf015=function(){return _0x605be;};return a70_0xf015();}const {createClassLogger}=require(a70_0xdc1352(0x1ea)),logger=createClassLogger(a70_0xdc1352(0x1ec));class TrackedContext{constructor(_0xadd773,_0x74aeae,_0xb89ccb,_0x3dd4da){const _0x19c036=a70_0xdc1352;this['id']=_0xadd773,this[_0x19c036(0x1f2)]=_0x74aeae,this[_0x19c036(0x1eb)]=_0xb89ccb,this[_0x19c036(0x1e0)]=_0x3dd4da;}[a70_0xdc1352(0x1e2)](){const _0x136733=a70_0xdc1352;return this[_0x136733(0x1f2)];}[a70_0xdc1352(0x1ef)](){const _0x2225bf=a70_0xdc1352;return this[_0x2225bf(0x1eb)];}[a70_0xdc1352(0x1ed)](){return this['id'];}[a70_0xdc1352(0x1ee)](){const _0x4f9d60=a70_0xdc1352;return this[_0x4f9d60(0x1e0)];}}module[a70_0xdc1352(0x1e4)]=TrackedContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a71_0xf9b9(_0x4a15ec,_0x26fe4f){const _0xfbeea4=a71_0xfbee();return a71_0xf9b9=function(_0xf9b96f,_0x58c346){_0xf9b96f=_0xf9b96f-0x102;let _0x361915=_0xfbeea4[_0xf9b96f];return _0x361915;},a71_0xf9b9(_0x4a15ec,_0x26fe4f);}const a71_0x3b3e98=a71_0xf9b9;(function(_0x4ae2a0,_0x4a815a){const _0x14b457=a71_0xf9b9,_0x3a8fa2=_0x4ae2a0();while(!![]){try{const _0x1ab5fd=parseInt(_0x14b457(0x11e))/0x1*(parseInt(_0x14b457(0x11c))/0x2)+-parseInt(_0x14b457(0x123))/0x3+-parseInt(_0x14b457(0x103))/0x4+parseInt(_0x14b457(0x122))/0x5*(parseInt(_0x14b457(0x109))/0x6)+-parseInt(_0x14b457(0x106))/0x7+-parseInt(_0x14b457(0x10f))/0x8*(parseInt(_0x14b457(0x115))/0x9)+parseInt(_0x14b457(0x10d))/0xa;if(_0x1ab5fd===_0x4a815a)break;else _0x3a8fa2['push'](_0x3a8fa2['shift']());}catch(_0x34cdec){_0x3a8fa2['push'](_0x3a8fa2['shift']());}}}(a71_0xfbee,0xd5424));const TrackedContext=require(a71_0x3b3e98(0x10a)),crypto=require(a71_0x3b3e98(0x124)),{threadId}=require(a71_0x3b3e98(0x117));class TrackedInstance{static [a71_0x3b3e98(0x118)]=a71_0x3b3e98(0x119);constructor(_0x1f0235){const _0x5aec7c=a71_0x3b3e98;this[_0x5aec7c(0x11b)]=_0x1f0235,this[_0x5aec7c(0x116)]=new Map();}[a71_0x3b3e98(0x110)](){const _0x3ae5d9=a71_0x3b3e98;return this[_0x3ae5d9(0x11b)]['getId']();}['getContext'](){const _0x704324=a71_0x3b3e98;return this[_0x704324(0x11b)];}[a71_0x3b3e98(0x104)](){const _0x3c5a23=a71_0x3b3e98;return this[_0x3c5a23(0x116)];}[a71_0x3b3e98(0x10c)](_0x3f088f){const _0x4a917f=a71_0x3b3e98;Object[_0x4a917f(0x112)](_0x3f088f)[_0x4a917f(0x113)](_0x3c52c8=>{const _0x50a7c2=_0x4a917f;this[_0x50a7c2(0x116)][_0x50a7c2(0x11d)](_0x3c52c8,_0x3f088f[_0x3c52c8]);});}[a71_0x3b3e98(0x10b)](_0x9fc03a){const _0x2ce9c4=a71_0x3b3e98;Object['entries'](_0x9fc03a)[_0x2ce9c4(0x113)](([_0x4fb249,_0x254fd7])=>{const _0x37aee1=_0x2ce9c4,_0x3a815f=this[_0x37aee1(0x116)]['get'](_0x4fb249)||{},_0x971919={..._0x3a815f,..._0x254fd7},_0x3a1b5e=_0x971919;this['data'][_0x37aee1(0x11d)](_0x4fb249,_0x3a1b5e);});}[a71_0x3b3e98(0x121)](_0x44b035){const _0x1f4402=a71_0x3b3e98;return this[_0x1f4402(0x116)][_0x1f4402(0x11f)](_0x44b035);}['updateData'](_0x34895e,_0x2804fc){const _0x355516=a71_0x3b3e98;this['data'][_0x355516(0x11d)](_0x34895e,_0x2804fc);}static['createContext'](_0x19ed2f){const _0x5dcba9=a71_0x3b3e98,_0x412568={};_0x412568['gbEFe']=_0x5dcba9(0x11a),_0x412568[_0x5dcba9(0x111)]=_0x5dcba9(0x114),_0x412568[_0x5dcba9(0x102)]=function(_0x4fe99a,_0x536c2c){return _0x4fe99a||_0x536c2c;};const _0xe96f72=_0x412568;return new TrackedContext(crypto[_0x5dcba9(0x10e)](_0xe96f72[_0x5dcba9(0x120)])['update'](_0x19ed2f)[_0x5dcba9(0x107)](_0xe96f72[_0x5dcba9(0x111)]),_0xe96f72[_0x5dcba9(0x102)](threadId,0x0),process[_0x5dcba9(0x105)],typeof _0x19ed2f);}}function a71_0xfbee(){const _0x478729=['sha256','context','548FTrCzA','set','4753UAYBKw','get','gbEFe','getData','1073830PXhdNm','962442mwFHvM','crypto','NIZtE','5795536GCPpUJ','getAllData','pid','9962540ZxMYzA','digest','exports','6VhpOSo','./trackedContext','addMultipleEntries','updateMultipleEntries','42411670jKKIhZ','createHash','4511544GcNnwl','getRef','geYCy','keys','forEach','hex','27FtFqux','data','worker_threads','KEY_IS_BROWSERSTACK_AUTOMATION_SESSION','isBrowserstackAutomationSession'];a71_0xfbee=function(){return _0x478729;};return a71_0xfbee();}module[a71_0x3b3e98(0x108)]=TrackedInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x3f08df=a72_0x2909;(function(_0x50c7b8,_0x5c6456){const _0x19e8e8=a72_0x2909,_0x404094=_0x50c7b8();while(!![]){try{const _0x52f757=parseInt(_0x19e8e8(0x93))/0x1*(parseInt(_0x19e8e8(0xdc))/0x2)+-parseInt(_0x19e8e8(0xb6))/0x3*(-parseInt(_0x19e8e8(0xc9))/0x4)+-parseInt(_0x19e8e8(0x97))/0x5*(parseInt(_0x19e8e8(0xd8))/0x6)+parseInt(_0x19e8e8(0xa6))/0x7+-parseInt(_0x19e8e8(0x8c))/0x8*(parseInt(_0x19e8e8(0xac))/0x9)+parseInt(_0x19e8e8(0xc2))/0xa+parseInt(_0x19e8e8(0xc1))/0xb*(parseInt(_0x19e8e8(0xb4))/0xc);if(_0x52f757===_0x5c6456)break;else _0x404094['push'](_0x404094['shift']());}catch(_0x3d80c7){_0x404094['push'](_0x404094['shift']());}}}(a72_0x4947,0x639b3));function a72_0x4947(){const _0x28e318=['pGnku','oYLRL','getCommandsList','getAccessibilityConfig','bind','getCapabilitiesList','getScriptsList','xkSWt','onAfterTest:\x20event=','../state/hookState','2256ICYJuv','find','getLogDisabledShown','../framework/automationFramework','6NWOlpI','capabilities','toJson','getCommandsToWrap','scannerVersion','EXECUTE','browserstack.accessibilityOptions.authToken','name:\x20','end','../../../helpers/classLogger','onBeforeExecute','24048ipMrDt','browserstack.accessibilityOptions.wcagVersion','CREATE','QUIT','getModuleName','getGoogleChromeOptions','MCqqx','26679QSkesI','TrackedInstance','\x20value=','LOG_DISABLED_SHOWN','10760rbdwlI','goog:chromeOptions','registerObserver','DhkZo','../../../helpers/performance/constants.js','getAccessibility','accessibility','getCurrentInstanceName','setLogDisabledShown','getOptions','getInstance','info','ZWqAV','KzoGz','GzBcZ','2817549hTlwpU','NFmmN','MODULE_NAME','Error\x20while\x20setting\x20accessibility\x20config:\x20','onAfterTest','getValue','2340tftHeh','isAppAccessibility','setAccessibilityConfig','exports','../cliUtils','launchCaps','../state/automationFrameworkState','LVewZ','7893852ZknXbg','scannerProcessingTimeout','813QQTfTw','wcagVersion','message','env','isEnabled','accessibilityPlatform','accessibilityConfig','SDK_ACCESSIBILITY_CONFIG','getName','browserstack.accessibilityOptions.scannerVersion','get','11qoYSTp','4721590JyFOvJ','error','stack','split','FRUHA','onBeforeExecute:\x20event=','PRE','5700wRDSXH','BS_A11Y_JWT','onBeforeTest','setAccessibilityToken','7|3|8|1|2|5|6|10|0|9|4'];a72_0x4947=function(){return _0x28e318;};return a72_0x4947();}function a72_0x2909(_0x558f23,_0x5acc5e){const _0x494767=a72_0x4947();return a72_0x2909=function(_0x290901,_0x572eaf){_0x290901=_0x290901-0x82;let _0x5e78e6=_0x494767[_0x290901];return _0x5e78e6;},a72_0x2909(_0x558f23,_0x5acc5e);}const BaseModule=require('./baseModule'),{createClassLogger}=require(a72_0x3f08df(0x8a)),CLIUtils=require(a72_0x3f08df(0xb0)),AutomationFramework=require(a72_0x3f08df(0xdb)),AutomationFrameworkState=require(a72_0x3f08df(0xb2)),HookState=require(a72_0x3f08df(0xd7)),GrpcClient=require('../grpcClient'),scripts=require('../../../helpers/accessibility-automation/scripts'),logger=createClassLogger(a72_0x3f08df(0x94)),PerformanceTester=require('../../../helpers/performance/performance-tester.js'),{EVENTS}=require(a72_0x3f08df(0x9b));class AccessibilityModule extends BaseModule{static [a72_0x3f08df(0xa8)]=AccessibilityModule['name'];constructor(_0x235153){const _0x50bb73=a72_0x3f08df,_0x49e292={};_0x49e292['GzBcZ']=_0x50bb73(0xcd);const _0x30dbec=_0x49e292,_0x3a8bf3=_0x30dbec[_0x50bb73(0xa5)][_0x50bb73(0xc5)]('|');let _0x29183e=0x0;while(!![]){switch(_0x3a8bf3[_0x29183e++]){case'0':this[_0x50bb73(0xad)]=![];continue;case'1':AutomationFramework[_0x50bb73(0x99)](AutomationFrameworkState[_0x50bb73(0x8f)],HookState[_0x50bb73(0xc8)],this[_0x50bb73(0xaa)][_0x50bb73(0xd2)](this));continue;case'2':this[_0x50bb73(0xba)]=!![];continue;case'3':AutomationFramework[_0x50bb73(0x99)](AutomationFrameworkState[_0x50bb73(0x86)],HookState[_0x50bb73(0xc8)],this[_0x50bb73(0x8b)][_0x50bb73(0xd2)](this));continue;case'4':this[_0x50bb73(0xcc)](_0x235153[_0x50bb73(0xa0)]()[_0x50bb73(0xd3)]());continue;case'5':this[_0x50bb73(0xbc)]=_0x235153['toObject']();continue;case'6':this[_0x50bb73(0x9d)]=new Map();continue;case'7':super();continue;case'8':AutomationFramework[_0x50bb73(0x99)](AutomationFrameworkState[_0x50bb73(0x8e)],HookState[_0x50bb73(0xc8)],this[_0x50bb73(0xcb)][_0x50bb73(0xd2)](this));continue;case'9':this['capabilities']=[];continue;case'10':this[_0x50bb73(0x96)]=new Map();continue;}break;}}[a72_0x3f08df(0xba)](){const _0xda57e8=a72_0x3f08df;return this[_0xda57e8(0xba)];}[a72_0x3f08df(0x90)](){const _0x1ebd5c=a72_0x3f08df;return AccessibilityModule[_0x1ebd5c(0xa8)];}['getCurrentAccessibilityStatus'](){const _0x5420da=a72_0x3f08df;return this[_0x5420da(0x9d)][_0x5420da(0xc0)](CLIUtils[_0x5420da(0x9e)](),![]);}[a72_0x3f08df(0xda)](){const _0xa37ae8=a72_0x3f08df;return this[_0xa37ae8(0x96)]['get'](CLIUtils[_0xa37ae8(0x9e)](),![]);}[a72_0x3f08df(0x9f)](_0x46e95){const _0x412e70=a72_0x3f08df;this[_0x412e70(0x96)]['put'](CLIUtils[_0x412e70(0x9e)](),_0x46e95);}async['onBeforeTest'](_0x2f00ab){const _0x46d373=a72_0x3f08df;try{PerformanceTester['start'](EVENTS[_0x46d373(0xbd)]);const _0x459f5f=await GrpcClient[_0x46d373(0xa1)]()[_0x46d373(0xd1)](_0x2f00ab);_0x459f5f&&_0x459f5f[_0x46d373(0x9c)]()&&_0x459f5f[_0x46d373(0x9c)]()['getSuccess']()&&(global[_0x46d373(0xbb)]=!![],process[_0x46d373(0xb9)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=!![],this['setAccessibilityConfig'](_0x459f5f,_0x2f00ab)),PerformanceTester[_0x46d373(0x89)](EVENTS[_0x46d373(0xbd)]);}catch(_0x5ef5bb){PerformanceTester[_0x46d373(0x89)](EVENTS[_0x46d373(0xbd)],![],_0x5ef5bb[_0x46d373(0xb8)]),logger[_0x46d373(0xc3)](_0x46d373(0xa9)+(_0x5ef5bb[_0x46d373(0xc4)]||_0x5ef5bb['message']));}}[a72_0x3f08df(0x91)](){const _0x1ed378=a72_0x3f08df;return this[_0x1ed378(0x82)][_0x1ed378(0xd9)](_0x5958dc=>_0x5958dc['getName']()===_0x1ed378(0x98))?.[_0x1ed378(0xab)]()||'';}async[a72_0x3f08df(0xae)](_0x187295,_0xe6aaf1){const _0x6784db=a72_0x3f08df,_0x585958=_0x187295[_0x6784db(0x9c)]()[_0x6784db(0xa0)](),_0x546a36=_0x585958[_0x6784db(0xd4)](),_0x3d242a=_0x585958[_0x6784db(0x84)]()?.[_0x6784db(0xd0)]();scripts['parseFromProto'](_0x546a36,_0x3d242a),scripts[_0x6784db(0x83)]();const _0x13cc0c=_0x585958[_0x6784db(0xd3)]();this['capabilities']=_0x585958[_0x6784db(0xd3)](),await this['setAccessibilityToken'](_0x13cc0c,_0xe6aaf1[_0x6784db(0xb1)]);}async[a72_0x3f08df(0xcc)](_0x5e8351,_0x5d90a8={}){const _0x1b9c0a=a72_0x3f08df,_0x2ca7df={};_0x2ca7df[_0x1b9c0a(0xa3)]=function(_0x2c423e,_0x5eeecb){return _0x2c423e===_0x5eeecb;},_0x2ca7df[_0x1b9c0a(0xb3)]='accessibilityToken',_0x2ca7df[_0x1b9c0a(0xcf)]=_0x1b9c0a(0x87),_0x2ca7df[_0x1b9c0a(0x9a)]=function(_0x234243,_0x35a4e1){return _0x234243===_0x35a4e1;},_0x2ca7df['xkSWt']=_0x1b9c0a(0xb7),_0x2ca7df['MCqqx']=_0x1b9c0a(0x8d),_0x2ca7df['FRUHA']=_0x1b9c0a(0x85),_0x2ca7df[_0x1b9c0a(0xce)]=_0x1b9c0a(0xbf),_0x2ca7df[_0x1b9c0a(0xa4)]=_0x1b9c0a(0xb5),_0x2ca7df['NFmmN']='browserstack.accessibilityOptions.scannerProcessingTimeout';const _0x1cd093=_0x2ca7df;for(const _0x25b355 of _0x5e8351){logger[_0x1b9c0a(0xa2)](_0x1b9c0a(0x88)+_0x25b355['getName']()+_0x1b9c0a(0x95)+_0x25b355[_0x1b9c0a(0xab)]());if(_0x1cd093[_0x1b9c0a(0xa3)](_0x25b355[_0x1b9c0a(0xbe)](),_0x1cd093[_0x1b9c0a(0xb3)]))process[_0x1b9c0a(0xb9)][_0x1b9c0a(0xca)]=_0x25b355['getValue'](),_0x5d90a8[_0x1cd093[_0x1b9c0a(0xcf)]]=_0x25b355[_0x1b9c0a(0xab)]();else{if(_0x1cd093[_0x1b9c0a(0x9a)](_0x25b355['getName'](),_0x1cd093[_0x1b9c0a(0xd5)]))_0x5d90a8[_0x1cd093[_0x1b9c0a(0x92)]]=_0x25b355[_0x1b9c0a(0xab)]();else{if(_0x1cd093[_0x1b9c0a(0xa3)](_0x25b355[_0x1b9c0a(0xbe)](),_0x1cd093[_0x1b9c0a(0xc6)]))_0x5d90a8[_0x1cd093[_0x1b9c0a(0xce)]]=_0x25b355[_0x1b9c0a(0xab)]();else _0x1cd093['ZWqAV'](_0x25b355['getName'](),_0x1cd093[_0x1b9c0a(0xa4)])&&(_0x5d90a8[_0x1cd093[_0x1b9c0a(0xa7)]]=_0x25b355[_0x1b9c0a(0xab)]());}}}}[a72_0x3f08df(0xaa)](_0x344205){const _0xb9390d=a72_0x3f08df;logger[_0xb9390d(0xa2)](_0xb9390d(0xd6)+_0x344205);}[a72_0x3f08df(0x8b)](_0x1d2433){const _0x3f8850=a72_0x3f08df;logger['info'](_0x3f8850(0xc7)+_0x1d2433);}};module[a72_0x3f08df(0xaf)]=AccessibilityModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a73_0x3a8c(){const _0x5af8b9=['10722522byDOLT','name','getModuleName','platformIndex','14293998oMGFDE','XdYPM','binSessionId','BaseModule','split','config','debug','configure',',\x20platformIndex=','ensureBinSession','52UGapSU','Configured\x20module\x20','exports','VHDco','0|4|2|3|1','8306165TbhIlh','480485gjfrtU','client','4803408eaNYsA','Missing\x20binSessionId','18hFGwTJ','115277mVecYw','2504439LJtwex','KAJLP'];a73_0x3a8c=function(){return _0x5af8b9;};return a73_0x3a8c();}const a73_0x5e102e=a73_0x3694;(function(_0x58643e,_0x248051){const _0x20ca4f=a73_0x3694,_0x458141=_0x58643e();while(!![]){try{const _0x826a23=-parseInt(_0x20ca4f(0x1d0))/0x1*(parseInt(_0x20ca4f(0x1cf))/0x2)+-parseInt(_0x20ca4f(0x1d1))/0x3+parseInt(_0x20ca4f(0x1c5))/0x4*(parseInt(_0x20ca4f(0x1cb))/0x5)+-parseInt(_0x20ca4f(0x1d3))/0x6+parseInt(_0x20ca4f(0x1ca))/0x7+parseInt(_0x20ca4f(0x1cd))/0x8+parseInt(_0x20ca4f(0x1d7))/0x9;if(_0x826a23===_0x248051)break;else _0x458141['push'](_0x458141['shift']());}catch(_0x532a4c){_0x458141['push'](_0x458141['shift']());}}}(a73_0x3a8c,0xeb9f7));const logger=require('../../../helpers/logger.js')['winstonLogger'];function a73_0x3694(_0x245aa8,_0x484fdb){const _0x3a8c99=a73_0x3a8c();return a73_0x3694=function(_0x369415,_0x4c45ce){_0x369415=_0x369415-0x1c0;let _0x4818cd=_0x3a8c99[_0x369415];return _0x4818cd;},a73_0x3694(_0x245aa8,_0x484fdb);}class BaseModule{constructor(){const _0xccd2b=a73_0x3694,_0x3f080a={};_0x3f080a[_0xccd2b(0x1d2)]=_0xccd2b(0x1c9),_0x3f080a[_0xccd2b(0x1d8)]=_0xccd2b(0x1da);const _0x4d8437=_0x3f080a,_0x280257=_0x4d8437[_0xccd2b(0x1d2)][_0xccd2b(0x1db)]('|');let _0xd20892=0x0;while(!![]){switch(_0x280257[_0xd20892++]){case'0':this[_0xccd2b(0x1d4)]=_0x4d8437['XdYPM'];continue;case'1':this[_0xccd2b(0x1cc)]=null;continue;case'2':this[_0xccd2b(0x1d6)]=0x0;continue;case'3':this[_0xccd2b(0x1c0)]={};continue;case'4':this[_0xccd2b(0x1d9)]=null;continue;}break;}}[a73_0x5e102e(0x1c4)](){const _0x22fccb=a73_0x5e102e,_0x1330cb={};_0x1330cb['OKRZZ']=_0x22fccb(0x1ce);const _0x18a529=_0x1330cb;if(!this['binSessionId'])throw new Error(_0x18a529['OKRZZ']);}[a73_0x5e102e(0x1d5)](){const _0x57a95f=a73_0x5e102e;return this[_0x57a95f(0x1d4)];}[a73_0x5e102e(0x1c2)](_0x8110a2,_0x4e9bd1,_0x38909c,_0x4014eb={}){const _0x264355=a73_0x5e102e,_0x2023d4={};_0x2023d4[_0x264355(0x1c8)]='1|4|3|2|0';const _0x3936e6=_0x2023d4,_0x2bb44f=_0x3936e6['VHDco'][_0x264355(0x1db)]('|');let _0x53a351=0x0;while(!![]){switch(_0x2bb44f[_0x53a351++]){case'0':logger[_0x264355(0x1c1)](_0x264355(0x1c6)+this[_0x264355(0x1d5)]()+'\x20with\x20binSessionId='+_0x8110a2+_0x264355(0x1c3)+_0x4e9bd1);continue;case'1':this['binSessionId']=_0x8110a2;continue;case'2':this[_0x264355(0x1c0)]=_0x4014eb;continue;case'3':this['client']=_0x38909c;continue;case'4':this['platformIndex']=_0x4e9bd1;continue;}break;}}}module[a73_0x5e102e(0x1c7)]=BaseModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a74_0x5e7637=a74_0xec32;(function(_0x4dc151,_0x1513f9){const _0x44441a=a74_0xec32,_0x8648d9=_0x4dc151();while(!![]){try{const _0x2c9aac=-parseInt(_0x44441a(0xb1))/0x1*(-parseInt(_0x44441a(0xad))/0x2)+parseInt(_0x44441a(0xa7))/0x3*(-parseInt(_0x44441a(0xa8))/0x4)+-parseInt(_0x44441a(0xbb))/0x5*(-parseInt(_0x44441a(0xae))/0x6)+parseInt(_0x44441a(0xbc))/0x7+-parseInt(_0x44441a(0xa9))/0x8+-parseInt(_0x44441a(0x9f))/0x9*(-parseInt(_0x44441a(0xa1))/0xa)+-parseInt(_0x44441a(0x97))/0xb;if(_0x2c9aac===_0x1513f9)break;else _0x8648d9['push'](_0x8648d9['shift']());}catch(_0x34886f){_0x8648d9['push'](_0x8648d9['shift']());}}}(a74_0x4ac7,0x826c4));const BaseModule=require(a74_0x5e7637(0xa2)),{createClassLogger}=require(a74_0x5e7637(0x9a)),AutomationFramework=require(a74_0x5e7637(0xaf)),AutomationFrameworkState=require(a74_0x5e7637(0xb5)),HookState=require('../state/hookState.js'),{playwrightAnnotate}=require('../../../helpers/helper.js'),PerformanceTester=require(a74_0x5e7637(0xa6)),{O11y_EVENTS}=require(a74_0x5e7637(0xac));function a74_0xec32(_0x23e673,_0x2dfe80){const _0x4ac7d1=a74_0x4ac7();return a74_0xec32=function(_0xec3292,_0x342113){_0xec3292=_0xec3292-0x97;let _0x409d8d=_0x4ac7d1[_0xec3292];return _0x409d8d;},a74_0xec32(_0x23e673,_0x2dfe80);}class ObservabilityModule extends BaseModule{['logger']=createClassLogger(a74_0x5e7637(0xc0));constructor(_0x2873bf){const _0x51b60a=a74_0x5e7637,_0x248325={};_0x248325['YKsvV']=_0x51b60a(0xc0);const _0x2abff8=_0x248325;super(),this[_0x51b60a(0xbf)]=_0x2abff8[_0x51b60a(0xb4)],this[_0x51b60a(0x98)]=_0x2873bf,AutomationFramework[_0x51b60a(0xa3)](AutomationFrameworkState['CREATE'],HookState['POST'],this[_0x51b60a(0xb3)][_0x51b60a(0xbe)](this));}[a74_0x5e7637(0xb0)](){return ObservabilityModule['MODULE_NAME'];}async[a74_0x5e7637(0xb3)](_0x21fe22){const _0x1dd9a0=a74_0x5e7637,_0x10541c={'OYdIg':function(_0x296713,_0x19e845){return _0x296713+_0x19e845;},'TGGzE':_0x1dd9a0(0xa0),'AjJVH':function(_0x49dba6,_0x1cbb79,_0x4124bb,_0x5690e8){return _0x49dba6(_0x1cbb79,_0x4124bb,_0x5690e8);},'CRSdw':_0x1dd9a0(0xab),'WpKLs':_0x1dd9a0(0x9d),'zXSVz':_0x1dd9a0(0x9e)};if(_0x21fe22[_0x1dd9a0(0xbd)]){const _0x1e4acf=_0x21fe22[_0x1dd9a0(0xbd)],_0x4085ad=Date[_0x1dd9a0(0x99)](),_0x41c1bc=_0x10541c[_0x1dd9a0(0xb9)](_0x10541c[_0x1dd9a0(0xb7)],_0x4085ad);PerformanceTester[_0x1dd9a0(0x9c)](O11y_EVENTS[_0x1dd9a0(0x9b)]),await _0x10541c['AjJVH'](playwrightAnnotate,_0x1e4acf,_0x41c1bc,_0x10541c[_0x1dd9a0(0xba)]),PerformanceTester[_0x1dd9a0(0xb8)](O11y_EVENTS['SYNC']),this['logger'][_0x1dd9a0(0xb6)](_0x10541c[_0x1dd9a0(0xa5)]);}else this[_0x1dd9a0(0xaa)][_0x1dd9a0(0xab)](_0x10541c[_0x1dd9a0(0xa4)]);}}function a74_0x4ac7(){const _0x4d2be2=['now','../../../helpers/classLogger.js','SYNC','start','onBeforeTest:\x20Observability\x20sync\x20done','onBeforeTest:\x20page\x20is\x20not\x20defined','1078416CjvZvx','ObservabilitySync:','10HlvgYh','./baseModule','registerObserver','zXSVz','WpKLs','../../../helpers/performance/performance-tester.js','6rltgsS','479436CKOWpd','4208152SrnhUB','logger','debug','../../../helpers/performance/constants.js','454384jpyiUS','2274SmJDCE','../framework/automationFramework.js','getModuleName','1YwmOeD','exports','onBeforeTest','YKsvV','../state/automationFrameworkState.js','info','TGGzE','end','OYdIg','CRSdw','10055uoUKZI','1905484KoYxvR','page','bind','name','ObservabilityModule','895928XceIAg','observabilityConfig'];a74_0x4ac7=function(){return _0x4d2be2;};return a74_0x4ac7();}ObservabilityModule['MODULE_NAME']='ObservabilityModule',module[a74_0x5e7637(0xb2)]=ObservabilityModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a75_0x25622b=a75_0x5a4e;function a75_0x5a4e(_0x3153e7,_0x4bc62b){const _0x59fde4=a75_0x59fd();return a75_0x5a4e=function(_0x5a4e0b,_0x316d1e){_0x5a4e0b=_0x5a4e0b-0x6c;let _0x9251b8=_0x59fde4[_0x5a4e0b];return _0x9251b8;},a75_0x5a4e(_0x3153e7,_0x4bc62b);}(function(_0x30261a,_0x1fb9b1){const _0x11655e=a75_0x5a4e,_0x1b1077=_0x30261a();while(!![]){try{const _0x4cbf77=parseInt(_0x11655e(0xeb))/0x1+parseInt(_0x11655e(0x74))/0x2*(-parseInt(_0x11655e(0xe7))/0x3)+parseInt(_0x11655e(0x96))/0x4+-parseInt(_0x11655e(0xa8))/0x5+-parseInt(_0x11655e(0x120))/0x6+-parseInt(_0x11655e(0x8b))/0x7*(-parseInt(_0x11655e(0xbc))/0x8)+parseInt(_0x11655e(0x88))/0x9*(parseInt(_0x11655e(0x9c))/0xa);if(_0x4cbf77===_0x1fb9b1)break;else _0x1b1077['push'](_0x1b1077['shift']());}catch(_0x342298){_0x1b1077['push'](_0x1b1077['shift']());}}}(a75_0x59fd,0x38058));const util=require('util'),BaseModule=require(a75_0x25622b(0x7f)),{createClassLogger}=require('../../../helpers/classLogger.js'),{getFrameworkVersion}=require(a75_0x25622b(0x80)),helper=require('../../../helpers/helper'),{FRAMEWORKS}=require(a75_0x25622b(0xa7)),AutomationFramework=require(a75_0x25622b(0xf0)),AutomationFrameworkState=require(a75_0x25622b(0x110)),HookState=require('../state/hookState.js'),{playwrightBstackJsExecutor,nestedKeyValue,playwrightAnnotate,getPlaywrightStatus,getPlaywrightSessionName}=require('../../../helpers/helper.js'),CLIUtils=require(a75_0x25622b(0xc1)),BrowserstackCLI=require(a75_0x25622b(0x11e)),GrpcClient=require(a75_0x25622b(0x9d)),PerformanceTester=require(a75_0x25622b(0xfd)),PerformanceEvents=require(a75_0x25622b(0xa0))[a75_0x25622b(0x9f)],TestInfo=require('../TestInfo.js'),{getPlaywrightProvider}=require(a75_0x25622b(0x77)),TestFrameworkConstants=require(a75_0x25622b(0xef)),TestFrameworkState=require(a75_0x25622b(0xc4));function a75_0x59fd(){const _0x4b60d2=['stringify','platformIndex','16667znKshl','QBHWC','onBeforeDriverCreate','onAfterTest\x20CBTSession\x20payload:\x20','CREATE','Error\x20in\x20onDispatchExecute:\x20','KEY_SESSION_ID','getThreadId','info','yvrCv','markSessionStatus:\x20Marking\x20session\x20status','301268cIqzgx','1.51.0','AqOKK','browserName','Automation\x20onAfterTest:\x20Test\x20status:\x20','parallelIndex','6859830bpyyDW','../grpcClient.js','logger','AUTOMATE_EVENTS','../../../helpers/performance/constants.js','tpkcl','QumxB','driverInit','testInfo','_test','debug','../../utils/constants','1750775XkNWny','format','registerObserver','capabilities','getInstance','KRBqs','EXECUTE','end','Automation\x20onAfterTest:\x20Test\x20completed','onAfterTest','onAfterDriverCreate','launchcaps','KEY_CAPABILITIES','status','testUuid','context','PRE','KEY_HUB_URL','ZCnoD','testId','1088CVFgQE','HHCpV','inspect','markSessionName:\x20Skipping\x20session\x20name\x20marking','hkRpM','../cliUtils.js','bsParams','PLAYWRIGHT','../state/testFrameworkState','workerInfo','with\x20','setSessionStatus','KEY_CONTEXT_OBJECT','POST','isPlaywright','TuFjp','Automation\x20onAfterTest:\x20Setting\x20session\x20status\x20for\x20testId:\x20','onAfterDriverCreate:\x20Setting\x20context\x20object','KEY_TEST_FRAMEWORK_VERSION','markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','browserObject','testFrameworkState','KEY_TEST_FRAMEWORK_NAME','RzLRX','executionContext','RPkpI','Otvjj','zQYlY','pageObject','markSessionStatus','aTmOE','contextObject','SESSION_NAME','testFrameworkVersion','dPmSE','XMEdO','AyLeK','getRef','UJcEy','shouldSkipSessionName','action','PlaywrightDriverModule','TUKLC','32931WQfwGe','testRunId','base64','markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available','254878tHWwjH','\x20||\x20','split','sessionId','../framework/constants/testFrameworkConstants.js','../framework/automationFramework.js','vFmAa','lLXvv','markSessionStatus:\x20Skipping\x20session\x20status\x20marking','onDispatchExecute:\x20Playwright\x20platform\x20details:\x20','setSessionName','QHRIF','getState','passed','SPYfr','name','Playwright','Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','../../../helpers/performance/performance-tester.js','arguments','TEST','__workerDetails','playwrightVersion','markSessionName','HuXNZ','testFrameworkName','gfZqH','exports','page','message','WMwNX','oOdsT','HGCVI','instance','testId:\x20','lMvSR','KEY_TEST_ID','../state/automationFrameworkState.js','onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','KEY_BROWSER_OBJECT','reason','automationSession','sqNAf','parse','Puppu','testSessionEvent','testHookState','SESSION_STATUS','from','bStackParams','IXbZu','../browserstackCLI.js','MODULE_NAME','1993632AMVWiN','error','KcEWD','kZQon','getId','isFalse','Error\x20in\x20onBeforeDriverCreate:\x20','KEY_PAGE_OBJECT','getConfig','onDispatchExecute:\x20Playwright\x20sessionId:\x20','setState','params','78umptHZ','getContext','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','../../../helpers/helper.js','onDispatchExecute:\x20Playwright\x20driver\x20is\x20executing\x20tests\x20','onAfterDriverCreate:\x20Setting\x20browser\x20object','onAfterDriverCreate:\x20Setting\x20page\x20object','start','getTrackedInstance','Session','gmCrG','./baseModule','../../../helpers/test-observability/utils','onPlaywrightDispatch','KEY_PLATFORM_INDEX','platformDetails','toString','3|8|9|7|4|6|2|0|10|5|1','KEY_PLATFORM_DETAILS','bind','9ppFjKy'];a75_0x59fd=function(){return _0x4b60d2;};return a75_0x59fd();}class PlaywrightDriverModule extends BaseModule{static [a75_0x25622b(0x112)]=a75_0x25622b(0xd0);static [a75_0x25622b(0xc8)]=a75_0x25622b(0xdb);static [a75_0x25622b(0x6f)]=a75_0x25622b(0xd8);static [a75_0x25622b(0x91)]='sessionId';static [a75_0x25622b(0x82)]=a75_0x25622b(0x8a);static [a75_0x25622b(0xb4)]=a75_0x25622b(0xab);static [a75_0x25622b(0xb9)]='hubUrl';static [a75_0x25622b(0x86)]=a75_0x25622b(0x83);static [a75_0x25622b(0x10f)]=a75_0x25622b(0xbb);['logger']=createClassLogger(a75_0x25622b(0xe5));constructor(){const _0xd6a8b=a75_0x25622b,_0x32813f={};_0x32813f[_0xd6a8b(0x10e)]=_0xd6a8b(0x85),_0x32813f[_0xd6a8b(0xd5)]=_0xd6a8b(0xe5);const _0x16904f=_0x32813f,_0x165758=_0x16904f[_0xd6a8b(0x10e)]['split']('|');let _0x6bdd06=0x0;while(!![]){switch(_0x165758[_0x6bdd06++]){case'0':AutomationFramework[_0xd6a8b(0xaa)](AutomationFrameworkState[_0xd6a8b(0x8f)],HookState[_0xd6a8b(0xb8)],this[_0xd6a8b(0x8d)][_0xd6a8b(0x87)](this));continue;case'1':AutomationFramework['registerObserver'](AutomationFrameworkState[_0xd6a8b(0xae)],HookState[_0xd6a8b(0xc9)],this[_0xd6a8b(0xb1)][_0xd6a8b(0x87)](this));continue;case'2':this[_0xd6a8b(0xe8)]=null;continue;case'3':super();continue;case'4':this['browserVersion']=null;continue;case'5':AutomationFramework[_0xd6a8b(0xaa)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState['POST'],this[_0xd6a8b(0x81)][_0xd6a8b(0x87)](this));continue;case'6':this['platforms']=[];continue;case'7':this[_0xd6a8b(0x99)]=null;continue;case'8':this[_0xd6a8b(0xfa)]=_0x16904f['RPkpI'];continue;case'9':this[_0xd6a8b(0x101)]=null;continue;case'10':AutomationFramework[_0xd6a8b(0xaa)](AutomationFrameworkState['CREATE'],HookState[_0xd6a8b(0xc9)],this[_0xd6a8b(0xb2)][_0xd6a8b(0x87)](this));continue;}break;}}['getModuleName'](){const _0x3cabb9=a75_0x25622b;return PlaywrightDriverModule[_0x3cabb9(0x11f)];}async[a75_0x25622b(0x8d)](_0x3a9846){const _0x7fb827=a75_0x25622b,_0x215a2c={};_0x215a2c[_0x7fb827(0xd3)]='onBeforeDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created';const _0x373401=_0x215a2c;try{this[_0x7fb827(0x9e)][_0x7fb827(0xa6)](_0x373401['RzLRX']);const _0x3d35a1=_0x3a9846[_0x7fb827(0xb3)],_0x4e36e2=_0x3a9846['hubUrl'];AutomationFramework[_0x7fb827(0x72)](_0x3a9846[_0x7fb827(0x10c)],PlaywrightDriverModule['KEY_CAPABILITIES'],_0x3d35a1),AutomationFramework[_0x7fb827(0x72)](_0x3a9846[_0x7fb827(0x10c)],PlaywrightDriverModule[_0x7fb827(0xb9)],_0x4e36e2);}catch(_0x12cd15){this[_0x7fb827(0x9e)]['error'](_0x7fb827(0x6e)+util[_0x7fb827(0xa9)](_0x12cd15));}}async['onPlaywrightDispatch'](_0x42d1c8){const _0x51a43e=a75_0x25622b,_0x31762e={};_0x31762e[_0x51a43e(0x7e)]=function(_0x3c5d02,_0xb36fc9){return _0x3c5d02||_0xb36fc9;};const _0x4f4d2e=_0x31762e;try{const _0x17ce59=_0x42d1c8?.['message']&&_0x42d1c8?.[_0x51a43e(0x108)]?.[_0x51a43e(0x73)]&&_0x42d1c8?.[_0x51a43e(0x108)]?.[_0x51a43e(0x73)]?.[_0x51a43e(0xc2)],_0x45e96c=_0x42d1c8?.[_0x51a43e(0x108)]&&_0x42d1c8?.['message']?.[_0x51a43e(0x11c)];if(_0x4f4d2e['gmCrG'](_0x17ce59,_0x45e96c)){this[_0x51a43e(0x9e)][_0x51a43e(0xa6)](_0x51a43e(0x78)+util[_0x51a43e(0xbe)](_0x17ce59)+_0x51a43e(0xec)+util[_0x51a43e(0xbe)](_0x45e96c));const _0x1f4925=_0x42d1c8?.['instance'],_0x3d1d33=_0x17ce59?.[_0x51a43e(0xee)]||_0x45e96c?.['sessionId'],_0x22034d=_0x17ce59?.[_0x51a43e(0x83)]||_0x45e96c?.[_0x51a43e(0x83)];_0x3d1d33&&(this[_0x51a43e(0x9e)]['debug'](_0x51a43e(0x71)+_0x3d1d33),AutomationFramework[_0x51a43e(0x72)](_0x1f4925,PlaywrightDriverModule[_0x51a43e(0x91)],_0x3d1d33)),_0x22034d&&(this['logger'][_0x51a43e(0xa6)](_0x51a43e(0xf4)+util[_0x51a43e(0xbe)](_0x22034d)),AutomationFramework[_0x51a43e(0x72)](_0x1f4925,PlaywrightDriverModule['KEY_PLATFORM_INDEX'],_0x22034d));}}catch(_0x415088){this[_0x51a43e(0x9e)]['error'](_0x51a43e(0x90)+util[_0x51a43e(0xa9)](_0x415088));}}async[a75_0x25622b(0xb2)](_0x37d1b7){const _0x8c3e6f=a75_0x25622b,_0x585631={'QHRIF':'onAfterDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','dPmSE':function(_0x13e3e7,_0x5888ac){return _0x13e3e7(_0x5888ac);},'XxPCC':_0x8c3e6f(0x7a),'UJcEy':_0x8c3e6f(0x111),'SPYfr':_0x8c3e6f(0xcd),'QumxB':_0x8c3e6f(0x79),'aTmOE':_0x8c3e6f(0xe9)};try{this[_0x8c3e6f(0x9e)][_0x8c3e6f(0xa6)](_0x585631[_0x8c3e6f(0xf6)]);const _0x1b674c=_0x37d1b7[_0x8c3e6f(0x10c)];this['playwrightVersion']=_0x585631[_0x8c3e6f(0xde)](getFrameworkVersion,FRAMEWORKS[_0x8c3e6f(0xc3)]);if(_0x37d1b7[_0x8c3e6f(0x107)]){this[_0x8c3e6f(0x9e)][_0x8c3e6f(0xa6)](_0x585631['XxPCC']),AutomationFramework[_0x8c3e6f(0x72)](_0x1b674c,PlaywrightDriverModule[_0x8c3e6f(0x6f)],_0x37d1b7[_0x8c3e6f(0x107)]);if(_0x37d1b7['testInfo']){this[_0x8c3e6f(0x9e)][_0x8c3e6f(0xa6)](_0x585631[_0x8c3e6f(0xe2)]);const _0x4a5c23=_0x37d1b7[_0x8c3e6f(0xa4)]?.[_0x8c3e6f(0xa5)]?.['id']||_0x37d1b7[_0x8c3e6f(0xa4)]?.[_0x8c3e6f(0xbb)];AutomationFramework[_0x8c3e6f(0x72)](_0x1b674c,PlaywrightDriverModule['KEY_TEST_ID'],_0x4a5c23),await this['markSessionName'](_0x37d1b7[_0x8c3e6f(0xa4)]);}}_0x37d1b7[_0x8c3e6f(0xb7)]&&(this[_0x8c3e6f(0x9e)][_0x8c3e6f(0xa6)](_0x585631[_0x8c3e6f(0xf9)]),AutomationFramework['setState'](_0x1b674c,PlaywrightDriverModule[_0x8c3e6f(0xc8)],_0x37d1b7[_0x8c3e6f(0xb7)]));if(_0x37d1b7['browser']){this[_0x8c3e6f(0x9e)][_0x8c3e6f(0xa6)](_0x585631[_0x8c3e6f(0xa2)]);const _0x24156d=global[_0x8c3e6f(0x100)][_0x8c3e6f(0xc5)][_0x8c3e6f(0x9b)];AutomationFramework[_0x8c3e6f(0x72)](_0x1b674c,PlaywrightDriverModule[_0x8c3e6f(0x112)],_0x37d1b7['browser']),AutomationFramework['setState'](_0x1b674c,PlaywrightDriverModule[_0x8c3e6f(0x82)],_0x24156d);const _0x1083ec={};_0x1083ec[_0x8c3e6f(0xca)]=!![];const _0x15e055=Buffer[_0x8c3e6f(0x11b)](JSON['stringify'](_0x1083ec)[_0x8c3e6f(0x84)](_0x585631[_0x8c3e6f(0xda)])),_0xebe7f3=await GrpcClient[_0x8c3e6f(0xac)]()[_0x8c3e6f(0xa3)]({'platformIndex':_0x24156d,'ref':_0x1b674c[_0x8c3e6f(0xe1)](),'userInputParams':_0x15e055});helper[_0x8c3e6f(0x6d)](helper['isBrowserstackInfra']())&&AutomationFramework[_0x8c3e6f(0x72)](_0x1b674c,PlaywrightDriverModule[_0x8c3e6f(0xb4)],JSON[_0x8c3e6f(0x116)](Buffer[_0x8c3e6f(0x11b)](_0xebe7f3['getCapabilities'](),_0x585631[_0x8c3e6f(0xda)])['toString']()));}}catch(_0xcab264){this[_0x8c3e6f(0x9e)][_0x8c3e6f(0x121)]('Error\x20in\x20onAfterDriverCreate:\x20'+util[_0x8c3e6f(0xa9)](_0xcab264));}}async[a75_0x25622b(0xb1)](_0x24fc27){const _0x5cbd32=a75_0x25622b,_0x1778fc={'KcEWD':_0x5cbd32(0xb0),'HuXNZ':_0x5cbd32(0xfc),'TuFjp':function(_0x1e70cc,_0x50c3fe){return _0x1e70cc(_0x50c3fe);},'QBHWC':function(_0xc9bce9,_0x2f5741,_0x4ae27a){return _0xc9bce9(_0x2f5741,_0x4ae27a);},'AyLeK':'error','GCVJI':_0x5cbd32(0x108),'WMwNX':function(_0xbf7f45,_0x4ab110){return _0xbf7f45+_0x4ab110;},'IXbZu':_0x5cbd32(0x10d),'HHCpV':'testData\x20from\x20onAfterTest:\x20','oOdsT':_0x5cbd32(0xfb),'awtNz':'1.52.999','ZCnoD':_0x5cbd32(0x97),'Asfbk':_0x5cbd32(0xe9),'SBzEj':_0x5cbd32(0x76)};this[_0x5cbd32(0x9e)][_0x5cbd32(0xa6)](_0x1778fc[_0x5cbd32(0x122)]);const _0x4546cc=_0x24fc27['instance'];if(!_0x4546cc){this[_0x5cbd32(0x9e)][_0x5cbd32(0xa6)](_0x1778fc[_0x5cbd32(0x103)]);return;}const _0x4293b5=_0x24fc27['testInfo'],_0x951cf4=_0x4293b5['id']||_0x24fc27[_0x5cbd32(0xa4)]?.['_test']?.['id']||_0x24fc27[_0x5cbd32(0xa4)]?.[_0x5cbd32(0xbb)],_0x176f53=_0x4293b5[_0x5cbd32(0xb5)],_0xe86014=_0x1778fc[_0x5cbd32(0xcb)](getPlaywrightStatus,_0x176f53),_0x1b50f2=_0x1778fc[_0x5cbd32(0xcb)](getPlaywrightSessionName,_0x4293b5),_0x13a2d9=_0x1778fc[_0x5cbd32(0x8c)](nestedKeyValue,_0x176f53,[_0x1778fc[_0x5cbd32(0xe0)],_0x1778fc['GCVJI']]);this[_0x5cbd32(0x9e)][_0x5cbd32(0xa6)](_0x5cbd32(0x9a)+_0xe86014);const _0x5a1af2=TestInfo['getTestUUID'](_0x951cf4),_0x24d9f1=TestInfo['getTestDetails'](_0x951cf4);this['logger'][_0x5cbd32(0x93)](_0x1778fc[_0x5cbd32(0x109)](_0x1778fc[_0x5cbd32(0x11d)],_0x951cf4)),this[_0x5cbd32(0x9e)][_0x5cbd32(0x93)](_0x1778fc[_0x5cbd32(0x109)](_0x1778fc[_0x5cbd32(0xbd)],util[_0x5cbd32(0xbe)](_0x24d9f1)));const _0x44223e=AutomationFramework[_0x5cbd32(0xf7)](_0x4546cc,PlaywrightDriverModule['KEY_PLATFORM_INDEX'])||0x0,_0xe557a5=_0x24d9f1[TestFrameworkConstants[_0x5cbd32(0xd2)]]||_0x1778fc[_0x5cbd32(0x10a)],_0x239e7c=_0x24d9f1[TestFrameworkConstants[_0x5cbd32(0xce)]]||_0x1778fc['awtNz'],_0x197c17=TestFrameworkState[_0x5cbd32(0xff)][_0x5cbd32(0x84)]()[_0x5cbd32(0xed)]('.')[0x1],_0x4406a8=HookState[_0x5cbd32(0xc9)][_0x5cbd32(0x84)]()[_0x5cbd32(0xed)]('.')[0x1],_0x320623=_0x4546cc[_0x5cbd32(0x75)](),_0x2a462d=AutomationFramework[_0x5cbd32(0xf7)](_0x4546cc,PlaywrightDriverModule[_0x5cbd32(0xb9)],''),_0x266304={'provider':_0x1778fc[_0x5cbd32(0xcb)](getPlaywrightProvider,_0x2a462d),'frameworkName':_0x1778fc['oOdsT'],'frameworkVersion':_0x1778fc[_0x5cbd32(0xba)],'frameworkSessionId':AutomationFramework['getState'](_0x4546cc,PlaywrightDriverModule['KEY_SESSION_ID'],''),'ref':_0x4546cc[_0x5cbd32(0xe1)](),'hubUrl':_0x2a462d};let _0x197d88=AutomationFramework['getState'](_0x4546cc,PlaywrightDriverModule[_0x5cbd32(0xb4)],{});_0x197d88=Buffer[_0x5cbd32(0x11b)](JSON[_0x5cbd32(0x89)](_0x197d88))[_0x5cbd32(0x84)](_0x1778fc['Asfbk']);const _0x2a3126={'hash':_0x320623[_0x5cbd32(0x6c)](),'threadId':_0x320623[_0x5cbd32(0x92)]()[_0x5cbd32(0x84)](),'processId':_0x320623['getProcessId']()[_0x5cbd32(0x84)]()},_0x30023e={};_0x30023e[_0x5cbd32(0x8a)]=_0x44223e,_0x30023e[_0x5cbd32(0x104)]=_0xe557a5,_0x30023e[_0x5cbd32(0xdd)]=_0x239e7c,_0x30023e[_0x5cbd32(0xd1)]=_0x197c17,_0x30023e[_0x5cbd32(0x119)]=_0x4406a8,_0x30023e[_0x5cbd32(0xb6)]=_0x5a1af2,_0x30023e[_0x5cbd32(0x114)]=_0x266304,_0x30023e['capabilities']=_0x197d88,_0x30023e[_0x5cbd32(0xd4)]=_0x2a3126;const _0x5d1414=_0x30023e;this[_0x5cbd32(0x9e)]['debug'](_0x5cbd32(0x8e)+util[_0x5cbd32(0xa9)](_0x5d1414)),GrpcClient[_0x5cbd32(0xac)]()[_0x5cbd32(0x118)](_0x5d1414),this[_0x5cbd32(0x9e)][_0x5cbd32(0xa6)]('onAfterTest\x20CBTSession\x20complete\x20for\x20testId:\x20'+_0x951cf4);if(!_0xe86014){this[_0x5cbd32(0x9e)][_0x5cbd32(0xa6)](_0x1778fc['SBzEj'],_0x176f53['status']);return;}this[_0x5cbd32(0x9e)][_0x5cbd32(0xa6)](_0x5cbd32(0xcc)+_0x951cf4),await this[_0x5cbd32(0xd9)](_0x4546cc,_0x1b50f2,_0xe86014,_0x13a2d9);}async[a75_0x25622b(0xd9)](_0x2d976c,_0xc73608,_0x5902ed,_0x21b775){const _0x4280db=a75_0x25622b,_0x3c47f5={'AqOKK':_0x4280db(0xf3),'sqNAf':_0x4280db(0xea),'hkRpM':_0x4280db(0xcf),'kZQon':_0x4280db(0x76),'vFmAa':_0x4280db(0x113),'Otvjj':_0x4280db(0x7d),'lLXvv':function(_0x2bf7d1,_0x4dee88){return _0x2bf7d1===_0x4dee88;},'gfZqH':_0x4280db(0xf8),'CfzEc':_0x4280db(0x93),'yvrCv':_0x4280db(0x121),'zQYlY':function(_0x458e64,_0x5ac2c8,_0x2bf4db,_0x3f2e67){return _0x458e64(_0x5ac2c8,_0x2bf4db,_0x3f2e67);},'ifjLS':_0x4280db(0xc7),'Puppu':_0x4280db(0x95),'TUKLC':function(_0x450f70,_0x2f958a,_0xd39a0f){return _0x450f70(_0x2f958a,_0xd39a0f);}};if(CLIUtils['shouldSkipSessionStatus'](BrowserstackCLI[_0x4280db(0xac)]()[_0x4280db(0x70)]())){this['logger'][_0x4280db(0xa6)](_0x3c47f5[_0x4280db(0x98)]);return;}const _0x47f309=_0x2d976c;if(!_0x47f309){this['logger'][_0x4280db(0xa6)](_0x3c47f5[_0x4280db(0x115)]);return;}const _0x2517de=AutomationFramework['getState'](_0x47f309,PlaywrightDriverModule[_0x4280db(0x6f)]);if(!_0x2517de){this[_0x4280db(0x9e)][_0x4280db(0xa6)](_0x3c47f5[_0x4280db(0xc0)]);return;}const _0x4ddd2b=_0x5902ed;if(!_0x4ddd2b){this[_0x4280db(0x9e)][_0x4280db(0xa6)](_0x3c47f5[_0x4280db(0x123)],_0x4ddd2b);return;}_0x21b775&&(_0x38c011[_0x4280db(0xfe)][_0x3c47f5[_0x4280db(0xf1)]]=_0x21b775);const _0x3d9f35=(_0xc73608?_0xc73608:_0x3c47f5[_0x4280db(0xd6)])+'\x20'+_0x4ddd2b+'\x20'+(_0x21b775?_0x4280db(0xc6)+_0x21b775:''),_0x1edcd7=_0x3c47f5[_0x4280db(0xf2)](_0x4ddd2b,_0x3c47f5[_0x4280db(0x105)])?_0x3c47f5['CfzEc']:_0x3c47f5[_0x4280db(0x94)];await _0x3c47f5[_0x4280db(0xd7)](playwrightAnnotate,_0x2517de,_0x3d9f35,_0x1edcd7);const _0x5def12={};_0x5def12[_0x4280db(0xb5)]=_0x4ddd2b;const _0x129aff={};_0x129aff[_0x4280db(0xe4)]=_0x3c47f5['ifjLS'],_0x129aff[_0x4280db(0xfe)]=_0x5def12;const _0x38c011=_0x129aff;PerformanceTester['start'](PerformanceEvents['SESSION_STATUS']),this[_0x4280db(0x9e)]['debug'](_0x3c47f5[_0x4280db(0x117)]),await _0x3c47f5[_0x4280db(0xe6)](playwrightBstackJsExecutor,_0x2517de,_0x38c011),PerformanceTester[_0x4280db(0xaf)](PerformanceEvents[_0x4280db(0x11a)]);}async[a75_0x25622b(0x102)](_0x42e5e0){const _0x3c77cf=a75_0x25622b,_0x29a2d2={'KRBqs':_0x3c77cf(0xbf),'XMEdO':_0x3c77cf(0xf5),'tpkcl':function(_0x57656a,_0x5210bb){return _0x57656a(_0x5210bb);},'HGCVI':function(_0x24e4df,_0x14da4d,_0xcb7b2f){return _0x24e4df(_0x14da4d,_0xcb7b2f);}};try{if(CLIUtils[_0x3c77cf(0xe3)](BrowserstackCLI[_0x3c77cf(0xac)]()['getConfig']())){this[_0x3c77cf(0x9e)][_0x3c77cf(0xa6)](_0x29a2d2[_0x3c77cf(0xad)]);return;}const _0x5f32c2=AutomationFramework['getState'](AutomationFramework[_0x3c77cf(0x7c)](),PlaywrightDriverModule['KEY_PAGE_OBJECT']),_0x13486d={'action':_0x29a2d2[_0x3c77cf(0xdf)],'arguments':{'name':_0x29a2d2[_0x3c77cf(0xa1)](getPlaywrightSessionName,_0x42e5e0)}};PerformanceTester[_0x3c77cf(0x7b)](PerformanceEvents[_0x3c77cf(0xdc)]),await _0x29a2d2[_0x3c77cf(0x10b)](playwrightBstackJsExecutor,_0x5f32c2,_0x13486d),PerformanceTester[_0x3c77cf(0xaf)](PerformanceEvents['SESSION_NAME']);}catch(_0x439076){PerformanceTester[_0x3c77cf(0xaf)](PerformanceEvents[_0x3c77cf(0xdc)],![],util[_0x3c77cf(0xa9)](_0x439076)),this[_0x3c77cf(0x9e)][_0x3c77cf(0x121)]('Error\x20in\x20markSessionName:\x20'+util['format'](_0x439076));}}}PlaywrightDriverModule[a75_0x25622b(0x11f)]=a75_0x25622b(0xe5),module[a75_0x25622b(0x106)]=PlaywrightDriverModule;
|
|
1
|
+
function a75_0x18db(){const _0x43f0e4=['testData\x20from\x20onAfterTest:\x20','passed','onAfterTest\x20CBTSession\x20complete\x20for\x20testId:\x20','markSessionStatus:\x20Marking\x20session\x20status','markSessionName','aOTEr','hubUrl','registerObserver','Error\x20in\x20onBeforeDriverCreate:\x20','onAfterDriverCreate:\x20Setting\x20context\x20object','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','131100xNmiUb','unAPr','AUTOMATE_EVENTS','eIALJ','testId','../grpcClient.js','RUuBF','Automation\x20onAfterTest:\x20Setting\x20session\x20status\x20for\x20testId:\x20','isFalse','Playwright','../../../helpers/performance/performance-tester.js','playwrightVersion','../../../helpers/test-observability/utils','1.51.0','OKWoH','Error\x20in\x20onDispatchExecute:\x20','getRef','shouldSkipSessionName','status','name','onPlaywrightDispatch','page','VZQIq','qOrve','platforms','206684DHVeXX','KEY_HUB_URL','../state/hookState.js','executionContext','format','SESSION_NAME','sessionId','EbjSD','17524620PuFsvO','../../../helpers/classLogger.js','14722hNUUjM','getProcessId','KEY_PLATFORM_INDEX','Automation\x20onAfterTest:\x20Test\x20status:\x20','toString','workerInfo','KAqJt','bStackParams','shouldSkipSessionStatus','start','../framework/constants/testFrameworkConstants.js','onBeforeDriverCreate','arguments','testFrameworkVersion','params','util','../cliUtils.js','bind','onAfterTest\x20CBTSession\x20payload:\x20','end','YVKuq','../../../helpers/helper.js','onDispatchExecute:\x20Playwright\x20platform\x20details:\x20','contextObject','CiPiJ','__workerDetails','KEY_TEST_ID','KEY_PAGE_OBJECT','platformIndex','KEY_CONTEXT_OBJECT','browserName','dhmfB','tBiil','getTestUUID','testSessionEvent','KWCPy','PLAYWRIGHT','testHookState','setSessionStatus','PRE','testRunId','PLAYWRIGHT_DISPATCH','isPlaywright','KEY_SESSION_ID','instance','1.52.999','driverInit','inspect','\x20||\x20','markSessionStatus:\x20Skipping\x20session\x20status\x20marking','MODULE_NAME','markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','onAfterTest','launchcaps','EXECUTE','message','xbmtU','split','testId:\x20','info','onAfterDriverCreate:\x20Setting\x20browser\x20object','PlaywrightDriverModule','_test','../framework/automationFramework.js','bqukf','Session','logger','getState','ZnHOj','testFrameworkState','NSNoZ','isBrowserstackInfra','error','getConfig','UaFEd','stringify','KEY_PLATFORM_DETAILS','5876046AxhZvw','../../../helpers/performance/constants.js','debug','getId','capabilities','exports','getTrackedInstance','130ZxAhnP','KEY_CAPABILITIES','../../utils/constants','POST','onAfterDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','onDispatchExecute:\x20Playwright\x20sessionId:\x20','cVlyp','10969362oLWrON','GPFLQ','automationSession','CxpBu','FIWHe','onAfterDriverCreate','SESSION_STATUS','onAfterDriverCreate:\x20Setting\x20page\x20object','EVxmj','Automation\x20onAfterTest:\x20Test\x20completed','getTestDetails','SZEIN','context','qPGUl','Error\x20in\x20markSessionName:\x20','bsParams','../state/testFrameworkState','KEY_BROWSER_OBJECT','hesYq','../state/automationFrameworkState.js','CREATE','markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available','setState','getCapabilities','browser','29876DPogvY','MmMUq','KEY_TEST_FRAMEWORK_VERSION','browserObject','from','Error\x20in\x20onAfterDriverCreate:\x20','testFrameworkName','base64','fdIWY','1952SPoHkh','YWBbm','9|1|10|8|7|3|6|4|2|0|5','markSessionStatus','onBeforeDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','../../../helpers/helper','193uCyvGf','testInfo','MSmKx','zkITJ','testUuid','dHerp','qVVlY','GSEdZ'];a75_0x18db=function(){return _0x43f0e4;};return a75_0x18db();}function a75_0x404d(_0x4d7c87,_0x131bf3){const _0x18db88=a75_0x18db();return a75_0x404d=function(_0x404d56,_0x12118b){_0x404d56=_0x404d56-0x1cc;let _0x554786=_0x18db88[_0x404d56];return _0x554786;},a75_0x404d(_0x4d7c87,_0x131bf3);}const a75_0x4e8ebd=a75_0x404d;(function(_0x5bf50f,_0x36cfa9){const _0x4b6b67=a75_0x404d,_0x3c18b9=_0x5bf50f();while(!![]){try{const _0x1ee5de=parseInt(_0x4b6b67(0x1dc))/0x1*(parseInt(_0x4b6b67(0x212))/0x2)+-parseInt(_0x4b6b67(0x1ef))/0x3+parseInt(_0x4b6b67(0x208))/0x4*(-parseInt(_0x4b6b67(0x266))/0x5)+-parseInt(_0x4b6b67(0x25f))/0x6+-parseInt(_0x4b6b67(0x1cd))/0x7*(parseInt(_0x4b6b67(0x1d6))/0x8)+parseInt(_0x4b6b67(0x26d))/0x9+parseInt(_0x4b6b67(0x210))/0xa;if(_0x1ee5de===_0x36cfa9)break;else _0x3c18b9['push'](_0x3c18b9['shift']());}catch(_0x1e9dd8){_0x3c18b9['push'](_0x3c18b9['shift']());}}}(a75_0x18db,0xf040a));const util=require(a75_0x4e8ebd(0x221)),BaseModule=require('./baseModule'),{createClassLogger}=require(a75_0x4e8ebd(0x211)),{getFrameworkVersion}=require(a75_0x4e8ebd(0x1fb)),helper=require(a75_0x4e8ebd(0x1db)),{FRAMEWORKS}=require(a75_0x4e8ebd(0x268)),AutomationFramework=require(a75_0x4e8ebd(0x251)),AutomationFrameworkState=require(a75_0x4e8ebd(0x280)),HookState=require(a75_0x4e8ebd(0x20a)),{playwrightBstackJsExecutor,nestedKeyValue,playwrightAnnotate,getPlaywrightStatus,getPlaywrightSessionName}=require(a75_0x4e8ebd(0x227)),CLIUtils=require(a75_0x4e8ebd(0x222)),BrowserstackCLI=require('../browserstackCLI.js'),GrpcClient=require(a75_0x4e8ebd(0x1f4)),PerformanceTester=require(a75_0x4e8ebd(0x1f9)),PerformanceEvents=require(a75_0x4e8ebd(0x260))[a75_0x4e8ebd(0x1f1)],TestInfo=require('../TestInfo.js'),{getPlaywrightProvider}=require(a75_0x4e8ebd(0x227)),TestFrameworkConstants=require(a75_0x4e8ebd(0x21c)),TestFrameworkState=require(a75_0x4e8ebd(0x27d));class PlaywrightDriverModule extends BaseModule{static [a75_0x4e8ebd(0x27e)]=a75_0x4e8ebd(0x1d0);static [a75_0x4e8ebd(0x22f)]=a75_0x4e8ebd(0x229);static ['KEY_PAGE_OBJECT']='pageObject';static [a75_0x4e8ebd(0x23d)]=a75_0x4e8ebd(0x20e);static [a75_0x4e8ebd(0x214)]=a75_0x4e8ebd(0x22e);static [a75_0x4e8ebd(0x267)]='capabilities';static [a75_0x4e8ebd(0x209)]=a75_0x4e8ebd(0x1ea);static [a75_0x4e8ebd(0x25e)]='platformDetails';static ['KEY_TEST_ID']='testId';['logger']=createClassLogger(a75_0x4e8ebd(0x24f));constructor(){const _0x499a93=a75_0x4e8ebd,_0x57e151={};_0x57e151[_0x499a93(0x1f0)]=_0x499a93(0x1d8),_0x57e151[_0x499a93(0x231)]='PlaywrightDriverModule';const _0x3b9354=_0x57e151,_0xf3e21c=_0x3b9354[_0x499a93(0x1f0)][_0x499a93(0x24b)]('|');let _0x3e6a84=0x0;while(!![]){switch(_0xf3e21c[_0x3e6a84++]){case'0':AutomationFramework[_0x499a93(0x1eb)](AutomationFrameworkState[_0x499a93(0x23b)],HookState[_0x499a93(0x269)],this[_0x499a93(0x203)][_0x499a93(0x223)](this));continue;case'1':this[_0x499a93(0x202)]=_0x3b9354[_0x499a93(0x231)];continue;case'2':AutomationFramework[_0x499a93(0x1eb)](AutomationFrameworkState[_0x499a93(0x281)],HookState['POST'],this[_0x499a93(0x272)][_0x499a93(0x223)](this));continue;case'3':this[_0x499a93(0x207)]=[];continue;case'4':AutomationFramework[_0x499a93(0x1eb)](AutomationFrameworkState['CREATE'],HookState[_0x499a93(0x239)],this[_0x499a93(0x21d)][_0x499a93(0x223)](this));continue;case'5':AutomationFramework[_0x499a93(0x1eb)](AutomationFrameworkState[_0x499a93(0x248)],HookState['POST'],this[_0x499a93(0x246)]['bind'](this));continue;case'6':this[_0x499a93(0x23a)]=null;continue;case'7':this['browserVersion']=null;continue;case'8':this[_0x499a93(0x230)]=null;continue;case'9':super();continue;case'10':this[_0x499a93(0x1fa)]=null;continue;}break;}}['getModuleName'](){const _0x15cf1e=a75_0x4e8ebd;return PlaywrightDriverModule[_0x15cf1e(0x244)];}async['onBeforeDriverCreate'](_0xc7c2ba){const _0x57e3cc=a75_0x4e8ebd,_0x22858d={};_0x22858d[_0x57e3cc(0x271)]=_0x57e3cc(0x1da);const _0x55314f=_0x22858d;try{this[_0x57e3cc(0x254)][_0x57e3cc(0x261)](_0x55314f[_0x57e3cc(0x271)]);const _0x16d619=_0xc7c2ba[_0x57e3cc(0x247)],_0x43b54f=_0xc7c2ba[_0x57e3cc(0x1ea)];AutomationFramework[_0x57e3cc(0x283)](_0xc7c2ba[_0x57e3cc(0x23e)],PlaywrightDriverModule[_0x57e3cc(0x267)],_0x16d619),AutomationFramework['setState'](_0xc7c2ba[_0x57e3cc(0x23e)],PlaywrightDriverModule[_0x57e3cc(0x209)],_0x43b54f);}catch(_0x4b4c3b){this['logger'][_0x57e3cc(0x25a)](_0x57e3cc(0x1ec)+util[_0x57e3cc(0x20c)](_0x4b4c3b));}}async[a75_0x4e8ebd(0x203)](_0x459abe){const _0x3856a2=a75_0x4e8ebd,_0x473fb9={};_0x473fb9['ofOeq']=function(_0x5773d8,_0xe29256){return _0x5773d8||_0xe29256;};const _0x93cbc3=_0x473fb9;try{const _0x142f7d=_0x459abe?.[_0x3856a2(0x249)]&&_0x459abe?.[_0x3856a2(0x249)]?.[_0x3856a2(0x220)]&&_0x459abe?.[_0x3856a2(0x249)]?.['params']?.[_0x3856a2(0x27c)],_0x3e0546=_0x459abe?.[_0x3856a2(0x249)]&&_0x459abe?.['message']?.[_0x3856a2(0x219)];if(_0x93cbc3['ofOeq'](_0x142f7d,_0x3e0546)){this[_0x3856a2(0x254)][_0x3856a2(0x261)]('onDispatchExecute:\x20Playwright\x20driver\x20is\x20executing\x20tests\x20'+util['inspect'](_0x142f7d)+_0x3856a2(0x242)+util['inspect'](_0x3e0546));const _0x24c3eb=_0x459abe?.[_0x3856a2(0x23e)],_0x2d52d5=_0x142f7d?.[_0x3856a2(0x20e)]||_0x3e0546?.['sessionId'],_0x2050f4=_0x142f7d?.['platformDetails']||_0x3e0546?.['platformDetails'];_0x2d52d5&&(this[_0x3856a2(0x254)][_0x3856a2(0x261)](_0x3856a2(0x26b)+_0x2d52d5),AutomationFramework[_0x3856a2(0x283)](_0x24c3eb,PlaywrightDriverModule[_0x3856a2(0x23d)],_0x2d52d5)),_0x2050f4&&(this['logger'][_0x3856a2(0x261)](_0x3856a2(0x228)+util[_0x3856a2(0x241)](_0x2050f4)),AutomationFramework[_0x3856a2(0x283)](_0x24c3eb,PlaywrightDriverModule[_0x3856a2(0x214)],_0x2050f4));}}catch(_0x6b4ac6){this[_0x3856a2(0x254)][_0x3856a2(0x25a)](_0x3856a2(0x1fe)+util[_0x3856a2(0x20c)](_0x6b4ac6));}}async[a75_0x4e8ebd(0x272)](_0x439d17){const _0x227ca3=a75_0x4e8ebd,_0x2b8bb4={'bqukf':_0x227ca3(0x26a),'qVVlY':function(_0x446716,_0x2d91cf){return _0x446716(_0x2d91cf);},'KAqJt':_0x227ca3(0x274),'YWBbm':'onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','tBiil':_0x227ca3(0x1ed),'CxpBu':_0x227ca3(0x24e),'EbjSD':_0x227ca3(0x1d4)};try{this[_0x227ca3(0x254)]['debug'](_0x2b8bb4[_0x227ca3(0x252)]);const _0x74efad=_0x439d17[_0x227ca3(0x23e)];this[_0x227ca3(0x1fa)]=_0x2b8bb4[_0x227ca3(0x1e2)](getFrameworkVersion,FRAMEWORKS[_0x227ca3(0x236)]);if(_0x439d17[_0x227ca3(0x204)]){this['logger'][_0x227ca3(0x261)](_0x2b8bb4[_0x227ca3(0x218)]),AutomationFramework['setState'](_0x74efad,PlaywrightDriverModule[_0x227ca3(0x22d)],_0x439d17[_0x227ca3(0x204)]);if(_0x439d17[_0x227ca3(0x1dd)]){this[_0x227ca3(0x254)]['debug'](_0x2b8bb4[_0x227ca3(0x1d7)]);const _0x2ac7b4=_0x439d17[_0x227ca3(0x1dd)]?.[_0x227ca3(0x250)]?.['id']||_0x439d17[_0x227ca3(0x1dd)]?.[_0x227ca3(0x1f3)];AutomationFramework[_0x227ca3(0x283)](_0x74efad,PlaywrightDriverModule[_0x227ca3(0x22c)],_0x2ac7b4),await this[_0x227ca3(0x1e8)](_0x439d17[_0x227ca3(0x1dd)]);}}_0x439d17[_0x227ca3(0x279)]&&(this[_0x227ca3(0x254)][_0x227ca3(0x261)](_0x2b8bb4[_0x227ca3(0x232)]),AutomationFramework['setState'](_0x74efad,PlaywrightDriverModule['KEY_CONTEXT_OBJECT'],_0x439d17['context']));if(_0x439d17['browser']){this['logger']['debug'](_0x2b8bb4[_0x227ca3(0x270)]);const _0x3645b6=global[_0x227ca3(0x22b)][_0x227ca3(0x217)]['parallelIndex'];AutomationFramework[_0x227ca3(0x283)](_0x74efad,PlaywrightDriverModule[_0x227ca3(0x27e)],_0x439d17[_0x227ca3(0x1cc)]),AutomationFramework[_0x227ca3(0x283)](_0x74efad,PlaywrightDriverModule[_0x227ca3(0x214)],_0x3645b6);const _0x490cf0={};_0x490cf0[_0x227ca3(0x23c)]=!![];const _0x31c0c1=Buffer[_0x227ca3(0x1d1)](JSON[_0x227ca3(0x25d)](_0x490cf0)[_0x227ca3(0x216)](_0x2b8bb4[_0x227ca3(0x20f)])),_0x482eb7=await GrpcClient['getInstance']()[_0x227ca3(0x240)]({'platformIndex':_0x3645b6,'ref':_0x74efad[_0x227ca3(0x1ff)](),'userInputParams':_0x31c0c1});helper[_0x227ca3(0x1f7)](helper[_0x227ca3(0x259)]())&&AutomationFramework['setState'](_0x74efad,PlaywrightDriverModule['KEY_CAPABILITIES'],JSON['parse'](Buffer['from'](_0x482eb7[_0x227ca3(0x284)](),_0x2b8bb4[_0x227ca3(0x20f)])[_0x227ca3(0x216)]()));}}catch(_0x1dd1f5){this['logger'][_0x227ca3(0x25a)](_0x227ca3(0x1d2)+util['format'](_0x1dd1f5));}}async[a75_0x4e8ebd(0x246)](_0x54fe3b){const _0x23c315=a75_0x4e8ebd,_0x1241ea={'YVKuq':_0x23c315(0x276),'qOrve':'Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','GSEdZ':function(_0x299b36,_0x42afcd){return _0x299b36(_0x42afcd);},'ncOHY':function(_0xa611dd,_0x38f83b,_0x1182da){return _0xa611dd(_0x38f83b,_0x1182da);},'CiPiJ':_0x23c315(0x25a),'MSmKx':'message','USItV':function(_0x448b83,_0x19763d){return _0x448b83+_0x19763d;},'aOTEr':_0x23c315(0x24c),'xbmtU':function(_0x215a5e,_0x5072a9){return _0x215a5e+_0x5072a9;},'cVlyp':_0x23c315(0x1e4),'SZEIN':_0x23c315(0x1f8),'zirjp':_0x23c315(0x23f),'nUNxK':function(_0x10198c,_0x18213a){return _0x10198c(_0x18213a);},'RUuBF':_0x23c315(0x1fc),'qPGUl':_0x23c315(0x1d4),'GPFLQ':_0x23c315(0x1ee)};this[_0x23c315(0x254)][_0x23c315(0x261)](_0x1241ea[_0x23c315(0x226)]);const _0x5d4ee7=_0x54fe3b[_0x23c315(0x23e)];if(!_0x5d4ee7){this['logger']['debug'](_0x1241ea[_0x23c315(0x206)]);return;}const _0x486414=_0x54fe3b[_0x23c315(0x1dd)],_0x385585=_0x486414['id']||_0x54fe3b[_0x23c315(0x1dd)]?.['_test']?.['id']||_0x54fe3b[_0x23c315(0x1dd)]?.[_0x23c315(0x1f3)],_0x1ad3f6=_0x486414[_0x23c315(0x201)],_0x4e5bba=_0x1241ea[_0x23c315(0x1e3)](getPlaywrightStatus,_0x1ad3f6),_0x297798=_0x1241ea[_0x23c315(0x1e3)](getPlaywrightSessionName,_0x486414),_0x40dc7c=_0x1241ea['ncOHY'](nestedKeyValue,_0x1ad3f6,[_0x1241ea[_0x23c315(0x22a)],_0x1241ea[_0x23c315(0x1de)]]);this[_0x23c315(0x254)][_0x23c315(0x261)](_0x23c315(0x215)+_0x4e5bba);const _0x45e3dc=TestInfo[_0x23c315(0x233)](_0x385585),_0x5d07ef=TestInfo[_0x23c315(0x277)](_0x385585);this[_0x23c315(0x254)][_0x23c315(0x24d)](_0x1241ea['USItV'](_0x1241ea[_0x23c315(0x1e9)],_0x385585)),this['logger'][_0x23c315(0x24d)](_0x1241ea[_0x23c315(0x24a)](_0x1241ea[_0x23c315(0x26c)],util[_0x23c315(0x241)](_0x5d07ef)));const _0x468c81=AutomationFramework[_0x23c315(0x255)](_0x5d4ee7,PlaywrightDriverModule['KEY_PLATFORM_INDEX'])||0x0,_0x7a5277=_0x5d07ef[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]||_0x1241ea[_0x23c315(0x278)],_0x5b14ae=_0x5d07ef[TestFrameworkConstants[_0x23c315(0x1cf)]]||_0x1241ea['zirjp'],_0x5a486d=TestFrameworkState['TEST']['toString']()[_0x23c315(0x24b)]('.')[0x1],_0xf8987a=HookState[_0x23c315(0x269)]['toString']()['split']('.')[0x1],_0x10efef=_0x5d4ee7['getContext'](),_0x125e5f=AutomationFramework[_0x23c315(0x255)](_0x5d4ee7,PlaywrightDriverModule[_0x23c315(0x209)],''),_0x1f2f33={'provider':_0x1241ea['nUNxK'](getPlaywrightProvider,_0x125e5f),'frameworkName':_0x1241ea[_0x23c315(0x278)],'frameworkVersion':_0x1241ea[_0x23c315(0x1f5)],'frameworkSessionId':AutomationFramework[_0x23c315(0x255)](_0x5d4ee7,PlaywrightDriverModule[_0x23c315(0x23d)],''),'ref':_0x5d4ee7[_0x23c315(0x1ff)](),'hubUrl':_0x125e5f};let _0x317af0=AutomationFramework['getState'](_0x5d4ee7,PlaywrightDriverModule[_0x23c315(0x267)],{});_0x317af0=Buffer[_0x23c315(0x1d1)](JSON[_0x23c315(0x25d)](_0x317af0))['toString'](_0x1241ea[_0x23c315(0x27a)]);const _0x531bbb={'hash':_0x10efef[_0x23c315(0x262)](),'threadId':_0x10efef['getThreadId']()[_0x23c315(0x216)](),'processId':_0x10efef[_0x23c315(0x213)]()[_0x23c315(0x216)]()},_0x6feccf={};_0x6feccf[_0x23c315(0x22e)]=_0x468c81,_0x6feccf[_0x23c315(0x1d3)]=_0x7a5277,_0x6feccf[_0x23c315(0x21f)]=_0x5b14ae,_0x6feccf[_0x23c315(0x257)]=_0x5a486d,_0x6feccf[_0x23c315(0x237)]=_0xf8987a,_0x6feccf[_0x23c315(0x1e0)]=_0x45e3dc,_0x6feccf[_0x23c315(0x26f)]=_0x1f2f33,_0x6feccf[_0x23c315(0x263)]=_0x317af0,_0x6feccf[_0x23c315(0x20b)]=_0x531bbb;const _0x55de69=_0x6feccf;this[_0x23c315(0x254)]['debug'](_0x23c315(0x224)+util['format'](_0x55de69)),GrpcClient['getInstance']()[_0x23c315(0x234)](_0x55de69),this['logger'][_0x23c315(0x261)](_0x23c315(0x1e6)+_0x385585);if(!_0x4e5bba){this[_0x23c315(0x254)][_0x23c315(0x261)](_0x1241ea[_0x23c315(0x26e)],_0x1ad3f6['status']);return;}this['logger']['debug'](_0x23c315(0x1f6)+_0x385585),await this[_0x23c315(0x1d9)](_0x5d4ee7,_0x297798,_0x4e5bba,_0x40dc7c);}async[a75_0x4e8ebd(0x1d9)](_0x3dcd0f,_0x30dd61,_0x3b58aa,_0x2b9424){const _0x5d14c9=a75_0x4e8ebd,_0x4ccfa4={'dHerp':_0x5d14c9(0x243),'eIALJ':_0x5d14c9(0x282),'UaFEd':_0x5d14c9(0x245),'ZXMDr':_0x5d14c9(0x1ee),'NSNoZ':'reason','ZnHOj':_0x5d14c9(0x253),'lNuzP':function(_0x7995d0,_0x2a1c5a){return _0x7995d0===_0x2a1c5a;},'ABgDC':_0x5d14c9(0x1e5),'MmMUq':_0x5d14c9(0x24d),'OKWoH':_0x5d14c9(0x25a),'zkITJ':function(_0x4f9595,_0x59a7d9,_0x4ed9cb,_0x424db8){return _0x4f9595(_0x59a7d9,_0x4ed9cb,_0x424db8);},'VZQIq':_0x5d14c9(0x238),'KWCPy':_0x5d14c9(0x1e7),'EVxmj':function(_0x54ff7b,_0x30f66b,_0x5f2504){return _0x54ff7b(_0x30f66b,_0x5f2504);}};if(CLIUtils[_0x5d14c9(0x21a)](BrowserstackCLI['getInstance']()[_0x5d14c9(0x25b)]())){this[_0x5d14c9(0x254)][_0x5d14c9(0x261)](_0x4ccfa4[_0x5d14c9(0x1e1)]);return;}const _0x3eead9=_0x3dcd0f;if(!_0x3eead9){this[_0x5d14c9(0x254)][_0x5d14c9(0x261)](_0x4ccfa4[_0x5d14c9(0x1f2)]);return;}const _0x52d750=AutomationFramework[_0x5d14c9(0x255)](_0x3eead9,PlaywrightDriverModule[_0x5d14c9(0x22d)]);if(!_0x52d750){this['logger'][_0x5d14c9(0x261)](_0x4ccfa4[_0x5d14c9(0x25c)]);return;}const _0x4134ef=_0x3b58aa;if(!_0x4134ef){this[_0x5d14c9(0x254)]['debug'](_0x4ccfa4['ZXMDr'],_0x4134ef);return;}_0x2b9424&&(_0x169ff4[_0x5d14c9(0x21e)][_0x4ccfa4[_0x5d14c9(0x258)]]=_0x2b9424);const _0x22c697=(_0x30dd61?_0x30dd61:_0x4ccfa4[_0x5d14c9(0x256)])+'\x20'+_0x4134ef+'\x20'+(_0x2b9424?'with\x20'+_0x2b9424:''),_0x2d2bd2=_0x4ccfa4['lNuzP'](_0x4134ef,_0x4ccfa4['ABgDC'])?_0x4ccfa4[_0x5d14c9(0x1ce)]:_0x4ccfa4[_0x5d14c9(0x1fd)];await _0x4ccfa4[_0x5d14c9(0x1df)](playwrightAnnotate,_0x52d750,_0x22c697,_0x2d2bd2);const _0x1e4b59={};_0x1e4b59[_0x5d14c9(0x201)]=_0x4134ef;const _0x5f443b={};_0x5f443b['action']=_0x4ccfa4[_0x5d14c9(0x205)],_0x5f443b[_0x5d14c9(0x21e)]=_0x1e4b59;const _0x169ff4=_0x5f443b;PerformanceTester[_0x5d14c9(0x21b)](PerformanceEvents[_0x5d14c9(0x273)]),this[_0x5d14c9(0x254)]['debug'](_0x4ccfa4[_0x5d14c9(0x235)]),await _0x4ccfa4[_0x5d14c9(0x275)](playwrightBstackJsExecutor,_0x52d750,_0x169ff4),PerformanceTester['end'](PerformanceEvents[_0x5d14c9(0x273)]);}async[a75_0x4e8ebd(0x1e8)](_0x12436f){const _0x15f97f=a75_0x4e8ebd,_0x444d23={'HGSRR':'markSessionName:\x20Skipping\x20session\x20name\x20marking','fdIWY':'setSessionName','sobTz':function(_0x2eb3c1,_0xfdb0ef){return _0x2eb3c1(_0xfdb0ef);},'hesYq':function(_0x1df607,_0x2634d3,_0x385aee){return _0x1df607(_0x2634d3,_0x385aee);}};try{if(CLIUtils[_0x15f97f(0x200)](BrowserstackCLI['getInstance']()[_0x15f97f(0x25b)]())){this[_0x15f97f(0x254)]['debug'](_0x444d23['HGSRR']);return;}const _0x21f32d=AutomationFramework['getState'](AutomationFramework[_0x15f97f(0x265)](),PlaywrightDriverModule[_0x15f97f(0x22d)]),_0x1d4a5d={'action':_0x444d23[_0x15f97f(0x1d5)],'arguments':{'name':_0x444d23['sobTz'](getPlaywrightSessionName,_0x12436f)}};PerformanceTester['start'](PerformanceEvents[_0x15f97f(0x20d)]),await _0x444d23[_0x15f97f(0x27f)](playwrightBstackJsExecutor,_0x21f32d,_0x1d4a5d),PerformanceTester[_0x15f97f(0x225)](PerformanceEvents[_0x15f97f(0x20d)]);}catch(_0x377241){PerformanceTester[_0x15f97f(0x225)](PerformanceEvents[_0x15f97f(0x20d)],![],util[_0x15f97f(0x20c)](_0x377241)),this[_0x15f97f(0x254)][_0x15f97f(0x25a)](_0x15f97f(0x27b)+util[_0x15f97f(0x20c)](_0x377241));}}}PlaywrightDriverModule[a75_0x4e8ebd(0x244)]=a75_0x4e8ebd(0x24f),module[a75_0x4e8ebd(0x264)]=PlaywrightDriverModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x43b129=a76_0xa1c9;function a76_0xa1c9(_0x2d80da,_0x47198d){const _0x7ec8de=a76_0x7ec8();return a76_0xa1c9=function(_0xa1c970,_0x203cc8){_0xa1c970=_0xa1c970-0xec;let _0x58cc2b=_0x7ec8de[_0xa1c970];return _0x58cc2b;},a76_0xa1c9(_0x2d80da,_0x47198d);}(function(_0x2e6fde,_0x51abd9){const _0x17a13e=a76_0xa1c9,_0x4c90fa=_0x2e6fde();while(!![]){try{const _0x3bf071=-parseInt(_0x17a13e(0x144))/0x1+parseInt(_0x17a13e(0xf7))/0x2*(-parseInt(_0x17a13e(0x14b))/0x3)+-parseInt(_0x17a13e(0xf6))/0x4+-parseInt(_0x17a13e(0x10b))/0x5*(parseInt(_0x17a13e(0x12f))/0x6)+-parseInt(_0x17a13e(0xf9))/0x7+-parseInt(_0x17a13e(0x143))/0x8+-parseInt(_0x17a13e(0x149))/0x9*(-parseInt(_0x17a13e(0x101))/0xa);if(_0x3bf071===_0x51abd9)break;else _0x4c90fa['push'](_0x4c90fa['shift']());}catch(_0x48ff5c){_0x4c90fa['push'](_0x4c90fa['shift']());}}}(a76_0x7ec8,0x8580a));const util=require('util'),BaseModule=require(a76_0x43b129(0x14c)),{createClassLogger}=require(a76_0x43b129(0x139)),AutomationFramework=require(a76_0x43b129(0x115)),AutomationFrameworkState=require(a76_0x43b129(0x114)),HookState=require('../state/hookState.js'),TestFramework=require('../framework/testFramework.js'),TestFrameworkState=require('../state/testFrameworkState.js'),PlaywrightDriverModule=require(a76_0x43b129(0x14d)),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),GrpcClient=require('../grpcClient.js'),CLIUtils=require(a76_0x43b129(0xfe)),TestInfo=require(a76_0x43b129(0x140)),testHubConstants=require(a76_0x43b129(0xf0)),BrowserstackCLI=require(a76_0x43b129(0x111)),{getPlaywrightProvider}=require('../../../helpers/helper.js');function a76_0x7ec8(){const _0x3c4ce6=['onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','getId','error','getCurrentHookState','testInfo','sendTestFrameworkEvent\x20testId:\x20','../TestInfo.js','testFrameworkEvent','BROWSERSTACK_TESTHUB_JWT','3961072Ovjags','379315NyoFfh','forEach','split','getContext','\x20testState:\x20','1917AJUGcP','TEST','9VWMUbt','./baseModule','./playwrightDriverModule.js','endedAt','getTestDetails','logger','KEY_TEST_FRAMEWORK_NAME','../../../helpers/testhub/constants','ENV_VAR','capabilities','CREATE','YQqNS','onAllTestEvents','2556804FZAwmL','126986SjrWWf','\x20hookState:\x20','2385103pLFfSS','instance','matchHookRegex','KEY_TEST_STARTED_AT','onPageCreate\x20CBTSession\x20payload:\x20','../cliUtils.js','parallelIndex','frameworkVersion','141970JyWJkf','test_deferred','getRef','toString','POST','KEY_TEST_DEFERRED','registerObserver','RRohz','testFrameworkVersion','test','2161385swYBYi','__workerDetails','testSessionEvent','KEY_TEST_FRAMEWORK_VERSION','getThreadId','sendTestFrameworkEvent\x20complete\x20for\x20testId:\x20','../browserstackCLI.js','from','MODULE_NAME','../state/automationFrameworkState.js','../framework/automationFramework.js','frameworkName','hookState','platformIndex','env','NQmuJ','getBuildHashedId','KEY_TEST_ENDED_AT','page','getState','testFrameworkState','stringify','bind','debug','testFrameworkName','bcpwF','testHookState','KEY_PLATFORM_INDEX','testId','sendTestFrameworkEvent','format','values','getInstance','get','KEY_HUB_URL','getCurrentTestState','6DoyHkE','getModuleName','Error\x20in\x20sending\x20CBTSession:\x20','executionContext','TestHubModule','onPageCreate','exports','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','HTHxg','uuid','../../../helpers/classLogger.js'];a76_0x7ec8=function(){return _0x3c4ce6;};return a76_0x7ec8();}class TestHubModule extends BaseModule{[a76_0x43b129(0xee)]=createClassLogger(a76_0x43b129(0x133));constructor(_0x555d45){const _0x5c081f=a76_0x43b129,_0x3ba997={};_0x3ba997[_0x5c081f(0x124)]='7|3|6|2|1|0|4|5',_0x3ba997[_0x5c081f(0x108)]=_0x5c081f(0x133);const _0x50fe47=_0x3ba997,_0x27adac=_0x50fe47[_0x5c081f(0x124)][_0x5c081f(0x146)]('|');let _0x12d3dc=0x0;while(!![]){switch(_0x27adac[_0x12d3dc++]){case'0':process[_0x5c081f(0x119)][testHubConstants[_0x5c081f(0xf1)][_0x5c081f(0x142)]]=this['testhubConfig']['getJwt']();continue;case'1':Object[_0x5c081f(0x12a)](TestFrameworkState)['forEach'](_0x248b6c=>{const _0x58f0a5=_0x5c081f;Object[_0x58f0a5(0x12a)](HookState)[_0x58f0a5(0x145)](_0x24721b=>{const _0xc9d8ab=_0x58f0a5;TestFramework[_0xc9d8ab(0x107)](_0x248b6c,_0x24721b,this[_0xc9d8ab(0xf5)]['bind'](this));});});continue;case'2':AutomationFramework[_0x5c081f(0x107)](AutomationFrameworkState[_0x5c081f(0xf3)],HookState['POST'],this[_0x5c081f(0x134)][_0x5c081f(0x121)](this));continue;case'3':this['name']=_0x50fe47[_0x5c081f(0x108)];continue;case'4':process[_0x5c081f(0x119)][testHubConstants[_0x5c081f(0xf1)]['BROWSERSTACK_TESTHUB_UUID']]=this['testhubConfig'][_0x5c081f(0x11b)]();continue;case'5':BrowserstackCLI['O11yHashedID']=this['testhubConfig']['getBuildHashedId']();continue;case'6':this['testhubConfig']=_0x555d45;continue;case'7':super();continue;}break;}}[a76_0x43b129(0x130)](){const _0x205027=a76_0x43b129;return TestHubModule[_0x205027(0x113)];}['onAllTestEvents'](_0x672c43){const _0x53091d=a76_0x43b129,_0x4809d5={};_0x4809d5[_0x53091d(0xf4)]=function(_0x1480b3,_0x24480f){return _0x1480b3===_0x24480f;};const _0x31c8de=_0x4809d5,_0x5f2ef2=_0x672c43['instance'],_0x483ad9=_0x5f2ef2[_0x53091d(0x12e)]();(_0x31c8de[_0x53091d(0xf4)](_0x483ad9,TestFrameworkState[_0x53091d(0x14a)])||CLIUtils[_0x53091d(0xfb)](_0x483ad9[_0x53091d(0x104)]()['split']('.')[0x1]))&&this['sendTestFrameworkEvent'](_0x672c43);}async[a76_0x43b129(0x128)](_0x47fa79){const _0x3a2e71=a76_0x43b129,_0x41251a={};_0x41251a['HTHxg']='base64';const _0x47a218=_0x41251a;try{const _0x414744=_0x47fa79[_0x3a2e71(0x10a)]['id'],_0x1a7396=_0x47fa79[_0x3a2e71(0xfa)],_0x940a5e=_0x1a7396['getContext'](),_0x2337f4=_0x1a7396['getAllData']()[_0x3a2e71(0x12c)](_0x414744);this[_0x3a2e71(0xee)]['debug'](_0x3a2e71(0x13f)+_0x414744);const {[TestFrameworkConstants[_0x3a2e71(0xef)]]:_0x1281a9='',[TestFrameworkConstants[_0x3a2e71(0x10e)]]:_0x22e5e8='',[TestFrameworkConstants[_0x3a2e71(0xfc)]]:_0x107e3a='',[TestFrameworkConstants[_0x3a2e71(0x11c)]]:_0x3807b1=''}=_0x2337f4,_0x2a3f01=_0x1a7396[_0x3a2e71(0x12e)]()[_0x3a2e71(0x104)]()['split']('.')[0x1],_0xd0622=_0x1a7396[_0x3a2e71(0x13d)]()[_0x3a2e71(0x104)]()['split']('.')[0x1],_0x59ecf1=global?.[_0x3a2e71(0x10c)]?.['workerInfo']?.[_0x3a2e71(0xff)];;const _0x5c7f86=_0x1a7396[_0x3a2e71(0x103)](),_0x5aece8=Buffer[_0x3a2e71(0x112)](JSON[_0x3a2e71(0x120)](_0x2337f4))[_0x3a2e71(0x104)](_0x47a218[_0x3a2e71(0x137)]),_0x23cf7d={'hash':_0x940a5e[_0x3a2e71(0x13b)](),'threadId':_0x940a5e[_0x3a2e71(0x10f)]()[_0x3a2e71(0x104)](),'processId':_0x940a5e['getProcessId']()[_0x3a2e71(0x104)]()},_0x19b6fd={};_0x19b6fd[_0x3a2e71(0x118)]=_0x59ecf1,_0x19b6fd[_0x3a2e71(0x123)]=_0x1281a9,_0x19b6fd[_0x3a2e71(0x109)]=_0x22e5e8,_0x19b6fd[_0x3a2e71(0x11f)]=_0x2a3f01,_0x19b6fd[_0x3a2e71(0x117)]=_0xd0622,_0x19b6fd['startedAt']=_0x107e3a,_0x19b6fd[_0x3a2e71(0xec)]=_0x3807b1,_0x19b6fd[_0x3a2e71(0x138)]=_0x5c7f86,_0x19b6fd['eventJson']=_0x5aece8,_0x19b6fd[_0x3a2e71(0x132)]=_0x23cf7d;const _0x20e6b8=_0x19b6fd,_0x4ebcf4=await GrpcClient[_0x3a2e71(0x12b)]()[_0x3a2e71(0x141)](_0x20e6b8);this[_0x3a2e71(0xee)]['debug'](_0x3a2e71(0x110)+_0x414744+_0x3a2e71(0x148)+_0x2a3f01+_0x3a2e71(0xf8)+_0xd0622);}catch(_0x25241f){this[_0x3a2e71(0xee)][_0x3a2e71(0x13c)]('Error\x20in\x20sendTestFrameworkEvent:\x20'+util[_0x3a2e71(0x129)](_0x25241f));}}async[a76_0x43b129(0x134)](_0x2b134b){const _0x5a0286=a76_0x43b129,_0x53c66f={'ubthS':function(_0x590fe7,_0x31192c){return _0x590fe7(_0x31192c);},'NQmuJ':'base64'};try{if(_0x2b134b[_0x5a0286(0x11d)]){const _0x9cea7e=_0x2b134b[_0x5a0286(0x13e)][_0x5a0286(0x127)];this[_0x5a0286(0xee)][_0x5a0286(0x122)](_0x5a0286(0x136)+_0x9cea7e);const _0x5052a4=TestInfo['getTestUUID'](_0x9cea7e),_0x568790=TestInfo[_0x5a0286(0xed)](_0x9cea7e),_0x643407=_0x2b134b[_0x5a0286(0xfa)],_0x54d381=AutomationFramework[_0x5a0286(0x11e)](_0x643407,PlaywrightDriverModule[_0x5a0286(0x126)]),_0x339fb4=_0x568790[TestFrameworkConstants[_0x5a0286(0xef)]],_0x40996a=_0x568790[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']],_0x525109=TestFrameworkState['TEST']['toString']()[_0x5a0286(0x146)]('.')[0x1],_0x75159b=HookState[_0x5a0286(0x105)][_0x5a0286(0x104)]()[_0x5a0286(0x146)]('.')[0x1],_0xa872b0=_0x643407[_0x5a0286(0x147)](),_0x12a797=AutomationFramework[_0x5a0286(0x11e)](_0x643407,PlaywrightDriverModule[_0x5a0286(0x12d)],''),_0x19921a={'provider':_0x53c66f['ubthS'](getPlaywrightProvider,_0x12a797),'frameworkName':_0x643407[_0x5a0286(0x116)],'frameworkVersion':_0x643407[_0x5a0286(0x100)],'frameworkSessionId':AutomationFramework[_0x5a0286(0x11e)](_0x643407,PlaywrightDriverModule['KEY_SESSION_ID'],''),'ref':_0x643407[_0x5a0286(0x103)](),'hubUrl':_0x12a797};let _0x392e29=AutomationFramework[_0x5a0286(0x11e)](_0x643407,PlaywrightDriverModule['KEY_CAPABILITIES'],{});_0x392e29=Buffer[_0x5a0286(0x112)](JSON[_0x5a0286(0x120)](_0x392e29))[_0x5a0286(0x104)](_0x53c66f[_0x5a0286(0x11a)]);const _0x161c88={'hash':_0xa872b0[_0x5a0286(0x13b)](),'threadId':_0xa872b0[_0x5a0286(0x10f)]()[_0x5a0286(0x104)](),'processId':_0xa872b0['getProcessId']()[_0x5a0286(0x104)]()},_0x11bcf7={};_0x11bcf7[_0x5a0286(0x118)]=_0x54d381,_0x11bcf7['testFrameworkName']=_0x339fb4,_0x11bcf7[_0x5a0286(0x109)]=_0x40996a,_0x11bcf7['testFrameworkState']=_0x525109,_0x11bcf7[_0x5a0286(0x125)]=_0x75159b,_0x11bcf7['testUuid']=_0x5052a4,_0x11bcf7['automationSession']=_0x19921a,_0x11bcf7[_0x5a0286(0xf2)]=_0x392e29,_0x11bcf7['executionContext']=_0x161c88;const _0x321b00=_0x11bcf7;this[_0x5a0286(0xee)][_0x5a0286(0x122)](_0x5a0286(0xfd)+util[_0x5a0286(0x129)](_0x321b00));const _0x31d136=await GrpcClient['getInstance']()[_0x5a0286(0x10d)](_0x321b00);this[_0x5a0286(0xee)][_0x5a0286(0x122)](_0x5a0286(0x13a)+_0x9cea7e);}}catch(_0x35fd30){this['logger'][_0x5a0286(0x13c)](_0x5a0286(0x131)+util[_0x5a0286(0x129)](_0x35fd30));}}}TestHubModule[a76_0x43b129(0x113)]=a76_0x43b129(0x133),TestHubModule[a76_0x43b129(0x106)]=a76_0x43b129(0x102),module[a76_0x43b129(0x135)]=TestHubModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77_0x2b61ee=a77_0x575d;(function(_0x75fd6e,_0x56a6f3){const _0xd7ace1=a77_0x575d,_0xc52b2f=_0x75fd6e();while(!![]){try{const _0x522314=parseInt(_0xd7ace1(0x11b))/0x1*(-parseInt(_0xd7ace1(0x11a))/0x2)+-parseInt(_0xd7ace1(0x125))/0x3+parseInt(_0xd7ace1(0x10f))/0x4*(-parseInt(_0xd7ace1(0x115))/0x5)+-parseInt(_0xd7ace1(0x11c))/0x6+-parseInt(_0xd7ace1(0x117))/0x7*(parseInt(_0xd7ace1(0x118))/0x8)+parseInt(_0xd7ace1(0x122))/0x9*(-parseInt(_0xd7ace1(0x113))/0xa)+-parseInt(_0xd7ace1(0x111))/0xb*(-parseInt(_0xd7ace1(0x10e))/0xc);if(_0x522314===_0x56a6f3)break;else _0xc52b2f['push'](_0xc52b2f['shift']());}catch(_0x2c5a9d){_0xc52b2f['push'](_0xc52b2f['shift']());}}}(a77_0x40f0,0xb3bda));const {PLAYWRIGHT}=require('../../utils/constants'),a77_0x8f0cbe={};a77_0x8f0cbe[a77_0x2b61ee(0x123)]=0x0,a77_0x8f0cbe['toString']=function(){const _0x3b88d9=a77_0x2b61ee,_0x38edbd={};_0x38edbd[_0x3b88d9(0x114)]=_0x3b88d9(0x119);const _0x556202=_0x38edbd;return _0x556202[_0x3b88d9(0x114)];};const a77_0x356a9f={};a77_0x356a9f['value']=0x1,a77_0x356a9f[a77_0x2b61ee(0x11d)]=function(){const _0x4c1f24=a77_0x2b61ee,_0x49d599={};_0x49d599[_0x4c1f24(0x120)]=_0x4c1f24(0x11f);const _0x49f966=_0x49d599;return _0x49f966[_0x4c1f24(0x120)];};const a77_0xd34c0e={};a77_0xd34c0e[a77_0x2b61ee(0x123)]=0x2,a77_0xd34c0e[a77_0x2b61ee(0x11d)]=function(){const _0x4f7a99=a77_0x2b61ee,_0x464b4e={};_0x464b4e[_0x4f7a99(0x121)]='AutomationFrameworkState.PLAYWRIGHT_DISPATCH';const _0x1ab62c=_0x464b4e;return _0x1ab62c[_0x4f7a99(0x121)];};function a77_0x40f0(){const _0x58d0aa=['10488dbwpjX','AutomationFrameworkState.NONE','2473802rWwdvr','1zeiGla','900846zpgDHt','toString','AutomationFrameworkState.IDLE','AutomationFrameworkState.CREATE','ZZWxv','pMGrK','951966xCBQZj','value','AutomationFrameworkState.QUIT','3010083LWUwYC','SoHqg','freeze','NJszo','350916eAxwXX','28pgMsUq','values','2497kiEMTK','AutomationFrameworkState.EXECUTE','120dQrCVr','xjwBN','855275LAOlPW','exports','5579RTyPYO'];a77_0x40f0=function(){return _0x58d0aa;};return a77_0x40f0();}const a77_0x150b7e={};a77_0x150b7e[a77_0x2b61ee(0x123)]=0x3,a77_0x150b7e[a77_0x2b61ee(0x11d)]=function(){const _0x591374=a77_0x2b61ee,_0x1bc47c={};_0x1bc47c['vPhpU']=_0x591374(0x112);const _0x2af0b2=_0x1bc47c;return _0x2af0b2['vPhpU'];};const a77_0x58adad={};a77_0x58adad[a77_0x2b61ee(0x123)]=0x4,a77_0x58adad[a77_0x2b61ee(0x11d)]=function(){const _0x209234=a77_0x2b61ee,_0x15f310={};_0x15f310[_0x209234(0x126)]=_0x209234(0x11e);const _0x293d61=_0x15f310;return _0x293d61[_0x209234(0x126)];};const a77_0x5a4728={};a77_0x5a4728['value']=0x5,a77_0x5a4728[a77_0x2b61ee(0x11d)]=function(){const _0x4b39a4=a77_0x2b61ee,_0x2e1856={};_0x2e1856[_0x4b39a4(0x10d)]=_0x4b39a4(0x124);const _0x7ccc49=_0x2e1856;return _0x7ccc49['NJszo'];};const AutomationFrameworkState=Object[a77_0x2b61ee(0x10c)]({'NONE':a77_0x8f0cbe,'CREATE':a77_0x356a9f,'PLAYWRIGHT_DISPATCH':a77_0xd34c0e,'EXECUTE':a77_0x150b7e,'IDLE':a77_0x58adad,'QUIT':a77_0x5a4728,'fromValue'(_0x196438){const _0x34b0d7=a77_0x2b61ee;return Object[_0x34b0d7(0x110)](AutomationFrameworkState)['find'](_0x4b0d17=>_0x4b0d17[_0x34b0d7(0x123)]===_0x196438);}});function a77_0x575d(_0x395e58,_0x4288cb){const _0x40f07f=a77_0x40f0();return a77_0x575d=function(_0x575da8,_0x3beab1){_0x575da8=_0x575da8-0x10c;let _0x4cda58=_0x40f07f[_0x575da8];return _0x4cda58;},a77_0x575d(_0x395e58,_0x4288cb);}module[a77_0x2b61ee(0x116)]=AutomationFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a78_0x338558=a78_0xb2ea;(function(_0x406ee1,_0x5a901a){const _0xfdf6a5=a78_0xb2ea,_0x53a314=_0x406ee1();while(!![]){try{const _0x351ffc=-parseInt(_0xfdf6a5(0xe2))/0x1*(-parseInt(_0xfdf6a5(0xee))/0x2)+-parseInt(_0xfdf6a5(0xe3))/0x3*(-parseInt(_0xfdf6a5(0xf0))/0x4)+parseInt(_0xfdf6a5(0xea))/0x5*(parseInt(_0xfdf6a5(0xf2))/0x6)+parseInt(_0xfdf6a5(0xeb))/0x7+-parseInt(_0xfdf6a5(0xed))/0x8*(-parseInt(_0xfdf6a5(0xef))/0x9)+parseInt(_0xfdf6a5(0xe9))/0xa+-parseInt(_0xfdf6a5(0xe6))/0xb;if(_0x351ffc===_0x5a901a)break;else _0x53a314['push'](_0x53a314['shift']());}catch(_0x4caf81){_0x53a314['push'](_0x53a314['shift']());}}}(a78_0x31a3,0x56b84));function a78_0xb2ea(_0x17b252,_0x5ec13e){const _0x31a379=a78_0x31a3();return a78_0xb2ea=function(_0xb2eac0,_0x494ca7){_0xb2eac0=_0xb2eac0-0xe0;let _0x3e2710=_0x31a379[_0xb2eac0];return _0x3e2710;},a78_0xb2ea(_0x17b252,_0x5ec13e);}const a78_0x325479={};a78_0x325479[a78_0x338558(0xf5)]=0x0,a78_0x325479['toString']=function(){const _0x54b0d7=a78_0x338558,_0x24b486={};_0x24b486['fPRYH']=_0x54b0d7(0xf1);const _0x1a119b=_0x24b486;return _0x1a119b[_0x54b0d7(0xf4)];};function a78_0x31a3(){const _0x52977d=['HookState.PRE','freeze','2165890Uvaxvx','475pWeClM','1934632nkoRlz','toString','732672MWpNQe','8628fyzxpl','63FeaKTf','1107672uCAnWH','HookState.NONE','20952kHDPeI','values','fPRYH','value','pgjiv','aOkbZ','find','89amAlfV','3cqGNhb','exports','HookState.POST','19485983awhIjk'];a78_0x31a3=function(){return _0x52977d;};return a78_0x31a3();}const a78_0x284803={};a78_0x284803[a78_0x338558(0xf5)]=0x1,a78_0x284803[a78_0x338558(0xec)]=function(){const _0xdcac5a=a78_0x338558,_0x263a79={};_0x263a79[_0xdcac5a(0xe0)]=_0xdcac5a(0xe7);const _0x2b0637=_0x263a79;return _0x2b0637['aOkbZ'];};const a78_0x57f056={};a78_0x57f056[a78_0x338558(0xf5)]=0x2,a78_0x57f056['toString']=function(){const _0x59ca42=a78_0x338558,_0x150bd1={};_0x150bd1[_0x59ca42(0xf6)]=_0x59ca42(0xe5);const _0x60955f=_0x150bd1;return _0x60955f[_0x59ca42(0xf6)];};const HookState=Object[a78_0x338558(0xe8)]({'NONE':a78_0x325479,'PRE':a78_0x284803,'POST':a78_0x57f056,'fromValue'(_0x96af0f){const _0xf33d7e=a78_0x338558;return Object[_0xf33d7e(0xf3)](HookState)[_0xf33d7e(0xe1)](_0x2b9328=>_0x2b9328[_0xf33d7e(0xf5)]===_0x96af0f);}});module[a78_0x338558(0xe4)]=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0x2de928=a79_0x5e65;(function(_0x26e059,_0xf928b3){const _0x162984=a79_0x5e65,_0x10cf4a=_0x26e059();while(!![]){try{const _0xa342=-parseInt(_0x162984(0x1d9))/0x1+parseInt(_0x162984(0x1d2))/0x2*(-parseInt(_0x162984(0x1e1))/0x3)+parseInt(_0x162984(0x1db))/0x4+parseInt(_0x162984(0x1d7))/0x5+parseInt(_0x162984(0x1dc))/0x6*(parseInt(_0x162984(0x1e5))/0x7)+-parseInt(_0x162984(0x1de))/0x8+-parseInt(_0x162984(0x1d3))/0x9;if(_0xa342===_0xf928b3)break;else _0x10cf4a['push'](_0x10cf4a['shift']());}catch(_0x36148e){_0x10cf4a['push'](_0x10cf4a['shift']());}}}(a79_0x3803,0x5ec07));const a79_0x4863d0={};a79_0x4863d0[a79_0x2de928(0x1e4)]=0x0,a79_0x4863d0[a79_0x2de928(0x1ea)]=function(){const _0x1196d=a79_0x2de928,_0x1ea2b1={};_0x1ea2b1[_0x1196d(0x1ed)]='TestFrameworkState.NONE';const _0x40506e=_0x1ea2b1;return _0x40506e['LlOor'];};function a79_0x3803(){const _0x1de62a=['toString','uKbde','values','LlOor','TestFrameworkState.BEFORE_ALL','370uQfJbj','5906889rJnrQe','TestFrameworkState.BEFORE_EACH','uUHWG','pHXpn','1885740oKdjfl','TestFrameworkState.AFTER_ALL','23135pakkNm','find','2182272oRQGBH','145482vXKBSZ','mSSgu','1692368JSaWni','TestFrameworkState.LOG','aBKIz','2871yMnGCQ','YEmSn','cXUpg','value','154WHMpKq','xMmGo','exports','VXxli','TestFrameworkState.AFTER_EACH'];a79_0x3803=function(){return _0x1de62a;};return a79_0x3803();}const a79_0x524990={};a79_0x524990[a79_0x2de928(0x1e4)]=0x1,a79_0x524990[a79_0x2de928(0x1ea)]=function(){const _0x5c1e03=a79_0x2de928,_0x1853ef={};_0x1853ef[_0x5c1e03(0x1e0)]=_0x5c1e03(0x1d1);const _0x4317cd=_0x1853ef;return _0x4317cd[_0x5c1e03(0x1e0)];};const a79_0x5a570a={};a79_0x5a570a[a79_0x2de928(0x1e4)]=0x2,a79_0x5a570a['toString']=function(){const _0x490b5c=a79_0x2de928,_0x138039={};_0x138039[_0x490b5c(0x1d6)]=_0x490b5c(0x1df);const _0x70b36a=_0x138039;return _0x70b36a[_0x490b5c(0x1d6)];};const a79_0x201510={};a79_0x201510[a79_0x2de928(0x1e4)]=0x3,a79_0x201510[a79_0x2de928(0x1ea)]=function(){const _0x25c1b5=a79_0x2de928,_0xc2e461={};_0xc2e461[_0x25c1b5(0x1e3)]='TestFrameworkState.SETUP_FIXTURE';const _0x19a7ed=_0xc2e461;return _0x19a7ed[_0x25c1b5(0x1e3)];};const a79_0x1318b1={};a79_0x1318b1[a79_0x2de928(0x1e4)]=0x4,a79_0x1318b1[a79_0x2de928(0x1ea)]=function(){const _0x5226ce=a79_0x2de928,_0x5ae354={};_0x5ae354[_0x5226ce(0x1e6)]='TestFrameworkState.INIT_TEST';const _0x5556b7=_0x5ae354;return _0x5556b7[_0x5226ce(0x1e6)];};function a79_0x5e65(_0x25195d,_0x4977b0){const _0x3803bf=a79_0x3803();return a79_0x5e65=function(_0x5e655d,_0x40db41){_0x5e655d=_0x5e655d-0x1d1;let _0x2a0a74=_0x3803bf[_0x5e655d];return _0x2a0a74;},a79_0x5e65(_0x25195d,_0x4977b0);}const a79_0x8aedde={};a79_0x8aedde[a79_0x2de928(0x1e4)]=0x5,a79_0x8aedde[a79_0x2de928(0x1ea)]=function(){const _0x283188=a79_0x2de928,_0x3f380f={};_0x3f380f['YEmSn']=_0x283188(0x1d4);const _0x219290=_0x3f380f;return _0x219290[_0x283188(0x1e2)];};const a79_0x23e5c1={};a79_0x23e5c1[a79_0x2de928(0x1e4)]=0x6,a79_0x23e5c1[a79_0x2de928(0x1ea)]=function(){const _0x2bd566=a79_0x2de928,_0x1c435a={};_0x1c435a['uUHWG']=_0x2bd566(0x1e9);const _0x2feace=_0x1c435a;return _0x2feace[_0x2bd566(0x1d5)];};const a79_0x4f819c={};a79_0x4f819c[a79_0x2de928(0x1e4)]=0x7,a79_0x4f819c[a79_0x2de928(0x1ea)]=function(){const _0x22219a=a79_0x2de928,_0x3694fc={};_0x3694fc[_0x22219a(0x1eb)]='TestFrameworkState.TEST';const _0x363a71=_0x3694fc;return _0x363a71['uKbde'];};const a79_0x449406={};a79_0x449406[a79_0x2de928(0x1e4)]=0x8,a79_0x449406['toString']=function(){const _0x3847a5=a79_0x2de928,_0xb212fa={};_0xb212fa[_0x3847a5(0x1e8)]='TestFrameworkState.STEP';const _0x3ae348=_0xb212fa;return _0x3ae348['VXxli'];};const a79_0x1e3ca6={};a79_0x1e3ca6[a79_0x2de928(0x1e4)]=0x9,a79_0x1e3ca6['toString']=function(){const _0x568aaf=a79_0x2de928,_0x280fce={};_0x280fce[_0x568aaf(0x1dd)]='TestFrameworkState.LOG_REPORT';const _0x4c759e=_0x280fce;return _0x4c759e[_0x568aaf(0x1dd)];};const a79_0x4f5d40={};a79_0x4f5d40[a79_0x2de928(0x1e4)]=0xa,a79_0x4f5d40[a79_0x2de928(0x1ea)]=function(){const _0x46e7d9=a79_0x2de928,_0x2046d0={};_0x2046d0['UFoGk']=_0x46e7d9(0x1d8);const _0x312441=_0x2046d0;return _0x312441['UFoGk'];};const TestFrameworkState=Object['freeze']({'NONE':a79_0x4863d0,'BEFORE_ALL':a79_0x524990,'LOG':a79_0x5a570a,'SETUP_FIXTURE':a79_0x201510,'INIT_TEST':a79_0x1318b1,'BEFORE_EACH':a79_0x8aedde,'AFTER_EACH':a79_0x23e5c1,'TEST':a79_0x4f819c,'STEP':a79_0x449406,'LOG_REPORT':a79_0x1e3ca6,'AFTER_ALL':a79_0x4f5d40,'fromValue'(_0x202f17){const _0x4d1ddc=a79_0x2de928;return Object[_0x4d1ddc(0x1ec)](TestFrameworkState)[_0x4d1ddc(0x1da)](_0x46b2a2=>_0x46b2a2[_0x4d1ddc(0x1e4)]===_0x202f17);}});module[a79_0x2de928(0x1e7)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a80_0x4c47(_0x744388,_0x1ad4b1){const _0x33b614=a80_0x33b6();return a80_0x4c47=function(_0x4c476b,_0x4a7e96){_0x4c476b=_0x4c476b-0xd5;let _0x4154cb=_0x33b614[_0x4c476b];return _0x4154cb;},a80_0x4c47(_0x744388,_0x1ad4b1);}const a80_0x24abc1=a80_0x4c47;(function(_0x20da07,_0x1b58d5){const _0x464d35=a80_0x4c47,_0x534703=_0x20da07();while(!![]){try{const _0x3d24bc=-parseInt(_0x464d35(0x13c))/0x1+parseInt(_0x464d35(0x119))/0x2*(-parseInt(_0x464d35(0xe9))/0x3)+-parseInt(_0x464d35(0x104))/0x4*(-parseInt(_0x464d35(0xf8))/0x5)+-parseInt(_0x464d35(0xf4))/0x6+-parseInt(_0x464d35(0xd6))/0x7*(-parseInt(_0x464d35(0xfd))/0x8)+-parseInt(_0x464d35(0x100))/0x9+parseInt(_0x464d35(0x128))/0xa*(parseInt(_0x464d35(0x12a))/0xb);if(_0x3d24bc===_0x1b58d5)break;else _0x534703['push'](_0x534703['shift']());}catch(_0x4feedb){_0x534703['push'](_0x534703['shift']());}}}(a80_0x33b6,0xa0b8c));const os=require('os'),fs=require('fs'),path=require(a80_0x24abc1(0x136)),util=require(a80_0x24abc1(0x11b)),BrowserstackCLI=require(a80_0x24abc1(0x102)),https=require('https'),http=require('http'),AutomationFramework=require(a80_0x24abc1(0x113)),PlaywrightDriverModule=require(a80_0x24abc1(0x130)),TestInfo=require(a80_0x24abc1(0xde)),TestFrameworkConstants=require(a80_0x24abc1(0x10e)),{createClassLogger}=require(a80_0x24abc1(0x129));function a80_0x33b6(){const _0x4fcfe0=['XckqC','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','homedir','TOSyI','clearAttachments','LGKJo','logger','3741550dDDGVC','../../helpers/classLogger.js','55IScMGg','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','toFixed','KEY_FILE_PATH','basename','getState','./modules/playwrightDriverModule','getTrackedInstance','NcODH','AlgyT','sXyAi','Created\x20.browserstack\x20folder\x20at:\x20%s','path','BuildLevel','trackFile','message','rmSync','tkgSm','180175PeYWaZ','http://','getTestDetails','7ySJTQa','RuPEO','modules','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','hbjms','sPVDk','finish','./TestInfo','getInstance','Cleared\x20attachment\x20folder','KEY_TEST_ATTACHMENTS','KEY_FILE_SIZE','buildHashedId','createWriteStream','PbVOx','BtoJz','BhqBt','debug','9039OlkkBf','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','testhubConfig','statSync','toObject','https://','KEY_TEST_ID','eZCVe','format','IJNOy','error','5191914REzVJl','TestHubModule','bfjre','uploadAttachments','80245LheCmy','MbkKY','setTestDetails','copyFileSync','WGCQE','3971704wQwhzv','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','qBaqu','2372121rZziFN','existsSync','./browserstackCLI','File\x20downloaded\x20to:\x20%s','224pBQEbn','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','startsWith','join','KEY_FILE_NAME','SFyzO','uNsms','mkdirSync','unlinkSync','Created\x20folder:\x20%s','./framework/constants/testFrameworkConstants','size','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','.browserstack','force','./framework/automationFramework','XNmSL','TestLevel','QddXW','kjaXF','LNlqr','862DqQIaf','EsDxU','util','close','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','uploadAttachmentsManager','trim','pZxFj'];a80_0x33b6=function(){return _0x4fcfe0;};return a80_0x33b6();}class uploadAttachmentsManager{static [a80_0x24abc1(0x127)]=createClassLogger(a80_0x24abc1(0x11e));static[a80_0x24abc1(0xf7)](_0x30cc0e,_0x2b0531=![]){const _0x1e51f5=a80_0x24abc1,_0x29f47f={};_0x29f47f[_0x1e51f5(0x126)]=function(_0x549165,_0x39e330){return _0x549165/_0x39e330;},_0x29f47f['uJCbb']=function(_0x1e3a7d,_0x893c27){return _0x1e3a7d*_0x893c27;},_0x29f47f[_0x1e51f5(0xfc)]=function(_0x14f0b0,_0x52f903){return _0x14f0b0>_0x52f903;},_0x29f47f['bfjre']=_0x1e51f5(0x122),_0x29f47f[_0x1e51f5(0xf0)]=_0x1e51f5(0x103),_0x29f47f[_0x1e51f5(0x120)]=function(_0x4c6071,_0x3bc219){return _0x4c6071===_0x3bc219;},_0x29f47f['hbjms']=_0x1e51f5(0xdd),_0x29f47f[_0x1e51f5(0x117)]=_0x1e51f5(0xda),_0x29f47f['AlgyT']=_0x1e51f5(0xd9),_0x29f47f['qBaqu']='Attachment\x20recevied\x20for\x20path:\x20%s',_0x29f47f[_0x1e51f5(0x121)]=_0x1e51f5(0x111),_0x29f47f['ewSHb']=_0x1e51f5(0x105),_0x29f47f[_0x1e51f5(0x118)]=_0x1e51f5(0x135),_0x29f47f[_0x1e51f5(0x134)]=_0x1e51f5(0x10d),_0x29f47f[_0x1e51f5(0x124)]=function(_0x253a61,_0x305dd6){return _0x253a61===_0x305dd6;},_0x29f47f[_0x1e51f5(0x132)]=_0x1e51f5(0x110),_0x29f47f[_0x1e51f5(0xd7)]=_0x1e51f5(0xee),_0x29f47f[_0x1e51f5(0x11a)]=_0x1e51f5(0x13d),_0x29f47f[_0x1e51f5(0xe5)]=_0x1e51f5(0xf3),_0x29f47f['kbCoa']='Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s',_0x29f47f['SFyzO']=function(_0x4e7fa8,_0x79ae19){return _0x4e7fa8/_0x79ae19;},_0x29f47f[_0x1e51f5(0xf9)]=function(_0x46c388,_0x15aaa2){return _0x46c388*_0x15aaa2;},_0x29f47f[_0x1e51f5(0x13b)]=_0x1e51f5(0x12b);const _0x2ef159=_0x29f47f;this[_0x1e51f5(0x127)][_0x1e51f5(0xe8)](util[_0x1e51f5(0xf1)](_0x2ef159[_0x1e51f5(0xff)],_0x30cc0e));const _0x1445f5=os[_0x1e51f5(0x123)](),_0x209992=path[_0x1e51f5(0x107)](_0x1445f5,_0x2ef159['XckqC']);!fs['existsSync'](_0x209992)&&(this[_0x1e51f5(0x127)][_0x1e51f5(0xe8)](util[_0x1e51f5(0xf1)](_0x2ef159['ewSHb'],_0x209992)),fs[_0x1e51f5(0x10b)](_0x209992),this[_0x1e51f5(0x127)][_0x1e51f5(0xe8)](util[_0x1e51f5(0xf1)](_0x2ef159['LNlqr'],_0x209992)));const _0x3b091c=BrowserstackCLI[_0x1e51f5(0xdf)]()[_0x1e51f5(0xd8)][_0x1e51f5(0xf5)]?.[_0x1e51f5(0xeb)]?.[_0x1e51f5(0xed)]()?.['buildHashedId'],_0x4a6f1e=path[_0x1e51f5(0x107)](_0x209992,_0x3b091c);!fs[_0x1e51f5(0x101)](_0x4a6f1e)&&(fs[_0x1e51f5(0x10b)](_0x4a6f1e),this[_0x1e51f5(0x127)][_0x1e51f5(0xe8)](util['format'](_0x2ef159[_0x1e51f5(0x134)],_0x4a6f1e)));if(_0x2ef159[_0x1e51f5(0x124)](_0x30cc0e[_0x1e51f5(0x11f)](),'')){this['logger']['debug'](util[_0x1e51f5(0xf1)](_0x2ef159['NcODH']));return;}if(_0x30cc0e[_0x1e51f5(0x106)](_0x2ef159[_0x1e51f5(0xd7)])||_0x30cc0e[_0x1e51f5(0x106)](_0x2ef159[_0x1e51f5(0x11a)])){const _0x271bea=_0x30cc0e[_0x1e51f5(0x106)](_0x2ef159[_0x1e51f5(0xd7)])?https:http,_0x3eb13f=path['basename'](_0x30cc0e),_0x1cc74c=path[_0x1e51f5(0x107)](_0x4a6f1e,_0x3eb13f),_0x198112=fs[_0x1e51f5(0xe4)](_0x1cc74c);_0x271bea['get'](_0x30cc0e,_0x3c21c9=>{const _0x2c9066=_0x1e51f5;if(_0x2ef159[_0x2c9066(0x120)](_0x3c21c9['statusCode'],0xc8))_0x3c21c9['pipe'](_0x198112),_0x198112['on'](_0x2ef159[_0x2c9066(0xdb)],()=>{const _0x143d83=_0x2c9066;_0x198112[_0x143d83(0x11c)]();const _0x511a43=fs[_0x143d83(0xec)](_0x1cc74c),_0x5cb26b=_0x2ef159[_0x143d83(0x126)](_0x511a43[_0x143d83(0x10f)],_0x2ef159['uJCbb'](0x400,0x400));if(_0x2ef159[_0x143d83(0xfc)](_0x5cb26b,0x64)){this[_0x143d83(0x127)]['debug'](util[_0x143d83(0xf1)](_0x2ef159[_0x143d83(0xf6)],_0x5cb26b[_0x143d83(0x12c)](0x2))),fs[_0x143d83(0x10c)](_0x1cc74c);return;}this[_0x143d83(0x127)][_0x143d83(0xe8)](util[_0x143d83(0xf1)](_0x2ef159['eZCVe'],_0x1cc74c)),uploadAttachmentsManager[_0x143d83(0x138)](_0x1cc74c,_0x2b0531);});else{this[_0x2c9066(0x127)][_0x2c9066(0xe8)](util[_0x2c9066(0xf1)](_0x2ef159['kjaXF'],_0x3c21c9['statusCode'])),_0x198112[_0x2c9066(0x11c)](),fs[_0x2c9066(0x10c)](_0x1cc74c);return;}})['on'](_0x2ef159[_0x1e51f5(0xe5)],_0x3353a9=>{const _0x2bb8f7=_0x1e51f5;this[_0x2bb8f7(0x127)][_0x2bb8f7(0xe8)](util[_0x2bb8f7(0xf1)](_0x2ef159[_0x2bb8f7(0x133)],_0x3353a9['message'])),_0x198112['close'](),fs[_0x2bb8f7(0x10c)](_0x1cc74c);return;});}else{if(!fs[_0x1e51f5(0x101)](_0x30cc0e)){this['logger'][_0x1e51f5(0xe8)](util['format'](_0x2ef159['kbCoa'],_0x30cc0e));return;}const _0x16d6a9=fs[_0x1e51f5(0xec)](_0x30cc0e),_0x2cbf6b=_0x2ef159[_0x1e51f5(0x109)](_0x16d6a9[_0x1e51f5(0x10f)],_0x2ef159[_0x1e51f5(0xf9)](0x400,0x400));if(_0x2ef159['WGCQE'](_0x2cbf6b,0x64)){this[_0x1e51f5(0x127)]['debug'](util[_0x1e51f5(0xf1)](_0x2ef159[_0x1e51f5(0x13b)],_0x2cbf6b[_0x1e51f5(0x12c)](0x2)));return;}const _0x1a3aee=path[_0x1e51f5(0x12e)](_0x30cc0e),_0x475ebe=path[_0x1e51f5(0x107)](_0x4a6f1e,_0x1a3aee);fs[_0x1e51f5(0xfb)](_0x30cc0e,_0x475ebe),uploadAttachmentsManager[_0x1e51f5(0x138)](_0x475ebe,_0x2b0531);}}static[a80_0x24abc1(0x138)](_0x37b3ae,_0x291170){const _0x566fe1=a80_0x24abc1,_0x9f7e1f={};_0x9f7e1f[_0x566fe1(0xdc)]=_0x566fe1(0x137),_0x9f7e1f[_0x566fe1(0x116)]=_0x566fe1(0x115),_0x9f7e1f[_0x566fe1(0xf2)]=_0x566fe1(0xea),_0x9f7e1f[_0x566fe1(0xe7)]=_0x566fe1(0xfe);const _0x1598bb=_0x9f7e1f;try{const _0x3811c7=AutomationFramework[_0x566fe1(0x131)](),_0x3196ea=AutomationFramework[_0x566fe1(0x12f)](_0x3811c7,PlaywrightDriverModule[_0x566fe1(0xef)],''),_0x120e5b=TestInfo[_0x566fe1(0xd5)](_0x3196ea),_0x44563b=_0x120e5b[TestFrameworkConstants[_0x566fe1(0xe1)]]||{};_0x44563b[_0x37b3ae]={[TestFrameworkConstants[_0x566fe1(0xe2)]]:fs[_0x566fe1(0xec)](_0x37b3ae)[_0x566fe1(0x10f)],[TestFrameworkConstants[_0x566fe1(0x108)]]:path[_0x566fe1(0x12e)](_0x37b3ae),[TestFrameworkConstants[_0x566fe1(0x12d)]]:_0x37b3ae,[TestFrameworkConstants['KEY_FILE_LEVEL']]:_0x291170?_0x1598bb[_0x566fe1(0xdc)]:_0x1598bb[_0x566fe1(0x116)]},_0x120e5b[TestFrameworkConstants[_0x566fe1(0xe1)]]=_0x44563b,TestInfo[_0x566fe1(0xfa)](_0x3196ea,_0x120e5b),this['logger'][_0x566fe1(0xe8)](util[_0x566fe1(0xf1)](_0x1598bb[_0x566fe1(0xf2)],_0x37b3ae));}catch(_0x47c9e2){this[_0x566fe1(0x127)]['debug'](util['format'](_0x1598bb['BhqBt'],_0x47c9e2[_0x566fe1(0x139)]));}}static[a80_0x24abc1(0x125)](){const _0x5f20e9=a80_0x24abc1,_0x4c8ae6={};_0x4c8ae6[_0x5f20e9(0xe6)]=_0x5f20e9(0x111),_0x4c8ae6[_0x5f20e9(0x10a)]=_0x5f20e9(0x11d),_0x4c8ae6[_0x5f20e9(0x114)]=_0x5f20e9(0xe0);const _0x9902a4=_0x4c8ae6,_0x7bca44=os[_0x5f20e9(0x123)](),_0x1e9dae=path[_0x5f20e9(0x107)](_0x7bca44,_0x9902a4[_0x5f20e9(0xe6)]);if(!fs[_0x5f20e9(0x101)](_0x1e9dae))return;const _0xb8212=BrowserstackCLI[_0x5f20e9(0xdf)]()[_0x5f20e9(0xd8)][_0x5f20e9(0xf5)]?.['testhubConfig']?.[_0x5f20e9(0xed)]()?.[_0x5f20e9(0xe3)],_0x4ff35f=_0xb8212?path[_0x5f20e9(0x107)](_0x1e9dae,_0xb8212):null;if(!_0x4ff35f||!fs[_0x5f20e9(0x101)](_0x4ff35f)){this[_0x5f20e9(0x127)][_0x5f20e9(0xe8)](util[_0x5f20e9(0xf1)](_0x9902a4['uNsms'],_0xb8212));return;}const _0x3031f4={};_0x3031f4['recursive']=!![],_0x3031f4[_0x5f20e9(0x112)]=!![],fs[_0x5f20e9(0x13a)](_0x4ff35f,_0x3031f4),this['logger'][_0x5f20e9(0xe8)](util['format'](_0x9902a4[_0x5f20e9(0x114)]));}}module['exports']=uploadAttachmentsManager;
|
|
1
|
+
const a80_0x2dc667=a80_0x6785;function a80_0x56a6(){const _0x3d4a0c=['666990KnhGfv','close','startsWith','getInstance','statusCode','BOFNr','unlinkSync','join','Created\x20.browserstack\x20folder\x20at:\x20%s','8KrScuS','util','iTJDH','mkdirSync','TestHubModule','clearAttachments','toFixed','GtDkB','YAHGO','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','lPjZv','finish','LjVSL','1527890FnwZcc','basename','./TestInfo','message','getTrackedInstance','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','GimAY','xUozu','https','znSZN','84uFBKuN','modules','KEY_TEST_ATTACHMENTS','1089567VzaiQI','rcNaz','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','logger','PhwgQ','QOXSB','5aiRAjp','napaj','AJTsl','XeeoH','existsSync','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','testhubConfig','recursive','16pHsAHb','fGnAu','2881ozqDEz','640601FbCakn','BuildLevel','34cvjkcw','EyRtZ','./framework/automationFramework','http://','https://','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','statSync','NGQOA','22kTiKGc','error','Cleared\x20attachment\x20folder','exports','DCiEg','trackFile','atEFG','force','uploadAttachmentsManager','toObject','KEY_FILE_PATH','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','size','AlToU','./browserstackCLI','OsYGK','xwfRF','./framework/constants/testFrameworkConstants','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','bfuWQ','2514954XdKvHf','KEY_FILE_NAME','ckzyY','format','buildHashedId','get','.browserstack','debug','http','./modules/playwrightDriverModule','262737YaLvEk','homedir','HPRjS','path','KEY_FILE_LEVEL','getTestDetails','foJQJ','KEY_FILE_SIZE','cfsOI','WhVvx','getState'];a80_0x56a6=function(){return _0x3d4a0c;};return a80_0x56a6();}(function(_0x37e499,_0xab2b09){const _0xb9d6c3=a80_0x6785,_0x3657b4=_0x37e499();while(!![]){try{const _0x2a6d31=-parseInt(_0xb9d6c3(0x13e))/0x1*(-parseInt(_0xb9d6c3(0x141))/0x2)+parseInt(_0xb9d6c3(0x100))/0x3*(parseInt(_0xb9d6c3(0x13c))/0x4)+-parseInt(_0xb9d6c3(0x134))/0x5*(-parseInt(_0xb9d6c3(0xf6))/0x6)+-parseInt(_0xb9d6c3(0x121))/0x7+parseInt(_0xb9d6c3(0x114))/0x8*(parseInt(_0xb9d6c3(0x12e))/0x9)+parseInt(_0xb9d6c3(0x10b))/0xa*(-parseInt(_0xb9d6c3(0x149))/0xb)+parseInt(_0xb9d6c3(0x12b))/0xc*(-parseInt(_0xb9d6c3(0x13f))/0xd);if(_0x2a6d31===_0xab2b09)break;else _0x3657b4['push'](_0x3657b4['shift']());}catch(_0x9df809){_0x3657b4['push'](_0x3657b4['shift']());}}}(a80_0x56a6,0x3b4dc));const os=require('os'),fs=require('fs'),path=require(a80_0x2dc667(0x103)),util=require(a80_0x2dc667(0x115)),BrowserstackCLI=require(a80_0x2dc667(0xf0)),https=require(a80_0x2dc667(0x129)),http=require(a80_0x2dc667(0xfe)),AutomationFramework=require(a80_0x2dc667(0x143)),PlaywrightDriverModule=require(a80_0x2dc667(0xff)),TestInfo=require(a80_0x2dc667(0x123)),TestFrameworkConstants=require(a80_0x2dc667(0xf3)),{createClassLogger}=require('../../helpers/classLogger.js');class uploadAttachmentsManager{static ['logger']=createClassLogger(a80_0x2dc667(0xea));static['uploadAttachments'](_0x33a091,_0x44aea5=![]){const _0x9c3178=a80_0x2dc667,_0x508908={};_0x508908['WhVvx']=function(_0x485470,_0x2f1a50){return _0x485470/_0x2f1a50;},_0x508908[_0x9c3178(0x133)]=function(_0x2fb926,_0x56d6b7){return _0x2fb926*_0x56d6b7;},_0x508908[_0x9c3178(0x128)]=function(_0xba8b28,_0xe215f5){return _0xba8b28>_0xe215f5;},_0x508908[_0x9c3178(0xf5)]=_0x9c3178(0x130),_0x508908[_0x9c3178(0x135)]='File\x20downloaded\x20to:\x20%s',_0x508908[_0x9c3178(0x11c)]=function(_0x13174b,_0x41923f){return _0x13174b===_0x41923f;},_0x508908['AJTsl']=_0x9c3178(0x11f),_0x508908[_0x9c3178(0x120)]='Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload',_0x508908[_0x9c3178(0x116)]=_0x9c3178(0x126),_0x508908[_0x9c3178(0xef)]='Attachment\x20recevied\x20for\x20path:\x20%s',_0x508908[_0x9c3178(0xf1)]=_0x9c3178(0xfc),_0x508908[_0x9c3178(0x13d)]='.browserstack\x20folder\x20not\x20found\x20at:\x20%s',_0x508908[_0x9c3178(0x132)]=_0x9c3178(0x113),_0x508908['NGQOA']='Created\x20folder:\x20%s',_0x508908['ECmIo']=_0x9c3178(0xed),_0x508908[_0x9c3178(0xf8)]=_0x9c3178(0x145),_0x508908[_0x9c3178(0x11b)]=_0x9c3178(0x144),_0x508908[_0x9c3178(0x102)]=_0x9c3178(0x14a),_0x508908[_0x9c3178(0x106)]=_0x9c3178(0xf4),_0x508908[_0x9c3178(0x108)]=function(_0x18cb49,_0x1401cc){return _0x18cb49>_0x1401cc;},_0x508908[_0x9c3178(0xf2)]=_0x9c3178(0x139);const _0x5a1a4=_0x508908;this[_0x9c3178(0x131)][_0x9c3178(0xfd)](util[_0x9c3178(0xf9)](_0x5a1a4['AlToU'],_0x33a091));const _0x16b850=os[_0x9c3178(0x101)](),_0x462526=path[_0x9c3178(0x112)](_0x16b850,_0x5a1a4['OsYGK']);!fs[_0x9c3178(0x138)](_0x462526)&&(this['logger']['debug'](util[_0x9c3178(0xf9)](_0x5a1a4['fGnAu'],_0x462526)),fs[_0x9c3178(0x117)](_0x462526),this[_0x9c3178(0x131)][_0x9c3178(0xfd)](util[_0x9c3178(0xf9)](_0x5a1a4['PhwgQ'],_0x462526)));const _0x27be4d=BrowserstackCLI[_0x9c3178(0x10e)]()[_0x9c3178(0x12c)][_0x9c3178(0x118)]?.[_0x9c3178(0x13a)]?.[_0x9c3178(0xeb)]()?.['buildHashedId'],_0x168cfe=path[_0x9c3178(0x112)](_0x462526,_0x27be4d);!fs['existsSync'](_0x168cfe)&&(fs[_0x9c3178(0x117)](_0x168cfe),this[_0x9c3178(0x131)][_0x9c3178(0xfd)](util[_0x9c3178(0xf9)](_0x5a1a4[_0x9c3178(0x148)],_0x168cfe)));if(_0x5a1a4[_0x9c3178(0x11c)](_0x33a091['trim'](),'')){this['logger'][_0x9c3178(0xfd)](util[_0x9c3178(0xf9)](_0x5a1a4['ECmIo']));return;}if(_0x33a091[_0x9c3178(0x10d)](_0x5a1a4[_0x9c3178(0xf8)])||_0x33a091['startsWith'](_0x5a1a4['GtDkB'])){const _0x4bb567=_0x33a091[_0x9c3178(0x10d)](_0x5a1a4['ckzyY'])?https:http,_0x57094e=path[_0x9c3178(0x122)](_0x33a091),_0x1dca39=path[_0x9c3178(0x112)](_0x168cfe,_0x57094e),_0x589948=fs['createWriteStream'](_0x1dca39);_0x4bb567[_0x9c3178(0xfb)](_0x33a091,_0x5d8676=>{const _0x2e5e0d=_0x9c3178,_0x45741b={'znSZN':function(_0x3a38c8,_0x29db1f){const _0x4136eb=a80_0x6785;return _0x5a1a4[_0x4136eb(0x109)](_0x3a38c8,_0x29db1f);},'rcNaz':function(_0x114023,_0x1b0645){const _0x54dfd5=a80_0x6785;return _0x5a1a4[_0x54dfd5(0x133)](_0x114023,_0x1b0645);},'WKaRZ':function(_0x2832c6,_0x23df44){return _0x5a1a4['xUozu'](_0x2832c6,_0x23df44);},'GimAY':_0x5a1a4['bfuWQ'],'RydoX':_0x5a1a4[_0x2e5e0d(0x135)]};if(_0x5a1a4[_0x2e5e0d(0x11c)](_0x5d8676['statusCode'],0xc8))_0x5d8676['pipe'](_0x589948),_0x589948['on'](_0x5a1a4[_0x2e5e0d(0x136)],()=>{const _0x503e37=_0x2e5e0d;_0x589948['close']();const _0xf80c29=fs['statSync'](_0x1dca39),_0x433cbe=_0x45741b[_0x503e37(0x12a)](_0xf80c29[_0x503e37(0xee)],_0x45741b[_0x503e37(0x12f)](0x400,0x400));if(_0x45741b['WKaRZ'](_0x433cbe,0x64)){this[_0x503e37(0x131)]['debug'](util[_0x503e37(0xf9)](_0x45741b[_0x503e37(0x127)],_0x433cbe[_0x503e37(0x11a)](0x2))),fs['unlinkSync'](_0x1dca39);return;}this['logger'][_0x503e37(0xfd)](util[_0x503e37(0xf9)](_0x45741b['RydoX'],_0x1dca39)),uploadAttachmentsManager[_0x503e37(0x14e)](_0x1dca39,_0x44aea5);});else{this[_0x2e5e0d(0x131)][_0x2e5e0d(0xfd)](util[_0x2e5e0d(0xf9)](_0x5a1a4['LjVSL'],_0x5d8676[_0x2e5e0d(0x10f)])),_0x589948[_0x2e5e0d(0x10c)](),fs[_0x2e5e0d(0x111)](_0x1dca39);return;}})['on'](_0x5a1a4[_0x9c3178(0x102)],_0x301831=>{const _0x424476=_0x9c3178;this[_0x424476(0x131)][_0x424476(0xfd)](util[_0x424476(0xf9)](_0x5a1a4['iTJDH'],_0x301831[_0x424476(0x124)])),_0x589948[_0x424476(0x10c)](),fs['unlinkSync'](_0x1dca39);return;});}else{if(!fs[_0x9c3178(0x138)](_0x33a091)){this['logger'][_0x9c3178(0xfd)](util[_0x9c3178(0xf9)](_0x5a1a4['foJQJ'],_0x33a091));return;}const _0xbb5cd1=fs[_0x9c3178(0x147)](_0x33a091),_0x25c281=_0x5a1a4[_0x9c3178(0x109)](_0xbb5cd1[_0x9c3178(0xee)],_0x5a1a4['QOXSB'](0x400,0x400));if(_0x5a1a4[_0x9c3178(0x108)](_0x25c281,0x64)){this[_0x9c3178(0x131)]['debug'](util[_0x9c3178(0xf9)](_0x5a1a4[_0x9c3178(0xf2)],_0x25c281[_0x9c3178(0x11a)](0x2)));return;}const _0x5239f3=path[_0x9c3178(0x122)](_0x33a091),_0x572ab0=path[_0x9c3178(0x112)](_0x168cfe,_0x5239f3);fs['copyFileSync'](_0x33a091,_0x572ab0),uploadAttachmentsManager['trackFile'](_0x572ab0,_0x44aea5);}}static[a80_0x2dc667(0x14e)](_0x57ce8d,_0x2f0005){const _0x138d3f=a80_0x2dc667,_0xff229={};_0xff229[_0x138d3f(0x142)]=_0x138d3f(0x140),_0xff229[_0x138d3f(0x14f)]='TestLevel',_0xff229[_0x138d3f(0x11e)]=_0x138d3f(0x146),_0xff229['wvhyu']='Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload';const _0x8ad6ca=_0xff229;try{const _0x31486c=AutomationFramework[_0x138d3f(0x125)](),_0x1ae0cc=AutomationFramework[_0x138d3f(0x10a)](_0x31486c,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x5ae1aa=TestInfo[_0x138d3f(0x105)](_0x1ae0cc),_0x4b8d99=_0x5ae1aa[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{};_0x4b8d99[_0x57ce8d]={[TestFrameworkConstants[_0x138d3f(0x107)]]:fs[_0x138d3f(0x147)](_0x57ce8d)[_0x138d3f(0xee)],[TestFrameworkConstants[_0x138d3f(0xf7)]]:path[_0x138d3f(0x122)](_0x57ce8d),[TestFrameworkConstants[_0x138d3f(0xec)]]:_0x57ce8d,[TestFrameworkConstants[_0x138d3f(0x104)]]:_0x2f0005?_0x8ad6ca[_0x138d3f(0x142)]:_0x8ad6ca[_0x138d3f(0x14f)]},_0x5ae1aa[TestFrameworkConstants[_0x138d3f(0x12d)]]=_0x4b8d99,TestInfo['setTestDetails'](_0x1ae0cc,_0x5ae1aa),this[_0x138d3f(0x131)]['debug'](util['format'](_0x8ad6ca[_0x138d3f(0x11e)],_0x57ce8d));}catch(_0x1b5eb0){this[_0x138d3f(0x131)][_0x138d3f(0xfd)](util[_0x138d3f(0xf9)](_0x8ad6ca['wvhyu'],_0x1b5eb0[_0x138d3f(0x124)]));}}static[a80_0x2dc667(0x119)](){const _0xd52073=a80_0x2dc667,_0x502eb0={};_0x502eb0[_0xd52073(0x137)]=_0xd52073(0xfc),_0x502eb0[_0xd52073(0x110)]=_0xd52073(0x11d),_0x502eb0['DCiEg']=_0xd52073(0x14b);const _0x5317ee=_0x502eb0,_0x15d9ad=os['homedir'](),_0x36da8d=path[_0xd52073(0x112)](_0x15d9ad,_0x5317ee['XeeoH']);if(!fs[_0xd52073(0x138)](_0x36da8d))return;const _0x1ce355=BrowserstackCLI[_0xd52073(0x10e)]()[_0xd52073(0x12c)][_0xd52073(0x118)]?.[_0xd52073(0x13a)]?.[_0xd52073(0xeb)]()?.[_0xd52073(0xfa)],_0x5e6fba=_0x1ce355?path[_0xd52073(0x112)](_0x36da8d,_0x1ce355):null;if(!_0x5e6fba||!fs['existsSync'](_0x5e6fba)){this[_0xd52073(0x131)][_0xd52073(0xfd)](util[_0xd52073(0xf9)](_0x5317ee['BOFNr'],_0x1ce355));return;}const _0x2a669a={};_0x2a669a[_0xd52073(0x13b)]=!![],_0x2a669a[_0xd52073(0xe9)]=!![],fs['rmSync'](_0x5e6fba,_0x2a669a),this['logger'][_0xd52073(0xfd)](util[_0xd52073(0xf9)](_0x5317ee[_0xd52073(0x14d)]));}}function a80_0x6785(_0x1436e4,_0x23e4be){const _0x56a64e=a80_0x56a6();return a80_0x6785=function(_0x67858c,_0x47697d){_0x67858c=_0x67858c-0xe9;let _0x327f9c=_0x56a64e[_0x67858c];return _0x327f9c;},a80_0x6785(_0x1436e4,_0x23e4be);}module[a80_0x2dc667(0x14c)]=uploadAttachmentsManager;
|