browserstack-node-sdk 1.40.7 → 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/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
|
-
|
|
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
|
-
const
|
|
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
|
-
|
|
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
|
-
const
|
|
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_0x906cbd=a75_0x3e2b;function a75_0x3e2b(_0x5ee262,_0x57af7c){const _0x3b616c=a75_0x3b61();return a75_0x3e2b=function(_0x3e2bdd,_0x184814){_0x3e2bdd=_0x3e2bdd-0x1a7;let _0x42125b=_0x3b616c[_0x3e2bdd];return _0x42125b;},a75_0x3e2b(_0x5ee262,_0x57af7c);}(function(_0x5b1ee1,_0x47321a){const _0x147628=a75_0x3e2b,_0x510c76=_0x5b1ee1();while(!![]){try{const _0x927536=-parseInt(_0x147628(0x21f))/0x1+parseInt(_0x147628(0x257))/0x2*(parseInt(_0x147628(0x1b4))/0x3)+-parseInt(_0x147628(0x249))/0x4+-parseInt(_0x147628(0x1c0))/0x5+-parseInt(_0x147628(0x23f))/0x6*(parseInt(_0x147628(0x1d8))/0x7)+-parseInt(_0x147628(0x21c))/0x8+parseInt(_0x147628(0x1e4))/0x9;if(_0x927536===_0x47321a)break;else _0x510c76['push'](_0x510c76['shift']());}catch(_0x522bb1){_0x510c76['push'](_0x510c76['shift']());}}}(a75_0x3b61,0x755f8));const util=require(a75_0x906cbd(0x1c5)),BaseModule=require(a75_0x906cbd(0x1eb)),{createClassLogger}=require(a75_0x906cbd(0x1bc)),{getFrameworkVersion}=require('../../../helpers/test-observability/utils'),helper=require(a75_0x906cbd(0x1d7)),{FRAMEWORKS}=require(a75_0x906cbd(0x1ee)),AutomationFramework=require(a75_0x906cbd(0x1cf)),AutomationFrameworkState=require(a75_0x906cbd(0x1ab)),HookState=require(a75_0x906cbd(0x20a)),{playwrightBstackJsExecutor,nestedKeyValue,playwrightAnnotate,getPlaywrightStatus,getPlaywrightSessionName}=require(a75_0x906cbd(0x1b2)),CLIUtils=require(a75_0x906cbd(0x215)),BrowserstackCLI=require('../browserstackCLI.js'),GrpcClient=require('../grpcClient.js'),PerformanceTester=require(a75_0x906cbd(0x24d)),PerformanceEvents=require(a75_0x906cbd(0x1fc))['AUTOMATE_EVENTS'],TestInfo=require(a75_0x906cbd(0x1ca)),{getPlaywrightProvider}=require(a75_0x906cbd(0x1b2)),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),TestFrameworkState=require(a75_0x906cbd(0x227));function a75_0x3b61(){const _0x10cee5=['3|4|1|0|2|8|7|6|9|5|10','KEY_CONTEXT_OBJECT','inspect','arguments','../state/hookState.js','testRunId','Automation\x20onAfterTest:\x20Test\x20status:\x20','base64','PlaywrightDriverModule','onAfterDriverCreate:\x20Setting\x20browser\x20object','Error\x20in\x20onDispatchExecute:\x20','rKvOK','playwrightVersion','contextObject','pageObject','../cliUtils.js','Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','NDjLo','hubUrl','testFrameworkVersion','PLAYWRIGHT','Ogxxo','666928YRvrID','with\x20','KEY_PLATFORM_INDEX','96777dKBhpv','KEY_TEST_FRAMEWORK_VERSION','instance','SESSION_NAME','UIByh','setState','testSessionEvent','yATsA','../state/testFrameworkState','from','BQCxb','rRFgF','context','platformIndex','Session','info','getContext','onAfterTest\x20CBTSession\x20complete\x20for\x20testId:\x20','KEY_PLATFORM_DETAILS','browserObject','start','toString','KEY_TEST_FRAMEWORK_NAME','getTrackedInstance','onBeforeDriverCreate','parallelIndex','OqSmA','onDispatchExecute:\x20Playwright\x20platform\x20details:\x20','shouldSkipSessionName','exports','ICWvp','testInfo','1584630bXSrXA','KEY_PAGE_OBJECT','action','QkGvW','getId','browser','POST','onBeforeDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','TdsxP','onAfterTest\x20CBTSession\x20payload:\x20','2968160FBnfOX','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','end','1.51.0','../../../helpers/performance/performance-tester.js','qIoQp','SbpEW','testId:\x20','Automation\x20onAfterTest:\x20Setting\x20session\x20status\x20for\x20testId:\x20','markSessionName:\x20Skipping\x20session\x20name\x20marking','registerObserver','getConfig','KEY_CAPABILITIES','bStackParams','12GWnsLf','Error\x20in\x20markSessionName:\x20','GblvJ','setSessionStatus','stringify','BTbVD','status','KEY_BROWSER_OBJECT','onDispatchExecute:\x20Playwright\x20sessionId:\x20','testHookState','../state/automationFrameworkState.js','zqUYw','isPlaywright','markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available','KEY_SESSION_ID','qWvtb','Playwright','../../../helpers/helper.js','sessionId','138426ZcVnmr','HZcMU','getRef','CREATE','testUuid','Automation\x20onAfterTest:\x20Test\x20completed','shouldSkipSessionStatus','pGUIP','../../../helpers/classLogger.js','getCapabilities','executionContext','qtSlA','3441090zUiNqQ','split','KEY_HUB_URL','params','onAfterTest','util','markSessionStatus:\x20Skipping\x20session\x20status\x20marking','ivdLh','bsParams','markSessionStatus','../TestInfo.js','aXzgj','MODULE_NAME','PLAYWRIGHT_DISPATCH','onAfterDriverCreate','../framework/automationFramework.js','fnjoT','testId','FvGUR','onAfterDriverCreate:\x20Setting\x20page\x20object','debug','PorxO','bind','../../../helpers/helper','7piYkcV','onPlaywrightDispatch','lrjPZ','logger','ThjZC','Cbwjj','VgPcb','getInstance','getTestDetails','isBrowserstackInfra','capabilities','browserVersion','18705726witGsO','ZfLWn','oKMgF','KEY_TEST_ID','browserName','TEST','driverInit','./baseModule','page','parse','../../utils/constants','error','iquHu','onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','workerInfo','fKXaH','__workerDetails','getThreadId','EXECUTE','message','yywcT','SESSION_STATUS','format','XiniN','../../../helpers/performance/constants.js','EUvfu','onDispatchExecute:\x20Playwright\x20driver\x20is\x20executing\x20tests\x20','platformDetails','name','getState','SriQZ','Error\x20in\x20onBeforeDriverCreate:\x20','QMJqA','markSessionName'];a75_0x3b61=function(){return _0x10cee5;};return a75_0x3b61();}class PlaywrightDriverModule extends BaseModule{static ['KEY_BROWSER_OBJECT']=a75_0x906cbd(0x232);static [a75_0x906cbd(0x207)]=a75_0x906cbd(0x213);static ['KEY_PAGE_OBJECT']=a75_0x906cbd(0x214);static [a75_0x906cbd(0x1af)]='sessionId';static [a75_0x906cbd(0x21e)]=a75_0x906cbd(0x22c);static [a75_0x906cbd(0x255)]=a75_0x906cbd(0x1e2);static [a75_0x906cbd(0x1c2)]=a75_0x906cbd(0x218);static [a75_0x906cbd(0x231)]='platformDetails';static [a75_0x906cbd(0x1e7)]=a75_0x906cbd(0x1d1);[a75_0x906cbd(0x1db)]=createClassLogger(a75_0x906cbd(0x20e));constructor(){const _0x3e6fd2=a75_0x906cbd,_0x36700f={};_0x36700f[_0x3e6fd2(0x24f)]=_0x3e6fd2(0x206),_0x36700f[_0x3e6fd2(0x223)]=_0x3e6fd2(0x20e);const _0x5b2ebb=_0x36700f,_0x4ea808=_0x5b2ebb[_0x3e6fd2(0x24f)][_0x3e6fd2(0x1c1)]('|');let _0xc078e4=0x0;while(!![]){switch(_0x4ea808[_0xc078e4++]){case'0':this[_0x3e6fd2(0x1e8)]=null;continue;case'1':this[_0x3e6fd2(0x212)]=null;continue;case'2':this[_0x3e6fd2(0x1e3)]=null;continue;case'3':super();continue;case'4':this[_0x3e6fd2(0x200)]=_0x5b2ebb['UIByh'];continue;case'5':AutomationFramework[_0x3e6fd2(0x253)](AutomationFrameworkState[_0x3e6fd2(0x1cd)],HookState[_0x3e6fd2(0x245)],this['onPlaywrightDispatch']['bind'](this));continue;case'6':AutomationFramework[_0x3e6fd2(0x253)](AutomationFrameworkState[_0x3e6fd2(0x1b7)],HookState['PRE'],this[_0x3e6fd2(0x237)][_0x3e6fd2(0x1d6)](this));continue;case'7':this[_0x3e6fd2(0x20b)]=null;continue;case'8':this['platforms']=[];continue;case'9':AutomationFramework[_0x3e6fd2(0x253)](AutomationFrameworkState[_0x3e6fd2(0x1b7)],HookState[_0x3e6fd2(0x245)],this[_0x3e6fd2(0x1ce)]['bind'](this));continue;case'10':AutomationFramework[_0x3e6fd2(0x253)](AutomationFrameworkState[_0x3e6fd2(0x1f6)],HookState[_0x3e6fd2(0x245)],this[_0x3e6fd2(0x1c4)]['bind'](this));continue;}break;}}['getModuleName'](){const _0x3dfdd1=a75_0x906cbd;return PlaywrightDriverModule[_0x3dfdd1(0x1cc)];}async[a75_0x906cbd(0x237)](_0x2a8df4){const _0x389a20=a75_0x906cbd,_0x5ee41c={};_0x5ee41c[_0x389a20(0x1b0)]=_0x389a20(0x246);const _0x496e57=_0x5ee41c;try{this[_0x389a20(0x1db)][_0x389a20(0x1d4)](_0x496e57[_0x389a20(0x1b0)]);const _0x283721=_0x2a8df4['launchcaps'],_0x28ac19=_0x2a8df4['hubUrl'];AutomationFramework[_0x389a20(0x224)](_0x2a8df4['instance'],PlaywrightDriverModule[_0x389a20(0x255)],_0x283721),AutomationFramework[_0x389a20(0x224)](_0x2a8df4[_0x389a20(0x221)],PlaywrightDriverModule[_0x389a20(0x1c2)],_0x28ac19);}catch(_0x23a5af){this['logger'][_0x389a20(0x1ef)](_0x389a20(0x203)+util[_0x389a20(0x1fa)](_0x23a5af));}}async[a75_0x906cbd(0x1d9)](_0x24bd60){const _0x5877f7=a75_0x906cbd,_0x3e27d7={};_0x3e27d7[_0x5877f7(0x1e5)]=function(_0x444435,_0x4b9a8a){return _0x444435||_0x4b9a8a;};const _0x4cab59=_0x3e27d7;try{const _0x570457=_0x24bd60?.[_0x5877f7(0x1f7)]&&_0x24bd60?.[_0x5877f7(0x1f7)]?.[_0x5877f7(0x1c3)]&&_0x24bd60?.['message']?.[_0x5877f7(0x1c3)]?.[_0x5877f7(0x1c8)],_0x2e2301=_0x24bd60?.[_0x5877f7(0x1f7)]&&_0x24bd60?.[_0x5877f7(0x1f7)]?.[_0x5877f7(0x256)];if(_0x4cab59[_0x5877f7(0x1e5)](_0x570457,_0x2e2301)){this['logger'][_0x5877f7(0x1d4)](_0x5877f7(0x1fe)+util[_0x5877f7(0x208)](_0x570457)+'\x20||\x20'+util['inspect'](_0x2e2301));const _0x4e6d07=_0x24bd60?.[_0x5877f7(0x221)],_0x529f06=_0x570457?.[_0x5877f7(0x1b3)]||_0x2e2301?.['sessionId'],_0x28e5ec=_0x570457?.['platformDetails']||_0x2e2301?.[_0x5877f7(0x1ff)];_0x529f06&&(this[_0x5877f7(0x1db)]['debug'](_0x5877f7(0x1a9)+_0x529f06),AutomationFramework[_0x5877f7(0x224)](_0x4e6d07,PlaywrightDriverModule[_0x5877f7(0x1af)],_0x529f06)),_0x28e5ec&&(this[_0x5877f7(0x1db)][_0x5877f7(0x1d4)](_0x5877f7(0x23a)+util[_0x5877f7(0x208)](_0x28e5ec)),AutomationFramework['setState'](_0x4e6d07,PlaywrightDriverModule[_0x5877f7(0x21e)],_0x28e5ec));}}catch(_0x35cd83){this['logger'][_0x5877f7(0x1ef)](_0x5877f7(0x210)+util[_0x5877f7(0x1fa)](_0x35cd83));}}async['onAfterDriverCreate'](_0x3b0d23){const _0x486381=a75_0x906cbd,_0x13167e={'QCwGI':'onAfterDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','rRFgF':function(_0xc17d73,_0x47d1a1){return _0xc17d73(_0x47d1a1);},'Cbwjj':_0x486381(0x1d3),'qtSlA':_0x486381(0x1f1),'ivdLh':'onAfterDriverCreate:\x20Setting\x20context\x20object','zqUYw':_0x486381(0x20f),'BTbVD':_0x486381(0x20d)};try{this[_0x486381(0x1db)]['debug'](_0x13167e['QCwGI']);const _0x20f9aa=_0x3b0d23['instance'];this[_0x486381(0x212)]=_0x13167e[_0x486381(0x22a)](getFrameworkVersion,FRAMEWORKS[_0x486381(0x21a)]);if(_0x3b0d23[_0x486381(0x1ec)]){this[_0x486381(0x1db)][_0x486381(0x1d4)](_0x13167e[_0x486381(0x1dd)]),AutomationFramework['setState'](_0x20f9aa,PlaywrightDriverModule['KEY_PAGE_OBJECT'],_0x3b0d23[_0x486381(0x1ec)]);if(_0x3b0d23[_0x486381(0x23e)]){this['logger'][_0x486381(0x1d4)](_0x13167e[_0x486381(0x1bf)]);const _0x5e8cb4=_0x3b0d23['testInfo']?.['_test']?.['id']||_0x3b0d23[_0x486381(0x23e)]?.[_0x486381(0x1d1)];AutomationFramework['setState'](_0x20f9aa,PlaywrightDriverModule[_0x486381(0x1e7)],_0x5e8cb4),await this[_0x486381(0x205)](_0x3b0d23['testInfo']);}}_0x3b0d23[_0x486381(0x22b)]&&(this[_0x486381(0x1db)][_0x486381(0x1d4)](_0x13167e[_0x486381(0x1c7)]),AutomationFramework[_0x486381(0x224)](_0x20f9aa,PlaywrightDriverModule['KEY_CONTEXT_OBJECT'],_0x3b0d23[_0x486381(0x22b)]));if(_0x3b0d23[_0x486381(0x244)]){this[_0x486381(0x1db)][_0x486381(0x1d4)](_0x13167e[_0x486381(0x1ac)]);const _0x1e22a1=global[_0x486381(0x1f4)][_0x486381(0x1f2)][_0x486381(0x238)];AutomationFramework[_0x486381(0x224)](_0x20f9aa,PlaywrightDriverModule[_0x486381(0x1a8)],_0x3b0d23[_0x486381(0x244)]),AutomationFramework[_0x486381(0x224)](_0x20f9aa,PlaywrightDriverModule[_0x486381(0x21e)],_0x1e22a1);const _0x4a7f4b={};_0x4a7f4b[_0x486381(0x1ad)]=!![];const _0x2e4a2b=Buffer[_0x486381(0x228)](JSON[_0x486381(0x25b)](_0x4a7f4b)['toString'](_0x13167e[_0x486381(0x25c)])),_0x2b8df8=await GrpcClient[_0x486381(0x1df)]()[_0x486381(0x1ea)]({'platformIndex':_0x1e22a1,'ref':_0x20f9aa['getRef'](),'userInputParams':_0x2e4a2b});helper['isFalse'](helper[_0x486381(0x1e1)]())&&AutomationFramework[_0x486381(0x224)](_0x20f9aa,PlaywrightDriverModule['KEY_CAPABILITIES'],JSON[_0x486381(0x1ed)](Buffer[_0x486381(0x228)](_0x2b8df8[_0x486381(0x1bd)](),_0x13167e[_0x486381(0x25c)])[_0x486381(0x234)]()));}}catch(_0x2532f3){this['logger'][_0x486381(0x1ef)]('Error\x20in\x20onAfterDriverCreate:\x20'+util[_0x486381(0x1fa)](_0x2532f3));}}async[a75_0x906cbd(0x1c4)](_0xb5c99){const _0x5375bc=a75_0x906cbd,_0x34cef1={'OqSmA':_0x5375bc(0x1b9),'VgPcb':_0x5375bc(0x216),'HZcMU':function(_0x572386,_0x5502dc){return _0x572386(_0x5502dc);},'PorxO':function(_0x36b815,_0x500529){return _0x36b815(_0x500529);},'yATsA':function(_0x246595,_0x85ab2a,_0x40fee4){return _0x246595(_0x85ab2a,_0x40fee4);},'BOECm':_0x5375bc(0x1ef),'sxqOz':_0x5375bc(0x1f7),'aXzgj':function(_0x36b2ce,_0x3bc6dc){return _0x36b2ce+_0x3bc6dc;},'pGUIP':_0x5375bc(0x250),'yywcT':function(_0x99910,_0x2ee0f9){return _0x99910+_0x2ee0f9;},'SriQZ':'testData\x20from\x20onAfterTest:\x20','FvGUR':_0x5375bc(0x1b1),'Ogxxo':'1.52.999','NDjLo':_0x5375bc(0x24c),'qIoQp':_0x5375bc(0x20d),'pfvAh':_0x5375bc(0x24a)};this[_0x5375bc(0x1db)][_0x5375bc(0x1d4)](_0x34cef1[_0x5375bc(0x239)]);const _0x1bb1fb=_0xb5c99[_0x5375bc(0x221)];if(!_0x1bb1fb){this[_0x5375bc(0x1db)]['debug'](_0x34cef1[_0x5375bc(0x1de)]);return;}const _0x4c01af=_0xb5c99['testInfo'],_0x4c5172=_0x4c01af['id']||_0xb5c99[_0x5375bc(0x23e)]?.['_test']?.['id']||_0xb5c99[_0x5375bc(0x23e)]?.[_0x5375bc(0x1d1)],_0xb2402b=_0x4c01af[_0x5375bc(0x1a7)],_0x4b54d7=_0x34cef1[_0x5375bc(0x1b5)](getPlaywrightStatus,_0xb2402b),_0x2a1bc3=_0x34cef1[_0x5375bc(0x1d5)](getPlaywrightSessionName,_0x4c01af),_0xc4ac4d=_0x34cef1[_0x5375bc(0x226)](nestedKeyValue,_0xb2402b,[_0x34cef1['BOECm'],_0x34cef1['sxqOz']]);this[_0x5375bc(0x1db)][_0x5375bc(0x1d4)](_0x5375bc(0x20c)+_0x4b54d7);const _0x394739=TestInfo['getTestUUID'](_0x4c5172),_0x5058f3=TestInfo[_0x5375bc(0x1e0)](_0x4c5172);this[_0x5375bc(0x1db)][_0x5375bc(0x22e)](_0x34cef1[_0x5375bc(0x1cb)](_0x34cef1[_0x5375bc(0x1bb)],_0x4c5172)),this[_0x5375bc(0x1db)][_0x5375bc(0x22e)](_0x34cef1[_0x5375bc(0x1f8)](_0x34cef1[_0x5375bc(0x202)],util[_0x5375bc(0x208)](_0x5058f3)));const _0x3c9131=AutomationFramework[_0x5375bc(0x201)](_0x1bb1fb,PlaywrightDriverModule[_0x5375bc(0x21e)])||0x0,_0x1a73a7=_0x5058f3[TestFrameworkConstants[_0x5375bc(0x235)]]||_0x34cef1[_0x5375bc(0x1d2)],_0x28615f=_0x5058f3[TestFrameworkConstants[_0x5375bc(0x220)]]||_0x34cef1[_0x5375bc(0x21b)],_0x2f4109=TestFrameworkState[_0x5375bc(0x1e9)][_0x5375bc(0x234)]()['split']('.')[0x1],_0x4d6ad6=HookState[_0x5375bc(0x245)][_0x5375bc(0x234)]()[_0x5375bc(0x1c1)]('.')[0x1],_0x12550c=_0x1bb1fb[_0x5375bc(0x22f)](),_0x257191=AutomationFramework[_0x5375bc(0x201)](_0x1bb1fb,PlaywrightDriverModule[_0x5375bc(0x1c2)],''),_0xb3945d={'provider':_0x34cef1[_0x5375bc(0x1b5)](getPlaywrightProvider,_0x257191),'frameworkName':_0x34cef1[_0x5375bc(0x1d2)],'frameworkVersion':_0x34cef1[_0x5375bc(0x217)],'frameworkSessionId':AutomationFramework[_0x5375bc(0x201)](_0x1bb1fb,PlaywrightDriverModule[_0x5375bc(0x1af)],''),'ref':_0x1bb1fb[_0x5375bc(0x1b6)](),'hubUrl':_0x257191};let _0x43a13f=AutomationFramework[_0x5375bc(0x201)](_0x1bb1fb,PlaywrightDriverModule[_0x5375bc(0x255)],{});_0x43a13f=Buffer[_0x5375bc(0x228)](JSON[_0x5375bc(0x25b)](_0x43a13f))['toString'](_0x34cef1[_0x5375bc(0x24e)]);const _0x200ca5={'hash':_0x12550c[_0x5375bc(0x243)](),'threadId':_0x12550c[_0x5375bc(0x1f5)]()[_0x5375bc(0x234)](),'processId':_0x12550c['getProcessId']()[_0x5375bc(0x234)]()},_0x2339ce={};_0x2339ce[_0x5375bc(0x22c)]=_0x3c9131,_0x2339ce['testFrameworkName']=_0x1a73a7,_0x2339ce[_0x5375bc(0x219)]=_0x28615f,_0x2339ce['testFrameworkState']=_0x2f4109,_0x2339ce[_0x5375bc(0x1aa)]=_0x4d6ad6,_0x2339ce[_0x5375bc(0x1b8)]=_0x394739,_0x2339ce['automationSession']=_0xb3945d,_0x2339ce[_0x5375bc(0x1e2)]=_0x43a13f,_0x2339ce[_0x5375bc(0x1be)]=_0x200ca5;const _0x2f1303=_0x2339ce;this[_0x5375bc(0x1db)][_0x5375bc(0x1d4)](_0x5375bc(0x248)+util[_0x5375bc(0x1fa)](_0x2f1303)),GrpcClient['getInstance']()[_0x5375bc(0x225)](_0x2f1303),this[_0x5375bc(0x1db)][_0x5375bc(0x1d4)](_0x5375bc(0x230)+_0x4c5172);if(!_0x4b54d7){this[_0x5375bc(0x1db)]['debug'](_0x34cef1['pfvAh'],_0xb2402b['status']);return;}this['logger']['debug'](_0x5375bc(0x251)+_0x4c5172),await this['markSessionStatus'](_0x1bb1fb,_0x2a1bc3,_0x4b54d7,_0xc4ac4d);}async[a75_0x906cbd(0x1c9)](_0x466ce6,_0x1cbbb8,_0x2b9ae2,_0xc4c596){const _0x75eda8=a75_0x906cbd,_0x216c6a={'EUvfu':_0x75eda8(0x1c6),'GblvJ':_0x75eda8(0x1ae),'TdsxP':'markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','ICWvp':_0x75eda8(0x24a),'rKvOK':'reason','fKXaH':_0x75eda8(0x22d),'iquHu':function(_0x5b1a9e,_0x4b91b0){return _0x5b1a9e===_0x4b91b0;},'ThjZC':'passed','XiniN':_0x75eda8(0x22e),'rzrCQ':_0x75eda8(0x1ef),'QMJqA':function(_0x180ad5,_0x284254,_0x3caf48,_0x1e7f02){return _0x180ad5(_0x284254,_0x3caf48,_0x1e7f02);},'oKMgF':_0x75eda8(0x25a),'fnjoT':'markSessionStatus:\x20Marking\x20session\x20status','QkGvW':function(_0x36f0b5,_0x442e2a,_0x4115d3){return _0x36f0b5(_0x442e2a,_0x4115d3);}};if(CLIUtils[_0x75eda8(0x1ba)](BrowserstackCLI['getInstance']()[_0x75eda8(0x254)]())){this[_0x75eda8(0x1db)][_0x75eda8(0x1d4)](_0x216c6a[_0x75eda8(0x1fd)]);return;}const _0x178ba2=_0x466ce6;if(!_0x178ba2){this[_0x75eda8(0x1db)][_0x75eda8(0x1d4)](_0x216c6a[_0x75eda8(0x259)]);return;}const _0x5a40ab=AutomationFramework[_0x75eda8(0x201)](_0x178ba2,PlaywrightDriverModule[_0x75eda8(0x240)]);if(!_0x5a40ab){this[_0x75eda8(0x1db)]['debug'](_0x216c6a[_0x75eda8(0x247)]);return;}const _0xb144d5=_0x2b9ae2;if(!_0xb144d5){this[_0x75eda8(0x1db)][_0x75eda8(0x1d4)](_0x216c6a[_0x75eda8(0x23d)],_0xb144d5);return;}_0xc4c596&&(_0x2e2aef['arguments'][_0x216c6a[_0x75eda8(0x211)]]=_0xc4c596);const _0x59ab94=(_0x1cbbb8?_0x1cbbb8:_0x216c6a[_0x75eda8(0x1f3)])+'\x20'+_0xb144d5+'\x20'+(_0xc4c596?_0x75eda8(0x21d)+_0xc4c596:''),_0x4fa580=_0x216c6a[_0x75eda8(0x1f0)](_0xb144d5,_0x216c6a[_0x75eda8(0x1dc)])?_0x216c6a[_0x75eda8(0x1fb)]:_0x216c6a['rzrCQ'];await _0x216c6a[_0x75eda8(0x204)](playwrightAnnotate,_0x5a40ab,_0x59ab94,_0x4fa580);const _0x366e87={};_0x366e87[_0x75eda8(0x1a7)]=_0xb144d5;const _0x2afa19={};_0x2afa19[_0x75eda8(0x241)]=_0x216c6a[_0x75eda8(0x1e6)],_0x2afa19[_0x75eda8(0x209)]=_0x366e87;const _0x2e2aef=_0x2afa19;PerformanceTester[_0x75eda8(0x233)](PerformanceEvents[_0x75eda8(0x1f9)]),this['logger'][_0x75eda8(0x1d4)](_0x216c6a[_0x75eda8(0x1d0)]),await _0x216c6a[_0x75eda8(0x242)](playwrightBstackJsExecutor,_0x5a40ab,_0x2e2aef),PerformanceTester['end'](PerformanceEvents['SESSION_STATUS']);}async[a75_0x906cbd(0x205)](_0x2e99ae){const _0x26b8a9=a75_0x906cbd,_0x1823ab={'lrjPZ':_0x26b8a9(0x252),'ywNZZ':'setSessionName','YpAXB':function(_0x20553b,_0x3d24e5){return _0x20553b(_0x3d24e5);},'BQCxb':function(_0xdce339,_0x4a9fab,_0x3a19d2){return _0xdce339(_0x4a9fab,_0x3a19d2);}};try{if(CLIUtils[_0x26b8a9(0x23b)](BrowserstackCLI[_0x26b8a9(0x1df)]()[_0x26b8a9(0x254)]())){this['logger']['debug'](_0x1823ab[_0x26b8a9(0x1da)]);return;}const _0x3172c7=AutomationFramework['getState'](AutomationFramework[_0x26b8a9(0x236)](),PlaywrightDriverModule['KEY_PAGE_OBJECT']),_0x4528d8={'action':_0x1823ab['ywNZZ'],'arguments':{'name':_0x1823ab['YpAXB'](getPlaywrightSessionName,_0x2e99ae)}};PerformanceTester['start'](PerformanceEvents[_0x26b8a9(0x222)]),await _0x1823ab[_0x26b8a9(0x229)](playwrightBstackJsExecutor,_0x3172c7,_0x4528d8),PerformanceTester[_0x26b8a9(0x24b)](PerformanceEvents[_0x26b8a9(0x222)]);}catch(_0xcc24bc){PerformanceTester['end'](PerformanceEvents['SESSION_NAME'],![],util[_0x26b8a9(0x1fa)](_0xcc24bc)),this['logger']['error'](_0x26b8a9(0x258)+util[_0x26b8a9(0x1fa)](_0xcc24bc));}}}PlaywrightDriverModule[a75_0x906cbd(0x1cc)]=a75_0x906cbd(0x20e),module[a75_0x906cbd(0x23c)]=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
|
-
function a76_0xda3a(){const _0x11aa7c=['../state/testFrameworkState.js','base64','sendTestFrameworkEvent','instance','format','KEY_HUB_URL','4LMpQjk','capabilities','Error\x20in\x20sending\x20CBTSession:\x20','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','frameworkVersion','registerObserver','getAllData','../TestInfo.js','266334QnNqCW','testFrameworkState','onPageCreate','uuid','jyWvr','KEY_TEST_ENDED_AT','getCurrentTestState','ENV_VAR','KEY_CAPABILITIES','../cliUtils.js','../state/hookState.js','test_deferred','../../../helpers/classLogger.js','TEST','getProcessId','KEY_TEST_FRAMEWORK_VERSION','BROWSERSTACK_TESTHUB_JWT','testFrameworkEvent','debug','wkkwt','3349156VezYhl','../framework/constants/testFrameworkConstants.js','toString','stringify','getModuleName','exports','300247VzrdmM','getRef','../framework/testFramework.js','KEY_TEST_DEFERRED','getContext','../state/automationFrameworkState.js','values','getThreadId','wSccC','getTestUUID','testhubConfig','sendTestFrameworkEvent\x20testId:\x20','KEY_SESSION_ID','2661780cbsrAO','testFrameworkName','getBuildHashedId','platformIndex','../framework/automationFramework.js','161rBZcXe','frameworkName','MODULE_NAME','../grpcClient.js','./playwrightDriverModule.js','testUuid','KEY_PLATFORM_INDEX','env','../../../helpers/testhub/constants','\x20testState:\x20','../../../helpers/helper.js','testInfo','get','getId','Error\x20in\x20sendTestFrameworkEvent:\x20','split','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','workerInfo','getCurrentHookState','util','automationSession','fjHxx','error','TestHubModule','onAllTestEvents','logger','13998663BoSATh','KEY_TEST_FRAMEWORK_NAME','POST','__workerDetails','./baseModule','5630000CMpKXs','bind','eventJson','CREATE','executionContext','MiRaK','endedAt','KoTvX','hookState','testFrameworkVersion','getState','testSessionEvent','onPageCreate\x20CBTSession\x20payload:\x20','2062685sRsuOR','forEach','matchHookRegex','getJwt','parallelIndex','sendTestFrameworkEvent\x20complete\x20for\x20testId:\x20','from','name','\x20hookState:\x20'];a76_0xda3a=function(){return _0x11aa7c;};return a76_0xda3a();}const a76_0x5adeea=a76_0x4279;(function(_0x4ebae3,_0x137c8c){const _0x5b7db5=a76_0x4279,_0x39a1d7=_0x4ebae3();while(!![]){try{const _0x4e8b87=-parseInt(_0x5b7db5(0xd1))/0x1*(-parseInt(_0x5b7db5(0xaf))/0x2)+-parseInt(_0x5b7db5(0xde))/0x3+-parseInt(_0x5b7db5(0xcb))/0x4+parseInt(_0x5b7db5(0x10f))/0x5+parseInt(_0x5b7db5(0xb7))/0x6*(-parseInt(_0x5b7db5(0xe3))/0x7)+parseInt(_0x5b7db5(0x102))/0x8+parseInt(_0x5b7db5(0xfd))/0x9;if(_0x4e8b87===_0x137c8c)break;else _0x39a1d7['push'](_0x39a1d7['shift']());}catch(_0x1abf6d){_0x39a1d7['push'](_0x39a1d7['shift']());}}}(a76_0xda3a,0x80964));const util=require(a76_0x5adeea(0xf6)),BaseModule=require(a76_0x5adeea(0x101)),{createClassLogger}=require(a76_0x5adeea(0xc3)),AutomationFramework=require(a76_0x5adeea(0xe2)),AutomationFrameworkState=require(a76_0x5adeea(0xd6)),HookState=require(a76_0x5adeea(0xc1)),TestFramework=require(a76_0x5adeea(0xd3)),TestFrameworkState=require(a76_0x5adeea(0xa9)),PlaywrightDriverModule=require(a76_0x5adeea(0xe7)),TestFrameworkConstants=require(a76_0x5adeea(0xcc)),GrpcClient=require(a76_0x5adeea(0xe6)),CLIUtils=require(a76_0x5adeea(0xc0)),TestInfo=require(a76_0x5adeea(0xb6)),testHubConstants=require(a76_0x5adeea(0xeb)),BrowserstackCLI=require('../browserstackCLI.js'),{getPlaywrightProvider}=require(a76_0x5adeea(0xed));function a76_0x4279(_0x45eb62,_0x57c8f7){const _0xda3af3=a76_0xda3a();return a76_0x4279=function(_0x427969,_0x24a8ce){_0x427969=_0x427969-0xa8;let _0x487e16=_0xda3af3[_0x427969];return _0x487e16;},a76_0x4279(_0x45eb62,_0x57c8f7);}class TestHubModule extends BaseModule{[a76_0x5adeea(0xfc)]=createClassLogger('TestHubModule');constructor(_0x386a4f){const _0x3505f0=a76_0x5adeea,_0x7faa41={};_0x7faa41[_0x3505f0(0xca)]='6|1|5|0|3|7|4|2',_0x7faa41[_0x3505f0(0x109)]=_0x3505f0(0xfa);const _0x2502b3=_0x7faa41,_0x54dac1=_0x2502b3[_0x3505f0(0xca)][_0x3505f0(0xf2)]('|');let _0x3600e2=0x0;while(!![]){switch(_0x54dac1[_0x3600e2++]){case'0':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x3505f0(0x105)],HookState['POST'],this[_0x3505f0(0xb9)][_0x3505f0(0x103)](this));continue;case'1':this[_0x3505f0(0x116)]=_0x2502b3[_0x3505f0(0x109)];continue;case'2':BrowserstackCLI['O11yHashedID']=this[_0x3505f0(0xdb)][_0x3505f0(0xe0)]();continue;case'3':Object[_0x3505f0(0xd7)](TestFrameworkState)[_0x3505f0(0x110)](_0x23c3b4=>{const _0x57f716=_0x3505f0;Object[_0x57f716(0xd7)](HookState)[_0x57f716(0x110)](_0x1b80cf=>{const _0x2abc5c=_0x57f716;TestFramework[_0x2abc5c(0xb4)](_0x23c3b4,_0x1b80cf,this[_0x2abc5c(0xfb)][_0x2abc5c(0x103)](this));});});continue;case'4':process[_0x3505f0(0xea)][testHubConstants[_0x3505f0(0xbe)]['BROWSERSTACK_TESTHUB_UUID']]=this[_0x3505f0(0xdb)][_0x3505f0(0xe0)]();continue;case'5':this[_0x3505f0(0xdb)]=_0x386a4f;continue;case'6':super();continue;case'7':process['env'][testHubConstants['ENV_VAR'][_0x3505f0(0xc7)]]=this['testhubConfig'][_0x3505f0(0x112)]();continue;}break;}}[a76_0x5adeea(0xcf)](){const _0x189c93=a76_0x5adeea;return TestHubModule[_0x189c93(0xe5)];}[a76_0x5adeea(0xfb)](_0x26f7cc){const _0x4d1359=a76_0x5adeea,_0x227e05={};_0x227e05[_0x4d1359(0xf8)]=function(_0x37ccde,_0xe8f5de){return _0x37ccde===_0xe8f5de;};const _0x3b207e=_0x227e05,_0x3e558b=_0x26f7cc[_0x4d1359(0xac)],_0x40cf80=_0x3e558b[_0x4d1359(0xbd)]();(_0x3b207e['fjHxx'](_0x40cf80,TestFrameworkState[_0x4d1359(0xc4)])||CLIUtils[_0x4d1359(0x111)](_0x40cf80[_0x4d1359(0xcd)]()[_0x4d1359(0xf2)]('.')[0x1]))&&this['sendTestFrameworkEvent'](_0x26f7cc);}async[a76_0x5adeea(0xab)](_0x5c1aa0){const _0x467ade=a76_0x5adeea,_0x25b2cd={};_0x25b2cd[_0x467ade(0xbb)]=_0x467ade(0xaa);const _0x3c64b6=_0x25b2cd;try{const _0x5b30f9=_0x5c1aa0['test']['id'],_0x1bbbc0=_0x5c1aa0['instance'],_0x260c59=_0x1bbbc0[_0x467ade(0xd5)](),_0x182679=_0x1bbbc0[_0x467ade(0xb5)]()[_0x467ade(0xef)](_0x5b30f9);this[_0x467ade(0xfc)][_0x467ade(0xc9)](_0x467ade(0xdc)+_0x5b30f9);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x9b26a9='',[TestFrameworkConstants[_0x467ade(0xc6)]]:_0x277bc4='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x27b7d7='',[TestFrameworkConstants[_0x467ade(0xbc)]]:_0x5b780b=''}=_0x182679,_0x5cd475=_0x1bbbc0['getCurrentTestState']()[_0x467ade(0xcd)]()['split']('.')[0x1],_0x1f4dfd=_0x1bbbc0[_0x467ade(0xf5)]()[_0x467ade(0xcd)]()['split']('.')[0x1],_0x4ec254=global?.[_0x467ade(0x100)]?.[_0x467ade(0xf4)]?.[_0x467ade(0x113)];;const _0x18cb6d=_0x1bbbc0[_0x467ade(0xd2)](),_0x32310b=Buffer[_0x467ade(0x115)](JSON[_0x467ade(0xce)](_0x182679))[_0x467ade(0xcd)](_0x3c64b6['jyWvr']),_0x8e03b4={'hash':_0x260c59[_0x467ade(0xf0)](),'threadId':_0x260c59[_0x467ade(0xd8)]()[_0x467ade(0xcd)](),'processId':_0x260c59[_0x467ade(0xc5)]()[_0x467ade(0xcd)]()},_0x398205={};_0x398205[_0x467ade(0xe1)]=_0x4ec254,_0x398205[_0x467ade(0xdf)]=_0x9b26a9,_0x398205[_0x467ade(0x10b)]=_0x277bc4,_0x398205[_0x467ade(0xb8)]=_0x5cd475,_0x398205[_0x467ade(0x10a)]=_0x1f4dfd,_0x398205['startedAt']=_0x27b7d7,_0x398205[_0x467ade(0x108)]=_0x5b780b,_0x398205[_0x467ade(0xba)]=_0x18cb6d,_0x398205[_0x467ade(0x104)]=_0x32310b,_0x398205[_0x467ade(0x106)]=_0x8e03b4;const _0x171142=_0x398205,_0x28a2e5=await GrpcClient['getInstance']()[_0x467ade(0xc8)](_0x171142);this[_0x467ade(0xfc)][_0x467ade(0xc9)](_0x467ade(0x114)+_0x5b30f9+_0x467ade(0xec)+_0x5cd475+_0x467ade(0xa8)+_0x1f4dfd);}catch(_0x40e353){this[_0x467ade(0xfc)]['error'](_0x467ade(0xf1)+util[_0x467ade(0xad)](_0x40e353));}}async[a76_0x5adeea(0xb9)](_0xbf2460){const _0xb3bf3=a76_0x5adeea,_0x2320af={'MiRaK':function(_0x30cf3d,_0x21fc8f){return _0x30cf3d(_0x21fc8f);},'wSccC':_0xb3bf3(0xaa)};try{if(_0xbf2460['page']){const _0x21ad45=_0xbf2460[_0xb3bf3(0xee)]['testId'];this[_0xb3bf3(0xfc)][_0xb3bf3(0xc9)](_0xb3bf3(0xb2)+_0x21ad45);const _0x6c803f=TestInfo[_0xb3bf3(0xda)](_0x21ad45),_0x5c1fc8=TestInfo['getTestDetails'](_0x21ad45),_0x9ab115=_0xbf2460[_0xb3bf3(0xac)],_0x1a0a18=AutomationFramework[_0xb3bf3(0x10c)](_0x9ab115,PlaywrightDriverModule[_0xb3bf3(0xe9)]),_0x38263f=_0x5c1fc8[TestFrameworkConstants[_0xb3bf3(0xfe)]],_0x370eb5=_0x5c1fc8[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']],_0x56d337=TestFrameworkState[_0xb3bf3(0xc4)][_0xb3bf3(0xcd)]()['split']('.')[0x1],_0xc20551=HookState[_0xb3bf3(0xff)][_0xb3bf3(0xcd)]()[_0xb3bf3(0xf2)]('.')[0x1],_0x6b4aca=_0x9ab115[_0xb3bf3(0xd5)](),_0x1b705d=AutomationFramework['getState'](_0x9ab115,PlaywrightDriverModule[_0xb3bf3(0xae)],''),_0x70d40d={'provider':_0x2320af[_0xb3bf3(0x107)](getPlaywrightProvider,_0x1b705d),'frameworkName':_0x9ab115[_0xb3bf3(0xe4)],'frameworkVersion':_0x9ab115[_0xb3bf3(0xb3)],'frameworkSessionId':AutomationFramework[_0xb3bf3(0x10c)](_0x9ab115,PlaywrightDriverModule[_0xb3bf3(0xdd)],''),'ref':_0x9ab115[_0xb3bf3(0xd2)](),'hubUrl':_0x1b705d};let _0x5513cc=AutomationFramework[_0xb3bf3(0x10c)](_0x9ab115,PlaywrightDriverModule[_0xb3bf3(0xbf)],{});_0x5513cc=Buffer[_0xb3bf3(0x115)](JSON[_0xb3bf3(0xce)](_0x5513cc))[_0xb3bf3(0xcd)](_0x2320af[_0xb3bf3(0xd9)]);const _0x54f422={'hash':_0x6b4aca[_0xb3bf3(0xf0)](),'threadId':_0x6b4aca[_0xb3bf3(0xd8)]()[_0xb3bf3(0xcd)](),'processId':_0x6b4aca['getProcessId']()[_0xb3bf3(0xcd)]()},_0x1f8ebb={};_0x1f8ebb[_0xb3bf3(0xe1)]=_0x1a0a18,_0x1f8ebb['testFrameworkName']=_0x38263f,_0x1f8ebb[_0xb3bf3(0x10b)]=_0x370eb5,_0x1f8ebb[_0xb3bf3(0xb8)]=_0x56d337,_0x1f8ebb['testHookState']=_0xc20551,_0x1f8ebb[_0xb3bf3(0xe8)]=_0x6c803f,_0x1f8ebb[_0xb3bf3(0xf7)]=_0x70d40d,_0x1f8ebb[_0xb3bf3(0xb0)]=_0x5513cc,_0x1f8ebb['executionContext']=_0x54f422;const _0x1c3232=_0x1f8ebb;this[_0xb3bf3(0xfc)][_0xb3bf3(0xc9)](_0xb3bf3(0x10e)+util[_0xb3bf3(0xad)](_0x1c3232));const _0x492b56=await GrpcClient['getInstance']()[_0xb3bf3(0x10d)](_0x1c3232);this[_0xb3bf3(0xfc)][_0xb3bf3(0xc9)](_0xb3bf3(0xf3)+_0x21ad45);}}catch(_0xce1c77){this[_0xb3bf3(0xfc)][_0xb3bf3(0xf9)](_0xb3bf3(0xb1)+util[_0xb3bf3(0xad)](_0xce1c77));}}}TestHubModule['MODULE_NAME']=a76_0x5adeea(0xfa),TestHubModule[a76_0x5adeea(0xd4)]=a76_0x5adeea(0xc2),module[a76_0x5adeea(0xd0)]=TestHubModule;
|
|
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
|
-
const a80_0x3808d7=a80_0x258c;function a80_0x258c(_0x40ecd5,_0x438db1){const _0x1f4355=a80_0x1f43();return a80_0x258c=function(_0x258c81,_0x5dae10){_0x258c81=_0x258c81-0x13a;let _0x1c55c7=_0x1f4355[_0x258c81];return _0x1c55c7;},a80_0x258c(_0x40ecd5,_0x438db1);}function a80_0x1f43(){const _0x5cb213=['Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','rEFTy','close','NDfAR','./browserstackCLI','buildHashedId','cOvGT','mkdirSync','statusCode','yudlo','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','112873uFVHGW','11759928yarCWX','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','GGJMO','uSBdu','unlinkSync','1418300zmOnts','../../helpers/classLogger.js','logger','KEY_FILE_NAME','344KuQdTi','join','getState','toObject','get','Fncjv','KEY_TEST_ATTACHMENTS','ElDgR','BuildLevel','https://','654136fZxMDy','modules','24VSFcnM','getTestDetails','TestHubModule','cudbH','./TestInfo','homedir','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','waKOz','TestLevel','finish','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','KEY_FILE_SIZE','gotMr','toFixed','uploadAttachmentsManager','1733232gssGjv','TTiVD','gvwls','message','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','Attachment\x20recevied\x20for\x20path:\x20%s','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','trackFile','trim','TkOqK','debug','fVflc','http://','error','xNrEE','KEY_FILE_LEVEL','copyFileSync','mIcAx','rmSync','size','eDYBQ','util','getInstance','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','./framework/constants/testFrameworkConstants','JWCTC','IbIVd','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','setTestDetails','11fqMnPV','force','TDmZG','exports','.browserstack','statSync','startsWith','2dWCnDi','format','testhubConfig','http','https','gUCmO','createWriteStream','Cleared\x20attachment\x20folder','qWBnC','path','xSGwn','88qsGGvX','KEY_FILE_PATH','NzEvn','82449MFBuer','rICZc','existsSync','11955IJqBAX'];a80_0x1f43=function(){return _0x5cb213;};return a80_0x1f43();}(function(_0x178d36,_0x386b4f){const _0x373f92=a80_0x258c,_0x228eee=_0x178d36();while(!![]){try{const _0x59fb80=parseInt(_0x373f92(0x19d))/0x1*(parseInt(_0x373f92(0x180))/0x2)+-parseInt(_0x373f92(0x15c))/0x3+-parseInt(_0x373f92(0x141))/0x4*(-parseInt(_0x373f92(0x191))/0x5)+-parseInt(_0x373f92(0x14d))/0x6*(parseInt(_0x373f92(0x14b))/0x7)+parseInt(_0x373f92(0x18b))/0x8*(parseInt(_0x373f92(0x18e))/0x9)+-parseInt(_0x373f92(0x13d))/0xa+-parseInt(_0x373f92(0x179))/0xb*(-parseInt(_0x373f92(0x19e))/0xc);if(_0x59fb80===_0x386b4f)break;else _0x228eee['push'](_0x228eee['shift']());}catch(_0x226cad){_0x228eee['push'](_0x228eee['shift']());}}}(a80_0x1f43,0x4aaea));const os=require('os'),fs=require('fs'),path=require(a80_0x3808d7(0x189)),util=require(a80_0x3808d7(0x171)),BrowserstackCLI=require(a80_0x3808d7(0x196)),https=require(a80_0x3808d7(0x184)),http=require(a80_0x3808d7(0x183)),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a80_0x3808d7(0x151)),TestFrameworkConstants=require(a80_0x3808d7(0x174)),{createClassLogger}=require(a80_0x3808d7(0x13e));class uploadAttachmentsManager{static [a80_0x3808d7(0x13f)]=createClassLogger(a80_0x3808d7(0x15b));static['uploadAttachments'](_0xc162d1,_0x3c583f=![]){const _0x219203=a80_0x3808d7,_0x524eda={};_0x524eda['TTiVD']=function(_0x499c19,_0x46ff75){return _0x499c19/_0x46ff75;},_0x524eda['GGJMO']=function(_0x17d97d,_0x2531e7){return _0x17d97d*_0x2531e7;},_0x524eda[_0x219203(0x195)]=function(_0x3c700f,_0x3336ca){return _0x3c700f>_0x3336ca;},_0x524eda[_0x219203(0x148)]=_0x219203(0x153),_0x524eda['waKOz']='File\x20downloaded\x20to:\x20%s',_0x524eda['IbIVd']=function(_0x255118,_0x350974){return _0x255118===_0x350974;},_0x524eda[_0x219203(0x13b)]=_0x219203(0x156),_0x524eda[_0x219203(0x15e)]='Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload',_0x524eda[_0x219203(0x18a)]=_0x219203(0x162),_0x524eda[_0x219203(0x18f)]=_0x219203(0x161),_0x524eda[_0x219203(0x19b)]=_0x219203(0x17d),_0x524eda['rEFTy']=_0x219203(0x160),_0x524eda['JWCTC']='Created\x20.browserstack\x20folder\x20at:\x20%s',_0x524eda[_0x219203(0x198)]='Created\x20folder:\x20%s',_0x524eda[_0x219203(0x188)]=_0x219203(0x19c),_0x524eda[_0x219203(0x18d)]=_0x219203(0x14a),_0x524eda[_0x219203(0x167)]=_0x219203(0x168),_0x524eda['gUCmO']=_0x219203(0x169),_0x524eda[_0x219203(0x146)]=_0x219203(0x157),_0x524eda[_0x219203(0x159)]=function(_0x2c7c1c,_0x171538){return _0x2c7c1c*_0x171538;},_0x524eda[_0x219203(0x150)]=function(_0x2192f5,_0xe04660){return _0x2192f5>_0xe04660;},_0x524eda[_0x219203(0x16d)]=_0x219203(0x173);const _0x507f72=_0x524eda;this[_0x219203(0x13f)][_0x219203(0x166)](util[_0x219203(0x181)](_0x507f72['rICZc'],_0xc162d1));const _0x35e32e=os[_0x219203(0x152)](),_0x405b07=path['join'](_0x35e32e,_0x507f72[_0x219203(0x19b)]);!fs[_0x219203(0x190)](_0x405b07)&&(this[_0x219203(0x13f)][_0x219203(0x166)](util[_0x219203(0x181)](_0x507f72[_0x219203(0x193)],_0x405b07)),fs[_0x219203(0x199)](_0x405b07),this['logger'][_0x219203(0x166)](util[_0x219203(0x181)](_0x507f72[_0x219203(0x175)],_0x405b07)));const _0x2423ee=BrowserstackCLI['getInstance']()[_0x219203(0x14c)][_0x219203(0x14f)]?.[_0x219203(0x182)]?.[_0x219203(0x144)]()?.[_0x219203(0x197)],_0x23c859=path[_0x219203(0x142)](_0x405b07,_0x2423ee);!fs['existsSync'](_0x23c859)&&(fs[_0x219203(0x199)](_0x23c859),this['logger'][_0x219203(0x166)](util[_0x219203(0x181)](_0x507f72[_0x219203(0x198)],_0x23c859)));if(_0x507f72['IbIVd'](_0xc162d1[_0x219203(0x164)](),'')){this[_0x219203(0x13f)]['debug'](util[_0x219203(0x181)](_0x507f72[_0x219203(0x188)]));return;}if(_0xc162d1[_0x219203(0x17f)](_0x507f72['NzEvn'])||_0xc162d1['startsWith'](_0x507f72['fVflc'])){const _0x10c96c=_0xc162d1[_0x219203(0x17f)](_0x507f72['NzEvn'])?https:http,_0x34698d=path['basename'](_0xc162d1),_0x25cba1=path['join'](_0x23c859,_0x34698d),_0x328254=fs[_0x219203(0x186)](_0x25cba1);_0x10c96c[_0x219203(0x145)](_0xc162d1,_0x4845b4=>{const _0x22569a=_0x219203;if(_0x507f72[_0x22569a(0x176)](_0x4845b4['statusCode'],0xc8))_0x4845b4['pipe'](_0x328254),_0x328254['on'](_0x507f72[_0x22569a(0x13b)],()=>{const _0x186632=_0x22569a;_0x328254[_0x186632(0x194)]();const _0x577a71=fs['statSync'](_0x25cba1),_0x245d4c=_0x507f72[_0x186632(0x15d)](_0x577a71[_0x186632(0x16f)],_0x507f72[_0x186632(0x13a)](0x400,0x400));if(_0x507f72[_0x186632(0x195)](_0x245d4c,0x64)){this[_0x186632(0x13f)][_0x186632(0x166)](util[_0x186632(0x181)](_0x507f72[_0x186632(0x148)],_0x245d4c[_0x186632(0x15a)](0x2))),fs['unlinkSync'](_0x25cba1);return;}this['logger'][_0x186632(0x166)](util[_0x186632(0x181)](_0x507f72[_0x186632(0x154)],_0x25cba1)),uploadAttachmentsManager[_0x186632(0x163)](_0x25cba1,_0x3c583f);});else{this[_0x22569a(0x13f)][_0x22569a(0x166)](util[_0x22569a(0x181)](_0x507f72[_0x22569a(0x15e)],_0x4845b4[_0x22569a(0x19a)])),_0x328254[_0x22569a(0x194)](),fs[_0x22569a(0x13c)](_0x25cba1);return;}})['on'](_0x507f72[_0x219203(0x185)],_0x12fa63=>{const _0x154baa=_0x219203;this[_0x154baa(0x13f)][_0x154baa(0x166)](util[_0x154baa(0x181)](_0x507f72[_0x154baa(0x18a)],_0x12fa63[_0x154baa(0x15f)])),_0x328254[_0x154baa(0x194)](),fs['unlinkSync'](_0x25cba1);return;});}else{if(!fs[_0x219203(0x190)](_0xc162d1)){this[_0x219203(0x13f)][_0x219203(0x166)](util[_0x219203(0x181)](_0x507f72[_0x219203(0x146)],_0xc162d1));return;}const _0x3fbcd4=fs[_0x219203(0x17e)](_0xc162d1),_0x2e9967=_0x507f72[_0x219203(0x15d)](_0x3fbcd4[_0x219203(0x16f)],_0x507f72[_0x219203(0x159)](0x400,0x400));if(_0x507f72[_0x219203(0x150)](_0x2e9967,0x64)){this[_0x219203(0x13f)][_0x219203(0x166)](util[_0x219203(0x181)](_0x507f72['mIcAx'],_0x2e9967['toFixed'](0x2)));return;}const _0x47f873=path['basename'](_0xc162d1),_0x275a05=path[_0x219203(0x142)](_0x23c859,_0x47f873);fs[_0x219203(0x16c)](_0xc162d1,_0x275a05),uploadAttachmentsManager[_0x219203(0x163)](_0x275a05,_0x3c583f);}}static[a80_0x3808d7(0x163)](_0xa93486,_0x83d299){const _0x4818d2=a80_0x3808d7,_0x52dd07={};_0x52dd07['TDmZG']=_0x4818d2(0x149),_0x52dd07['LDmHX']=_0x4818d2(0x155),_0x52dd07['iZVpz']=_0x4818d2(0x192),_0x52dd07['eDYBQ']=_0x4818d2(0x19f);const _0x47c483=_0x52dd07;try{const _0x4d6ddc=AutomationFramework['getTrackedInstance'](),_0x2c9a37=AutomationFramework[_0x4818d2(0x143)](_0x4d6ddc,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x3df2b8=TestInfo[_0x4818d2(0x14e)](_0x2c9a37),_0x4170e1=_0x3df2b8[TestFrameworkConstants[_0x4818d2(0x147)]]||{};_0x4170e1[_0xa93486]={[TestFrameworkConstants[_0x4818d2(0x158)]]:fs[_0x4818d2(0x17e)](_0xa93486)[_0x4818d2(0x16f)],[TestFrameworkConstants[_0x4818d2(0x140)]]:path['basename'](_0xa93486),[TestFrameworkConstants[_0x4818d2(0x18c)]]:_0xa93486,[TestFrameworkConstants[_0x4818d2(0x16b)]]:_0x83d299?_0x47c483[_0x4818d2(0x17b)]:_0x47c483['LDmHX']},_0x3df2b8[TestFrameworkConstants[_0x4818d2(0x147)]]=_0x4170e1,TestInfo[_0x4818d2(0x178)](_0x2c9a37,_0x3df2b8),this['logger'][_0x4818d2(0x166)](util[_0x4818d2(0x181)](_0x47c483['iZVpz'],_0xa93486));}catch(_0x44b62b){this[_0x4818d2(0x13f)][_0x4818d2(0x166)](util[_0x4818d2(0x181)](_0x47c483[_0x4818d2(0x170)],_0x44b62b[_0x4818d2(0x15f)]));}}static['clearAttachments'](){const _0x4be690=a80_0x3808d7,_0x5defa7={};_0x5defa7[_0x4be690(0x16a)]=_0x4be690(0x17d),_0x5defa7[_0x4be690(0x165)]=_0x4be690(0x177),_0x5defa7['SQcqH']=_0x4be690(0x187);const _0x2e5394=_0x5defa7,_0x45f10e=os['homedir'](),_0x54b66d=path[_0x4be690(0x142)](_0x45f10e,_0x2e5394[_0x4be690(0x16a)]);if(!fs[_0x4be690(0x190)](_0x54b66d))return;const _0x1f4981=BrowserstackCLI[_0x4be690(0x172)]()[_0x4be690(0x14c)]['TestHubModule']?.[_0x4be690(0x182)]?.[_0x4be690(0x144)]()?.[_0x4be690(0x197)],_0x50c5ad=_0x1f4981?path[_0x4be690(0x142)](_0x54b66d,_0x1f4981):null;if(!_0x50c5ad||!fs[_0x4be690(0x190)](_0x50c5ad)){this[_0x4be690(0x13f)][_0x4be690(0x166)](util['format'](_0x2e5394[_0x4be690(0x165)],_0x1f4981));return;}const _0x28681a={};_0x28681a['recursive']=!![],_0x28681a[_0x4be690(0x17a)]=!![],fs[_0x4be690(0x16e)](_0x50c5ad,_0x28681a),this['logger']['debug'](util[_0x4be690(0x181)](_0x2e5394['SQcqH']));}}module[a80_0x3808d7(0x17c)]=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;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a81_0x5822ca=a81_0x33f9;(function(_0x2c83b2,_0x229829){const _0x411260=a81_0x33f9,_0x57a2b9=_0x2c83b2();while(!![]){try{const _0x323499=-parseInt(_0x411260(0x1eb))/0x1*(-parseInt(_0x411260(0x1f5))/0x2)+-parseInt(_0x411260(0x20e))/0x3+-parseInt(_0x411260(0x1fa))/0x4*(-parseInt(_0x411260(0x1e8))/0x5)+-parseInt(_0x411260(0x1fb))/0x6+-parseInt(_0x411260(0x20b))/0x7*(-parseInt(_0x411260(0x1e0))/0x8)+-parseInt(_0x411260(0x1e6))/0x9*(-parseInt(_0x411260(0x1ec))/0xa)+parseInt(_0x411260(0x1e1))/0xb*(-parseInt(_0x411260(0x1de))/0xc);if(_0x323499===_0x229829)break;else _0x57a2b9['push'](_0x57a2b9['shift']());}catch(_0x3badee){_0x57a2b9['push'](_0x57a2b9['shift']());}}}(a81_0x3c7f,0x1f884));function a81_0x3c7f(){const _0x5d4944=['path','yJWVH','existsSync','modifyBrowserStackCaps','configuration','exports','handleApp','../../helpers/performance/constants','start','EVENTS','\x20doesn\x27t\x20exist','end','modifyBrowserStackW3CCaps','175JBeWGO','eOBhQ','finally','531252vuDvNh','../test-runner','isUndefined','file','proxySettings','gUczC','../../helpers/utilities','parallelsPerPlatform','1110396xzUSTt','File\x20path\x20is\x20required','32824wxTTlr','11sXiihY','getHubUrl','config','join','then','72pWmnOn','../../helpers/performance/performance-tester','272940JDycsf','platforms','UxrMo','7687TzEJtE','70010NPaGzA','cwd','length','launchBuild','index','JfRGI','getPlatformName','useW3C','Config\x20yml\x20is\x20required','18LuGOPQ','forEach','FCvYg','push','args','16veHjOR','284070FCbrmk','SDK_CLEANUP','SDK_SETUP'];a81_0x3c7f=function(){return _0x5d4944;};return a81_0x3c7f();}function a81_0x33f9(_0x5c4585,_0x1476e9){const _0x3c7fa5=a81_0x3c7f();return a81_0x33f9=function(_0x33f9ca,_0x59645f){_0x33f9ca=_0x33f9ca-0x1de;let _0x4b90ef=_0x3c7fa5[_0x33f9ca];return _0x4b90ef;},a81_0x33f9(_0x5c4585,_0x1476e9);}const fs=require('fs'),path=require(a81_0x5822ca(0x1fe)),{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),PerformanceTester=require(a81_0x5822ca(0x1e7)),PerformanceEvents=require(a81_0x5822ca(0x205))[a81_0x5822ca(0x207)],utilities=require(a81_0x5822ca(0x214)),{parallelVanillaRun}=require(a81_0x5822ca(0x20f)),TestHubHandler=require('../../helpers/testhub/testhubHandler');async function run(_0x39eeee,_0x52128b,_0x121844){const _0x6c3e39=a81_0x5822ca,_0x26cb12={'eOBhQ':'vanilla','gUczC':function(_0x1fbc30,_0x1a4f48){return _0x1fbc30(_0x1a4f48);},'AEJhn':_0x6c3e39(0x1df),'yJWVH':_0x6c3e39(0x1f4),'JfRGI':function(_0x1d133a,_0x9b445f){return _0x1d133a>_0x9b445f;},'UxrMo':function(_0x10d9c1,_0x1b2b97){return _0x10d9c1>_0x1b2b97;},'FCvYg':function(_0x834792,_0x160832){return _0x834792*_0x160832;},'Byrwx':function(_0x56ffe0,_0x534c74,_0x4dae34){return _0x56ffe0(_0x534c74,_0x4dae34);}};await _0x121844['initialize'](_0x39eeee),await helper[_0x6c3e39(0x204)](_0x121844['config']);const _0x521fe5=[];if(helper[_0x6c3e39(0x210)](_0x39eeee['_'][0x1]))throw _0x26cb12[_0x6c3e39(0x213)](Error,_0x26cb12['AEJhn']);const _0x2b0f3c=path[_0x6c3e39(0x1e4)](process[_0x6c3e39(0x1ed)](),_0x39eeee['_'][0x1]);if(!fs[_0x6c3e39(0x200)](_0x2b0f3c))throw _0x26cb12[_0x6c3e39(0x213)](Error,'File\x20'+_0x39eeee['_'][0x1]+_0x6c3e39(0x208));if(!_0x121844['config'])throw _0x26cb12[_0x6c3e39(0x213)](Error,_0x26cb12[_0x6c3e39(0x1ff)]);const _0x20ceab=helper[_0x6c3e39(0x1f3)](_0x121844[_0x6c3e39(0x1e3)]);_0x121844[_0x6c3e39(0x1e3)]['platforms']&&_0x26cb12[_0x6c3e39(0x1f1)](_0x121844[_0x6c3e39(0x1e3)]['platforms'][_0x6c3e39(0x1ee)],0x0)&&_0x121844[_0x6c3e39(0x1e3)]['platforms']['forEach']((_0x35bdf7,_0xc39efd)=>{const _0x4d927a=_0x6c3e39;_0x20ceab?_0x521fe5[_0x4d927a(0x1f8)](helper[_0x4d927a(0x20a)](_0x121844[_0x4d927a(0x1e3)],_0x26cb12['eOBhQ'],_0xc39efd)):_0x521fe5[_0x4d927a(0x1f8)](helper[_0x4d927a(0x201)](_0x121844['config'],_0x26cb12[_0x4d927a(0x20c)],_0xc39efd));});let _0x1affdb,_0x1973b7;const _0x235dbb=[];if(_0x26cb12[_0x6c3e39(0x1ea)](_0x521fe5[_0x6c3e39(0x1ee)],0x0))_0x521fe5[_0x6c3e39(0x1f6)]((_0x25d06d,_0x6ff27d)=>{const _0x4690ee=_0x6c3e39,_0x77cd75={};_0x77cd75[_0x4690ee(0x1f0)]=_0x6ff27d,_0x1affdb={'server':helper[_0x4690ee(0x1e2)](_0x121844[_0x4690ee(0x1e3)]),'proxySettings':_0x121844[_0x4690ee(0x1e3)][_0x4690ee(0x212)],'platform':helper[_0x4690ee(0x1f2)](_0x25d06d),'platformCaps':Object['assign'](_0x77cd75,_0x121844[_0x4690ee(0x1e3)][_0x4690ee(0x1e9)][_0x6ff27d])};const _0x2f1238={'capability':_0x25d06d,..._0x1affdb};_0x2f1238[_0x4690ee(0x211)]=_0x2b0f3c,_0x2f1238[_0x4690ee(0x1f9)]=_0x52128b;const _0x793070={};_0x793070[_0x4690ee(0x202)]=_0x2f1238,_0x1973b7=_0x793070,_0x235dbb[_0x4690ee(0x1f8)](_0x1973b7);});else{let _0x385e74;_0x20ceab?_0x385e74=helper[_0x6c3e39(0x20a)](_0x121844['config'],_0x26cb12['eOBhQ'],0x0):_0x385e74=helper[_0x6c3e39(0x201)](_0x121844[_0x6c3e39(0x1e3)],_0x26cb12['eOBhQ'],0x0);_0x1affdb={'server':helper[_0x6c3e39(0x1e2)](_0x121844[_0x6c3e39(0x1e3)]),'proxySettings':_0x121844[_0x6c3e39(0x1e3)][_0x6c3e39(0x212)]};const _0x40e095={'capability':_0x385e74,..._0x1affdb};_0x40e095[_0x6c3e39(0x211)]=_0x2b0f3c,_0x40e095[_0x6c3e39(0x1f9)]=_0x52128b;const _0x4fca05={};_0x4fca05['configuration']=_0x40e095,_0x1973b7=_0x4fca05,_0x235dbb[_0x6c3e39(0x1f8)](_0x1973b7);}const _0x2c5b02=await TestHubHandler[_0x6c3e39(0x1ef)](_0x26cb12[_0x6c3e39(0x20c)],_0x121844),_0x22096a=_0x26cb12[_0x6c3e39(0x1f7)](_0x121844[_0x6c3e39(0x1e3)][_0x6c3e39(0x1e9)]['length']||0x1,_0x121844[_0x6c3e39(0x1e3)][_0x6c3e39(0x215)]||0x1);PerformanceTester[_0x6c3e39(0x209)](PerformanceEvents[_0x6c3e39(0x1fd)]),_0x26cb12['Byrwx'](parallelVanillaRun,_0x235dbb,_0x22096a)[_0x6c3e39(0x1e5)](_0x49ba08=>{})[_0x6c3e39(0x20d)](async()=>{const _0x572cd2=_0x6c3e39;PerformanceTester[_0x572cd2(0x206)](PerformanceEvents[_0x572cd2(0x1fc)]),await utilities['finalExecution'](_0x121844);});}module[a81_0x5822ca(0x203)]=run;
|