browserstack-node-sdk 1.42.2 → 1.42.4
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/cucumber-sessionDetails.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/playwright-patcher.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/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a70_0x33b2(){const _0x581de4=['getFrameworkName','696130PLWnrz','frameworkName','2307976uzwOAG','toLocaleString','../state/automationFrameworkState','iGviy','setState','5|4|3|1|2|0','347293RbxMmf','frameworkVersion','exports','168xmdwWk','getState','7WmaSMt','2178452dbSiux','createdAt','split','state','13619754tqhzHg','2771562cUlxUJ','5367EGwVnL','./trackedInstance','lastState'];a70_0x33b2=function(){return _0x581de4;};return a70_0x33b2();}const a70_0x5bea04=a70_0x28bb;function a70_0x28bb(_0x13f0c6,_0x4aa2f6){const _0x33b263=a70_0x33b2();return a70_0x28bb=function(_0x28bb14,_0x57ba2f){_0x28bb14=_0x28bb14-0xff;let _0x1f70b9=_0x33b263[_0x28bb14];return _0x1f70b9;},a70_0x28bb(_0x13f0c6,_0x4aa2f6);}(function(_0x2cdbdd,_0x27a122){const _0x2cf2cb=a70_0x28bb,_0x3405c6=_0x2cdbdd();while(!![]){try{const _0xddb1dc=parseInt(_0x2cf2cb(0x103))/0x1+parseInt(_0x2cf2cb(0x106))/0x2*(-parseInt(_0x2cf2cb(0x10f))/0x3)+-parseInt(_0x2cf2cb(0x109))/0x4+-parseInt(_0x2cf2cb(0x113))/0x5+parseInt(_0x2cf2cb(0x10e))/0x6*(-parseInt(_0x2cf2cb(0x108))/0x7)+-parseInt(_0x2cf2cb(0x115))/0x8+parseInt(_0x2cf2cb(0x10d))/0x9;if(_0xddb1dc===_0x27a122)break;else _0x3405c6['push'](_0x3405c6['shift']());}catch(_0x44d94b){_0x3405c6['push'](_0x3405c6['shift']());}}}(a70_0x33b2,0x4365c));const AutomationFrameworkState=require(a70_0x5bea04(0xff)),TrackedInstance=require(a70_0x5bea04(0x110)),now=new Date();class AutomationFrameworkInstance extends TrackedInstance{constructor(_0x11ae5a,_0x1fd483,_0x3004c2,_0x4e2c93){const _0x29182e=a70_0x5bea04,_0xc173c8={};_0xc173c8['iGviy']=_0x29182e(0x102);const _0x695404=_0xc173c8,_0x49029d=_0x695404[_0x29182e(0x100)][_0x29182e(0x10b)]('|');let _0x38cfce=0x0;while(!![]){switch(_0x49029d[_0x38cfce++]){case'0':this[_0x29182e(0x10a)]=now[_0x29182e(0x116)]();continue;case'1':this[_0x29182e(0x10c)]=_0x4e2c93;continue;case'2':this[_0x29182e(0x111)]=AutomationFrameworkState['NONE'];continue;case'3':this['frameworkVersion']=_0x3004c2;continue;case'4':this[_0x29182e(0x114)]=_0x1fd483;continue;case'5':super(_0x11ae5a);continue;}break;}}[a70_0x5bea04(0x112)](){const _0x11e825=a70_0x5bea04;return this[_0x11e825(0x114)];}['getFrameworkVersion'](){const _0x6da8fa=a70_0x5bea04;return this[_0x6da8fa(0x104)];}[a70_0x5bea04(0x107)](){const _0x4ea1d5=a70_0x5bea04;return this[_0x4ea1d5(0x10c)];}[a70_0x5bea04(0x101)](_0x5d31cc){const _0x93e698=a70_0x5bea04;this[_0x93e698(0x111)]=this['state'],this[_0x93e698(0x10c)]=_0x5d31cc;}}module[a70_0x5bea04(0x105)]=AutomationFrameworkInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x4a6554=a71_0x3e9a;function a71_0x3e9a(_0x188ce1,_0x2dad9c){const _0x33dd43=a71_0x33dd();return a71_0x3e9a=function(_0x3e9a24,_0x255fac){_0x3e9a24=_0x3e9a24-0x82;let _0x355420=_0x33dd43[_0x3e9a24];return _0x355420;},a71_0x3e9a(_0x188ce1,_0x2dad9c);}(function(_0x4fb3ff,_0x406842){const _0x153756=a71_0x3e9a,_0x3a8d6c=_0x4fb3ff();while(!![]){try{const _0x3f45bf=-parseInt(_0x153756(0x99))/0x1*(-parseInt(_0x153756(0xa1))/0x2)+parseInt(_0x153756(0x94))/0x3+-parseInt(_0x153756(0xa2))/0x4+-parseInt(_0x153756(0x87))/0x5+parseInt(_0x153756(0x98))/0x6*(parseInt(_0x153756(0x8c))/0x7)+parseInt(_0x153756(0x92))/0x8*(parseInt(_0x153756(0x91))/0x9)+-parseInt(_0x153756(0x8a))/0xa;if(_0x3f45bf===_0x406842)break;else _0x3a8d6c['push'](_0x3a8d6c['shift']());}catch(_0x45fde8){_0x3a8d6c['push'](_0x3a8d6c['shift']());}}}(a71_0x33dd,0xda7a1));function a71_0x33dd(){const _0x4b51e8=['gHPhr','getCreatedAt','setLastTestState','5238MbTUGx','5043320LZfzJK','lastTestState','lastHookState','5|6|4|1|2|3|7|0','./trackedContext','../state/testFrameworkState','split','8826355JUXjPm','TrackedInstance','../state/hookState','4448230XwfVCP','../../../helpers/classLogger','79303poECQB','./trackedInstance','getCurrentHookState','testFrameworks','getLastHookState','1107RnKcpx','54904MLMvdg','currentHookState','4871844qpLPlw','testFrameworksVersions','currentTestState','NONE','582LdzBnh','305GBxkdC','toLocaleString','createdAt','setCurrentTestState','setLastHookState'];a71_0x33dd=function(){return _0x4b51e8;};return a71_0x33dd();}const {createClassLogger}=require(a71_0x4a6554(0x8b)),logger=createClassLogger(a71_0x4a6554(0x88)),HookState=require(a71_0x4a6554(0x89)),TestFrameworkState=require(a71_0x4a6554(0x85)),TrackedContext=require(a71_0x4a6554(0x84)),TrackedInstance=require(a71_0x4a6554(0x8d)),now=new Date();class TestFrameworkInstance extends TrackedInstance{constructor(_0x52cdea,_0x44c550,_0x36d1ca,_0x2557cc,_0x4449f2){const _0x17b5ad=a71_0x4a6554,_0x1515f2={};_0x1515f2['gHPhr']=_0x17b5ad(0x83);const _0x21c63d=_0x1515f2,_0x4c6454=_0x21c63d[_0x17b5ad(0x9e)][_0x17b5ad(0x86)]('|');let _0x247389=0x0;while(!![]){switch(_0x4c6454[_0x247389++]){case'0':this[_0x17b5ad(0x9b)]=now[_0x17b5ad(0x9a)]();continue;case'1':this[_0x17b5ad(0x96)]=_0x2557cc;continue;case'2':this[_0x17b5ad(0x93)]=_0x4449f2;continue;case'3':this['lastTestState']=TestFrameworkState[_0x17b5ad(0x97)];continue;case'4':this[_0x17b5ad(0x95)]=_0x36d1ca;continue;case'5':super(_0x52cdea);continue;case'6':this[_0x17b5ad(0x8f)]=_0x44c550;continue;case'7':this[_0x17b5ad(0x82)]=HookState[_0x17b5ad(0x97)];continue;}break;}}['getCurrentTestState'](){const _0x10cfaa=a71_0x4a6554;return this[_0x10cfaa(0x96)];}[a71_0x4a6554(0x9c)](_0x2ca29c){const _0x3c177e=a71_0x4a6554;this[_0x3c177e(0xa0)](this[_0x3c177e(0x96)]),this[_0x3c177e(0x96)]=_0x2ca29c;}[a71_0x4a6554(0x8e)](){const _0x45f12a=a71_0x4a6554;return this[_0x45f12a(0x93)];}['setCurrentHookState'](_0x2e6aa2){const _0x1fda5b=a71_0x4a6554;this['setLastHookState'](this[_0x1fda5b(0x93)]),this[_0x1fda5b(0x93)]=_0x2e6aa2;}['getLastTestState'](){return this['lastTestState'];}['setLastTestState'](_0x243cf6){const _0x46254b=a71_0x4a6554;this[_0x46254b(0xa3)]=_0x243cf6;}[a71_0x4a6554(0x90)](){return this['lastHookState'];}[a71_0x4a6554(0x9d)](_0x51147c){this['lastHookState']=_0x51147c;}[a71_0x4a6554(0x9f)](){const _0x327f79=a71_0x4a6554;return this[_0x327f79(0x9b)];}}module['exports']=TestFrameworkInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a72_0xe67d(_0x4bcd17,_0x2c153b){const _0x237f27=a72_0x237f();return a72_0xe67d=function(_0xe67d18,_0x4f4fba){_0xe67d18=_0xe67d18-0xa3;let _0x3afdb2=_0x237f27[_0xe67d18];return _0x3afdb2;},a72_0xe67d(_0x4bcd17,_0x2c153b);}const a72_0x5e5456=a72_0xe67d;(function(_0x48a0ce,_0x496380){const _0x27e2be=a72_0xe67d,_0x1eeea0=_0x48a0ce();while(!![]){try{const _0x439222=-parseInt(_0x27e2be(0xab))/0x1*(parseInt(_0x27e2be(0xb2))/0x2)+parseInt(_0x27e2be(0xb1))/0x3*(parseInt(_0x27e2be(0xa7))/0x4)+parseInt(_0x27e2be(0xaa))/0x5*(parseInt(_0x27e2be(0xa6))/0x6)+-parseInt(_0x27e2be(0xac))/0x7*(parseInt(_0x27e2be(0xae))/0x8)+parseInt(_0x27e2be(0xaf))/0x9+parseInt(_0x27e2be(0xb5))/0xa*(parseInt(_0x27e2be(0xb3))/0xb)+-parseInt(_0x27e2be(0xad))/0xc;if(_0x439222===_0x496380)break;else _0x1eeea0['push'](_0x1eeea0['shift']());}catch(_0x338fbe){_0x1eeea0['push'](_0x1eeea0['shift']());}}}(a72_0x237f,0x7f041));const {createClassLogger}=require('../../../helpers/classLogger'),logger=createClassLogger('TrackedContext');function a72_0x237f(){const _0x40a577=['215090rlPnaV','11imLkwm','processId','9111980ciZzvJ','exports','getProcessId','type','6NKPprR','216BfyLVn','getType','threadId','2160310RuyzPR','7VSLqlZ','14YYOxNv','10021056Pgtasb','282712BdxIFe','5678748ggzeLo','getThreadId','11367HAzjTd'];a72_0x237f=function(){return _0x40a577;};return a72_0x237f();}class TrackedContext{constructor(_0x304646,_0x49ee52,_0x167313,_0x562fbd){const _0x1fc55d=a72_0xe67d;this['id']=_0x304646,this[_0x1fc55d(0xa9)]=_0x49ee52,this[_0x1fc55d(0xb4)]=_0x167313,this[_0x1fc55d(0xa5)]=_0x562fbd;}[a72_0x5e5456(0xb0)](){const _0x48215b=a72_0x5e5456;return this[_0x48215b(0xa9)];}[a72_0x5e5456(0xa4)](){const _0x5568b3=a72_0x5e5456;return this[_0x5568b3(0xb4)];}['getId'](){return this['id'];}[a72_0x5e5456(0xa8)](){const _0x5a4b37=a72_0x5e5456;return this[_0x5a4b37(0xa5)];}}module[a72_0x5e5456(0xa3)]=TrackedContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a73_0x22879e=a73_0x586a;(function(_0x3dbc54,_0x57eb8f){const _0x912b9b=a73_0x586a,_0x4aa16d=_0x3dbc54();while(!![]){try{const _0x4c9333=parseInt(_0x912b9b(0x138))/0x1*(-parseInt(_0x912b9b(0x12e))/0x2)+parseInt(_0x912b9b(0x122))/0x3+parseInt(_0x912b9b(0x133))/0x4*(parseInt(_0x912b9b(0x131))/0x5)+-parseInt(_0x912b9b(0x13b))/0x6+parseInt(_0x912b9b(0x123))/0x7+-parseInt(_0x912b9b(0x121))/0x8*(-parseInt(_0x912b9b(0x135))/0x9)+-parseInt(_0x912b9b(0x11e))/0xa;if(_0x4c9333===_0x57eb8f)break;else _0x4aa16d['push'](_0x4aa16d['shift']());}catch(_0x77e4c7){_0x4aa16d['push'](_0x4aa16d['shift']());}}}(a73_0x158f,0x2bb1c));function a73_0x158f(){const _0x23e779=['KEY_IS_BROWSERSTACK_AUTOMATION_SESSION','exports','227823vxrGYX','addMultipleEntries','./trackedContext','1332186CxKZTF','getData','data','createHash','crypto','PSgMS','get','updateMultipleEntries','1448700CRMDyc','NccGI','keys','8EywkLj','180408xHyOlT','2139900zEmsRr','xmTBD','forEach','getContext','sha256','updateData','getId','context','isBrowserstackAutomationSession','set','entries','2yeYRmB','worker_threads','update','5jTYcrc','hex','1148196xEDQWS','pid','1087299iLKvGB'];a73_0x158f=function(){return _0x23e779;};return a73_0x158f();}const TrackedContext=require(a73_0x22879e(0x13a)),crypto=require(a73_0x22879e(0x11a)),{threadId}=require(a73_0x22879e(0x12f));function a73_0x586a(_0x1243b1,_0x51f7a7){const _0x158ffd=a73_0x158f();return a73_0x586a=function(_0x586a45,_0x5474e4){_0x586a45=_0x586a45-0x117;let _0xeb743e=_0x158ffd[_0x586a45];return _0xeb743e;},a73_0x586a(_0x1243b1,_0x51f7a7);}class TrackedInstance{static [a73_0x22879e(0x136)]=a73_0x22879e(0x12b);constructor(_0x5ba714){const _0x1ed03b=a73_0x22879e;this[_0x1ed03b(0x12a)]=_0x5ba714,this[_0x1ed03b(0x118)]=new Map();}['getRef'](){const _0x3ac7b8=a73_0x22879e;return this[_0x3ac7b8(0x12a)][_0x3ac7b8(0x129)]();}[a73_0x22879e(0x126)](){const _0x928ba9=a73_0x22879e;return this[_0x928ba9(0x12a)];}['getAllData'](){return this['data'];}[a73_0x22879e(0x11d)](_0x4395ef){const _0x42fb52=a73_0x22879e;Object[_0x42fb52(0x120)](_0x4395ef)[_0x42fb52(0x125)](_0x307bd5=>{const _0x1ede15=_0x42fb52;this[_0x1ede15(0x118)][_0x1ede15(0x12c)](_0x307bd5,_0x4395ef[_0x307bd5]);});}[a73_0x22879e(0x139)](_0x41668b){const _0x1bef30=a73_0x22879e;Object[_0x1bef30(0x12d)](_0x41668b)[_0x1bef30(0x125)](([_0x49244f,_0xbcd4ad])=>{const _0x42d620=_0x1bef30,_0x41d86a=this['data'][_0x42d620(0x11c)](_0x49244f)||{},_0x2ee972={..._0x41d86a,..._0xbcd4ad},_0x4374f4=_0x2ee972;this['data'][_0x42d620(0x12c)](_0x49244f,_0x4374f4);});}[a73_0x22879e(0x117)](_0x5d2de3){return this['data']['get'](_0x5d2de3);}[a73_0x22879e(0x128)](_0x4d9186,_0x34563b){const _0x3e631d=a73_0x22879e;this[_0x3e631d(0x118)][_0x3e631d(0x12c)](_0x4d9186,_0x34563b);}static['createContext'](_0x547cb0){const _0x14a1ef=a73_0x22879e,_0x2db1d8={};_0x2db1d8['NccGI']=_0x14a1ef(0x127),_0x2db1d8[_0x14a1ef(0x124)]=_0x14a1ef(0x132),_0x2db1d8[_0x14a1ef(0x11b)]=function(_0x3a7b22,_0x3b8947){return _0x3a7b22||_0x3b8947;};const _0xbbdb85=_0x2db1d8;return new TrackedContext(crypto[_0x14a1ef(0x119)](_0xbbdb85[_0x14a1ef(0x11f)])[_0x14a1ef(0x130)](_0x547cb0)['digest'](_0xbbdb85[_0x14a1ef(0x124)]),_0xbbdb85['PSgMS'](threadId,0x0),process[_0x14a1ef(0x134)],typeof _0x547cb0);}}module[a73_0x22879e(0x137)]=TrackedInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x4a73dc=a74_0x3e21;(function(_0x435fbf,_0x524eba){const _0x29b85b=a74_0x3e21,_0x598f19=_0x435fbf();while(!![]){try{const _0x34b3bf=parseInt(_0x29b85b(0x204))/0x1*(-parseInt(_0x29b85b(0x1c4))/0x2)+parseInt(_0x29b85b(0x1ed))/0x3+parseInt(_0x29b85b(0x1cb))/0x4*(-parseInt(_0x29b85b(0x1c1))/0x5)+parseInt(_0x29b85b(0x1f0))/0x6*(-parseInt(_0x29b85b(0x20c))/0x7)+-parseInt(_0x29b85b(0x1fb))/0x8*(-parseInt(_0x29b85b(0x1e2))/0x9)+parseInt(_0x29b85b(0x1e6))/0xa+parseInt(_0x29b85b(0x20f))/0xb*(-parseInt(_0x29b85b(0x1d3))/0xc);if(_0x34b3bf===_0x524eba)break;else _0x598f19['push'](_0x598f19['shift']());}catch(_0xff6e11){_0x598f19['push'](_0x598f19['shift']());}}}(a74_0x5869,0x4b3e7));const BaseModule=require(a74_0x4a73dc(0x205)),{createClassLogger}=require(a74_0x4a73dc(0x1f5)),CLIUtils=require('../cliUtils'),AutomationFramework=require(a74_0x4a73dc(0x1c7)),AutomationFrameworkState=require('../state/automationFrameworkState'),HookState=require(a74_0x4a73dc(0x1c3)),GrpcClient=require(a74_0x4a73dc(0x1d1)),scripts=require(a74_0x4a73dc(0x1d8)),logger=createClassLogger(a74_0x4a73dc(0x1d9)),PerformanceTester=require(a74_0x4a73dc(0x20e)),{EVENTS}=require(a74_0x4a73dc(0x21a));class AccessibilityModule extends BaseModule{static [a74_0x4a73dc(0x202)]=AccessibilityModule[a74_0x4a73dc(0x1df)];constructor(_0xb7f78b){const _0x5cafa6=a74_0x4a73dc,_0x541831={};_0x541831[_0x5cafa6(0x1f2)]=_0x5cafa6(0x1d0);const _0x2fe4f1=_0x541831,_0x2ba33f=_0x2fe4f1[_0x5cafa6(0x1f2)]['split']('|');let _0x52222c=0x0;while(!![]){switch(_0x2ba33f[_0x52222c++]){case'0':this[_0x5cafa6(0x1d5)]=new Map();continue;case'1':this[_0x5cafa6(0x1f1)]=new Map();continue;case'2':AutomationFramework[_0x5cafa6(0x217)](AutomationFrameworkState[_0x5cafa6(0x20b)],HookState[_0x5cafa6(0x212)],this[_0x5cafa6(0x1c2)]['bind'](this));continue;case'3':super();continue;case'4':AutomationFramework[_0x5cafa6(0x217)](AutomationFrameworkState[_0x5cafa6(0x1c8)],HookState[_0x5cafa6(0x212)],this[_0x5cafa6(0x1d6)][_0x5cafa6(0x20a)](this));continue;case'5':this['setAccessibilityToken'](_0xb7f78b[_0x5cafa6(0x1d7)]()[_0x5cafa6(0x1e0)]());continue;case'6':this[_0x5cafa6(0x1d4)]=![];continue;case'7':this[_0x5cafa6(0x1f8)]=[];continue;case'8':AutomationFramework[_0x5cafa6(0x217)](AutomationFrameworkState[_0x5cafa6(0x1cd)],HookState[_0x5cafa6(0x212)],this[_0x5cafa6(0x216)][_0x5cafa6(0x20a)](this));continue;case'9':this['isEnabled']=!![];continue;case'10':this[_0x5cafa6(0x211)]=_0xb7f78b[_0x5cafa6(0x213)]();continue;}break;}}['isEnabled'](){return this['isEnabled'];}['getModuleName'](){const _0x1a9ed8=a74_0x4a73dc;return AccessibilityModule[_0x1a9ed8(0x202)];}[a74_0x4a73dc(0x21b)](){const _0x9b7605=a74_0x4a73dc;return this[_0x9b7605(0x1f1)][_0x9b7605(0x1e5)](CLIUtils[_0x9b7605(0x208)](),![]);}[a74_0x4a73dc(0x1e8)](){const _0x1803a9=a74_0x4a73dc;return this[_0x1803a9(0x1d5)]['get'](CLIUtils[_0x1803a9(0x208)](),![]);}[a74_0x4a73dc(0x1f4)](_0x20a1a4){const _0x2fa991=a74_0x4a73dc;this['LOG_DISABLED_SHOWN'][_0x2fa991(0x1ee)](CLIUtils[_0x2fa991(0x208)](),_0x20a1a4);}async[a74_0x4a73dc(0x216)](_0x179695){const _0x570fee=a74_0x4a73dc;try{PerformanceTester[_0x570fee(0x1c6)](EVENTS[_0x570fee(0x1e4)]);const _0x409f40=await GrpcClient[_0x570fee(0x1da)]()['getAccessibilityConfig'](_0x179695);_0x409f40&&_0x409f40[_0x570fee(0x1ca)]()&&_0x409f40[_0x570fee(0x1ca)]()[_0x570fee(0x1dc)]()&&(global[_0x570fee(0x1f9)]=!![],process[_0x570fee(0x1ff)][_0x570fee(0x218)]=!![],this[_0x570fee(0x1f3)](_0x409f40,_0x179695)),PerformanceTester[_0x570fee(0x206)](EVENTS[_0x570fee(0x1e4)]);}catch(_0x28db35){PerformanceTester[_0x570fee(0x206)](EVENTS[_0x570fee(0x1e4)],![],_0x28db35[_0x570fee(0x1e1)]),logger[_0x570fee(0x207)](_0x570fee(0x1fa)+(_0x28db35[_0x570fee(0x200)]||_0x28db35[_0x570fee(0x1e1)]));}}[a74_0x4a73dc(0x1c5)](){const _0x2c43ea=a74_0x4a73dc;return this[_0x2c43ea(0x1f8)][_0x2c43ea(0x1e7)](_0x2171c1=>_0x2171c1[_0x2c43ea(0x1f7)]()==='goog:chromeOptions')?.[_0x2c43ea(0x209)]()||'';}async[a74_0x4a73dc(0x1f3)](_0x45315d,_0x4dd65f){const _0x36dcea=a74_0x4a73dc,_0x3f1444=_0x45315d['getAccessibility']()[_0x36dcea(0x1d7)](),_0x198fc8=_0x3f1444['getScriptsList'](),_0x2a1c17=_0x3f1444[_0x36dcea(0x203)]()?.['getCommandsList']();scripts[_0x36dcea(0x1ec)](_0x198fc8,_0x2a1c17),scripts[_0x36dcea(0x1fc)]();const _0x2eb0f1=_0x3f1444[_0x36dcea(0x1e0)]();this[_0x36dcea(0x1f8)]=_0x3f1444['getCapabilitiesList'](),await this[_0x36dcea(0x1e3)](_0x2eb0f1,_0x4dd65f[_0x36dcea(0x1f6)]);}async[a74_0x4a73dc(0x1e3)](_0x272391,_0x4169ca={}){const _0x118ad6=a74_0x4a73dc,_0x1f4fd3={};_0x1f4fd3[_0x118ad6(0x1db)]=function(_0x2e5770,_0x3587dc){return _0x2e5770===_0x3587dc;},_0x1f4fd3['zJHSw']=_0x118ad6(0x1ce),_0x1f4fd3[_0x118ad6(0x219)]=_0x118ad6(0x1e9),_0x1f4fd3[_0x118ad6(0x1de)]=function(_0x2392b0,_0x1d333d){return _0x2392b0===_0x1d333d;},_0x1f4fd3['OsReW']=_0x118ad6(0x1d2),_0x1f4fd3[_0x118ad6(0x215)]='browserstack.accessibilityOptions.wcagVersion',_0x1f4fd3[_0x118ad6(0x1dd)]=_0x118ad6(0x1eb),_0x1f4fd3[_0x118ad6(0x1c9)]=_0x118ad6(0x201),_0x1f4fd3[_0x118ad6(0x1cf)]=function(_0x360b76,_0x109aad){return _0x360b76===_0x109aad;},_0x1f4fd3[_0x118ad6(0x1ea)]='scannerProcessingTimeout',_0x1f4fd3[_0x118ad6(0x20d)]=_0x118ad6(0x210);const _0x36da47=_0x1f4fd3;for(const _0x32960f of _0x272391){logger[_0x118ad6(0x1cc)](_0x118ad6(0x214)+_0x32960f['getName']()+_0x118ad6(0x1ef)+_0x32960f[_0x118ad6(0x209)]());if(_0x36da47[_0x118ad6(0x1db)](_0x32960f[_0x118ad6(0x1f7)](),_0x36da47[_0x118ad6(0x1fe)]))process[_0x118ad6(0x1ff)]['BS_A11Y_JWT']=_0x32960f[_0x118ad6(0x209)](),_0x4169ca[_0x36da47[_0x118ad6(0x219)]]=_0x32960f['getValue']();else{if(_0x36da47[_0x118ad6(0x1de)](_0x32960f['getName'](),_0x36da47['OsReW']))_0x4169ca[_0x36da47[_0x118ad6(0x215)]]=_0x32960f['getValue']();else{if(_0x36da47[_0x118ad6(0x1db)](_0x32960f['getName'](),_0x36da47[_0x118ad6(0x1dd)]))_0x4169ca[_0x36da47[_0x118ad6(0x1c9)]]=_0x32960f[_0x118ad6(0x209)]();else _0x36da47[_0x118ad6(0x1cf)](_0x32960f['getName'](),_0x36da47['EwBnh'])&&(_0x4169ca[_0x36da47[_0x118ad6(0x20d)]]=_0x32960f[_0x118ad6(0x209)]());}}}}[a74_0x4a73dc(0x1c2)](_0x59bda4){const _0x351c26=a74_0x4a73dc;logger[_0x351c26(0x1cc)](_0x351c26(0x1fd)+_0x59bda4);}[a74_0x4a73dc(0x1d6)](_0x3c03a6){const _0x3d07a8=a74_0x4a73dc;logger[_0x3d07a8(0x1cc)]('onBeforeExecute:\x20event='+_0x3c03a6);}}function a74_0x5869(){const _0x264baa=['getCurrentInstanceName','getValue','bind','QUIT','2569lYPpsj','doYjU','../../../helpers/performance/performance-tester.js','7535prLQkM','browserstack.accessibilityOptions.scannerProcessingTimeout','accessibilityConfig','PRE','toObject','name:\x20','HMXAc','onBeforeTest','registerObserver','BROWSERSTACK_TEST_ACCESSIBILITY_YML','cMegR','../../../helpers/performance/constants.js','getCurrentAccessibilityStatus','259125bdKJjN','onAfterTest','../state/hookState','8Lxjdzd','getGoogleChromeOptions','start','../framework/automationFramework','EXECUTE','PGNUa','getAccessibility','4pRlfSi','info','CREATE','accessibilityToken','eAxPc','3|4|8|2|9|10|1|0|6|7|5','../grpcClient','wcagVersion','2568agJeCR','isAppAccessibility','LOG_DISABLED_SHOWN','onBeforeExecute','getOptions','../../../helpers/accessibility-automation/scripts','TrackedInstance','getInstance','fKuNg','getSuccess','boiJS','MhUHv','name','getCapabilitiesList','message','3501EoUTNj','setAccessibilityToken','SDK_ACCESSIBILITY_CONFIG','get','5986820HHqhDU','find','getLogDisabledShown','browserstack.accessibilityOptions.authToken','EwBnh','scannerVersion','parseFromProto','940035njBiMo','put','\x20value=','6924FvHrpP','accessibility','uvDbC','setAccessibilityConfig','setLogDisabledShown','../../../helpers/classLogger','launchCaps','getName','capabilities','accessibilityPlatform','Error\x20while\x20setting\x20accessibility\x20config:\x20','7432SUvJVs','toJson','onAfterTest:\x20event=','zJHSw','env','stack','browserstack.accessibilityOptions.scannerVersion','MODULE_NAME','getCommandsToWrap','85819UDHUVR','./baseModule','end','error'];a74_0x5869=function(){return _0x264baa;};return a74_0x5869();};function a74_0x3e21(_0x4d8582,_0x148889){const _0x586982=a74_0x5869();return a74_0x3e21=function(_0x3e216a,_0x774f0c){_0x3e216a=_0x3e216a-0x1c1;let _0xe9ce6=_0x586982[_0x3e216a];return _0xe9ce6;},a74_0x3e21(_0x4d8582,_0x148889);}module['exports']=AccessibilityModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a75_0x4dd7(_0x783cad,_0x4809cd){const _0x80909c=a75_0x8090();return a75_0x4dd7=function(_0x4dd70c,_0x524db7){_0x4dd70c=_0x4dd70c-0x12c;let _0x2d2416=_0x80909c[_0x4dd70c];return _0x2d2416;},a75_0x4dd7(_0x783cad,_0x4809cd);}const a75_0x2a5443=a75_0x4dd7;(function(_0x3bc553,_0x7656c4){const _0x50cd6d=a75_0x4dd7,_0x1bb179=_0x3bc553();while(!![]){try{const _0x5a6101=-parseInt(_0x50cd6d(0x134))/0x1+parseInt(_0x50cd6d(0x136))/0x2+parseInt(_0x50cd6d(0x12f))/0x3*(parseInt(_0x50cd6d(0x130))/0x4)+-parseInt(_0x50cd6d(0x141))/0x5+-parseInt(_0x50cd6d(0x137))/0x6*(-parseInt(_0x50cd6d(0x144))/0x7)+parseInt(_0x50cd6d(0x13b))/0x8*(parseInt(_0x50cd6d(0x14a))/0x9)+parseInt(_0x50cd6d(0x12c))/0xa*(-parseInt(_0x50cd6d(0x13e))/0xb);if(_0x5a6101===_0x7656c4)break;else _0x1bb179['push'](_0x1bb179['shift']());}catch(_0x55d4d9){_0x1bb179['push'](_0x1bb179['shift']());}}}(a75_0x8090,0x8f40c));function a75_0x8090(){const _0x54123c=['579931SMmRFr','../../../helpers/logger.js','1423844QqDGaj','6cYECSP','Configured\x20module\x20','debug','binSessionId','10648QWKFTW','platformIndex','split','33mdkkPR','getModuleName','1|3|0|2|4','3608345WmLGSQ','gUHmy','wnUti','5512969xYdqoD','configure','client','winstonLogger','\x20with\x20binSessionId=','YBECj','7029QETgVz','4309470eGECPI',',\x20platformIndex=','config','87yKOAkW','88580jmRbis','ensureBinSession','BafxT','name'];a75_0x8090=function(){return _0x54123c;};return a75_0x8090();}const logger=require(a75_0x2a5443(0x135))[a75_0x2a5443(0x147)];class BaseModule{constructor(){const _0x347023=a75_0x2a5443,_0x1b0d42={};_0x1b0d42['YBECj']=_0x347023(0x140),_0x1b0d42[_0x347023(0x132)]='BaseModule';const _0x8c9a8d=_0x1b0d42,_0x3fe965=_0x8c9a8d[_0x347023(0x149)][_0x347023(0x13d)]('|');let _0x4a3362=0x0;while(!![]){switch(_0x3fe965[_0x4a3362++]){case'0':this[_0x347023(0x13c)]=0x0;continue;case'1':this[_0x347023(0x133)]=_0x8c9a8d[_0x347023(0x132)];continue;case'2':this[_0x347023(0x12e)]={};continue;case'3':this[_0x347023(0x13a)]=null;continue;case'4':this[_0x347023(0x146)]=null;continue;}break;}}[a75_0x2a5443(0x131)](){const _0x37d6d8=a75_0x2a5443,_0x55600c={};_0x55600c['gUHmy']='Missing\x20binSessionId';const _0x4acc77=_0x55600c;if(!this['binSessionId'])throw new Error(_0x4acc77[_0x37d6d8(0x142)]);}[a75_0x2a5443(0x13f)](){const _0x4b1284=a75_0x2a5443;return this[_0x4b1284(0x133)];}[a75_0x2a5443(0x145)](_0x4d0cfe,_0xe50846,_0x20c012,_0x5c398d={}){const _0x125ff1=a75_0x2a5443,_0xb7f97b={};_0xb7f97b[_0x125ff1(0x143)]='0|1|2|3|4';const _0x29ea24=_0xb7f97b,_0x27f295=_0x29ea24[_0x125ff1(0x143)]['split']('|');let _0x2a337f=0x0;while(!![]){switch(_0x27f295[_0x2a337f++]){case'0':this[_0x125ff1(0x13a)]=_0x4d0cfe;continue;case'1':this[_0x125ff1(0x13c)]=_0xe50846;continue;case'2':this[_0x125ff1(0x146)]=_0x20c012;continue;case'3':this['config']=_0x5c398d;continue;case'4':logger[_0x125ff1(0x139)](_0x125ff1(0x138)+this['getModuleName']()+_0x125ff1(0x148)+_0x4d0cfe+_0x125ff1(0x12d)+_0xe50846);continue;}break;}}}module['exports']=BaseModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a76_0xab2e(){const _0x48af31=['page','../framework/automationFramework.js','TEST_REPORTING_ANALYTICS','./baseModule','../state/hookState.js','../../../helpers/classLogger.js','\x20sync\x20done','MODULE_NAME','3886497Phyiub','onBeforeTest:\x20page\x20is\x20not\x20defined','POST','7387566ckfhPI','../state/automationFrameworkState.js','name','7445160YiDtiU','NKSco','LTgYE','492IFQrQd','jFTCD','registerObserver','3880IPolYf','468593daDwUn','onBeforeTest:\x20','info','observabilityConfig','14932700zXGKNp','getModuleName','CREATE','debug','4HOeIDp','32LFmsVK','SYNC','onBeforeTest','logger','bind','22AWvhTT','12924548EPiePw','CTJAZ','ObservabilityModule','start'];a76_0xab2e=function(){return _0x48af31;};return a76_0xab2e();}const a76_0x5e0c29=a76_0x3ec0;(function(_0x1d3019,_0x42c745){const _0x582e02=a76_0x3ec0,_0x38cc17=_0x1d3019();while(!![]){try{const _0x1991d7=-parseInt(_0x582e02(0xf4))/0x1*(-parseInt(_0x582e02(0xfc))/0x2)+-parseInt(_0x582e02(0xf0))/0x3*(parseInt(_0x582e02(0xf3))/0x4)+-parseInt(_0x582e02(0xed))/0x5+-parseInt(_0x582e02(0xea))/0x6+-parseInt(_0x582e02(0x103))/0x7+-parseInt(_0x582e02(0xfd))/0x8*(-parseInt(_0x582e02(0x10f))/0x9)+parseInt(_0x582e02(0xf8))/0xa*(parseInt(_0x582e02(0x102))/0xb);if(_0x1991d7===_0x42c745)break;else _0x38cc17['push'](_0x38cc17['shift']());}catch(_0x46d225){_0x38cc17['push'](_0x38cc17['shift']());}}}(a76_0xab2e,0xe1e89));function a76_0x3ec0(_0xaa26c2,_0xc3cae6){const _0xab2e91=a76_0xab2e();return a76_0x3ec0=function(_0x3ec0b9,_0x27ba76){_0x3ec0b9=_0x3ec0b9-0xe8;let _0x58c778=_0xab2e91[_0x3ec0b9];return _0x58c778;},a76_0x3ec0(_0xaa26c2,_0xc3cae6);}const BaseModule=require(a76_0x5e0c29(0x10a)),{createClassLogger}=require(a76_0x5e0c29(0x10c)),AutomationFramework=require(a76_0x5e0c29(0x108)),AutomationFrameworkState=require(a76_0x5e0c29(0xeb)),HookState=require(a76_0x5e0c29(0x10b)),{playwrightAnnotate}=require('../../../helpers/helper.js'),PerformanceTester=require('../../../helpers/performance/performance-tester.js'),{O11y_EVENTS}=require('../../../helpers/performance/constants.js'),constants=require('../../utils/constants.js');class ObservabilityModule extends BaseModule{[a76_0x5e0c29(0x100)]=createClassLogger('ObservabilityModule');constructor(_0x5a497a){const _0x3a6ce1=a76_0x5e0c29,_0x54f4c4={};_0x54f4c4['NKSco']=_0x3a6ce1(0x105);const _0x46b6a2=_0x54f4c4;super(),this[_0x3a6ce1(0xec)]=_0x46b6a2[_0x3a6ce1(0xee)],this[_0x3a6ce1(0xf7)]=_0x5a497a,AutomationFramework[_0x3a6ce1(0xf2)](AutomationFrameworkState[_0x3a6ce1(0xfa)],HookState[_0x3a6ce1(0xe9)],this[_0x3a6ce1(0xff)][_0x3a6ce1(0x101)](this));}[a76_0x5e0c29(0xf9)](){const _0x1c7c6e=a76_0x5e0c29;return ObservabilityModule[_0x1c7c6e(0x10e)];}async[a76_0x5e0c29(0xff)](_0x2b5fe8){const _0x5bef1a=a76_0x5e0c29,_0x1ae6c0={'CTJAZ':function(_0x3bad03,_0xc58540){return _0x3bad03+_0xc58540;},'PPdtM':'ObservabilitySync:','LTgYE':function(_0xd142b7,_0xa18a4f,_0x3432b1,_0x3e9e46){return _0xd142b7(_0xa18a4f,_0x3432b1,_0x3e9e46);},'PBJXV':'debug','jFTCD':_0x5bef1a(0xe8)};if(_0x2b5fe8[_0x5bef1a(0x107)]){const _0x543be1=_0x2b5fe8[_0x5bef1a(0x107)],_0x140271=Date['now'](),_0x2b63e6=_0x1ae6c0[_0x5bef1a(0x104)](_0x1ae6c0['PPdtM'],_0x140271);PerformanceTester[_0x5bef1a(0x106)](O11y_EVENTS[_0x5bef1a(0xfe)]),await _0x1ae6c0[_0x5bef1a(0xef)](playwrightAnnotate,_0x543be1,_0x2b63e6,_0x1ae6c0['PBJXV']),PerformanceTester['end'](O11y_EVENTS[_0x5bef1a(0xfe)]),this[_0x5bef1a(0x100)][_0x5bef1a(0xf6)](_0x5bef1a(0xf5)+constants[_0x5bef1a(0x109)]+_0x5bef1a(0x10d));}else this['logger'][_0x5bef1a(0xfb)](_0x1ae6c0[_0x5bef1a(0xf1)]);}}ObservabilityModule[a76_0x5e0c29(0x10e)]=a76_0x5e0c29(0x105),module['exports']=ObservabilityModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a77_0xdc25(){const _0x4e38bb=['NkrDE','qFzLu','exmFX','yefSN','khnDC','JmckO','sessionId','isPlaywright','373431koHPoO','getModuleName','Automation\x20onAfterTest:\x20Test\x20completed','bsParams','VyMtD','registerObserver','browserObject','PLAYWRIGHT','fZiKt','bwQpp','POST','debug','parse','1876gozNzK','logger','markSessionStatus:\x20Marking\x20session\x20status','onBeforeDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','ijWBu','error','testFrameworkVersion','../../../helpers/performance/constants.js','message','start','onDispatchExecute:\x20Playwright\x20driver\x20is\x20executing\x20tests\x20','bStackParams','browser','onAfterTest\x20CBTSession\x20payload:\x20','RSGeQ','getId','onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','shouldSkipSessionStatus','end','shouldSkipSessionName','driverInit','1038317IOsRvR','1510335mmymZZ','../../../helpers/performance/performance-tester.js','1479132oBKuIs','onAfterTest\x20CBTSession\x20complete\x20for\x20testId:\x20','onBeforeDriverCreate','KEY_PLATFORM_INDEX','SESSION_NAME','\x20||\x20','SGvTh','setState','Error\x20in\x20onAfterDriverCreate:\x20','setSessionStatus','getInstance','platforms','_test','length','pickle','gherkinDocument','../browserstackCLI.js','bozZT','markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available','yAlbw','KEY_BROWSER_OBJECT','platformIndex','KEY_HUB_URL','../state/automationFrameworkState.js','getProcessId','KEY_TEST_FRAMEWORK_NAME','launchcaps','capabilities','../state/testFrameworkState','kyNVd','testRunId','testId','tuBph','KEY_TEST_FRAMEWORK_VERSION','onAfterTest','AUTOMATE_EVENTS','from','../framework/automationFramework.js','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','markSessionName:\x20Skipping\x20session\x20name\x20marking','1134872XTMXRg','KEY_PAGE_OBJECT','./baseModule','markSessionStatus:\x20Skipping\x20session\x20status\x20marking','testHookState','vfwKA','iBpqq','Error\x20in\x20onBeforeDriverCreate:\x20','testUuid','XXaYZ','tsCjQ','inspect','jbzCZ','contextObject','getThreadId','base64','../cliUtils.js','browserName','Error\x20in\x20markSessionName:\x20','stringify','onPlaywrightDispatch','Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','setSessionName','OzTIo','PRE','params','KEY_PLATFORM_DETAILS','getContext','../grpcClient.js','KEY_TEST_ID','gDfKH','automationSession','../../../helpers/test-observability/utils','../../../helpers/helper','keys','xHvQT','../framework/constants/testFrameworkConstants.js','onDispatchExecute:\x20Playwright\x20sessionId:\x20','BMdhL','Automation\x20onAfterTest:\x20Setting\x20session\x20status\x20for\x20testId:\x20','getState','instance','toString','PlaywrightDriverModule','__workerDetails','Yvqib','executionContext','onAfterDriverCreate:\x20Setting\x20context\x20object','split','Error\x20in\x20onDispatchExecute:\x20','onAfterDriverCreate','browserVersion','Session','getTestDetails','testId:\x20','2228112wPGHam','1.52.999','platformDetails','status','gBQRe','MODULE_NAME','passed','../../../helpers/classLogger.js','EXECUTE','GCYyI','name','onDispatchExecute:\x20Playwright\x20platform\x20platformIndex:\x20','with\x20','KEY_SESSION_ID','1.51.0','qDAMS','271INiArZ','RgpjH','CREATE','markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','workerInfo','getCapabilities','action','bind','getTestUUID','../TestInfo.js','format','IifuZ','../../../helpers/helper.js','6IZLxWT','page','getRef','PLAYWRIGHT_DISPATCH','TEST','DIyxu','lrxMT','markSessionStatus','SESSION_STATUS','KEY_CAPABILITIES','SreES','KEY_CONTEXT_OBJECT','rbXXv','context','arguments','getTestIdentifierFromTestInfo','parallelIndex','getConfig','../state/hookState.js','retry','Automation\x20onAfterTest:\x20Test\x20status:\x20','isFalse','testInfo','info','Playwright'];a77_0xdc25=function(){return _0x4e38bb;};return a77_0xdc25();}const a77_0x3fc36e=a77_0x1389;(function(_0x5c3ed0,_0x33d083){const _0x44b402=a77_0x1389,_0x425ad0=_0x5c3ed0();while(!![]){try{const _0xab34dd=-parseInt(_0x44b402(0x22d))/0x1*(parseInt(_0x44b402(0x268))/0x2)+parseInt(_0x44b402(0x25b))/0x3+parseInt(_0x44b402(0x1be))/0x4+parseInt(_0x44b402(0x1bc))/0x5*(-parseInt(_0x44b402(0x23a))/0x6)+parseInt(_0x44b402(0x1bb))/0x7+-parseInt(_0x44b402(0x1e6))/0x8+parseInt(_0x44b402(0x21d))/0x9;if(_0xab34dd===_0x33d083)break;else _0x425ad0['push'](_0x425ad0['shift']());}catch(_0x10b910){_0x425ad0['push'](_0x425ad0['shift']());}}}(a77_0xdc25,0x2ee23));const util=require('util'),BaseModule=require(a77_0x3fc36e(0x1e8)),{createClassLogger}=require(a77_0x3fc36e(0x224)),{getFrameworkVersion}=require(a77_0x3fc36e(0x206)),helper=require(a77_0x3fc36e(0x207)),{FRAMEWORKS}=require('../../utils/constants'),AutomationFramework=require(a77_0x3fc36e(0x1e3)),AutomationFrameworkState=require(a77_0x3fc36e(0x1d5)),HookState=require(a77_0x3fc36e(0x24c)),{playwrightBstackJsExecutor,nestedKeyValue,playwrightAnnotate,getPlaywrightStatus,getPlaywrightSessionName,getCucumberSessionName}=require(a77_0x3fc36e(0x239)),CLIUtils=require(a77_0x3fc36e(0x1f6)),BrowserstackCLI=require(a77_0x3fc36e(0x1ce)),GrpcClient=require(a77_0x3fc36e(0x202)),PerformanceTester=require(a77_0x3fc36e(0x1bd)),PerformanceEvents=require(a77_0x3fc36e(0x26f))[a77_0x3fc36e(0x1e1)],TestInfo=require(a77_0x3fc36e(0x236)),{getPlaywrightProvider}=require(a77_0x3fc36e(0x239)),TestFrameworkConstants=require(a77_0x3fc36e(0x20a)),TestFrameworkState=require(a77_0x3fc36e(0x1da));function a77_0x1389(_0x44e501,_0x8d4c5b){const _0xdc25eb=a77_0xdc25();return a77_0x1389=function(_0x13891f,_0x210d78){_0x13891f=_0x13891f-0x1b7;let _0x245ca9=_0xdc25eb[_0x13891f];return _0x245ca9;},a77_0x1389(_0x44e501,_0x8d4c5b);}class PlaywrightDriverModule extends BaseModule{static [a77_0x3fc36e(0x1d2)]=a77_0x3fc36e(0x261);static [a77_0x3fc36e(0x245)]=a77_0x3fc36e(0x1f3);static [a77_0x3fc36e(0x1e7)]='pageObject';static ['KEY_SESSION_ID']=a77_0x3fc36e(0x259);static [a77_0x3fc36e(0x1c1)]=a77_0x3fc36e(0x1d3);static [a77_0x3fc36e(0x243)]=a77_0x3fc36e(0x1d9);static ['KEY_HUB_URL']='hubUrl';static [a77_0x3fc36e(0x200)]=a77_0x3fc36e(0x21f);static [a77_0x3fc36e(0x203)]=a77_0x3fc36e(0x1dd);[a77_0x3fc36e(0x269)]=createClassLogger(a77_0x3fc36e(0x211));constructor(){const _0x436593=a77_0x3fc36e,_0x2d9405={};_0x2d9405[_0x436593(0x258)]='2|1|9|3|6|7|5|0|10|8|4',_0x2d9405[_0x436593(0x221)]='PlaywrightDriverModule';const _0x5304ea=_0x2d9405,_0xa58224=_0x5304ea['JmckO'][_0x436593(0x216)]('|');let _0x4b2e73=0x0;while(!![]){switch(_0xa58224[_0x4b2e73++]){case'0':AutomationFramework[_0x436593(0x260)](AutomationFrameworkState[_0x436593(0x22f)],HookState[_0x436593(0x1fe)],this[_0x436593(0x1c0)][_0x436593(0x234)](this));continue;case'1':this[_0x436593(0x227)]=_0x5304ea[_0x436593(0x221)];continue;case'2':super();continue;case'3':this[_0x436593(0x1f7)]=null;continue;case'4':AutomationFramework[_0x436593(0x260)](AutomationFrameworkState[_0x436593(0x225)],HookState['POST'],this[_0x436593(0x1e0)][_0x436593(0x234)](this));continue;case'5':this[_0x436593(0x1dc)]=null;continue;case'6':this[_0x436593(0x219)]=null;continue;case'7':this[_0x436593(0x1c9)]=[];continue;case'8':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x436593(0x23d)],HookState[_0x436593(0x265)],this['onPlaywrightDispatch'][_0x436593(0x234)](this));continue;case'9':this['playwrightVersion']=null;continue;case'10':AutomationFramework[_0x436593(0x260)](AutomationFrameworkState[_0x436593(0x22f)],HookState[_0x436593(0x265)],this[_0x436593(0x218)][_0x436593(0x234)](this));continue;}break;}}[a77_0x3fc36e(0x25c)](){return PlaywrightDriverModule['MODULE_NAME'];}async['onBeforeDriverCreate'](_0x295f17){const _0x2bcd14=a77_0x3fc36e,_0x403a8f={};_0x403a8f[_0x2bcd14(0x213)]=_0x2bcd14(0x26b);const _0x4c36bb=_0x403a8f;try{this[_0x2bcd14(0x269)]['debug'](_0x4c36bb[_0x2bcd14(0x213)]);const _0xb3ab55=_0x295f17[_0x2bcd14(0x1d8)],_0x19d623=_0x295f17['hubUrl'];AutomationFramework['setState'](_0x295f17[_0x2bcd14(0x20f)],PlaywrightDriverModule[_0x2bcd14(0x243)],_0xb3ab55),AutomationFramework[_0x2bcd14(0x1c5)](_0x295f17[_0x2bcd14(0x20f)],PlaywrightDriverModule[_0x2bcd14(0x1d4)],_0x19d623);}catch(_0x17a051){this[_0x2bcd14(0x269)][_0x2bcd14(0x26d)](_0x2bcd14(0x1ed)+util['format'](_0x17a051));}}async[a77_0x3fc36e(0x1fa)](_0x2d0eef){const _0x25e472=a77_0x3fc36e,_0x5072c6={};_0x5072c6[_0x25e472(0x1f2)]=function(_0x481972,_0x201ec7){return _0x481972||_0x201ec7;};const _0x145155=_0x5072c6;try{const _0xa7dda2=_0x2d0eef?.[_0x25e472(0x270)]&&_0x2d0eef?.[_0x25e472(0x270)]?.['params']&&_0x2d0eef?.['message']?.[_0x25e472(0x1ff)]?.[_0x25e472(0x25e)],_0x44da4d=_0x2d0eef?.[_0x25e472(0x270)]&&_0x2d0eef?.[_0x25e472(0x270)]?.[_0x25e472(0x273)];if(_0x145155['jbzCZ'](_0xa7dda2,_0x44da4d)){this[_0x25e472(0x269)][_0x25e472(0x266)](_0x25e472(0x272)+util[_0x25e472(0x1f1)](_0xa7dda2)+_0x25e472(0x1c3)+util[_0x25e472(0x1f1)](_0x44da4d));const _0x26ba19=_0x2d0eef?.[_0x25e472(0x20f)],_0x50a00e=global?.[_0x25e472(0x212)]?.[_0x25e472(0x231)]?.[_0x25e472(0x24a)],_0x3c979f=_0xa7dda2?.['sessionId']||_0x44da4d?.[_0x25e472(0x259)],_0x183984=_0xa7dda2?.['platformDetails']||_0x44da4d?.[_0x25e472(0x21f)];_0x3c979f&&(this[_0x25e472(0x269)][_0x25e472(0x266)](_0x25e472(0x20b)+_0x3c979f),AutomationFramework[_0x25e472(0x1c5)](_0x26ba19,PlaywrightDriverModule[_0x25e472(0x22a)],_0x3c979f)),_0x50a00e&&(this[_0x25e472(0x269)]['debug'](_0x25e472(0x228)+util['inspect'](_0x50a00e)),AutomationFramework['setState'](_0x26ba19,PlaywrightDriverModule[_0x25e472(0x1c1)],_0x50a00e));}}catch(_0x1695bc){this['logger'][_0x25e472(0x26d)](_0x25e472(0x217)+util[_0x25e472(0x237)](_0x1695bc));}}async[a77_0x3fc36e(0x218)](_0x207ad8){const _0x15c6e0=a77_0x3fc36e,_0x11f960={'CgGak':'onAfterDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','XXaYZ':function(_0x50aab2,_0xd4fac5){return _0x50aab2(_0xd4fac5);},'exmFX':'onAfterDriverCreate:\x20Setting\x20page\x20object','MSgBK':_0x15c6e0(0x278),'DIyxu':_0x15c6e0(0x215),'NkrDE':'onAfterDriverCreate:\x20Setting\x20browser\x20object','bozZT':_0x15c6e0(0x1f5)};try{this[_0x15c6e0(0x269)][_0x15c6e0(0x266)](_0x11f960['CgGak']);const _0x16c383=_0x207ad8['instance'];this['playwrightVersion']=_0x11f960[_0x15c6e0(0x1ef)](getFrameworkVersion,FRAMEWORKS[_0x15c6e0(0x262)]);if(_0x207ad8[_0x15c6e0(0x23b)]){this[_0x15c6e0(0x269)][_0x15c6e0(0x266)](_0x11f960[_0x15c6e0(0x255)]),AutomationFramework['setState'](_0x16c383,PlaywrightDriverModule[_0x15c6e0(0x1e7)],_0x207ad8[_0x15c6e0(0x23b)]);if(_0x207ad8[_0x15c6e0(0x250)]){this[_0x15c6e0(0x269)][_0x15c6e0(0x266)](_0x11f960['MSgBK']);const _0x34848b=_0x207ad8[_0x15c6e0(0x250)]?.['_test']?.['id']||_0x207ad8[_0x15c6e0(0x250)]?.[_0x15c6e0(0x1dd)];AutomationFramework[_0x15c6e0(0x1c5)](_0x16c383,PlaywrightDriverModule[_0x15c6e0(0x203)],_0x34848b),await this['markSessionName'](_0x207ad8[_0x15c6e0(0x250)]);}}_0x207ad8[_0x15c6e0(0x247)]&&(this[_0x15c6e0(0x269)][_0x15c6e0(0x266)](_0x11f960[_0x15c6e0(0x23f)]),AutomationFramework[_0x15c6e0(0x1c5)](_0x16c383,PlaywrightDriverModule['KEY_CONTEXT_OBJECT'],_0x207ad8[_0x15c6e0(0x247)]));if(_0x207ad8[_0x15c6e0(0x274)]){this[_0x15c6e0(0x269)][_0x15c6e0(0x266)](_0x11f960[_0x15c6e0(0x253)]);const _0x4b55ad=global?.['__workerDetails']?.[_0x15c6e0(0x231)]?.[_0x15c6e0(0x24a)];AutomationFramework['setState'](_0x16c383,PlaywrightDriverModule[_0x15c6e0(0x1d2)],_0x207ad8[_0x15c6e0(0x274)]),AutomationFramework[_0x15c6e0(0x1c5)](_0x16c383,PlaywrightDriverModule['KEY_PLATFORM_INDEX'],_0x4b55ad);const _0x26929a={};_0x26929a[_0x15c6e0(0x25a)]=!![];const _0x961953=Buffer[_0x15c6e0(0x1e2)](JSON[_0x15c6e0(0x1f9)](_0x26929a)['toString'](_0x11f960[_0x15c6e0(0x1cf)])),_0x1903eb=await GrpcClient[_0x15c6e0(0x1c8)]()[_0x15c6e0(0x1ba)]({'platformIndex':_0x4b55ad,'ref':_0x16c383[_0x15c6e0(0x23c)](),'userInputParams':_0x961953});helper[_0x15c6e0(0x24f)](helper['isBrowserstackInfra']())&&AutomationFramework[_0x15c6e0(0x1c5)](_0x16c383,PlaywrightDriverModule[_0x15c6e0(0x243)],JSON[_0x15c6e0(0x267)](Buffer[_0x15c6e0(0x1e2)](_0x1903eb[_0x15c6e0(0x232)](),_0x11f960['bozZT'])[_0x15c6e0(0x210)]()));}}catch(_0x545ae2){this['logger']['error'](_0x15c6e0(0x1c6)+util['format'](_0x545ae2));}}async[a77_0x3fc36e(0x1e0)](_0x5c28c5){const _0x38b9e4=a77_0x3fc36e,_0xfcdcc6={'khnDC':_0x38b9e4(0x25d),'BMdhL':_0x38b9e4(0x1fb),'vfwKA':function(_0x500331,_0x370111){return _0x500331(_0x370111);},'IfeIu':function(_0xd4a52a,_0x34344b){return _0xd4a52a(_0x34344b);},'SocOS':function(_0x21a29f,_0x5d9e88,_0x1b99d9){return _0x21a29f(_0x5d9e88,_0x1b99d9);},'dyYmh':'errors','tuBph':function(_0x12a48c,_0x4af28d){return _0x12a48c>_0x4af28d;},'SreES':function(_0x25bfd9,_0x53e815){return _0x25bfd9+_0x53e815;},'gDfKH':_0x38b9e4(0x21c),'tsCjQ':'testData\x20from\x20onAfterTest:\x20','ijWBu':_0x38b9e4(0x252),'SGvTh':_0x38b9e4(0x21e),'lrxMT':function(_0x373c02,_0x7fc806){return _0x373c02(_0x7fc806);},'kyNVd':_0x38b9e4(0x22b),'qDAMS':_0x38b9e4(0x1f5),'GCYyI':_0x38b9e4(0x1e4)};this['logger'][_0x38b9e4(0x266)](_0xfcdcc6[_0x38b9e4(0x257)]);const _0x2fd2ba=_0x5c28c5['instance'];if(!_0x2fd2ba){this[_0x38b9e4(0x269)][_0x38b9e4(0x266)](_0xfcdcc6[_0x38b9e4(0x20c)]);return;}const _0x5316b8=_0x5c28c5[_0x38b9e4(0x250)],_0x4745a3=_0x5316b8['id']||_0x5c28c5['testInfo']?.[_0x38b9e4(0x1ca)]?.['id']||_0x5c28c5[_0x38b9e4(0x250)]?.[_0x38b9e4(0x1dd)],_0x83ea2b=_0x5316b8[_0x38b9e4(0x220)],_0xb80195=_0xfcdcc6[_0x38b9e4(0x1eb)](getPlaywrightStatus,_0x83ea2b);let _0x53b863;_0x5316b8[_0x38b9e4(0x1cc)]||_0x5316b8[_0x38b9e4(0x1cd)]?_0x53b863=_0xfcdcc6['IfeIu'](getCucumberSessionName,_0x5316b8):_0x53b863=_0xfcdcc6['IfeIu'](getPlaywrightSessionName,_0x5316b8);const _0x1c22fe=_0xfcdcc6['SocOS'](nestedKeyValue,_0x5316b8,[_0xfcdcc6['dyYmh']]);let _0x2e5e10=null;_0x1c22fe&&_0xfcdcc6[_0x38b9e4(0x1de)](_0x1c22fe[_0x38b9e4(0x1cb)],0x0)&&(_0x2e5e10=_0x1c22fe[0x0][_0x38b9e4(0x270)]);this[_0x38b9e4(0x269)][_0x38b9e4(0x266)](_0x38b9e4(0x24e)+_0xb80195+'\x20failure\x20reason:\x20'+_0x2e5e10);const _0x5e8b60=TestInfo[_0x38b9e4(0x235)](TestInfo['getTestIdentifierFromTestInfo'](_0x5316b8,_0x5316b8['retry'])),_0x2bb772=TestInfo[_0x38b9e4(0x21b)](TestInfo[_0x38b9e4(0x249)](_0x5316b8,_0x5316b8[_0x38b9e4(0x24d)]));this[_0x38b9e4(0x269)][_0x38b9e4(0x251)](_0xfcdcc6[_0x38b9e4(0x244)](_0xfcdcc6[_0x38b9e4(0x204)],_0x4745a3)),this[_0x38b9e4(0x269)][_0x38b9e4(0x251)](_0xfcdcc6[_0x38b9e4(0x244)](_0xfcdcc6[_0x38b9e4(0x1f0)],util[_0x38b9e4(0x1f1)](_0x2bb772)));const _0x3947c0=AutomationFramework['getState'](_0x2fd2ba,PlaywrightDriverModule[_0x38b9e4(0x1c1)])||0x0,_0x6b8325=_0x2bb772[TestFrameworkConstants[_0x38b9e4(0x1d7)]]||_0xfcdcc6[_0x38b9e4(0x26c)],_0x25f252=_0x2bb772[TestFrameworkConstants[_0x38b9e4(0x1df)]]||_0xfcdcc6[_0x38b9e4(0x1c4)],_0x2a42ec=TestFrameworkState[_0x38b9e4(0x23e)][_0x38b9e4(0x210)]()[_0x38b9e4(0x216)]('.')[0x1],_0xc8db7a=HookState[_0x38b9e4(0x265)][_0x38b9e4(0x210)]()[_0x38b9e4(0x216)]('.')[0x1],_0x46344f=_0x2fd2ba[_0x38b9e4(0x201)](),_0xd11a79=AutomationFramework['getState'](_0x2fd2ba,PlaywrightDriverModule[_0x38b9e4(0x1d4)],''),_0x8298b8={'provider':_0xfcdcc6[_0x38b9e4(0x240)](getPlaywrightProvider,_0xd11a79),'frameworkName':_0xfcdcc6[_0x38b9e4(0x26c)],'frameworkVersion':_0xfcdcc6[_0x38b9e4(0x1db)],'frameworkSessionId':AutomationFramework['getState'](_0x2fd2ba,PlaywrightDriverModule[_0x38b9e4(0x22a)],''),'ref':_0x2fd2ba[_0x38b9e4(0x23c)](),'hubUrl':_0xd11a79};let _0x5048de=AutomationFramework[_0x38b9e4(0x20e)](_0x2fd2ba,PlaywrightDriverModule[_0x38b9e4(0x243)],{});_0x5048de&&_0xfcdcc6[_0x38b9e4(0x1de)](Object[_0x38b9e4(0x208)](_0x5048de)[_0x38b9e4(0x1cb)],0x0)?_0x5048de=Buffer[_0x38b9e4(0x1e2)](JSON[_0x38b9e4(0x1f9)](_0x5048de))[_0x38b9e4(0x210)](_0xfcdcc6[_0x38b9e4(0x22c)]):_0x5048de={};const _0x5da60b={'hash':_0x46344f[_0x38b9e4(0x277)](),'threadId':_0x46344f[_0x38b9e4(0x1f4)]()[_0x38b9e4(0x210)](),'processId':_0x46344f[_0x38b9e4(0x1d6)]()[_0x38b9e4(0x210)]()},_0x1f631d={};_0x1f631d[_0x38b9e4(0x1d3)]=_0x3947c0,_0x1f631d['testFrameworkName']=_0x6b8325,_0x1f631d[_0x38b9e4(0x26e)]=_0x25f252,_0x1f631d['testFrameworkState']=_0x2a42ec,_0x1f631d[_0x38b9e4(0x1ea)]=_0xc8db7a,_0x1f631d[_0x38b9e4(0x1ee)]=_0x5e8b60,_0x1f631d[_0x38b9e4(0x205)]=_0x8298b8,_0x1f631d[_0x38b9e4(0x1d9)]=_0x5048de,_0x1f631d[_0x38b9e4(0x214)]=_0x5da60b;const _0x2a7eb3=_0x1f631d;this['logger']['debug'](_0x38b9e4(0x275)+util[_0x38b9e4(0x237)](_0x2a7eb3)),this[_0x38b9e4(0x269)]['debug'](_0x38b9e4(0x1bf)+_0x4745a3);if(!_0xb80195){this['logger'][_0x38b9e4(0x266)](_0xfcdcc6[_0x38b9e4(0x226)],_0x83ea2b[_0x38b9e4(0x220)]);return;}this[_0x38b9e4(0x269)]['debug'](_0x38b9e4(0x20d)+_0x4745a3),await this[_0x38b9e4(0x241)](_0x2fd2ba,_0x53b863,_0xb80195,_0x2e5e10);}async[a77_0x3fc36e(0x241)](_0x360d6a,_0x49a176,_0x526016,_0x4369b9){const _0x2c17fc=a77_0x3fc36e,_0x1bac56={'bVLAO':_0x2c17fc(0x1e9),'Cxzat':_0x2c17fc(0x1d0),'qFzLu':_0x2c17fc(0x230),'bwQpp':_0x2c17fc(0x1e4),'PUmkg':_0x2c17fc(0x1c7),'fZiKt':'reason','rbXXv':_0x2c17fc(0x21a),'yAlbw':function(_0x12dbc6,_0x4651bd){return _0x12dbc6===_0x4651bd;},'xHvQT':_0x2c17fc(0x223),'OzTIo':'info','cHrKB':_0x2c17fc(0x26d),'IifuZ':function(_0x2e7def,_0x25eb49,_0x268416,_0x2b8f00){return _0x2e7def(_0x25eb49,_0x268416,_0x2b8f00);},'RgpjH':_0x2c17fc(0x26a),'EozmR':function(_0x3957a5,_0x1cd5a6,_0x313026){return _0x3957a5(_0x1cd5a6,_0x313026);}};if(CLIUtils[_0x2c17fc(0x1b7)](BrowserstackCLI['getInstance']()['getConfig']())){this[_0x2c17fc(0x269)][_0x2c17fc(0x266)](_0x1bac56['bVLAO']);return;}const _0xbbbc2=_0x360d6a;if(!_0xbbbc2){this[_0x2c17fc(0x269)]['debug'](_0x1bac56['Cxzat']);return;}const _0x2ef47f=AutomationFramework[_0x2c17fc(0x20e)](_0xbbbc2,PlaywrightDriverModule[_0x2c17fc(0x1e7)]);if(!_0x2ef47f){this[_0x2c17fc(0x269)][_0x2c17fc(0x266)](_0x1bac56[_0x2c17fc(0x254)]);return;}const _0x4084c7=_0x526016;if(!_0x4084c7){this['logger'][_0x2c17fc(0x266)](_0x1bac56[_0x2c17fc(0x264)],_0x4084c7);return;}const _0x4b3b2f={};_0x4b3b2f[_0x2c17fc(0x220)]=_0x4084c7;const _0x312172={};_0x312172[_0x2c17fc(0x233)]=_0x1bac56['PUmkg'],_0x312172[_0x2c17fc(0x248)]=_0x4b3b2f;const _0x5d088e=_0x312172;_0x4369b9&&(_0x5d088e['arguments'][_0x1bac56[_0x2c17fc(0x263)]]=_0x4369b9);const _0x760ca4=(_0x49a176?_0x49a176:_0x1bac56[_0x2c17fc(0x246)])+'\x20'+_0x4084c7+'\x20'+(_0x4369b9?_0x2c17fc(0x229)+_0x4369b9:''),_0x2388e2=_0x1bac56[_0x2c17fc(0x1d1)](_0x4084c7,_0x1bac56[_0x2c17fc(0x209)])?_0x1bac56[_0x2c17fc(0x1fd)]:_0x1bac56['cHrKB'];await _0x1bac56[_0x2c17fc(0x238)](playwrightAnnotate,_0x2ef47f,_0x760ca4,_0x2388e2),PerformanceTester[_0x2c17fc(0x271)](PerformanceEvents[_0x2c17fc(0x242)]),this[_0x2c17fc(0x269)][_0x2c17fc(0x266)](_0x1bac56[_0x2c17fc(0x22e)]),await _0x1bac56['EozmR'](playwrightBstackJsExecutor,_0x2ef47f,_0x5d088e),PerformanceTester[_0x2c17fc(0x1b8)](PerformanceEvents[_0x2c17fc(0x242)]);}async['markSessionName'](_0x2a51a3){const _0x369b38=a77_0x3fc36e,_0x18fc9e={'yefSN':_0x369b38(0x1e5),'RSGeQ':function(_0x3377a8,_0x42dbf6){return _0x3377a8(_0x42dbf6);},'iBpqq':function(_0x33652b,_0x99d613){return _0x33652b(_0x99d613);},'RnqAS':_0x369b38(0x1fc),'VyMtD':function(_0x4bb4e7,_0x3d6cfc,_0x167715){return _0x4bb4e7(_0x3d6cfc,_0x167715);}};try{if(CLIUtils[_0x369b38(0x1b9)](BrowserstackCLI[_0x369b38(0x1c8)]()[_0x369b38(0x24b)]())){this[_0x369b38(0x269)]['debug'](_0x18fc9e[_0x369b38(0x256)]);return;}const _0x1fbb07=AutomationFramework[_0x369b38(0x20e)](AutomationFramework['getTrackedInstance'](),PlaywrightDriverModule[_0x369b38(0x1e7)]);let _0x3c5d6d;_0x2a51a3[_0x369b38(0x1cc)]||_0x2a51a3['gherkinDocument']?_0x3c5d6d=_0x18fc9e[_0x369b38(0x276)](getCucumberSessionName,_0x2a51a3):_0x3c5d6d=_0x18fc9e[_0x369b38(0x1ec)](getPlaywrightSessionName,_0x2a51a3);const _0x4ba37b={};_0x4ba37b[_0x369b38(0x227)]=_0x3c5d6d;const _0x393e30={};_0x393e30['action']=_0x18fc9e['RnqAS'],_0x393e30[_0x369b38(0x248)]=_0x4ba37b;const _0xc1c0e6=_0x393e30;PerformanceTester[_0x369b38(0x271)](PerformanceEvents[_0x369b38(0x1c2)]),await _0x18fc9e[_0x369b38(0x25f)](playwrightBstackJsExecutor,_0x1fbb07,_0xc1c0e6),PerformanceTester[_0x369b38(0x1b8)](PerformanceEvents[_0x369b38(0x1c2)]);}catch(_0x38a3fe){PerformanceTester[_0x369b38(0x1b8)](PerformanceEvents['SESSION_NAME'],![],util[_0x369b38(0x237)](_0x38a3fe)),this['logger'][_0x369b38(0x26d)](_0x369b38(0x1f8)+util[_0x369b38(0x237)](_0x38a3fe));}}}PlaywrightDriverModule[a77_0x3fc36e(0x222)]=a77_0x3fc36e(0x211),module['exports']=PlaywrightDriverModule;
|
|
1
|
+
const a77_0x352db8=a77_0x15ce;(function(_0x1c7e86,_0x5a7f53){const _0x5180b0=a77_0x15ce,_0x4723c9=_0x1c7e86();while(!![]){try{const _0x2827ee=-parseInt(_0x5180b0(0x1bd))/0x1+-parseInt(_0x5180b0(0x190))/0x2+-parseInt(_0x5180b0(0x19a))/0x3+parseInt(_0x5180b0(0x1db))/0x4+parseInt(_0x5180b0(0x15f))/0x5*(-parseInt(_0x5180b0(0x1cf))/0x6)+-parseInt(_0x5180b0(0x1c3))/0x7+parseInt(_0x5180b0(0x14e))/0x8;if(_0x2827ee===_0x5a7f53)break;else _0x4723c9['push'](_0x4723c9['shift']());}catch(_0xf99659){_0x4723c9['push'](_0x4723c9['shift']());}}}(a77_0x2f75,0xb547d));function a77_0x2f75(){const _0x5b1d5c=['debug','markSessionName','onAfterDriverCreate:\x20Setting\x20context\x20object','error','../cliUtils.js','_test','LvYGQ','base64','onBeforeDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','onAfterDriverCreate','Error\x20in\x20markSessionName:\x20','QAOmH','util','RgzFF','exports','2524636FVNTdr','testInfo','getRef','Playwright','getContext','automationSession','yorar','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','SESSION_STATUS','action','1911228XUFiMx','capabilities','status','KEY_CONTEXT_OBJECT','EXECUTE','platformDetails','YfvfM','driverInit','caCmk','../state/testFrameworkState','markSessionStatus:\x20Marking\x20session\x20status','pickle','KEY_BROWSER_OBJECT','nMDlf','rPOmy','POST','Error\x20in\x20onBeforeDriverCreate:\x20','bStackParams','RQwqo','testUuid','FZhKf','platforms','euesw','PRE','XZujx','onDispatchExecute:\x20Playwright\x20sessionId:\x20','MRywE','TuOSq','instance','testId','KEY_TEST_ID','\x20failure\x20reason:\x20','browser','onAfterDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','bind','1456695phpdMm','markSessionStatus','launchcaps','markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','KEY_PAGE_OBJECT','hubUrl','2312660KfYpSk','SESSION_NAME','ZdUme','workerInfo','name','onPlaywrightDispatch','getTrackedInstance','rCafC','KEY_SESSION_ID','parallelIndex','sessionId','browserVersion','24oUFvUb','CREATE','testData\x20from\x20onAfterTest:\x20','sflIf','format','retry','errors','isFalse','gherkinDocument','onAfterTest\x20CBTSession\x20payload:\x20','Error\x20in\x20onDispatchExecute:\x20','xxsBP','1031028bCjHup','context','isPlaywright','gqJKV','MODULE_NAME','page','XRzpR','getInstance','end','arguments','nnyEb','testFrameworkName','onBeforeDriverCreate','OrgxM','pageObject','../framework/constants/testFrameworkConstants.js','../TestInfo.js','logger','../../../helpers/performance/constants.js','browserObject','../../../helpers/helper.js','browserName','1.51.0','vANzH','getTestUUID','Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','mVsCi','getCapabilities','YtiRH','Error\x20in\x20onAfterDriverCreate:\x20','1.52.999','onAfterTest','../../../helpers/classLogger.js','message','isBrowserstackInfra','getThreadId','PPoSI','38586024kgUgqf','inspect','contextObject','markSessionName:\x20Skipping\x20session\x20name\x20marking','info','../../../helpers/helper','KEY_PLATFORM_INDEX','testRunId','with\x20','length','split','start','getTestIdentifierFromTestInfo','shouldSkipSessionName','./baseModule','PlaywrightDriverModule','registerObserver','815020IVOhfY','KnhHR','getState','setSessionStatus','iTmYC','vbKGs','getConfig','getTestDetails','Automation\x20onAfterTest:\x20Test\x20status:\x20','bsParams','cYUCT','FSQkp','QGnjy','vQyph','getProcessId','from','markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available','Vvyqh','getId','CnHSB','8|9|6|5|4|7|3|2|0|10|1','../browserstackCLI.js','../state/automationFrameworkState.js','playwrightVersion','stringify','__workerDetails','WVkWs','toString','setState','getModuleName','KEY_TEST_FRAMEWORK_NAME','smgmy','KEY_CAPABILITIES','vNLpi'];a77_0x2f75=function(){return _0x5b1d5c;};return a77_0x2f75();}const util=require(a77_0x352db8(0x18d)),BaseModule=require(a77_0x352db8(0x15c)),{createClassLogger}=require(a77_0x352db8(0x149)),{getFrameworkVersion}=require('../../../helpers/test-observability/utils'),helper=require(a77_0x352db8(0x153)),{FRAMEWORKS}=require('../../utils/constants'),AutomationFramework=require('../framework/automationFramework.js'),AutomationFrameworkState=require(a77_0x352db8(0x175)),HookState=require('../state/hookState.js'),{playwrightBstackJsExecutor,nestedKeyValue,playwrightAnnotate,getPlaywrightStatus,getPlaywrightSessionName,getCucumberSessionName}=require('../../../helpers/helper.js'),CLIUtils=require(a77_0x352db8(0x185)),BrowserstackCLI=require(a77_0x352db8(0x174)),GrpcClient=require('../grpcClient.js'),PerformanceTester=require('../../../helpers/performance/performance-tester.js'),PerformanceEvents=require(a77_0x352db8(0x1ed))['AUTOMATE_EVENTS'],TestInfo=require(a77_0x352db8(0x1eb)),{getPlaywrightProvider}=require(a77_0x352db8(0x1ef)),TestFrameworkConstants=require(a77_0x352db8(0x1ea)),TestFrameworkState=require(a77_0x352db8(0x1a3));function a77_0x15ce(_0x59761b,_0x3e0ac4){const _0x2f7592=a77_0x2f75();return a77_0x15ce=function(_0x15cea4,_0x515d7e){_0x15cea4=_0x15cea4-0x146;let _0x34f727=_0x2f7592[_0x15cea4];return _0x34f727;},a77_0x15ce(_0x59761b,_0x3e0ac4);}class PlaywrightDriverModule extends BaseModule{static [a77_0x352db8(0x1a6)]=a77_0x352db8(0x1ee);static [a77_0x352db8(0x19d)]=a77_0x352db8(0x150);static ['KEY_PAGE_OBJECT']=a77_0x352db8(0x1e9);static [a77_0x352db8(0x1cb)]=a77_0x352db8(0x1cd);static [a77_0x352db8(0x154)]='platformIndex';static [a77_0x352db8(0x17f)]=a77_0x352db8(0x19b);static ['KEY_HUB_URL']=a77_0x352db8(0x1c2);static ['KEY_PLATFORM_DETAILS']='platformDetails';static [a77_0x352db8(0x1b8)]='testId';[a77_0x352db8(0x1ec)]=createClassLogger(a77_0x352db8(0x15d));constructor(){const _0x53c1a4=a77_0x352db8,_0x515f37={};_0x515f37['WVkWs']=_0x53c1a4(0x173),_0x515f37[_0x53c1a4(0x1da)]=_0x53c1a4(0x15d);const _0xe50572=_0x515f37,_0x244c4c=_0xe50572[_0x53c1a4(0x179)][_0x53c1a4(0x158)]('|');let _0x25e6ea=0x0;while(!![]){switch(_0x244c4c[_0x25e6ea++]){case'0':AutomationFramework[_0x53c1a4(0x15e)](AutomationFrameworkState['CREATE'],HookState[_0x53c1a4(0x1a9)],this['onAfterDriverCreate'][_0x53c1a4(0x1bc)](this));continue;case'1':AutomationFramework[_0x53c1a4(0x15e)](AutomationFrameworkState[_0x53c1a4(0x19e)],HookState[_0x53c1a4(0x1a9)],this[_0x53c1a4(0x148)][_0x53c1a4(0x1bc)](this));continue;case'2':AutomationFramework[_0x53c1a4(0x15e)](AutomationFrameworkState[_0x53c1a4(0x1d0)],HookState[_0x53c1a4(0x1b1)],this[_0x53c1a4(0x1e7)][_0x53c1a4(0x1bc)](this));continue;case'3':this[_0x53c1a4(0x155)]=null;continue;case'4':this[_0x53c1a4(0x1ce)]=null;continue;case'5':this[_0x53c1a4(0x1f0)]=null;continue;case'6':this['playwrightVersion']=null;continue;case'7':this[_0x53c1a4(0x1af)]=[];continue;case'8':super();continue;case'9':this[_0x53c1a4(0x1c7)]=_0xe50572[_0x53c1a4(0x1da)];continue;case'10':AutomationFramework[_0x53c1a4(0x15e)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x53c1a4(0x1a9)],this[_0x53c1a4(0x1c8)][_0x53c1a4(0x1bc)](this));continue;}break;}}[a77_0x352db8(0x17c)](){const _0x523bcc=a77_0x352db8;return PlaywrightDriverModule[_0x523bcc(0x1df)];}async[a77_0x352db8(0x1e7)](_0x10fe0d){const _0xfcaabf=a77_0x352db8,_0x32d758={};_0x32d758['rPOmy']=_0xfcaabf(0x189);const _0x490d74=_0x32d758;try{this[_0xfcaabf(0x1ec)][_0xfcaabf(0x181)](_0x490d74[_0xfcaabf(0x1a8)]);const _0x17cf44=_0x10fe0d[_0xfcaabf(0x1bf)],_0x47e2a6=_0x10fe0d[_0xfcaabf(0x1c2)];AutomationFramework[_0xfcaabf(0x17b)](_0x10fe0d['instance'],PlaywrightDriverModule[_0xfcaabf(0x17f)],_0x17cf44),AutomationFramework[_0xfcaabf(0x17b)](_0x10fe0d['instance'],PlaywrightDriverModule['KEY_HUB_URL'],_0x47e2a6);}catch(_0x48e9a3){this['logger']['error'](_0xfcaabf(0x1aa)+util[_0xfcaabf(0x1d3)](_0x48e9a3));}}async[a77_0x352db8(0x1c8)](_0x466dcf){const _0x1345fb=a77_0x352db8,_0x480425={};_0x480425[_0x1345fb(0x17e)]=function(_0x361dfc,_0x54daea){return _0x361dfc||_0x54daea;};const _0x52d3cb=_0x480425;try{const _0x4d34bf=_0x466dcf?.[_0x1345fb(0x14a)]&&_0x466dcf?.['message']?.['params']&&_0x466dcf?.[_0x1345fb(0x14a)]?.['params']?.[_0x1345fb(0x168)],_0x115c09=_0x466dcf?.[_0x1345fb(0x14a)]&&_0x466dcf?.[_0x1345fb(0x14a)]?.[_0x1345fb(0x1ab)];if(_0x52d3cb[_0x1345fb(0x17e)](_0x4d34bf,_0x115c09)){this[_0x1345fb(0x1ec)][_0x1345fb(0x181)]('onDispatchExecute:\x20Playwright\x20driver\x20is\x20executing\x20tests\x20'+util['inspect'](_0x4d34bf)+'\x20||\x20'+util[_0x1345fb(0x14f)](_0x115c09));const _0x558338=_0x466dcf?.[_0x1345fb(0x1b6)],_0x5b7299=global?.['__workerDetails']?.[_0x1345fb(0x1c6)]?.[_0x1345fb(0x1cc)],_0x572be3=_0x4d34bf?.['sessionId']||_0x115c09?.[_0x1345fb(0x1cd)],_0x3f3816=_0x4d34bf?.[_0x1345fb(0x19f)]||_0x115c09?.[_0x1345fb(0x19f)];_0x572be3&&(this['logger'][_0x1345fb(0x181)](_0x1345fb(0x1b3)+_0x572be3),AutomationFramework[_0x1345fb(0x17b)](_0x558338,PlaywrightDriverModule['KEY_SESSION_ID'],_0x572be3)),_0x5b7299&&(this[_0x1345fb(0x1ec)]['debug']('onDispatchExecute:\x20Playwright\x20platform\x20platformIndex:\x20'+util[_0x1345fb(0x14f)](_0x5b7299)),AutomationFramework[_0x1345fb(0x17b)](_0x558338,PlaywrightDriverModule[_0x1345fb(0x154)],_0x5b7299));}}catch(_0x125960){this[_0x1345fb(0x1ec)][_0x1345fb(0x184)](_0x1345fb(0x1d9)+util['format'](_0x125960));}}async[a77_0x352db8(0x18a)](_0x467382){const _0x812ccd=a77_0x352db8,_0x1a38eb={'yorar':_0x812ccd(0x1bb),'OrgxM':function(_0x4a3a21,_0x29e68d){return _0x4a3a21(_0x29e68d);},'caCmk':'onAfterDriverCreate:\x20Setting\x20page\x20object','mqpro':'onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','TuOSq':_0x812ccd(0x183),'Vvyqh':'onAfterDriverCreate:\x20Setting\x20browser\x20object','RQwqo':_0x812ccd(0x188)};try{this['logger'][_0x812ccd(0x181)](_0x1a38eb[_0x812ccd(0x196)]);const _0xb4e189=_0x467382[_0x812ccd(0x1b6)];this[_0x812ccd(0x176)]=_0x1a38eb[_0x812ccd(0x1e8)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);if(_0x467382[_0x812ccd(0x1e0)]){this[_0x812ccd(0x1ec)]['debug'](_0x1a38eb[_0x812ccd(0x1a2)]),AutomationFramework['setState'](_0xb4e189,PlaywrightDriverModule[_0x812ccd(0x1c1)],_0x467382[_0x812ccd(0x1e0)]);if(_0x467382[_0x812ccd(0x191)]){this[_0x812ccd(0x1ec)][_0x812ccd(0x181)](_0x1a38eb['mqpro']);const _0x27288a=_0x467382['testInfo']?.[_0x812ccd(0x186)]?.['id']||_0x467382[_0x812ccd(0x191)]?.[_0x812ccd(0x1b7)];AutomationFramework[_0x812ccd(0x17b)](_0xb4e189,PlaywrightDriverModule[_0x812ccd(0x1b8)],_0x27288a),await this[_0x812ccd(0x182)](_0x467382[_0x812ccd(0x191)]);}}_0x467382[_0x812ccd(0x1dc)]&&(this[_0x812ccd(0x1ec)][_0x812ccd(0x181)](_0x1a38eb[_0x812ccd(0x1b5)]),AutomationFramework[_0x812ccd(0x17b)](_0xb4e189,PlaywrightDriverModule[_0x812ccd(0x19d)],_0x467382[_0x812ccd(0x1dc)]));if(_0x467382[_0x812ccd(0x1ba)]){this[_0x812ccd(0x1ec)][_0x812ccd(0x181)](_0x1a38eb[_0x812ccd(0x170)]);const _0x17fd9b=global?.[_0x812ccd(0x178)]?.[_0x812ccd(0x1c6)]?.[_0x812ccd(0x1cc)];AutomationFramework[_0x812ccd(0x17b)](_0xb4e189,PlaywrightDriverModule[_0x812ccd(0x1a6)],_0x467382['browser']),AutomationFramework[_0x812ccd(0x17b)](_0xb4e189,PlaywrightDriverModule[_0x812ccd(0x154)],_0x17fd9b);const _0x2eb31f={};_0x2eb31f[_0x812ccd(0x1dd)]=!![];const _0x1a08e9=Buffer[_0x812ccd(0x16e)](JSON['stringify'](_0x2eb31f)[_0x812ccd(0x17a)](_0x1a38eb[_0x812ccd(0x1ac)])),_0x47974a=await GrpcClient[_0x812ccd(0x1e2)]()[_0x812ccd(0x1a1)]({'platformIndex':_0x17fd9b,'ref':_0xb4e189['getRef'](),'userInputParams':_0x1a08e9});helper[_0x812ccd(0x1d6)](helper[_0x812ccd(0x14b)]())&&AutomationFramework[_0x812ccd(0x17b)](_0xb4e189,PlaywrightDriverModule[_0x812ccd(0x17f)],JSON['parse'](Buffer[_0x812ccd(0x16e)](_0x47974a[_0x812ccd(0x1f6)](),_0x1a38eb[_0x812ccd(0x1ac)])[_0x812ccd(0x17a)]()));}}catch(_0x6661b){this['logger'][_0x812ccd(0x184)](_0x812ccd(0x146)+util[_0x812ccd(0x1d3)](_0x6661b));}}async[a77_0x352db8(0x148)](_0x1ec125){const _0x37c935=a77_0x352db8,_0x417026={'cYUCT':'Automation\x20onAfterTest:\x20Test\x20completed','FZhKf':_0x37c935(0x1f4),'LvYGQ':function(_0x34f803,_0x10af4b){return _0x34f803(_0x10af4b);},'zLQSL':function(_0x131b82,_0x290f9f){return _0x131b82(_0x290f9f);},'iTmYC':function(_0x41d0f3,_0x2e88c4,_0x2fef84){return _0x41d0f3(_0x2e88c4,_0x2fef84);},'CnHSB':_0x37c935(0x1d5),'FSQkp':function(_0x115ad4,_0x284a11){return _0x115ad4>_0x284a11;},'nnyEb':function(_0x2b62f7,_0x4ed90b){return _0x2b62f7+_0x4ed90b;},'GBDvx':'testId:\x20','vbKGs':_0x37c935(0x1d1),'euesw':_0x37c935(0x193),'vNLpi':_0x37c935(0x147),'YfvfM':function(_0x54c380,_0x5b7243){return _0x54c380(_0x5b7243);},'vQyph':_0x37c935(0x1f1),'gqJKV':function(_0x443d23,_0x1d5b3f){return _0x443d23>_0x1d5b3f;},'kfGLp':_0x37c935(0x188),'sflIf':_0x37c935(0x197)};this[_0x37c935(0x1ec)][_0x37c935(0x181)](_0x417026[_0x37c935(0x169)]);const _0x3e4d80=_0x1ec125[_0x37c935(0x1b6)];if(!_0x3e4d80){this[_0x37c935(0x1ec)][_0x37c935(0x181)](_0x417026[_0x37c935(0x1ae)]);return;}const _0x2ac6b9=_0x1ec125[_0x37c935(0x191)],_0x3da09c=_0x2ac6b9['id']||_0x1ec125['testInfo']?.[_0x37c935(0x186)]?.['id']||_0x1ec125[_0x37c935(0x191)]?.[_0x37c935(0x1b7)],_0x3b11f5=_0x2ac6b9['status'],_0x1aad48=_0x417026[_0x37c935(0x187)](getPlaywrightStatus,_0x3b11f5);let _0x1f094e;_0x2ac6b9[_0x37c935(0x1a5)]||_0x2ac6b9[_0x37c935(0x1d7)]?_0x1f094e=_0x417026[_0x37c935(0x187)](getCucumberSessionName,_0x2ac6b9):_0x1f094e=_0x417026['zLQSL'](getPlaywrightSessionName,_0x2ac6b9);const _0x3f150a=_0x417026[_0x37c935(0x163)](nestedKeyValue,_0x2ac6b9,[_0x417026[_0x37c935(0x172)]]);let _0x7b4247=null;_0x3f150a&&_0x417026[_0x37c935(0x16a)](_0x3f150a['length'],0x0)&&(_0x7b4247=_0x3f150a[0x0][_0x37c935(0x14a)]);this[_0x37c935(0x1ec)][_0x37c935(0x181)](_0x37c935(0x167)+_0x1aad48+_0x37c935(0x1b9)+_0x7b4247);const _0x29bd46=TestInfo[_0x37c935(0x1f3)](TestInfo[_0x37c935(0x15a)](_0x2ac6b9,_0x2ac6b9[_0x37c935(0x1d4)])),_0x1da8de=TestInfo[_0x37c935(0x166)](TestInfo['getTestIdentifierFromTestInfo'](_0x2ac6b9,_0x2ac6b9['retry']));this['logger']['info'](_0x417026[_0x37c935(0x1e5)](_0x417026['GBDvx'],_0x3da09c)),this[_0x37c935(0x1ec)][_0x37c935(0x152)](_0x417026['nnyEb'](_0x417026[_0x37c935(0x164)],util[_0x37c935(0x14f)](_0x1da8de)));const _0x4c85ee=AutomationFramework[_0x37c935(0x161)](_0x3e4d80,PlaywrightDriverModule[_0x37c935(0x154)])||0x0,_0x1518c3=_0x1da8de[TestFrameworkConstants[_0x37c935(0x17d)]]||_0x417026[_0x37c935(0x1b0)],_0x2ae4a8=_0x1da8de[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]||_0x417026[_0x37c935(0x180)],_0x3b2113=TestFrameworkState['TEST'][_0x37c935(0x17a)]()['split']('.')[0x1],_0x3e6534=HookState['POST'][_0x37c935(0x17a)]()[_0x37c935(0x158)]('.')[0x1],_0x426dc5=_0x3e4d80[_0x37c935(0x194)](),_0x3bf342=AutomationFramework[_0x37c935(0x161)](_0x3e4d80,PlaywrightDriverModule['KEY_HUB_URL'],''),_0x4e7542={'provider':_0x417026[_0x37c935(0x1a0)](getPlaywrightProvider,_0x3bf342),'frameworkName':_0x417026[_0x37c935(0x1b0)],'frameworkVersion':_0x417026[_0x37c935(0x16c)],'frameworkSessionId':AutomationFramework['getState'](_0x3e4d80,PlaywrightDriverModule[_0x37c935(0x1cb)],''),'ref':_0x3e4d80[_0x37c935(0x192)](),'hubUrl':_0x3bf342};let _0x3dd7f3=AutomationFramework[_0x37c935(0x161)](_0x3e4d80,PlaywrightDriverModule[_0x37c935(0x17f)],{});_0x3dd7f3&&_0x417026[_0x37c935(0x1de)](Object['keys'](_0x3dd7f3)[_0x37c935(0x157)],0x0)?_0x3dd7f3=Buffer[_0x37c935(0x16e)](JSON[_0x37c935(0x177)](_0x3dd7f3))[_0x37c935(0x17a)](_0x417026['kfGLp']):_0x3dd7f3={};const _0x3b8e47={'hash':_0x426dc5[_0x37c935(0x171)](),'threadId':_0x426dc5[_0x37c935(0x14c)]()[_0x37c935(0x17a)](),'processId':_0x426dc5[_0x37c935(0x16d)]()[_0x37c935(0x17a)]()},_0x1d77da={};_0x1d77da['platformIndex']=_0x4c85ee,_0x1d77da[_0x37c935(0x1e6)]=_0x1518c3,_0x1d77da['testFrameworkVersion']=_0x2ae4a8,_0x1d77da['testFrameworkState']=_0x3b2113,_0x1d77da['testHookState']=_0x3e6534,_0x1d77da[_0x37c935(0x1ad)]=_0x29bd46,_0x1d77da[_0x37c935(0x195)]=_0x4e7542,_0x1d77da[_0x37c935(0x19b)]=_0x3dd7f3,_0x1d77da['executionContext']=_0x3b8e47;const _0xa91c3f=_0x1d77da;this['logger'][_0x37c935(0x181)](_0x37c935(0x1d8)+util['format'](_0xa91c3f)),this[_0x37c935(0x1ec)]['debug']('onAfterTest\x20CBTSession\x20complete\x20for\x20testId:\x20'+_0x3da09c);if(!_0x1aad48){this['logger']['debug'](_0x417026[_0x37c935(0x1d2)],_0x3b11f5[_0x37c935(0x19c)]);return;}this[_0x37c935(0x1ec)]['debug']('Automation\x20onAfterTest:\x20Setting\x20session\x20status\x20for\x20testId:\x20'+_0x3da09c),await this[_0x37c935(0x1be)](_0x3e4d80,_0x1f094e,_0x1aad48,_0x7b4247);}async[a77_0x352db8(0x1be)](_0x54d436,_0x43a067,_0x1bfd88,_0x176040){const _0x26d0f7=a77_0x352db8,_0x255d61={'mVsCi':'markSessionStatus:\x20Skipping\x20session\x20status\x20marking','QAOmH':_0x26d0f7(0x16f),'FfuhG':_0x26d0f7(0x1c0),'XZujx':_0x26d0f7(0x197),'RgzFF':_0x26d0f7(0x162),'MRywE':'reason','rCafC':'Session','QGnjy':function(_0x500331,_0x244dad){return _0x500331===_0x244dad;},'ZdUme':'passed','KnhHR':_0x26d0f7(0x152),'YtiRH':'error','SOmSI':function(_0x40db95,_0x54f7e5,_0x227e2b,_0x2ff9a8){return _0x40db95(_0x54f7e5,_0x227e2b,_0x2ff9a8);},'XRzpR':_0x26d0f7(0x1a4),'STUdt':function(_0x18efa6,_0x169092,_0x173b45){return _0x18efa6(_0x169092,_0x173b45);}};if(CLIUtils['shouldSkipSessionStatus'](BrowserstackCLI[_0x26d0f7(0x1e2)]()['getConfig']())){this[_0x26d0f7(0x1ec)][_0x26d0f7(0x181)](_0x255d61[_0x26d0f7(0x1f5)]);return;}const _0x3afbb8=_0x54d436;if(!_0x3afbb8){this[_0x26d0f7(0x1ec)][_0x26d0f7(0x181)](_0x255d61[_0x26d0f7(0x18c)]);return;}const _0x40cf2d=AutomationFramework[_0x26d0f7(0x161)](_0x3afbb8,PlaywrightDriverModule[_0x26d0f7(0x1c1)]);if(!_0x40cf2d){this[_0x26d0f7(0x1ec)][_0x26d0f7(0x181)](_0x255d61['FfuhG']);return;}const _0x2c471e=_0x1bfd88;if(!_0x2c471e){this[_0x26d0f7(0x1ec)][_0x26d0f7(0x181)](_0x255d61[_0x26d0f7(0x1b2)],_0x2c471e);return;}const _0x511c61={};_0x511c61['status']=_0x2c471e;const _0x481773={};_0x481773[_0x26d0f7(0x199)]=_0x255d61[_0x26d0f7(0x18e)],_0x481773[_0x26d0f7(0x1e4)]=_0x511c61;const _0x27648d=_0x481773;_0x176040&&(_0x27648d['arguments'][_0x255d61[_0x26d0f7(0x1b4)]]=_0x176040);const _0x5d1693=(_0x43a067?_0x43a067:_0x255d61[_0x26d0f7(0x1ca)])+'\x20'+_0x2c471e+'\x20'+(_0x176040?_0x26d0f7(0x156)+_0x176040:''),_0xa24fc3=_0x255d61[_0x26d0f7(0x16b)](_0x2c471e,_0x255d61[_0x26d0f7(0x1c5)])?_0x255d61[_0x26d0f7(0x160)]:_0x255d61[_0x26d0f7(0x1f7)];await _0x255d61['SOmSI'](playwrightAnnotate,_0x40cf2d,_0x5d1693,_0xa24fc3),PerformanceTester['start'](PerformanceEvents['SESSION_STATUS']),this[_0x26d0f7(0x1ec)][_0x26d0f7(0x181)](_0x255d61[_0x26d0f7(0x1e1)]),await _0x255d61['STUdt'](playwrightBstackJsExecutor,_0x40cf2d,_0x27648d),PerformanceTester[_0x26d0f7(0x1e3)](PerformanceEvents[_0x26d0f7(0x198)]);}async[a77_0x352db8(0x182)](_0x134a01){const _0x4f2ece=a77_0x352db8,_0x3383ee={'nMDlf':_0x4f2ece(0x151),'PPoSI':function(_0x5ec3f2,_0x3402ac){return _0x5ec3f2(_0x3402ac);},'vANzH':'setSessionName','tMnKM':function(_0x5b8b69,_0x2eb7f1,_0x21c8d1){return _0x5b8b69(_0x2eb7f1,_0x21c8d1);}};try{if(CLIUtils[_0x4f2ece(0x15b)](BrowserstackCLI['getInstance']()[_0x4f2ece(0x165)]())){this['logger'][_0x4f2ece(0x181)](_0x3383ee[_0x4f2ece(0x1a7)]);return;}const _0xc33288=AutomationFramework[_0x4f2ece(0x161)](AutomationFramework[_0x4f2ece(0x1c9)](),PlaywrightDriverModule[_0x4f2ece(0x1c1)]);let _0x27c762;_0x134a01['pickle']||_0x134a01[_0x4f2ece(0x1d7)]?_0x27c762=_0x3383ee[_0x4f2ece(0x14d)](getCucumberSessionName,_0x134a01):_0x27c762=_0x3383ee[_0x4f2ece(0x14d)](getPlaywrightSessionName,_0x134a01);const _0x45d34f={};_0x45d34f[_0x4f2ece(0x1c7)]=_0x27c762;const _0x44f816={};_0x44f816['action']=_0x3383ee[_0x4f2ece(0x1f2)],_0x44f816['arguments']=_0x45d34f;const _0x521aca=_0x44f816;PerformanceTester[_0x4f2ece(0x159)](PerformanceEvents[_0x4f2ece(0x1c4)]),await _0x3383ee['tMnKM'](playwrightBstackJsExecutor,_0xc33288,_0x521aca),PerformanceTester[_0x4f2ece(0x1e3)](PerformanceEvents[_0x4f2ece(0x1c4)]);}catch(_0x4a5d31){PerformanceTester[_0x4f2ece(0x1e3)](PerformanceEvents[_0x4f2ece(0x1c4)],![],util[_0x4f2ece(0x1d3)](_0x4a5d31)),this['logger'][_0x4f2ece(0x184)](_0x4f2ece(0x18b)+util[_0x4f2ece(0x1d3)](_0x4a5d31));}}}PlaywrightDriverModule[a77_0x352db8(0x1df)]=a77_0x352db8(0x15d),module[a77_0x352db8(0x18f)]=PlaywrightDriverModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a78_0x377869=a78_0xd26b;(function(_0x2c84cb,_0x1cc8a1){const _0x4afcea=a78_0xd26b,_0x20bfac=_0x2c84cb();while(!![]){try{const _0x466d03=parseInt(_0x4afcea(0x185))/0x1*(parseInt(_0x4afcea(0x15b))/0x2)+-parseInt(_0x4afcea(0x153))/0x3+-parseInt(_0x4afcea(0x164))/0x4*(-parseInt(_0x4afcea(0x194))/0x5)+parseInt(_0x4afcea(0x179))/0x6+parseInt(_0x4afcea(0x182))/0x7+parseInt(_0x4afcea(0x162))/0x8+parseInt(_0x4afcea(0x167))/0x9*(-parseInt(_0x4afcea(0x1a1))/0xa);if(_0x466d03===_0x1cc8a1)break;else _0x20bfac['push'](_0x20bfac['shift']());}catch(_0x5de1bc){_0x20bfac['push'](_0x20bfac['shift']());}}}(a78_0x44c7,0x34f4d));const util=require(a78_0x377869(0x165)),BaseModule=require(a78_0x377869(0x1bf)),{createClassLogger}=require(a78_0x377869(0x178)),AutomationFramework=require('../framework/automationFramework.js'),AutomationFrameworkState=require(a78_0x377869(0x15d)),HookState=require(a78_0x377869(0x16b)),TestFramework=require(a78_0x377869(0x184)),TestFrameworkState=require('../state/testFrameworkState.js'),PlaywrightDriverModule=require('./playwrightDriverModule.js'),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),GrpcClient=require(a78_0x377869(0x1ab)),CLIUtils=require(a78_0x377869(0x15f)),TestInfo=require(a78_0x377869(0x19c)),testHubConstants=require(a78_0x377869(0x190)),BrowserstackCLI=require(a78_0x377869(0x16c)),{getPlaywrightProvider}=require('../../../helpers/helper.js'),{getTestRunIdentifier}=require('../../playwright/reporter/pwUtils.js');function a78_0xd26b(_0xbb91d0,_0x2be724){const _0x44c730=a78_0x44c7();return a78_0xd26b=function(_0xd26b5a,_0x1c6f81){_0xd26b5a=_0xd26b5a-0x153;let _0x5d9c6e=_0x44c730[_0xd26b5a];return _0x5d9c6e;},a78_0xd26b(_0xbb91d0,_0x2be724);}class TestHubModule extends BaseModule{[a78_0x377869(0x161)]=createClassLogger(a78_0x377869(0x1b7));constructor(_0x39d265){const _0x25b68a=a78_0x377869,_0x227b86={};_0x227b86['wrqKb']=_0x25b68a(0x1c2),_0x227b86[_0x25b68a(0x188)]=_0x25b68a(0x1b7);const _0x18dac5=_0x227b86,_0x3646fd=_0x18dac5[_0x25b68a(0x1b3)]['split']('|');let _0x2bc8ed=0x0;while(!![]){switch(_0x3646fd[_0x2bc8ed++]){case'0':super();continue;case'1':AutomationFramework[_0x25b68a(0x1c0)](AutomationFrameworkState[_0x25b68a(0x169)],HookState['POST'],this[_0x25b68a(0x1a0)][_0x25b68a(0x1b4)](this));continue;case'2':process[_0x25b68a(0x166)][testHubConstants[_0x25b68a(0x183)][_0x25b68a(0x18e)]]=this[_0x25b68a(0x1a4)][_0x25b68a(0x187)]();continue;case'3':this[_0x25b68a(0x159)]=_0x18dac5['YjqKS'];continue;case'4':process[_0x25b68a(0x166)][testHubConstants[_0x25b68a(0x183)][_0x25b68a(0x1b1)]]=this['testhubConfig'][_0x25b68a(0x175)]();continue;case'5':this[_0x25b68a(0x1a4)]=_0x39d265;continue;case'6':Object['values'](TestFrameworkState)[_0x25b68a(0x17e)](_0x27aa0c=>{const _0x2a7366=_0x25b68a;Object['values'](HookState)[_0x2a7366(0x17e)](_0x1b0498=>{const _0x171ece=_0x2a7366;TestFramework[_0x171ece(0x1c0)](_0x27aa0c,_0x1b0498,this[_0x171ece(0x1b8)][_0x171ece(0x1b4)](this));});});continue;case'7':BrowserstackCLI[_0x25b68a(0x1bc)]=this['testhubConfig']['getBuildHashedId']();continue;}break;}}['getModuleName'](){return TestHubModule['MODULE_NAME'];}[a78_0x377869(0x1b8)](_0x69a09e){const _0x3d6427=a78_0x377869,_0x436d41={};_0x436d41[_0x3d6427(0x1aa)]=function(_0x36fb68,_0x55cf89){return _0x36fb68===_0x55cf89;};const _0x104169=_0x436d41,_0xe03d7=_0x69a09e[_0x3d6427(0x177)],_0x3516c5=_0xe03d7[_0x3d6427(0x1c1)]();(_0x104169[_0x3d6427(0x1aa)](_0x3516c5,TestFrameworkState[_0x3d6427(0x19d)])||CLIUtils['matchHookRegex'](_0x3516c5['toString']()[_0x3d6427(0x158)]('.')[0x1]))&&this['sendTestFrameworkEvent'](_0x69a09e);}async[a78_0x377869(0x17a)](_0x75c02e){const _0xdc5211=a78_0x377869,_0x570bba={'vzseA':function(_0x30b20c,_0x5b0c3d,_0x415f0c){return _0x30b20c(_0x5b0c3d,_0x415f0c);},'TEHtx':_0xdc5211(0x1a6)};try{const _0x5e844c=_0x75c02e[_0xdc5211(0x171)]['id'],_0x12ae9a=_0x570bba[_0xdc5211(0x192)](getTestRunIdentifier,_0x75c02e['test'],_0x75c02e[_0xdc5211(0x1a9)][_0xdc5211(0x18a)]),_0x5f121d=_0x75c02e['instance'],_0xe2dc61=_0x5f121d[_0xdc5211(0x17d)](),_0x28572d=_0x5f121d[_0xdc5211(0x1b5)]()[_0xdc5211(0x186)](_0x12ae9a);this[_0xdc5211(0x161)][_0xdc5211(0x16e)](_0xdc5211(0x170)+_0x5e844c);const {[TestFrameworkConstants[_0xdc5211(0x18b)]]:_0x3eca5b='',[TestFrameworkConstants[_0xdc5211(0x1a5)]]:_0x744bf9='',[TestFrameworkConstants[_0xdc5211(0x198)]]:_0x12f422='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x3ab4fe=''}=_0x28572d,_0x2ca3a9=_0x5f121d[_0xdc5211(0x1c1)]()[_0xdc5211(0x17f)]()[_0xdc5211(0x158)]('.')[0x1],_0x1c9a33=_0x5f121d[_0xdc5211(0x1a3)]()[_0xdc5211(0x17f)]()[_0xdc5211(0x158)]('.')[0x1],_0x18ced3=global?.[_0xdc5211(0x1b2)]?.[_0xdc5211(0x168)]?.[_0xdc5211(0x17b)];;const _0x5be0b9=_0x5f121d[_0xdc5211(0x15a)](),_0x32697e=Buffer[_0xdc5211(0x172)](JSON[_0xdc5211(0x1a8)](_0x28572d))[_0xdc5211(0x17f)](_0x570bba[_0xdc5211(0x1af)]),_0x26092e={'hash':_0xe2dc61[_0xdc5211(0x16d)](),'threadId':_0xe2dc61[_0xdc5211(0x19f)]()[_0xdc5211(0x17f)](),'processId':_0xe2dc61[_0xdc5211(0x1bb)]()['toString']()},_0x53d69e={};_0x53d69e[_0xdc5211(0x16f)]=_0x18ced3,_0x53d69e[_0xdc5211(0x18d)]=_0x3eca5b,_0x53d69e[_0xdc5211(0x174)]=_0x744bf9,_0x53d69e[_0xdc5211(0x1ba)]=_0x2ca3a9,_0x53d69e[_0xdc5211(0x15e)]=_0x1c9a33,_0x53d69e[_0xdc5211(0x180)]=_0x12f422,_0x53d69e[_0xdc5211(0x196)]=_0x3ab4fe,_0x53d69e[_0xdc5211(0x1a2)]=_0x5be0b9,_0x53d69e[_0xdc5211(0x1c5)]=_0x32697e,_0x53d69e[_0xdc5211(0x197)]=_0x26092e;const _0x4ee435=_0x53d69e,_0x4c26da=await GrpcClient[_0xdc5211(0x19b)]()['testFrameworkEvent'](_0x4ee435);this[_0xdc5211(0x161)][_0xdc5211(0x16e)](_0xdc5211(0x181)+_0x5e844c+_0xdc5211(0x1ad)+_0x2ca3a9+_0xdc5211(0x156)+_0x1c9a33);}catch(_0x36b8a0){this[_0xdc5211(0x161)]['error'](_0xdc5211(0x16a)+util[_0xdc5211(0x1c6)](_0x36b8a0));}}async[a78_0x377869(0x1a0)](_0x20c151){const _0x4ec0cb=a78_0x377869,_0x14f458={'DhYZY':function(_0x1de557,_0x4fdbaa){return _0x1de557(_0x4fdbaa);},'QBUgj':_0x4ec0cb(0x1a6)};try{if(_0x20c151[_0x4ec0cb(0x1b9)]){const _0x495407=_0x20c151[_0x4ec0cb(0x18f)]['testId'];this[_0x4ec0cb(0x161)][_0x4ec0cb(0x16e)](_0x4ec0cb(0x18c)+_0x495407);const _0x3483e3=TestInfo[_0x4ec0cb(0x17c)](_0x20c151[_0x4ec0cb(0x18f)],_0x20c151[_0x4ec0cb(0x18f)][_0x4ec0cb(0x18a)]),_0x181fe3=TestInfo[_0x4ec0cb(0x1c3)](_0x3483e3),_0x2971fa=TestInfo[_0x4ec0cb(0x163)](_0x3483e3),_0xed10b8=_0x20c151[_0x4ec0cb(0x177)],_0x14e682=AutomationFramework[_0x4ec0cb(0x19e)](_0xed10b8,PlaywrightDriverModule[_0x4ec0cb(0x1a7)]),_0x442f28=_0x2971fa[TestFrameworkConstants[_0x4ec0cb(0x18b)]],_0x8f4b0c=_0x2971fa[TestFrameworkConstants[_0x4ec0cb(0x1a5)]],_0x51157d=TestFrameworkState[_0x4ec0cb(0x19d)][_0x4ec0cb(0x17f)]()[_0x4ec0cb(0x158)]('.')[0x1],_0x363fd3=HookState[_0x4ec0cb(0x195)][_0x4ec0cb(0x17f)]()[_0x4ec0cb(0x158)]('.')[0x1],_0xa325fd=_0xed10b8[_0x4ec0cb(0x17d)](),_0x591d70=AutomationFramework[_0x4ec0cb(0x19e)](_0xed10b8,PlaywrightDriverModule[_0x4ec0cb(0x1be)],''),_0x56a0ed={'provider':_0x14f458[_0x4ec0cb(0x1ac)](getPlaywrightProvider,_0x591d70),'frameworkName':_0xed10b8[_0x4ec0cb(0x173)],'frameworkVersion':_0xed10b8[_0x4ec0cb(0x154)],'frameworkSessionId':AutomationFramework['getState'](_0xed10b8,PlaywrightDriverModule[_0x4ec0cb(0x191)],''),'ref':_0xed10b8[_0x4ec0cb(0x15a)](),'hubUrl':_0x591d70};let _0x32108b=AutomationFramework[_0x4ec0cb(0x19e)](_0xed10b8,PlaywrightDriverModule[_0x4ec0cb(0x1b6)],{});_0x32108b=Buffer['from'](JSON['stringify'](_0x32108b))[_0x4ec0cb(0x17f)](_0x14f458[_0x4ec0cb(0x176)]);const _0x2efcc6={'hash':_0xa325fd[_0x4ec0cb(0x16d)](),'threadId':_0xa325fd[_0x4ec0cb(0x19f)]()[_0x4ec0cb(0x17f)](),'processId':_0xa325fd['getProcessId']()[_0x4ec0cb(0x17f)]()},_0x1d6c7e={};_0x1d6c7e[_0x4ec0cb(0x16f)]=_0x14e682,_0x1d6c7e[_0x4ec0cb(0x18d)]=_0x442f28,_0x1d6c7e['testFrameworkVersion']=_0x8f4b0c,_0x1d6c7e['testFrameworkState']=_0x51157d,_0x1d6c7e[_0x4ec0cb(0x155)]=_0x363fd3,_0x1d6c7e[_0x4ec0cb(0x160)]=_0x181fe3,_0x1d6c7e[_0x4ec0cb(0x157)]=_0x56a0ed,_0x1d6c7e[_0x4ec0cb(0x1b0)]=_0x32108b,_0x1d6c7e[_0x4ec0cb(0x197)]=_0x2efcc6;const _0x51204c=_0x1d6c7e;this[_0x4ec0cb(0x161)][_0x4ec0cb(0x16e)](_0x4ec0cb(0x189)+util[_0x4ec0cb(0x1c6)](_0x51204c));const _0xf6f672=await GrpcClient[_0x4ec0cb(0x19b)]()[_0x4ec0cb(0x193)](_0x51204c);this['logger'][_0x4ec0cb(0x16e)](_0x4ec0cb(0x15c)+_0x495407);}}catch(_0x539003){this[_0x4ec0cb(0x161)][_0x4ec0cb(0x1ae)](_0x4ec0cb(0x199)+util['format'](_0x539003));}}}TestHubModule[a78_0x377869(0x19a)]='TestHubModule',TestHubModule['KEY_TEST_DEFERRED']=a78_0x377869(0x1bd),module[a78_0x377869(0x1c4)]=TestHubModule;function a78_0x44c7(){const _0x5813aa=['Error\x20in\x20sending\x20CBTSession:\x20','MODULE_NAME','getInstance','../TestInfo.js','TEST','getState','getThreadId','onPageCreate','7801720CRrfuJ','uuid','getCurrentHookState','testhubConfig','KEY_TEST_FRAMEWORK_VERSION','base64','KEY_PLATFORM_INDEX','stringify','result','msVzd','../grpcClient.js','DhYZY','\x20testState:\x20','error','TEHtx','capabilities','BROWSERSTACK_TESTHUB_UUID','__workerDetails','wrqKb','bind','getAllData','KEY_CAPABILITIES','TestHubModule','onAllTestEvents','page','testFrameworkState','getProcessId','O11yHashedID','test_deferred','KEY_HUB_URL','./baseModule','registerObserver','getCurrentTestState','0|3|5|1|6|2|4|7','getTestUUID','exports','eventJson','format','413403aizGAA','frameworkVersion','testHookState','\x20hookState:\x20','automationSession','split','name','getRef','842258uuMRRZ','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','../state/automationFrameworkState.js','hookState','../cliUtils.js','testUuid','logger','2416728HRcqcJ','getTestDetails','1280hetrNE','util','env','9wTiQgS','workerInfo','CREATE','Error\x20in\x20sendTestFrameworkEvent:\x20','../state/hookState.js','../browserstackCLI.js','getId','debug','platformIndex','sendTestFrameworkEvent\x20testId:\x20','test','from','frameworkName','testFrameworkVersion','getBuildHashedId','QBUgj','instance','../../../helpers/classLogger.js','288846kaEYVX','sendTestFrameworkEvent','parallelIndex','getTestIdentifierFromTestInfo','getContext','forEach','toString','startedAt','sendTestFrameworkEvent\x20complete\x20for\x20testId:\x20','445767zuYTms','ENV_VAR','../framework/testFramework.js','1iPqBla','get','getJwt','YjqKS','onPageCreate\x20CBTSession\x20payload:\x20','retry','KEY_TEST_FRAMEWORK_NAME','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','testFrameworkName','BROWSERSTACK_TESTHUB_JWT','testInfo','../../../helpers/testhub/constants','KEY_SESSION_ID','vzseA','testSessionEvent','4685NmjyZF','POST','endedAt','executionContext','KEY_TEST_STARTED_AT'];a78_0x44c7=function(){return _0x5813aa;};return a78_0x44c7();}
|
|
1
|
+
const a78_0x2d959c=a78_0x2554;(function(_0x3638e2,_0x559114){const _0x2aac98=a78_0x2554,_0x35276a=_0x3638e2();while(!![]){try{const _0x4af41c=-parseInt(_0x2aac98(0x190))/0x1*(parseInt(_0x2aac98(0x17c))/0x2)+-parseInt(_0x2aac98(0x193))/0x3*(parseInt(_0x2aac98(0x18e))/0x4)+parseInt(_0x2aac98(0x155))/0x5+-parseInt(_0x2aac98(0x163))/0x6*(parseInt(_0x2aac98(0x17e))/0x7)+parseInt(_0x2aac98(0x15a))/0x8+-parseInt(_0x2aac98(0x15b))/0x9*(parseInt(_0x2aac98(0x1b8))/0xa)+parseInt(_0x2aac98(0x186))/0xb;if(_0x4af41c===_0x559114)break;else _0x35276a['push'](_0x35276a['shift']());}catch(_0x24747e){_0x35276a['push'](_0x35276a['shift']());}}}(a78_0x2c5f,0x7ca81));const util=require(a78_0x2d959c(0x19e)),BaseModule=require('./baseModule'),{createClassLogger}=require(a78_0x2d959c(0x1ab)),AutomationFramework=require(a78_0x2d959c(0x19d)),AutomationFrameworkState=require(a78_0x2d959c(0x191)),HookState=require(a78_0x2d959c(0x1a0)),TestFramework=require(a78_0x2d959c(0x1ac)),TestFrameworkState=require(a78_0x2d959c(0x188)),PlaywrightDriverModule=require(a78_0x2d959c(0x165)),TestFrameworkConstants=require(a78_0x2d959c(0x185)),GrpcClient=require(a78_0x2d959c(0x195)),CLIUtils=require(a78_0x2d959c(0x158)),TestInfo=require(a78_0x2d959c(0x18f)),testHubConstants=require(a78_0x2d959c(0x169)),BrowserstackCLI=require(a78_0x2d959c(0x16a)),{getPlaywrightProvider}=require(a78_0x2d959c(0x154)),{getTestRunIdentifier}=require(a78_0x2d959c(0x1a2));class TestHubModule extends BaseModule{[a78_0x2d959c(0x187)]=createClassLogger('TestHubModule');constructor(_0x504780){const _0x58ed3a=a78_0x2d959c,_0x3169a2={};_0x3169a2[_0x58ed3a(0x175)]='4|6|1|5|3|7|2|0',_0x3169a2['pQgtu']=_0x58ed3a(0x18b);const _0x3d1ae2=_0x3169a2,_0x44c5a3=_0x3d1ae2[_0x58ed3a(0x175)][_0x58ed3a(0x171)]('|');let _0x194e29=0x0;while(!![]){switch(_0x44c5a3[_0x194e29++]){case'0':BrowserstackCLI['O11yHashedID']=this[_0x58ed3a(0x19b)][_0x58ed3a(0x199)]();continue;case'1':this[_0x58ed3a(0x19b)]=_0x504780;continue;case'2':process[_0x58ed3a(0x17d)][testHubConstants[_0x58ed3a(0x16d)]['BROWSERSTACK_TESTHUB_UUID']]=this[_0x58ed3a(0x19b)][_0x58ed3a(0x199)]();continue;case'3':Object[_0x58ed3a(0x1b4)](TestFrameworkState)['forEach'](_0x510d1b=>{const _0x5772d9=_0x58ed3a;Object[_0x5772d9(0x1b4)](HookState)['forEach'](_0x3151e8=>{const _0x3bf2b3=_0x5772d9;TestFramework[_0x3bf2b3(0x179)](_0x510d1b,_0x3151e8,this[_0x3bf2b3(0x1b0)][_0x3bf2b3(0x170)](this));});});continue;case'4':super();continue;case'5':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x58ed3a(0x197)],HookState[_0x58ed3a(0x192)],this['onPageCreate'][_0x58ed3a(0x170)](this));continue;case'6':this[_0x58ed3a(0x1a9)]=_0x3d1ae2[_0x58ed3a(0x184)];continue;case'7':process[_0x58ed3a(0x17d)][testHubConstants[_0x58ed3a(0x16d)][_0x58ed3a(0x1af)]]=this[_0x58ed3a(0x19b)][_0x58ed3a(0x1a5)]();continue;}break;}}[a78_0x2d959c(0x182)](){return TestHubModule['MODULE_NAME'];}['onAllTestEvents'](_0x1343c9){const _0x103cc6=a78_0x2d959c,_0x4d2cc2={};_0x4d2cc2[_0x103cc6(0x159)]=function(_0x2eb0cb,_0x3ae766){return _0x2eb0cb===_0x3ae766;};const _0x61436a=_0x4d2cc2,_0x5e160a=_0x1343c9[_0x103cc6(0x1b2)],_0x2c7fa9=_0x5e160a[_0x103cc6(0x1a8)]();(_0x61436a[_0x103cc6(0x159)](_0x2c7fa9,TestFrameworkState[_0x103cc6(0x19a)])||CLIUtils['matchHookRegex'](_0x2c7fa9['toString']()[_0x103cc6(0x171)]('.')[0x1]))&&this[_0x103cc6(0x1ae)](_0x1343c9);}async[a78_0x2d959c(0x1ae)](_0x18c3d1){const _0x13152f=a78_0x2d959c,_0x4885b4={'DYHRv':function(_0x18d333,_0x27c9f4,_0x1a0df4){return _0x18d333(_0x27c9f4,_0x1a0df4);},'SlZtR':_0x13152f(0x1a4)};try{const _0x3d419c=_0x18c3d1[_0x13152f(0x162)]['id'],_0x83287d=_0x4885b4[_0x13152f(0x153)](getTestRunIdentifier,_0x18c3d1[_0x13152f(0x162)],_0x18c3d1['result']['retry']),_0x10e87d=_0x18c3d1[_0x13152f(0x1b2)],_0x9e8086=_0x10e87d['getContext'](),_0x2b817e=_0x10e87d[_0x13152f(0x176)]()['get'](_0x83287d);this[_0x13152f(0x187)]['debug'](_0x13152f(0x17a)+_0x3d419c);const {[TestFrameworkConstants[_0x13152f(0x174)]]:_0x2af5c8='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x407450='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x2170bb='',[TestFrameworkConstants[_0x13152f(0x16b)]]:_0x1dfab3=''}=_0x2b817e,_0x106d78=_0x10e87d['getCurrentTestState']()[_0x13152f(0x1aa)]()[_0x13152f(0x171)]('.')[0x1],_0x4c977f=_0x10e87d[_0x13152f(0x15e)]()[_0x13152f(0x1aa)]()[_0x13152f(0x171)]('.')[0x1],_0x271a2c=global?.[_0x13152f(0x1b7)]?.['workerInfo']?.[_0x13152f(0x168)];;const _0x458977=_0x10e87d['getRef'](),_0xd5cc22=Buffer['from'](JSON[_0x13152f(0x183)](_0x2b817e))[_0x13152f(0x1aa)](_0x4885b4[_0x13152f(0x15f)]),_0x4d4266={'hash':_0x9e8086[_0x13152f(0x152)](),'threadId':_0x9e8086[_0x13152f(0x189)]()[_0x13152f(0x1aa)](),'processId':_0x9e8086[_0x13152f(0x16f)]()[_0x13152f(0x1aa)]()},_0x25bc57={};_0x25bc57[_0x13152f(0x19c)]=_0x271a2c,_0x25bc57[_0x13152f(0x166)]=_0x2af5c8,_0x25bc57[_0x13152f(0x17b)]=_0x407450,_0x25bc57['testFrameworkState']=_0x106d78,_0x25bc57['hookState']=_0x4c977f,_0x25bc57[_0x13152f(0x161)]=_0x2170bb,_0x25bc57[_0x13152f(0x1ad)]=_0x1dfab3,_0x25bc57['uuid']=_0x458977,_0x25bc57[_0x13152f(0x1bb)]=_0xd5cc22,_0x25bc57[_0x13152f(0x16e)]=_0x4d4266;const _0x19c48b=_0x25bc57,_0x2902ac=await GrpcClient['getInstance']()['testFrameworkEvent'](_0x19c48b);this[_0x13152f(0x187)][_0x13152f(0x1b1)](_0x13152f(0x194)+_0x3d419c+_0x13152f(0x198)+_0x106d78+_0x13152f(0x1ba)+_0x4c977f);}catch(_0x2e06fe){this[_0x13152f(0x187)][_0x13152f(0x1b3)]('Error\x20in\x20sendTestFrameworkEvent:\x20'+util['format'](_0x2e06fe));}}async[a78_0x2d959c(0x16c)](_0x7ed4ad){const _0x1f189d=a78_0x2d959c,_0x35e6fe={'UoMkx':function(_0x195c2c,_0x151ebb){return _0x195c2c(_0x151ebb);},'iwpRu':'base64'};try{if(_0x7ed4ad[_0x1f189d(0x19f)]){const _0x3c89f1=_0x7ed4ad[_0x1f189d(0x17f)]['testId'];this[_0x1f189d(0x187)]['debug'](_0x1f189d(0x18d)+_0x3c89f1);const _0x376758=TestInfo['getTestIdentifierFromTestInfo'](_0x7ed4ad[_0x1f189d(0x17f)],_0x7ed4ad[_0x1f189d(0x17f)][_0x1f189d(0x1a6)]),_0x17b64f=TestInfo[_0x1f189d(0x196)](_0x376758),_0x470a03=TestInfo[_0x1f189d(0x172)](_0x376758),_0xc03d51=_0x7ed4ad[_0x1f189d(0x1b2)],_0x155f97=AutomationFramework['getState'](_0xc03d51,PlaywrightDriverModule[_0x1f189d(0x18a)]),_0x9dc8ea=_0x470a03[TestFrameworkConstants[_0x1f189d(0x174)]],_0x320154=_0x470a03[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']],_0x1eba92=TestFrameworkState[_0x1f189d(0x19a)][_0x1f189d(0x1aa)]()[_0x1f189d(0x171)]('.')[0x1],_0x300d38=HookState['POST']['toString']()[_0x1f189d(0x171)]('.')[0x1],_0x773dae=_0xc03d51[_0x1f189d(0x156)](),_0x3fcfd3=AutomationFramework[_0x1f189d(0x1b9)](_0xc03d51,PlaywrightDriverModule[_0x1f189d(0x173)],''),_0x31f769={'provider':_0x35e6fe[_0x1f189d(0x177)](getPlaywrightProvider,_0x3fcfd3),'frameworkName':_0xc03d51[_0x1f189d(0x1b6)],'frameworkVersion':_0xc03d51['frameworkVersion'],'frameworkSessionId':AutomationFramework[_0x1f189d(0x1b9)](_0xc03d51,PlaywrightDriverModule['KEY_SESSION_ID'],''),'ref':_0xc03d51[_0x1f189d(0x160)](),'hubUrl':_0x3fcfd3};let _0x15226c=AutomationFramework[_0x1f189d(0x1b9)](_0xc03d51,PlaywrightDriverModule[_0x1f189d(0x178)],{});_0x15226c=Buffer[_0x1f189d(0x15c)](JSON[_0x1f189d(0x183)](_0x15226c))['toString'](_0x35e6fe['iwpRu']);const _0xfc3c73={'hash':_0x773dae[_0x1f189d(0x152)](),'threadId':_0x773dae[_0x1f189d(0x189)]()['toString'](),'processId':_0x773dae[_0x1f189d(0x16f)]()[_0x1f189d(0x1aa)]()},_0x514ae4={};_0x514ae4['platformIndex']=_0x155f97,_0x514ae4[_0x1f189d(0x166)]=_0x9dc8ea,_0x514ae4[_0x1f189d(0x17b)]=_0x320154,_0x514ae4[_0x1f189d(0x1a7)]=_0x1eba92,_0x514ae4['testHookState']=_0x300d38,_0x514ae4[_0x1f189d(0x1a1)]=_0x17b64f,_0x514ae4[_0x1f189d(0x15d)]=_0x31f769,_0x514ae4[_0x1f189d(0x181)]=_0x15226c,_0x514ae4[_0x1f189d(0x16e)]=_0xfc3c73;const _0xfbbf4b=_0x514ae4;this['logger'][_0x1f189d(0x1b1)]('onPageCreate\x20CBTSession\x20payload:\x20'+util['format'](_0xfbbf4b));const _0x4e61d1=await GrpcClient[_0x1f189d(0x164)]()[_0x1f189d(0x1a3)](_0xfbbf4b);this[_0x1f189d(0x187)]['debug'](_0x1f189d(0x167)+_0x3c89f1);}}catch(_0x181f2a){this[_0x1f189d(0x187)][_0x1f189d(0x1b3)](_0x1f189d(0x157)+util[_0x1f189d(0x18c)](_0x181f2a));}}}function a78_0x2554(_0xb07bf0,_0x45814b){const _0x2c5f63=a78_0x2c5f();return a78_0x2554=function(_0x2554d4,_0x5dfad2){_0x2554d4=_0x2554d4-0x152;let _0x377dde=_0x2c5f63[_0x2554d4];return _0x377dde;},a78_0x2554(_0xb07bf0,_0x45814b);}function a78_0x2c5f(){const _0x21ec3c=['page','../state/hookState.js','testUuid','../../playwright/reporter/pwUtils.js','testSessionEvent','base64','getJwt','retry','testFrameworkState','getCurrentTestState','name','toString','../../../helpers/classLogger.js','../framework/testFramework.js','endedAt','sendTestFrameworkEvent','BROWSERSTACK_TESTHUB_JWT','onAllTestEvents','debug','instance','error','values','exports','frameworkName','__workerDetails','20pvwpct','getState','\x20hookState:\x20','eventJson','getId','DYHRv','../../../helpers/helper.js','2830170FVQzLC','getContext','Error\x20in\x20sending\x20CBTSession:\x20','../cliUtils.js','TseVx','5586632WGYMwk','3860163FQPkYA','from','automationSession','getCurrentHookState','SlZtR','getRef','startedAt','test','6ZASdvf','getInstance','./playwrightDriverModule.js','testFrameworkName','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','parallelIndex','../../../helpers/testhub/constants','../browserstackCLI.js','KEY_TEST_ENDED_AT','onPageCreate','ENV_VAR','executionContext','getProcessId','bind','split','getTestDetails','KEY_HUB_URL','KEY_TEST_FRAMEWORK_NAME','fnfOh','getAllData','UoMkx','KEY_CAPABILITIES','registerObserver','sendTestFrameworkEvent\x20testId:\x20','testFrameworkVersion','6Lnrnyu','env','2653133vQtXjy','testInfo','MODULE_NAME','capabilities','getModuleName','stringify','pQgtu','../framework/constants/testFrameworkConstants.js','16401209JnymOO','logger','../state/testFrameworkState.js','getThreadId','KEY_PLATFORM_INDEX','TestHubModule','format','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','4QqrTQp','../TestInfo.js','278643qvDclE','../state/automationFrameworkState.js','POST','516081ChYqLa','sendTestFrameworkEvent\x20complete\x20for\x20testId:\x20','../grpcClient.js','getTestUUID','CREATE','\x20testState:\x20','getBuildHashedId','TEST','testhubConfig','platformIndex','../framework/automationFramework.js','util'];a78_0x2c5f=function(){return _0x21ec3c;};return a78_0x2c5f();}TestHubModule[a78_0x2d959c(0x180)]=a78_0x2d959c(0x18b),TestHubModule['KEY_TEST_DEFERRED']='test_deferred',module[a78_0x2d959c(0x1b5)]=TestHubModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0xb9f6ea=a79_0x4e6e;(function(_0x222c4d,_0x581d47){const _0x2abae3=a79_0x4e6e,_0x1744c9=_0x222c4d();while(!![]){try{const _0xd1874f=parseInt(_0x2abae3(0x1ee))/0x1+-parseInt(_0x2abae3(0x1f3))/0x2*(-parseInt(_0x2abae3(0x1e9))/0x3)+parseInt(_0x2abae3(0x1dd))/0x4*(-parseInt(_0x2abae3(0x1ea))/0x5)+parseInt(_0x2abae3(0x1f4))/0x6+parseInt(_0x2abae3(0x1e3))/0x7*(parseInt(_0x2abae3(0x1d8))/0x8)+parseInt(_0x2abae3(0x1ed))/0x9+-parseInt(_0x2abae3(0x1eb))/0xa*(parseInt(_0x2abae3(0x1e8))/0xb);if(_0xd1874f===_0x581d47)break;else _0x1744c9['push'](_0x1744c9['shift']());}catch(_0x33d14f){_0x1744c9['push'](_0x1744c9['shift']());}}}(a79_0x462c,0xcb494));const {PLAYWRIGHT}=require(a79_0xb9f6ea(0x1f2)),a79_0x772568={};a79_0x772568[a79_0xb9f6ea(0x1db)]=0x0,a79_0x772568['toString']=function(){const _0x21437c=a79_0xb9f6ea,_0x4bac36={};_0x4bac36['YuVMq']=_0x21437c(0x1f1);const _0x514667=_0x4bac36;return _0x514667[_0x21437c(0x1de)];};const a79_0x505564={};a79_0x505564[a79_0xb9f6ea(0x1db)]=0x1,a79_0x505564[a79_0xb9f6ea(0x1d9)]=function(){const _0x34dacf=a79_0xb9f6ea,_0x29012e={};_0x29012e[_0x34dacf(0x1e7)]=_0x34dacf(0x1da);const _0x543de1=_0x29012e;return _0x543de1[_0x34dacf(0x1e7)];};const a79_0x378c56={};a79_0x378c56['value']=0x2,a79_0x378c56[a79_0xb9f6ea(0x1d9)]=function(){const _0x336e9e=a79_0xb9f6ea,_0x4a8e1f={};_0x4a8e1f[_0x336e9e(0x1f0)]=_0x336e9e(0x1e2);const _0x34d784=_0x4a8e1f;return _0x34d784[_0x336e9e(0x1f0)];};const a79_0x391d7e={};a79_0x391d7e[a79_0xb9f6ea(0x1db)]=0x3,a79_0x391d7e['toString']=function(){const _0xf42ac6=a79_0xb9f6ea,_0x2607f2={};_0x2607f2[_0xf42ac6(0x1e5)]='AutomationFrameworkState.EXECUTE';const _0x4f5e3a=_0x2607f2;return _0x4f5e3a['rlXCm'];};const a79_0x3f5afb={};function a79_0x4e6e(_0x5e17e6,_0x4b550d){const _0x462cca=a79_0x462c();return a79_0x4e6e=function(_0x4e6ead,_0x4a3759){_0x4e6ead=_0x4e6ead-0x1d8;let _0xeea179=_0x462cca[_0x4e6ead];return _0xeea179;},a79_0x4e6e(_0x5e17e6,_0x4b550d);}a79_0x3f5afb[a79_0xb9f6ea(0x1db)]=0x4,a79_0x3f5afb[a79_0xb9f6ea(0x1d9)]=function(){const _0x1f1b69=a79_0xb9f6ea,_0x20f1ec={};_0x20f1ec['TZqpL']=_0x1f1b69(0x1ec);const _0x4c9666=_0x20f1ec;return _0x4c9666[_0x1f1b69(0x1e0)];};const a79_0x950926={};a79_0x950926[a79_0xb9f6ea(0x1db)]=0x5,a79_0x950926[a79_0xb9f6ea(0x1d9)]=function(){const _0x7cdee=a79_0xb9f6ea,_0x38bb9b={};_0x38bb9b[_0x7cdee(0x1e4)]=_0x7cdee(0x1ef);const _0x52d882=_0x38bb9b;return _0x52d882['gQTta'];};const AutomationFrameworkState=Object[a79_0xb9f6ea(0x1e1)]({'NONE':a79_0x772568,'CREATE':a79_0x505564,'PLAYWRIGHT_DISPATCH':a79_0x378c56,'EXECUTE':a79_0x391d7e,'IDLE':a79_0x3f5afb,'QUIT':a79_0x950926,'fromValue'(_0x3336d7){const _0x285e22=a79_0xb9f6ea;return Object[_0x285e22(0x1df)](AutomationFrameworkState)[_0x285e22(0x1e6)](_0x529b16=>_0x529b16[_0x285e22(0x1db)]===_0x3336d7);}});module[a79_0xb9f6ea(0x1dc)]=AutomationFrameworkState;function a79_0x462c(){const _0x40fce6=['45871wbiYCN','AutomationFrameworkState.QUIT','pHkJj','AutomationFrameworkState.NONE','../../utils/constants','3159454ZXeaOq','6359112WvYeIb','10742008TOWmJg','toString','AutomationFrameworkState.CREATE','value','exports','8BsVohZ','YuVMq','values','TZqpL','freeze','AutomationFrameworkState.PLAYWRIGHT_DISPATCH','7mPqcJU','gQTta','rlXCm','find','mnXeR','11XxcIVj','3IGiagX','324085pYsyFc','38652470dPiUQR','AutomationFrameworkState.IDLE','7194060HJcKbh'];a79_0x462c=function(){return _0x40fce6;};return a79_0x462c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a80_0x2652bd=a80_0x12b6;(function(_0x123665,_0x1c1765){const _0x110f75=a80_0x12b6,_0x9815a5=_0x123665();while(!![]){try{const _0x19e4c1=-parseInt(_0x110f75(0x18f))/0x1*(parseInt(_0x110f75(0x1a1))/0x2)+-parseInt(_0x110f75(0x198))/0x3+-parseInt(_0x110f75(0x195))/0x4+parseInt(_0x110f75(0x1a2))/0x5+-parseInt(_0x110f75(0x197))/0x6*(-parseInt(_0x110f75(0x192))/0x7)+parseInt(_0x110f75(0x190))/0x8+-parseInt(_0x110f75(0x191))/0x9*(-parseInt(_0x110f75(0x196))/0xa);if(_0x19e4c1===_0x1c1765)break;else _0x9815a5['push'](_0x9815a5['shift']());}catch(_0x28eb63){_0x9815a5['push'](_0x9815a5['shift']());}}}(a80_0x5271,0x56f7f));function a80_0x5271(){const _0x51d62d=['value','freeze','find','exports','toString','Esxfu','888SFzetT','3338560xNsJDm','1310kcSVru','2637528kSAMBD','934326ZhnMFE','392LrKBNQ','FfMrW','HookState.NONE','1194384vuVorx','50EAIgUH','10554opkhHb','1135554AfUsjw','HookState.PRE','jQOgQ'];a80_0x5271=function(){return _0x51d62d;};return a80_0x5271();}const a80_0x46e429={};a80_0x46e429[a80_0x2652bd(0x19b)]=0x0,a80_0x46e429['toString']=function(){const _0x50cedd=a80_0x2652bd,_0x270ce9={};_0x270ce9[_0x50cedd(0x1a0)]=_0x50cedd(0x194);const _0x8f76b4=_0x270ce9;return _0x8f76b4[_0x50cedd(0x1a0)];};const a80_0xaaa24={};a80_0xaaa24[a80_0x2652bd(0x19b)]=0x1,a80_0xaaa24[a80_0x2652bd(0x19f)]=function(){const _0xe9d2a3=a80_0x2652bd,_0x42d35c={};_0x42d35c['FfMrW']=_0xe9d2a3(0x199);const _0x297971=_0x42d35c;return _0x297971[_0xe9d2a3(0x193)];};const a80_0x1456b2={};a80_0x1456b2[a80_0x2652bd(0x19b)]=0x2,a80_0x1456b2[a80_0x2652bd(0x19f)]=function(){const _0x18281e=a80_0x2652bd,_0x1c896b={};_0x1c896b[_0x18281e(0x19a)]='HookState.POST';const _0x20734f=_0x1c896b;return _0x20734f[_0x18281e(0x19a)];};function a80_0x12b6(_0x3cd9b1,_0x2d28a9){const _0x5271ce=a80_0x5271();return a80_0x12b6=function(_0x12b628,_0x45c9fc){_0x12b628=_0x12b628-0x18f;let _0x53cd19=_0x5271ce[_0x12b628];return _0x53cd19;},a80_0x12b6(_0x3cd9b1,_0x2d28a9);}const HookState=Object[a80_0x2652bd(0x19c)]({'NONE':a80_0x46e429,'PRE':a80_0xaaa24,'POST':a80_0x1456b2,'fromValue'(_0x27b529){const _0x25aca5=a80_0x2652bd;return Object['values'](HookState)[_0x25aca5(0x19d)](_0x8e79fe=>_0x8e79fe[_0x25aca5(0x19b)]===_0x27b529);}});module[a80_0x2652bd(0x19e)]=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x589474=a81_0x4043;(function(_0xcd9040,_0x19c77e){const _0x2e486e=a81_0x4043,_0x177567=_0xcd9040();while(!![]){try{const _0x164e24=-parseInt(_0x2e486e(0x75))/0x1+-parseInt(_0x2e486e(0x6f))/0x2*(-parseInt(_0x2e486e(0x7d))/0x3)+parseInt(_0x2e486e(0x6d))/0x4*(-parseInt(_0x2e486e(0x7e))/0x5)+parseInt(_0x2e486e(0x74))/0x6+-parseInt(_0x2e486e(0x87))/0x7+parseInt(_0x2e486e(0x79))/0x8+-parseInt(_0x2e486e(0x78))/0x9;if(_0x164e24===_0x19c77e)break;else _0x177567['push'](_0x177567['shift']());}catch(_0x2c0259){_0x177567['push'](_0x177567['shift']());}}}(a81_0x274f,0x4128d));const a81_0x44f677={};a81_0x44f677[a81_0x589474(0x66)]=0x0,a81_0x44f677[a81_0x589474(0x6b)]=function(){const _0x267e8=a81_0x589474,_0x376196={};_0x376196[_0x267e8(0x71)]=_0x267e8(0x68);const _0x2269fb=_0x376196;return _0x2269fb[_0x267e8(0x71)];};const a81_0x59a653={};a81_0x59a653[a81_0x589474(0x66)]=0x1,a81_0x59a653[a81_0x589474(0x6b)]=function(){const _0x41d9ab=a81_0x589474,_0x3909cb={};_0x3909cb[_0x41d9ab(0x80)]=_0x41d9ab(0x77);const _0x1c35ac=_0x3909cb;return _0x1c35ac['KCMpu'];};const a81_0x3643ff={};a81_0x3643ff[a81_0x589474(0x66)]=0x2,a81_0x3643ff[a81_0x589474(0x6b)]=function(){const _0x473ce7=a81_0x589474,_0x373a1b={};_0x373a1b['JCWMa']=_0x473ce7(0x81);const _0x521941=_0x373a1b;return _0x521941['JCWMa'];};const a81_0x1845c3={};a81_0x1845c3[a81_0x589474(0x66)]=0x3,a81_0x1845c3[a81_0x589474(0x6b)]=function(){const _0x4b2932=a81_0x589474,_0x5325c1={};_0x5325c1[_0x4b2932(0x7f)]=_0x4b2932(0x72);const _0xef4844=_0x5325c1;return _0xef4844[_0x4b2932(0x7f)];};function a81_0x274f(){const _0x102fc5=['80jaGFXP','xsTHt','KCMpu','TestFrameworkState.LOG','syZbi','WTzHC','find','TestFrameworkState.INIT_TEST','TestFrameworkState.TEST_SCREENSHOT','1068459WTKVoJ','exports','value','vXDwE','TestFrameworkState.NONE','AKwjF','TestFrameworkState.TEST','toString','TestFrameworkState.AFTER_ALL','38524PXrgBX','TestFrameworkState.BEFORE_EACH','375210tOgyOj','EDAFC','oKyem','TestFrameworkState.SETUP_FIXTURE','values','2329032BJRePa','360373MpCubE','TestFrameworkState.LOG_REPORT','TestFrameworkState.BEFORE_ALL','502011PyDMgB','3312008fsnUUQ','ufIqb','JHxnt','TestFrameworkState.AFTER_EACH','3krGjxG'];a81_0x274f=function(){return _0x102fc5;};return a81_0x274f();}const a81_0x378a34={};a81_0x378a34[a81_0x589474(0x66)]=0x4,a81_0x378a34[a81_0x589474(0x6b)]=function(){const _0x3e245d=a81_0x589474,_0x1ad5ac={};_0x1ad5ac[_0x3e245d(0x67)]=_0x3e245d(0x85);const _0x58556b=_0x1ad5ac;return _0x58556b[_0x3e245d(0x67)];};function a81_0x4043(_0x1b6a73,_0x529a54){const _0x274ffb=a81_0x274f();return a81_0x4043=function(_0x404374,_0x5f5821){_0x404374=_0x404374-0x65;let _0x5369f7=_0x274ffb[_0x404374];return _0x5369f7;},a81_0x4043(_0x1b6a73,_0x529a54);}const a81_0x593ef7={};a81_0x593ef7[a81_0x589474(0x66)]=0x5,a81_0x593ef7[a81_0x589474(0x6b)]=function(){const _0x5723b5=a81_0x589474,_0x33447e={};_0x33447e['sLRYe']=_0x5723b5(0x6e);const _0x39a645=_0x33447e;return _0x39a645['sLRYe'];};const a81_0x4a64d0={};a81_0x4a64d0[a81_0x589474(0x66)]=0x6,a81_0x4a64d0[a81_0x589474(0x6b)]=function(){const _0x5024d9=a81_0x589474,_0x275763={};_0x275763[_0x5024d9(0x69)]=_0x5024d9(0x7c);const _0x49d881=_0x275763;return _0x49d881[_0x5024d9(0x69)];};const a81_0x53e8c0={};a81_0x53e8c0[a81_0x589474(0x66)]=0x7,a81_0x53e8c0[a81_0x589474(0x6b)]=function(){const _0x2b897a=a81_0x589474,_0x50aa50={};_0x50aa50['EDAFC']=_0x2b897a(0x6a);const _0x1adcc0=_0x50aa50;return _0x1adcc0[_0x2b897a(0x70)];};const a81_0x216c1d={};a81_0x216c1d[a81_0x589474(0x66)]=0x8,a81_0x216c1d[a81_0x589474(0x6b)]=function(){const _0x5cc25b=a81_0x589474,_0x48bcea={};_0x48bcea['ufIqb']='TestFrameworkState.STEP';const _0x19082f=_0x48bcea;return _0x19082f[_0x5cc25b(0x7a)];};const a81_0x1ff21f={};a81_0x1ff21f[a81_0x589474(0x66)]=0x9,a81_0x1ff21f[a81_0x589474(0x6b)]=function(){const _0x450e2b=a81_0x589474,_0x2d5994={};_0x2d5994[_0x450e2b(0x82)]=_0x450e2b(0x76);const _0x5b1817=_0x2d5994;return _0x5b1817[_0x450e2b(0x82)];};const a81_0x9fad3a={};a81_0x9fad3a['value']=0xa,a81_0x9fad3a['toString']=function(){const _0x2ae15d=a81_0x589474,_0x33074b={};_0x33074b[_0x2ae15d(0x83)]=_0x2ae15d(0x6c);const _0x5b8ba6=_0x33074b;return _0x5b8ba6[_0x2ae15d(0x83)];};const a81_0x2803de={};a81_0x2803de[a81_0x589474(0x66)]=0xb,a81_0x2803de['toString']=function(){const _0x43f1a2=a81_0x589474,_0x10d7eb={};_0x10d7eb['JHxnt']=_0x43f1a2(0x86);const _0x2cbdc1=_0x10d7eb;return _0x2cbdc1[_0x43f1a2(0x7b)];};const TestFrameworkState=Object['freeze']({'NONE':a81_0x44f677,'BEFORE_ALL':a81_0x59a653,'LOG':a81_0x3643ff,'SETUP_FIXTURE':a81_0x1845c3,'INIT_TEST':a81_0x378a34,'BEFORE_EACH':a81_0x593ef7,'AFTER_EACH':a81_0x4a64d0,'TEST':a81_0x53e8c0,'STEP':a81_0x216c1d,'LOG_REPORT':a81_0x1ff21f,'AFTER_ALL':a81_0x9fad3a,'TEST_SCREENSHOT':a81_0x2803de,'fromValue'(_0x2a7f61){const _0x501891=a81_0x589474;return Object[_0x501891(0x73)](TestFrameworkState)[_0x501891(0x84)](_0x53c3ae=>_0x53c3ae['value']===_0x2a7f61);}});module[a81_0x589474(0x65)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a82_0x6e1b75=a82_0x47dd;function a82_0x500b(){const _0x462a2b=['2220612jtxUmj','QfHaz','jZmvS','../../helpers/classLogger.js','trackFile','http://','./modules/playwrightDriverModule','1709140NvBaeY','RwqQk','./TestInfo','uRGco','currentTest','Attachment\x20recevied\x20for\x20path:\x20%s','pbtNU','uyaph','KEY_FILE_PATH','fTsyF','homedir','./browserstackCLI','clearAttachments','DHxRS','579038mqeZKq','startsWith','statSync','logger','CaWKF','uploadAttachmentsManager','eLXje','AUNcX','KEY_FILE_NAME','testhubConfig','dPbVP','qLHPX','KEY_TEST_ATTACHMENTS','statusCode','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','qccLi','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','format','exports','getInstance','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','join','57582odpLfp','buildHashedId','https','force','Sudqa','TestHubModule','path','http','setTestDetails','KEY_FILE_LEVEL','343ToMmug','size','toObject','maSYB','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','message','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','KEY_FILE_SIZE','basename','qRDwK','getTestDetails','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','modules','https://','copyFileSync','TyTOM','vfccw','toFixed','unlinkSync','.browserstack','4203376RivDdt','debug','uHupM','File\x20downloaded\x20to:\x20%s','vPeYD','util','AqBSu','2034280zYkQzJ','ZdBrW','Cleared\x20attachment\x20folder','retry','KfulO','mkdirSync','trim','553402jZdPVw','khRjh','DtBDe','BuildLevel','rmSync','existsSync','EjBHT','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','ODujP'];a82_0x500b=function(){return _0x462a2b;};return a82_0x500b();}(function(_0x32108f,_0x593886){const _0x3ed58a=a82_0x47dd,_0x4c4567=_0x32108f();while(!![]){try{const _0x286cef=parseInt(_0x3ed58a(0xe8))/0x1+-parseInt(_0x3ed58a(0x106))/0x2+-parseInt(_0x3ed58a(0xf1))/0x3+-parseInt(_0x3ed58a(0xf8))/0x4+parseInt(_0x3ed58a(0x141))/0x5+-parseInt(_0x3ed58a(0x11c))/0x6*(-parseInt(_0x3ed58a(0x126))/0x7)+parseInt(_0x3ed58a(0x13a))/0x8;if(_0x286cef===_0x593886)break;else _0x4c4567['push'](_0x4c4567['shift']());}catch(_0x17f826){_0x4c4567['push'](_0x4c4567['shift']());}}}(a82_0x500b,0x79ced));const os=require('os'),fs=require('fs'),path=require(a82_0x6e1b75(0x122)),util=require(a82_0x6e1b75(0x13f)),BrowserstackCLI=require(a82_0x6e1b75(0x103)),https=require(a82_0x6e1b75(0x11e)),http=require(a82_0x6e1b75(0x123)),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require(a82_0x6e1b75(0xf7)),TestInfo=require(a82_0x6e1b75(0xfa)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require(a82_0x6e1b75(0xf4));class uploadAttachmentsManager{static [a82_0x6e1b75(0x109)]=createClassLogger(a82_0x6e1b75(0x10b));static['uploadAttachments'](_0x2104e2,_0x503782=![]){const _0x1a6c72=a82_0x6e1b75,_0x7f4455={};_0x7f4455[_0x1a6c72(0x10a)]=function(_0x4544ed,_0x348931){return _0x4544ed/_0x348931;},_0x7f4455[_0x1a6c72(0x115)]=function(_0xa4e7e7,_0x38ce){return _0xa4e7e7*_0x38ce;},_0x7f4455[_0x1a6c72(0x10d)]=function(_0x3799c2,_0x4341ab){return _0x3799c2>_0x4341ab;},_0x7f4455[_0x1a6c72(0xea)]=_0x1a6c72(0xef),_0x7f4455[_0x1a6c72(0xf2)]=_0x1a6c72(0x13d),_0x7f4455[_0x1a6c72(0x13e)]=function(_0x5d05c4,_0x1765cd){return _0x5d05c4===_0x1765cd;},_0x7f4455['qpnaZ']='finish',_0x7f4455['JJFnm']=_0x1a6c72(0x114),_0x7f4455[_0x1a6c72(0x105)]=_0x1a6c72(0x116),_0x7f4455[_0x1a6c72(0xee)]=_0x1a6c72(0xfd),_0x7f4455[_0x1a6c72(0x142)]=_0x1a6c72(0x139),_0x7f4455['ODujP']=_0x1a6c72(0x131),_0x7f4455['vfccw']='Created\x20.browserstack\x20folder\x20at:\x20%s',_0x7f4455[_0x1a6c72(0xfe)]='Created\x20folder:\x20%s',_0x7f4455[_0x1a6c72(0xfb)]='Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.',_0x7f4455['AqBSu']=_0x1a6c72(0x133),_0x7f4455[_0x1a6c72(0x12f)]=_0x1a6c72(0xf6),_0x7f4455[_0x1a6c72(0x13c)]='error',_0x7f4455['eLXje']=_0x1a6c72(0x12a),_0x7f4455[_0x1a6c72(0xff)]=function(_0x1758e0,_0x1b279b){return _0x1758e0>_0x1b279b;},_0x7f4455[_0x1a6c72(0x120)]=_0x1a6c72(0x12c);const _0x9484e3=_0x7f4455;this[_0x1a6c72(0x109)][_0x1a6c72(0x13b)](util[_0x1a6c72(0x117)](_0x9484e3[_0x1a6c72(0xee)],_0x2104e2));const _0x4a763b=os['homedir'](),_0x2d16d6=path['join'](_0x4a763b,_0x9484e3[_0x1a6c72(0x142)]);!fs[_0x1a6c72(0xed)](_0x2d16d6)&&(this['logger']['debug'](util[_0x1a6c72(0x117)](_0x9484e3[_0x1a6c72(0xf0)],_0x2d16d6)),fs['mkdirSync'](_0x2d16d6),this['logger'][_0x1a6c72(0x13b)](util['format'](_0x9484e3[_0x1a6c72(0x136)],_0x2d16d6)));const _0x3e04d6=BrowserstackCLI[_0x1a6c72(0x119)]()['modules'][_0x1a6c72(0x121)]?.['testhubConfig']?.['toObject']()?.[_0x1a6c72(0x11d)],_0x90e148=path[_0x1a6c72(0x11b)](_0x2d16d6,_0x3e04d6);!fs[_0x1a6c72(0xed)](_0x90e148)&&(fs[_0x1a6c72(0xe6)](_0x90e148),this['logger'][_0x1a6c72(0x13b)](util[_0x1a6c72(0x117)](_0x9484e3[_0x1a6c72(0xfe)],_0x90e148)));if(_0x9484e3[_0x1a6c72(0x13e)](_0x2104e2[_0x1a6c72(0xe7)](),'')){this['logger'][_0x1a6c72(0x13b)](util[_0x1a6c72(0x117)](_0x9484e3[_0x1a6c72(0xfb)]));return;}if(_0x2104e2[_0x1a6c72(0x107)](_0x9484e3['AqBSu'])||_0x2104e2[_0x1a6c72(0x107)](_0x9484e3['qRDwK'])){const _0xac71f3=_0x2104e2[_0x1a6c72(0x107)](_0x9484e3[_0x1a6c72(0x140)])?https:http,_0x3faec7=path[_0x1a6c72(0x12e)](_0x2104e2),_0x18fda=path['join'](_0x90e148,_0x3faec7),_0x37652a=fs['createWriteStream'](_0x18fda);_0xac71f3['get'](_0x2104e2,_0xc77d32=>{const _0x5c8b20=_0x1a6c72,_0x296117={'nMkIc':function(_0x108429,_0xfc6fc6){const _0x3435c4=a82_0x47dd;return _0x9484e3[_0x3435c4(0x10a)](_0x108429,_0xfc6fc6);},'TyTOM':function(_0x302e3f,_0x5ed604){const _0xd92504=a82_0x47dd;return _0x9484e3[_0xd92504(0x115)](_0x302e3f,_0x5ed604);},'AGazy':function(_0x1d9123,_0x1bffc3){const _0x45e7cc=a82_0x47dd;return _0x9484e3[_0x45e7cc(0x10d)](_0x1d9123,_0x1bffc3);},'djuOW':_0x9484e3[_0x5c8b20(0xea)],'khRjh':_0x9484e3[_0x5c8b20(0xf2)]};if(_0x9484e3[_0x5c8b20(0x13e)](_0xc77d32[_0x5c8b20(0x113)],0xc8))_0xc77d32['pipe'](_0x37652a),_0x37652a['on'](_0x9484e3['qpnaZ'],()=>{const _0x4c1bf8=_0x5c8b20;_0x37652a['close']();const _0x3984dc=fs[_0x4c1bf8(0x108)](_0x18fda),_0x232eb4=_0x296117['nMkIc'](_0x3984dc[_0x4c1bf8(0x127)],_0x296117[_0x4c1bf8(0x135)](0x400,0x400));if(_0x296117['AGazy'](_0x232eb4,0x64)){this[_0x4c1bf8(0x109)]['debug'](util[_0x4c1bf8(0x117)](_0x296117['djuOW'],_0x232eb4[_0x4c1bf8(0x137)](0x2))),fs[_0x4c1bf8(0x138)](_0x18fda);return;}this[_0x4c1bf8(0x109)][_0x4c1bf8(0x13b)](util['format'](_0x296117[_0x4c1bf8(0xe9)],_0x18fda)),uploadAttachmentsManager[_0x4c1bf8(0xf5)](_0x18fda,_0x503782);});else{this[_0x5c8b20(0x109)][_0x5c8b20(0x13b)](util['format'](_0x9484e3['JJFnm'],_0xc77d32[_0x5c8b20(0x113)])),_0x37652a['close'](),fs[_0x5c8b20(0x138)](_0x18fda);return;}})['on'](_0x9484e3[_0x1a6c72(0x13c)],_0x2dda1d=>{const _0x3b71fa=_0x1a6c72;this[_0x3b71fa(0x109)][_0x3b71fa(0x13b)](util['format'](_0x9484e3[_0x3b71fa(0x105)],_0x2dda1d[_0x3b71fa(0x12b)])),_0x37652a['close'](),fs[_0x3b71fa(0x138)](_0x18fda);return;});}else{if(!fs[_0x1a6c72(0xed)](_0x2104e2)){this[_0x1a6c72(0x109)][_0x1a6c72(0x13b)](util[_0x1a6c72(0x117)](_0x9484e3[_0x1a6c72(0x10c)],_0x2104e2));return;}const _0x231a33=fs[_0x1a6c72(0x108)](_0x2104e2),_0x1cb7be=_0x9484e3[_0x1a6c72(0x10a)](_0x231a33[_0x1a6c72(0x127)],_0x9484e3['qccLi'](0x400,0x400));if(_0x9484e3[_0x1a6c72(0xff)](_0x1cb7be,0x64)){this[_0x1a6c72(0x109)][_0x1a6c72(0x13b)](util['format'](_0x9484e3[_0x1a6c72(0x120)],_0x1cb7be[_0x1a6c72(0x137)](0x2)));return;}const _0x43bb97=path['basename'](_0x2104e2),_0x496cae=path[_0x1a6c72(0x11b)](_0x90e148,_0x43bb97);fs[_0x1a6c72(0x134)](_0x2104e2,_0x496cae),uploadAttachmentsManager[_0x1a6c72(0xf5)](_0x496cae,_0x503782);}}static[a82_0x6e1b75(0xf5)](_0x29f5e6,_0x1c8bd5){const _0x435d72=a82_0x6e1b75,_0x5355aa={};_0x5355aa['fTsyF']=_0x435d72(0xeb),_0x5355aa['KfulO']='TestLevel',_0x5355aa['qLHPX']='Attachment\x20file\x20tracked\x20for\x20upload:\x20%s',_0x5355aa[_0x435d72(0x110)]=_0x435d72(0x11a);const _0x524899=_0x5355aa;try{const _0x257538=global['__workerDetails']?.[_0x435d72(0xfc)]?.['testInfo'],_0x55348e=TestInfo['getTestIdentifierFromTestInfo'](_0x257538,_0x257538[_0x435d72(0x144)]),_0x3087df=TestInfo[_0x435d72(0x130)](_0x55348e),_0x53c223=_0x3087df[TestFrameworkConstants[_0x435d72(0x112)]]||{};_0x53c223[_0x29f5e6]={[TestFrameworkConstants[_0x435d72(0x12d)]]:fs['statSync'](_0x29f5e6)['size'],[TestFrameworkConstants[_0x435d72(0x10e)]]:path['basename'](_0x29f5e6),[TestFrameworkConstants[_0x435d72(0x100)]]:_0x29f5e6,[TestFrameworkConstants[_0x435d72(0x125)]]:_0x1c8bd5?_0x524899[_0x435d72(0x101)]:_0x524899[_0x435d72(0xe5)]},_0x3087df[TestFrameworkConstants[_0x435d72(0x112)]]=_0x53c223,TestInfo[_0x435d72(0x124)](_0x55348e,_0x3087df),this[_0x435d72(0x109)][_0x435d72(0x13b)](util['format'](_0x524899[_0x435d72(0x111)],_0x29f5e6));}catch(_0x5ad997){this[_0x435d72(0x109)][_0x435d72(0x13b)](util['format'](_0x524899['dPbVP'],_0x5ad997[_0x435d72(0x12b)]));}}static[a82_0x6e1b75(0x104)](){const _0x41862d=a82_0x6e1b75,_0xc13361={};_0xc13361[_0x41862d(0x129)]='.browserstack',_0xc13361[_0x41862d(0xf9)]='No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s',_0xc13361['jZmvS']=_0x41862d(0x143);const _0x497d1e=_0xc13361,_0x362cbc=os[_0x41862d(0x102)](),_0x229a76=path['join'](_0x362cbc,_0x497d1e[_0x41862d(0x129)]);if(!fs['existsSync'](_0x229a76))return;const _0x1c1ff6=BrowserstackCLI[_0x41862d(0x119)]()[_0x41862d(0x132)][_0x41862d(0x121)]?.[_0x41862d(0x10f)]?.[_0x41862d(0x128)]()?.[_0x41862d(0x11d)],_0x5501eb=_0x1c1ff6?path[_0x41862d(0x11b)](_0x229a76,_0x1c1ff6):null;if(!_0x5501eb||!fs[_0x41862d(0xed)](_0x5501eb)){this['logger'][_0x41862d(0x13b)](util[_0x41862d(0x117)](_0x497d1e[_0x41862d(0xf9)],_0x1c1ff6));return;}const _0x1578f4={};_0x1578f4['recursive']=!![],_0x1578f4[_0x41862d(0x11f)]=!![],fs[_0x41862d(0xec)](_0x5501eb,_0x1578f4),this['logger'][_0x41862d(0x13b)](util['format'](_0x497d1e[_0x41862d(0xf3)]));}}function a82_0x47dd(_0x1fc543,_0x246caf){const _0x500bb8=a82_0x500b();return a82_0x47dd=function(_0x47ddc0,_0x3ff78e){_0x47ddc0=_0x47ddc0-0xe5;let _0x553df7=_0x500bb8[_0x47ddc0];return _0x553df7;},a82_0x47dd(_0x1fc543,_0x246caf);}module[a82_0x6e1b75(0x118)]=uploadAttachmentsManager;
|
|
1
|
+
function a82_0x32da(_0xbe4d3c,_0x3e5152){const _0x1ae926=a82_0x1ae9();return a82_0x32da=function(_0x32dac1,_0x52ddf5){_0x32dac1=_0x32dac1-0x16b;let _0x57ebf3=_0x1ae926[_0x32dac1];return _0x57ebf3;},a82_0x32da(_0xbe4d3c,_0x3e5152);}const a82_0x245c45=a82_0x32da;(function(_0x300a81,_0x550ced){const _0x55aa4a=a82_0x32da,_0x4aa2a3=_0x300a81();while(!![]){try{const _0x15079b=parseInt(_0x55aa4a(0x18d))/0x1+parseInt(_0x55aa4a(0x19c))/0x2*(-parseInt(_0x55aa4a(0x18e))/0x3)+parseInt(_0x55aa4a(0x185))/0x4+-parseInt(_0x55aa4a(0x1a1))/0x5*(parseInt(_0x55aa4a(0x1bc))/0x6)+parseInt(_0x55aa4a(0x19d))/0x7*(-parseInt(_0x55aa4a(0x194))/0x8)+parseInt(_0x55aa4a(0x1ae))/0x9*(parseInt(_0x55aa4a(0x175))/0xa)+-parseInt(_0x55aa4a(0x1af))/0xb;if(_0x15079b===_0x550ced)break;else _0x4aa2a3['push'](_0x4aa2a3['shift']());}catch(_0x274319){_0x4aa2a3['push'](_0x4aa2a3['shift']());}}}(a82_0x1ae9,0x52a87));function a82_0x1ae9(){const _0x1f0357=['https','statusCode','statSync','./browserstackCLI','bMFie','getTestDetails','../../helpers/classLogger.js','tubeB','AkQvV','2348720lDhJzC','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','basename','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','exports','dXVfh','KdkLp','KEY_TEST_ATTACHMENTS','636358CIBajt','2718cnFpqY','uploadAttachments','unlinkSync','QTmLr','blqWr','toFixed','20312mmphfA','jkOrA','getInstance','force','uploadAttachmentsManager','DGban','./modules/playwrightDriverModule','debug','572VaiQdN','959wKqXig','toObject','testhubConfig','nhsLH','205fHFIqL','error','PydOe','rmSync','getTestIdentifierFromTestInfo','TestLevel','currentTest','Cleared\x20attachment\x20folder','pipe','Umgtz','http://','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','./framework/automationFramework','57141kelZbI','3456442VekZjY','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','hNzJr','rRQop','FJNCO','retry','.browserstack','copyFileSync','TSZjs','startsWith','TVERG','message','format','25362QRlEVt','tRuOg','createWriteStream','homedir','DVPFV','MSQKK','KEY_FILE_SIZE','trim','trackFile','mtbuF','vktGF','existsSync','idslN','MLtos','modules','https://','testInfo','./TestInfo','close','nhPVe','size','__workerDetails','FLbvB','XNvLv','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','get','path','fEcPh','finish','buildHashedId','join','util','330FHpjsn','logger','setTestDetails','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','TestHubModule','mihtz'];a82_0x1ae9=function(){return _0x1f0357;};return a82_0x1ae9();}const os=require('os'),fs=require('fs'),path=require(a82_0x245c45(0x16f)),util=require(a82_0x245c45(0x174)),BrowserstackCLI=require(a82_0x245c45(0x17f)),https=require(a82_0x245c45(0x17c)),http=require('http'),AutomationFramework=require(a82_0x245c45(0x1ad)),PlaywrightDriverModule=require(a82_0x245c45(0x19a)),TestInfo=require(a82_0x245c45(0x1cd)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require(a82_0x245c45(0x182));class uploadAttachmentsManager{static ['logger']=createClassLogger(a82_0x245c45(0x198));static[a82_0x245c45(0x18f)](_0x47df2a,_0xdb6158=![]){const _0x155593=a82_0x245c45,_0x588699={};_0x588699[_0x155593(0x1a0)]=function(_0x5a9e67,_0x1c7bb2){return _0x5a9e67/_0x1c7bb2;},_0x588699[_0x155593(0x183)]=function(_0x5b0731,_0x4e8b4e){return _0x5b0731*_0x4e8b4e;},_0x588699[_0x155593(0x184)]=function(_0x3ef41a,_0x3d73ba){return _0x3ef41a>_0x3d73ba;},_0x588699['DVPFV']='Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.',_0x588699[_0x155593(0x180)]='File\x20downloaded\x20to:\x20%s',_0x588699['Umgtz']=function(_0x31382e,_0x56d291){return _0x31382e===_0x56d291;},_0x588699['blqWr']=_0x155593(0x171),_0x588699[_0x155593(0x18a)]=_0x155593(0x1ac),_0x588699[_0x155593(0x191)]=_0x155593(0x188),_0x588699['fEcPh']='Attachment\x20recevied\x20for\x20path:\x20%s',_0x588699[_0x155593(0x16c)]=_0x155593(0x1b5),_0x588699[_0x155593(0x1b2)]=_0x155593(0x16d),_0x588699['hNzJr']='Created\x20.browserstack\x20folder\x20at:\x20%s',_0x588699[_0x155593(0x1c6)]='Created\x20folder:\x20%s',_0x588699[_0x155593(0x1c5)]=function(_0x3f2bfe,_0xf3ad94){return _0x3f2bfe===_0xf3ad94;},_0x588699[_0x155593(0x16b)]=_0x155593(0x1b0),_0x588699[_0x155593(0x1c8)]=_0x155593(0x1cb),_0x588699[_0x155593(0x199)]=_0x155593(0x1ab),_0x588699['KdkLp']=_0x155593(0x1a2),_0x588699[_0x155593(0x1a3)]=_0x155593(0x179),_0x588699['TVERG']=function(_0x3a6b4d,_0x59b321){return _0x3a6b4d*_0x59b321;},_0x588699['MLtos']=function(_0x1b0f81,_0x519487){return _0x1b0f81>_0x519487;},_0x588699[_0x155593(0x1b7)]=_0x155593(0x178);const _0x4b9b6a=_0x588699;this[_0x155593(0x176)]['debug'](util[_0x155593(0x1bb)](_0x4b9b6a[_0x155593(0x170)],_0x47df2a));const _0x53dad1=os[_0x155593(0x1bf)](),_0x1362e0=path[_0x155593(0x173)](_0x53dad1,_0x4b9b6a[_0x155593(0x16c)]);!fs[_0x155593(0x1c7)](_0x1362e0)&&(this[_0x155593(0x176)][_0x155593(0x19b)](util[_0x155593(0x1bb)](_0x4b9b6a[_0x155593(0x1b2)],_0x1362e0)),fs['mkdirSync'](_0x1362e0),this[_0x155593(0x176)]['debug'](util[_0x155593(0x1bb)](_0x4b9b6a[_0x155593(0x1b1)],_0x1362e0)));const _0x16060=BrowserstackCLI[_0x155593(0x196)]()[_0x155593(0x1ca)][_0x155593(0x17a)]?.[_0x155593(0x19f)]?.[_0x155593(0x19e)]()?.[_0x155593(0x172)],_0x5b5a22=path['join'](_0x1362e0,_0x16060);!fs[_0x155593(0x1c7)](_0x5b5a22)&&(fs['mkdirSync'](_0x5b5a22),this[_0x155593(0x176)][_0x155593(0x19b)](util[_0x155593(0x1bb)](_0x4b9b6a[_0x155593(0x1c6)],_0x5b5a22)));if(_0x4b9b6a['mtbuF'](_0x47df2a[_0x155593(0x1c3)](),'')){this['logger'][_0x155593(0x19b)](util['format'](_0x4b9b6a[_0x155593(0x16b)]));return;}if(_0x47df2a[_0x155593(0x1b8)](_0x4b9b6a[_0x155593(0x1c8)])||_0x47df2a[_0x155593(0x1b8)](_0x4b9b6a[_0x155593(0x199)])){const _0x5d5fe2=_0x47df2a[_0x155593(0x1b8)](_0x4b9b6a[_0x155593(0x1c8)])?https:http,_0x5e2d41=path[_0x155593(0x187)](_0x47df2a),_0x25645f=path[_0x155593(0x173)](_0x5b5a22,_0x5e2d41),_0x5a31f2=fs[_0x155593(0x1be)](_0x25645f);_0x5d5fe2[_0x155593(0x16e)](_0x47df2a,_0x36d450=>{const _0x29f349=_0x155593;if(_0x4b9b6a[_0x29f349(0x1aa)](_0x36d450['statusCode'],0xc8))_0x36d450[_0x29f349(0x1a9)](_0x5a31f2),_0x5a31f2['on'](_0x4b9b6a[_0x29f349(0x192)],()=>{const _0x545d22=_0x29f349;_0x5a31f2['close']();const _0x4efaf4=fs[_0x545d22(0x17e)](_0x25645f),_0x409761=_0x4b9b6a[_0x545d22(0x1a0)](_0x4efaf4['size'],_0x4b9b6a[_0x545d22(0x183)](0x400,0x400));if(_0x4b9b6a[_0x545d22(0x184)](_0x409761,0x64)){this[_0x545d22(0x176)][_0x545d22(0x19b)](util['format'](_0x4b9b6a[_0x545d22(0x1c0)],_0x409761[_0x545d22(0x193)](0x2))),fs[_0x545d22(0x190)](_0x25645f);return;}this['logger'][_0x545d22(0x19b)](util[_0x545d22(0x1bb)](_0x4b9b6a[_0x545d22(0x180)],_0x25645f)),uploadAttachmentsManager[_0x545d22(0x1c4)](_0x25645f,_0xdb6158);});else{this[_0x29f349(0x176)]['debug'](util[_0x29f349(0x1bb)](_0x4b9b6a[_0x29f349(0x18a)],_0x36d450[_0x29f349(0x17d)])),_0x5a31f2[_0x29f349(0x1ce)](),fs[_0x29f349(0x190)](_0x25645f);return;}})['on'](_0x4b9b6a[_0x155593(0x18b)],_0xc8f9c5=>{const _0x230ec2=_0x155593;this[_0x230ec2(0x176)][_0x230ec2(0x19b)](util[_0x230ec2(0x1bb)](_0x4b9b6a['QTmLr'],_0xc8f9c5[_0x230ec2(0x1ba)])),_0x5a31f2[_0x230ec2(0x1ce)](),fs['unlinkSync'](_0x25645f);return;});}else{if(!fs[_0x155593(0x1c7)](_0x47df2a)){this[_0x155593(0x176)]['debug'](util[_0x155593(0x1bb)](_0x4b9b6a[_0x155593(0x1a3)],_0x47df2a));return;}const _0x332366=fs[_0x155593(0x17e)](_0x47df2a),_0x312ee6=_0x4b9b6a[_0x155593(0x1a0)](_0x332366[_0x155593(0x1d0)],_0x4b9b6a[_0x155593(0x1b9)](0x400,0x400));if(_0x4b9b6a[_0x155593(0x1c9)](_0x312ee6,0x64)){this['logger'][_0x155593(0x19b)](util[_0x155593(0x1bb)](_0x4b9b6a[_0x155593(0x1b7)],_0x312ee6['toFixed'](0x2)));return;}const _0x4441d8=path[_0x155593(0x187)](_0x47df2a),_0xadf48d=path['join'](_0x5b5a22,_0x4441d8);fs[_0x155593(0x1b6)](_0x47df2a,_0xadf48d),uploadAttachmentsManager['trackFile'](_0xadf48d,_0xdb6158);}}static[a82_0x245c45(0x1c4)](_0xf0ef84,_0x39d4c8){const _0x506c65=a82_0x245c45,_0x1da6ea={};_0x1da6ea[_0x506c65(0x1b3)]='BuildLevel',_0x1da6ea[_0x506c65(0x17b)]=_0x506c65(0x1a6),_0x1da6ea[_0x506c65(0x1bd)]='Attachment\x20file\x20tracked\x20for\x20upload:\x20%s',_0x1da6ea['DQcet']=_0x506c65(0x186);const _0x2af405=_0x1da6ea;try{const _0xb4abb0=global[_0x506c65(0x1d1)]?.[_0x506c65(0x1a7)]?.[_0x506c65(0x1cc)],_0xdfc473=TestInfo[_0x506c65(0x1a5)](_0xb4abb0,_0xb4abb0[_0x506c65(0x1b4)]),_0x37cb4c=TestInfo[_0x506c65(0x181)](_0xdfc473),_0xee9948=_0x37cb4c[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{};_0xee9948[_0xf0ef84]={[TestFrameworkConstants[_0x506c65(0x1c2)]]:fs[_0x506c65(0x17e)](_0xf0ef84)['size'],[TestFrameworkConstants['KEY_FILE_NAME']]:path['basename'](_0xf0ef84),[TestFrameworkConstants['KEY_FILE_PATH']]:_0xf0ef84,[TestFrameworkConstants['KEY_FILE_LEVEL']]:_0x39d4c8?_0x2af405['FJNCO']:_0x2af405[_0x506c65(0x17b)]},_0x37cb4c[TestFrameworkConstants[_0x506c65(0x18c)]]=_0xee9948,TestInfo[_0x506c65(0x177)](_0xdfc473,_0x37cb4c),this[_0x506c65(0x176)][_0x506c65(0x19b)](util[_0x506c65(0x1bb)](_0x2af405[_0x506c65(0x1bd)],_0xf0ef84));}catch(_0xbe921f){this['logger'][_0x506c65(0x19b)](util[_0x506c65(0x1bb)](_0x2af405['DQcet'],_0xbe921f[_0x506c65(0x1ba)]));}}static['clearAttachments'](){const _0x31f374=a82_0x245c45,_0x135d2f={};_0x135d2f[_0x31f374(0x1c1)]=_0x31f374(0x1b5),_0x135d2f[_0x31f374(0x1cf)]='No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s',_0x135d2f[_0x31f374(0x195)]=_0x31f374(0x1a8);const _0x1c2917=_0x135d2f,_0xdec452=os[_0x31f374(0x1bf)](),_0x1beb68=path[_0x31f374(0x173)](_0xdec452,_0x1c2917[_0x31f374(0x1c1)]);if(!fs[_0x31f374(0x1c7)](_0x1beb68))return;const _0x492781=BrowserstackCLI[_0x31f374(0x196)]()[_0x31f374(0x1ca)][_0x31f374(0x17a)]?.[_0x31f374(0x19f)]?.['toObject']()?.['buildHashedId'],_0x5735fe=_0x492781?path[_0x31f374(0x173)](_0x1beb68,_0x492781):null;if(!_0x5735fe||!fs[_0x31f374(0x1c7)](_0x5735fe)){this[_0x31f374(0x176)][_0x31f374(0x19b)](util[_0x31f374(0x1bb)](_0x1c2917[_0x31f374(0x1cf)],_0x492781));return;}const _0xc6100c={};_0xc6100c['recursive']=!![],_0xc6100c[_0x31f374(0x197)]=!![],fs[_0x31f374(0x1a4)](_0x5735fe,_0xc6100c),this[_0x31f374(0x176)][_0x31f374(0x19b)](util[_0x31f374(0x1bb)](_0x1c2917[_0x31f374(0x195)]));}}module[a82_0x245c45(0x189)]=uploadAttachmentsManager;
|