browserstack-node-sdk 1.40.3 → 1.40.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/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a69_0x295d(_0x4b586d,_0xd3e32a){const _0x324737=a69_0x3247();return a69_0x295d=function(_0x295de3,_0xbada4d){_0x295de3=_0x295de3-0xd0;let _0x210ee4=_0x324737[_0x295de3];return _0x210ee4;},a69_0x295d(_0x4b586d,_0xd3e32a);}const a69_0x1bde51=a69_0x295d;(function(_0x5802e9,_0x25cb5a){const _0x5a25ec=a69_0x295d,_0x4df732=_0x5802e9();while(!![]){try{const _0x365235=parseInt(_0x5a25ec(0xec))/0x1*(-parseInt(_0x5a25ec(0xd6))/0x2)+-parseInt(_0x5a25ec(0xdf))/0x3*(parseInt(_0x5a25ec(0xd4))/0x4)+parseInt(_0x5a25ec(0xd7))/0x5*(-parseInt(_0x5a25ec(0xd1))/0x6)+-parseInt(_0x5a25ec(0xeb))/0x7*(-parseInt(_0x5a25ec(0xe1))/0x8)+parseInt(_0x5a25ec(0xe9))/0x9+-parseInt(_0x5a25ec(0xef))/0xa+-parseInt(_0x5a25ec(0xe3))/0xb*(-parseInt(_0x5a25ec(0xe0))/0xc);if(_0x365235===_0x25cb5a)break;else _0x4df732['push'](_0x4df732['shift']());}catch(_0x6c8ecf){_0x4df732['push'](_0x4df732['shift']());}}}(a69_0x3247,0xba327));function a69_0x3247(){const _0x165e6f=['7ALCVqD','4MfQWgE','testFrameworks','split','6212750cipGGA','testFrameworksVersions','currentHookState','5334swYNio','getLastTestState','getCreatedAt','4DuqLyY','NONE','385428OsXNON','20PtYGeZ','currentTestState','./trackedContext','getCurrentHookState','setLastHookState','setLastTestState','HuTIA','lastHookState','1357503oWIqEB','13410132NbwRni','1264008pSWyAB','setCurrentHookState','22zslKpC','3|2|5|6|4|7|1|0','lastTestState','exports','./trackedInstance','../state/testFrameworkState','1960452lBIZKk','getLastHookState'];a69_0x3247=function(){return _0x165e6f;};return a69_0x3247();}const {createClassLogger}=require('../../../helpers/classLogger'),logger=createClassLogger('TrackedInstance'),HookState=require('../state/hookState'),TestFrameworkState=require(a69_0x1bde51(0xe8)),TrackedContext=require(a69_0x1bde51(0xd9)),TrackedInstance=require(a69_0x1bde51(0xe7)),now=new Date();class TestFrameworkInstance extends TrackedInstance{constructor(_0x41316c,_0x1ae555,_0x50c03a,_0x4af3f1,_0x2460fc){const _0x26dd68=a69_0x1bde51,_0x3589ce={};_0x3589ce[_0x26dd68(0xdd)]=_0x26dd68(0xe4);const _0x4cc3f8=_0x3589ce,_0x2982c3=_0x4cc3f8['HuTIA'][_0x26dd68(0xee)]('|');let _0xceca88=0x0;while(!![]){switch(_0x2982c3[_0xceca88++]){case'0':this['createdAt']=now['toLocaleString']();continue;case'1':this['lastHookState']=HookState['NONE'];continue;case'2':this[_0x26dd68(0xed)]=_0x1ae555;continue;case'3':super(_0x41316c);continue;case'4':this[_0x26dd68(0xd0)]=_0x2460fc;continue;case'5':this[_0x26dd68(0xf0)]=_0x50c03a;continue;case'6':this[_0x26dd68(0xd8)]=_0x4af3f1;continue;case'7':this[_0x26dd68(0xe5)]=TestFrameworkState[_0x26dd68(0xd5)];continue;}break;}}['getCurrentTestState'](){const _0xefc5de=a69_0x1bde51;return this[_0xefc5de(0xd8)];}['setCurrentTestState'](_0x17fcbf){const _0x528f45=a69_0x1bde51;this[_0x528f45(0xdc)](this[_0x528f45(0xd8)]),this[_0x528f45(0xd8)]=_0x17fcbf;}[a69_0x1bde51(0xda)](){const _0x2bdf44=a69_0x1bde51;return this[_0x2bdf44(0xd0)];}[a69_0x1bde51(0xe2)](_0xf7a921){const _0x151b00=a69_0x1bde51;this[_0x151b00(0xdb)](this[_0x151b00(0xd0)]),this['currentHookState']=_0xf7a921;}[a69_0x1bde51(0xd2)](){return this['lastTestState'];}[a69_0x1bde51(0xdc)](_0x122564){const _0x44db02=a69_0x1bde51;this[_0x44db02(0xe5)]=_0x122564;}[a69_0x1bde51(0xea)](){const _0x39d94b=a69_0x1bde51;return this[_0x39d94b(0xde)];}[a69_0x1bde51(0xdb)](_0x189a1){const _0x1bb12a=a69_0x1bde51;this[_0x1bb12a(0xde)]=_0x189a1;}[a69_0x1bde51(0xd3)](){return this['createdAt'];}}module[a69_0x1bde51(0xe6)]=TestFrameworkInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x2ab40d=a70_0x504b;(function(_0x6e5fd9,_0xf96bc8){const _0x459f41=a70_0x504b,_0x5ab7c1=_0x6e5fd9();while(!![]){try{const _0x2c971f=parseInt(_0x459f41(0x102))/0x1+parseInt(_0x459f41(0xfe))/0x2*(-parseInt(_0x459f41(0xfc))/0x3)+parseInt(_0x459f41(0x109))/0x4+parseInt(_0x459f41(0x105))/0x5*(parseInt(_0x459f41(0x103))/0x6)+parseInt(_0x459f41(0x107))/0x7+-parseInt(_0x459f41(0xf8))/0x8*(parseInt(_0x459f41(0xfb))/0x9)+-parseInt(_0x459f41(0xfd))/0xa;if(_0x2c971f===_0xf96bc8)break;else _0x5ab7c1['push'](_0x5ab7c1['shift']());}catch(_0x49f67f){_0x5ab7c1['push'](_0x5ab7c1['shift']());}}}(a70_0x3c85,0xe87db));const {createClassLogger}=require(a70_0x2ab40d(0xff)),logger=createClassLogger(a70_0x2ab40d(0x100));class TrackedContext{constructor(_0x5134e7,_0x577534,_0x3bf7c8,_0x5dbea2){const _0x195487=a70_0x2ab40d;this['id']=_0x5134e7,this[_0x195487(0x104)]=_0x577534,this['processId']=_0x3bf7c8,this['type']=_0x5dbea2;}[a70_0x2ab40d(0xf9)](){const _0x3e783b=a70_0x2ab40d;return this[_0x3e783b(0x104)];}[a70_0x2ab40d(0x101)](){const _0x935ca8=a70_0x2ab40d;return this[_0x935ca8(0x108)];}[a70_0x2ab40d(0xfa)](){return this['id'];}[a70_0x2ab40d(0x106)](){const _0x472f86=a70_0x2ab40d;return this[_0x472f86(0xf7)];}}function a70_0x504b(_0x2c5e37,_0x4b8baf){const _0x3c8529=a70_0x3c85();return a70_0x504b=function(_0x504b1a,_0x7b8e28){_0x504b1a=_0x504b1a-0xf7;let _0x5ef60d=_0x3c8529[_0x504b1a];return _0x5ef60d;},a70_0x504b(_0x2c5e37,_0x4b8baf);}function a70_0x3c85(){const _0x54787c=['type','584JhsIBv','getThreadId','getId','12951jXfAPH','3RQBdEE','27714810eoxCUj','561608RPgJaU','../../../helpers/classLogger','TrackedContext','getProcessId','833773hZJHfc','6330426QzvVea','threadId','5mZvJLj','getType','8428889rYuJyC','processId','4066576rVZXmR'];a70_0x3c85=function(){return _0x54787c;};return a70_0x3c85();}module['exports']=TrackedContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a71_0x1431(){const _0x1eaf6f=['updateData','qNcDs','context','forEach','data','update','2574570ZyabxW','dQCKQ','299383uugZDP','264503CcJPGM','set','sha256','483876vgVWYX','783902YKBWTf','isBrowserstackAutomationSession','3UWCjXB','eSQfi','1049075jzPxDQ','worker_threads','getAllData','pid','addMultipleEntries','crypto','updateMultipleEntries','40BbGdqb','KEY_IS_BROWSERSTACK_AUTOMATION_SESSION','entries','createContext','hex','keys','get','10886067GbDfQW'];a71_0x1431=function(){return _0x1eaf6f;};return a71_0x1431();}const a71_0x3e785c=a71_0x2099;(function(_0x455f9a,_0x2b6a95){const _0x3c5261=a71_0x2099,_0x5243ee=_0x455f9a();while(!![]){try{const _0x4209e1=-parseInt(_0x3c5261(0xab))/0x1+-parseInt(_0x3c5261(0xaf))/0x2*(parseInt(_0x3c5261(0xb1))/0x3)+parseInt(_0x3c5261(0xae))/0x4+-parseInt(_0x3c5261(0xb3))/0x5+-parseInt(_0x3c5261(0xc8))/0x6+parseInt(_0x3c5261(0xaa))/0x7*(parseInt(_0x3c5261(0xba))/0x8)+parseInt(_0x3c5261(0xc1))/0x9;if(_0x4209e1===_0x2b6a95)break;else _0x5243ee['push'](_0x5243ee['shift']());}catch(_0x2ec2a2){_0x5243ee['push'](_0x5243ee['shift']());}}}(a71_0x1431,0x3ccb5));function a71_0x2099(_0x32866d,_0x40abc8){const _0x1431ac=a71_0x1431();return a71_0x2099=function(_0x20996e,_0x151f8f){_0x20996e=_0x20996e-0xaa;let _0x274a31=_0x1431ac[_0x20996e];return _0x274a31;},a71_0x2099(_0x32866d,_0x40abc8);}const TrackedContext=require('./trackedContext'),crypto=require(a71_0x3e785c(0xb8)),{threadId}=require(a71_0x3e785c(0xb4));class TrackedInstance{static [a71_0x3e785c(0xbb)]=a71_0x3e785c(0xb0);constructor(_0x16d46f){const _0x379a2a=a71_0x3e785c;this[_0x379a2a(0xc4)]=_0x16d46f,this[_0x379a2a(0xc6)]=new Map();}['getRef'](){const _0x4ec519=a71_0x3e785c;return this[_0x4ec519(0xc4)]['getId']();}['getContext'](){const _0x1de410=a71_0x3e785c;return this[_0x1de410(0xc4)];}[a71_0x3e785c(0xb5)](){const _0x3af4e6=a71_0x3e785c;return this[_0x3af4e6(0xc6)];}[a71_0x3e785c(0xb9)](_0x210957){const _0x21a19c=a71_0x3e785c;Object[_0x21a19c(0xbf)](_0x210957)['forEach'](_0x31251c=>{const _0x6c44bd=_0x21a19c;this['data'][_0x6c44bd(0xac)](_0x31251c,_0x210957[_0x31251c]);});}[a71_0x3e785c(0xb7)](_0x4a1c82){const _0x3b46df=a71_0x3e785c;Object[_0x3b46df(0xbc)](_0x4a1c82)[_0x3b46df(0xc5)](([_0x345a9a,_0x34c99e])=>{const _0xf9eeae=_0x3b46df,_0x170392=this[_0xf9eeae(0xc6)][_0xf9eeae(0xc0)](_0x345a9a)||{},_0x1210b4={..._0x170392,..._0x34c99e},_0x11e41c=_0x1210b4;this[_0xf9eeae(0xc6)][_0xf9eeae(0xac)](_0x345a9a,_0x11e41c);});}['getData'](_0x155fa6){const _0x44aa87=a71_0x3e785c;return this['data'][_0x44aa87(0xc0)](_0x155fa6);}[a71_0x3e785c(0xc2)](_0xb6ea,_0x5d451a){const _0xc2b7a7=a71_0x3e785c;this[_0xc2b7a7(0xc6)][_0xc2b7a7(0xac)](_0xb6ea,_0x5d451a);}static[a71_0x3e785c(0xbd)](_0x53122a){const _0x11d33b=a71_0x3e785c,_0x1aec18={};_0x1aec18['qNcDs']=_0x11d33b(0xad),_0x1aec18[_0x11d33b(0xb2)]=_0x11d33b(0xbe),_0x1aec18[_0x11d33b(0xc9)]=function(_0x2f908e,_0x34fbbe){return _0x2f908e||_0x34fbbe;};const _0x5ba3b5=_0x1aec18;return new TrackedContext(crypto['createHash'](_0x5ba3b5[_0x11d33b(0xc3)])[_0x11d33b(0xc7)](_0x53122a)['digest'](_0x5ba3b5[_0x11d33b(0xb2)]),_0x5ba3b5[_0x11d33b(0xc9)](threadId,0x0),process[_0x11d33b(0xb6)],typeof _0x53122a);}}module['exports']=TrackedInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x2e7fa2=a72_0x590c;(function(_0x1e81de,_0x30eb80){const _0x31ac8f=a72_0x590c,_0x508563=_0x1e81de();while(!![]){try{const _0x1785e8=parseInt(_0x31ac8f(0x1fd))/0x1+parseInt(_0x31ac8f(0x1e9))/0x2*(-parseInt(_0x31ac8f(0x1e7))/0x3)+parseInt(_0x31ac8f(0x1db))/0x4*(parseInt(_0x31ac8f(0x1f4))/0x5)+-parseInt(_0x31ac8f(0x1e8))/0x6*(parseInt(_0x31ac8f(0x1e3))/0x7)+parseInt(_0x31ac8f(0x1ee))/0x8*(-parseInt(_0x31ac8f(0x21f))/0x9)+parseInt(_0x31ac8f(0x202))/0xa*(parseInt(_0x31ac8f(0x201))/0xb)+parseInt(_0x31ac8f(0x1d8))/0xc*(parseInt(_0x31ac8f(0x1ef))/0xd);if(_0x1785e8===_0x30eb80)break;else _0x508563['push'](_0x508563['shift']());}catch(_0x5d3658){_0x508563['push'](_0x508563['shift']());}}}(a72_0x389d,0xd18ae));const BaseModule=require(a72_0x2e7fa2(0x1fa)),{createClassLogger}=require(a72_0x2e7fa2(0x1d0)),CLIUtils=require('../cliUtils'),AutomationFramework=require('../framework/automationFramework'),AutomationFrameworkState=require(a72_0x2e7fa2(0x1f8)),HookState=require('../state/hookState'),GrpcClient=require(a72_0x2e7fa2(0x212)),scripts=require(a72_0x2e7fa2(0x1e4)),logger=createClassLogger('TrackedInstance'),PerformanceTester=require(a72_0x2e7fa2(0x20f)),{EVENTS}=require(a72_0x2e7fa2(0x20c));function a72_0x590c(_0xfd06a7,_0x31758d){const _0x389d27=a72_0x389d();return a72_0x590c=function(_0x590cd8,_0x58d41a){_0x590cd8=_0x590cd8-0x1cc;let _0x331a26=_0x389d27[_0x590cd8];return _0x331a26;},a72_0x590c(_0xfd06a7,_0x31758d);}class AccessibilityModule extends BaseModule{static ['MODULE_NAME']=AccessibilityModule[a72_0x2e7fa2(0x1d1)];constructor(_0x31d35f){const _0x35c9e2=a72_0x2e7fa2,_0x5c3031={};_0x5c3031['ORQhj']=_0x35c9e2(0x208);const _0x9aff35=_0x5c3031,_0x7f1a69=_0x9aff35[_0x35c9e2(0x1e0)][_0x35c9e2(0x1d2)]('|');let _0x97d2e8=0x0;while(!![]){switch(_0x7f1a69[_0x97d2e8++]){case'0':this[_0x35c9e2(0x1f3)]=new Map();continue;case'1':this['setAccessibilityToken'](_0x31d35f[_0x35c9e2(0x1dc)]()[_0x35c9e2(0x1e6)]());continue;case'2':AutomationFramework[_0x35c9e2(0x203)](AutomationFrameworkState['QUIT'],HookState['PRE'],this[_0x35c9e2(0x21e)][_0x35c9e2(0x1da)](this));continue;case'3':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x35c9e2(0x210)],HookState['PRE'],this['onBeforeTest']['bind'](this));continue;case'4':this[_0x35c9e2(0x206)]=[];continue;case'5':this[_0x35c9e2(0x21a)]=!![];continue;case'6':AutomationFramework['registerObserver'](AutomationFrameworkState['EXECUTE'],HookState[_0x35c9e2(0x216)],this[_0x35c9e2(0x21d)][_0x35c9e2(0x1da)](this));continue;case'7':this['LOG_DISABLED_SHOWN']=new Map();continue;case'8':this[_0x35c9e2(0x1dd)]=_0x31d35f[_0x35c9e2(0x222)]();continue;case'9':super();continue;case'10':this[_0x35c9e2(0x218)]=![];continue;}break;}}[a72_0x2e7fa2(0x21a)](){const _0x39df11=a72_0x2e7fa2;return this[_0x39df11(0x21a)];}[a72_0x2e7fa2(0x1ce)](){const _0x4cdfd0=a72_0x2e7fa2;return AccessibilityModule[_0x4cdfd0(0x200)];}[a72_0x2e7fa2(0x20e)](){const _0x6dc067=a72_0x2e7fa2;return this[_0x6dc067(0x1f3)][_0x6dc067(0x1ff)](CLIUtils['getCurrentInstanceName'](),![]);}[a72_0x2e7fa2(0x1fc)](){const _0x20c858=a72_0x2e7fa2;return this[_0x20c858(0x1d5)]['get'](CLIUtils[_0x20c858(0x1cc)](),![]);}['setLogDisabledShown'](_0x28cdef){const _0x3722c0=a72_0x2e7fa2;this[_0x3722c0(0x1d5)]['put'](CLIUtils[_0x3722c0(0x1cc)](),_0x28cdef);}async[a72_0x2e7fa2(0x204)](_0x14722b){const _0x2dfe38=a72_0x2e7fa2;try{PerformanceTester[_0x2dfe38(0x1d6)](EVENTS[_0x2dfe38(0x214)]);const _0x548764=await GrpcClient[_0x2dfe38(0x211)]()[_0x2dfe38(0x219)](_0x14722b);_0x548764&&_0x548764[_0x2dfe38(0x20a)]()&&_0x548764[_0x2dfe38(0x20a)]()['getSuccess']()&&(global[_0x2dfe38(0x1ed)]=!![],process[_0x2dfe38(0x20d)][_0x2dfe38(0x1cf)]=!![],this[_0x2dfe38(0x1e2)](_0x548764,_0x14722b)),PerformanceTester[_0x2dfe38(0x1e5)](EVENTS[_0x2dfe38(0x214)]);}catch(_0xf49e87){PerformanceTester['end'](EVENTS[_0x2dfe38(0x214)],![],_0xf49e87[_0x2dfe38(0x1f9)]),logger[_0x2dfe38(0x1fb)]('Error\x20while\x20setting\x20accessibility\x20config:\x20'+(_0xf49e87[_0x2dfe38(0x1f6)]||_0xf49e87['message']));}}[a72_0x2e7fa2(0x1f1)](){const _0x2afd3a=a72_0x2e7fa2;return this[_0x2afd3a(0x206)][_0x2afd3a(0x20b)](_0x151fa7=>_0x151fa7[_0x2afd3a(0x1f5)]()===_0x2afd3a(0x1df))?.[_0x2afd3a(0x213)]()||'';}async['setAccessibilityConfig'](_0x197a17,_0x1e8c0e){const _0x4dbb14=a72_0x2e7fa2,_0x2038a2=_0x197a17[_0x4dbb14(0x20a)]()[_0x4dbb14(0x1dc)](),_0x507371=_0x2038a2['getScriptsList'](),_0x16e039=_0x2038a2[_0x4dbb14(0x1de)]()?.['getCommandsList']();scripts[_0x4dbb14(0x217)](_0x507371,_0x16e039),scripts['toJson']();const _0x39eb6c=_0x2038a2[_0x4dbb14(0x1e6)]();this['capabilities']=_0x2038a2[_0x4dbb14(0x1e6)](),await this[_0x4dbb14(0x1fe)](_0x39eb6c,_0x1e8c0e[_0x4dbb14(0x1f7)]);}async[a72_0x2e7fa2(0x1fe)](_0x4a5c66,_0xabef71={}){const _0xddfa3f=a72_0x2e7fa2,_0x4dc61c={};_0x4dc61c[_0xddfa3f(0x1cd)]=function(_0x42a89a,_0x1400af){return _0x42a89a===_0x1400af;},_0x4dc61c[_0xddfa3f(0x1d7)]='accessibilityToken',_0x4dc61c['BJPKz']=_0xddfa3f(0x1f2),_0x4dc61c[_0xddfa3f(0x1eb)]=_0xddfa3f(0x207),_0x4dc61c[_0xddfa3f(0x1ea)]=_0xddfa3f(0x21c),_0x4dc61c[_0xddfa3f(0x1e1)]=function(_0x3bf0b7,_0x3a07c6){return _0x3bf0b7===_0x3a07c6;},_0x4dc61c[_0xddfa3f(0x220)]=_0xddfa3f(0x21b),_0x4dc61c[_0xddfa3f(0x221)]='browserstack.accessibilityOptions.scannerVersion',_0x4dc61c['YUdKZ']=_0xddfa3f(0x1d9),_0x4dc61c['UrPff']=_0xddfa3f(0x215);const _0x451558=_0x4dc61c;for(const _0x20524f of _0x4a5c66){logger[_0xddfa3f(0x1ec)]('name:\x20'+_0x20524f[_0xddfa3f(0x1f5)]()+'\x20value='+_0x20524f[_0xddfa3f(0x213)]());if(_0x451558[_0xddfa3f(0x1cd)](_0x20524f[_0xddfa3f(0x1f5)](),_0x451558[_0xddfa3f(0x1d7)]))process['env']['BS_A11Y_JWT']=_0x20524f['getValue'](),_0xabef71[_0x451558[_0xddfa3f(0x209)]]=_0x20524f[_0xddfa3f(0x213)]();else{if(_0x451558[_0xddfa3f(0x1cd)](_0x20524f[_0xddfa3f(0x1f5)](),_0x451558[_0xddfa3f(0x1eb)]))_0xabef71[_0x451558[_0xddfa3f(0x1ea)]]=_0x20524f[_0xddfa3f(0x213)]();else{if(_0x451558[_0xddfa3f(0x1e1)](_0x20524f[_0xddfa3f(0x1f5)](),_0x451558['rXurr']))_0xabef71[_0x451558[_0xddfa3f(0x221)]]=_0x20524f[_0xddfa3f(0x213)]();else _0x451558[_0xddfa3f(0x1cd)](_0x20524f[_0xddfa3f(0x1f5)](),_0x451558[_0xddfa3f(0x1d3)])&&(_0xabef71[_0x451558[_0xddfa3f(0x1f0)]]=_0x20524f[_0xddfa3f(0x213)]());}}}}[a72_0x2e7fa2(0x21e)](_0x544b69){const _0x12fc3c=a72_0x2e7fa2;logger[_0x12fc3c(0x1ec)](_0x12fc3c(0x205)+_0x544b69);}['onBeforeExecute'](_0x47b31e){const _0xb59c93=a72_0x2e7fa2;logger[_0xb59c93(0x1ec)](_0xb59c93(0x1d4)+_0x47b31e);}}function a72_0x389d(){const _0x367307=['getOptions','accessibilityConfig','getCommandsToWrap','goog:chromeOptions','ORQhj','hxsYV','setAccessibilityConfig','19691GLyqJr','../../../helpers/accessibility-automation/scripts','end','getCapabilitiesList','4573203ysgdlL','2982NMkdkr','2SEXmdh','vyUHn','KqIWi','info','accessibilityPlatform','12469112WBfMAz','15811029ycRgog','UrPff','getGoogleChromeOptions','browserstack.accessibilityOptions.authToken','accessibility','103915MJoYix','getName','stack','launchCaps','../state/automationFrameworkState','message','./baseModule','error','getLogDisabledShown','593052HHwGII','setAccessibilityToken','get','MODULE_NAME','44ABWCHF','1704940makAXe','registerObserver','onBeforeTest','onAfterTest:\x20event=','capabilities','wcagVersion','9|6|3|2|5|8|0|7|10|4|1','BJPKz','getAccessibility','find','../../../helpers/performance/constants.js','env','getCurrentAccessibilityStatus','../../../helpers/performance/performance-tester.js','CREATE','getInstance','../grpcClient','getValue','SDK_ACCESSIBILITY_CONFIG','browserstack.accessibilityOptions.scannerProcessingTimeout','PRE','parseFromProto','isAppAccessibility','getAccessibilityConfig','isEnabled','scannerVersion','browserstack.accessibilityOptions.wcagVersion','onBeforeExecute','onAfterTest','9GNVGKb','rXurr','RIUrX','toObject','getCurrentInstanceName','wxYOH','getModuleName','BROWSERSTACK_TEST_ACCESSIBILITY_YML','../../../helpers/classLogger','name','split','YUdKZ','onBeforeExecute:\x20event=','LOG_DISABLED_SHOWN','start','esqUK','36JocvbT','scannerProcessingTimeout','bind','80nUplba'];a72_0x389d=function(){return _0x367307;};return a72_0x389d();};module['exports']=AccessibilityModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x3239cc=a73_0x4c74;function a73_0x5a72(){const _0xc29d4f=['74750URvTds','config','ensureBinSession','9228516RPBLkM','3804UQEeBL','winstonLogger','12875SOQznU','debug','ddJMV','client','name','123tITPyc','DuUVP','exports','0|1|3|4|2',',\x20platformIndex=','Configured\x20module\x20','fqDmN','800dWTGHS','\x20with\x20binSessionId=','oLikW','425637OPlpBM','getModuleName','../../../helpers/logger.js','BaseModule','binSessionId','50nIZYBL','configure','2693966QDrkXk','17115tjEncN','4|3|0|1|2','split','6403554jNYVJh','16PCNktb'];a73_0x5a72=function(){return _0xc29d4f;};return a73_0x5a72();}(function(_0x40371d,_0x2a6bdf){const _0x2d3bf8=a73_0x4c74,_0x5a4144=_0x40371d();while(!![]){try{const _0x487cd2=parseInt(_0x2d3bf8(0x197))/0x1+-parseInt(_0x2d3bf8(0x1a4))/0x2*(-parseInt(_0x2d3bf8(0x18d))/0x3)+-parseInt(_0x2d3bf8(0x194))/0x4*(parseInt(_0x2d3bf8(0x188))/0x5)+parseInt(_0x2d3bf8(0x186))/0x6*(-parseInt(_0x2d3bf8(0x19f))/0x7)+parseInt(_0x2d3bf8(0x1a3))/0x8*(parseInt(_0x2d3bf8(0x1a2))/0x9)+parseInt(_0x2d3bf8(0x19c))/0xa*(-parseInt(_0x2d3bf8(0x19e))/0xb)+parseInt(_0x2d3bf8(0x1a7))/0xc;if(_0x487cd2===_0x2a6bdf)break;else _0x5a4144['push'](_0x5a4144['shift']());}catch(_0x5a5ba2){_0x5a4144['push'](_0x5a4144['shift']());}}}(a73_0x5a72,0xd20f7));function a73_0x4c74(_0x21c749,_0x5270ba){const _0x5a72b1=a73_0x5a72();return a73_0x4c74=function(_0x4c743b,_0x5e87ab){_0x4c743b=_0x4c743b-0x186;let _0x2e968d=_0x5a72b1[_0x4c743b];return _0x2e968d;},a73_0x4c74(_0x21c749,_0x5270ba);}const logger=require(a73_0x3239cc(0x199))[a73_0x3239cc(0x187)];class BaseModule{constructor(){const _0x2f4d27=a73_0x3239cc,_0x4f3608={};_0x4f3608[_0x2f4d27(0x18e)]=_0x2f4d27(0x1a0),_0x4f3608[_0x2f4d27(0x18a)]=_0x2f4d27(0x19a);const _0x2c7e04=_0x4f3608,_0x456888=_0x2c7e04[_0x2f4d27(0x18e)][_0x2f4d27(0x1a1)]('|');let _0x45b15a=0x0;while(!![]){switch(_0x456888[_0x45b15a++]){case'0':this['platformIndex']=0x0;continue;case'1':this[_0x2f4d27(0x1a5)]={};continue;case'2':this[_0x2f4d27(0x18b)]=null;continue;case'3':this[_0x2f4d27(0x19b)]=null;continue;case'4':this[_0x2f4d27(0x18c)]=_0x2c7e04['ddJMV'];continue;}break;}}[a73_0x3239cc(0x1a6)](){const _0x1c36b0=a73_0x3239cc,_0x12f67f={};_0x12f67f[_0x1c36b0(0x193)]='Missing\x20binSessionId';const _0x415706=_0x12f67f;if(!this[_0x1c36b0(0x19b)])throw new Error(_0x415706['fqDmN']);}[a73_0x3239cc(0x198)](){const _0x3eb33f=a73_0x3239cc;return this[_0x3eb33f(0x18c)];}[a73_0x3239cc(0x19d)](_0x56b8c3,_0x393157,_0x596b51,_0x396bb1={}){const _0x29f70e=a73_0x3239cc,_0xb2419e={};_0xb2419e[_0x29f70e(0x196)]=_0x29f70e(0x190);const _0x2347c8=_0xb2419e,_0x4152f2=_0x2347c8[_0x29f70e(0x196)][_0x29f70e(0x1a1)]('|');let _0x1b86de=0x0;while(!![]){switch(_0x4152f2[_0x1b86de++]){case'0':this[_0x29f70e(0x19b)]=_0x56b8c3;continue;case'1':this['platformIndex']=_0x393157;continue;case'2':logger[_0x29f70e(0x189)](_0x29f70e(0x192)+this['getModuleName']()+_0x29f70e(0x195)+_0x56b8c3+_0x29f70e(0x191)+_0x393157);continue;case'3':this[_0x29f70e(0x18b)]=_0x596b51;continue;case'4':this[_0x29f70e(0x1a5)]=_0x396bb1;continue;}break;}}}module[a73_0x3239cc(0x18f)]=BaseModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x2a2c18=a74_0x3133;function a74_0x3133(_0xc344e,_0x3f3334){const _0x1c34aa=a74_0x1c34();return a74_0x3133=function(_0x3133f7,_0xa880fb){_0x3133f7=_0x3133f7-0x186;let _0x6b4085=_0x1c34aa[_0x3133f7];return _0x6b4085;},a74_0x3133(_0xc344e,_0x3f3334);}(function(_0x9f2ad6,_0xa9f0a4){const _0x875d99=a74_0x3133,_0x3ed4e3=_0x9f2ad6();while(!![]){try{const _0x23345b=parseInt(_0x875d99(0x1a6))/0x1+-parseInt(_0x875d99(0x1a9))/0x2*(-parseInt(_0x875d99(0x187))/0x3)+-parseInt(_0x875d99(0x1ab))/0x4*(parseInt(_0x875d99(0x190))/0x5)+parseInt(_0x875d99(0x194))/0x6+-parseInt(_0x875d99(0x1a8))/0x7+parseInt(_0x875d99(0x1a5))/0x8*(parseInt(_0x875d99(0x188))/0x9)+parseInt(_0x875d99(0x1b0))/0xa*(-parseInt(_0x875d99(0x1a1))/0xb);if(_0x23345b===_0xa9f0a4)break;else _0x3ed4e3['push'](_0x3ed4e3['shift']());}catch(_0x5dc2e0){_0x3ed4e3['push'](_0x3ed4e3['shift']());}}}(a74_0x1c34,0xe346a));function a74_0x1c34(){const _0x56ce15=['observabilityConfig','11148123pzYsVT','184196wBkqsu','../../../helpers/performance/performance-tester.js','283844mRHtUQ','../../../helpers/performance/constants.js','../../../helpers/classLogger.js','vWUTz','registerObserver','10upGmUR','end','3mQakJj','46107ZWhJfP','../framework/automationFramework.js','now','CgVOF','dFFhU','ObservabilityModule','onBeforeTest:\x20page\x20is\x20not\x20defined','exports','10zaGIYo','getModuleName','ZtSMP','onBeforeTest','9847794LmHQOQ','../state/hookState.js','logger','info','SYNC','debug','page','CREATE','bind','../../../helpers/helper.js','ObservabilitySync:','../state/automationFrameworkState.js','start','6697493Sqkchk','AEiPu','POST','RuzBE','376QHqaQY','1300118KYsQRa'];a74_0x1c34=function(){return _0x56ce15;};return a74_0x1c34();}const BaseModule=require('./baseModule'),{createClassLogger}=require(a74_0x2a2c18(0x1ad)),AutomationFramework=require(a74_0x2a2c18(0x189)),AutomationFrameworkState=require(a74_0x2a2c18(0x19f)),HookState=require(a74_0x2a2c18(0x195)),{playwrightAnnotate}=require(a74_0x2a2c18(0x19d)),PerformanceTester=require(a74_0x2a2c18(0x1aa)),{O11y_EVENTS}=require(a74_0x2a2c18(0x1ac));class ObservabilityModule extends BaseModule{[a74_0x2a2c18(0x196)]=createClassLogger(a74_0x2a2c18(0x18d));constructor(_0x5887ba){const _0x41d36d=a74_0x2a2c18,_0x37634f={};_0x37634f[_0x41d36d(0x18c)]=_0x41d36d(0x18d);const _0xd56022=_0x37634f;super(),this['name']=_0xd56022['dFFhU'],this[_0x41d36d(0x1a7)]=_0x5887ba,AutomationFramework[_0x41d36d(0x1af)](AutomationFrameworkState[_0x41d36d(0x19b)],HookState[_0x41d36d(0x1a3)],this['onBeforeTest'][_0x41d36d(0x19c)](this));}[a74_0x2a2c18(0x191)](){return ObservabilityModule['MODULE_NAME'];}async[a74_0x2a2c18(0x193)](_0x27ca6c){const _0x7f413b=a74_0x2a2c18,_0x438f35={'CgVOF':function(_0x54519f,_0x4db7cd){return _0x54519f+_0x4db7cd;},'fpetq':_0x7f413b(0x19e),'AEiPu':function(_0x504a2d,_0xbd99b8,_0x50a224,_0x16cda3){return _0x504a2d(_0xbd99b8,_0x50a224,_0x16cda3);},'ZtSMP':_0x7f413b(0x199),'vWUTz':'onBeforeTest:\x20Observability\x20sync\x20done','RuzBE':_0x7f413b(0x18e)};if(_0x27ca6c[_0x7f413b(0x19a)]){const _0xfab0d8=_0x27ca6c['page'],_0x50cd71=Date[_0x7f413b(0x18a)](),_0x560172=_0x438f35[_0x7f413b(0x18b)](_0x438f35['fpetq'],_0x50cd71);PerformanceTester[_0x7f413b(0x1a0)](O11y_EVENTS[_0x7f413b(0x198)]),await _0x438f35[_0x7f413b(0x1a2)](playwrightAnnotate,_0xfab0d8,_0x560172,_0x438f35[_0x7f413b(0x192)]),PerformanceTester[_0x7f413b(0x186)](O11y_EVENTS[_0x7f413b(0x198)]),this[_0x7f413b(0x196)][_0x7f413b(0x197)](_0x438f35[_0x7f413b(0x1ae)]);}else this[_0x7f413b(0x196)][_0x7f413b(0x199)](_0x438f35[_0x7f413b(0x1a4)]);}}ObservabilityModule['MODULE_NAME']='ObservabilityModule',module[a74_0x2a2c18(0x18f)]=ObservabilityModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a75_0x12cdd3=a75_0x8604;function a75_0x8604(_0x4f4b64,_0xe0eb47){const _0x1ef0ff=a75_0x1ef0();return a75_0x8604=function(_0x860427,_0x2abe39){_0x860427=_0x860427-0x1f1;let _0x1be6cb=_0x1ef0ff[_0x860427];return _0x1be6cb;},a75_0x8604(_0x4f4b64,_0xe0eb47);}(function(_0x55534a,_0x26f681){const _0x1d594c=a75_0x8604,_0x2e7f80=_0x55534a();while(!![]){try{const _0x33752b=parseInt(_0x1d594c(0x237))/0x1+-parseInt(_0x1d594c(0x202))/0x2+parseInt(_0x1d594c(0x28a))/0x3*(-parseInt(_0x1d594c(0x216))/0x4)+parseInt(_0x1d594c(0x2a3))/0x5+parseInt(_0x1d594c(0x283))/0x6*(-parseInt(_0x1d594c(0x1fd))/0x7)+-parseInt(_0x1d594c(0x288))/0x8+parseInt(_0x1d594c(0x219))/0x9;if(_0x33752b===_0x26f681)break;else _0x2e7f80['push'](_0x2e7f80['shift']());}catch(_0x4c2d5d){_0x2e7f80['push'](_0x2e7f80['shift']());}}}(a75_0x1ef0,0x54530));const util=require(a75_0x12cdd3(0x29c)),BaseModule=require(a75_0x12cdd3(0x295)),{createClassLogger}=require(a75_0x12cdd3(0x21a)),{getFrameworkVersion}=require(a75_0x12cdd3(0x225)),{FRAMEWORKS}=require(a75_0x12cdd3(0x2a1)),AutomationFramework=require(a75_0x12cdd3(0x26c)),AutomationFrameworkState=require(a75_0x12cdd3(0x205)),HookState=require(a75_0x12cdd3(0x26a)),{playwrightBstackJsExecutor,nestedKeyValue,playwrightAnnotate,getPlaywrightStatus,getPlaywrightSessionName}=require(a75_0x12cdd3(0x233)),CLIUtils=require(a75_0x12cdd3(0x1f2)),BrowserstackCLI=require(a75_0x12cdd3(0x27b)),GrpcClient=require(a75_0x12cdd3(0x229)),PerformanceTester=require(a75_0x12cdd3(0x243)),PerformanceEvents=require('../../../helpers/performance/constants.js')[a75_0x12cdd3(0x261)],TestInfo=require(a75_0x12cdd3(0x1f1)),{getPlaywrightProvider}=require(a75_0x12cdd3(0x233)),TestFrameworkConstants=require(a75_0x12cdd3(0x2a4)),TestFrameworkState=require(a75_0x12cdd3(0x24b));class PlaywrightDriverModule extends BaseModule{static [a75_0x12cdd3(0x278)]=a75_0x12cdd3(0x25d);static [a75_0x12cdd3(0x28e)]=a75_0x12cdd3(0x273);static [a75_0x12cdd3(0x20d)]=a75_0x12cdd3(0x262);static [a75_0x12cdd3(0x201)]=a75_0x12cdd3(0x1f6);static [a75_0x12cdd3(0x2a6)]=a75_0x12cdd3(0x21c);static ['KEY_CAPABILITIES']='capabilities';static ['KEY_HUB_URL']='hubUrl';static [a75_0x12cdd3(0x231)]=a75_0x12cdd3(0x1fe);static [a75_0x12cdd3(0x22e)]='testId';[a75_0x12cdd3(0x22a)]=createClassLogger(a75_0x12cdd3(0x211));constructor(){const _0x5d418e=a75_0x12cdd3,_0x3bd117={};_0x3bd117[_0x5d418e(0x27d)]=_0x5d418e(0x24c),_0x3bd117['pIOSt']=_0x5d418e(0x211);const _0x4ed12d=_0x3bd117,_0x58d733=_0x4ed12d[_0x5d418e(0x27d)][_0x5d418e(0x27e)]('|');let _0x135b0a=0x0;while(!![]){switch(_0x58d733[_0x135b0a++]){case'0':this['testRunId']=null;continue;case'1':this[_0x5d418e(0x249)]=null;continue;case'2':AutomationFramework[_0x5d418e(0x220)](AutomationFrameworkState[_0x5d418e(0x23c)],HookState['POST'],this[_0x5d418e(0x281)]['bind'](this));continue;case'3':this[_0x5d418e(0x270)]=_0x4ed12d[_0x5d418e(0x263)];continue;case'4':this[_0x5d418e(0x264)]=[];continue;case'5':super();continue;case'6':AutomationFramework['registerObserver'](AutomationFrameworkState['EXECUTE'],HookState[_0x5d418e(0x22c)],this[_0x5d418e(0x272)][_0x5d418e(0x296)](this));continue;case'7':AutomationFramework[_0x5d418e(0x220)](AutomationFrameworkState['CREATE'],HookState[_0x5d418e(0x22c)],this[_0x5d418e(0x1fc)][_0x5d418e(0x296)](this));continue;case'8':this[_0x5d418e(0x271)]=null;continue;case'9':this[_0x5d418e(0x23d)]=null;continue;case'10':AutomationFramework[_0x5d418e(0x220)](AutomationFrameworkState[_0x5d418e(0x21f)],HookState[_0x5d418e(0x26e)],this[_0x5d418e(0x212)][_0x5d418e(0x296)](this));continue;}break;}}[a75_0x12cdd3(0x292)](){return PlaywrightDriverModule['MODULE_NAME'];}async['onBeforeDriverCreate'](_0x554ac1){const _0x5545e6=a75_0x12cdd3,_0x3bfeef={};_0x3bfeef[_0x5545e6(0x20f)]='onBeforeDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created';const _0xe5ccb6=_0x3bfeef;try{this[_0x5545e6(0x22a)]['debug'](_0xe5ccb6[_0x5545e6(0x20f)]);const _0x5e7b7c=_0x554ac1[_0x5545e6(0x29b)],_0x16535a=_0x554ac1[_0x5545e6(0x214)];AutomationFramework[_0x5545e6(0x267)](_0x554ac1[_0x5545e6(0x25a)],PlaywrightDriverModule['KEY_CAPABILITIES'],_0x5e7b7c),AutomationFramework[_0x5545e6(0x267)](_0x554ac1[_0x5545e6(0x25a)],PlaywrightDriverModule['KEY_HUB_URL'],_0x16535a);}catch(_0x416f55){this[_0x5545e6(0x22a)][_0x5545e6(0x1f8)](_0x5545e6(0x29a)+util[_0x5545e6(0x259)](_0x416f55));}}async[a75_0x12cdd3(0x281)](_0x142217){const _0x17587c=a75_0x12cdd3,_0x53771e={};_0x53771e['BCwts']=function(_0x406516,_0x594d3f){return _0x406516||_0x594d3f;};const _0x29248b=_0x53771e;try{const _0x15483f=_0x142217?.[_0x17587c(0x254)]&&_0x142217?.[_0x17587c(0x254)]?.['params']&&_0x142217?.[_0x17587c(0x254)]?.[_0x17587c(0x276)]?.[_0x17587c(0x206)],_0x3fd860=_0x142217?.['message']&&_0x142217?.[_0x17587c(0x254)]?.[_0x17587c(0x28d)];if(_0x29248b['BCwts'](_0x15483f,_0x3fd860)){this[_0x17587c(0x22a)][_0x17587c(0x26f)](_0x17587c(0x25e)+util['inspect'](_0x15483f)+_0x17587c(0x222)+util[_0x17587c(0x21e)](_0x3fd860));const _0x395278=_0x142217?.['instance'],_0x2e914d=_0x15483f?.[_0x17587c(0x1f6)]||_0x3fd860?.[_0x17587c(0x1f6)],_0x32e56e=_0x15483f?.['platformDetails']||_0x3fd860?.['platformDetails'];_0x2e914d&&(this[_0x17587c(0x22a)][_0x17587c(0x26f)](_0x17587c(0x245)+_0x2e914d),AutomationFramework[_0x17587c(0x267)](_0x395278,PlaywrightDriverModule[_0x17587c(0x201)],_0x2e914d)),_0x32e56e&&(this[_0x17587c(0x22a)][_0x17587c(0x26f)]('onDispatchExecute:\x20Playwright\x20platform\x20details:\x20'+util[_0x17587c(0x21e)](_0x32e56e)),AutomationFramework[_0x17587c(0x267)](_0x395278,PlaywrightDriverModule[_0x17587c(0x2a6)],_0x32e56e));}}catch(_0x5caef2){this[_0x17587c(0x22a)][_0x17587c(0x1f8)]('Error\x20in\x20onDispatchExecute:\x20'+util[_0x17587c(0x259)](_0x5caef2));}}async[a75_0x12cdd3(0x1fc)](_0x411447){const _0x6dca4b=a75_0x12cdd3,_0x5bcc11={'JEcFQ':_0x6dca4b(0x284),'uDLnd':function(_0x1e1d8c,_0x18e5bf){return _0x1e1d8c(_0x18e5bf);},'oCtkQ':'onAfterDriverCreate:\x20Setting\x20page\x20object','UOxtv':_0x6dca4b(0x1fa),'BBIzo':_0x6dca4b(0x299),'TnEZz':_0x6dca4b(0x253),'yattq':_0x6dca4b(0x29e)};try{this[_0x6dca4b(0x22a)][_0x6dca4b(0x26f)](_0x5bcc11[_0x6dca4b(0x248)]);const _0x22ed15=_0x411447[_0x6dca4b(0x25a)];this[_0x6dca4b(0x249)]=_0x5bcc11[_0x6dca4b(0x210)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);if(_0x411447['page']){this[_0x6dca4b(0x22a)]['debug'](_0x5bcc11['oCtkQ']),AutomationFramework[_0x6dca4b(0x267)](_0x22ed15,PlaywrightDriverModule[_0x6dca4b(0x20d)],_0x411447['page']);if(_0x411447[_0x6dca4b(0x227)]){this['logger'][_0x6dca4b(0x26f)](_0x5bcc11[_0x6dca4b(0x286)]);const _0x162045=_0x411447['testInfo']?.[_0x6dca4b(0x204)]?.['id']||_0x411447[_0x6dca4b(0x227)]?.[_0x6dca4b(0x277)];AutomationFramework[_0x6dca4b(0x267)](_0x22ed15,PlaywrightDriverModule[_0x6dca4b(0x22e)],_0x162045),await this[_0x6dca4b(0x241)](_0x411447[_0x6dca4b(0x227)]);}}_0x411447[_0x6dca4b(0x26d)]&&(this[_0x6dca4b(0x22a)][_0x6dca4b(0x26f)](_0x5bcc11[_0x6dca4b(0x235)]),AutomationFramework['setState'](_0x22ed15,PlaywrightDriverModule[_0x6dca4b(0x28e)],_0x411447[_0x6dca4b(0x26d)]));if(_0x411447[_0x6dca4b(0x268)]){this['logger'][_0x6dca4b(0x26f)](_0x5bcc11[_0x6dca4b(0x250)]);const _0xdfec74=global[_0x6dca4b(0x21b)][_0x6dca4b(0x242)][_0x6dca4b(0x274)];AutomationFramework[_0x6dca4b(0x267)](_0x22ed15,PlaywrightDriverModule[_0x6dca4b(0x278)],_0x411447[_0x6dca4b(0x268)]),AutomationFramework[_0x6dca4b(0x267)](_0x22ed15,PlaywrightDriverModule[_0x6dca4b(0x2a6)],_0xdfec74);const _0x18e22b={};_0x18e22b[_0x6dca4b(0x25f)]=!![];const _0x10976e=Buffer[_0x6dca4b(0x20a)](JSON[_0x6dca4b(0x244)](_0x18e22b)[_0x6dca4b(0x200)](_0x5bcc11[_0x6dca4b(0x223)])),_0x281fc3=await GrpcClient['getInstance']()[_0x6dca4b(0x287)]({'platformIndex':_0xdfec74,'ref':_0x22ed15[_0x6dca4b(0x24f)](),'userInputParams':_0x10976e});AutomationFramework['setState'](_0x22ed15,PlaywrightDriverModule[_0x6dca4b(0x228)],JSON[_0x6dca4b(0x24d)](Buffer['from'](_0x281fc3[_0x6dca4b(0x217)](),_0x5bcc11[_0x6dca4b(0x223)])[_0x6dca4b(0x200)]()));}}catch(_0x544364){this['logger'][_0x6dca4b(0x1f8)](_0x6dca4b(0x258)+util['format'](_0x544364));}}async[a75_0x12cdd3(0x272)](_0x3b98e4){const _0x5f46e3=a75_0x12cdd3,_0x5b38e3={'ZjVJf':'Automation\x20onAfterTest:\x20Test\x20completed','lsFwW':'Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','uBOMe':function(_0x26c0cf,_0x250076){return _0x26c0cf(_0x250076);},'nspZr':function(_0x99e50a,_0xb5bf35,_0x463072){return _0x99e50a(_0xb5bf35,_0x463072);},'KrrXd':_0x5f46e3(0x1f8),'izxbR':_0x5f46e3(0x254),'aTuOM':function(_0x12cabd,_0x37f7fd){return _0x12cabd+_0x37f7fd;},'XYfXi':_0x5f46e3(0x239),'RsScO':function(_0x133b8a,_0x4408bb){return _0x133b8a+_0x4408bb;},'NGEEG':'testData\x20from\x20onAfterTest:\x20','MLGFR':'Playwright','lWWSF':_0x5f46e3(0x256),'ICQVo':function(_0x25d182,_0x1d4698){return _0x25d182(_0x1d4698);},'aYoTP':_0x5f46e3(0x260),'SptrN':_0x5f46e3(0x29e),'giymy':_0x5f46e3(0x290)};this['logger'][_0x5f46e3(0x26f)](_0x5b38e3[_0x5f46e3(0x23f)]);const _0x9a62a2=_0x3b98e4[_0x5f46e3(0x25a)];if(!_0x9a62a2){this[_0x5f46e3(0x22a)][_0x5f46e3(0x26f)](_0x5b38e3[_0x5f46e3(0x2a5)]);return;}const _0x34595f=_0x3b98e4[_0x5f46e3(0x227)],_0x519a4a=_0x34595f['id']||_0x3b98e4[_0x5f46e3(0x227)]?.[_0x5f46e3(0x204)]?.['id']||_0x3b98e4[_0x5f46e3(0x227)]?.[_0x5f46e3(0x277)],_0x12e2c7=_0x34595f[_0x5f46e3(0x240)],_0x41d18f=_0x5b38e3[_0x5f46e3(0x218)](getPlaywrightStatus,_0x12e2c7),_0x1708e1=_0x5b38e3[_0x5f46e3(0x218)](getPlaywrightSessionName,_0x34595f),_0x5e0d86=_0x5b38e3[_0x5f46e3(0x1f7)](nestedKeyValue,_0x12e2c7,[_0x5b38e3[_0x5f46e3(0x224)],_0x5b38e3[_0x5f46e3(0x24a)]]);this[_0x5f46e3(0x22a)][_0x5f46e3(0x26f)](_0x5f46e3(0x20e)+_0x41d18f);const _0x4548f1=TestInfo[_0x5f46e3(0x28b)](_0x519a4a),_0xaa7043=TestInfo[_0x5f46e3(0x252)](_0x519a4a);this[_0x5f46e3(0x22a)][_0x5f46e3(0x215)](_0x5b38e3['aTuOM'](_0x5b38e3[_0x5f46e3(0x2a0)],_0x519a4a)),this['logger'][_0x5f46e3(0x215)](_0x5b38e3[_0x5f46e3(0x251)](_0x5b38e3[_0x5f46e3(0x20b)],util[_0x5f46e3(0x21e)](_0xaa7043)));const _0x19d921=AutomationFramework['getState'](_0x9a62a2,PlaywrightDriverModule[_0x5f46e3(0x2a6)])||0x0,_0x23f1f8=_0xaa7043[TestFrameworkConstants[_0x5f46e3(0x26b)]]||_0x5b38e3[_0x5f46e3(0x1f4)],_0x2f2e34=_0xaa7043[TestFrameworkConstants[_0x5f46e3(0x213)]]||_0x5b38e3['lWWSF'],_0x48b338=TestFrameworkState['TEST'][_0x5f46e3(0x200)]()[_0x5f46e3(0x27e)]('.')[0x1],_0xe8a9fe=HookState[_0x5f46e3(0x22c)][_0x5f46e3(0x200)]()[_0x5f46e3(0x27e)]('.')[0x1],_0x181d52=_0x9a62a2[_0x5f46e3(0x23e)](),_0x3c2867=AutomationFramework[_0x5f46e3(0x2a2)](_0x9a62a2,PlaywrightDriverModule[_0x5f46e3(0x234)],''),_0x338cd2={'provider':_0x5b38e3['ICQVo'](getPlaywrightProvider,_0x3c2867),'frameworkName':_0x5b38e3[_0x5f46e3(0x1f4)],'frameworkVersion':_0x5b38e3['aYoTP'],'frameworkSessionId':AutomationFramework[_0x5f46e3(0x2a2)](_0x9a62a2,PlaywrightDriverModule[_0x5f46e3(0x201)],''),'ref':_0x9a62a2[_0x5f46e3(0x24f)](),'hubUrl':_0x3c2867};let _0x2da05e=AutomationFramework[_0x5f46e3(0x2a2)](_0x9a62a2,PlaywrightDriverModule['KEY_CAPABILITIES'],{});_0x2da05e=Buffer[_0x5f46e3(0x20a)](JSON[_0x5f46e3(0x244)](_0x2da05e))[_0x5f46e3(0x200)](_0x5b38e3[_0x5f46e3(0x285)]);const _0x556966={'hash':_0x181d52[_0x5f46e3(0x23a)](),'threadId':_0x181d52[_0x5f46e3(0x266)]()[_0x5f46e3(0x200)](),'processId':_0x181d52[_0x5f46e3(0x1f5)]()['toString']()},_0x4db1c4={};_0x4db1c4[_0x5f46e3(0x21c)]=_0x19d921,_0x4db1c4['testFrameworkName']=_0x23f1f8,_0x4db1c4[_0x5f46e3(0x1f9)]=_0x2f2e34,_0x4db1c4[_0x5f46e3(0x23b)]=_0x48b338,_0x4db1c4[_0x5f46e3(0x27c)]=_0xe8a9fe,_0x4db1c4[_0x5f46e3(0x275)]=_0x4548f1,_0x4db1c4[_0x5f46e3(0x226)]=_0x338cd2,_0x4db1c4['capabilities']=_0x2da05e,_0x4db1c4['executionContext']=_0x556966;const _0x5ce36a=_0x4db1c4;this[_0x5f46e3(0x22a)][_0x5f46e3(0x26f)](_0x5f46e3(0x207)+util[_0x5f46e3(0x259)](_0x5ce36a)),GrpcClient['getInstance']()[_0x5f46e3(0x24e)](_0x5ce36a),this['logger'][_0x5f46e3(0x26f)](_0x5f46e3(0x236)+_0x519a4a);if(!_0x41d18f){this['logger'][_0x5f46e3(0x26f)](_0x5b38e3[_0x5f46e3(0x22d)],_0x12e2c7['status']);return;}this['logger'][_0x5f46e3(0x26f)](_0x5f46e3(0x293)+_0x519a4a),await this[_0x5f46e3(0x280)](_0x9a62a2,_0x1708e1,_0x41d18f,_0x5e0d86);}async['markSessionStatus'](_0x283c62,_0x50a92d,_0x13b7c4,_0x2249c2){const _0x5df657=a75_0x12cdd3,_0x38cf76={'GnFUs':_0x5df657(0x25c),'zgijU':_0x5df657(0x221),'ENNkv':_0x5df657(0x209),'DyOME':_0x5df657(0x290),'HXJoH':'reason','BRPnr':_0x5df657(0x208),'JRYQV':function(_0x5e91a9,_0x15b362){return _0x5e91a9===_0x15b362;},'zelTi':'passed','HdXsK':_0x5df657(0x215),'uSSta':_0x5df657(0x1f8),'dtXHg':function(_0xca5c2a,_0x29a15b,_0x257f60,_0x5025b3){return _0xca5c2a(_0x29a15b,_0x257f60,_0x5025b3);},'gJUNR':_0x5df657(0x28c),'GDBce':_0x5df657(0x257),'sTFKd':function(_0x3131c5,_0x3197ff,_0x1d8249){return _0x3131c5(_0x3197ff,_0x1d8249);}};if(CLIUtils[_0x5df657(0x230)](BrowserstackCLI[_0x5df657(0x232)]()['getConfig']())){this['logger'][_0x5df657(0x26f)](_0x38cf76[_0x5df657(0x298)]);return;}const _0x483976=_0x283c62;if(!_0x483976){this[_0x5df657(0x22a)]['debug'](_0x38cf76['zgijU']);return;}const _0x489959=AutomationFramework[_0x5df657(0x2a2)](_0x483976,PlaywrightDriverModule[_0x5df657(0x20d)]);if(!_0x489959){this[_0x5df657(0x22a)][_0x5df657(0x26f)](_0x38cf76[_0x5df657(0x25b)]);return;}const _0x58240b=_0x13b7c4;if(!_0x58240b){this['logger'][_0x5df657(0x26f)](_0x38cf76['DyOME'],_0x58240b);return;}_0x2249c2&&(_0x19b0d7[_0x5df657(0x1ff)][_0x38cf76[_0x5df657(0x27a)]]=_0x2249c2);const _0x25a859=(_0x50a92d?_0x50a92d:_0x38cf76[_0x5df657(0x247)])+'\x20'+_0x58240b+'\x20'+(_0x2249c2?_0x5df657(0x22f)+_0x2249c2:''),_0x4b6695=_0x38cf76[_0x5df657(0x29f)](_0x58240b,_0x38cf76[_0x5df657(0x282)])?_0x38cf76[_0x5df657(0x29d)]:_0x38cf76['uSSta'];await _0x38cf76[_0x5df657(0x22b)](playwrightAnnotate,_0x489959,_0x25a859,_0x4b6695);const _0xb9cadb={};_0xb9cadb[_0x5df657(0x240)]=_0x58240b;const _0x1c391e={};_0x1c391e[_0x5df657(0x291)]=_0x38cf76[_0x5df657(0x27f)],_0x1c391e[_0x5df657(0x1ff)]=_0xb9cadb;const _0x19b0d7=_0x1c391e;PerformanceTester[_0x5df657(0x1fb)](PerformanceEvents['SESSION_STATUS']),this[_0x5df657(0x22a)]['debug'](_0x38cf76[_0x5df657(0x255)]),await _0x38cf76[_0x5df657(0x294)](playwrightBstackJsExecutor,_0x489959,_0x19b0d7),PerformanceTester[_0x5df657(0x279)](PerformanceEvents[_0x5df657(0x203)]);}async[a75_0x12cdd3(0x241)](_0x1d624e){const _0x4d86f0=a75_0x12cdd3,_0x1ef924={'ThpSc':_0x4d86f0(0x265),'GagYz':'setSessionName','WGHGu':function(_0x545831,_0xf2ffef){return _0x545831(_0xf2ffef);},'NYpmg':function(_0x219ede,_0x5d6266,_0x12c28e){return _0x219ede(_0x5d6266,_0x12c28e);}};try{if(CLIUtils[_0x4d86f0(0x21d)](BrowserstackCLI['getInstance']()[_0x4d86f0(0x246)]())){this[_0x4d86f0(0x22a)][_0x4d86f0(0x26f)](_0x1ef924['ThpSc']);return;}const _0xb56760=AutomationFramework[_0x4d86f0(0x2a2)](AutomationFramework[_0x4d86f0(0x297)](),PlaywrightDriverModule[_0x4d86f0(0x20d)]),_0x270809={'action':_0x1ef924[_0x4d86f0(0x238)],'arguments':{'name':_0x1ef924['WGHGu'](getPlaywrightSessionName,_0x1d624e)}};PerformanceTester[_0x4d86f0(0x1fb)](PerformanceEvents[_0x4d86f0(0x1f3)]),await _0x1ef924[_0x4d86f0(0x28f)](playwrightBstackJsExecutor,_0xb56760,_0x270809),PerformanceTester[_0x4d86f0(0x279)](PerformanceEvents[_0x4d86f0(0x1f3)]);}catch(_0x2954e1){PerformanceTester[_0x4d86f0(0x279)](PerformanceEvents[_0x4d86f0(0x1f3)],![],util[_0x4d86f0(0x259)](_0x2954e1)),this[_0x4d86f0(0x22a)][_0x4d86f0(0x1f8)](_0x4d86f0(0x20c)+util[_0x4d86f0(0x259)](_0x2954e1));}}}function a75_0x1ef0(){const _0x2ccfb5=['bsParams','onAfterTest\x20CBTSession\x20payload:\x20','Session','markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','from','NGEEG','Error\x20in\x20markSessionName:\x20','KEY_PAGE_OBJECT','Automation\x20onAfterTest:\x20Test\x20status:\x20','KfZAo','uDLnd','PlaywrightDriverModule','onBeforeDriverCreate','KEY_TEST_FRAMEWORK_VERSION','hubUrl','info','4rAVgcA','getCapabilities','uBOMe','10627011sHOmEf','../../../helpers/classLogger.js','__workerDetails','platformIndex','shouldSkipSessionName','inspect','CREATE','registerObserver','markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available','\x20||\x20','yattq','KrrXd','../../../helpers/test-observability/utils','automationSession','testInfo','KEY_CAPABILITIES','../grpcClient.js','logger','dtXHg','POST','giymy','KEY_TEST_ID','with\x20','shouldSkipSessionStatus','KEY_PLATFORM_DETAILS','getInstance','../../../helpers/helper.js','KEY_HUB_URL','BBIzo','onAfterTest\x20CBTSession\x20complete\x20for\x20testId:\x20','95709XOSlVk','GagYz','testId:\x20','getId','testFrameworkState','PLAYWRIGHT_DISPATCH','browserVersion','getContext','ZjVJf','status','markSessionName','workerInfo','../../../helpers/performance/performance-tester.js','stringify','onDispatchExecute:\x20Playwright\x20sessionId:\x20','getConfig','BRPnr','JEcFQ','playwrightVersion','izxbR','../state/testFrameworkState','5|3|1|8|9|4|0|10|7|2|6','parse','testSessionEvent','getRef','TnEZz','RsScO','getTestDetails','onAfterDriverCreate:\x20Setting\x20browser\x20object','message','GDBce','1.52.999','markSessionStatus:\x20Marking\x20session\x20status','Error\x20in\x20onAfterDriverCreate:\x20','format','instance','ENNkv','markSessionStatus:\x20Skipping\x20session\x20status\x20marking','browserObject','onDispatchExecute:\x20Playwright\x20driver\x20is\x20executing\x20tests\x20','isPlaywright','1.51.0','AUTOMATE_EVENTS','pageObject','pIOSt','platforms','markSessionName:\x20Skipping\x20session\x20name\x20marking','getThreadId','setState','browser','exports','../state/hookState.js','KEY_TEST_FRAMEWORK_NAME','../framework/automationFramework.js','context','PRE','debug','name','browserName','onAfterTest','contextObject','parallelIndex','testUuid','params','testId','KEY_BROWSER_OBJECT','end','HXJoH','../browserstackCLI.js','testHookState','BExmJ','split','gJUNR','markSessionStatus','onPlaywrightDispatch','zelTi','690QouSeL','onAfterDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','SptrN','UOxtv','driverInit','1680176uvpMLJ','MODULE_NAME','1533039lkisOa','getTestUUID','setSessionStatus','bStackParams','KEY_CONTEXT_OBJECT','NYpmg','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','action','getModuleName','Automation\x20onAfterTest:\x20Setting\x20session\x20status\x20for\x20testId:\x20','sTFKd','./baseModule','bind','getTrackedInstance','GnFUs','onAfterDriverCreate:\x20Setting\x20context\x20object','Error\x20in\x20onBeforeDriverCreate:\x20','launchcaps','util','HdXsK','base64','JRYQV','XYfXi','../../utils/constants','getState','1273310XafTSB','../framework/constants/testFrameworkConstants.js','lsFwW','KEY_PLATFORM_INDEX','../TestInfo.js','../cliUtils.js','SESSION_NAME','MLGFR','getProcessId','sessionId','nspZr','error','testFrameworkVersion','onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','start','onAfterDriverCreate','7336QeOauV','platformDetails','arguments','toString','KEY_SESSION_ID','688406MxsGJJ','SESSION_STATUS','_test','../state/automationFrameworkState.js'];a75_0x1ef0=function(){return _0x2ccfb5;};return a75_0x1ef0();}PlaywrightDriverModule[a75_0x12cdd3(0x289)]=a75_0x12cdd3(0x211),module[a75_0x12cdd3(0x269)]=PlaywrightDriverModule;
|
|
1
|
+
const a75_0x3b6626=a75_0x26f5;function a75_0x26f5(_0x590c16,_0x4537c2){const _0x5e474a=a75_0x5e47();return a75_0x26f5=function(_0x26f5a6,_0x4b2c88){_0x26f5a6=_0x26f5a6-0x146;let _0x5f547c=_0x5e474a[_0x26f5a6];return _0x5f547c;},a75_0x26f5(_0x590c16,_0x4537c2);}(function(_0x131a51,_0x3d1a2f){const _0x252d8b=a75_0x26f5,_0x3d8bbd=_0x131a51();while(!![]){try{const _0x107962=parseInt(_0x252d8b(0x19c))/0x1*(-parseInt(_0x252d8b(0x1a6))/0x2)+parseInt(_0x252d8b(0x1b5))/0x3*(parseInt(_0x252d8b(0x16d))/0x4)+parseInt(_0x252d8b(0x184))/0x5*(-parseInt(_0x252d8b(0x179))/0x6)+-parseInt(_0x252d8b(0x18c))/0x7*(parseInt(_0x252d8b(0x162))/0x8)+-parseInt(_0x252d8b(0x17d))/0x9*(-parseInt(_0x252d8b(0x1d2))/0xa)+parseInt(_0x252d8b(0x1ec))/0xb+parseInt(_0x252d8b(0x1a8))/0xc;if(_0x107962===_0x3d1a2f)break;else _0x3d8bbd['push'](_0x3d8bbd['shift']());}catch(_0xb7bfac){_0x3d8bbd['push'](_0x3d8bbd['shift']());}}}(a75_0x5e47,0x52cc1));const util=require(a75_0x3b6626(0x1c9)),BaseModule=require(a75_0x3b6626(0x1cd)),{createClassLogger}=require(a75_0x3b6626(0x168)),{getFrameworkVersion}=require(a75_0x3b6626(0x195)),{FRAMEWORKS}=require(a75_0x3b6626(0x16f)),AutomationFramework=require(a75_0x3b6626(0x15d)),AutomationFrameworkState=require(a75_0x3b6626(0x1aa)),HookState=require('../state/hookState.js'),{playwrightBstackJsExecutor,nestedKeyValue,playwrightAnnotate,getPlaywrightStatus,getPlaywrightSessionName}=require(a75_0x3b6626(0x17a)),CLIUtils=require(a75_0x3b6626(0x146)),BrowserstackCLI=require(a75_0x3b6626(0x169)),GrpcClient=require(a75_0x3b6626(0x1da)),PerformanceTester=require(a75_0x3b6626(0x1be)),PerformanceEvents=require('../../../helpers/performance/constants.js')['AUTOMATE_EVENTS'],TestInfo=require('../TestInfo.js'),{getPlaywrightProvider}=require('../../../helpers/helper.js'),TestFrameworkConstants=require(a75_0x3b6626(0x149)),TestFrameworkState=require(a75_0x3b6626(0x174));class PlaywrightDriverModule extends BaseModule{static [a75_0x3b6626(0x1ea)]=a75_0x3b6626(0x1dc);static ['KEY_CONTEXT_OBJECT']='contextObject';static [a75_0x3b6626(0x192)]='pageObject';static [a75_0x3b6626(0x19e)]='sessionId';static [a75_0x3b6626(0x191)]='platformIndex';static ['KEY_CAPABILITIES']=a75_0x3b6626(0x150);static ['KEY_HUB_URL']=a75_0x3b6626(0x1d1);static ['KEY_PLATFORM_DETAILS']=a75_0x3b6626(0x16c);static [a75_0x3b6626(0x177)]=a75_0x3b6626(0x1ce);[a75_0x3b6626(0x1c0)]=createClassLogger(a75_0x3b6626(0x166));constructor(){const _0x3926ed=a75_0x3b6626,_0x55b07c={};_0x55b07c[_0x3926ed(0x15a)]=_0x3926ed(0x14e),_0x55b07c[_0x3926ed(0x1d0)]=_0x3926ed(0x166);const _0x4f4833=_0x55b07c,_0x5084de=_0x4f4833[_0x3926ed(0x15a)][_0x3926ed(0x1ed)]('|');let _0x1c4f76=0x0;while(!![]){switch(_0x5084de[_0x1c4f76++]){case'0':this[_0x3926ed(0x1c5)]=_0x4f4833[_0x3926ed(0x1d0)];continue;case'1':this[_0x3926ed(0x19f)]=null;continue;case'2':AutomationFramework[_0x3926ed(0x165)](AutomationFrameworkState[_0x3926ed(0x172)],HookState[_0x3926ed(0x1d5)],this[_0x3926ed(0x1a7)][_0x3926ed(0x1bc)](this));continue;case'3':super();continue;case'4':this['testRunId']=null;continue;case'5':AutomationFramework[_0x3926ed(0x165)](AutomationFrameworkState[_0x3926ed(0x1de)],HookState[_0x3926ed(0x19b)],this[_0x3926ed(0x187)][_0x3926ed(0x1bc)](this));continue;case'6':this[_0x3926ed(0x14f)]=null;continue;case'7':AutomationFramework[_0x3926ed(0x165)](AutomationFrameworkState[_0x3926ed(0x1eb)],HookState[_0x3926ed(0x19b)],this[_0x3926ed(0x152)][_0x3926ed(0x1bc)](this));continue;case'8':this[_0x3926ed(0x170)]=null;continue;case'9':AutomationFramework[_0x3926ed(0x165)](AutomationFrameworkState[_0x3926ed(0x172)],HookState['POST'],this['onAfterDriverCreate'][_0x3926ed(0x1bc)](this));continue;case'10':this[_0x3926ed(0x1b2)]=[];continue;}break;}}['getModuleName'](){const _0x143c06=a75_0x3b6626;return PlaywrightDriverModule[_0x143c06(0x199)];}async['onBeforeDriverCreate'](_0x46fee9){const _0x5d2fe8=a75_0x3b6626,_0x595d8e={};_0x595d8e[_0x5d2fe8(0x156)]=_0x5d2fe8(0x190);const _0x5a8923=_0x595d8e;try{this[_0x5d2fe8(0x1c0)][_0x5d2fe8(0x1d3)](_0x5a8923[_0x5d2fe8(0x156)]);const _0x625275=_0x46fee9['launchcaps'],_0x47c8db=_0x46fee9[_0x5d2fe8(0x1d1)];AutomationFramework[_0x5d2fe8(0x16b)](_0x46fee9['instance'],PlaywrightDriverModule[_0x5d2fe8(0x1c1)],_0x625275),AutomationFramework['setState'](_0x46fee9['instance'],PlaywrightDriverModule[_0x5d2fe8(0x1a2)],_0x47c8db);}catch(_0x59bc0a){this[_0x5d2fe8(0x1c0)][_0x5d2fe8(0x175)](_0x5d2fe8(0x1a9)+util[_0x5d2fe8(0x197)](_0x59bc0a));}}async[a75_0x3b6626(0x187)](_0x179575){const _0x4f484f=a75_0x3b6626,_0x22e1bc={};_0x22e1bc['GkiZB']=function(_0x37ff8d,_0x3dee7f){return _0x37ff8d||_0x3dee7f;};const _0x3a973b=_0x22e1bc;try{const _0x365fe6=_0x179575?.['message']&&_0x179575?.[_0x4f484f(0x180)]?.[_0x4f484f(0x1a3)]&&_0x179575?.[_0x4f484f(0x180)]?.[_0x4f484f(0x1a3)]?.[_0x4f484f(0x167)],_0x1087f6=_0x179575?.[_0x4f484f(0x180)]&&_0x179575?.['message']?.[_0x4f484f(0x155)];if(_0x3a973b[_0x4f484f(0x1c8)](_0x365fe6,_0x1087f6)){this['logger'][_0x4f484f(0x1d3)](_0x4f484f(0x1e0)+util[_0x4f484f(0x183)](_0x365fe6)+_0x4f484f(0x173)+util[_0x4f484f(0x183)](_0x1087f6));const _0x2e6928=_0x179575?.[_0x4f484f(0x1b1)],_0x18cfa4=_0x365fe6?.[_0x4f484f(0x16a)]||_0x1087f6?.['sessionId'],_0x233c39=_0x365fe6?.['platformDetails']||_0x1087f6?.['platformDetails'];_0x18cfa4&&(this['logger'][_0x4f484f(0x1d3)]('onDispatchExecute:\x20Playwright\x20sessionId:\x20'+_0x18cfa4),AutomationFramework[_0x4f484f(0x16b)](_0x2e6928,PlaywrightDriverModule[_0x4f484f(0x19e)],_0x18cfa4)),_0x233c39&&(this[_0x4f484f(0x1c0)][_0x4f484f(0x1d3)]('onDispatchExecute:\x20Playwright\x20platform\x20details:\x20'+util[_0x4f484f(0x183)](_0x233c39)),AutomationFramework['setState'](_0x2e6928,PlaywrightDriverModule[_0x4f484f(0x191)],_0x233c39));}}catch(_0xed5270){this[_0x4f484f(0x1c0)][_0x4f484f(0x175)](_0x4f484f(0x18b)+util[_0x4f484f(0x197)](_0xed5270));}}async['onAfterDriverCreate'](_0x111c68){const _0x3ba8f9=a75_0x3b6626,_0x801d7={'bdJpr':'onAfterDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','sgore':function(_0x2ff27b,_0x108162){return _0x2ff27b(_0x108162);},'XEIkU':_0x3ba8f9(0x1af),'ucnNv':'onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','SEvZL':_0x3ba8f9(0x154),'ZjhCI':_0x3ba8f9(0x1db),'zZfSf':_0x3ba8f9(0x1c6)};try{this[_0x3ba8f9(0x1c0)][_0x3ba8f9(0x1d3)](_0x801d7[_0x3ba8f9(0x1e5)]);const _0x4b359c=_0x111c68['instance'];this[_0x3ba8f9(0x19f)]=_0x801d7['sgore'](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);if(_0x111c68[_0x3ba8f9(0x151)]){this['logger']['debug'](_0x801d7[_0x3ba8f9(0x153)]),AutomationFramework[_0x3ba8f9(0x16b)](_0x4b359c,PlaywrightDriverModule[_0x3ba8f9(0x192)],_0x111c68[_0x3ba8f9(0x151)]);if(_0x111c68[_0x3ba8f9(0x1b9)]){this['logger'][_0x3ba8f9(0x1d3)](_0x801d7[_0x3ba8f9(0x1e6)]);const _0x8bd363=_0x111c68[_0x3ba8f9(0x1b9)]?.[_0x3ba8f9(0x1cb)]?.['id']||_0x111c68[_0x3ba8f9(0x1b9)]?.[_0x3ba8f9(0x1ce)];AutomationFramework[_0x3ba8f9(0x16b)](_0x4b359c,PlaywrightDriverModule[_0x3ba8f9(0x177)],_0x8bd363),await this[_0x3ba8f9(0x147)](_0x111c68[_0x3ba8f9(0x1b9)]);}}_0x111c68['context']&&(this[_0x3ba8f9(0x1c0)][_0x3ba8f9(0x1d3)](_0x801d7[_0x3ba8f9(0x185)]),AutomationFramework[_0x3ba8f9(0x16b)](_0x4b359c,PlaywrightDriverModule['KEY_CONTEXT_OBJECT'],_0x111c68[_0x3ba8f9(0x194)]));if(_0x111c68[_0x3ba8f9(0x19d)]){this['logger'][_0x3ba8f9(0x1d3)](_0x801d7[_0x3ba8f9(0x158)]);const _0xea2c2b=global[_0x3ba8f9(0x1e9)]['workerInfo'][_0x3ba8f9(0x1a5)];AutomationFramework[_0x3ba8f9(0x16b)](_0x4b359c,PlaywrightDriverModule[_0x3ba8f9(0x1ea)],_0x111c68['browser']),AutomationFramework['setState'](_0x4b359c,PlaywrightDriverModule[_0x3ba8f9(0x191)],_0xea2c2b);const _0x302937={};_0x302937[_0x3ba8f9(0x15f)]=!![];const _0x389209=Buffer[_0x3ba8f9(0x159)](JSON[_0x3ba8f9(0x1c2)](_0x302937)[_0x3ba8f9(0x1b7)](_0x801d7[_0x3ba8f9(0x15e)])),_0x2ca844=await GrpcClient[_0x3ba8f9(0x1b3)]()[_0x3ba8f9(0x18f)]({'platformIndex':_0xea2c2b,'ref':_0x4b359c['getRef'](),'userInputParams':_0x389209});AutomationFramework['setState'](_0x4b359c,PlaywrightDriverModule[_0x3ba8f9(0x1c1)],JSON[_0x3ba8f9(0x198)](Buffer[_0x3ba8f9(0x159)](_0x2ca844[_0x3ba8f9(0x17c)](),_0x801d7[_0x3ba8f9(0x15e)])[_0x3ba8f9(0x1b7)]()));}}catch(_0x3e4890){this['logger'][_0x3ba8f9(0x175)]('Error\x20in\x20onAfterDriverCreate:\x20'+util[_0x3ba8f9(0x197)](_0x3e4890));}}async['onAfterTest'](_0x4c50b9){const _0x54ad6d=a75_0x3b6626,_0x59a451={'nJFEQ':_0x54ad6d(0x1d4),'JtsoS':_0x54ad6d(0x178),'FprLo':function(_0x536990,_0x2da7b3){return _0x536990(_0x2da7b3);},'ceIaa':function(_0x3245e6,_0xa04157,_0x34e708){return _0x3245e6(_0xa04157,_0x34e708);},'ghBZd':_0x54ad6d(0x175),'fFzzC':_0x54ad6d(0x180),'PxLKh':function(_0x427a41,_0x565dfc){return _0x427a41+_0x565dfc;},'ptCxP':'testId:\x20','VHXHT':'testData\x20from\x20onAfterTest:\x20','fWnME':_0x54ad6d(0x189),'RLlMr':_0x54ad6d(0x14a),'rmUgz':function(_0x2d2abd,_0x323384){return _0x2d2abd(_0x323384);},'diaAk':'1.51.0','xYNEn':'base64','BPuHR':_0x54ad6d(0x157)};this[_0x54ad6d(0x1c0)][_0x54ad6d(0x1d3)](_0x59a451[_0x54ad6d(0x1a0)]);const _0xb5a486=_0x4c50b9[_0x54ad6d(0x1b1)];if(!_0xb5a486){this['logger'][_0x54ad6d(0x1d3)](_0x59a451[_0x54ad6d(0x186)]);return;}const _0x3143ef=_0x4c50b9['testInfo'],_0x45b175=_0x3143ef['id']||_0x4c50b9['testInfo']?.[_0x54ad6d(0x1cb)]?.['id']||_0x4c50b9[_0x54ad6d(0x1b9)]?.[_0x54ad6d(0x1ce)],_0x23b3e9=_0x3143ef[_0x54ad6d(0x14d)],_0x1729a7=_0x59a451[_0x54ad6d(0x171)](getPlaywrightStatus,_0x23b3e9),_0x4a8d20=_0x59a451[_0x54ad6d(0x171)](getPlaywrightSessionName,_0x3143ef),_0x5bd4a5=_0x59a451[_0x54ad6d(0x18e)](nestedKeyValue,_0x23b3e9,[_0x59a451[_0x54ad6d(0x1e8)],_0x59a451[_0x54ad6d(0x1dd)]]);this[_0x54ad6d(0x1c0)][_0x54ad6d(0x1d3)](_0x54ad6d(0x14c)+_0x1729a7);const _0x1a8e6b=TestInfo[_0x54ad6d(0x1ee)](_0x45b175),_0x3a8005=TestInfo['getTestDetails'](_0x45b175);this[_0x54ad6d(0x1c0)][_0x54ad6d(0x1ef)](_0x59a451[_0x54ad6d(0x1c3)](_0x59a451[_0x54ad6d(0x1c7)],_0x45b175)),this[_0x54ad6d(0x1c0)][_0x54ad6d(0x1ef)](_0x59a451[_0x54ad6d(0x1c3)](_0x59a451[_0x54ad6d(0x1d8)],util[_0x54ad6d(0x183)](_0x3a8005)));const _0x39916d=AutomationFramework[_0x54ad6d(0x15b)](_0xb5a486,PlaywrightDriverModule['KEY_PLATFORM_INDEX'])||0x0,_0x3b877a=_0x3a8005[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]||_0x59a451[_0x54ad6d(0x1bf)],_0x41e0d2=_0x3a8005[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]||_0x59a451[_0x54ad6d(0x160)],_0x1b482b=TestFrameworkState[_0x54ad6d(0x176)][_0x54ad6d(0x1b7)]()[_0x54ad6d(0x1ed)]('.')[0x1],_0x229229=HookState[_0x54ad6d(0x19b)][_0x54ad6d(0x1b7)]()[_0x54ad6d(0x1ed)]('.')[0x1],_0x517581=_0xb5a486[_0x54ad6d(0x1ae)](),_0x2931ac=AutomationFramework['getState'](_0xb5a486,PlaywrightDriverModule[_0x54ad6d(0x1a2)],''),_0x23ea09={'provider':_0x59a451['rmUgz'](getPlaywrightProvider,_0x2931ac),'frameworkName':_0x59a451[_0x54ad6d(0x1bf)],'frameworkVersion':_0x59a451[_0x54ad6d(0x1ab)],'frameworkSessionId':AutomationFramework[_0x54ad6d(0x15b)](_0xb5a486,PlaywrightDriverModule[_0x54ad6d(0x19e)],''),'ref':_0xb5a486[_0x54ad6d(0x1ba)](),'hubUrl':_0x2931ac};let _0x2fe579=AutomationFramework[_0x54ad6d(0x15b)](_0xb5a486,PlaywrightDriverModule[_0x54ad6d(0x1c1)],{});_0x2fe579=Buffer['from'](JSON[_0x54ad6d(0x1c2)](_0x2fe579))[_0x54ad6d(0x1b7)](_0x59a451[_0x54ad6d(0x1a1)]);const _0x404b79={'hash':_0x517581['getId'](),'threadId':_0x517581['getThreadId']()[_0x54ad6d(0x1b7)](),'processId':_0x517581[_0x54ad6d(0x182)]()[_0x54ad6d(0x1b7)]()},_0x4a2b05={};_0x4a2b05[_0x54ad6d(0x1ac)]=_0x39916d,_0x4a2b05[_0x54ad6d(0x15c)]=_0x3b877a,_0x4a2b05[_0x54ad6d(0x1ad)]=_0x41e0d2,_0x4a2b05[_0x54ad6d(0x1df)]=_0x1b482b,_0x4a2b05['testHookState']=_0x229229,_0x4a2b05[_0x54ad6d(0x1e2)]=_0x1a8e6b,_0x4a2b05['automationSession']=_0x23ea09,_0x4a2b05[_0x54ad6d(0x150)]=_0x2fe579,_0x4a2b05['executionContext']=_0x404b79;const _0x321ab0=_0x4a2b05;this[_0x54ad6d(0x1c0)][_0x54ad6d(0x1d3)](_0x54ad6d(0x17e)+util[_0x54ad6d(0x197)](_0x321ab0)),GrpcClient[_0x54ad6d(0x1b3)]()[_0x54ad6d(0x1a4)](_0x321ab0),this[_0x54ad6d(0x1c0)][_0x54ad6d(0x1d3)](_0x54ad6d(0x1cf)+_0x45b175);if(!_0x1729a7){this[_0x54ad6d(0x1c0)][_0x54ad6d(0x1d3)](_0x59a451['BPuHR'],_0x23b3e9[_0x54ad6d(0x14d)]);return;}this[_0x54ad6d(0x1c0)][_0x54ad6d(0x1d3)](_0x54ad6d(0x17b)+_0x45b175),await this['markSessionStatus'](_0xb5a486,_0x4a8d20,_0x1729a7,_0x5bd4a5);}async[a75_0x3b6626(0x1e4)](_0x33bf8d,_0x1d5a95,_0xce979a,_0x375a4d){const _0x45f508=a75_0x3b6626,_0x51d5a8={'CGSJV':'markSessionStatus:\x20Skipping\x20session\x20status\x20marking','qldxe':_0x45f508(0x1c4),'aOjFi':_0x45f508(0x161),'utPZU':_0x45f508(0x157),'UVFTO':_0x45f508(0x148),'VyECY':_0x45f508(0x163),'raLxN':function(_0x253cbb,_0x328a41){return _0x253cbb===_0x328a41;},'jGxGy':'passed','RnEYD':'info','IGEtw':_0x45f508(0x175),'xbAvx':function(_0x8ba8e3,_0x18336e,_0x30c8e6,_0x1a6a8f){return _0x8ba8e3(_0x18336e,_0x30c8e6,_0x1a6a8f);},'hcbFm':'setSessionStatus','GlSun':_0x45f508(0x17f),'TsBAz':function(_0x2e875c,_0x18e788,_0x4d7d10){return _0x2e875c(_0x18e788,_0x4d7d10);}};if(CLIUtils[_0x45f508(0x18a)](BrowserstackCLI[_0x45f508(0x1b3)]()[_0x45f508(0x1f1)]())){this[_0x45f508(0x1c0)][_0x45f508(0x1d3)](_0x51d5a8[_0x45f508(0x1e7)]);return;}const _0x40a9d6=_0x33bf8d;if(!_0x40a9d6){this[_0x45f508(0x1c0)][_0x45f508(0x1d3)](_0x51d5a8['qldxe']);return;}const _0x229dc4=AutomationFramework[_0x45f508(0x15b)](_0x40a9d6,PlaywrightDriverModule[_0x45f508(0x192)]);if(!_0x229dc4){this[_0x45f508(0x1c0)]['debug'](_0x51d5a8[_0x45f508(0x193)]);return;}const _0x458fe1=_0xce979a;if(!_0x458fe1){this[_0x45f508(0x1c0)][_0x45f508(0x1d3)](_0x51d5a8[_0x45f508(0x196)],_0x458fe1);return;}_0x375a4d&&(_0x56e246[_0x45f508(0x1cc)][_0x51d5a8[_0x45f508(0x18d)]]=_0x375a4d);const _0x1cf49d=(_0x1d5a95?_0x1d5a95:_0x51d5a8[_0x45f508(0x1d7)])+'\x20'+_0x458fe1+'\x20'+(_0x375a4d?_0x45f508(0x164)+_0x375a4d:''),_0x5b4a0b=_0x51d5a8[_0x45f508(0x1bd)](_0x458fe1,_0x51d5a8[_0x45f508(0x16e)])?_0x51d5a8[_0x45f508(0x188)]:_0x51d5a8[_0x45f508(0x1b4)];await _0x51d5a8['xbAvx'](playwrightAnnotate,_0x229dc4,_0x1cf49d,_0x5b4a0b);const _0x4f7176={};_0x4f7176[_0x45f508(0x14d)]=_0x458fe1;const _0x403769={};_0x403769['action']=_0x51d5a8[_0x45f508(0x1e3)],_0x403769[_0x45f508(0x1cc)]=_0x4f7176;const _0x56e246=_0x403769;PerformanceTester[_0x45f508(0x14b)](PerformanceEvents['SESSION_STATUS']),this[_0x45f508(0x1c0)][_0x45f508(0x1d3)](_0x51d5a8[_0x45f508(0x1bb)]),await _0x51d5a8['TsBAz'](playwrightBstackJsExecutor,_0x229dc4,_0x56e246),PerformanceTester[_0x45f508(0x1b0)](PerformanceEvents[_0x45f508(0x1ca)]);}async[a75_0x3b6626(0x147)](_0x4e3287){const _0x439e18=a75_0x3b6626,_0x49c04a={'iRFBJ':_0x439e18(0x19a),'CtNOx':'setSessionName','ITzns':function(_0x3eae73,_0x2e8dd4){return _0x3eae73(_0x2e8dd4);},'cWZAM':function(_0x19040a,_0x130b2c,_0x3f0aec){return _0x19040a(_0x130b2c,_0x3f0aec);}};try{if(CLIUtils[_0x439e18(0x1d6)](BrowserstackCLI[_0x439e18(0x1b3)]()[_0x439e18(0x1f1)]())){this[_0x439e18(0x1c0)]['debug'](_0x49c04a[_0x439e18(0x1f0)]);return;}const _0x3f1c2b=AutomationFramework[_0x439e18(0x15b)](AutomationFramework['getTrackedInstance'](),PlaywrightDriverModule[_0x439e18(0x192)]),_0x22c490={'action':_0x49c04a[_0x439e18(0x1b6)],'arguments':{'name':_0x49c04a[_0x439e18(0x1b8)](getPlaywrightSessionName,_0x4e3287)}};PerformanceTester['start'](PerformanceEvents['SESSION_NAME']),await _0x49c04a[_0x439e18(0x1e1)](playwrightBstackJsExecutor,_0x3f1c2b,_0x22c490),PerformanceTester[_0x439e18(0x1b0)](PerformanceEvents[_0x439e18(0x1d9)]);}catch(_0xea25e5){PerformanceTester[_0x439e18(0x1b0)](PerformanceEvents[_0x439e18(0x1d9)],![],util[_0x439e18(0x197)](_0xea25e5)),this['logger'][_0x439e18(0x175)](_0x439e18(0x181)+util[_0x439e18(0x197)](_0xea25e5));}}}function a75_0x5e47(){const _0x4d09b5=['markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','8yHlFZJ','Session','with\x20','registerObserver','PlaywrightDriverModule','bsParams','../../../helpers/classLogger.js','../browserstackCLI.js','sessionId','setState','platformDetails','36wXbbsg','jGxGy','../../utils/constants','browserVersion','FprLo','CREATE','\x20||\x20','../state/testFrameworkState','error','TEST','KEY_TEST_ID','Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','6EAqqMb','../../../helpers/helper.js','Automation\x20onAfterTest:\x20Setting\x20session\x20status\x20for\x20testId:\x20','getCapabilities','1323JTXbzO','onAfterTest\x20CBTSession\x20payload:\x20','markSessionStatus:\x20Marking\x20session\x20status','message','Error\x20in\x20markSessionName:\x20','getProcessId','inspect','3323435FFxXqr','SEvZL','JtsoS','onPlaywrightDispatch','RnEYD','Playwright','shouldSkipSessionStatus','Error\x20in\x20onDispatchExecute:\x20','1437821RNVdpT','UVFTO','ceIaa','driverInit','onBeforeDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','KEY_PLATFORM_INDEX','KEY_PAGE_OBJECT','aOjFi','context','../../../helpers/test-observability/utils','utPZU','format','parse','MODULE_NAME','markSessionName:\x20Skipping\x20session\x20name\x20marking','POST','300264QcMAsZ','browser','KEY_SESSION_ID','playwrightVersion','nJFEQ','xYNEn','KEY_HUB_URL','params','testSessionEvent','parallelIndex','4DuCxpF','onBeforeDriverCreate','349452JkyFWS','Error\x20in\x20onBeforeDriverCreate:\x20','../state/automationFrameworkState.js','diaAk','platformIndex','testFrameworkVersion','getContext','onAfterDriverCreate:\x20Setting\x20page\x20object','end','instance','platforms','getInstance','IGEtw','214392zuYgOf','CtNOx','toString','ITzns','testInfo','getRef','GlSun','bind','raLxN','../../../helpers/performance/performance-tester.js','fWnME','logger','KEY_CAPABILITIES','stringify','PxLKh','markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available','name','base64','ptCxP','GkiZB','util','SESSION_STATUS','_test','arguments','./baseModule','testId','onAfterTest\x20CBTSession\x20complete\x20for\x20testId:\x20','MCZoc','hubUrl','38830WfeGry','debug','Automation\x20onAfterTest:\x20Test\x20completed','PRE','shouldSkipSessionName','VyECY','VHXHT','SESSION_NAME','../grpcClient.js','onAfterDriverCreate:\x20Setting\x20browser\x20object','browserObject','fFzzC','PLAYWRIGHT_DISPATCH','testFrameworkState','onDispatchExecute:\x20Playwright\x20driver\x20is\x20executing\x20tests\x20','cWZAM','testUuid','hcbFm','markSessionStatus','bdJpr','ucnNv','CGSJV','ghBZd','__workerDetails','KEY_BROWSER_OBJECT','EXECUTE','6233227JFlbMl','split','getTestUUID','info','iRFBJ','getConfig','../cliUtils.js','markSessionName','reason','../framework/constants/testFrameworkConstants.js','1.52.999','start','Automation\x20onAfterTest:\x20Test\x20status:\x20','status','3|0|1|6|8|10|4|2|9|5|7','browserName','capabilities','page','onAfterTest','XEIkU','onAfterDriverCreate:\x20Setting\x20context\x20object','bStackParams','kEiCK','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','ZjhCI','from','qQEfx','getState','testFrameworkName','../framework/automationFramework.js','zZfSf','isPlaywright','RLlMr'];a75_0x5e47=function(){return _0x4d09b5;};return a75_0x5e47();}PlaywrightDriverModule[a75_0x3b6626(0x199)]=a75_0x3b6626(0x166),module['exports']=PlaywrightDriverModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a76_0x377c28=a76_0x4bd4;(function(_0xe15680,_0x2b6847){const _0x1d6316=a76_0x4bd4,_0x1dd124=_0xe15680();while(!![]){try{const _0x5c3fc5=parseInt(_0x1d6316(0x1bd))/0x1*(parseInt(_0x1d6316(0x1b0))/0x2)+parseInt(_0x1d6316(0x193))/0x3+-parseInt(_0x1d6316(0x1cb))/0x4*(-parseInt(_0x1d6316(0x18d))/0x5)+parseInt(_0x1d6316(0x17c))/0x6*(parseInt(_0x1d6316(0x19f))/0x7)+parseInt(_0x1d6316(0x1bc))/0x8*(-parseInt(_0x1d6316(0x1d5))/0x9)+-parseInt(_0x1d6316(0x1a8))/0xa*(-parseInt(_0x1d6316(0x1d8))/0xb)+-parseInt(_0x1d6316(0x1a0))/0xc;if(_0x5c3fc5===_0x2b6847)break;else _0x1dd124['push'](_0x1dd124['shift']());}catch(_0x4e88cd){_0x1dd124['push'](_0x1dd124['shift']());}}}(a76_0x4a89,0x28d74));function a76_0x4bd4(_0x36737c,_0x44a7fb){const _0x4a8924=a76_0x4a89();return a76_0x4bd4=function(_0x4bd4da,_0x55aa1c){_0x4bd4da=_0x4bd4da-0x177;let _0xf55707=_0x4a8924[_0x4bd4da];return _0xf55707;},a76_0x4bd4(_0x36737c,_0x44a7fb);}const util=require(a76_0x377c28(0x198)),BaseModule=require(a76_0x377c28(0x1aa)),{createClassLogger}=require('../../../helpers/classLogger.js'),AutomationFramework=require(a76_0x377c28(0x19c)),AutomationFrameworkState=require(a76_0x377c28(0x188)),HookState=require(a76_0x377c28(0x18e)),TestFramework=require(a76_0x377c28(0x180)),TestFrameworkState=require('../state/testFrameworkState.js'),PlaywrightDriverModule=require(a76_0x377c28(0x1ad)),TestFrameworkConstants=require(a76_0x377c28(0x18b)),GrpcClient=require(a76_0x377c28(0x1a5)),CLIUtils=require(a76_0x377c28(0x17f)),TestInfo=require('../TestInfo.js'),testHubConstants=require(a76_0x377c28(0x196)),BrowserstackCLI=require('../browserstackCLI.js'),{getPlaywrightProvider}=require('../../../helpers/helper.js');class TestHubModule extends BaseModule{[a76_0x377c28(0x1c2)]=createClassLogger(a76_0x377c28(0x1b2));constructor(_0x1e76ef){const _0x4fb21d=a76_0x377c28,_0x25db1d={};_0x25db1d[_0x4fb21d(0x1c0)]=_0x4fb21d(0x17b),_0x25db1d[_0x4fb21d(0x1df)]=_0x4fb21d(0x1b2);const _0x17b249=_0x25db1d,_0x3d3377=_0x17b249[_0x4fb21d(0x1c0)][_0x4fb21d(0x182)]('|');let _0x1c999d=0x0;while(!![]){switch(_0x3d3377[_0x1c999d++]){case'0':process[_0x4fb21d(0x1a7)][testHubConstants[_0x4fb21d(0x1a6)]['BROWSERSTACK_TESTHUB_UUID']]=this['testhubConfig'][_0x4fb21d(0x1c6)]();continue;case'1':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x4fb21d(0x1b6)],HookState[_0x4fb21d(0x199)],this[_0x4fb21d(0x1b4)][_0x4fb21d(0x191)](this));continue;case'2':Object[_0x4fb21d(0x194)](TestFrameworkState)['forEach'](_0x36bb03=>{const _0x1f79c9=_0x4fb21d;Object[_0x1f79c9(0x194)](HookState)['forEach'](_0x2f2891=>{const _0x5c3c8c=_0x1f79c9;TestFramework[_0x5c3c8c(0x1ca)](_0x36bb03,_0x2f2891,this[_0x5c3c8c(0x1d9)]['bind'](this));});});continue;case'3':this['testhubConfig']=_0x1e76ef;continue;case'4':BrowserstackCLI[_0x4fb21d(0x178)]=this[_0x4fb21d(0x1c7)]['getBuildHashedId']();continue;case'5':super();continue;case'6':this[_0x4fb21d(0x1bf)]=_0x17b249[_0x4fb21d(0x1df)];continue;case'7':process[_0x4fb21d(0x1a7)][testHubConstants[_0x4fb21d(0x1a6)][_0x4fb21d(0x1ba)]]=this[_0x4fb21d(0x1c7)][_0x4fb21d(0x184)]();continue;}break;}}[a76_0x377c28(0x18a)](){const _0x2b5921=a76_0x377c28;return TestHubModule[_0x2b5921(0x1d1)];}[a76_0x377c28(0x1d9)](_0x423f04){const _0x15aecc=a76_0x377c28,_0x2d9e08={};_0x2d9e08[_0x15aecc(0x1b5)]=function(_0x56a547,_0x2c5ff2){return _0x56a547===_0x2c5ff2;};const _0x134441=_0x2d9e08,_0x3cf529=_0x423f04[_0x15aecc(0x1c3)],_0xf70c95=_0x3cf529[_0x15aecc(0x1a3)]();(_0x134441[_0x15aecc(0x1b5)](_0xf70c95,TestFrameworkState[_0x15aecc(0x1b8)])||CLIUtils[_0x15aecc(0x1ac)](_0xf70c95[_0x15aecc(0x1b7)]()[_0x15aecc(0x182)]('.')[0x1]))&&this[_0x15aecc(0x1ab)](_0x423f04);}async[a76_0x377c28(0x1ab)](_0x1d74f5){const _0x4179ac=a76_0x377c28,_0x42e687={};_0x42e687[_0x4179ac(0x179)]='base64';const _0x280788=_0x42e687;try{const _0x24f461=_0x1d74f5[_0x4179ac(0x1dc)]['id'],_0x372ab4=_0x1d74f5['instance'],_0x1a08d2=_0x372ab4[_0x4179ac(0x187)](),_0x4cd187=_0x372ab4[_0x4179ac(0x1af)]()[_0x4179ac(0x177)](_0x24f461);this[_0x4179ac(0x1c2)][_0x4179ac(0x192)](_0x4179ac(0x1cd)+_0x24f461);const {[TestFrameworkConstants[_0x4179ac(0x1a1)]]:_0x1b8988='',[TestFrameworkConstants[_0x4179ac(0x19a)]]:_0x595073='',[TestFrameworkConstants[_0x4179ac(0x195)]]:_0x2b242a='',[TestFrameworkConstants[_0x4179ac(0x19e)]]:_0x7b1e10=''}=_0x4cd187,_0x142854=_0x372ab4[_0x4179ac(0x1a3)]()[_0x4179ac(0x1b7)]()[_0x4179ac(0x182)]('.')[0x1],_0x55ddfd=_0x372ab4[_0x4179ac(0x1c1)]()[_0x4179ac(0x1b7)]()[_0x4179ac(0x182)]('.')[0x1],_0x295f90=global?.[_0x4179ac(0x1de)]?.[_0x4179ac(0x1d7)]?.[_0x4179ac(0x1ce)];;const _0x278e2a=_0x372ab4[_0x4179ac(0x18c)](),_0xdab732=Buffer[_0x4179ac(0x197)](JSON['stringify'](_0x4cd187))[_0x4179ac(0x1b7)](_0x280788[_0x4179ac(0x179)]),_0x5a5db2={'hash':_0x1a08d2[_0x4179ac(0x1db)](),'threadId':_0x1a08d2[_0x4179ac(0x1c4)]()[_0x4179ac(0x1b7)](),'processId':_0x1a08d2[_0x4179ac(0x1b1)]()[_0x4179ac(0x1b7)]()},_0x330112={};_0x330112['platformIndex']=_0x295f90,_0x330112[_0x4179ac(0x1b9)]=_0x1b8988,_0x330112[_0x4179ac(0x1d2)]=_0x595073,_0x330112[_0x4179ac(0x1a2)]=_0x142854,_0x330112[_0x4179ac(0x17d)]=_0x55ddfd,_0x330112[_0x4179ac(0x19d)]=_0x2b242a,_0x330112[_0x4179ac(0x1dd)]=_0x7b1e10,_0x330112['uuid']=_0x278e2a,_0x330112[_0x4179ac(0x1d3)]=_0xdab732,_0x330112['executionContext']=_0x5a5db2;const _0x169f3d=_0x330112,_0x596bad=await GrpcClient['getInstance']()['testFrameworkEvent'](_0x169f3d);this[_0x4179ac(0x1c2)][_0x4179ac(0x192)](_0x4179ac(0x1c8)+_0x24f461+'\x20testState:\x20'+_0x142854+_0x4179ac(0x18f)+_0x55ddfd);}catch(_0x4f2792){this[_0x4179ac(0x1c2)]['error'](_0x4179ac(0x183)+util['format'](_0x4f2792));}}async['onPageCreate'](_0x3932bd){const _0x4b1780=a76_0x377c28,_0x2aefca={'cMHhN':function(_0x50eb7e,_0x4d57d8){return _0x50eb7e(_0x4d57d8);},'xjyYS':_0x4b1780(0x1c5)};try{if(_0x3932bd['page']){const _0x2c1ebb=_0x3932bd['testInfo'][_0x4b1780(0x190)];this[_0x4b1780(0x1c2)][_0x4b1780(0x192)]('onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20'+_0x2c1ebb);const _0x278f78=TestInfo[_0x4b1780(0x17a)](_0x2c1ebb),_0x280109=TestInfo[_0x4b1780(0x1da)](_0x2c1ebb),_0xd025d3=_0x3932bd[_0x4b1780(0x1c3)],_0x1b4d00=AutomationFramework[_0x4b1780(0x1cf)](_0xd025d3,PlaywrightDriverModule[_0x4b1780(0x1bb)]),_0x161fe0=_0x280109[TestFrameworkConstants[_0x4b1780(0x1a1)]],_0x3f0fdc=_0x280109[TestFrameworkConstants[_0x4b1780(0x19a)]],_0x2b0cba=TestFrameworkState[_0x4b1780(0x1b8)][_0x4b1780(0x1b7)]()['split']('.')[0x1],_0x59b982=HookState[_0x4b1780(0x199)][_0x4b1780(0x1b7)]()['split']('.')[0x1],_0x44027c=_0xd025d3[_0x4b1780(0x187)](),_0x182d94=AutomationFramework[_0x4b1780(0x1cf)](_0xd025d3,PlaywrightDriverModule['KEY_HUB_URL'],''),_0x3a2241={'provider':_0x2aefca[_0x4b1780(0x1cc)](getPlaywrightProvider,_0x182d94),'frameworkName':_0xd025d3[_0x4b1780(0x1ae)],'frameworkVersion':_0xd025d3[_0x4b1780(0x1d0)],'frameworkSessionId':AutomationFramework[_0x4b1780(0x1cf)](_0xd025d3,PlaywrightDriverModule[_0x4b1780(0x1a4)],''),'ref':_0xd025d3[_0x4b1780(0x18c)](),'hubUrl':_0x182d94};let _0x33259a=AutomationFramework[_0x4b1780(0x1cf)](_0xd025d3,PlaywrightDriverModule['KEY_CAPABILITIES'],{});_0x33259a=Buffer[_0x4b1780(0x197)](JSON[_0x4b1780(0x19b)](_0x33259a))[_0x4b1780(0x1b7)](_0x2aefca['xjyYS']);const _0x33cc09={'hash':_0x44027c[_0x4b1780(0x1db)](),'threadId':_0x44027c['getThreadId']()[_0x4b1780(0x1b7)](),'processId':_0x44027c['getProcessId']()[_0x4b1780(0x1b7)]()},_0x2bc5ca={};_0x2bc5ca[_0x4b1780(0x1b3)]=_0x1b4d00,_0x2bc5ca[_0x4b1780(0x1b9)]=_0x161fe0,_0x2bc5ca[_0x4b1780(0x1d2)]=_0x3f0fdc,_0x2bc5ca[_0x4b1780(0x1a2)]=_0x2b0cba,_0x2bc5ca[_0x4b1780(0x1d6)]=_0x59b982,_0x2bc5ca[_0x4b1780(0x1be)]=_0x278f78,_0x2bc5ca['automationSession']=_0x3a2241,_0x2bc5ca[_0x4b1780(0x1d4)]=_0x33259a,_0x2bc5ca['executionContext']=_0x33cc09;const _0x582b38=_0x2bc5ca;this[_0x4b1780(0x1c2)][_0x4b1780(0x192)]('onPageCreate\x20CBTSession\x20payload:\x20'+util['format'](_0x582b38));const _0x41cdf2=await GrpcClient[_0x4b1780(0x1c9)]()[_0x4b1780(0x181)](_0x582b38);this[_0x4b1780(0x1c2)][_0x4b1780(0x192)]('onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20'+_0x2c1ebb);}}catch(_0x1e2671){this[_0x4b1780(0x1c2)][_0x4b1780(0x186)]('Error\x20in\x20sending\x20CBTSession:\x20'+util[_0x4b1780(0x185)](_0x1e2671));}}}function a76_0x4a89(){const _0x2a5d4e=['getProcessId','TestHubModule','platformIndex','onPageCreate','TXvjK','CREATE','toString','TEST','testFrameworkName','BROWSERSTACK_TESTHUB_JWT','KEY_PLATFORM_INDEX','110408ROZlQv','2845TEmMix','testUuid','name','zIxWa','getCurrentHookState','logger','instance','getThreadId','base64','getBuildHashedId','testhubConfig','sendTestFrameworkEvent\x20complete\x20for\x20testId:\x20','getInstance','registerObserver','38980WlqiWl','cMHhN','sendTestFrameworkEvent\x20testId:\x20','parallelIndex','getState','frameworkVersion','MODULE_NAME','testFrameworkVersion','eventJson','capabilities','171pwiGFI','testHookState','workerInfo','19701rKXWkg','onAllTestEvents','getTestDetails','getId','test','endedAt','__workerDetails','HaNUh','get','O11yHashedID','TonBD','getTestUUID','5|6|3|1|2|7|0|4','6bmJHqC','hookState','test_deferred','../cliUtils.js','../framework/testFramework.js','testSessionEvent','split','Error\x20in\x20sendTestFrameworkEvent:\x20','getJwt','format','error','getContext','../state/automationFrameworkState.js','exports','getModuleName','../framework/constants/testFrameworkConstants.js','getRef','150PhUDFz','../state/hookState.js','\x20hookState:\x20','testId','bind','debug','61242pBvYxN','values','KEY_TEST_STARTED_AT','../../../helpers/testhub/constants','from','util','POST','KEY_TEST_FRAMEWORK_VERSION','stringify','../framework/automationFramework.js','startedAt','KEY_TEST_ENDED_AT','2335459XMiiRN','6647172MQNbOe','KEY_TEST_FRAMEWORK_NAME','testFrameworkState','getCurrentTestState','KEY_SESSION_ID','../grpcClient.js','ENV_VAR','env','1580GMzIXL','KEY_TEST_DEFERRED','./baseModule','sendTestFrameworkEvent','matchHookRegex','./playwrightDriverModule.js','frameworkName','getAllData','38WcqdcC'];a76_0x4a89=function(){return _0x2a5d4e;};return a76_0x4a89();}TestHubModule['MODULE_NAME']='TestHubModule',TestHubModule[a76_0x377c28(0x1a9)]=a76_0x377c28(0x17e),module[a76_0x377c28(0x189)]=TestHubModule;
|
|
1
|
+
const a76_0x28b954=a76_0x14d9;(function(_0x1afda7,_0x544c6a){const _0x1bd1cf=a76_0x14d9,_0x53ae18=_0x1afda7();while(!![]){try{const _0x5af183=-parseInt(_0x1bd1cf(0x225))/0x1+-parseInt(_0x1bd1cf(0x217))/0x2*(-parseInt(_0x1bd1cf(0x22e))/0x3)+parseInt(_0x1bd1cf(0x228))/0x4*(-parseInt(_0x1bd1cf(0x22a))/0x5)+parseInt(_0x1bd1cf(0x1d5))/0x6+-parseInt(_0x1bd1cf(0x20a))/0x7+-parseInt(_0x1bd1cf(0x214))/0x8+parseInt(_0x1bd1cf(0x1e1))/0x9*(parseInt(_0x1bd1cf(0x20f))/0xa);if(_0x5af183===_0x544c6a)break;else _0x53ae18['push'](_0x53ae18['shift']());}catch(_0x4cfe0b){_0x53ae18['push'](_0x53ae18['shift']());}}}(a76_0x9695,0x5a1bb));function a76_0x9695(){const _0x481671=['testFrameworkVersion','Error\x20in\x20sendTestFrameworkEvent:\x20','3667752AalwpK','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','format','4iNvSrF','sendTestFrameworkEvent','ivURL','sendTestFrameworkEvent\x20testId:\x20','from','toString','name','onPageCreate\x20CBTSession\x20payload:\x20','\x20hookState:\x20','__workerDetails','getInstance','../../../helpers/testhub/constants','TestHubModule','../framework/constants/testFrameworkConstants.js','18630bQFuxt','POST','CREATE','1970440TyGbRQ','page','5MzPZAK','env','getBuildHashedId','uuid','145338rbjmvy','O11yHashedID','logger','TEST','registerObserver','testHookState','KEY_TEST_DEFERRED','../framework/automationFramework.js','test_deferred','rCGVH','getCurrentHookState','KEY_TEST_STARTED_AT','../state/testFrameworkState.js','../../../helpers/classLogger.js','values','520902rRKzke','getCurrentTestState','frameworkVersion','stringify','../state/automationFrameworkState.js','getJwt','getProcessId','BROWSERSTACK_TESTHUB_JWT','ENV_VAR','split','getThreadId','KEY_TEST_ENDED_AT','302112tUXICM','automationSession','getRef','KEY_CAPABILITIES','KEY_TEST_FRAMEWORK_VERSION','bind','umZfB','forEach','getModuleName','MODULE_NAME','getState','workerInfo','sendTestFrameworkEvent\x20complete\x20for\x20testId:\x20','testFrameworkName','test','Error\x20in\x20sending\x20CBTSession:\x20','KEY_TEST_FRAMEWORK_NAME','util','../browserstackCLI.js','onAllTestEvents','../framework/testFramework.js','instance','testUuid','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','testId','parallelIndex','frameworkName','KEY_HUB_URL','getId','../cliUtils.js','../grpcClient.js','error','executionContext','./baseModule','onPageCreate','endedAt','./playwrightDriverModule.js','BROWSERSTACK_TESTHUB_UUID','debug','base64','../../../helpers/helper.js','4368147Phzzpv','../state/hookState.js','capabilities','testhubConfig','sUtlz','530fPXyzm','getAllData','platformIndex'];a76_0x9695=function(){return _0x481671;};return a76_0x9695();}const util=require(a76_0x28b954(0x1f2)),BaseModule=require(a76_0x28b954(0x202)),{createClassLogger}=require(a76_0x28b954(0x1d3)),AutomationFramework=require(a76_0x28b954(0x1cd)),AutomationFrameworkState=require(a76_0x28b954(0x1d9)),HookState=require(a76_0x28b954(0x20b)),TestFramework=require(a76_0x28b954(0x1f5)),TestFrameworkState=require(a76_0x28b954(0x1d2)),PlaywrightDriverModule=require(a76_0x28b954(0x205)),TestFrameworkConstants=require(a76_0x28b954(0x224)),GrpcClient=require(a76_0x28b954(0x1ff)),CLIUtils=require(a76_0x28b954(0x1fe)),TestInfo=require('../TestInfo.js'),testHubConstants=require(a76_0x28b954(0x222)),BrowserstackCLI=require(a76_0x28b954(0x1f3)),{getPlaywrightProvider}=require(a76_0x28b954(0x209));class TestHubModule extends BaseModule{[a76_0x28b954(0x230)]=createClassLogger(a76_0x28b954(0x223));constructor(_0x2dc35a){const _0x1fffc1=a76_0x28b954,_0x93d9bc={};_0x93d9bc['umZfB']='6|2|5|0|3|7|4|1',_0x93d9bc[_0x1fffc1(0x20e)]=_0x1fffc1(0x223);const _0x4181ce=_0x93d9bc,_0x5d2efc=_0x4181ce[_0x1fffc1(0x1e7)][_0x1fffc1(0x1de)]('|');let _0x584660=0x0;while(!![]){switch(_0x5d2efc[_0x584660++]){case'0':AutomationFramework[_0x1fffc1(0x232)](AutomationFrameworkState[_0x1fffc1(0x227)],HookState[_0x1fffc1(0x226)],this['onPageCreate'][_0x1fffc1(0x1e6)](this));continue;case'1':BrowserstackCLI[_0x1fffc1(0x22f)]=this[_0x1fffc1(0x20d)][_0x1fffc1(0x22c)]();continue;case'2':this[_0x1fffc1(0x21d)]=_0x4181ce[_0x1fffc1(0x20e)];continue;case'3':Object[_0x1fffc1(0x1d4)](TestFrameworkState)[_0x1fffc1(0x1e8)](_0x3cca85=>{const _0x3c2eea=_0x1fffc1;Object[_0x3c2eea(0x1d4)](HookState)[_0x3c2eea(0x1e8)](_0x273667=>{const _0x52a93a=_0x3c2eea;TestFramework[_0x52a93a(0x232)](_0x3cca85,_0x273667,this[_0x52a93a(0x1f4)][_0x52a93a(0x1e6)](this));});});continue;case'4':process['env'][testHubConstants[_0x1fffc1(0x1dd)][_0x1fffc1(0x206)]]=this[_0x1fffc1(0x20d)]['getBuildHashedId']();continue;case'5':this[_0x1fffc1(0x20d)]=_0x2dc35a;continue;case'6':super();continue;case'7':process[_0x1fffc1(0x22b)][testHubConstants[_0x1fffc1(0x1dd)][_0x1fffc1(0x1dc)]]=this[_0x1fffc1(0x20d)][_0x1fffc1(0x1da)]();continue;}break;}}[a76_0x28b954(0x1e9)](){const _0x25ac89=a76_0x28b954;return TestHubModule[_0x25ac89(0x1ea)];}[a76_0x28b954(0x1f4)](_0x28db58){const _0x411ad6=a76_0x28b954,_0x479a94={};_0x479a94[_0x411ad6(0x1cf)]=function(_0x2ba8bc,_0x5bae0a){return _0x2ba8bc===_0x5bae0a;};const _0x50fb67=_0x479a94,_0x7a5e7d=_0x28db58['instance'],_0x13e2b5=_0x7a5e7d[_0x411ad6(0x1d6)]();(_0x50fb67['rCGVH'](_0x13e2b5,TestFrameworkState[_0x411ad6(0x231)])||CLIUtils['matchHookRegex'](_0x13e2b5[_0x411ad6(0x21c)]()[_0x411ad6(0x1de)]('.')[0x1]))&&this[_0x411ad6(0x218)](_0x28db58);}async[a76_0x28b954(0x218)](_0x5223ec){const _0x4a7f15=a76_0x28b954,_0x4d114e={};_0x4d114e[_0x4a7f15(0x219)]=_0x4a7f15(0x208);const _0x53e4f2=_0x4d114e;try{const _0x3f89bb=_0x5223ec[_0x4a7f15(0x1ef)]['id'],_0x56c545=_0x5223ec[_0x4a7f15(0x1f6)],_0x1ef60b=_0x56c545['getContext'](),_0x1e4106=_0x56c545[_0x4a7f15(0x210)]()['get'](_0x3f89bb);this[_0x4a7f15(0x230)][_0x4a7f15(0x207)](_0x4a7f15(0x21a)+_0x3f89bb);const {[TestFrameworkConstants[_0x4a7f15(0x1f1)]]:_0x4b2dfd='',[TestFrameworkConstants[_0x4a7f15(0x1e5)]]:_0x4c25e9='',[TestFrameworkConstants[_0x4a7f15(0x1d1)]]:_0x3f7a23='',[TestFrameworkConstants[_0x4a7f15(0x1e0)]]:_0x1904df=''}=_0x1e4106,_0x3772d6=_0x56c545['getCurrentTestState']()['toString']()[_0x4a7f15(0x1de)]('.')[0x1],_0x42c46b=_0x56c545[_0x4a7f15(0x1d0)]()[_0x4a7f15(0x21c)]()[_0x4a7f15(0x1de)]('.')[0x1],_0x3f4274=global?.[_0x4a7f15(0x220)]?.[_0x4a7f15(0x1ec)]?.[_0x4a7f15(0x1fa)];;const _0x26aba8=_0x56c545[_0x4a7f15(0x1e3)](),_0x4d2ae3=Buffer[_0x4a7f15(0x21b)](JSON[_0x4a7f15(0x1d8)](_0x1e4106))[_0x4a7f15(0x21c)](_0x53e4f2[_0x4a7f15(0x219)]),_0x449619={'hash':_0x1ef60b['getId'](),'threadId':_0x1ef60b[_0x4a7f15(0x1df)]()[_0x4a7f15(0x21c)](),'processId':_0x1ef60b[_0x4a7f15(0x1db)]()['toString']()},_0x17134a={};_0x17134a['platformIndex']=_0x3f4274,_0x17134a['testFrameworkName']=_0x4b2dfd,_0x17134a[_0x4a7f15(0x212)]=_0x4c25e9,_0x17134a['testFrameworkState']=_0x3772d6,_0x17134a['hookState']=_0x42c46b,_0x17134a['startedAt']=_0x3f7a23,_0x17134a[_0x4a7f15(0x204)]=_0x1904df,_0x17134a[_0x4a7f15(0x22d)]=_0x26aba8,_0x17134a['eventJson']=_0x4d2ae3,_0x17134a['executionContext']=_0x449619;const _0x416e50=_0x17134a,_0xb9db2f=await GrpcClient[_0x4a7f15(0x221)]()['testFrameworkEvent'](_0x416e50);this[_0x4a7f15(0x230)][_0x4a7f15(0x207)](_0x4a7f15(0x1ed)+_0x3f89bb+'\x20testState:\x20'+_0x3772d6+_0x4a7f15(0x21f)+_0x42c46b);}catch(_0x49c8ae){this['logger'][_0x4a7f15(0x200)](_0x4a7f15(0x213)+util[_0x4a7f15(0x216)](_0x49c8ae));}}async[a76_0x28b954(0x203)](_0x9a548d){const _0x15a19e=a76_0x28b954,_0x38ad36={'IOpRO':function(_0x391843,_0x57cf33){return _0x391843(_0x57cf33);},'tUPML':_0x15a19e(0x208)};try{if(_0x9a548d[_0x15a19e(0x229)]){const _0x5ea642=_0x9a548d['testInfo'][_0x15a19e(0x1f9)];this[_0x15a19e(0x230)]['debug'](_0x15a19e(0x1f8)+_0x5ea642);const _0x2996bc=TestInfo['getTestUUID'](_0x5ea642),_0x45ee6b=TestInfo['getTestDetails'](_0x5ea642),_0x1176d9=_0x9a548d[_0x15a19e(0x1f6)],_0x21ecbb=AutomationFramework[_0x15a19e(0x1eb)](_0x1176d9,PlaywrightDriverModule['KEY_PLATFORM_INDEX']),_0x554307=_0x45ee6b[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']],_0x5ca5bb=_0x45ee6b[TestFrameworkConstants[_0x15a19e(0x1e5)]],_0x43e3ca=TestFrameworkState[_0x15a19e(0x231)][_0x15a19e(0x21c)]()[_0x15a19e(0x1de)]('.')[0x1],_0x5bbb5e=HookState[_0x15a19e(0x226)][_0x15a19e(0x21c)]()[_0x15a19e(0x1de)]('.')[0x1],_0x11c59d=_0x1176d9['getContext'](),_0x5e4fb0=AutomationFramework['getState'](_0x1176d9,PlaywrightDriverModule[_0x15a19e(0x1fc)],''),_0x4e507c={'provider':_0x38ad36['IOpRO'](getPlaywrightProvider,_0x5e4fb0),'frameworkName':_0x1176d9[_0x15a19e(0x1fb)],'frameworkVersion':_0x1176d9[_0x15a19e(0x1d7)],'frameworkSessionId':AutomationFramework['getState'](_0x1176d9,PlaywrightDriverModule['KEY_SESSION_ID'],''),'ref':_0x1176d9[_0x15a19e(0x1e3)](),'hubUrl':_0x5e4fb0};let _0x5ddd51=AutomationFramework[_0x15a19e(0x1eb)](_0x1176d9,PlaywrightDriverModule[_0x15a19e(0x1e4)],{});_0x5ddd51=Buffer[_0x15a19e(0x21b)](JSON[_0x15a19e(0x1d8)](_0x5ddd51))[_0x15a19e(0x21c)](_0x38ad36['tUPML']);const _0x25dc43={'hash':_0x11c59d[_0x15a19e(0x1fd)](),'threadId':_0x11c59d[_0x15a19e(0x1df)]()['toString'](),'processId':_0x11c59d[_0x15a19e(0x1db)]()[_0x15a19e(0x21c)]()},_0x4c9f7c={};_0x4c9f7c[_0x15a19e(0x211)]=_0x21ecbb,_0x4c9f7c[_0x15a19e(0x1ee)]=_0x554307,_0x4c9f7c[_0x15a19e(0x212)]=_0x5ca5bb,_0x4c9f7c['testFrameworkState']=_0x43e3ca,_0x4c9f7c[_0x15a19e(0x233)]=_0x5bbb5e,_0x4c9f7c[_0x15a19e(0x1f7)]=_0x2996bc,_0x4c9f7c[_0x15a19e(0x1e2)]=_0x4e507c,_0x4c9f7c[_0x15a19e(0x20c)]=_0x5ddd51,_0x4c9f7c[_0x15a19e(0x201)]=_0x25dc43;const _0x3dcf03=_0x4c9f7c;this[_0x15a19e(0x230)][_0x15a19e(0x207)](_0x15a19e(0x21e)+util[_0x15a19e(0x216)](_0x3dcf03));const _0x2a89a4=await GrpcClient[_0x15a19e(0x221)]()['testSessionEvent'](_0x3dcf03);this[_0x15a19e(0x230)][_0x15a19e(0x207)](_0x15a19e(0x215)+_0x5ea642);}}catch(_0x3d9fc2){this[_0x15a19e(0x230)][_0x15a19e(0x200)](_0x15a19e(0x1f0)+util[_0x15a19e(0x216)](_0x3d9fc2));}}}function a76_0x14d9(_0x3ceb66,_0x29a30f){const _0x969577=a76_0x9695();return a76_0x14d9=function(_0x14d972,_0x2c90f9){_0x14d972=_0x14d972-0x1cc;let _0x81689=_0x969577[_0x14d972];return _0x81689;},a76_0x14d9(_0x3ceb66,_0x29a30f);}TestHubModule[a76_0x28b954(0x1ea)]=a76_0x28b954(0x223),TestHubModule[a76_0x28b954(0x1cc)]=a76_0x28b954(0x1ce),module['exports']=TestHubModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77_0x161245=a77_0x5b8c;(function(_0x431208,_0x26e9a7){const _0x2ca0a6=a77_0x5b8c,_0x14b1bf=_0x431208();while(!![]){try{const _0x526527=-parseInt(_0x2ca0a6(0x183))/0x1*(parseInt(_0x2ca0a6(0x17d))/0x2)+parseInt(_0x2ca0a6(0x17e))/0x3*(-parseInt(_0x2ca0a6(0x176))/0x4)+-parseInt(_0x2ca0a6(0x18a))/0x5*(-parseInt(_0x2ca0a6(0x179))/0x6)+-parseInt(_0x2ca0a6(0x18d))/0x7*(-parseInt(_0x2ca0a6(0x178))/0x8)+-parseInt(_0x2ca0a6(0x181))/0x9*(-parseInt(_0x2ca0a6(0x18c))/0xa)+parseInt(_0x2ca0a6(0x17b))/0xb+parseInt(_0x2ca0a6(0x175))/0xc*(-parseInt(_0x2ca0a6(0x189))/0xd);if(_0x526527===_0x26e9a7)break;else _0x14b1bf['push'](_0x14b1bf['shift']());}catch(_0x45e203){_0x14b1bf['push'](_0x14b1bf['shift']());}}}(a77_0x42ff,0xd2ed5));const {PLAYWRIGHT}=require(a77_0x161245(0x17a)),a77_0x3f6219={};a77_0x3f6219['value']=0x0,a77_0x3f6219[a77_0x161245(0x174)]=function(){const _0x29c279=a77_0x161245,_0x75f592={};_0x75f592[_0x29c279(0x187)]=_0x29c279(0x17f);const _0x360ee4=_0x75f592;return _0x360ee4['LCGBU'];};const a77_0x192a43={};a77_0x192a43[a77_0x161245(0x191)]=0x1,a77_0x192a43['toString']=function(){const _0x1bd4fa=a77_0x161245,_0x16eb5a={};_0x16eb5a[_0x1bd4fa(0x18f)]='AutomationFrameworkState.CREATE';const _0x4972f0=_0x16eb5a;return _0x4972f0[_0x1bd4fa(0x18f)];};const a77_0x1a50a1={};function a77_0x5b8c(_0x3b4fd0,_0x2772a5){const _0x42ff07=a77_0x42ff();return a77_0x5b8c=function(_0x5b8c69,_0x2bdd58){_0x5b8c69=_0x5b8c69-0x174;let _0x24b137=_0x42ff07[_0x5b8c69];return _0x24b137;},a77_0x5b8c(_0x3b4fd0,_0x2772a5);}a77_0x1a50a1[a77_0x161245(0x191)]=0x2,a77_0x1a50a1[a77_0x161245(0x174)]=function(){const _0xf36cd1=a77_0x161245,_0x47d4f3={};_0x47d4f3[_0xf36cd1(0x17c)]=_0xf36cd1(0x180);const _0x4111e6=_0x47d4f3;return _0x4111e6['oxmfL'];};const a77_0x43fccc={};a77_0x43fccc[a77_0x161245(0x191)]=0x3,a77_0x43fccc[a77_0x161245(0x174)]=function(){const _0x2fc3dc=a77_0x161245,_0x342937={};_0x342937[_0x2fc3dc(0x190)]=_0x2fc3dc(0x18e);const _0x32d476=_0x342937;return _0x32d476[_0x2fc3dc(0x190)];};const a77_0x23b1ab={};function a77_0x42ff(){const _0x110028=['28zAErtK','AutomationFrameworkState.EXECUTE','XqWFH','tGLcv','value','toString','44712zaYrim','4780472YpTzjC','AutomationFrameworkState.QUIT','144752pAGjFl','72adcsUd','../../utils/constants','9861313ZEigff','oxmfL','4vnMHhV','3cOirjm','AutomationFrameworkState.NONE','AutomationFrameworkState.PLAYWRIGHT_DISPATCH','6007095wYIGvg','find','158092ymkmKK','YikUO','REFUf','values','LCGBU','AutomationFrameworkState.IDLE','3393WMeXXC','434990kVnBhT','freeze','20JzpBut'];a77_0x42ff=function(){return _0x110028;};return a77_0x42ff();}a77_0x23b1ab['value']=0x4,a77_0x23b1ab[a77_0x161245(0x174)]=function(){const _0x24c86c=a77_0x161245,_0xd670ba={};_0xd670ba[_0x24c86c(0x184)]=_0x24c86c(0x188);const _0x1b73b4=_0xd670ba;return _0x1b73b4[_0x24c86c(0x184)];};const a77_0x1f3f78={};a77_0x1f3f78['value']=0x5,a77_0x1f3f78[a77_0x161245(0x174)]=function(){const _0x1734e5=a77_0x161245,_0x3e9839={};_0x3e9839[_0x1734e5(0x185)]=_0x1734e5(0x177);const _0x30e994=_0x3e9839;return _0x30e994['REFUf'];};const AutomationFrameworkState=Object[a77_0x161245(0x18b)]({'NONE':a77_0x3f6219,'CREATE':a77_0x192a43,'PLAYWRIGHT_DISPATCH':a77_0x1a50a1,'EXECUTE':a77_0x43fccc,'IDLE':a77_0x23b1ab,'QUIT':a77_0x1f3f78,'fromValue'(_0x5312b5){const _0x5ccb1b=a77_0x161245;return Object[_0x5ccb1b(0x186)](AutomationFrameworkState)[_0x5ccb1b(0x182)](_0x533f49=>_0x533f49[_0x5ccb1b(0x191)]===_0x5312b5);}});module['exports']=AutomationFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a78_0x587ed5=a78_0x53ff;function a78_0x432e(){const _0x4e26ce=['420830vHTvyo','7pUxRxn','exports','9iZiyDd','116ffaHbU','5iOVanh','11VLFGey','250990QWBBPx','value','LEdfw','values','iwyvH','HookState.POST','vTCCA','680092VvnwIh','3339BFlFsL','774420GEuwmQ','find','203384xMFUeC','8675592tdrEqW','toString'];a78_0x432e=function(){return _0x4e26ce;};return a78_0x432e();}(function(_0x2d07d9,_0x23cd2d){const _0x444d47=a78_0x53ff,_0x57db33=_0x2d07d9();while(!![]){try{const _0x147be9=-parseInt(_0x444d47(0xc7))/0x1+-parseInt(_0x444d47(0xce))/0x2+-parseInt(_0x444d47(0xcf))/0x3*(-parseInt(_0x444d47(0xc4))/0x4)+-parseInt(_0x444d47(0xc5))/0x5*(-parseInt(_0x444d47(0xd0))/0x6)+parseInt(_0x444d47(0xc1))/0x7*(parseInt(_0x444d47(0xbd))/0x8)+parseInt(_0x444d47(0xc3))/0x9*(-parseInt(_0x444d47(0xc0))/0xa)+parseInt(_0x444d47(0xc6))/0xb*(parseInt(_0x444d47(0xbe))/0xc);if(_0x147be9===_0x23cd2d)break;else _0x57db33['push'](_0x57db33['shift']());}catch(_0xa29b3){_0x57db33['push'](_0x57db33['shift']());}}}(a78_0x432e,0x43889));const a78_0xe08761={};function a78_0x53ff(_0x27e199,_0x55a334){const _0x432e0b=a78_0x432e();return a78_0x53ff=function(_0x53ffb8,_0x2b14ba){_0x53ffb8=_0x53ffb8-0xbc;let _0x50f689=_0x432e0b[_0x53ffb8];return _0x50f689;},a78_0x53ff(_0x27e199,_0x55a334);}a78_0xe08761[a78_0x587ed5(0xc8)]=0x0,a78_0xe08761[a78_0x587ed5(0xbf)]=function(){const _0x5a1549=a78_0x587ed5,_0x15d222={};_0x15d222[_0x5a1549(0xc9)]='HookState.NONE';const _0x209344=_0x15d222;return _0x209344[_0x5a1549(0xc9)];};const a78_0x3cc9a0={};a78_0x3cc9a0[a78_0x587ed5(0xc8)]=0x1,a78_0x3cc9a0[a78_0x587ed5(0xbf)]=function(){const _0x2653cc=a78_0x587ed5,_0x3b055f={};_0x3b055f['vTCCA']='HookState.PRE';const _0x1c4c16=_0x3b055f;return _0x1c4c16[_0x2653cc(0xcd)];};const a78_0x5f4f2c={};a78_0x5f4f2c['value']=0x2,a78_0x5f4f2c[a78_0x587ed5(0xbf)]=function(){const _0x1c8074=a78_0x587ed5,_0x492bf8={};_0x492bf8[_0x1c8074(0xcb)]=_0x1c8074(0xcc);const _0x67e814=_0x492bf8;return _0x67e814[_0x1c8074(0xcb)];};const HookState=Object['freeze']({'NONE':a78_0xe08761,'PRE':a78_0x3cc9a0,'POST':a78_0x5f4f2c,'fromValue'(_0x1d5a65){const _0x12a9fd=a78_0x587ed5;return Object[_0x12a9fd(0xca)](HookState)[_0x12a9fd(0xbc)](_0x6eacaa=>_0x6eacaa[_0x12a9fd(0xc8)]===_0x1d5a65);}});module[a78_0x587ed5(0xc2)]=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0x4e61cd=a79_0x1a8f;(function(_0x308d05,_0x21d480){const _0x216ede=a79_0x1a8f,_0x57ad2e=_0x308d05();while(!![]){try{const _0x2f8eca=parseInt(_0x216ede(0x15f))/0x1*(parseInt(_0x216ede(0x160))/0x2)+-parseInt(_0x216ede(0x175))/0x3*(parseInt(_0x216ede(0x165))/0x4)+parseInt(_0x216ede(0x157))/0x5*(parseInt(_0x216ede(0x170))/0x6)+parseInt(_0x216ede(0x15d))/0x7+-parseInt(_0x216ede(0x171))/0x8+parseInt(_0x216ede(0x163))/0x9+-parseInt(_0x216ede(0x16e))/0xa;if(_0x2f8eca===_0x21d480)break;else _0x57ad2e['push'](_0x57ad2e['shift']());}catch(_0x498730){_0x57ad2e['push'](_0x57ad2e['shift']());}}}(a79_0x6c0c,0xcd957));const a79_0x42972a={};a79_0x42972a[a79_0x4e61cd(0x15b)]=0x0,a79_0x42972a[a79_0x4e61cd(0x162)]=function(){const _0x194f60=a79_0x4e61cd,_0x119b47={};_0x119b47[_0x194f60(0x172)]='TestFrameworkState.NONE';const _0x580b08=_0x119b47;return _0x580b08['WLRIN'];};const a79_0x4f38eb={};a79_0x4f38eb[a79_0x4e61cd(0x15b)]=0x1,a79_0x4f38eb[a79_0x4e61cd(0x162)]=function(){const _0x2d0639=a79_0x4e61cd,_0x1ed4be={};_0x1ed4be[_0x2d0639(0x156)]=_0x2d0639(0x16f);const _0x2752b5=_0x1ed4be;return _0x2752b5[_0x2d0639(0x156)];};const a79_0x1e228b={};a79_0x1e228b[a79_0x4e61cd(0x15b)]=0x2,a79_0x1e228b[a79_0x4e61cd(0x162)]=function(){const _0x19b45d=a79_0x4e61cd,_0x15b3bd={};_0x15b3bd['vFUgY']='TestFrameworkState.LOG';const _0x116b7c=_0x15b3bd;return _0x116b7c[_0x19b45d(0x15c)];};const a79_0x2094ba={};a79_0x2094ba[a79_0x4e61cd(0x15b)]=0x3,a79_0x2094ba[a79_0x4e61cd(0x162)]=function(){const _0x2b22af=a79_0x4e61cd,_0x3d3a08={};_0x3d3a08[_0x2b22af(0x15e)]=_0x2b22af(0x158);const _0x463b87=_0x3d3a08;return _0x463b87[_0x2b22af(0x15e)];};const a79_0x3e543d={};a79_0x3e543d[a79_0x4e61cd(0x15b)]=0x4,a79_0x3e543d[a79_0x4e61cd(0x162)]=function(){const _0x22dbc2=a79_0x4e61cd,_0xb918f3={};_0xb918f3[_0x22dbc2(0x16a)]=_0x22dbc2(0x16d);const _0x3dcc89=_0xb918f3;return _0x3dcc89[_0x22dbc2(0x16a)];};const a79_0x50bd6b={};a79_0x50bd6b['value']=0x5,a79_0x50bd6b[a79_0x4e61cd(0x162)]=function(){const _0x9e2adf=a79_0x4e61cd,_0x2d46be={};_0x2d46be[_0x9e2adf(0x167)]='TestFrameworkState.BEFORE_EACH';const _0xd6ef9d=_0x2d46be;return _0xd6ef9d[_0x9e2adf(0x167)];};const a79_0x2aa7e0={};function a79_0x1a8f(_0x1f28b8,_0x1300fc){const _0x6c0cfa=a79_0x6c0c();return a79_0x1a8f=function(_0x1a8fa0,_0x2c36c1){_0x1a8fa0=_0x1a8fa0-0x156;let _0x33c39c=_0x6c0cfa[_0x1a8fa0];return _0x33c39c;},a79_0x1a8f(_0x1f28b8,_0x1300fc);}a79_0x2aa7e0[a79_0x4e61cd(0x15b)]=0x6,a79_0x2aa7e0[a79_0x4e61cd(0x162)]=function(){const _0x17aef7=a79_0x4e61cd,_0xbc40a6={};_0xbc40a6[_0x17aef7(0x15a)]=_0x17aef7(0x16b);const _0x495e0c=_0xbc40a6;return _0x495e0c[_0x17aef7(0x15a)];};const a79_0x4f8e27={};a79_0x4f8e27[a79_0x4e61cd(0x15b)]=0x7,a79_0x4f8e27[a79_0x4e61cd(0x162)]=function(){const _0x53e808=a79_0x4e61cd,_0x401e81={};_0x401e81[_0x53e808(0x173)]=_0x53e808(0x164);const _0x5f46bb=_0x401e81;return _0x5f46bb[_0x53e808(0x173)];};const a79_0x4e5dc5={};function a79_0x6c0c(){const _0xa40c7d=['1291086vfniPa','TestFrameworkState.TEST','4ySaoso','qGTna','UuZCB','mdnhh','values','cyEXI','TestFrameworkState.AFTER_EACH','freeze','TestFrameworkState.INIT_TEST','647380moMjft','TestFrameworkState.BEFORE_ALL','6NNSGPO','985416NMGVlG','WLRIN','Hkbsf','TestFrameworkState.AFTER_ALL','815493yTBRVZ','MAFYM','1263965rYnLkQ','TestFrameworkState.SETUP_FIXTURE','jEhDW','NmuLe','value','vFUgY','2014999uiIWvX','TpSfp','617713YnsaiW','2sWUvUH','TestFrameworkState.LOG_REPORT','toString'];a79_0x6c0c=function(){return _0xa40c7d;};return a79_0x6c0c();}a79_0x4e5dc5[a79_0x4e61cd(0x15b)]=0x8,a79_0x4e5dc5[a79_0x4e61cd(0x162)]=function(){const _0x548b1d=a79_0x4e61cd,_0x4f066b={};_0x4f066b[_0x548b1d(0x166)]='TestFrameworkState.STEP';const _0x410d88=_0x4f066b;return _0x410d88[_0x548b1d(0x166)];};const a79_0xd58ea={};a79_0xd58ea[a79_0x4e61cd(0x15b)]=0x9,a79_0xd58ea[a79_0x4e61cd(0x162)]=function(){const _0x4b56d2=a79_0x4e61cd,_0x81d53a={};_0x81d53a[_0x4b56d2(0x168)]=_0x4b56d2(0x161);const _0x57f7f7=_0x81d53a;return _0x57f7f7['mdnhh'];};const a79_0x981f3d={};a79_0x981f3d[a79_0x4e61cd(0x15b)]=0xa,a79_0x981f3d[a79_0x4e61cd(0x162)]=function(){const _0xee314=a79_0x4e61cd,_0x12a6c0={};_0x12a6c0['jEhDW']=_0xee314(0x174);const _0x5e111d=_0x12a6c0;return _0x5e111d[_0xee314(0x159)];};const TestFrameworkState=Object[a79_0x4e61cd(0x16c)]({'NONE':a79_0x42972a,'BEFORE_ALL':a79_0x4f38eb,'LOG':a79_0x1e228b,'SETUP_FIXTURE':a79_0x2094ba,'INIT_TEST':a79_0x3e543d,'BEFORE_EACH':a79_0x50bd6b,'AFTER_EACH':a79_0x2aa7e0,'TEST':a79_0x4f8e27,'STEP':a79_0x4e5dc5,'LOG_REPORT':a79_0xd58ea,'AFTER_ALL':a79_0x981f3d,'fromValue'(_0x5d47da){const _0x370e8f=a79_0x4e61cd;return Object[_0x370e8f(0x169)](TestFrameworkState)['find'](_0x2b1f90=>_0x2b1f90[_0x370e8f(0x15b)]===_0x5d47da);}});module['exports']=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a80_0x51cd(){const _0x49af45=['Attachment\x20recevied\x20for\x20path:\x20%s','util','trackFile','./TestInfo','EqDYb','FAfSa','exports','startsWith','pipe','NDFJC','Cleared\x20attachment\x20folder','statusCode','Created\x20.browserstack\x20folder\x20at:\x20%s','get','force','Created\x20folder:\x20%s','getState','254030nhYdTU','logger','PKSpt','NNFgH','sxZhU','YiPtn','KEY_TEST_ID','KQvah','jaWAh','31552PUTnIX','wTZaT','KEY_TEST_ATTACHMENTS','../../helpers/classLogger.js','21SpscmJ','close','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','mkdirSync','uploadAttachmentsManager','wLnhb','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','path','bEGmO','rmSync','AEjJb','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','./browserstackCLI','.browserstack','./framework/constants/testFrameworkConstants','Gpxid','http','File\x20downloaded\x20to:\x20%s','wlogS','GPEQP','copyFileSync','./modules/playwrightDriverModule','WqnOT','1503042rubkWM','KEY_FILE_PATH','format','28171eYoBba','KOShg','iSBKj','join','homedir','56snguHj','mEQlE','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','https://','19nrxpQz','https','DwIlp','uploadAttachments','YjSsh','createWriteStream','size','modules','KEY_FILE_SIZE','3072429AeuGRg','getTestDetails','existsSync','JDVwd','hiYGp','TestLevel','lFttZ','TestHubModule','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','debug','GhYaC','toObject','3336hoTIpL','9361176QuWpcl','HGMPh','QFAdS','unlinkSync','eHOIE','cvVLS','basename','toFixed','wmVww','265134EDwFXX','KEY_FILE_NAME','buildHashedId','UDVWW','message','trim','./framework/automationFramework','BuildLevel','statSync','10kstLHm','finish'];a80_0x51cd=function(){return _0x49af45;};return a80_0x51cd();}const a80_0x1fbdd4=a80_0x2e02;(function(_0x43f680,_0x3e319b){const _0x5a61cf=a80_0x2e02,_0x387ffb=_0x43f680();while(!![]){try{const _0x25a1d7=parseInt(_0x5a61cf(0xe4))/0x1*(parseInt(_0x5a61cf(0x128))/0x2)+parseInt(_0x5a61cf(0x103))/0x3*(parseInt(_0x5a61cf(0xe0))/0x4)+parseInt(_0x5a61cf(0x11f))/0x5+parseInt(_0x5a61cf(0xd8))/0x6*(-parseInt(_0x5a61cf(0x12c))/0x7)+parseInt(_0x5a61cf(0xfa))/0x8+parseInt(_0x5a61cf(0xed))/0x9*(-parseInt(_0x5a61cf(0x10c))/0xa)+parseInt(_0x5a61cf(0xdb))/0xb*(-parseInt(_0x5a61cf(0xf9))/0xc);if(_0x25a1d7===_0x3e319b)break;else _0x387ffb['push'](_0x387ffb['shift']());}catch(_0x563fc2){_0x387ffb['push'](_0x387ffb['shift']());}}}(a80_0x51cd,0xe8b29));const os=require('os'),fs=require('fs'),path=require(a80_0x1fbdd4(0xc8)),util=require(a80_0x1fbdd4(0x10f)),BrowserstackCLI=require(a80_0x1fbdd4(0xcd)),https=require(a80_0x1fbdd4(0xe5)),http=require(a80_0x1fbdd4(0xd1)),AutomationFramework=require(a80_0x1fbdd4(0x109)),PlaywrightDriverModule=require(a80_0x1fbdd4(0xd6)),TestInfo=require(a80_0x1fbdd4(0x111)),TestFrameworkConstants=require(a80_0x1fbdd4(0xcf)),{createClassLogger}=require(a80_0x1fbdd4(0x12b));class uploadAttachmentsManager{static [a80_0x1fbdd4(0x120)]=createClassLogger(a80_0x1fbdd4(0x130));static[a80_0x1fbdd4(0xe7)](_0x324268,_0x3cbe93=![]){const _0x4c40fc=a80_0x1fbdd4,_0x3336d4={};_0x3336d4[_0x4c40fc(0xfe)]=function(_0x15de72,_0x4fc66a){return _0x15de72/_0x4fc66a;},_0x3336d4[_0x4c40fc(0xe8)]=function(_0x17db9c,_0x203a3e){return _0x17db9c*_0x203a3e;},_0x3336d4[_0x4c40fc(0xf0)]=function(_0x32b47e,_0x28e132){return _0x32b47e>_0x28e132;},_0x3336d4[_0x4c40fc(0xd3)]='Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.',_0x3336d4[_0x4c40fc(0x112)]=_0x4c40fc(0xd2),_0x3336d4[_0x4c40fc(0xdd)]=function(_0x2f7d45,_0x3b1a9f){return _0x2f7d45===_0x3b1a9f;},_0x3336d4['bEGmO']=_0x4c40fc(0x10d),_0x3336d4['aWUgm']=_0x4c40fc(0xc7),_0x3336d4[_0x4c40fc(0xdc)]='Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload',_0x3336d4[_0x4c40fc(0xd7)]=_0x4c40fc(0x10e),_0x3336d4[_0x4c40fc(0x106)]=_0x4c40fc(0xce),_0x3336d4['TsSnj']=_0x4c40fc(0xe2),_0x3336d4[_0x4c40fc(0x102)]=_0x4c40fc(0x11a),_0x3336d4[_0x4c40fc(0xf1)]=_0x4c40fc(0x11d),_0x3336d4[_0x4c40fc(0x131)]=_0x4c40fc(0x12e),_0x3336d4['NNFgH']=_0x4c40fc(0xe3),_0x3336d4['AEjJb']='http://',_0x3336d4['GhYaC']='error',_0x3336d4[_0x4c40fc(0xfb)]='Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s',_0x3336d4[_0x4c40fc(0x129)]=function(_0x165d80,_0x1c4231){return _0x165d80/_0x1c4231;},_0x3336d4[_0x4c40fc(0x113)]=function(_0x6f59f,_0xfb74e7){return _0x6f59f*_0xfb74e7;},_0x3336d4[_0x4c40fc(0x121)]=function(_0x10affe,_0x555c06){return _0x10affe>_0x555c06;},_0x3336d4['GPEQP']='File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.';const _0x2ae3ef=_0x3336d4;this[_0x4c40fc(0x120)]['debug'](util[_0x4c40fc(0xda)](_0x2ae3ef[_0x4c40fc(0xd7)],_0x324268));const _0x88c340=os[_0x4c40fc(0xdf)](),_0x4079ee=path[_0x4c40fc(0xde)](_0x88c340,_0x2ae3ef[_0x4c40fc(0x106)]);!fs[_0x4c40fc(0xef)](_0x4079ee)&&(this['logger'][_0x4c40fc(0xf6)](util[_0x4c40fc(0xda)](_0x2ae3ef['TsSnj'],_0x4079ee)),fs[_0x4c40fc(0x12f)](_0x4079ee),this[_0x4c40fc(0x120)]['debug'](util[_0x4c40fc(0xda)](_0x2ae3ef['wmVww'],_0x4079ee)));const _0xa991bd=BrowserstackCLI['getInstance']()[_0x4c40fc(0xeb)][_0x4c40fc(0xf4)]?.['testhubConfig']?.[_0x4c40fc(0xf8)]()?.['buildHashedId'],_0x150178=path[_0x4c40fc(0xde)](_0x4079ee,_0xa991bd);!fs[_0x4c40fc(0xef)](_0x150178)&&(fs[_0x4c40fc(0x12f)](_0x150178),this['logger'][_0x4c40fc(0xf6)](util['format'](_0x2ae3ef[_0x4c40fc(0xf1)],_0x150178)));if(_0x2ae3ef['iSBKj'](_0x324268[_0x4c40fc(0x108)](),'')){this[_0x4c40fc(0x120)][_0x4c40fc(0xf6)](util[_0x4c40fc(0xda)](_0x2ae3ef['wLnhb']));return;}if(_0x324268[_0x4c40fc(0x115)](_0x2ae3ef[_0x4c40fc(0x122)])||_0x324268['startsWith'](_0x2ae3ef[_0x4c40fc(0xcb)])){const _0x5867fc=_0x324268['startsWith'](_0x2ae3ef[_0x4c40fc(0x122)])?https:http,_0x4cd62c=path[_0x4c40fc(0x100)](_0x324268),_0xcf5487=path['join'](_0x150178,_0x4cd62c),_0x1e47a2=fs[_0x4c40fc(0xe9)](_0xcf5487);_0x5867fc[_0x4c40fc(0x11b)](_0x324268,_0x32147e=>{const _0x446fd1=_0x4c40fc,_0x25f088={'QFAdS':function(_0x2d3def,_0x54bed4){const _0x25aae3=a80_0x2e02;return _0x2ae3ef[_0x25aae3(0xfe)](_0x2d3def,_0x54bed4);},'nuVsN':function(_0x102e59,_0x1f185f){const _0x5ea71c=a80_0x2e02;return _0x2ae3ef[_0x5ea71c(0xe8)](_0x102e59,_0x1f185f);},'NDFJC':function(_0x5737dd,_0x2f37b4){const _0x2db671=a80_0x2e02;return _0x2ae3ef[_0x2db671(0xf0)](_0x5737dd,_0x2f37b4);},'cvVLS':_0x2ae3ef[_0x446fd1(0xd3)],'lFttZ':_0x2ae3ef[_0x446fd1(0x112)]};if(_0x2ae3ef['iSBKj'](_0x32147e[_0x446fd1(0x119)],0xc8))_0x32147e[_0x446fd1(0x116)](_0x1e47a2),_0x1e47a2['on'](_0x2ae3ef[_0x446fd1(0xc9)],()=>{const _0x22869f=_0x446fd1;_0x1e47a2[_0x22869f(0x12d)]();const _0x4e9fbb=fs[_0x22869f(0x10b)](_0xcf5487),_0x6ca864=_0x25f088[_0x22869f(0xfc)](_0x4e9fbb[_0x22869f(0xea)],_0x25f088['nuVsN'](0x400,0x400));if(_0x25f088[_0x22869f(0x117)](_0x6ca864,0x64)){this[_0x22869f(0x120)][_0x22869f(0xf6)](util[_0x22869f(0xda)](_0x25f088[_0x22869f(0xff)],_0x6ca864['toFixed'](0x2))),fs[_0x22869f(0xfd)](_0xcf5487);return;}this[_0x22869f(0x120)]['debug'](util['format'](_0x25f088[_0x22869f(0xf3)],_0xcf5487)),uploadAttachmentsManager['trackFile'](_0xcf5487,_0x3cbe93);});else{this[_0x446fd1(0x120)][_0x446fd1(0xf6)](util['format'](_0x2ae3ef['aWUgm'],_0x32147e[_0x446fd1(0x119)])),_0x1e47a2['close'](),fs[_0x446fd1(0xfd)](_0xcf5487);return;}})['on'](_0x2ae3ef[_0x4c40fc(0xf7)],_0x2a6a47=>{const _0x4012b6=_0x4c40fc;this[_0x4012b6(0x120)]['debug'](util[_0x4012b6(0xda)](_0x2ae3ef[_0x4012b6(0xdc)],_0x2a6a47[_0x4012b6(0x107)])),_0x1e47a2[_0x4012b6(0x12d)](),fs[_0x4012b6(0xfd)](_0xcf5487);return;});}else{if(!fs[_0x4c40fc(0xef)](_0x324268)){this[_0x4c40fc(0x120)][_0x4c40fc(0xf6)](util[_0x4c40fc(0xda)](_0x2ae3ef[_0x4c40fc(0xfb)],_0x324268));return;}const _0x4bf3d3=fs[_0x4c40fc(0x10b)](_0x324268),_0x1e992c=_0x2ae3ef[_0x4c40fc(0x129)](_0x4bf3d3[_0x4c40fc(0xea)],_0x2ae3ef[_0x4c40fc(0x113)](0x400,0x400));if(_0x2ae3ef[_0x4c40fc(0x121)](_0x1e992c,0x64)){this[_0x4c40fc(0x120)][_0x4c40fc(0xf6)](util['format'](_0x2ae3ef[_0x4c40fc(0xd4)],_0x1e992c[_0x4c40fc(0x101)](0x2)));return;}const _0x2e9ccb=path[_0x4c40fc(0x100)](_0x324268),_0x5e4c43=path[_0x4c40fc(0xde)](_0x150178,_0x2e9ccb);fs[_0x4c40fc(0xd5)](_0x324268,_0x5e4c43),uploadAttachmentsManager[_0x4c40fc(0x110)](_0x5e4c43,_0x3cbe93);}}static[a80_0x1fbdd4(0x110)](_0x436cee,_0xd45fe6){const _0x596996=a80_0x1fbdd4,_0x2fe2e3={};_0x2fe2e3[_0x596996(0x127)]=_0x596996(0x10a),_0x2fe2e3[_0x596996(0xe6)]=_0x596996(0xf2),_0x2fe2e3[_0x596996(0xd0)]=_0x596996(0xf5),_0x2fe2e3['sxZhU']=_0x596996(0xcc);const _0x14bb25=_0x2fe2e3;try{const _0x253952=AutomationFramework['getTrackedInstance'](),_0x27fe75=AutomationFramework[_0x596996(0x11e)](_0x253952,PlaywrightDriverModule[_0x596996(0x125)],''),_0x540691=TestInfo[_0x596996(0xee)](_0x27fe75),_0x3361b4=_0x540691[TestFrameworkConstants[_0x596996(0x12a)]]||{};_0x3361b4[_0x436cee]={[TestFrameworkConstants[_0x596996(0xec)]]:fs[_0x596996(0x10b)](_0x436cee)[_0x596996(0xea)],[TestFrameworkConstants[_0x596996(0x104)]]:path[_0x596996(0x100)](_0x436cee),[TestFrameworkConstants[_0x596996(0xd9)]]:_0x436cee,[TestFrameworkConstants['KEY_FILE_LEVEL']]:_0xd45fe6?_0x14bb25[_0x596996(0x127)]:_0x14bb25[_0x596996(0xe6)]},_0x540691[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]=_0x3361b4,TestInfo['setTestDetails'](_0x27fe75,_0x540691),this[_0x596996(0x120)][_0x596996(0xf6)](util['format'](_0x14bb25['Gpxid'],_0x436cee));}catch(_0x22442f){this[_0x596996(0x120)][_0x596996(0xf6)](util['format'](_0x14bb25[_0x596996(0x123)],_0x22442f[_0x596996(0x107)]));}}static['clearAttachments'](){const _0x1ade7c=a80_0x1fbdd4,_0x26eaaf={};_0x26eaaf[_0x1ade7c(0xe1)]=_0x1ade7c(0xce),_0x26eaaf['YiPtn']='No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s',_0x26eaaf[_0x1ade7c(0x126)]=_0x1ade7c(0x118);const _0x30209a=_0x26eaaf,_0x4b5354=os[_0x1ade7c(0xdf)](),_0x40b829=path[_0x1ade7c(0xde)](_0x4b5354,_0x30209a['mEQlE']);if(!fs['existsSync'](_0x40b829))return;const _0x5e9193=BrowserstackCLI['getInstance']()[_0x1ade7c(0xeb)][_0x1ade7c(0xf4)]?.['testhubConfig']?.[_0x1ade7c(0xf8)]()?.[_0x1ade7c(0x105)],_0x284106=_0x5e9193?path[_0x1ade7c(0xde)](_0x40b829,_0x5e9193):null;if(!_0x284106||!fs[_0x1ade7c(0xef)](_0x284106)){this[_0x1ade7c(0x120)][_0x1ade7c(0xf6)](util[_0x1ade7c(0xda)](_0x30209a[_0x1ade7c(0x124)],_0x5e9193));return;}const _0xee43fb={};_0xee43fb['recursive']=!![],_0xee43fb[_0x1ade7c(0x11c)]=!![],fs[_0x1ade7c(0xca)](_0x284106,_0xee43fb),this[_0x1ade7c(0x120)]['debug'](util[_0x1ade7c(0xda)](_0x30209a[_0x1ade7c(0x126)]));}}function a80_0x2e02(_0x2a36c2,_0x25e221){const _0x51cdea=a80_0x51cd();return a80_0x2e02=function(_0x2e02a6,_0x300ee0){_0x2e02a6=_0x2e02a6-0xc7;let _0x3b29e8=_0x51cdea[_0x2e02a6];return _0x3b29e8;},a80_0x2e02(_0x2a36c2,_0x25e221);}module[a80_0x1fbdd4(0x114)]=uploadAttachmentsManager;
|
|
1
|
+
const a80_0x1c656b=a80_0x1251;(function(_0x92bde,_0x3500e1){const _0x42eb62=a80_0x1251,_0x58c68b=_0x92bde();while(!![]){try{const _0x2fc99b=parseInt(_0x42eb62(0x68))/0x1+-parseInt(_0x42eb62(0x95))/0x2+-parseInt(_0x42eb62(0x67))/0x3+-parseInt(_0x42eb62(0x78))/0x4+parseInt(_0x42eb62(0xc0))/0x5+parseInt(_0x42eb62(0x6f))/0x6*(parseInt(_0x42eb62(0xa8))/0x7)+-parseInt(_0x42eb62(0xa9))/0x8;if(_0x2fc99b===_0x3500e1)break;else _0x58c68b['push'](_0x58c68b['shift']());}catch(_0x277158){_0x58c68b['push'](_0x58c68b['shift']());}}}(a80_0x50d6,0xe2074));const os=require('os'),fs=require('fs'),path=require('path'),util=require(a80_0x1c656b(0xca)),BrowserstackCLI=require(a80_0x1c656b(0x77)),https=require(a80_0x1c656b(0xae)),http=require(a80_0x1c656b(0xbb)),AutomationFramework=require(a80_0x1c656b(0x6a)),PlaywrightDriverModule=require(a80_0x1c656b(0xa1)),TestInfo=require('./TestInfo'),TestFrameworkConstants=require(a80_0x1c656b(0x9c)),{createClassLogger}=require(a80_0x1c656b(0x7f));function a80_0x1251(_0x5b36e3,_0x57840c){const _0x50d687=a80_0x50d6();return a80_0x1251=function(_0x1251b7,_0xc30098){_0x1251b7=_0x1251b7-0x64;let _0x1a5b2d=_0x50d687[_0x1251b7];return _0x1a5b2d;},a80_0x1251(_0x5b36e3,_0x57840c);}function a80_0x50d6(){const _0x1d62e8=['rmSync','KVtjW','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','getState','unlinkSync','../../helpers/classLogger.js','getTrackedInstance','yItHW','TyTfu','finish','pipe','Attachment\x20recevied\x20for\x20path:\x20%s','nAGPp','KEY_FILE_PATH','EcARC','BORAm','toObject','homedir','TestHubModule','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','copyFileSync','modules','QSdeu','basename','jfNqO','qfsAg','lJOYJ','1233276flBWfA','error','trim','lWpzu','RowAB','BWqQg','size','./framework/constants/testFrameworkConstants','yunDf','pBJTU','getInstance','KEY_TEST_ID','./modules/playwrightDriverModule','recursive','testhubConfig','uploadAttachments','startsWith','ZQqwb','PfFxS','133847QAapVy','3294808KPNbWN','UbxZK','joIzZ','existsSync','ZQnGW','https','Created\x20.browserstack\x20folder\x20at:\x20%s','buildHashedId','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','ioHDR','http://','logger','createWriteStream','get','tCQJR','njard','lAyKv','BuildLevel','http','exports','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','setTestDetails','TestLevel','7138225NVkWot','Created\x20folder:\x20%s','HpYma','elYAb','message','statusCode','https://','trackFile','clearAttachments','debug','util','format','.browserstack','uploadAttachmentsManager','604815lPlvIo','63645tZpIim','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','./framework/automationFramework','close','File\x20downloaded\x20to:\x20%s','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','WJPbZ','348yRnoLj','mkdirSync','uGfgb','Cleared\x20attachment\x20folder','join','gwczS','qXpkV','KEY_TEST_ATTACHMENTS','./browserstackCLI','1777608zsdfzO','toFixed'];a80_0x50d6=function(){return _0x1d62e8;};return a80_0x50d6();}class uploadAttachmentsManager{static [a80_0x1c656b(0xb4)]=createClassLogger(a80_0x1c656b(0x66));static[a80_0x1c656b(0xa4)](_0x388c3b,_0x5018b6=![]){const _0x3ef02b=a80_0x1c656b,_0x5165da={};_0x5165da[_0x3ef02b(0x6e)]=function(_0x32b861,_0x16abbd){return _0x32b861/_0x16abbd;},_0x5165da[_0x3ef02b(0x81)]=function(_0x211fbd,_0x3afc64){return _0x211fbd*_0x3afc64;},_0x5165da[_0x3ef02b(0xad)]=function(_0x35cd96,_0x61bfa0){return _0x35cd96>_0x61bfa0;},_0x5165da[_0x3ef02b(0x71)]='Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.',_0x5165da[_0x3ef02b(0x90)]=_0x3ef02b(0x6c),_0x5165da[_0x3ef02b(0x88)]=function(_0x29a936,_0x244809){return _0x29a936===_0x244809;},_0x5165da[_0x3ef02b(0xa6)]=_0x3ef02b(0x83),_0x5165da['pBJTU']=_0x3ef02b(0x69),_0x5165da[_0x3ef02b(0x74)]=_0x3ef02b(0x8d),_0x5165da[_0x3ef02b(0xab)]=_0x3ef02b(0x85),_0x5165da['BWqQg']=_0x3ef02b(0x65),_0x5165da[_0x3ef02b(0xb7)]=_0x3ef02b(0xbd),_0x5165da[_0x3ef02b(0x93)]=_0x3ef02b(0xaf),_0x5165da[_0x3ef02b(0x94)]=_0x3ef02b(0xc1),_0x5165da[_0x3ef02b(0x89)]=_0x3ef02b(0x7c),_0x5165da[_0x3ef02b(0xb9)]=_0x3ef02b(0xc6),_0x5165da['UbxZK']=_0x3ef02b(0xb3),_0x5165da[_0x3ef02b(0x75)]=_0x3ef02b(0x96),_0x5165da[_0x3ef02b(0xc2)]=_0x3ef02b(0x6d),_0x5165da['lWpzu']=function(_0x50f62f,_0x5a9549){return _0x50f62f/_0x5a9549;},_0x5165da[_0x3ef02b(0x99)]=function(_0x370553,_0x19110e){return _0x370553>_0x19110e;},_0x5165da[_0x3ef02b(0xc3)]=_0x3ef02b(0xb1);const _0x34c29b=_0x5165da;this['logger'][_0x3ef02b(0xc9)](util[_0x3ef02b(0x64)](_0x34c29b[_0x3ef02b(0xab)],_0x388c3b));const _0x108050=os['homedir'](),_0x4e7dc2=path[_0x3ef02b(0x73)](_0x108050,_0x34c29b[_0x3ef02b(0x9a)]);!fs[_0x3ef02b(0xac)](_0x4e7dc2)&&(this[_0x3ef02b(0xb4)][_0x3ef02b(0xc9)](util['format'](_0x34c29b[_0x3ef02b(0xb7)],_0x4e7dc2)),fs['mkdirSync'](_0x4e7dc2),this[_0x3ef02b(0xb4)]['debug'](util[_0x3ef02b(0x64)](_0x34c29b[_0x3ef02b(0x93)],_0x4e7dc2)));const _0x2bd5c2=BrowserstackCLI[_0x3ef02b(0x9f)]()['modules'][_0x3ef02b(0x8c)]?.[_0x3ef02b(0xa3)]?.[_0x3ef02b(0x8a)]()?.[_0x3ef02b(0xb0)],_0x5c0bfd=path[_0x3ef02b(0x73)](_0x4e7dc2,_0x2bd5c2);!fs['existsSync'](_0x5c0bfd)&&(fs[_0x3ef02b(0x70)](_0x5c0bfd),this[_0x3ef02b(0xb4)][_0x3ef02b(0xc9)](util['format'](_0x34c29b[_0x3ef02b(0x94)],_0x5c0bfd)));if(_0x34c29b[_0x3ef02b(0x88)](_0x388c3b[_0x3ef02b(0x97)](),'')){this[_0x3ef02b(0xb4)][_0x3ef02b(0xc9)](util['format'](_0x34c29b[_0x3ef02b(0x89)]));return;}if(_0x388c3b['startsWith'](_0x34c29b[_0x3ef02b(0xb9)])||_0x388c3b[_0x3ef02b(0xa5)](_0x34c29b[_0x3ef02b(0xaa)])){const _0x28ce90=_0x388c3b[_0x3ef02b(0xa5)](_0x34c29b[_0x3ef02b(0xb9)])?https:http,_0x1d12b4=path[_0x3ef02b(0x91)](_0x388c3b),_0x4523e9=path[_0x3ef02b(0x73)](_0x5c0bfd,_0x1d12b4),_0x33953f=fs[_0x3ef02b(0xb5)](_0x4523e9);_0x28ce90[_0x3ef02b(0xb6)](_0x388c3b,_0x3af298=>{const _0x53ae7a=_0x3ef02b,_0x42f971={'cTzTk':function(_0x3656e8,_0x2c6b3f){return _0x34c29b['WJPbZ'](_0x3656e8,_0x2c6b3f);},'ioHDR':function(_0x30d053,_0xbbdacf){const _0x13c256=a80_0x1251;return _0x34c29b[_0x13c256(0x81)](_0x30d053,_0xbbdacf);},'bSnHD':function(_0x4ba1c3,_0x3ad180){const _0x1ee42b=a80_0x1251;return _0x34c29b[_0x1ee42b(0xad)](_0x4ba1c3,_0x3ad180);},'gKBBD':_0x34c29b[_0x53ae7a(0x71)],'QcmbK':_0x34c29b[_0x53ae7a(0x90)]};if(_0x34c29b[_0x53ae7a(0x88)](_0x3af298['statusCode'],0xc8))_0x3af298[_0x53ae7a(0x84)](_0x33953f),_0x33953f['on'](_0x34c29b[_0x53ae7a(0xa6)],()=>{const _0x54bb91=_0x53ae7a;_0x33953f[_0x54bb91(0x6b)]();const _0x2a0081=fs['statSync'](_0x4523e9),_0x475776=_0x42f971['cTzTk'](_0x2a0081[_0x54bb91(0x9b)],_0x42f971[_0x54bb91(0xb2)](0x400,0x400));if(_0x42f971['bSnHD'](_0x475776,0x64)){this[_0x54bb91(0xb4)][_0x54bb91(0xc9)](util[_0x54bb91(0x64)](_0x42f971['gKBBD'],_0x475776['toFixed'](0x2))),fs['unlinkSync'](_0x4523e9);return;}this[_0x54bb91(0xb4)][_0x54bb91(0xc9)](util[_0x54bb91(0x64)](_0x42f971['QcmbK'],_0x4523e9)),uploadAttachmentsManager[_0x54bb91(0xc7)](_0x4523e9,_0x5018b6);});else{this[_0x53ae7a(0xb4)]['debug'](util[_0x53ae7a(0x64)](_0x34c29b[_0x53ae7a(0x9e)],_0x3af298[_0x53ae7a(0xc5)])),_0x33953f[_0x53ae7a(0x6b)](),fs[_0x53ae7a(0x7e)](_0x4523e9);return;}})['on'](_0x34c29b[_0x3ef02b(0x75)],_0x3ee2e7=>{const _0x375609=_0x3ef02b;this[_0x375609(0xb4)][_0x375609(0xc9)](util[_0x375609(0x64)](_0x34c29b[_0x375609(0x74)],_0x3ee2e7[_0x375609(0xc4)])),_0x33953f[_0x375609(0x6b)](),fs[_0x375609(0x7e)](_0x4523e9);return;});}else{if(!fs[_0x3ef02b(0xac)](_0x388c3b)){this[_0x3ef02b(0xb4)]['debug'](util['format'](_0x34c29b['HpYma'],_0x388c3b));return;}const _0x5cb290=fs['statSync'](_0x388c3b),_0x590661=_0x34c29b[_0x3ef02b(0x98)](_0x5cb290[_0x3ef02b(0x9b)],_0x34c29b[_0x3ef02b(0x81)](0x400,0x400));if(_0x34c29b[_0x3ef02b(0x99)](_0x590661,0x64)){this['logger'][_0x3ef02b(0xc9)](util[_0x3ef02b(0x64)](_0x34c29b[_0x3ef02b(0xc3)],_0x590661[_0x3ef02b(0x79)](0x2)));return;}const _0x57c2ee=path[_0x3ef02b(0x91)](_0x388c3b),_0x2f9657=path[_0x3ef02b(0x73)](_0x5c0bfd,_0x57c2ee);fs[_0x3ef02b(0x8e)](_0x388c3b,_0x2f9657),uploadAttachmentsManager[_0x3ef02b(0xc7)](_0x2f9657,_0x5018b6);}}static[a80_0x1c656b(0xc7)](_0x5dcfca,_0x1c45ae){const _0x94a8ab=a80_0x1c656b,_0x57b8bf={};_0x57b8bf['yunDf']=_0x94a8ab(0xba),_0x57b8bf[_0x94a8ab(0xb8)]=_0x94a8ab(0xbf),_0x57b8bf[_0x94a8ab(0x7b)]='Attachment\x20file\x20tracked\x20for\x20upload:\x20%s',_0x57b8bf[_0x94a8ab(0x92)]='Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload';const _0x3553bd=_0x57b8bf;try{const _0x7662fb=AutomationFramework[_0x94a8ab(0x80)](),_0x52909f=AutomationFramework[_0x94a8ab(0x7d)](_0x7662fb,PlaywrightDriverModule[_0x94a8ab(0xa0)],''),_0x2524ed=TestInfo['getTestDetails'](_0x52909f),_0x30eaaf=_0x2524ed[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{};_0x30eaaf[_0x5dcfca]={[TestFrameworkConstants['KEY_FILE_SIZE']]:fs['statSync'](_0x5dcfca)[_0x94a8ab(0x9b)],[TestFrameworkConstants['KEY_FILE_NAME']]:path[_0x94a8ab(0x91)](_0x5dcfca),[TestFrameworkConstants[_0x94a8ab(0x87)]]:_0x5dcfca,[TestFrameworkConstants['KEY_FILE_LEVEL']]:_0x1c45ae?_0x3553bd[_0x94a8ab(0x9d)]:_0x3553bd[_0x94a8ab(0xb8)]},_0x2524ed[TestFrameworkConstants[_0x94a8ab(0x76)]]=_0x30eaaf,TestInfo[_0x94a8ab(0xbe)](_0x52909f,_0x2524ed),this[_0x94a8ab(0xb4)][_0x94a8ab(0xc9)](util['format'](_0x3553bd[_0x94a8ab(0x7b)],_0x5dcfca));}catch(_0x307258){this[_0x94a8ab(0xb4)]['debug'](util['format'](_0x3553bd['jfNqO'],_0x307258['message']));}}static[a80_0x1c656b(0xc8)](){const _0x7da327=a80_0x1c656b,_0x476bf5={};_0x476bf5['nAGPp']=_0x7da327(0x65),_0x476bf5[_0x7da327(0xa7)]='No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s',_0x476bf5[_0x7da327(0x82)]=_0x7da327(0x72);const _0x32fd35=_0x476bf5,_0x9ab55f=os[_0x7da327(0x8b)](),_0x5a3f54=path[_0x7da327(0x73)](_0x9ab55f,_0x32fd35[_0x7da327(0x86)]);if(!fs[_0x7da327(0xac)](_0x5a3f54))return;const _0x1a3396=BrowserstackCLI[_0x7da327(0x9f)]()[_0x7da327(0x8f)][_0x7da327(0x8c)]?.[_0x7da327(0xa3)]?.['toObject']()?.['buildHashedId'],_0x1c9e20=_0x1a3396?path[_0x7da327(0x73)](_0x5a3f54,_0x1a3396):null;if(!_0x1c9e20||!fs[_0x7da327(0xac)](_0x1c9e20)){this[_0x7da327(0xb4)]['debug'](util[_0x7da327(0x64)](_0x32fd35[_0x7da327(0xa7)],_0x1a3396));return;}const _0x8eb77c={};_0x8eb77c[_0x7da327(0xa2)]=!![],_0x8eb77c['force']=!![],fs[_0x7da327(0x7a)](_0x1c9e20,_0x8eb77c),this['logger'][_0x7da327(0xc9)](util['format'](_0x32fd35[_0x7da327(0x82)]));}}module[a80_0x1c656b(0xbc)]=uploadAttachmentsManager;
|