browserstack-node-sdk 1.52.0 → 1.52.1

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.
Files changed (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +4 -3
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- 'use strict';const a69_0x709d1b=a69_0x73de;(function(_0x167bd7,_0x237015){const _0x4ca2c5=a69_0x73de,_0x1225f6=_0x167bd7();while(!![]){try{const _0x339dc4=parseInt(_0x4ca2c5(0x1f7))/0x1*(parseInt(_0x4ca2c5(0x21e))/0x2)+parseInt(_0x4ca2c5(0x1fb))/0x3*(-parseInt(_0x4ca2c5(0x1ee))/0x4)+-parseInt(_0x4ca2c5(0x229))/0x5*(-parseInt(_0x4ca2c5(0x226))/0x6)+parseInt(_0x4ca2c5(0x1f1))/0x7*(parseInt(_0x4ca2c5(0x1e5))/0x8)+-parseInt(_0x4ca2c5(0x1f2))/0x9+-parseInt(_0x4ca2c5(0x1e7))/0xa+-parseInt(_0x4ca2c5(0x1fa))/0xb*(-parseInt(_0x4ca2c5(0x1ea))/0xc);if(_0x339dc4===_0x237015)break;else _0x1225f6['push'](_0x1225f6['shift']());}catch(_0x3fb3ef){_0x1225f6['push'](_0x1225f6['shift']());}}}(a69_0x145f,0xa57af));const BrowserstackCLI=require(a69_0x709d1b(0x21f)),helper=require(a69_0x709d1b(0x1f3)),AutomationFramework=require(a69_0x709d1b(0x207)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a69_0x709d1b(0x20b)),TestInfo=require('./TestInfo'),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a69_0x709d1b(0x216));class CustomTagManager{static ['buildLevelTags']={};static [a69_0x709d1b(0x20f)]={};static['setCustomTags'](_0x115fbe,_0x2721c7,_0x24bd54=![]){const _0xf2af9f=a69_0x709d1b,_0x2fd1b0={'lyFsM':function(_0x46be7c,_0x2dd27e){return _0x46be7c!==_0x2dd27e;},'QcPNl':_0xf2af9f(0x219),'rgodz':_0xf2af9f(0x20a),'RTeGW':function(_0x9d22e7,_0x497aa9){return _0x9d22e7!==_0x497aa9;},'iJwSN':_0xf2af9f(0x214),'BtMJC':function(_0x78a2c4,_0x1e8b23){return _0x78a2c4===_0x1e8b23;},'PCLPu':_0xf2af9f(0x1f6),'InESd':function(_0x415c38,_0x34a437){return _0x415c38===_0x34a437;},'HmgcH':_0xf2af9f(0x1ec),'InaRm':_0xf2af9f(0x1ff),'JmaXA':':jest-','LWsbU':function(_0x4e9be6,_0x404100){return _0x4e9be6(_0x404100);},'qNaHi':'./cliUtils','cWsPg':'jest','wMlqn':_0xf2af9f(0x1f4),'VSvxi':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','slCFf':function(_0x52f388,_0x16aa44){return _0x52f388(_0x16aa44);},'lCvBa':_0xf2af9f(0x1e8),'lxIGC':function(_0x4919e3,_0x137576){return _0x4919e3(_0x137576);},'rZZrQ':_0xf2af9f(0x1e3),'IGQol':_0xf2af9f(0x1f0)};if(_0x2fd1b0[_0xf2af9f(0x1e1)](typeof _0x115fbe,_0x2fd1b0[_0xf2af9f(0x228)]))throw new Error(_0x2fd1b0['rgodz']);if(_0x2fd1b0['RTeGW'](typeof _0x2721c7,_0x2fd1b0[_0xf2af9f(0x228)]))throw new Error(_0x2fd1b0[_0xf2af9f(0x1d9)]);if(_0x2fd1b0['BtMJC'](_0x115fbe[_0xf2af9f(0x1e0)](),''))throw new Error(_0x2fd1b0[_0xf2af9f(0x1ef)]);if(_0x2fd1b0['InESd'](_0x2721c7['trim'](),''))throw new Error(_0x2fd1b0[_0xf2af9f(0x1fc)]);const _0x41b921=helper[_0xf2af9f(0x1df)](_0x2721c7);if(_0x24bd54){const _0x3d05d1=BrowserstackCLI[_0xf2af9f(0x221)]()['modules'][TestHubModule['MODULE_NAME']];if(_0x3d05d1){const _0x2bcb6a=_0x3d05d1?.[_0xf2af9f(0x225)]?.['toObject']()?.[_0xf2af9f(0x206)];TestInfo[_0xf2af9f(0x202)](_0x2bcb6a);const _0x2ecbf2=TestInfo[_0xf2af9f(0x20c)](_0x2bcb6a),_0x56364e=_0x2ecbf2[TestFrameworkConstants[_0xf2af9f(0x217)]]||{};if(!_0x56364e[_0x115fbe]){const _0x516279={};_0x516279[_0xf2af9f(0x1e2)]=_0x2fd1b0[_0xf2af9f(0x210)],_0x516279[_0xf2af9f(0x203)]=[..._0x41b921],_0x56364e[_0x115fbe]=_0x516279;}else _0x56364e[_0x115fbe][_0xf2af9f(0x203)]=[..._0x41b921];_0x2ecbf2[TestFrameworkConstants[_0xf2af9f(0x217)]]=_0x56364e,TestInfo[_0xf2af9f(0x21d)](_0x2bcb6a,_0x2ecbf2),!this[_0xf2af9f(0x1eb)][_0x2bcb6a]&&(this[_0xf2af9f(0x1eb)][_0x2bcb6a]={}),this['buildLevelTags'][_0x2bcb6a][_0x115fbe]=[..._0x41b921];}}else{let _0x8e2ba8;const _0x3ef3b3=global[_0xf2af9f(0x1f8)];let _0x5aa4d6=![];if(_0x3ef3b3&&_0x3ef3b3[_0xf2af9f(0x1d8)](_0x2fd1b0[_0xf2af9f(0x20d)]))_0x5aa4d6=!![],_0x8e2ba8=_0x3ef3b3;else try{const _0x354a1b=_0x2fd1b0[_0xf2af9f(0x220)](require,_0x2fd1b0[_0xf2af9f(0x224)]);if(BrowserstackCLI[_0xf2af9f(0x221)]()[_0xf2af9f(0x21b)]()){const _0x2f8789=_0x354a1b['getTestFrameworkDetail']();if(_0x2fd1b0[_0xf2af9f(0x227)](_0x2f8789?.[_0xf2af9f(0x209)]?.[_0xf2af9f(0x218)](),_0x2fd1b0[_0xf2af9f(0x222)])){const _0x1aefa9=AutomationFramework[_0xf2af9f(0x1db)]();_0x8e2ba8=AutomationFramework[_0xf2af9f(0x1dd)](_0x1aefa9,PlaywrightDriverModule[_0xf2af9f(0x200)],''),_0x8e2ba8&&_0x8e2ba8[_0xf2af9f(0x1d8)](_0x2fd1b0[_0xf2af9f(0x20d)])&&(_0x5aa4d6=!![]);}}}catch(_0x110e5c){logger[_0xf2af9f(0x212)](_0xf2af9f(0x22a)+_0x110e5c);}if(_0x5aa4d6){if(!_0x8e2ba8)throw new Error(_0x2fd1b0['wMlqn']);const _0x2504a7=BrowserstackCLI['getInstance']()[_0xf2af9f(0x1e6)]();if(!_0x2504a7)throw new Error(_0x2fd1b0[_0xf2af9f(0x201)]);const _0x3b5567=_0x2fd1b0['slCFf'](require,_0x2fd1b0[_0xf2af9f(0x21a)]),_0x21668e=_0x2fd1b0[_0xf2af9f(0x211)](require,_0x2fd1b0[_0xf2af9f(0x1f9)]),_0x296b90=_0x2504a7[_0xf2af9f(0x205)](_0x3b5567[_0xf2af9f(0x1e4)],_0x21668e[_0xf2af9f(0x208)]);if(!_0x296b90)throw new Error(_0x2fd1b0['IGQol']);const _0x5b8511=_0x296b90[_0xf2af9f(0x215)]()[_0xf2af9f(0x1fd)](_0x8e2ba8)||{},_0x25158f=_0x5b8511[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0xf2af9f(0x212)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x8e2ba8+_0xf2af9f(0x1e9)+_0x115fbe+_0xf2af9f(0x1da)+JSON['stringify'](_0x41b921)+_0xf2af9f(0x1dc)+JSON[_0xf2af9f(0x1ed)](_0x25158f));if(!_0x25158f[_0x115fbe]){const _0x1593a2={};_0x1593a2[_0xf2af9f(0x1e2)]=_0x2fd1b0[_0xf2af9f(0x210)],_0x1593a2['values']=[..._0x41b921],_0x25158f[_0x115fbe]=_0x1593a2,logger[_0xf2af9f(0x212)](_0xf2af9f(0x1f5)+_0x115fbe+_0xf2af9f(0x204)+JSON[_0xf2af9f(0x1ed)](_0x41b921));}else _0x25158f[_0x115fbe][_0xf2af9f(0x203)]=[..._0x41b921],logger[_0xf2af9f(0x212)]('[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key='+_0x115fbe+_0xf2af9f(0x213)+JSON[_0xf2af9f(0x1ed)](_0x41b921));const _0x3ad3cb={[TestFrameworkConstants[_0xf2af9f(0x217)]]:_0x25158f},_0x10659d={};_0x10659d[_0x8e2ba8]=_0x3ad3cb,_0x296b90['addMultipleEntries'](_0x10659d),logger[_0xf2af9f(0x212)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x8e2ba8+',\x20finalTags='+JSON[_0xf2af9f(0x1ed)](_0x25158f)),!this['testLevelTags'][_0x8e2ba8]&&(this[_0xf2af9f(0x20f)][_0x8e2ba8]={}),this[_0xf2af9f(0x20f)][_0x8e2ba8][_0x115fbe]=[..._0x41b921];}else{const _0x11002c=global[_0xf2af9f(0x223)]?.['currentTest']?.[_0xf2af9f(0x1fe)];if(!_0x11002c){const _0x229908=AutomationFramework[_0xf2af9f(0x1db)]();_0x8e2ba8=AutomationFramework['getState'](_0x229908,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0x8e2ba8=TestInfo[_0xf2af9f(0x1de)](_0x11002c,_0x11002c['retry']);const _0x917f2b=TestInfo[_0xf2af9f(0x20c)](_0x8e2ba8),_0x114a20=_0x917f2b[TestFrameworkConstants[_0xf2af9f(0x217)]]||{};if(!_0x114a20[_0x115fbe]){const _0x5359ec={};_0x5359ec['field_type']=_0x2fd1b0['InaRm'],_0x5359ec[_0xf2af9f(0x203)]=[..._0x41b921],_0x114a20[_0x115fbe]=_0x5359ec;}else _0x114a20[_0x115fbe][_0xf2af9f(0x203)]=[..._0x41b921];_0x917f2b[TestFrameworkConstants[_0xf2af9f(0x217)]]=_0x114a20,TestInfo[_0xf2af9f(0x21d)](_0x8e2ba8,_0x917f2b),!this[_0xf2af9f(0x20f)][_0x8e2ba8]&&(this[_0xf2af9f(0x20f)][_0x8e2ba8]={}),this[_0xf2af9f(0x20f)][_0x8e2ba8][_0x115fbe]=[..._0x41b921];}}}static['getBuildLevelTags'](){const _0x4e99ba=a69_0x709d1b,_0x3f0ff9={...this[_0x4e99ba(0x1eb)]};return _0x3f0ff9;}static[a69_0x709d1b(0x20e)](){const _0x6df836=a69_0x709d1b,_0xce268a={...this[_0x6df836(0x20f)]};return _0xce268a;}static[a69_0x709d1b(0x21c)](){const _0xc407de=a69_0x709d1b;this['buildLevelTags']={},this[_0xc407de(0x20f)]={};}}function a69_0x73de(_0x1d8fa6,_0x1c1bbe){const _0x145f14=a69_0x145f();return a69_0x73de=function(_0x73dec,_0x756675){_0x73dec=_0x73dec-0x1d8;let _0x21d214=_0x145f14[_0x73dec];return _0x21d214;},a69_0x73de(_0x1d8fa6,_0x1c1bbe);}function a69_0x145f(){const _0x4deb6d=['304OkCoEB','PCLPu','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','5102867oxrOSw','3507876CViWLn','../../helpers/helper','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','Custom\x20tag\x20key\x20cannot\x20be\x20empty','2xbKeyG','__jestCurrentTestIdentifier','rZZrQ','11RKjxbK','31497TWaLvd','HmgcH','get','testInfo','multi_dropdown','KEY_TEST_ID','VSvxi','getTestUUID','values','\x20with\x20values=','resolveInstance','buildHashedId','./framework/automationFramework','POST','name','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','./modules/playwrightDriverModule','getTestDetails','JmaXA','getTestLevelTags','testLevelTags','InaRm','lxIGC','debug','\x20with\x20new\x20values=','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','getAllData','CustomTagManager','KEY_CUSTOM_TAGS','toLowerCase','string','lCvBa','isRunning','clearTags','setTestDetails','867994bKOPUi','./browserstackCLI','LWsbU','getInstance','cWsPg','__workerDetails','qNaHi','testhubConfig','42ldffpo','BtMJC','QcPNl','160330gkLPDk','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','includes','iJwSN',',\x20values=','getTrackedInstance',',\x20existingTags=','getState','getTestIdentifierFromTestInfo','parseCommaSeparatedValues','trim','lyFsM','field_type','./state/hookState','TEST','8DWLgkK','getTestFramework','8248730LlauTh','./state/testFrameworkState',',\x20key=','10427172idBnxv','buildLevelTags','Custom\x20tag\x20value\x20cannot\x20be\x20empty','stringify'];a69_0x145f=function(){return _0x4deb6d;};return a69_0x145f();}module['exports']=CustomTagManager;
1
+ 'use strict';const a69_0x5e4bdc=a69_0x49ef;(function(_0x56449a,_0x4ab5e6){const _0x5b0770=a69_0x49ef,_0x19b50f=_0x56449a();while(!![]){try{const _0x26b4f9=parseInt(_0x5b0770(0x165))/0x1+-parseInt(_0x5b0770(0x190))/0x2+-parseInt(_0x5b0770(0x170))/0x3*(parseInt(_0x5b0770(0x18d))/0x4)+-parseInt(_0x5b0770(0x15f))/0x5+-parseInt(_0x5b0770(0x1a7))/0x6+parseInt(_0x5b0770(0x179))/0x7+-parseInt(_0x5b0770(0x197))/0x8*(-parseInt(_0x5b0770(0x186))/0x9);if(_0x26b4f9===_0x4ab5e6)break;else _0x19b50f['push'](_0x19b50f['shift']());}catch(_0x141ccb){_0x19b50f['push'](_0x19b50f['shift']());}}}(a69_0x3c56,0xa92de));function a69_0x49ef(_0x43ed27,_0x3e0d76){const _0x3c5664=a69_0x3c56();return a69_0x49ef=function(_0x49ef6f,_0x2dff7f){_0x49ef6f=_0x49ef6f-0x157;let _0x8e608a=_0x3c5664[_0x49ef6f];return _0x8e608a;},a69_0x49ef(_0x43ed27,_0x3e0d76);}const BrowserstackCLI=require(a69_0x5e4bdc(0x15a)),helper=require(a69_0x5e4bdc(0x167)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a69_0x5e4bdc(0x187)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a69_0x5e4bdc(0x168)),TestHubModule=require(a69_0x5e4bdc(0x15b)),{createClassLogger}=require(a69_0x5e4bdc(0x176)),logger=createClassLogger('CustomTagManager');function a69_0x3c56(){const _0x40f2ee=[',\x20existingTags=','7477736PLmbmS','mnHrr','\x20with\x20new\x20values=','xpBWS','\x20with\x20values=','lpkvw','stringify','TqaOI',',\x20values=','multi_dropdown','get','getTestUUID','TEST','18621hOxVUz','./framework/constants/testFrameworkConstants','jest','getTestFrameworkDetail','includes','QzSHx','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','1740MxvJYn','Custom\x20tag\x20value\x20cannot\x20be\x20empty','getState','1092450DOdkpF','OHBtF','AgcVG','setTestDetails','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','./state/testFrameworkState','retry','2024toLSxi','isRunning','addMultipleEntries','KEY_CUSTOM_TAGS','testInfo','mkoZg','./cliUtils','toLowerCase','values','./state/hookState','getAllData','POST','tFVUo','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','jaNoj','exports','2525814ekTqJt',',\x20finalTags=','MODULE_NAME','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','toObject','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=','clearTags',',\x20key=','./browserstackCLI','./modules/testhubModule','trim','testLevelTags','__workerDetails','3131650OiBIoY','KJRqp','testhubConfig','string','getTestDetails','getBuildLevelTags','1083667aSlYpl','rIOtW','../../helpers/helper','./TestInfo','setCustomTags','buildLevelTags','knmMP',':jest-','debug','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','getTrackedInstance','2682AEhNuH','resolveInstance','KEY_TEST_ID','getInstance','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','ZYvsZ','../../helpers/classLogger','vRLOX'];a69_0x3c56=function(){return _0x40f2ee;};return a69_0x3c56();}class CustomTagManager{static [a69_0x5e4bdc(0x16a)]={};static [a69_0x5e4bdc(0x15d)]={};static[a69_0x5e4bdc(0x169)](_0x32af5b,_0x5c3dd9,_0x3a894c=![]){const _0x5f1990=a69_0x5e4bdc,_0x343319={'ZYvsZ':function(_0x4742f5,_0x5792ad){return _0x4742f5!==_0x5792ad;},'rIOtW':_0x5f1990(0x162),'xpBWS':'Custom\x20tag\x20key\x20must\x20be\x20a\x20string','lpkvw':function(_0x47bce9,_0x111d19){return _0x47bce9!==_0x111d19;},'PFSBK':_0x5f1990(0x174),'AgcVG':function(_0x4eb634,_0x4aa699){return _0x4eb634===_0x4aa699;},'hSXee':'Custom\x20tag\x20key\x20cannot\x20be\x20empty','KJRqp':function(_0x3b0472,_0xceddd9){return _0x3b0472===_0xceddd9;},'JTooX':_0x5f1990(0x18e),'QzSHx':_0x5f1990(0x182),'VmPnU':_0x5f1990(0x16c),'GJDzo':function(_0x22ff7f,_0x4264f4){return _0x22ff7f(_0x4264f4);},'TqaOI':_0x5f1990(0x19d),'knmMP':_0x5f1990(0x188),'mnHrr':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','jaNoj':_0x5f1990(0x1a4),'tFVUo':function(_0x3955f9,_0xce1679){return _0x3955f9(_0xce1679);},'mkoZg':_0x5f1990(0x195),'qRVVo':function(_0x336407,_0x183e4c){return _0x336407(_0x183e4c);},'OHBtF':_0x5f1990(0x1a0),'vRLOX':_0x5f1990(0x16e)};if(_0x343319[_0x5f1990(0x175)](typeof _0x32af5b,_0x343319[_0x5f1990(0x166)]))throw new Error(_0x343319[_0x5f1990(0x17c)]);if(_0x343319[_0x5f1990(0x17e)](typeof _0x5c3dd9,_0x343319['rIOtW']))throw new Error(_0x343319['PFSBK']);if(_0x343319[_0x5f1990(0x192)](_0x32af5b[_0x5f1990(0x15c)](),''))throw new Error(_0x343319['hSXee']);if(_0x343319[_0x5f1990(0x160)](_0x5c3dd9[_0x5f1990(0x15c)](),''))throw new Error(_0x343319['JTooX']);const _0x15f76d=helper['parseCommaSeparatedValues'](_0x5c3dd9);if(_0x3a894c){const _0x1a8d7b=BrowserstackCLI[_0x5f1990(0x173)]()['modules'][TestHubModule[_0x5f1990(0x1a9)]];if(_0x1a8d7b){const _0x2c59fb=_0x1a8d7b?.[_0x5f1990(0x161)]?.[_0x5f1990(0x1ab)]()?.['buildHashedId'];TestInfo[_0x5f1990(0x184)](_0x2c59fb);const _0x270d35=TestInfo[_0x5f1990(0x163)](_0x2c59fb),_0x16ee56=_0x270d35[TestFrameworkConstants[_0x5f1990(0x19a)]]||{};if(!_0x16ee56[_0x32af5b]){const _0x531dd3={};_0x531dd3['field_type']=_0x343319[_0x5f1990(0x18b)],_0x531dd3['values']=[..._0x15f76d],_0x16ee56[_0x32af5b]=_0x531dd3;}else _0x16ee56[_0x32af5b]['values']=[..._0x15f76d];_0x270d35[TestFrameworkConstants[_0x5f1990(0x19a)]]=_0x16ee56,TestInfo[_0x5f1990(0x193)](_0x2c59fb,_0x270d35),!this[_0x5f1990(0x16a)][_0x2c59fb]&&(this[_0x5f1990(0x16a)][_0x2c59fb]={}),this[_0x5f1990(0x16a)][_0x2c59fb][_0x32af5b]=[..._0x15f76d];}}else{let _0x1c480a;const _0x3ae167=global['__jestCurrentTestIdentifier'];let _0xf27840=![];if(_0x3ae167&&_0x3ae167[_0x5f1990(0x18a)](_0x343319['VmPnU']))_0xf27840=!![],_0x1c480a=_0x3ae167;else try{const _0x4b460d=_0x343319['GJDzo'](require,_0x343319[_0x5f1990(0x180)]);if(BrowserstackCLI[_0x5f1990(0x173)]()[_0x5f1990(0x198)]()){const _0x53615f=_0x4b460d[_0x5f1990(0x189)]();if(_0x343319['KJRqp'](_0x53615f?.['name']?.[_0x5f1990(0x19e)](),_0x343319[_0x5f1990(0x16b)])){const _0x3ae7e7=AutomationFramework[_0x5f1990(0x16f)]();_0x1c480a=AutomationFramework[_0x5f1990(0x18f)](_0x3ae7e7,PlaywrightDriverModule[_0x5f1990(0x172)],''),_0x1c480a&&_0x1c480a['includes'](_0x343319['VmPnU'])&&(_0xf27840=!![]);}}}catch(_0xa44356){logger['debug'](_0x5f1990(0x194)+_0xa44356);}if(_0xf27840){if(!_0x1c480a)throw new Error(_0x343319[_0x5f1990(0x17a)]);const _0x56ef17=BrowserstackCLI[_0x5f1990(0x173)]()['getTestFramework']();if(!_0x56ef17)throw new Error(_0x343319[_0x5f1990(0x1a5)]);const _0x44178c=_0x343319[_0x5f1990(0x1a3)](require,_0x343319[_0x5f1990(0x19c)]),_0x8d2bdd=_0x343319['qRVVo'](require,_0x343319[_0x5f1990(0x191)]),_0x217aca=_0x56ef17[_0x5f1990(0x171)](_0x44178c[_0x5f1990(0x185)],_0x8d2bdd[_0x5f1990(0x1a2)]);if(!_0x217aca)throw new Error(_0x343319[_0x5f1990(0x177)]);const _0x997068=_0x217aca[_0x5f1990(0x1a1)]()[_0x5f1990(0x183)](_0x1c480a)||{},_0x474a2b=_0x997068[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x5f1990(0x16d)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x1c480a+_0x5f1990(0x159)+_0x32af5b+_0x5f1990(0x181)+JSON[_0x5f1990(0x17f)](_0x15f76d)+_0x5f1990(0x178)+JSON['stringify'](_0x474a2b));if(!_0x474a2b[_0x32af5b]){const _0x3cb787={};_0x3cb787['field_type']=_0x343319[_0x5f1990(0x18b)],_0x3cb787[_0x5f1990(0x19f)]=[..._0x15f76d],_0x474a2b[_0x32af5b]=_0x3cb787,logger[_0x5f1990(0x16d)](_0x5f1990(0x18c)+_0x32af5b+_0x5f1990(0x17d)+JSON[_0x5f1990(0x17f)](_0x15f76d));}else _0x474a2b[_0x32af5b][_0x5f1990(0x19f)]=[..._0x15f76d],logger[_0x5f1990(0x16d)](_0x5f1990(0x157)+_0x32af5b+_0x5f1990(0x17b)+JSON[_0x5f1990(0x17f)](_0x15f76d));const _0x3f63b8={[TestFrameworkConstants[_0x5f1990(0x19a)]]:_0x474a2b},_0x470629={};_0x470629[_0x1c480a]=_0x3f63b8,_0x217aca[_0x5f1990(0x199)](_0x470629),logger[_0x5f1990(0x16d)](_0x5f1990(0x1aa)+_0x1c480a+_0x5f1990(0x1a8)+JSON[_0x5f1990(0x17f)](_0x474a2b)),!this[_0x5f1990(0x15d)][_0x1c480a]&&(this['testLevelTags'][_0x1c480a]={}),this[_0x5f1990(0x15d)][_0x1c480a][_0x32af5b]=[..._0x15f76d];}else{const _0x3ac110=global[_0x5f1990(0x15e)]?.['currentTest']?.[_0x5f1990(0x19b)];if(!_0x3ac110){const _0x46fab2=AutomationFramework[_0x5f1990(0x16f)]();_0x1c480a=AutomationFramework[_0x5f1990(0x18f)](_0x46fab2,PlaywrightDriverModule[_0x5f1990(0x172)],'');}else _0x1c480a=TestInfo['getTestIdentifierFromTestInfo'](_0x3ac110,_0x3ac110[_0x5f1990(0x196)]);const _0x186e9a=TestInfo['getTestDetails'](_0x1c480a),_0x1eb923=_0x186e9a[TestFrameworkConstants[_0x5f1990(0x19a)]]||{};if(!_0x1eb923[_0x32af5b]){const _0x2bf94f={};_0x2bf94f['field_type']=_0x343319[_0x5f1990(0x18b)],_0x2bf94f[_0x5f1990(0x19f)]=[..._0x15f76d],_0x1eb923[_0x32af5b]=_0x2bf94f;}else _0x1eb923[_0x32af5b][_0x5f1990(0x19f)]=[..._0x15f76d];_0x186e9a[TestFrameworkConstants[_0x5f1990(0x19a)]]=_0x1eb923,TestInfo[_0x5f1990(0x193)](_0x1c480a,_0x186e9a),!this[_0x5f1990(0x15d)][_0x1c480a]&&(this['testLevelTags'][_0x1c480a]={}),this[_0x5f1990(0x15d)][_0x1c480a][_0x32af5b]=[..._0x15f76d];}}}static[a69_0x5e4bdc(0x164)](){const _0x51e8d4={...this['buildLevelTags']};return _0x51e8d4;}static['getTestLevelTags'](){const _0x2a6a91=a69_0x5e4bdc,_0x4cb1eb={...this[_0x2a6a91(0x15d)]};return _0x4cb1eb;}static[a69_0x5e4bdc(0x158)](){const _0x10ef4b=a69_0x5e4bdc;this[_0x10ef4b(0x16a)]={},this[_0x10ef4b(0x15d)]={};}}module[a69_0x5e4bdc(0x1a6)]=CustomTagManager;
@@ -1 +1 @@
1
- function a70_0x1758(_0x93b52f,_0x55dd9e){const _0x1935c5=a70_0x1935();return a70_0x1758=function(_0x175810,_0x2f178c){_0x175810=_0x175810-0x171;let _0x2e3614=_0x1935c5[_0x175810];return _0x2e3614;},a70_0x1758(_0x93b52f,_0x55dd9e);}const a70_0x17eaff=a70_0x1758;(function(_0x46bc19,_0x1c45d2){const _0x1ee5e6=a70_0x1758,_0x2a3e26=_0x46bc19();while(!![]){try{const _0x325332=-parseInt(_0x1ee5e6(0x182))/0x1+-parseInt(_0x1ee5e6(0x175))/0x2*(-parseInt(_0x1ee5e6(0x181))/0x3)+-parseInt(_0x1ee5e6(0x17a))/0x4+parseInt(_0x1ee5e6(0x171))/0x5*(-parseInt(_0x1ee5e6(0x183))/0x6)+parseInt(_0x1ee5e6(0x173))/0x7*(-parseInt(_0x1ee5e6(0x176))/0x8)+-parseInt(_0x1ee5e6(0x179))/0x9+parseInt(_0x1ee5e6(0x172))/0xa;if(_0x325332===_0x1c45d2)break;else _0x2a3e26['push'](_0x2a3e26['shift']());}catch(_0x5447b0){_0x2a3e26['push'](_0x2a3e26['shift']());}}}(a70_0x1935,0x71935));function a70_0x1935(){const _0x49de97=['54NBbpxW','118535UPdtWj','11367610ZsoPzg','2250017nnPKvm','getInstance','34zxXOpI','8JJSyIx','notifyObserver','push','1112463cqCBQP','1093256hXNvXs','observers','freeze','IxJaq','../../helpers/classLogger.js','registerObserver','exports','123153xTwTVz','437708QaRAas'];a70_0x1935=function(){return _0x49de97;};return a70_0x1935();}const {createClassLogger}=require(a70_0x17eaff(0x17e));class EventDispatcher{static #instance=null;constructor(){const _0x59ac92=a70_0x17eaff;this[_0x59ac92(0x17b)]={};}static[a70_0x17eaff(0x174)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a70_0x17eaff(0x17f)](_0x4895dc,_0x42d064){const _0x18699d=a70_0x17eaff;!this[_0x18699d(0x17b)][_0x4895dc]&&(this[_0x18699d(0x17b)][_0x4895dc]=[]),this['observers'][_0x4895dc][_0x18699d(0x178)](_0x42d064);}async[a70_0x17eaff(0x177)](_0x473b1,_0x3663da){const _0x436811=a70_0x17eaff,_0x507b51={'IxJaq':function(_0x50499f,_0xbad642){return _0x50499f(_0xbad642);}};if(this['observers'][_0x473b1]){for(const _0x185611 of this[_0x436811(0x17b)][_0x473b1]){await _0x507b51[_0x436811(0x17d)](_0x185611,_0x3663da);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();Object[a70_0x17eaff(0x17c)](eventDispatcher),module[a70_0x17eaff(0x180)]=eventDispatcher;
1
+ const a70_0x3309f3=a70_0x18fc;(function(_0x10c965,_0x9982fc){const _0xdcf4fb=a70_0x18fc,_0x2b8ea0=_0x10c965();while(!![]){try{const _0x34f953=-parseInt(_0xdcf4fb(0xff))/0x1+-parseInt(_0xdcf4fb(0x104))/0x2*(parseInt(_0xdcf4fb(0xf9))/0x3)+parseInt(_0xdcf4fb(0x105))/0x4+-parseInt(_0xdcf4fb(0xfe))/0x5*(-parseInt(_0xdcf4fb(0xf8))/0x6)+-parseInt(_0xdcf4fb(0x107))/0x7*(parseInt(_0xdcf4fb(0xfb))/0x8)+-parseInt(_0xdcf4fb(0xfc))/0x9+-parseInt(_0xdcf4fb(0x101))/0xa*(-parseInt(_0xdcf4fb(0x103))/0xb);if(_0x34f953===_0x9982fc)break;else _0x2b8ea0['push'](_0x2b8ea0['shift']());}catch(_0x580f94){_0x2b8ea0['push'](_0x2b8ea0['shift']());}}}(a70_0x2bcd,0xaa9ef));const {createClassLogger}=require(a70_0x3309f3(0xf7));class EventDispatcher{static #instance=null;constructor(){const _0x408cd9=a70_0x3309f3;this[_0x408cd9(0x106)]={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a70_0x3309f3(0xfd)](_0x3692a0,_0x5de2fe){const _0x48eb92=a70_0x3309f3;!this[_0x48eb92(0x106)][_0x3692a0]&&(this[_0x48eb92(0x106)][_0x3692a0]=[]),this[_0x48eb92(0x106)][_0x3692a0]['push'](_0x5de2fe);}async['notifyObserver'](_0x167095,_0x21edb0){const _0x25a5df=a70_0x3309f3,_0x4b17ab={'zJagS':function(_0x59a984,_0x3a0fd7){return _0x59a984(_0x3a0fd7);}};if(this[_0x25a5df(0x106)][_0x167095]){for(const _0x102c5c of this[_0x25a5df(0x106)][_0x167095]){await _0x4b17ab[_0x25a5df(0xfa)](_0x102c5c,_0x21edb0);}return;}}}const eventDispatcher=EventDispatcher[a70_0x3309f3(0xf6)]();Object[a70_0x3309f3(0x102)](eventDispatcher),module[a70_0x3309f3(0x100)]=eventDispatcher;function a70_0x18fc(_0x4afb42,_0xbf1a92){const _0x2bcde8=a70_0x2bcd();return a70_0x18fc=function(_0x18fc40,_0x395482){_0x18fc40=_0x18fc40-0xf6;let _0xe55b65=_0x2bcde8[_0x18fc40];return _0xe55b65;},a70_0x18fc(_0x4afb42,_0xbf1a92);}function a70_0x2bcd(){const _0x5de5aa=['833OBROBX','getInstance','../../helpers/classLogger.js','748338PxaIZv','4127361OcNStn','zJagS','79864JhGZbM','1450998uUdlQw','registerObserver','50gBvQqL','161311TWqUDJ','exports','48470ZbnFZr','freeze','3531gmCXOv','2GahPNq','3128172ALXuFq','observers'];a70_0x2bcd=function(){return _0x5de5aa;};return a70_0x2bcd();}
@@ -1 +1 @@
1
- const a71_0xff60aa=a71_0x1747;(function(_0x434478,_0x181ab4){const _0x39efa4=a71_0x1747,_0x4dbc2f=_0x434478();while(!![]){try{const _0x7da61e=parseInt(_0x39efa4(0x105))/0x1*(-parseInt(_0x39efa4(0x118))/0x2)+-parseInt(_0x39efa4(0x11b))/0x3+parseInt(_0x39efa4(0x109))/0x4*(-parseInt(_0x39efa4(0x102))/0x5)+parseInt(_0x39efa4(0x126))/0x6*(parseInt(_0x39efa4(0x111))/0x7)+-parseInt(_0x39efa4(0x125))/0x8+parseInt(_0x39efa4(0x10f))/0x9+parseInt(_0x39efa4(0x129))/0xa*(parseInt(_0x39efa4(0x103))/0xb);if(_0x7da61e===_0x181ab4)break;else _0x4dbc2f['push'](_0x4dbc2f['shift']());}catch(_0x592a48){_0x4dbc2f['push'](_0x4dbc2f['shift']());}}}(a71_0x2737,0xaddb2));const {createClassLogger}=require(a71_0xff60aa(0x117)),util=require(a71_0xff60aa(0x10d)),eventDispatcher=require(a71_0xff60aa(0x107)),CLIUtils=require(a71_0xff60aa(0x106)),TrackedInstance=require(a71_0xff60aa(0x113)),logger=createClassLogger(a71_0xff60aa(0x123));class AutomationFramework{static [a71_0xff60aa(0x121)]=new Map();static ['KEY_AUTOMATION_SESSIONS']=a71_0xff60aa(0x112);static [a71_0xff60aa(0x116)]=a71_0xff60aa(0x10b);constructor(_0xc7437a,_0x4d20d2){const _0x427ff0=a71_0xff60aa;this[_0x427ff0(0x127)]=_0xc7437a,this[_0x427ff0(0x110)]=_0x4d20d2;}[a71_0xff60aa(0x11f)](){return this['automationFrameworkName'];}[a71_0xff60aa(0x10c)](){return this['automationFrameworkVersion'];}async['trackEvent'](_0x3e6036,_0x30af69,_0x2cd949={}){const _0x1c6265=a71_0xff60aa;logger['debug'](_0x1c6265(0x119)+_0x3e6036+_0x1c6265(0x124)+_0x30af69);}async[a71_0xff60aa(0x12a)](_0x4eaa84,_0x5ce8ee,_0x383ebb,_0x1f2e4c={}){const _0x4c5871=a71_0xff60aa,_0x3c8378=CLIUtils[_0x4c5871(0x115)](_0x5ce8ee,_0x383ebb);_0x4eaa84&&_0x4eaa84[_0x4c5871(0x114)](_0x5ce8ee),await eventDispatcher[_0x4c5871(0x11a)](_0x3c8378,_0x1f2e4c);}static[a71_0xff60aa(0x11d)](_0x57368f,_0x65856f,_0x1bdfb1){const _0x3298cd=a71_0xff60aa;eventDispatcher[_0x3298cd(0x11d)](CLIUtils['getHookRegistryKey'](_0x57368f,_0x65856f),_0x1bdfb1);}static['setTrackedInstance'](_0xa558c,_0x2bf271){const _0x59fb7a=a71_0xff60aa;AutomationFramework[_0x59fb7a(0x121)]['set'](_0xa558c[_0x59fb7a(0x108)](),_0x2bf271);}static[a71_0xff60aa(0x11c)](){const _0x24752f=a71_0xff60aa,_0x20f5d1=TrackedInstance[_0x24752f(0x122)](CLIUtils[_0x24752f(0x10a)]());return AutomationFramework[_0x24752f(0x121)][_0x24752f(0x128)](_0x20f5d1['getId']());}static[a71_0xff60aa(0x114)](_0x4913ad,_0x1681a9,_0x220395){const _0x3b2db9=a71_0xff60aa;_0x4913ad['getAllData']()[_0x3b2db9(0x120)](_0x1681a9,_0x220395);}static[a71_0xff60aa(0x11e)](_0x5545c6,_0x37445d){const _0x1e6199=a71_0xff60aa;return _0x5545c6[_0x1e6199(0x104)]()[_0x1e6199(0x128)](_0x37445d);}}function a71_0x2737(){const _0x300794=['5GXJhQn','44BhOyMo','getAllData','547273GwnQJM','../cliUtils.js','../eventDispatcher.js','getId','2148248Lwnzuj','getCurrentInstanceName','non_browserstack_automation_sessions','getAutomationFrameworkVersion','util','exports','9046431ADoceg','automationFrameworkVersion','14omqMxj','automation_sessions','../instances/trackedInstance.js','setState','getHookRegistryKey','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','../../../helpers/classLogger.js','2hrmQOx','trackEvent:\x20automationFrameworkState=','notifyObserver','2417109mvrBMr','getTrackedInstance','registerObserver','getState','getAutomationFrameworkName','set','instances','createContext','AutomationFramework','\x20hookState=','340776ecXlvD','3580818iCtTVt','automationFrameworkName','get','1114960BDscjv','runHooks'];a71_0x2737=function(){return _0x300794;};return a71_0x2737();}function a71_0x1747(_0x12c82b,_0x38f6e2){const _0x2737fa=a71_0x2737();return a71_0x1747=function(_0x17470c,_0x385350){_0x17470c=_0x17470c-0x102;let _0x475382=_0x2737fa[_0x17470c];return _0x475382;},a71_0x1747(_0x12c82b,_0x38f6e2);}module[a71_0xff60aa(0x10e)]=AutomationFramework;
1
+ const a71_0x27b423=a71_0x396a;function a71_0x396a(_0x9ae0b4,_0x3d0b39){const _0x5daf4c=a71_0x5daf();return a71_0x396a=function(_0x396a3e,_0x3360eb){_0x396a3e=_0x396a3e-0x17f;let _0x20f537=_0x5daf4c[_0x396a3e];return _0x20f537;},a71_0x396a(_0x9ae0b4,_0x3d0b39);}(function(_0x1a9dae,_0xc3aef4){const _0x47d9f2=a71_0x396a,_0x15a5bf=_0x1a9dae();while(!![]){try{const _0x20fae1=parseInt(_0x47d9f2(0x181))/0x1*(-parseInt(_0x47d9f2(0x197))/0x2)+parseInt(_0x47d9f2(0x19b))/0x3+parseInt(_0x47d9f2(0x19f))/0x4*(-parseInt(_0x47d9f2(0x199))/0x5)+-parseInt(_0x47d9f2(0x187))/0x6*(parseInt(_0x47d9f2(0x188))/0x7)+-parseInt(_0x47d9f2(0x1a0))/0x8*(-parseInt(_0x47d9f2(0x195))/0x9)+-parseInt(_0x47d9f2(0x19c))/0xa*(parseInt(_0x47d9f2(0x193))/0xb)+parseInt(_0x47d9f2(0x18a))/0xc*(parseInt(_0x47d9f2(0x192))/0xd);if(_0x20fae1===_0xc3aef4)break;else _0x15a5bf['push'](_0x15a5bf['shift']());}catch(_0x27ef23){_0x15a5bf['push'](_0x15a5bf['shift']());}}}(a71_0x5daf,0x4b5c0));function a71_0x5daf(){const _0x255d02=['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','../eventDispatcher.js','../cliUtils.js','1983444GkoNbM','7nURkDc','getAutomationFrameworkName','72NhtcWv','getAutomationFrameworkVersion','getAllData','\x20hookState=','instances','getTrackedInstance','createContext','registerObserver','2487056tgVMyI','77zgnKlC','set','909mwWLgz','getHookRegistryKey','184714ioFZWG','util','15KAfMYY','setTrackedInstance','4848hcuhog','189970vLkJkc','getId','automationFrameworkVersion','656076pqerXl','16408riKLXK','setState','getState','KEY_AUTOMATION_SESSIONS','trackEvent:\x20automationFrameworkState=','automationFrameworkName','../../../helpers/classLogger.js','runHooks','1IuYEKK','debug','get'];a71_0x5daf=function(){return _0x255d02;};return a71_0x5daf();}const {createClassLogger}=require(a71_0x27b423(0x17f)),util=require(a71_0x27b423(0x198)),eventDispatcher=require(a71_0x27b423(0x185)),CLIUtils=require(a71_0x27b423(0x186)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger('AutomationFramework');class AutomationFramework{static ['instances']=new Map();static [a71_0x27b423(0x1a3)]='automation_sessions';static [a71_0x27b423(0x184)]='non_browserstack_automation_sessions';constructor(_0x29f6bd,_0x3a36af){const _0x4bd4c4=a71_0x27b423;this[_0x4bd4c4(0x1a5)]=_0x29f6bd,this[_0x4bd4c4(0x19e)]=_0x3a36af;}[a71_0x27b423(0x189)](){const _0x54c58a=a71_0x27b423;return this[_0x54c58a(0x1a5)];}[a71_0x27b423(0x18b)](){return this['automationFrameworkVersion'];}async['trackEvent'](_0xc409bf,_0x44a980,_0x3af7dc={}){const _0x2683c1=a71_0x27b423;logger[_0x2683c1(0x182)](_0x2683c1(0x1a4)+_0xc409bf+_0x2683c1(0x18d)+_0x44a980);}async[a71_0x27b423(0x180)](_0x1fe1da,_0x8ed627,_0x4f5edd,_0x29baca={}){const _0x282614=a71_0x27b423,_0x2cf749=CLIUtils[_0x282614(0x196)](_0x8ed627,_0x4f5edd);_0x1fe1da&&_0x1fe1da[_0x282614(0x1a1)](_0x8ed627),await eventDispatcher['notifyObserver'](_0x2cf749,_0x29baca);}static['registerObserver'](_0x342ad4,_0x1e6d98,_0x48b0bc){const _0x1f57dc=a71_0x27b423;eventDispatcher[_0x1f57dc(0x191)](CLIUtils[_0x1f57dc(0x196)](_0x342ad4,_0x1e6d98),_0x48b0bc);}static[a71_0x27b423(0x19a)](_0x3662f5,_0x30d905){const _0x50cb14=a71_0x27b423;AutomationFramework[_0x50cb14(0x18e)][_0x50cb14(0x194)](_0x3662f5[_0x50cb14(0x19d)](),_0x30d905);}static[a71_0x27b423(0x18f)](){const _0x536dc1=a71_0x27b423,_0x4d1f77=TrackedInstance[_0x536dc1(0x190)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x536dc1(0x18e)]['get'](_0x4d1f77[_0x536dc1(0x19d)]());}static['setState'](_0x19519b,_0x30f96d,_0x21c11b){const _0x529100=a71_0x27b423;_0x19519b['getAllData']()[_0x529100(0x194)](_0x30f96d,_0x21c11b);}static[a71_0x27b423(0x1a2)](_0x32ad12,_0x20f8bd){const _0x1bc4f8=a71_0x27b423;return _0x32ad12[_0x1bc4f8(0x18c)]()[_0x1bc4f8(0x183)](_0x20f8bd);}}module['exports']=AutomationFramework;
@@ -1 +1 @@
1
- const a72_0x20cfb4=a72_0x31e4;(function(_0x45ff90,_0x2745d8){const _0x15e368=a72_0x31e4,_0x13a017=_0x45ff90();while(!![]){try{const _0x531b8c=parseInt(_0x15e368(0xf1))/0x1*(parseInt(_0x15e368(0xe5))/0x2)+parseInt(_0x15e368(0xda))/0x3*(-parseInt(_0x15e368(0xd8))/0x4)+parseInt(_0x15e368(0xdc))/0x5+-parseInt(_0x15e368(0xeb))/0x6*(-parseInt(_0x15e368(0xd4))/0x7)+parseInt(_0x15e368(0xea))/0x8+parseInt(_0x15e368(0xdf))/0x9+-parseInt(_0x15e368(0xe2))/0xa;if(_0x531b8c===_0x2745d8)break;else _0x13a017['push'](_0x13a017['shift']());}catch(_0xa6fb53){_0x13a017['push'](_0x13a017['shift']());}}}(a72_0x5e5a,0xa7e62));const a72_0x6d662e={};function a72_0x31e4(_0xadf841,_0x24c0cd){const _0x5e5a06=a72_0x5e5a();return a72_0x31e4=function(_0x31e4e1,_0x375f9b){_0x31e4e1=_0x31e4e1-0xd1;let _0x5a4f22=_0x5e5a06[_0x31e4e1];return _0x5a4f22;},a72_0x31e4(_0xadf841,_0x24c0cd);}a72_0x6d662e[a72_0x20cfb4(0xe0)]=a72_0x20cfb4(0xec),a72_0x6d662e[a72_0x20cfb4(0xd9)]=a72_0x20cfb4(0xe6),a72_0x6d662e['KEY_FRAMEWORK_SESSION_ID']=a72_0x20cfb4(0xd3),a72_0x6d662e[a72_0x20cfb4(0xdd)]='input_capabilities',a72_0x6d662e[a72_0x20cfb4(0xef)]=a72_0x20cfb4(0xd5),a72_0x6d662e['KEY_IS_BROWSERSTACK_HUB']=a72_0x20cfb4(0xee),a72_0x6d662e['KEY_STARTED_AT']=a72_0x20cfb4(0xdb),a72_0x6d662e['KEY_ENDED_AT']=a72_0x20cfb4(0xd2),a72_0x6d662e['KEY_PLATFORM_INDEX']=a72_0x20cfb4(0xed),a72_0x6d662e[a72_0x20cfb4(0xe8)]=a72_0x20cfb4(0xe3),a72_0x6d662e[a72_0x20cfb4(0xd1)]=a72_0x20cfb4(0xde),a72_0x6d662e[a72_0x20cfb4(0xe7)]=a72_0x20cfb4(0xd7),a72_0x6d662e[a72_0x20cfb4(0xe9)]='w3cexecutescript',a72_0x6d662e[a72_0x20cfb4(0xe1)]=a72_0x20cfb4(0xe4),a72_0x6d662e[a72_0x20cfb4(0xd6)]='quit';function a72_0x5e5a(){const _0x441c7c=['KEY_INPUT_CAPABILITIES','get','5424489jcELNC','ENV_BROWSERSTACK_PLATFORM_INDEX','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','5515620jkbNQt','newsession','w3cexecutescriptasync','4pIXgWE','hub_url','COMMAND_SCREENSHOT','COMMAND_NEW_SESSION','COMMAND_W3C_EXECUTE_SCRIPT','1181152YhStFB','54TSdxNM','BROWSERSTACK_PLATFORM_INDEX','platform_index','is_browserstack_hub','KEY_CAPABILITIES','exports','168244kERVcl','COMMAND_GET','ended_at','framework_session_id','893305CwamIK','capabilities','COMMAND_QUIT','screenshot','4ccoVdz','KEY_HUB_URL','3512448kWIkRq','started_at','873520IheKmo'];a72_0x5e5a=function(){return _0x441c7c;};return a72_0x5e5a();}const AutomationFrameworkConstants=a72_0x6d662e;module[a72_0x20cfb4(0xf0)]=AutomationFrameworkConstants;
1
+ function a72_0x3f53(_0x4252c6,_0x5ef858){const _0x3e3c46=a72_0x3e3c();return a72_0x3f53=function(_0x3f536d,_0xd8158f){_0x3f536d=_0x3f536d-0x1c9;let _0x41ac0c=_0x3e3c46[_0x3f536d];return _0x41ac0c;},a72_0x3f53(_0x4252c6,_0x5ef858);}function a72_0x3e3c(){const _0x34b9f3=['capabilities','2195699GdQRza','50708KbzLdn','KEY_STARTED_AT','framework_session_id','ended_at','exports','KEY_HUB_URL','ENV_BROWSERSTACK_PLATFORM_INDEX','30PZPtmH','KEY_ENDED_AT','KEY_INPUT_CAPABILITIES','6940rQTenn','COMMAND_QUIT','KEY_FRAMEWORK_SESSION_ID','636IjzlUP','KEY_PLATFORM_INDEX','75uMQqMp','24YbKNWi','screenshot','COMMAND_NEW_SESSION','get','KEY_IS_BROWSERSTACK_HUB','COMMAND_GET','quit','KEY_CAPABILITIES','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','BROWSERSTACK_PLATFORM_INDEX','is_browserstack_hub','newsession','platform_index','540576OXXRUQ','input_capabilities','152042oASIDF','136VgqBtA','COMMAND_W3C_EXECUTE_SCRIPT','w3cexecutescriptasync','442584aesOng'];a72_0x3e3c=function(){return _0x34b9f3;};return a72_0x3e3c();}const a72_0x4eb1b3=a72_0x3f53;(function(_0xa7489,_0x5754bb){const _0x4b6edd=a72_0x3f53,_0x2b1067=_0xa7489();while(!![]){try{const _0x2b5f50=parseInt(_0x4b6edd(0x1d7))/0x1+-parseInt(_0x4b6edd(0x1e8))/0x2*(-parseInt(_0x4b6edd(0x1ee))/0x3)+parseInt(_0x4b6edd(0x1eb))/0x4*(-parseInt(_0x4b6edd(0x1ed))/0x5)+parseInt(_0x4b6edd(0x1db))/0x6+parseInt(_0x4b6edd(0x1de))/0x7*(-parseInt(_0x4b6edd(0x1d8))/0x8)+-parseInt(_0x4b6edd(0x1d5))/0x9*(-parseInt(_0x4b6edd(0x1e5))/0xa)+-parseInt(_0x4b6edd(0x1dd))/0xb;if(_0x2b5f50===_0x5754bb)break;else _0x2b1067['push'](_0x2b1067['shift']());}catch(_0xd8a5cf){_0x2b1067['push'](_0x2b1067['shift']());}}}(a72_0x3e3c,0x1a848));const a72_0x1a9ecd={};a72_0x1a9ecd[a72_0x4eb1b3(0x1e4)]=a72_0x4eb1b3(0x1d1),a72_0x1a9ecd[a72_0x4eb1b3(0x1e3)]='hub_url',a72_0x1a9ecd[a72_0x4eb1b3(0x1ea)]=a72_0x4eb1b3(0x1e0),a72_0x1a9ecd[a72_0x4eb1b3(0x1e7)]=a72_0x4eb1b3(0x1d6),a72_0x1a9ecd[a72_0x4eb1b3(0x1cf)]=a72_0x4eb1b3(0x1dc),a72_0x1a9ecd[a72_0x4eb1b3(0x1cc)]=a72_0x4eb1b3(0x1d2),a72_0x1a9ecd[a72_0x4eb1b3(0x1df)]='started_at',a72_0x1a9ecd[a72_0x4eb1b3(0x1e6)]=a72_0x4eb1b3(0x1e1),a72_0x1a9ecd[a72_0x4eb1b3(0x1ec)]=a72_0x4eb1b3(0x1d4),a72_0x1a9ecd[a72_0x4eb1b3(0x1ca)]=a72_0x4eb1b3(0x1d3),a72_0x1a9ecd[a72_0x4eb1b3(0x1cd)]=a72_0x4eb1b3(0x1cb),a72_0x1a9ecd['COMMAND_SCREENSHOT']=a72_0x4eb1b3(0x1c9),a72_0x1a9ecd[a72_0x4eb1b3(0x1d9)]='w3cexecutescript',a72_0x1a9ecd[a72_0x4eb1b3(0x1d0)]=a72_0x4eb1b3(0x1da),a72_0x1a9ecd[a72_0x4eb1b3(0x1e9)]=a72_0x4eb1b3(0x1ce);const AutomationFrameworkConstants=a72_0x1a9ecd;module[a72_0x4eb1b3(0x1e2)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- const a73_0x49f799=a73_0x314a;(function(_0x456ce5,_0x3faf12){const _0x11295d=a73_0x314a,_0x595cfe=_0x456ce5();while(!![]){try{const _0x5a284f=-parseInt(_0x11295d(0x173))/0x1+parseInt(_0x11295d(0x180))/0x2+-parseInt(_0x11295d(0x188))/0x3*(-parseInt(_0x11295d(0x19d))/0x4)+-parseInt(_0x11295d(0x171))/0x5+parseInt(_0x11295d(0x16b))/0x6*(-parseInt(_0x11295d(0x1a9))/0x7)+parseInt(_0x11295d(0x153))/0x8+-parseInt(_0x11295d(0x15b))/0x9*(-parseInt(_0x11295d(0x16e))/0xa);if(_0x5a284f===_0x3faf12)break;else _0x595cfe['push'](_0x595cfe['shift']());}catch(_0x256c75){_0x595cfe['push'](_0x595cfe['shift']());}}}(a73_0x3fc9,0xd1937));function a73_0x314a(_0x156703,_0x4b30a6){const _0x3fc926=a73_0x3fc9();return a73_0x314a=function(_0x314ac2,_0x3b7aa5){_0x314ac2=_0x314ac2-0x152;let _0x473398=_0x3fc926[_0x314ac2];return _0x473398;},a73_0x314a(_0x156703,_0x4b30a6);}const a73_0x5e9a3e={};function a73_0x3fc9(){const _0x34c18e=['KEY_TEST_FAILURE_REASON','event_ended_at','hook_name','KEY_AUTOMATE_SESSION_REASON','KEY_TEST_TAGS','KEY_TEST_RETRY_OF','retry_of','^(BEFORE_|AFTER_)','hook_failure_reason','3677212fQVeRD','test_result','11055376dxjUFe','test_scope','event_started_at','test_started_at','test_uuid','custom_metadata','KEY_LOGS','KEY_FILE_LEVEL','9VsjVtc','KEY_TEST_SCOPE','KEY_TEST_RERUN_NAME','TEST_SCREENSHOT','automate_session_name','test_failure_type','test_hooks_started','test_code','test_rerun_name','automate_session_reason','KEY_HOOK_FAILURE_TYPE','KEY_HOOKS_STARTED','KEY_TEST_RESULT','hook_id','hook_failure_type','test_logs','12SkTgBP','KEY_PLATFORM_INDEX','KEY_FILE_NAME','3238190FKNtZQ','KEY_TEST_NAME','KEY_TEST_FILE_PATH','7008690dyZahT','test_meta','519735BaXSSB','KEY_HOOK_ID','KEY_SESSION_NAME','hook_result','KEY_TEST_DURATION','test_hook_last_started','KEY_TEST_ATTACHMENTS','test_framework_name','test_hooks_finished','file_name','test_location','KEY_FILE_SIZE','DEFAULT_TEST_RESULT','2303390PFBFGJ','KEY_HOOK_NAME','platform_index','test_id','test_hook_last_finished','test_tags','KEY_EVENT_ENDED_AT','test_attachments','35172pqWemN','KEY_TEST_ID','KEY_TEST_LOCATION','KIND_SCREENSHOT','exports','test_scopes','KEY_HOOK_LAST_STARTED','DEFAULT_HOOK_RESULT','KEY_TEST_META','hook_logs','KEY_AUTOMATE_SESSION_NAME','hook_failure','test_duration','TEST_LOG','KEY_EVENT_STARTED_AT','KEY_FILE_PATH','KEY_TEST_RESULT_AT','pending','KEY_TEST_FAILURE','test_name','KEY_TEST_STARTED_AT','332EqoHMy','file_level','KIND_LOG'];a73_0x3fc9=function(){return _0x34c18e;};return a73_0x3fc9();}a73_0x5e9a3e['KEY_TEST_UUID']=a73_0x49f799(0x157),a73_0x5e9a3e[a73_0x49f799(0x189)]=a73_0x49f799(0x183),a73_0x5e9a3e[a73_0x49f799(0x16f)]=a73_0x49f799(0x19b),a73_0x5e9a3e[a73_0x49f799(0x170)]='test_file_path',a73_0x5e9a3e[a73_0x49f799(0x1a4)]=a73_0x49f799(0x185),a73_0x5e9a3e[a73_0x49f799(0x167)]=a73_0x49f799(0x152),a73_0x5e9a3e[a73_0x49f799(0x198)]='test_result_at',a73_0x5e9a3e[a73_0x49f799(0x19c)]=a73_0x49f799(0x156),a73_0x5e9a3e['KEY_TEST_ENDED_AT']='test_ended_at',a73_0x5e9a3e[a73_0x49f799(0x18a)]=a73_0x49f799(0x17d),a73_0x5e9a3e[a73_0x49f799(0x177)]=a73_0x49f799(0x194),a73_0x5e9a3e[a73_0x49f799(0x15c)]=a73_0x49f799(0x154),a73_0x5e9a3e['KEY_TEST_SCOPES']=a73_0x49f799(0x18d),a73_0x5e9a3e['KEY_TEST_FRAMEWORK_NAME']=a73_0x49f799(0x17a),a73_0x5e9a3e['KEY_TEST_FRAMEWORK_VERSION']='test_framework_version',a73_0x5e9a3e['KEY_TEST_CODE']=a73_0x49f799(0x162),a73_0x5e9a3e[a73_0x49f799(0x15d)]=a73_0x49f799(0x163),a73_0x5e9a3e[a73_0x49f799(0x1a5)]=a73_0x49f799(0x1a6),a73_0x5e9a3e[a73_0x49f799(0x16c)]=a73_0x49f799(0x182),a73_0x5e9a3e[a73_0x49f799(0x19a)]='test_failure',a73_0x5e9a3e['KEY_TEST_FAILURE_TYPE']=a73_0x49f799(0x160),a73_0x5e9a3e[a73_0x49f799(0x1a0)]='test_failure_reason',a73_0x5e9a3e['KEY_TEST_LOGS']=a73_0x49f799(0x16a),a73_0x5e9a3e[a73_0x49f799(0x190)]=a73_0x49f799(0x172),a73_0x5e9a3e[a73_0x49f799(0x175)]='test_session_name',a73_0x5e9a3e[a73_0x49f799(0x192)]=a73_0x49f799(0x15f),a73_0x5e9a3e['KEY_AUTOMATE_SESSION_STATUS']='automate_session_status',a73_0x5e9a3e[a73_0x49f799(0x1a3)]=a73_0x49f799(0x164),a73_0x5e9a3e[a73_0x49f799(0x196)]=a73_0x49f799(0x155),a73_0x5e9a3e[a73_0x49f799(0x186)]=a73_0x49f799(0x1a1),a73_0x5e9a3e[a73_0x49f799(0x174)]=a73_0x49f799(0x168),a73_0x5e9a3e['KEY_HOOK_RESULT']=a73_0x49f799(0x176),a73_0x5e9a3e[a73_0x49f799(0x165)]=a73_0x49f799(0x169),a73_0x5e9a3e['KEY_HOOK_FAILURE_REASON']=a73_0x49f799(0x1a8),a73_0x5e9a3e['KEY_HOOK_FAILURE']=a73_0x49f799(0x193),a73_0x5e9a3e['KEY_HOOK_LOGS']=a73_0x49f799(0x191),a73_0x5e9a3e[a73_0x49f799(0x181)]=a73_0x49f799(0x1a2),a73_0x5e9a3e[a73_0x49f799(0x17f)]=a73_0x49f799(0x199),a73_0x5e9a3e[a73_0x49f799(0x18f)]=a73_0x49f799(0x199),a73_0x5e9a3e[a73_0x49f799(0x18b)]=a73_0x49f799(0x15e),a73_0x5e9a3e[a73_0x49f799(0x19f)]=a73_0x49f799(0x195),a73_0x5e9a3e['HOOK_REGEX']=a73_0x49f799(0x1a7),a73_0x5e9a3e[a73_0x49f799(0x166)]=a73_0x49f799(0x161),a73_0x5e9a3e['KEY_HOOKS_FINISHED']=a73_0x49f799(0x17b),a73_0x5e9a3e[a73_0x49f799(0x18e)]=a73_0x49f799(0x178),a73_0x5e9a3e['KEY_HOOK_LAST_FINISHED']=a73_0x49f799(0x184),a73_0x5e9a3e[a73_0x49f799(0x159)]='logs',a73_0x5e9a3e['KEY_CUSTOM_TAGS']=a73_0x49f799(0x158),a73_0x5e9a3e[a73_0x49f799(0x179)]=a73_0x49f799(0x187),a73_0x5e9a3e[a73_0x49f799(0x17e)]='file_size',a73_0x5e9a3e[a73_0x49f799(0x16d)]=a73_0x49f799(0x17c),a73_0x5e9a3e[a73_0x49f799(0x197)]='file_path',a73_0x5e9a3e[a73_0x49f799(0x15a)]=a73_0x49f799(0x19e);const TestFrameworkConstants=a73_0x5e9a3e;module[a73_0x49f799(0x18c)]=TestFrameworkConstants;
1
+ const a73_0x241e98=a73_0x35fa;(function(_0x19d4d9,_0x487d7a){const _0x570c2c=a73_0x35fa,_0xc92410=_0x19d4d9();while(!![]){try{const _0x5b300c=parseInt(_0x570c2c(0xe5))/0x1+-parseInt(_0x570c2c(0xc9))/0x2+parseInt(_0x570c2c(0xcc))/0x3*(-parseInt(_0x570c2c(0xcf))/0x4)+parseInt(_0x570c2c(0x103))/0x5+parseInt(_0x570c2c(0xdb))/0x6*(-parseInt(_0x570c2c(0x105))/0x7)+-parseInt(_0x570c2c(0xe4))/0x8+-parseInt(_0x570c2c(0xf9))/0x9*(-parseInt(_0x570c2c(0x107))/0xa);if(_0x5b300c===_0x487d7a)break;else _0xc92410['push'](_0xc92410['shift']());}catch(_0x307d23){_0xc92410['push'](_0xc92410['shift']());}}}(a73_0x4a54,0xe7241));const a73_0x36dae2={};a73_0x36dae2['KEY_TEST_UUID']=a73_0x241e98(0x10b),a73_0x36dae2[a73_0x241e98(0x108)]=a73_0x241e98(0xe0),a73_0x36dae2[a73_0x241e98(0xd0)]='test_name',a73_0x36dae2[a73_0x241e98(0xd2)]=a73_0x241e98(0xcb),a73_0x36dae2['KEY_TEST_TAGS']=a73_0x241e98(0xfd),a73_0x36dae2['KEY_TEST_RESULT']=a73_0x241e98(0xb9),a73_0x36dae2[a73_0x241e98(0xca)]='test_result_at',a73_0x36dae2[a73_0x241e98(0xf7)]='test_started_at',a73_0x36dae2[a73_0x241e98(0xfa)]='test_ended_at',a73_0x36dae2[a73_0x241e98(0xdc)]=a73_0x241e98(0x104),a73_0x36dae2[a73_0x241e98(0xfe)]='test_duration',a73_0x36dae2[a73_0x241e98(0xfb)]='test_scope',a73_0x36dae2['KEY_TEST_SCOPES']=a73_0x241e98(0xf5),a73_0x36dae2[a73_0x241e98(0xd9)]=a73_0x241e98(0xf8),a73_0x36dae2[a73_0x241e98(0xf1)]=a73_0x241e98(0xd6),a73_0x36dae2[a73_0x241e98(0xbe)]='test_code',a73_0x36dae2['KEY_TEST_RERUN_NAME']=a73_0x241e98(0xd3),a73_0x36dae2[a73_0x241e98(0xbf)]=a73_0x241e98(0xba),a73_0x36dae2['KEY_PLATFORM_INDEX']='platform_index',a73_0x36dae2[a73_0x241e98(0xe2)]=a73_0x241e98(0xe9),a73_0x36dae2[a73_0x241e98(0xbb)]=a73_0x241e98(0xe7),a73_0x36dae2['KEY_TEST_FAILURE_REASON']=a73_0x241e98(0xfc),a73_0x36dae2[a73_0x241e98(0xda)]=a73_0x241e98(0xec),a73_0x36dae2[a73_0x241e98(0xe8)]=a73_0x241e98(0xe3),a73_0x36dae2[a73_0x241e98(0xc5)]='test_session_name',a73_0x36dae2[a73_0x241e98(0xd1)]='automate_session_name',a73_0x36dae2[a73_0x241e98(0xd4)]=a73_0x241e98(0xc8),a73_0x36dae2['KEY_AUTOMATE_SESSION_REASON']=a73_0x241e98(0xd8),a73_0x36dae2[a73_0x241e98(0xeb)]='event_started_at',a73_0x36dae2[a73_0x241e98(0xc4)]=a73_0x241e98(0xf3),a73_0x36dae2[a73_0x241e98(0xea)]=a73_0x241e98(0xe6),a73_0x36dae2['KEY_HOOK_RESULT']='hook_result',a73_0x36dae2[a73_0x241e98(0xdd)]=a73_0x241e98(0xbd),a73_0x36dae2['KEY_HOOK_FAILURE_REASON']='hook_failure_reason',a73_0x36dae2[a73_0x241e98(0xde)]=a73_0x241e98(0xf0),a73_0x36dae2[a73_0x241e98(0xf4)]=a73_0x241e98(0xf6),a73_0x36dae2[a73_0x241e98(0x102)]=a73_0x241e98(0xc3),a73_0x36dae2[a73_0x241e98(0x100)]='pending',a73_0x36dae2[a73_0x241e98(0x101)]=a73_0x241e98(0xef),a73_0x36dae2[a73_0x241e98(0xb8)]=a73_0x241e98(0xcd),a73_0x36dae2['KIND_LOG']='TEST_LOG',a73_0x36dae2[a73_0x241e98(0xdf)]=a73_0x241e98(0x10a),a73_0x36dae2[a73_0x241e98(0x109)]='test_hooks_started',a73_0x36dae2[a73_0x241e98(0xc1)]=a73_0x241e98(0xf2),a73_0x36dae2[a73_0x241e98(0xee)]=a73_0x241e98(0xbc),a73_0x36dae2[a73_0x241e98(0xd7)]=a73_0x241e98(0xff),a73_0x36dae2[a73_0x241e98(0xb6)]=a73_0x241e98(0x106),a73_0x36dae2[a73_0x241e98(0xb5)]=a73_0x241e98(0xc2),a73_0x36dae2[a73_0x241e98(0xe1)]=a73_0x241e98(0xd5),a73_0x36dae2[a73_0x241e98(0xed)]='file_size',a73_0x36dae2[a73_0x241e98(0xc7)]=a73_0x241e98(0xb7),a73_0x36dae2[a73_0x241e98(0xce)]=a73_0x241e98(0x10c),a73_0x36dae2[a73_0x241e98(0xc6)]=a73_0x241e98(0xc0);function a73_0x35fa(_0x512ded,_0x2fb608){const _0x4a540b=a73_0x4a54();return a73_0x35fa=function(_0x35fa63,_0x56b2b8){_0x35fa63=_0x35fa63-0xb5;let _0x3a4eb7=_0x4a540b[_0x35fa63];return _0x3a4eb7;},a73_0x35fa(_0x512ded,_0x2fb608);}const TestFrameworkConstants=a73_0x36dae2;function a73_0x4a54(){const _0xdb572a=['KEY_EVENT_ENDED_AT','KEY_SESSION_NAME','KEY_FILE_LEVEL','KEY_FILE_NAME','automate_session_status','857042OUHdUu','KEY_TEST_RESULT_AT','test_file_path','3YJXzoI','TEST_SCREENSHOT','KEY_FILE_PATH','3593192gtXfii','KEY_TEST_NAME','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_FILE_PATH','test_rerun_name','KEY_AUTOMATE_SESSION_STATUS','test_attachments','test_framework_version','KEY_HOOK_LAST_FINISHED','automate_session_reason','KEY_TEST_FRAMEWORK_NAME','KEY_TEST_LOGS','569676NnYtdZ','KEY_TEST_LOCATION','KEY_HOOK_FAILURE_TYPE','KEY_HOOK_FAILURE','HOOK_REGEX','test_id','KEY_TEST_ATTACHMENTS','KEY_TEST_FAILURE','test_meta','3415208WcYCij','222239wbimUT','hook_id','test_failure_type','KEY_TEST_META','test_failure','KEY_HOOK_ID','KEY_EVENT_STARTED_AT','test_logs','KEY_FILE_SIZE','KEY_HOOK_LAST_STARTED','pending','hook_failure','KEY_TEST_FRAMEWORK_VERSION','test_hooks_finished','event_ended_at','KEY_HOOK_LOGS','test_scopes','hook_logs','KEY_TEST_STARTED_AT','test_framework_name','549oiKMcp','KEY_TEST_ENDED_AT','KEY_TEST_SCOPE','test_failure_reason','test_tags','KEY_TEST_DURATION','test_hook_last_finished','DEFAULT_TEST_RESULT','DEFAULT_HOOK_RESULT','KEY_HOOK_NAME','414405xSaLNi','test_location','70twLOtW','logs','548330zwUywp','KEY_TEST_ID','KEY_HOOKS_STARTED','^(BEFORE_|AFTER_)','test_uuid','file_path','KEY_CUSTOM_TAGS','KEY_LOGS','file_name','KIND_SCREENSHOT','test_result','retry_of','KEY_TEST_FAILURE_TYPE','test_hook_last_started','hook_failure_type','KEY_TEST_CODE','KEY_TEST_RETRY_OF','file_level','KEY_HOOKS_FINISHED','custom_metadata','hook_name'];a73_0x4a54=function(){return _0xdb572a;};return a73_0x4a54();}module['exports']=TestFrameworkConstants;
@@ -1 +1 @@
1
- const a74_0x4dc9b0=a74_0x240c;(function(_0xf597d5,_0x4638cc){const _0x441a78=a74_0x240c,_0xece406=_0xf597d5();while(!![]){try{const _0x20bcab=-parseInt(_0x441a78(0xaf))/0x1+-parseInt(_0x441a78(0x126))/0x2+parseInt(_0x441a78(0x167))/0x3+parseInt(_0x441a78(0x12d))/0x4+-parseInt(_0x441a78(0xed))/0x5*(parseInt(_0x441a78(0xf9))/0x6)+-parseInt(_0x441a78(0xbd))/0x7*(parseInt(_0x441a78(0xf8))/0x8)+parseInt(_0x441a78(0xde))/0x9*(parseInt(_0x441a78(0x166))/0xa);if(_0x20bcab===_0x4638cc)break;else _0xece406['push'](_0xece406['shift']());}catch(_0x105161){_0xece406['push'](_0xece406['shift']());}}}(a74_0x242b,0x681c9));function a74_0x242b(){const _0x5c1b63=['714661hkAIRs','getTestFrameworksVersions','../state/testFrameworkState.js','resolveInstance','startedAt','started_at','getInstance','getAllData','../../../helpers/classLogger.js','setTestDetails','slice','addMultipleEntries','qeoYO','\x20and\x20args\x20=\x20','112zhBcZJ','\x20for\x20test:\x20','KEY_HOOKS_FINISHED','sendLogCreatedEvent:\x20for\x20testId:\x20','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_LOGS','dBRYW','failure_type','hooks','KEY_AUTOMATE_SESSION_NAME',',\x20state:\x20','AuWLx','KEY_TEST_ENDED_AT','\x20&\x20hook\x20=\x20','get','KEY_TEST_NAME','ZRWWP','\x20with\x20result:\x20','PRE','addPendingHook','parseCucumberTestResult','getCurrentHookState',',\x20storing\x20as\x20pending\x20hook','createTestFrameworkEventPayload','endedAt','KEY_TEST_FAILURE_TYPE','\x20&\x20hookState=','../instances/trackedInstance.js','sendLogCreatedEvent','createTestFrameworkEventPayload\x20testId:\x20','trackCucumberInstance:\x20saved\x20instance\x20contextId=','KEY_HOOK_RESULT','KEY_HOOK_LOGS','27sQSosU','wCXBR','DEFAULT_HOOK_RESULT','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','JoMSI','testUUID','KEY_HOOK_LAST_STARTED','ShCpn','KEY_EVENT_ENDED_AT','LOG_REPORT','KEY_TEST_FRAMEWORK_VERSION','KgeOU','base64','testFrameworkState','KEY_HOOK_ID','740rFnbOL','failed','XLqfR','KEY_EVENT_STARTED_AT','../state/hookState.js','ceil','\x20pending\x20hooks\x20for\x20testId:\x20','matchHookRegex','scopes','failure_data','test_run_id','381896FfURgo','25062syrwEM','runHooks','trackEvent','../TestInfo.js','KEY_TEST_CODE','name','KEY_TEST_FAILURE','Tracked\x20cucumber\x20hook\x20event:\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','lFvrf','code','\x20with\x20id\x20','KEY_HOOK_LAST_FINISHED','storePendingHook','failure','debug','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','LOsNG','hLnDr','executionContext','jZIjk','FysSY','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','UnhandledError',',\x20error:\x20','KEY_HOOK_FAILURE_TYPE','format','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','hook_type','key','testData','../instances/testFrameworkInstance.js','trackHookEvent','\x20testState:\x20','readLogObjects','stringify','toISOString','uuid','push','KEY_TEST_FRAMEWORK_NAME','split','KEY_TEST_LOCATION','getTestUUID','passed','getThreadId','1131988SOvixw','KEY_HOOK_FAILURE','test','error','KEY_TEST_SCOPES','instance','\x20with\x20UUID:\x20','420088WvNmAb','MerRV','Zfzye','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','createContext','KEY_CUSTOM_TAGS','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_HOOK_FAILURE_REASON','logCreatedEvent','getProcessId','EkPwd','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','finishedAt','SUsav','inspect','MZwli','TEST','INIT_TEST','failure_reason','../../../helpers/helper.js','fYefV','exports','\x20batch\x20','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','length','meta','tags','removePendingHooks','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','\x20payload=','file_name','setTrackedInstance','getId','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','browserstackPlatformIndex','Parsed\x20cucumber\x20test:\x20','LuNRK','POST','Processing\x20','NONE','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','processPendingHooks',',\x20state=','KEY_TEST_UUID','result','trackCucumberInstance','Updated\x20cucumber\x20test\x20result:\x20','getTestDetails','KEY_TEST_LOGS','CucumberTestFramework','EGXCr','XqNcc','sjkJL','finished_at','Error\x20in\x20createTestFrameworkEventPayload:\x20','../grpcClient','\x20response=','9929280EWzumP','15834JiewzP','KEY_HOOKS_STARTED','hasPendingHooks','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','kDOkl','Cucumber\x20log\x20created\x20event','parseCucumberTest','getRef','KEY_TEST_SCOPE','KEY_TEST_FAILURE_REASON','KEY_TEST_ATTACHMENTS','toString','KEY_TEST_STARTED_AT','hookState','unknown','args','KEY_TEST_META','getTestFrameworks','KEY_HOOK_NAME','getContext','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','hWVUq','./testFramework'];a74_0x242b=function(){return _0x5c1b63;};return a74_0x242b();}const TestFramework=require(a74_0x4dc9b0(0xae)),TestFrameworkState=require(a74_0x4dc9b0(0xb1)),HookState=require(a74_0x4dc9b0(0xf1)),{createClassLogger}=require(a74_0x4dc9b0(0xb7)),TestFrameworkInstance=require(a74_0x4dc9b0(0x118)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a74_0x4dc9b0(0xd8)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x4dc9b0(0x140)),logger=createClassLogger(a74_0x4dc9b0(0x15e)),{v4:uuidv4}=require(a74_0x4dc9b0(0x11e)),util=require('util'),TestInfo=require(a74_0x4dc9b0(0xfc)),GrpcClient=require(a74_0x4dc9b0(0x164));class CucumberTestFramework extends TestFramework{constructor(_0x27ed6f,_0x34b83f,_0x4affa4){super(_0x27ed6f,_0x34b83f,_0x4affa4);}async[a74_0x4dc9b0(0xfb)](_0x1485b8,_0xe0ea13,_0x3feaaf={}){const _0x90acac=a74_0x4dc9b0,_0x378ec3={};_0x378ec3[_0x90acac(0xe2)]=_0x90acac(0x14e),_0x378ec3['bnAEQ']=function(_0x4dd6fc,_0x24c89a){return _0x4dd6fc===_0x24c89a;},_0x378ec3[_0x90acac(0x13a)]=function(_0x4dc2b8,_0x17466c){return _0x4dc2b8===_0x17466c;},_0x378ec3[_0x90acac(0xcd)]=_0x90acac(0x114);const _0x31d090=_0x378ec3;await super[_0x90acac(0xfb)](_0x1485b8,_0xe0ea13,_0x3feaaf);const _0x4ad83c=this['resolveInstance'](_0x1485b8,_0xe0ea13,_0x3feaaf);if(!_0x4ad83c){logger[_0x90acac(0x108)](_0x31d090[_0x90acac(0xe2)]);return;}try{let _0xff77de,_0x26fc96;switch(_0x1485b8){case TestFrameworkState['TEST']:_0xff77de=_0x3feaaf[_0x90acac(0x128)],_0x26fc96=TestInfo[_0x90acac(0x123)](_0xff77de['id']);if(_0x31d090['bnAEQ'](_0xe0ea13,HookState['PRE'])){logger['debug'](_0x90acac(0x144)+_0xff77de['id']);const _0x5b2e17={};_0x5b2e17[_0x90acac(0xe3)]=_0x26fc96,_0x5b2e17[_0x90acac(0x117)]=_0xff77de,_0x4ad83c[_0x90acac(0xba)](this['parseCucumberTest'](_0x5b2e17)),logger[_0x90acac(0x108)](_0x90acac(0x155)+_0xff77de['id']),await this[_0x90acac(0x156)](_0x4ad83c,_0xff77de['id']);}else{if(_0x31d090['SUsav'](_0xe0ea13,HookState[_0x90acac(0x152)])){const _0x489498={};_0x489498['testUUID']=_0x26fc96,_0x489498[_0x90acac(0x117)]=_0xff77de,_0x4ad83c['addMultipleEntries'](this[_0x90acac(0xd1)](_0x489498)),await this[_0x90acac(0x156)](_0x4ad83c,_0xff77de['id']);}}break;case TestFrameworkState[_0x90acac(0xe7)]:_0x31d090['SUsav'](_0xe0ea13,HookState[_0x90acac(0x152)])&&await this[_0x90acac(0xd9)](_0x4ad83c,_0x1485b8,_0x3feaaf);break;default:if(CLIUtils[_0x90acac(0xf4)](_0x1485b8[_0x90acac(0x173)]()[_0x90acac(0x121)]('.')[0x1])){const _0x4ead3f=await this[_0x90acac(0x119)](_0x4ad83c,_0x1485b8,_0xe0ea13,_0x3feaaf);_0x4ad83c[_0x90acac(0xba)](_0x4ead3f);}else logger['debug'](_0x90acac(0x133)+_0x1485b8+_0x90acac(0xd7)+_0xe0ea13);break;}}catch(_0x4da094){logger['error'](util[_0x90acac(0x113)](_0x31d090['ZRWWP'],_0x1485b8,_0xe0ea13,_0x3feaaf[_0x90acac(0x145)],_0x4da094));}_0x3feaaf[_0x90acac(0x12b)]=_0x4ad83c,await this[_0x90acac(0xfa)](_0x4ad83c,_0x1485b8,_0xe0ea13,_0x3feaaf);}[a74_0x4dc9b0(0xb2)](_0x1731c8,_0x28e21a,_0x23bca5={}){const _0x50ebb2=a74_0x4dc9b0,_0x27d08d={};_0x27d08d[_0x50ebb2(0x10e)]=function(_0x27770d,_0x387ec8){return _0x27770d===_0x387ec8;};const _0x1ace27=_0x27d08d;let _0x5a6926=null;return(_0x1ace27[_0x50ebb2(0x10e)](_0x1731c8,TestFrameworkState[_0x50ebb2(0x13e)])||_0x1ace27[_0x50ebb2(0x10e)](_0x1731c8,TestFrameworkState[_0x50ebb2(0x154)]))&&this[_0x50ebb2(0x15a)](_0x1731c8,_0x23bca5),_0x5a6926=TestFramework['getTrackedInstance'](),_0x5a6926;}[a74_0x4dc9b0(0x15a)](_0x48ae1b,_0x56400a){const _0x1e6d54=a74_0x4dc9b0,_0x4004d5=CLIUtils['getCurrentInstanceName'](),_0x218ecc=TrackedInstance[_0x1e6d54(0x131)](_0x4004d5);let _0x3dbe48=null;logger[_0x1e6d54(0x108)](_0x1e6d54(0x109)+_0x4004d5+_0x1e6d54(0x157)+_0x48ae1b),_0x3dbe48=new TestFrameworkInstance(_0x218ecc,this[_0x1e6d54(0xa9)](),this[_0x1e6d54(0xb0)](),_0x48ae1b,HookState[_0x1e6d54(0x154)]),TestFramework[_0x1e6d54(0x14c)](_0x218ecc,_0x3dbe48),logger[_0x1e6d54(0x108)](_0x1e6d54(0xdb)+_0x218ecc['getId']()+'\x20target='+_0x4004d5);}[a74_0x4dc9b0(0x16e)](_0x225353){const _0x415b2c=a74_0x4dc9b0,_0x223faa={};_0x223faa[_0x415b2c(0xe5)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x56f7b5=_0x223faa,{testUUID:_0x4adef3,testData:_0x1017a2}=_0x225353;if(!_0x1017a2||!_0x1017a2[_0x415b2c(0x11e)])return logger[_0x415b2c(0x108)](_0x56f7b5[_0x415b2c(0xe5)]),{};const _0x31cce1=_0x4adef3,_0x31f551=_0x1017a2[_0x415b2c(0x11e)],_0x3d3ff0=this['getTestFrameworks']()[0x0],_0x1fac73=this[_0x415b2c(0xb0)](),_0x272c17={[TestFrameworkConstants[_0x415b2c(0x120)]]:_0x3d3ff0,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x1fac73[_0x3d3ff0],[TestFrameworkConstants[_0x415b2c(0x15d)]]:[],[TestFrameworkConstants[_0x415b2c(0xbf)]]:{},[TestFrameworkConstants[_0x415b2c(0x168)]]:{},[TestFrameworkConstants[_0x415b2c(0x158)]]:_0x31cce1,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x415b2c(0xc6)]]:_0x1017a2[_0x415b2c(0xfe)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x1017a2[_0x415b2c(0x14b)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x31f551,[TestFrameworkConstants[_0x415b2c(0xcc)]]:_0x1017a2[_0x415b2c(0xfe)]||'',[TestFrameworkConstants[_0x415b2c(0x122)]]:_0x1017a2['location']||'',[TestFrameworkConstants[_0x415b2c(0xfd)]]:_0x1017a2['body']?.[_0x415b2c(0x103)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x1017a2[_0x415b2c(0x147)]||[],[TestFrameworkConstants[_0x415b2c(0x174)]]:_0x1017a2[_0x415b2c(0xb3)]||new Date()[_0x415b2c(0x11d)](),[TestFrameworkConstants[_0x415b2c(0x170)]]:_0x1017a2[_0x415b2c(0xf5)]?.[0x0]||'',[TestFrameworkConstants[_0x415b2c(0x12a)]]:_0x1017a2[_0x415b2c(0xf5)]||[],[TestFrameworkConstants['KEY_TEST_RERUN_NAME']]:_0x1017a2['customRerunParam']?.['rerun_name']||_0x1017a2[_0x415b2c(0xfe)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x415b2c(0xa8)]]:_0x1017a2[_0x415b2c(0x146)]||{}};TestInfo[_0x415b2c(0xb8)](_0x31f551,_0x272c17),logger[_0x415b2c(0x108)](_0x415b2c(0x150)+_0x1017a2[_0x415b2c(0xfe)]+_0x415b2c(0x12c)+_0x31cce1);const _0x5acb21={};return _0x5acb21[_0x31f551]=_0x272c17,_0x5acb21;}[a74_0x4dc9b0(0xd1)](_0x29e78f){const _0x16febb=a74_0x4dc9b0,_0x4f45a1={'iQHZm':_0x16febb(0x16b),'LuNRK':_0x16febb(0x176),'MerRV':function(_0x1b3170,_0x3fc1e9){return _0x1b3170===_0x3fc1e9;},'dBRYW':'failed','CsWkB':_0x16febb(0x110),'MZwli':function(_0x25126f,_0xc5ee8e,_0x2d7b6f){return _0x25126f(_0xc5ee8e,_0x2d7b6f);},'KgeOU':function(_0x1c7e97,_0x2285e8){return _0x1c7e97>_0x2285e8;}},{testUUID:_0x1329e7,testData:_0xf218df}=_0x29e78f;if(!_0xf218df||!_0xf218df['uuid'])return logger[_0x16febb(0x108)](_0x4f45a1['iQHZm']),{};const _0xb891f1=this[_0x16febb(0xb2)](TestFrameworkState[_0x16febb(0x13d)],HookState[_0x16febb(0x152)]),_0x3c66d9=_0xf218df[_0x16febb(0x11e)],_0x49eef3=TestInfo[_0x16febb(0x15c)](_0x3c66d9)||{},_0x5afd85=_0x49eef3?_0x49eef3[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x31427e={..._0x49eef3,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0xf218df[_0x16febb(0x159)]||_0x4f45a1[_0x16febb(0x151)],[TestFrameworkConstants[_0x16febb(0xc9)]]:_0xf218df[_0x16febb(0x139)]||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x16febb(0x11d)](),[TestFrameworkConstants[_0x16febb(0x132)]]:_0x5afd85,[TestFrameworkConstants[_0x16febb(0xc2)]]:[],[TestFrameworkConstants[_0x16febb(0xa8)]]:_0xf218df[_0x16febb(0x146)]||{}};_0x4f45a1[_0x16febb(0x12e)](_0xf218df[_0x16febb(0x159)],_0x4f45a1[_0x16febb(0xc3)])&&_0xf218df[_0x16febb(0x107)]&&(_0x31427e[TestFrameworkConstants[_0x16febb(0xd6)]]=_0xf218df['failure_type']||_0x4f45a1['CsWkB'],_0x31427e[TestFrameworkConstants[_0x16febb(0x171)]]=_0xf218df[_0x16febb(0x13f)]||'',_0x31427e[TestFrameworkConstants[_0x16febb(0xff)]]=_0xf218df[_0x16febb(0x107)]);const _0x245ed5=TestInfo['getTestDetails'](_0x3c66d9)[TestFrameworkConstants[_0x16febb(0x172)]]||{},_0xd75932=_0x4f45a1[_0x16febb(0x13c)](getManualUploadLogs,_0x245ed5,_0xb891f1[_0x16febb(0xb6)]()['get'](_0x3c66d9)[TestFrameworkConstants[_0x16febb(0x158)]]);if(_0x4f45a1[_0x16febb(0xe9)](_0xd75932['length'],0x0)){const _0x4e27bd=_0x31427e[TestFrameworkConstants[_0x16febb(0xc2)]]||[];_0x31427e[TestFrameworkConstants['KEY_LOGS']]=[..._0x4e27bd,..._0xd75932];}_0xf218df[_0x16febb(0xc5)]&&_0x4f45a1[_0x16febb(0xe9)](_0xf218df[_0x16febb(0xc5)][_0x16febb(0x145)],0x0)&&(_0x31427e[TestFrameworkConstants[_0x16febb(0xbf)]]=_0xf218df[_0x16febb(0xc5)]);TestInfo[_0x16febb(0xb8)](_0x3c66d9,_0x31427e),logger['debug'](_0x16febb(0x15b)+_0xf218df[_0x16febb(0xfe)]+_0x16febb(0xce)+_0xf218df[_0x16febb(0x159)]);const _0x20a37f={};return _0x20a37f[_0x3c66d9]=_0x31427e,_0x20a37f;}async[a74_0x4dc9b0(0x119)](_0x37d159,_0x4ad532,_0x4e55a9,_0x48e7b7){const _0x44617a=a74_0x4dc9b0,_0x206e19={'ETQSd':_0x44617a(0x138),'LOsNG':function(_0x1f7824){return _0x1f7824();},'hLnDr':function(_0x596d80,_0x5e2281){return _0x596d80 in _0x5e2281;},'jZIjk':function(_0x5b7766,_0x2a9c83){return _0x5b7766===_0x2a9c83;},'hWVUq':function(_0xf90b99,_0x4e9d05){return _0xf90b99>_0x4e9d05;},'fYefV':function(_0x3251ab,_0x20e3b3){return _0x3251ab===_0x20e3b3;},'qeoYO':_0x44617a(0xee),'mtmkx':_0x44617a(0x110),'XqNcc':_0x44617a(0x124),'kAxEt':function(_0x26eaa1,_0x49fa7b){return _0x26eaa1!==_0x49fa7b;}},{hookData:_0x5c18be}=_0x48e7b7;if(!_0x5c18be)return logger[_0x44617a(0x108)](_0x206e19['ETQSd']),{};const _0x1ff23b=_0x5c18be['uuid']||_0x206e19[_0x44617a(0x10a)](uuidv4),_0x23f535=_0x5c18be[_0x44617a(0xf7)],_0x3f6afd=_0x4ad532['toString']()[_0x44617a(0x121)]('.')[0x1],_0x620740=TestInfo['getTestDetails'](_0x23f535)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0xd8de47=_0x37d159['getAllData']()[_0x44617a(0xcb)](_0x23f535);if(!_0xd8de47)return logger['debug']('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x23f535+_0x44617a(0xd3)),this[_0x44617a(0x106)](_0x37d159,_0x23f535,_0x4ad532,_0x4e55a9,_0x48e7b7),{};let _0xab3d16=_0xd8de47[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0xab3d16&&(_0xab3d16={});!_0x206e19[_0x44617a(0x10b)](_0x3f6afd,_0xab3d16)&&(_0xab3d16[_0x3f6afd]=[]);let _0x1cb6f9=_0xd8de47[TestFrameworkConstants[_0x44617a(0xbf)]];!_0x1cb6f9&&(_0x1cb6f9={});!_0x206e19['hLnDr'](_0x3f6afd,_0x1cb6f9)&&(_0x1cb6f9[_0x3f6afd]=[]);const _0x144444={[TestFrameworkConstants[_0x44617a(0x168)]]:_0xab3d16,[TestFrameworkConstants[_0x44617a(0xbf)]]:_0x1cb6f9},_0x34e063={};_0x34e063[_0x23f535]=_0x144444;const _0x3be7b1=_0x34e063;if(_0x206e19[_0x44617a(0x10d)](_0x4e55a9,HookState[_0x44617a(0xcf)])){const _0x5d0398={[TestFrameworkConstants[_0x44617a(0xec)]]:_0x1ff23b,[TestFrameworkConstants[_0x44617a(0xdc)]]:TestFrameworkConstants[_0x44617a(0xe0)],[TestFrameworkConstants[_0x44617a(0xf0)]]:_0x5c18be[_0x44617a(0xb4)],[TestFrameworkConstants[_0x44617a(0xdd)]]:[],[TestFrameworkConstants[_0x44617a(0xaa)]]:_0x5c18be[_0x44617a(0x115)],[TestFrameworkConstants[_0x44617a(0x132)]]:_0x620740};_0x5d0398[_0x44617a(0x116)]=_0x3f6afd;const _0x9107bb=_0x5d0398;_0xab3d16[_0x3f6afd][_0x44617a(0x11f)](_0x9107bb),_0x3be7b1[_0x23f535][TestFrameworkConstants[_0x44617a(0xe4)]]=_0x3f6afd,logger[_0x44617a(0x108)](_0x44617a(0x16a)+_0x3f6afd+_0x44617a(0xca)+_0x9107bb+'\x20\x20and\x20args\x20=\x20'+_0x48e7b7);}else{if(_0x206e19[_0x44617a(0x10d)](_0x4e55a9,HookState[_0x44617a(0x152)])){const _0x3e59af=_0x5c18be['result'],_0x1c2507=_0xab3d16[_0x3f6afd]||[];logger['debug'](_0x44617a(0x149)+_0x1c2507+_0x44617a(0xbc)+_0x48e7b7);if(_0x206e19[_0x44617a(0xad)](_0x1c2507['length'],0x0)){const _0x44cd93=_0x1c2507['pop']();_0x206e19[_0x44617a(0x141)](_0x5c18be[_0x44617a(0x159)],_0x206e19[_0x44617a(0xbb)])&&_0x5c18be[_0x44617a(0xf6)]?(_0x44cd93[TestFrameworkConstants[_0x44617a(0x112)]]=_0x5c18be[_0x44617a(0xc4)]||_0x206e19['mtmkx'],_0x44cd93[TestFrameworkConstants[_0x44617a(0x134)]]=_0x5c18be[_0x44617a(0x13f)]||'',_0x44cd93[TestFrameworkConstants[_0x44617a(0x127)]]=_0x5c18be['failure_data']):_0x44cd93[TestFrameworkConstants[_0x44617a(0xdc)]]=_0x206e19[_0x44617a(0x160)];_0x206e19['kAxEt'](_0x3e59af,TestFrameworkConstants[_0x44617a(0xe0)])&&(_0x44cd93[TestFrameworkConstants[_0x44617a(0xdc)]]=_0x3e59af);_0x44cd93[TestFrameworkConstants[_0x44617a(0xe6)]]=_0x5c18be[_0x44617a(0x162)]||new Date()[_0x44617a(0x11d)](),_0x44cd93[TestFrameworkConstants[_0x44617a(0x132)]]=_0x620740;const _0x184df1=_0x44cd93[TestFrameworkConstants['KEY_HOOK_ID']];!_0x1cb6f9[_0x3f6afd]&&(_0x1cb6f9[_0x3f6afd]=[]),_0x1cb6f9[_0x3f6afd][_0x44617a(0x11f)](_0x44cd93),_0x3be7b1[_0x23f535][TestFrameworkConstants[_0x44617a(0x105)]]=_0x3f6afd;}}}return logger[_0x44617a(0x108)](_0x44617a(0x100)+_0x5c18be[_0x44617a(0x115)]+_0x44617a(0x104)+_0x1ff23b+_0x44617a(0xbe)+_0x23f535),_0x3be7b1;}[a74_0x4dc9b0(0xd4)](_0x1b3f86){const _0x507d3a=a74_0x4dc9b0,_0x2232db={};_0x2232db[_0x507d3a(0xc8)]=_0x507d3a(0xea);const _0x376d60=_0x2232db;try{const _0x497b9a=_0x1b3f86[_0x507d3a(0x128)]?_0x1b3f86[_0x507d3a(0x128)]['id']:_0x1b3f86['hookData'][_0x507d3a(0xf7)],_0x1a4930=_0x1b3f86[_0x507d3a(0x12b)],_0x5c6fbb=_0x1a4930[_0x507d3a(0xab)](),_0x225b5f=_0x1a4930[_0x507d3a(0xb6)]()[_0x507d3a(0xcb)](_0x497b9a);if(!_0x225b5f)return logger['debug'](_0x507d3a(0xc1)+_0x497b9a),{};logger[_0x507d3a(0x108)](_0x507d3a(0xda)+_0x497b9a);const {[TestFrameworkConstants[_0x507d3a(0x120)]]:_0x5a8a05='',[TestFrameworkConstants[_0x507d3a(0xe8)]]:_0x5e5518='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x3b8e86='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x26906d=''}=_0x225b5f,_0x56c3d4=_0x1a4930['getCurrentTestState']()[_0x507d3a(0x173)]()['split']('.')[0x1],_0x4bc5d7=_0x1a4930[_0x507d3a(0xd2)]()[_0x507d3a(0x173)]()[_0x507d3a(0x121)]('.')[0x1],_0x46dfbc=global?.[_0x507d3a(0x14f)]??0x0,_0x4f4f05=_0x1a4930[_0x507d3a(0x16f)](),_0x1fdf8c=Buffer['from'](JSON[_0x507d3a(0x11c)](_0x225b5f))[_0x507d3a(0x173)](_0x376d60[_0x507d3a(0xc8)]),_0x4d0b4f={'hash':_0x5c6fbb[_0x507d3a(0x14d)](),'threadId':_0x5c6fbb[_0x507d3a(0x125)]()['toString'](),'processId':_0x5c6fbb[_0x507d3a(0x136)]()[_0x507d3a(0x173)]()},_0x35d6f6={};_0x35d6f6['platformIndex']=_0x46dfbc,_0x35d6f6['testFrameworkName']=_0x5a8a05,_0x35d6f6['testFrameworkVersion']=_0x5e5518,_0x35d6f6[_0x507d3a(0xeb)]=_0x56c3d4,_0x35d6f6[_0x507d3a(0x175)]=_0x4bc5d7,_0x35d6f6[_0x507d3a(0xb3)]=_0x3b8e86,_0x35d6f6[_0x507d3a(0xd5)]=_0x26906d,_0x35d6f6[_0x507d3a(0x11e)]=_0x4f4f05,_0x35d6f6['eventJson']=_0x1fdf8c,_0x35d6f6[_0x507d3a(0x10c)]=_0x4d0b4f;const _0x43a3c4=_0x35d6f6;return logger[_0x507d3a(0x108)](_0x507d3a(0xe1)+_0x497b9a+_0x507d3a(0x11a)+_0x56c3d4+'\x20hookState:\x20'+_0x4bc5d7),_0x43a3c4;}catch(_0x4b5ae6){return logger['error'](_0x507d3a(0x163)+util['format'](_0x4b5ae6)),{};}}async['sendLogCreatedEvent'](_0x494445,_0x401c70,_0x3624eb){const _0x256c8a=a74_0x4dc9b0,_0x4ca8f7={'EkPwd':function(_0x27ed1e,_0x27e5e9,_0x5814b8){return _0x27ed1e(_0x27e5e9,_0x5814b8);},'taXAk':function(_0x201e6f,_0x4b78a4){return _0x201e6f===_0x4b78a4;},'lFvrf':_0x256c8a(0x10f),'wCXBR':function(_0x36cded,_0x58e96b){return _0x36cded/_0x58e96b;},'sjkJL':function(_0xb58686,_0x107ef1){return _0xb58686<_0x107ef1;},'XLqfR':function(_0x4570b9,_0x24b6af){return _0x4570b9*_0x24b6af;},'EGXCr':function(_0x418d61,_0x8ce134){return _0x418d61+_0x8ce134;},'niuFe':function(_0x1052e2,_0x2c5cb5){return _0x1052e2+_0x2c5cb5;},'Zfzye':_0x256c8a(0x16d)};try{const _0x3ce755=_0x3624eb['testUUID'],_0x357d94=_0x494445['getAllData']()[_0x256c8a(0xcb)](_0x3ce755),{[TestFrameworkConstants[_0x256c8a(0x120)]]:_0x784a48='',[TestFrameworkConstants[_0x256c8a(0xe8)]]:_0x593485=''}=_0x357d94,_0x95f41=TestInfo[_0x256c8a(0x11b)](_0x3ce755),_0x34159b=TestInfo[_0x256c8a(0x15c)](_0x3ce755)[TestFrameworkConstants[_0x256c8a(0x172)]]||{},_0x1d0326=_0x4ca8f7[_0x256c8a(0x137)](getMediaArtifactsLogs,_0x34159b,_0x494445['getAllData']()[_0x256c8a(0xcb)](_0x3ce755)[TestFrameworkConstants[_0x256c8a(0x158)]]),_0x3ef83e=(_0x95f41||[])['concat'](_0x1d0326||[]);if(!_0x3ef83e||_0x4ca8f7['taXAk'](_0x3ef83e[_0x256c8a(0x145)],0x0)){logger[_0x256c8a(0x108)](_0x4ca8f7[_0x256c8a(0x102)]);return;}const _0x3e5154=0x28,_0x52a2da=Math[_0x256c8a(0xf2)](_0x4ca8f7[_0x256c8a(0xdf)](_0x3ef83e[_0x256c8a(0x145)],_0x3e5154));for(let _0x4ad51d=0x0;_0x4ca8f7[_0x256c8a(0x161)](_0x4ad51d,_0x52a2da);_0x4ad51d++){const _0x1819bc=_0x4ca8f7[_0x256c8a(0xef)](_0x4ad51d,_0x3e5154),_0x1ec81b=_0x4ca8f7[_0x256c8a(0x15f)](_0x1819bc,_0x3e5154),_0x3a70cb=_0x3ef83e[_0x256c8a(0xb9)](_0x1819bc,_0x1ec81b),_0x4bdc98={'platformIndex':global?.[_0x256c8a(0x14f)]??0x0,'logs':_0x3a70cb,'testFrameworkName':_0x784a48,'testFrameworkVersion':_0x593485,'testFrameworkState':_0x401c70['toString']()[_0x256c8a(0x121)]('.')[0x1]};logger['debug'](_0x256c8a(0xc0)+_0x3ce755+_0x256c8a(0x143)+_0x4ca8f7['niuFe'](_0x4ad51d,0x1)+'/'+_0x52a2da+_0x256c8a(0x14a)+util[_0x256c8a(0x13b)](_0x4bdc98));const _0x1a3b0b=await GrpcClient[_0x256c8a(0xb5)]()[_0x256c8a(0x135)](_0x4bdc98);logger[_0x256c8a(0x108)](_0x256c8a(0xc0)+_0x3ce755+'\x20batch\x20'+_0x4ca8f7[_0x256c8a(0x15f)](_0x4ad51d,0x1)+'/'+_0x52a2da+_0x256c8a(0x165)+util[_0x256c8a(0x13b)](_0x1a3b0b));}}catch(_0x4a1de0){logger['error'](_0x256c8a(0x130)+util[_0x256c8a(0x113)](_0x4a1de0));}logger[_0x256c8a(0x108)](_0x4ca8f7[_0x256c8a(0x12f)]);}[a74_0x4dc9b0(0x106)](_0x58fe2c,_0x2f4ea5,_0x54d665,_0x4abf8c,_0x4f522b){const _0x2fe1be=a74_0x4dc9b0,_0x44a52a={'testId':_0x2f4ea5,'testFrameworkState':_0x54d665,'hookState':_0x4abf8c,'args':_0x4f522b,'timestamp':new Date()[_0x2fe1be(0x11d)]()};_0x58fe2c[_0x2fe1be(0xd0)](_0x2f4ea5,_0x44a52a),logger[_0x2fe1be(0x108)]('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x2f4ea5+_0x2fe1be(0xc7)+_0x54d665+',\x20hookState:\x20'+_0x4abf8c);}async[a74_0x4dc9b0(0x156)](_0x500aad,_0x4b1a03){const _0x5b3903=a74_0x4dc9b0,_0x567153={};_0x567153[_0x5b3903(0x16c)]=function(_0x27e730,_0x483187){return _0x27e730>_0x483187;};const _0x194723=_0x567153;if(!_0x500aad[_0x5b3903(0x169)](_0x4b1a03))return;const _0x26e57f=_0x500aad['getPendingHooks'](_0x4b1a03);logger['debug'](_0x5b3903(0x153)+_0x26e57f[_0x5b3903(0x145)]+_0x5b3903(0xf3)+_0x4b1a03);for(const _0x16d170 of _0x26e57f){try{const _0x45f3b9=await this[_0x5b3903(0x119)](_0x500aad,_0x16d170['testFrameworkState'],_0x16d170[_0x5b3903(0x175)],_0x16d170[_0x5b3903(0xa7)]);_0x45f3b9&&_0x194723[_0x5b3903(0x16c)](Object['keys'](_0x45f3b9)[_0x5b3903(0x145)],0x0)&&_0x500aad[_0x5b3903(0xba)](_0x45f3b9),await this[_0x5b3903(0xfa)](_0x500aad,_0x16d170[_0x5b3903(0xeb)],_0x16d170[_0x5b3903(0x175)],_0x16d170[_0x5b3903(0xa7)]);}catch(_0x4a3dc0){logger[_0x5b3903(0x129)](_0x5b3903(0x101)+_0x4b1a03+_0x5b3903(0x111)+_0x4a3dc0);}}_0x500aad[_0x5b3903(0x148)](_0x4b1a03),logger[_0x5b3903(0x108)](_0x5b3903(0xac)+_0x4b1a03);}}function a74_0x240c(_0x117091,_0x28f0d1){const _0x242bc2=a74_0x242b();return a74_0x240c=function(_0x240c10,_0x1e6978){_0x240c10=_0x240c10-0xa7;let _0x399e28=_0x242bc2[_0x240c10];return _0x399e28;},a74_0x240c(_0x117091,_0x28f0d1);}module[a74_0x4dc9b0(0x142)]=CucumberTestFramework;
1
+ function a74_0x18b9(){const _0x4ed99e=['KEY_AUTOMATE_SESSION_NAME','PfKFm','getId','KEY_HOOK_FAILURE_TYPE','FpWiL','ijTAY','KEY_TEST_SCOPES','hookState','getPendingHooks','KEY_CUSTOM_TAGS','split','getAllData','inspect','addMultipleEntries','\x20pending\x20hooks\x20for\x20testId:\x20','result','KEY_TEST_LOGS','\x20\x20and\x20args\x20=\x20','KEY_HOOKS_FINISHED','args','endedAt','mDeqi','10ClEPki','sGpki','GmyAD','location','INIT_TEST','1281056mFfCPJ','scopes','SOgkp','LFeVH','failure_type','parseCucumberTestResult','UyJTM','KEY_TEST_NAME',',\x20state=','hooks','platformIndex','stringify','getTestUUID','KEY_HOOK_LAST_FINISHED','zuefr','\x20&\x20hook\x20=\x20','processPendingHooks','29981886TWyLAY','failure','KEY_TEST_SCOPE','addPendingHook','file_name','length','unknown','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','resolveInstance','NURmo','setTestDetails','1548340DCVXBh','\x20&\x20hookState=','started_at','trackHookEvent','trackCucumberInstance','KEY_TEST_FRAMEWORK_VERSION','push','./testFramework','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','433832LPVQit','testData','KEY_HOOK_ID','hasPendingHooks','browserstackPlatformIndex','ReSwQ','../grpcClient',',\x20storing\x20as\x20pending\x20hook','\x20with\x20result:\x20','KEY_TEST_FRAMEWORK_NAME','from','POST','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','matchHookRegex','VxrRj','Cucumber\x20log\x20created\x20event','passed','getRef','../TestInfo.js','hook_type','getThreadId','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','nQgpY',',\x20hookState:\x20','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','KEY_LOGS','wHRFT','Stored\x20pending\x20hook\x20for\x20testId:\x20','Parsed\x20cucumber\x20test:\x20','HmvIp','failure_reason','TXpTT','KEY_TEST_FAILURE_REASON','createTestFrameworkEventPayload','testFrameworkVersion','KEY_TEST_FAILURE','5191374xVyqWC','NONE','failed','TEST','getContext','3400GBNNzS','FINXM','createContext','../cliUtils.js','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','body','NalVc','getTrackedInstance','BtjRZ','\x20with\x20UUID:\x20','slice','\x20response=','sendLogCreatedEvent:\x20for\x20testId:\x20','getTestFrameworks','getCurrentHookState','KEY_TEST_FILE_PATH','setTrackedInstance','code','../state/testFrameworkState.js','toString','OOmzi','executionContext','KEY_TEST_LOCATION','7tOaLwU','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','KEY_HOOK_LAST_STARTED','Error\x20in\x20createTestFrameworkEventPayload:\x20','mMvwd','meta','eventJson','GqvyK','KEY_TEST_RESULT','test_run_id','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','KEY_TEST_ENDED_AT','jckOp','UnhandledError','sXniI','base64','getCurrentInstanceName','startedAt','KEY_HOOK_FAILURE','runHooks','ceil','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','../instances/testFrameworkInstance.js','logCreatedEvent','\x20and\x20args\x20=\x20','vWgdT','getTestFrameworksVersions','get','udCSa','testUUID','yjTJQ','error','finishedAt','sendLogCreatedEvent','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_HOOKS_STARTED','DEFAULT_HOOK_RESULT','debug','YXleE','KEY_TEST_CODE','toISOString','readLogObjects','concat','KEY_TEST_META','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','removePendingHooks','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','KEY_TEST_RERUN_NAME','name','KEY_TEST_TAGS','PRE','instance','Tracked\x20cucumber\x20hook\x20event:\x20','KrxYI','KEY_TEST_STARTED_AT','\x20testState:\x20','\x20target=','trackEvent','KEY_EVENT_ENDED_AT','createTestFrameworkEventPayload\x20testId:\x20','ZvabK','testFrameworkState','failure_data','parseCucumberTest','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','../../../helpers/classLogger.js','test','uuid','storePendingHook','tags','keys','KEY_EVENT_STARTED_AT','CucumberTestFramework','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','trackCucumberInstance:\x20saved\x20instance\x20contextId=','getTestDetails','3IeWaMm','customRerunParam','\x20batch\x20','KEY_HOOK_RESULT','JBWYR','1477094JUmYZQ','37845NOVGcu','KEY_TEST_UUID','format'];a74_0x18b9=function(){return _0x4ed99e;};return a74_0x18b9();}const a74_0x3d9ad3=a74_0x5442;function a74_0x5442(_0x26baef,_0x1edd42){const _0x18b9d1=a74_0x18b9();return a74_0x5442=function(_0x5442ff,_0x81cd07){_0x5442ff=_0x5442ff-0x68;let _0x666d0b=_0x18b9d1[_0x5442ff];return _0x666d0b;},a74_0x5442(_0x26baef,_0x1edd42);}(function(_0x14d0fc,_0x30a767){const _0x3c7b8a=a74_0x5442,_0x2d475e=_0x14d0fc();while(!![]){try{const _0x13bdfc=parseInt(_0x3c7b8a(0xbe))/0x1+-parseInt(_0x3c7b8a(0x79))/0x2*(parseInt(_0x3c7b8a(0x74))/0x3)+parseInt(_0x3c7b8a(0xb5))/0x4*(parseInt(_0x3c7b8a(0x93))/0x5)+-parseInt(_0x3c7b8a(0xe2))/0x6*(parseInt(_0x3c7b8a(0xfe))/0x7)+-parseInt(_0x3c7b8a(0x98))/0x8+-parseInt(_0x3c7b8a(0x7a))/0x9*(parseInt(_0x3c7b8a(0xe7))/0xa)+parseInt(_0x3c7b8a(0xa9))/0xb;if(_0x13bdfc===_0x30a767)break;else _0x2d475e['push'](_0x2d475e['shift']());}catch(_0x1484c1){_0x2d475e['push'](_0x2d475e['shift']());}}}(a74_0x18b9,0xb4ab4));const TestFramework=require(a74_0x3d9ad3(0xbc)),TestFrameworkState=require(a74_0x3d9ad3(0xf9)),HookState=require('../state/hookState.js'),{createClassLogger}=require(a74_0x3d9ad3(0x69)),TestFrameworkInstance=require(a74_0x3d9ad3(0x114)),CLIUtils=require(a74_0x3d9ad3(0xea)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a74_0x3d9ad3(0x70)),{v4:uuidv4}=require(a74_0x3d9ad3(0x6b)),util=require('util'),TestInfo=require(a74_0x3d9ad3(0xd0)),GrpcClient=require(a74_0x3d9ad3(0xc4));class CucumberTestFramework extends TestFramework{constructor(_0x4c98ff,_0x1fa9cc,_0x259ce8){super(_0x4c98ff,_0x1fa9cc,_0x259ce8);}async[a74_0x3d9ad3(0x137)](_0xf2ccf9,_0x1fd886,_0x4be7e1={}){const _0x14a123=a74_0x3d9ad3,_0xef3312={};_0xef3312[_0x14a123(0x9b)]=_0x14a123(0x108),_0xef3312[_0x14a123(0x92)]=function(_0x3d8df2,_0x2b993f){return _0x3d8df2===_0x2b993f;},_0xef3312[_0x14a123(0x7e)]=function(_0x35d850,_0x5bb9b7){return _0x35d850===_0x5bb9b7;},_0xef3312[_0x14a123(0xef)]=function(_0x417161,_0x2f18a0){return _0x417161===_0x2f18a0;},_0xef3312['NURmo']=_0x14a123(0xd3);const _0x321d7d=_0xef3312;await super[_0x14a123(0x137)](_0xf2ccf9,_0x1fd886,_0x4be7e1);const _0x161f4c=this[_0x14a123(0xb2)](_0xf2ccf9,_0x1fd886,_0x4be7e1);if(!_0x161f4c){logger[_0x14a123(0x123)](_0x321d7d['LFeVH']);return;}try{let _0x493179,_0x446555;switch(_0xf2ccf9){case TestFrameworkState[_0x14a123(0xe5)]:_0x493179=_0x4be7e1['test'],_0x446555=TestInfo[_0x14a123(0xa4)](_0x493179['id']);if(_0x321d7d[_0x14a123(0x92)](_0x1fd886,HookState[_0x14a123(0x130)])){logger[_0x14a123(0x123)](_0x14a123(0xb1)+_0x493179['id']);const _0x353f52={};_0x353f52['testUUID']=_0x446555,_0x353f52['testData']=_0x493179,_0x161f4c[_0x14a123(0x8a)](this[_0x14a123(0x13d)](_0x353f52)),logger[_0x14a123(0x123)](_0x14a123(0xeb)+_0x493179['id']),await this['processPendingHooks'](_0x161f4c,_0x493179['id']);}else{if(_0x321d7d['PfKFm'](_0x1fd886,HookState[_0x14a123(0xc9)])){const _0x4854d4={};_0x4854d4[_0x14a123(0x11b)]=_0x446555,_0x4854d4[_0x14a123(0xbf)]=_0x493179,_0x161f4c[_0x14a123(0x8a)](this[_0x14a123(0x9d)](_0x4854d4)),await this[_0x14a123(0xa8)](_0x161f4c,_0x493179['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x321d7d[_0x14a123(0xef)](_0x1fd886,HookState[_0x14a123(0xc9)])&&await this[_0x14a123(0x11f)](_0x161f4c,_0xf2ccf9,_0x4be7e1);break;default:if(CLIUtils[_0x14a123(0xcb)](_0xf2ccf9[_0x14a123(0xfa)]()['split']('.')[0x1])){const _0x34d126=await this[_0x14a123(0xb8)](_0x161f4c,_0xf2ccf9,_0x1fd886,_0x4be7e1);_0x161f4c['addMultipleEntries'](_0x34d126);}else logger[_0x14a123(0x123)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0xf2ccf9+_0x14a123(0xb6)+_0x1fd886);break;}}catch(_0x174451){logger['error'](util[_0x14a123(0x7c)](_0x321d7d[_0x14a123(0xb3)],_0xf2ccf9,_0x1fd886,_0x4be7e1[_0x14a123(0xae)],_0x174451));}_0x4be7e1['instance']=_0x161f4c,await this['runHooks'](_0x161f4c,_0xf2ccf9,_0x1fd886,_0x4be7e1);}['resolveInstance'](_0x146751,_0x2f2094,_0x5f1d37={}){const _0x4b2bca=a74_0x3d9ad3,_0x369b68={};_0x369b68[_0x4b2bca(0x13a)]=function(_0x3cbc2b,_0xfd9d03){return _0x3cbc2b===_0xfd9d03;};const _0x245621=_0x369b68;let _0x5397a5=null;return(_0x245621[_0x4b2bca(0x13a)](_0x146751,TestFrameworkState[_0x4b2bca(0x97)])||_0x245621['ZvabK'](_0x146751,TestFrameworkState[_0x4b2bca(0xe3)]))&&this[_0x4b2bca(0xb9)](_0x146751,_0x5f1d37),_0x5397a5=TestFramework[_0x4b2bca(0xee)](),_0x5397a5;}['trackCucumberInstance'](_0xb8e515,_0x57da30){const _0x22e759=a74_0x3d9ad3,_0x2d40fb=CLIUtils[_0x22e759(0x10e)](),_0x27f16b=TrackedInstance[_0x22e759(0xe9)](_0x2d40fb);let _0x3cac0f=null;logger['debug'](_0x22e759(0xd6)+_0x2d40fb+_0x22e759(0xa0)+_0xb8e515),_0x3cac0f=new TestFrameworkInstance(_0x27f16b,this[_0x22e759(0xf4)](),this['getTestFrameworksVersions'](),_0xb8e515,HookState['NONE']),TestFramework[_0x22e759(0xf7)](_0x27f16b,_0x3cac0f),logger[_0x22e759(0x123)](_0x22e759(0x72)+_0x27f16b['getId']()+_0x22e759(0x136)+_0x2d40fb);}[a74_0x3d9ad3(0x13d)](_0x4c9008){const _0x6895fd=a74_0x3d9ad3,_0x8ade1f={};_0x8ade1f[_0x6895fd(0xc3)]=_0x6895fd(0xff);const _0x37d999=_0x8ade1f,{testUUID:_0x12bda9,testData:_0x3c5776}=_0x4c9008;if(!_0x3c5776||!_0x3c5776['uuid'])return logger[_0x6895fd(0x123)](_0x37d999[_0x6895fd(0xc3)]),{};const _0x18b2ca=_0x12bda9,_0x1f781c=_0x3c5776[_0x6895fd(0x6b)],_0x197a59=this[_0x6895fd(0xf4)]()[0x0],_0x264458=this[_0x6895fd(0x118)](),_0x11946b={[TestFrameworkConstants[_0x6895fd(0xc7)]]:_0x197a59,[TestFrameworkConstants[_0x6895fd(0xba)]]:_0x264458[_0x197a59],[TestFrameworkConstants[_0x6895fd(0x8d)]]:[],[TestFrameworkConstants[_0x6895fd(0x8f)]]:{},[TestFrameworkConstants[_0x6895fd(0x121)]]:{},[TestFrameworkConstants[_0x6895fd(0x7b)]]:_0x18b2ca,[TestFrameworkConstants[_0x6895fd(0x106)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x6895fd(0x7d)]]:_0x3c5776[_0x6895fd(0x12e)]||'',[TestFrameworkConstants[_0x6895fd(0xf6)]]:_0x3c5776[_0x6895fd(0xad)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x1f781c,[TestFrameworkConstants[_0x6895fd(0x9f)]]:_0x3c5776['name']||'',[TestFrameworkConstants[_0x6895fd(0xfd)]]:_0x3c5776[_0x6895fd(0x96)]||'',[TestFrameworkConstants[_0x6895fd(0x125)]]:_0x3c5776[_0x6895fd(0xec)]?.[_0x6895fd(0xf8)]||null,[TestFrameworkConstants[_0x6895fd(0x12f)]]:_0x3c5776[_0x6895fd(0x6d)]||[],[TestFrameworkConstants[_0x6895fd(0x134)]]:_0x3c5776[_0x6895fd(0x10f)]||new Date()[_0x6895fd(0x126)](),[TestFrameworkConstants[_0x6895fd(0xab)]]:_0x3c5776[_0x6895fd(0x99)]?.[0x0]||'',[TestFrameworkConstants[_0x6895fd(0x83)]]:_0x3c5776[_0x6895fd(0x99)]||[],[TestFrameworkConstants[_0x6895fd(0x12d)]]:_0x3c5776[_0x6895fd(0x75)]?.['rerun_name']||_0x3c5776[_0x6895fd(0x12e)]||'',[TestFrameworkConstants[_0x6895fd(0x86)]]:{},[TestFrameworkConstants[_0x6895fd(0x129)]]:_0x3c5776['meta']||{}};TestInfo['setTestDetails'](_0x1f781c,_0x11946b),logger[_0x6895fd(0x123)](_0x6895fd(0xda)+_0x3c5776['name']+_0x6895fd(0xf0)+_0x18b2ca);const _0x283593={};return _0x283593[_0x1f781c]=_0x11946b,_0x283593;}[a74_0x3d9ad3(0x9d)](_0x17767f){const _0x2cc3aa=a74_0x3d9ad3,_0x179727={'KrxYI':_0x2cc3aa(0xca),'mMvwd':_0x2cc3aa(0xaf),'NalVc':function(_0x27977c,_0x43db2f){return _0x27977c===_0x43db2f;},'yjTJQ':_0x2cc3aa(0xe4),'sXniI':_0x2cc3aa(0x10b),'UyJTM':function(_0xa3fb82,_0x84d081,_0x1f7f95){return _0xa3fb82(_0x84d081,_0x1f7f95);},'FINXM':function(_0x378838,_0x3a6148){return _0x378838>_0x3a6148;}},{testUUID:_0x5c6ca1,testData:_0x964eb1}=_0x17767f;if(!_0x964eb1||!_0x964eb1[_0x2cc3aa(0x6b)])return logger[_0x2cc3aa(0x123)](_0x179727[_0x2cc3aa(0x133)]),{};const _0x50e38f=this[_0x2cc3aa(0xb2)](TestFrameworkState[_0x2cc3aa(0xe5)],HookState[_0x2cc3aa(0xc9)]),_0x23d216=_0x964eb1[_0x2cc3aa(0x6b)],_0x527ac3=TestInfo['getTestDetails'](_0x23d216)||{},_0x5bb988=_0x527ac3?_0x527ac3[TestFrameworkConstants[_0x2cc3aa(0x86)]]||{}:{},_0x55e746={..._0x527ac3,[TestFrameworkConstants[_0x2cc3aa(0x106)]]:_0x964eb1[_0x2cc3aa(0x8c)]||_0x179727[_0x2cc3aa(0x102)],[TestFrameworkConstants[_0x2cc3aa(0x109)]]:_0x964eb1[_0x2cc3aa(0x11e)]||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x2cc3aa(0x126)](),[TestFrameworkConstants[_0x2cc3aa(0x86)]]:_0x5bb988,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants[_0x2cc3aa(0x129)]]:_0x964eb1[_0x2cc3aa(0x103)]||{}};_0x179727[_0x2cc3aa(0xed)](_0x964eb1[_0x2cc3aa(0x8c)],_0x179727[_0x2cc3aa(0x11c)])&&_0x964eb1[_0x2cc3aa(0xaa)]&&(_0x55e746[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x964eb1[_0x2cc3aa(0x9c)]||_0x179727[_0x2cc3aa(0x10c)],_0x55e746[TestFrameworkConstants[_0x2cc3aa(0xde)]]=_0x964eb1[_0x2cc3aa(0xdc)]||'',_0x55e746[TestFrameworkConstants[_0x2cc3aa(0xe1)]]=_0x964eb1[_0x2cc3aa(0xaa)]);const _0x11fd4d=TestInfo[_0x2cc3aa(0x73)](_0x23d216)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x75e9f6=_0x179727[_0x2cc3aa(0x9e)](getManualUploadLogs,_0x11fd4d,_0x50e38f[_0x2cc3aa(0x88)]()[_0x2cc3aa(0x119)](_0x23d216)[TestFrameworkConstants[_0x2cc3aa(0x7b)]]);if(_0x179727[_0x2cc3aa(0xe8)](_0x75e9f6[_0x2cc3aa(0xae)],0x0)){const _0x10fe2e=_0x55e746[TestFrameworkConstants[_0x2cc3aa(0xd7)]]||[];_0x55e746[TestFrameworkConstants[_0x2cc3aa(0xd7)]]=[..._0x10fe2e,..._0x75e9f6];}_0x964eb1[_0x2cc3aa(0xa1)]&&_0x179727[_0x2cc3aa(0xe8)](_0x964eb1[_0x2cc3aa(0xa1)]['length'],0x0)&&(_0x55e746[TestFrameworkConstants[_0x2cc3aa(0x8f)]]=_0x964eb1[_0x2cc3aa(0xa1)]);TestInfo[_0x2cc3aa(0xb4)](_0x23d216,_0x55e746),logger[_0x2cc3aa(0x123)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x964eb1[_0x2cc3aa(0x12e)]+_0x2cc3aa(0xc6)+_0x964eb1[_0x2cc3aa(0x8c)]);const _0x2fa879={};return _0x2fa879[_0x23d216]=_0x55e746,_0x2fa879;}async['trackHookEvent'](_0x3659fa,_0x49e89e,_0xbaf3d1,_0x4d54c0){const _0x519fe5=a74_0x3d9ad3,_0x2f9fa2={'ijTAY':_0x519fe5(0x12a),'zuefr':function(_0x29c3e6){return _0x29c3e6();},'jckOp':function(_0xe918a4,_0x3ced2a){return _0xe918a4 in _0x3ced2a;},'GqvyK':function(_0x3fadd6,_0x45d2b2){return _0x3fadd6 in _0x45d2b2;},'GmyAD':function(_0x4ce6ff,_0x344260){return _0x4ce6ff===_0x344260;},'JBWYR':function(_0x37ed8b,_0x253f2f){return _0x37ed8b>_0x253f2f;},'RQUAU':function(_0x170fff,_0xafb0bb){return _0x170fff===_0xafb0bb;},'YXleE':_0x519fe5(0xe4),'VxrRj':_0x519fe5(0x10b),'dSgFB':_0x519fe5(0xce),'OOmzi':function(_0x129a7e,_0x3eee91){return _0x129a7e!==_0x3eee91;}},{hookData:_0x2c170e}=_0x4d54c0;if(!_0x2c170e)return logger[_0x519fe5(0x123)](_0x2f9fa2[_0x519fe5(0x82)]),{};const _0x9a49a2=_0x2c170e[_0x519fe5(0x6b)]||_0x2f9fa2[_0x519fe5(0xa6)](uuidv4),_0x1ab39b=_0x2c170e[_0x519fe5(0x107)],_0x249c3d=_0x49e89e[_0x519fe5(0xfa)]()['split']('.')[0x1],_0x41100d=TestInfo['getTestDetails'](_0x1ab39b)[TestFrameworkConstants[_0x519fe5(0x86)]]||{},_0x512e49=_0x3659fa['getAllData']()[_0x519fe5(0x119)](_0x1ab39b);if(!_0x512e49)return logger[_0x519fe5(0x123)](_0x519fe5(0xbd)+_0x1ab39b+_0x519fe5(0xc5)),this[_0x519fe5(0x6c)](_0x3659fa,_0x1ab39b,_0x49e89e,_0xbaf3d1,_0x4d54c0),{};let _0x15be68=_0x512e49[TestFrameworkConstants[_0x519fe5(0x121)]];!_0x15be68&&(_0x15be68={});!_0x2f9fa2[_0x519fe5(0x10a)](_0x249c3d,_0x15be68)&&(_0x15be68[_0x249c3d]=[]);let _0x3362ae=_0x512e49[TestFrameworkConstants[_0x519fe5(0x8f)]];!_0x3362ae&&(_0x3362ae={});!_0x2f9fa2[_0x519fe5(0x105)](_0x249c3d,_0x3362ae)&&(_0x3362ae[_0x249c3d]=[]);const _0x3c29d1={[TestFrameworkConstants[_0x519fe5(0x121)]]:_0x15be68,[TestFrameworkConstants[_0x519fe5(0x8f)]]:_0x3362ae},_0x3419e1={};_0x3419e1[_0x1ab39b]=_0x3c29d1;const _0x346adc=_0x3419e1;if(_0x2f9fa2[_0x519fe5(0x95)](_0xbaf3d1,HookState['PRE'])){const _0x5956f9={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x9a49a2,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x519fe5(0x122)],[TestFrameworkConstants[_0x519fe5(0x6f)]]:_0x2c170e[_0x519fe5(0xb7)],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x2c170e[_0x519fe5(0xd1)],[TestFrameworkConstants[_0x519fe5(0x86)]]:_0x41100d};_0x5956f9['key']=_0x249c3d;const _0x35c0b1=_0x5956f9;_0x15be68[_0x249c3d][_0x519fe5(0xbb)](_0x35c0b1),_0x346adc[_0x1ab39b][TestFrameworkConstants[_0x519fe5(0x100)]]=_0x249c3d,logger[_0x519fe5(0x123)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x249c3d+_0x519fe5(0xa7)+_0x35c0b1+_0x519fe5(0x8e)+_0x4d54c0);}else{if(_0x2f9fa2[_0x519fe5(0x95)](_0xbaf3d1,HookState[_0x519fe5(0xc9)])){const _0x101978=_0x2c170e[_0x519fe5(0x8c)],_0x5ef282=_0x15be68[_0x249c3d]||[];logger[_0x519fe5(0x123)](_0x519fe5(0x68)+_0x5ef282+_0x519fe5(0x116)+_0x4d54c0);if(_0x2f9fa2[_0x519fe5(0x78)](_0x5ef282[_0x519fe5(0xae)],0x0)){const _0x6d984b=_0x5ef282['pop']();_0x2f9fa2['RQUAU'](_0x2c170e['result'],_0x2f9fa2[_0x519fe5(0x124)])&&_0x2c170e[_0x519fe5(0x13c)]?(_0x6d984b[TestFrameworkConstants[_0x519fe5(0x80)]]=_0x2c170e[_0x519fe5(0x9c)]||_0x2f9fa2[_0x519fe5(0xcc)],_0x6d984b[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x2c170e[_0x519fe5(0xdc)]||'',_0x6d984b[TestFrameworkConstants[_0x519fe5(0x110)]]=_0x2c170e['failure_data']):_0x6d984b[TestFrameworkConstants[_0x519fe5(0x77)]]=_0x2f9fa2['dSgFB'];_0x2f9fa2[_0x519fe5(0xfb)](_0x101978,TestFrameworkConstants[_0x519fe5(0x122)])&&(_0x6d984b[TestFrameworkConstants[_0x519fe5(0x77)]]=_0x101978);_0x6d984b[TestFrameworkConstants[_0x519fe5(0x138)]]=_0x2c170e['finished_at']||new Date()[_0x519fe5(0x126)](),_0x6d984b[TestFrameworkConstants[_0x519fe5(0x86)]]=_0x41100d;const _0x105991=_0x6d984b[TestFrameworkConstants[_0x519fe5(0xc0)]];!_0x3362ae[_0x249c3d]&&(_0x3362ae[_0x249c3d]=[]),_0x3362ae[_0x249c3d]['push'](_0x6d984b),_0x346adc[_0x1ab39b][TestFrameworkConstants[_0x519fe5(0xa5)]]=_0x249c3d;}}}return logger[_0x519fe5(0x123)](_0x519fe5(0x132)+_0x2c170e[_0x519fe5(0xd1)]+'\x20with\x20id\x20'+_0x9a49a2+'\x20for\x20test:\x20'+_0x1ab39b),_0x346adc;}[a74_0x3d9ad3(0xdf)](_0x410f68){const _0xd1d832=a74_0x3d9ad3,_0x537101={};_0x537101[_0xd1d832(0x117)]=_0xd1d832(0x10d);const _0x4f8d10=_0x537101;try{const _0x11e096=_0x410f68['test']?_0x410f68[_0xd1d832(0x6a)]['id']:_0x410f68['hookData']['test_run_id'],_0x5c3985=_0x410f68[_0xd1d832(0x131)],_0x55472b=_0x5c3985[_0xd1d832(0xe6)](),_0x3eb5ed=_0x5c3985[_0xd1d832(0x88)]()[_0xd1d832(0x119)](_0x11e096);if(!_0x3eb5ed)return logger[_0xd1d832(0x123)](_0xd1d832(0xb0)+_0x11e096),{};logger['debug'](_0xd1d832(0x139)+_0x11e096);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x38bcc8='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x39d58d='',[TestFrameworkConstants[_0xd1d832(0x134)]]:_0xe4e546='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x418128=''}=_0x3eb5ed,_0x92eeeb=_0x5c3985['getCurrentTestState']()[_0xd1d832(0xfa)]()['split']('.')[0x1],_0x22751b=_0x5c3985[_0xd1d832(0xf5)]()[_0xd1d832(0xfa)]()[_0xd1d832(0x87)]('.')[0x1],_0x54ffcb=global?.[_0xd1d832(0xc2)]??0x0,_0xe5dacb=_0x5c3985[_0xd1d832(0xcf)](),_0x55931c=Buffer[_0xd1d832(0xc8)](JSON[_0xd1d832(0xa3)](_0x3eb5ed))[_0xd1d832(0xfa)](_0x4f8d10[_0xd1d832(0x117)]),_0x65d5d8={'hash':_0x55472b[_0xd1d832(0x7f)](),'threadId':_0x55472b[_0xd1d832(0xd2)]()[_0xd1d832(0xfa)](),'processId':_0x55472b['getProcessId']()[_0xd1d832(0xfa)]()},_0x1fbe8a={};_0x1fbe8a[_0xd1d832(0xa2)]=_0x54ffcb,_0x1fbe8a['testFrameworkName']=_0x38bcc8,_0x1fbe8a[_0xd1d832(0xe0)]=_0x39d58d,_0x1fbe8a[_0xd1d832(0x13b)]=_0x92eeeb,_0x1fbe8a[_0xd1d832(0x84)]=_0x22751b,_0x1fbe8a[_0xd1d832(0x10f)]=_0xe4e546,_0x1fbe8a[_0xd1d832(0x91)]=_0x418128,_0x1fbe8a[_0xd1d832(0x6b)]=_0xe5dacb,_0x1fbe8a[_0xd1d832(0x104)]=_0x55931c,_0x1fbe8a[_0xd1d832(0xfc)]=_0x65d5d8;const _0x2a88b1=_0x1fbe8a;return logger[_0xd1d832(0x123)](_0xd1d832(0x120)+_0x11e096+_0xd1d832(0x135)+_0x92eeeb+'\x20hookState:\x20'+_0x22751b),_0x2a88b1;}catch(_0x12783c){return logger[_0xd1d832(0x11d)](_0xd1d832(0x101)+util[_0xd1d832(0x7c)](_0x12783c)),{};}}async[a74_0x3d9ad3(0x11f)](_0x4a861a,_0x2183da,_0x47eafe){const _0x5929f7=a74_0x3d9ad3,_0x20d325={'sGpki':function(_0x4c0b32,_0x559d22,_0x58b299){return _0x4c0b32(_0x559d22,_0x58b299);},'uXUPr':function(_0x3d1aae,_0x15b14d){return _0x3d1aae===_0x15b14d;},'HmvIp':_0x5929f7(0x71),'TXpTT':function(_0x44dfaf,_0x20a2a8){return _0x44dfaf/_0x20a2a8;},'udCSa':function(_0x4adf27,_0x58fc8d){return _0x4adf27<_0x58fc8d;},'FpWiL':function(_0x2dab5b,_0x4803a0){return _0x2dab5b*_0x4803a0;},'wHRFT':function(_0x11e3f2,_0x5d40a3){return _0x11e3f2+_0x5d40a3;},'nQgpY':_0x5929f7(0xcd)};try{const _0x290a43=_0x47eafe['testUUID'],_0x29791b=_0x4a861a[_0x5929f7(0x88)]()[_0x5929f7(0x119)](_0x290a43),{[TestFrameworkConstants[_0x5929f7(0xc7)]]:_0x43ee88='',[TestFrameworkConstants[_0x5929f7(0xba)]]:_0x1a22e0=''}=_0x29791b,_0x464100=TestInfo[_0x5929f7(0x127)](_0x290a43),_0x37340c=TestInfo['getTestDetails'](_0x290a43)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x57c3f8=_0x20d325[_0x5929f7(0x94)](getMediaArtifactsLogs,_0x37340c,_0x4a861a[_0x5929f7(0x88)]()[_0x5929f7(0x119)](_0x290a43)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x56692c=(_0x464100||[])[_0x5929f7(0x128)](_0x57c3f8||[]);if(!_0x56692c||_0x20d325['uXUPr'](_0x56692c['length'],0x0)){logger[_0x5929f7(0x123)](_0x20d325[_0x5929f7(0xdb)]);return;}const _0x1d0b3f=0x28,_0x3a7acf=Math[_0x5929f7(0x112)](_0x20d325[_0x5929f7(0xdd)](_0x56692c[_0x5929f7(0xae)],_0x1d0b3f));for(let _0x10049e=0x0;_0x20d325[_0x5929f7(0x11a)](_0x10049e,_0x3a7acf);_0x10049e++){const _0x441226=_0x20d325[_0x5929f7(0x81)](_0x10049e,_0x1d0b3f),_0x298640=_0x20d325['wHRFT'](_0x441226,_0x1d0b3f),_0x4a822e=_0x56692c[_0x5929f7(0xf1)](_0x441226,_0x298640),_0x2c0910={'platformIndex':global?.[_0x5929f7(0xc2)]??0x0,'logs':_0x4a822e,'testFrameworkName':_0x43ee88,'testFrameworkVersion':_0x1a22e0,'testFrameworkState':_0x2183da[_0x5929f7(0xfa)]()[_0x5929f7(0x87)]('.')[0x1]};logger[_0x5929f7(0x123)](_0x5929f7(0xf3)+_0x290a43+'\x20batch\x20'+_0x20d325[_0x5929f7(0xd8)](_0x10049e,0x1)+'/'+_0x3a7acf+'\x20payload='+util[_0x5929f7(0x89)](_0x2c0910));const _0x56be8d=await GrpcClient['getInstance']()[_0x5929f7(0x115)](_0x2c0910);logger[_0x5929f7(0x123)](_0x5929f7(0xf3)+_0x290a43+_0x5929f7(0x76)+_0x20d325[_0x5929f7(0xd8)](_0x10049e,0x1)+'/'+_0x3a7acf+_0x5929f7(0xf2)+util[_0x5929f7(0x89)](_0x56be8d));}}catch(_0x9825a6){logger[_0x5929f7(0x11d)](_0x5929f7(0x12c)+util[_0x5929f7(0x7c)](_0x9825a6));}logger[_0x5929f7(0x123)](_0x20d325[_0x5929f7(0xd4)]);}[a74_0x3d9ad3(0x6c)](_0x1a5b48,_0x296dec,_0x596435,_0x3d5aba,_0x10070c){const _0x56faef=a74_0x3d9ad3,_0x126c8f={'testId':_0x296dec,'testFrameworkState':_0x596435,'hookState':_0x3d5aba,'args':_0x10070c,'timestamp':new Date()[_0x56faef(0x126)]()};_0x1a5b48[_0x56faef(0xac)](_0x296dec,_0x126c8f),logger['debug'](_0x56faef(0xd9)+_0x296dec+',\x20state:\x20'+_0x596435+_0x56faef(0xd5)+_0x3d5aba);}async['processPendingHooks'](_0x2da29a,_0x2f2a3f){const _0x27e3c5=a74_0x3d9ad3,_0x135652={};_0x135652[_0x27e3c5(0x9a)]=function(_0x4c81ff,_0x368baf){return _0x4c81ff>_0x368baf;};const _0x4cc231=_0x135652;if(!_0x2da29a[_0x27e3c5(0xc1)](_0x2f2a3f))return;const _0x44564b=_0x2da29a[_0x27e3c5(0x85)](_0x2f2a3f);logger[_0x27e3c5(0x123)]('Processing\x20'+_0x44564b[_0x27e3c5(0xae)]+_0x27e3c5(0x8b)+_0x2f2a3f);for(const _0x4ff625 of _0x44564b){try{const _0x32c872=await this[_0x27e3c5(0xb8)](_0x2da29a,_0x4ff625[_0x27e3c5(0x13b)],_0x4ff625[_0x27e3c5(0x84)],_0x4ff625[_0x27e3c5(0x90)]);_0x32c872&&_0x4cc231[_0x27e3c5(0x9a)](Object[_0x27e3c5(0x6e)](_0x32c872)[_0x27e3c5(0xae)],0x0)&&_0x2da29a[_0x27e3c5(0x8a)](_0x32c872),await this[_0x27e3c5(0x111)](_0x2da29a,_0x4ff625[_0x27e3c5(0x13b)],_0x4ff625[_0x27e3c5(0x84)],_0x4ff625[_0x27e3c5(0x90)]);}catch(_0x125e24){logger['error'](_0x27e3c5(0x113)+_0x2f2a3f+',\x20error:\x20'+_0x125e24);}}_0x2da29a[_0x27e3c5(0x12b)](_0x2f2a3f),logger[_0x27e3c5(0x123)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x2f2a3f);}}module['exports']=CucumberTestFramework;