browserstack-node-sdk 1.51.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';function a69_0x1194(_0x4e8fa3,_0x3c5224){const _0x56838e=a69_0x5683();return a69_0x1194=function(_0x11943,_0x59878c){_0x11943=_0x11943-0x1e5;let _0x20a8e9=_0x56838e[_0x11943];return _0x20a8e9;},a69_0x1194(_0x4e8fa3,_0x3c5224);}const a69_0x45f8c1=a69_0x1194;function a69_0x5683(){const _0x12b950=['testhubConfig','8qinlnm','getTrackedInstance','buildLevelTags','exports','BXsmq','./TestInfo','PsIWo','./state/hookState','./browserstackCLI','9kutpMP','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','Custom\x20tag\x20key\x20cannot\x20be\x20empty','addMultipleEntries','./cliUtils','PjLMY','getInstance','toLowerCase','getTestIdentifierFromTestInfo','aCcIO','7083610skArNs','stringify','getTestFramework','\x20with\x20values=','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','jest','testInfo','TEST','getBuildLevelTags','18931SwqjES','KMrBu','multi_dropdown','SVNIv','4TaHslR','KEY_CUSTOM_TAGS','./state/testFrameworkState','getTestUUID','GwZon','trim','\x20with\x20new\x20values=','210538sLqRcW','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','get','clearTags','debug','LEFnR','field_type','vnrhD','toObject','hRsVE','setTestDetails','string','testLevelTags','getTestLevelTags','CustomTagManager','POST','VhxNM','hzHXE','7704iIAtyU','name','JraJq','./modules/playwrightDriverModule','resolveInstance','KBdGP',',\x20finalTags=','retry',',\x20existingTags=',',\x20key=','parseCommaSeparatedValues','QYYnK','./framework/automationFramework','20294872LDaavW','1597841CpNnlz','includes','DpUkJ','KEY_TEST_ID','../../helpers/classLogger','getTestDetails','./framework/constants/testFrameworkConstants','getState','buildHashedId','9563916MGFgqn','getTestFrameworkDetail','Custom\x20tag\x20value\x20cannot\x20be\x20empty','__workerDetails','1922502EJVIJb','../../helpers/helper','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','values','14LdVbSv','./modules/testhubModule','5kqBYdz','setCustomTags','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','HFhDz',':jest-'];a69_0x5683=function(){return _0x12b950;};return a69_0x5683();}(function(_0xc8e7bf,_0x2c9709){const _0x4a3529=a69_0x1194,_0x58ac0c=_0xc8e7bf();while(!![]){try{const _0x5119e3=-parseInt(_0x4a3529(0x1f4))/0x1*(-parseInt(_0x4a3529(0x225))/0x2)+-parseInt(_0x4a3529(0x221))/0x3*(parseInt(_0x4a3529(0x1ed))/0x4)+-parseInt(_0x4a3529(0x227))/0x5*(parseInt(_0x4a3529(0x21d))/0x6)+-parseInt(_0x4a3529(0x214))/0x7*(parseInt(_0x4a3529(0x22d))/0x8)+parseInt(_0x4a3529(0x236))/0x9*(-parseInt(_0x4a3529(0x240))/0xa)+-parseInt(_0x4a3529(0x1e9))/0xb*(-parseInt(_0x4a3529(0x206))/0xc)+parseInt(_0x4a3529(0x213))/0xd;if(_0x5119e3===_0x2c9709)break;else _0x58ac0c['push'](_0x58ac0c['shift']());}catch(_0x4a6081){_0x58ac0c['push'](_0x58ac0c['shift']());}}}(a69_0x5683,0xec69c));const BrowserstackCLI=require(a69_0x45f8c1(0x235)),helper=require(a69_0x45f8c1(0x222)),AutomationFramework=require(a69_0x45f8c1(0x212)),TestFrameworkConstants=require(a69_0x45f8c1(0x21a)),PlaywrightDriverModule=require(a69_0x45f8c1(0x209)),TestInfo=require(a69_0x45f8c1(0x232)),TestHubModule=require(a69_0x45f8c1(0x226)),{createClassLogger}=require(a69_0x45f8c1(0x218)),logger=createClassLogger(a69_0x45f8c1(0x202));class CustomTagManager{static ['buildLevelTags']={};static [a69_0x45f8c1(0x200)]={};static[a69_0x45f8c1(0x228)](_0x46f7dc,_0x4a0abd,_0xf65fb0=![]){const _0x1c5f12=a69_0x45f8c1,_0x5825f9={'KMrBu':function(_0x260814,_0x16486e){return _0x260814!==_0x16486e;},'vnrhD':_0x1c5f12(0x1ff),'hzHXE':_0x1c5f12(0x237),'HFhDz':function(_0x4d3c1e,_0x2933b9){return _0x4d3c1e!==_0x2933b9;},'JraJq':'Custom\x20tag\x20value\x20must\x20be\x20a\x20string','aCcIO':function(_0x19f924,_0xb7e1a6){return _0x19f924===_0xb7e1a6;},'PsIWo':_0x1c5f12(0x238),'ewuSm':_0x1c5f12(0x21f),'hRsVE':_0x1c5f12(0x1eb),'SVNIv':_0x1c5f12(0x22b),'BXsmq':function(_0x2748d3,_0x13ace3){return _0x2748d3(_0x13ace3);},'KBdGP':_0x1c5f12(0x23a),'PjLMY':_0x1c5f12(0x1e5),'nXNSk':_0x1c5f12(0x1f5),'LEFnR':_0x1c5f12(0x229),'VhxNM':_0x1c5f12(0x1ef),'GwZon':function(_0x3a3bb4,_0x332662){return _0x3a3bb4(_0x332662);},'QYYnK':_0x1c5f12(0x234),'DpUkJ':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x5825f9[_0x1c5f12(0x1ea)](typeof _0x46f7dc,_0x5825f9[_0x1c5f12(0x1fb)]))throw new Error(_0x5825f9[_0x1c5f12(0x205)]);if(_0x5825f9[_0x1c5f12(0x22a)](typeof _0x4a0abd,_0x5825f9[_0x1c5f12(0x1fb)]))throw new Error(_0x5825f9[_0x1c5f12(0x208)]);if(_0x5825f9[_0x1c5f12(0x23f)](_0x46f7dc[_0x1c5f12(0x1f2)](),''))throw new Error(_0x5825f9[_0x1c5f12(0x233)]);if(_0x5825f9['aCcIO'](_0x4a0abd[_0x1c5f12(0x1f2)](),''))throw new Error(_0x5825f9['ewuSm']);const _0x2756c7=helper[_0x1c5f12(0x210)](_0x4a0abd);if(_0xf65fb0){const _0x325f07=BrowserstackCLI[_0x1c5f12(0x23c)]()['modules'][TestHubModule['MODULE_NAME']];if(_0x325f07){const _0xcb32fa=_0x325f07?.[_0x1c5f12(0x22c)]?.[_0x1c5f12(0x1fc)]()?.[_0x1c5f12(0x21c)];TestInfo[_0x1c5f12(0x1f0)](_0xcb32fa);const _0x282541=TestInfo['getTestDetails'](_0xcb32fa),_0x14e238=_0x282541[TestFrameworkConstants[_0x1c5f12(0x1ee)]]||{};if(!_0x14e238[_0x46f7dc]){const _0x5ea370={};_0x5ea370['field_type']=_0x5825f9[_0x1c5f12(0x1fd)],_0x5ea370[_0x1c5f12(0x224)]=[..._0x2756c7],_0x14e238[_0x46f7dc]=_0x5ea370;}else _0x14e238[_0x46f7dc]['values']=[..._0x2756c7];_0x282541[TestFrameworkConstants[_0x1c5f12(0x1ee)]]=_0x14e238,TestInfo[_0x1c5f12(0x1fe)](_0xcb32fa,_0x282541),!this[_0x1c5f12(0x22f)][_0xcb32fa]&&(this['buildLevelTags'][_0xcb32fa]={}),this[_0x1c5f12(0x22f)][_0xcb32fa][_0x46f7dc]=[..._0x2756c7];}}else{let _0x492c8b;const _0x106998=global['__jestCurrentTestIdentifier'];let _0x1382d6=![];if(_0x106998&&_0x106998[_0x1c5f12(0x215)](_0x5825f9[_0x1c5f12(0x1ec)]))_0x1382d6=!![],_0x492c8b=_0x106998;else try{const _0x11a420=_0x5825f9[_0x1c5f12(0x231)](require,_0x5825f9[_0x1c5f12(0x20b)]);if(BrowserstackCLI[_0x1c5f12(0x23c)]()['isRunning']()){const _0x495deb=_0x11a420[_0x1c5f12(0x21e)]();if(_0x5825f9[_0x1c5f12(0x23f)](_0x495deb?.[_0x1c5f12(0x207)]?.[_0x1c5f12(0x23d)](),_0x5825f9[_0x1c5f12(0x23b)])){const _0x70d270=AutomationFramework[_0x1c5f12(0x22e)]();_0x492c8b=AutomationFramework['getState'](_0x70d270,PlaywrightDriverModule[_0x1c5f12(0x217)],''),_0x492c8b&&_0x492c8b['includes'](_0x5825f9[_0x1c5f12(0x1ec)])&&(_0x1382d6=!![]);}}}catch(_0x387cf7){logger['debug'](_0x1c5f12(0x223)+_0x387cf7);}if(_0x1382d6){if(!_0x492c8b)throw new Error(_0x5825f9['nXNSk']);const _0x261e5a=BrowserstackCLI['getInstance']()[_0x1c5f12(0x242)]();if(!_0x261e5a)throw new Error(_0x5825f9[_0x1c5f12(0x1f9)]);const _0x283301=_0x5825f9[_0x1c5f12(0x231)](require,_0x5825f9[_0x1c5f12(0x204)]),_0x550df2=_0x5825f9[_0x1c5f12(0x1f1)](require,_0x5825f9[_0x1c5f12(0x211)]),_0x507b6a=_0x261e5a[_0x1c5f12(0x20a)](_0x283301[_0x1c5f12(0x1e7)],_0x550df2[_0x1c5f12(0x203)]);if(!_0x507b6a)throw new Error(_0x5825f9[_0x1c5f12(0x216)]);const _0x5921a1=_0x507b6a['getAllData']()[_0x1c5f12(0x1f6)](_0x492c8b)||{},_0x49a8dc=_0x5921a1[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger['debug'](_0x1c5f12(0x244)+_0x492c8b+_0x1c5f12(0x20f)+_0x46f7dc+',\x20values='+JSON[_0x1c5f12(0x241)](_0x2756c7)+_0x1c5f12(0x20e)+JSON[_0x1c5f12(0x241)](_0x49a8dc));if(!_0x49a8dc[_0x46f7dc]){const _0x637e37={};_0x637e37[_0x1c5f12(0x1fa)]=_0x5825f9[_0x1c5f12(0x1fd)],_0x637e37['values']=[..._0x2756c7],_0x49a8dc[_0x46f7dc]=_0x637e37,logger[_0x1c5f12(0x1f8)]('[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key='+_0x46f7dc+_0x1c5f12(0x243)+JSON[_0x1c5f12(0x241)](_0x2756c7));}else _0x49a8dc[_0x46f7dc][_0x1c5f12(0x224)]=[..._0x2756c7],logger[_0x1c5f12(0x1f8)]('[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key='+_0x46f7dc+_0x1c5f12(0x1f3)+JSON[_0x1c5f12(0x241)](_0x2756c7));const _0x5198b5={[TestFrameworkConstants[_0x1c5f12(0x1ee)]]:_0x49a8dc},_0x115169={};_0x115169[_0x492c8b]=_0x5198b5,_0x507b6a[_0x1c5f12(0x239)](_0x115169),logger[_0x1c5f12(0x1f8)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x492c8b+_0x1c5f12(0x20c)+JSON['stringify'](_0x49a8dc)),!this[_0x1c5f12(0x200)][_0x492c8b]&&(this['testLevelTags'][_0x492c8b]={}),this['testLevelTags'][_0x492c8b][_0x46f7dc]=[..._0x2756c7];}else{const _0x43449e=global[_0x1c5f12(0x220)]?.['currentTest']?.[_0x1c5f12(0x1e6)];if(!_0x43449e){const _0x18cdba=AutomationFramework[_0x1c5f12(0x22e)]();_0x492c8b=AutomationFramework[_0x1c5f12(0x21b)](_0x18cdba,PlaywrightDriverModule[_0x1c5f12(0x217)],'');}else _0x492c8b=TestInfo[_0x1c5f12(0x23e)](_0x43449e,_0x43449e[_0x1c5f12(0x20d)]);const _0x40eaff=TestInfo[_0x1c5f12(0x219)](_0x492c8b),_0x20a075=_0x40eaff[TestFrameworkConstants[_0x1c5f12(0x1ee)]]||{};if(!_0x20a075[_0x46f7dc]){const _0xfd77c2={};_0xfd77c2[_0x1c5f12(0x1fa)]=_0x5825f9['hRsVE'],_0xfd77c2[_0x1c5f12(0x224)]=[..._0x2756c7],_0x20a075[_0x46f7dc]=_0xfd77c2;}else _0x20a075[_0x46f7dc][_0x1c5f12(0x224)]=[..._0x2756c7];_0x40eaff[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x20a075,TestInfo['setTestDetails'](_0x492c8b,_0x40eaff),!this[_0x1c5f12(0x200)][_0x492c8b]&&(this[_0x1c5f12(0x200)][_0x492c8b]={}),this[_0x1c5f12(0x200)][_0x492c8b][_0x46f7dc]=[..._0x2756c7];}}}static[a69_0x45f8c1(0x1e8)](){const _0xc455b3=a69_0x45f8c1,_0x37fab={...this[_0xc455b3(0x22f)]};return _0x37fab;}static[a69_0x45f8c1(0x201)](){const _0x1a1675=a69_0x45f8c1,_0x50f360={...this[_0x1a1675(0x200)]};return _0x50f360;}static[a69_0x45f8c1(0x1f7)](){const _0x3c827e=a69_0x45f8c1;this[_0x3c827e(0x22f)]={},this[_0x3c827e(0x200)]={};}}module[a69_0x45f8c1(0x230)]=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
- const a70_0x3263f7=a70_0x4661;function a70_0x4661(_0x4c6b7f,_0xeb4724){const _0xa340b8=a70_0xa340();return a70_0x4661=function(_0x4661e0,_0x15a81b){_0x4661e0=_0x4661e0-0x6d;let _0x3a60d1=_0xa340b8[_0x4661e0];return _0x3a60d1;},a70_0x4661(_0x4c6b7f,_0xeb4724);}(function(_0xb83b76,_0x43c6ae){const _0x4a5126=a70_0x4661,_0x10edc5=_0xb83b76();while(!![]){try{const _0x126486=parseInt(_0x4a5126(0x77))/0x1*(-parseInt(_0x4a5126(0x75))/0x2)+parseInt(_0x4a5126(0x76))/0x3+-parseInt(_0x4a5126(0x78))/0x4*(-parseInt(_0x4a5126(0x6e))/0x5)+parseInt(_0x4a5126(0x79))/0x6+-parseInt(_0x4a5126(0x73))/0x7+parseInt(_0x4a5126(0x74))/0x8+-parseInt(_0x4a5126(0x70))/0x9*(-parseInt(_0x4a5126(0x6f))/0xa);if(_0x126486===_0x43c6ae)break;else _0x10edc5['push'](_0x10edc5['shift']());}catch(_0x34222e){_0x10edc5['push'](_0x10edc5['shift']());}}}(a70_0xa340,0xd48e8));const {createClassLogger}=require('../../helpers/classLogger.js');class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static[a70_0x3263f7(0x7b)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a70_0x3263f7(0x7c)](_0x1080ce,_0x149551){const _0x5753de=a70_0x3263f7;!this[_0x5753de(0x72)][_0x1080ce]&&(this[_0x5753de(0x72)][_0x1080ce]=[]),this[_0x5753de(0x72)][_0x1080ce][_0x5753de(0x7e)](_0x149551);}async[a70_0x3263f7(0x6d)](_0x15db5a,_0x13d2e3){const _0x4fb099=a70_0x3263f7,_0x4ea010={'dBQLJ':function(_0x325b95,_0xaea1d8){return _0x325b95(_0xaea1d8);}};if(this[_0x4fb099(0x72)][_0x15db5a]){for(const _0x520b97 of this['observers'][_0x15db5a]){await _0x4ea010[_0x4fb099(0x71)](_0x520b97,_0x13d2e3);}return;}}}function a70_0xa340(){const _0x55407f=['500728OKzsgN','526ZOydaX','3879789RdEpGa','4114RvmnCI','13772mbhqSQ','7818936ZyUNrS','freeze','getInstance','registerObserver','exports','push','notifyObserver','505wCexxj','2540gjaGMe','14139tGdAqS','dBQLJ','observers','10172211NBfJNz'];a70_0xa340=function(){return _0x55407f;};return a70_0xa340();}const eventDispatcher=EventDispatcher['getInstance']();Object[a70_0x3263f7(0x7a)](eventDispatcher),module[a70_0x3263f7(0x7d)]=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
- function a71_0x31ff(){const _0x3f95bf=['7yMgpRs','getHookRegistryKey','getAutomationFrameworkName','registerObserver','68913XyiJTB','11365OZQSAL','../eventDispatcher.js','automationFrameworkName','non_browserstack_automation_sessions','../instances/trackedInstance.js','getTrackedInstance','setState','316Ckyuuf','instances','getAllData','3808119CmpwzC','22455RuBnfa','trackEvent:\x20automationFrameworkState=','automation_sessions','../../../helpers/classLogger.js','getId','set','util','../cliUtils.js','AutomationFramework','getCurrentInstanceName','debug','exports','setTrackedInstance','393204xeUzxr','KEY_AUTOMATION_SESSIONS','7417506jKutHb','3688LTodBc','notifyObserver','\x20hookState=','automationFrameworkVersion','runHooks','get','trackEvent','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','19080400vUAopT','createContext'];a71_0x31ff=function(){return _0x3f95bf;};return a71_0x31ff();}const a71_0x353a16=a71_0x3a61;(function(_0x49f3bc,_0x5d888b){const _0x51577c=a71_0x3a61,_0x43768d=_0x49f3bc();while(!![]){try{const _0x194c53=-parseInt(_0x51577c(0x13a))/0x1+parseInt(_0x51577c(0x153))/0x2+-parseInt(_0x51577c(0x145))/0x3+parseInt(_0x51577c(0x142))/0x4*(parseInt(_0x51577c(0x13b))/0x5)+-parseInt(_0x51577c(0x155))/0x6*(parseInt(_0x51577c(0x136))/0x7)+parseInt(_0x51577c(0x12c))/0x8*(parseInt(_0x51577c(0x146))/0x9)+parseInt(_0x51577c(0x134))/0xa;if(_0x194c53===_0x5d888b)break;else _0x43768d['push'](_0x43768d['shift']());}catch(_0x1eee7e){_0x43768d['push'](_0x43768d['shift']());}}}(a71_0x31ff,0xd1edb));const {createClassLogger}=require(a71_0x353a16(0x149)),util=require(a71_0x353a16(0x14c)),eventDispatcher=require(a71_0x353a16(0x13c)),CLIUtils=require(a71_0x353a16(0x14d)),TrackedInstance=require(a71_0x353a16(0x13f)),logger=createClassLogger(a71_0x353a16(0x14e));class AutomationFramework{static [a71_0x353a16(0x143)]=new Map();static [a71_0x353a16(0x154)]=a71_0x353a16(0x148);static [a71_0x353a16(0x133)]=a71_0x353a16(0x13e);constructor(_0x2bbf98,_0x5c1760){const _0x13e3d7=a71_0x353a16;this['automationFrameworkName']=_0x2bbf98,this[_0x13e3d7(0x12f)]=_0x5c1760;}[a71_0x353a16(0x138)](){const _0x468ddd=a71_0x353a16;return this[_0x468ddd(0x13d)];}['getAutomationFrameworkVersion'](){const _0x13e74e=a71_0x353a16;return this[_0x13e74e(0x12f)];}async[a71_0x353a16(0x132)](_0x5e3c1a,_0x3af443,_0x1b1b4b={}){const _0x4c31c8=a71_0x353a16;logger[_0x4c31c8(0x150)](_0x4c31c8(0x147)+_0x5e3c1a+_0x4c31c8(0x12e)+_0x3af443);}async[a71_0x353a16(0x130)](_0x4cbce2,_0x54c618,_0x4bbeb1,_0x53cbd7={}){const _0x14bd65=a71_0x353a16,_0x196111=CLIUtils['getHookRegistryKey'](_0x54c618,_0x4bbeb1);_0x4cbce2&&_0x4cbce2[_0x14bd65(0x141)](_0x54c618),await eventDispatcher[_0x14bd65(0x12d)](_0x196111,_0x53cbd7);}static[a71_0x353a16(0x139)](_0x1a934c,_0x16aa80,_0x291115){const _0x18f7ed=a71_0x353a16;eventDispatcher[_0x18f7ed(0x139)](CLIUtils[_0x18f7ed(0x137)](_0x1a934c,_0x16aa80),_0x291115);}static[a71_0x353a16(0x152)](_0x48c433,_0x2ae454){const _0x47da8f=a71_0x353a16;AutomationFramework[_0x47da8f(0x143)][_0x47da8f(0x14b)](_0x48c433[_0x47da8f(0x14a)](),_0x2ae454);}static[a71_0x353a16(0x140)](){const _0x3a8be4=a71_0x353a16,_0x23630a=TrackedInstance[_0x3a8be4(0x135)](CLIUtils[_0x3a8be4(0x14f)]());return AutomationFramework[_0x3a8be4(0x143)][_0x3a8be4(0x131)](_0x23630a['getId']());}static[a71_0x353a16(0x141)](_0x39ea6a,_0x17b444,_0x255f89){_0x39ea6a['getAllData']()['set'](_0x17b444,_0x255f89);}static['getState'](_0x45a685,_0x2fa6fc){const _0x2a82a8=a71_0x353a16;return _0x45a685[_0x2a82a8(0x144)]()[_0x2a82a8(0x131)](_0x2fa6fc);}}function a71_0x3a61(_0x2459a1,_0x489ac5){const _0x31ff37=a71_0x31ff();return a71_0x3a61=function(_0x3a616d,_0x28256a){_0x3a616d=_0x3a616d-0x12c;let _0xcd31ad=_0x31ff37[_0x3a616d];return _0xcd31ad;},a71_0x3a61(_0x2459a1,_0x489ac5);}module[a71_0x353a16(0x151)]=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_0x2e5e93=a72_0x1f9f;(function(_0xb95046,_0x339c7e){const _0x16abc1=a72_0x1f9f,_0x4ed05d=_0xb95046();while(!![]){try{const _0x436a75=-parseInt(_0x16abc1(0xb3))/0x1+-parseInt(_0x16abc1(0x9f))/0x2*(-parseInt(_0x16abc1(0xb0))/0x3)+parseInt(_0x16abc1(0x97))/0x4*(parseInt(_0x16abc1(0x9d))/0x5)+-parseInt(_0x16abc1(0xad))/0x6+-parseInt(_0x16abc1(0xa3))/0x7+parseInt(_0x16abc1(0x94))/0x8+-parseInt(_0x16abc1(0x9a))/0x9*(-parseInt(_0x16abc1(0x98))/0xa);if(_0x436a75===_0x339c7e)break;else _0x4ed05d['push'](_0x4ed05d['shift']());}catch(_0x38c3f3){_0x4ed05d['push'](_0x4ed05d['shift']());}}}(a72_0x26e1,0x8649f));const a72_0x3b55a4={};a72_0x3b55a4[a72_0x2e5e93(0xac)]=a72_0x2e5e93(0xa2),a72_0x3b55a4[a72_0x2e5e93(0xaf)]=a72_0x2e5e93(0xa7),a72_0x3b55a4['KEY_FRAMEWORK_SESSION_ID']=a72_0x2e5e93(0xa4),a72_0x3b55a4[a72_0x2e5e93(0xa1)]=a72_0x2e5e93(0xae),a72_0x3b55a4[a72_0x2e5e93(0x9e)]=a72_0x2e5e93(0xa9),a72_0x3b55a4[a72_0x2e5e93(0x9c)]='is_browserstack_hub',a72_0x3b55a4[a72_0x2e5e93(0x99)]='started_at',a72_0x3b55a4[a72_0x2e5e93(0x95)]='ended_at',a72_0x3b55a4[a72_0x2e5e93(0xb1)]='platform_index',a72_0x3b55a4[a72_0x2e5e93(0xab)]='newsession',a72_0x3b55a4['COMMAND_GET']=a72_0x2e5e93(0xa8),a72_0x3b55a4['COMMAND_SCREENSHOT']=a72_0x2e5e93(0xa6),a72_0x3b55a4[a72_0x2e5e93(0xb2)]=a72_0x2e5e93(0xa0),a72_0x3b55a4[a72_0x2e5e93(0x9b)]=a72_0x2e5e93(0xa5),a72_0x3b55a4[a72_0x2e5e93(0x93)]=a72_0x2e5e93(0x96);function a72_0x1f9f(_0x439e79,_0x5109f5){const _0x26e10e=a72_0x26e1();return a72_0x1f9f=function(_0x1f9f34,_0x303ec5){_0x1f9f34=_0x1f9f34-0x93;let _0x1c550d=_0x26e10e[_0x1f9f34];return _0x1c550d;},a72_0x1f9f(_0x439e79,_0x5109f5);}const AutomationFrameworkConstants=a72_0x3b55a4;module[a72_0x2e5e93(0xaa)]=AutomationFrameworkConstants;function a72_0x26e1(){const _0x147c35=['1240818LsiQTH','KEY_PLATFORM_INDEX','COMMAND_W3C_EXECUTE_SCRIPT','931267KdhmWl','COMMAND_QUIT','3870800lvwShu','KEY_ENDED_AT','quit','32ObUxKg','7318430BWBxdy','KEY_STARTED_AT','27gVNAjr','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_IS_BROWSERSTACK_HUB','143340rRBwjT','KEY_CAPABILITIES','2RnKapw','w3cexecutescript','KEY_INPUT_CAPABILITIES','BROWSERSTACK_PLATFORM_INDEX','6178235exujGL','framework_session_id','w3cexecutescriptasync','screenshot','hub_url','get','capabilities','exports','COMMAND_NEW_SESSION','ENV_BROWSERSTACK_PLATFORM_INDEX','5750460fNCwjp','input_capabilities','KEY_HUB_URL'];a72_0x26e1=function(){return _0x147c35;};return a72_0x26e1();}
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_0x7cd76e=a73_0x343e;function a73_0x343e(_0x3d4777,_0xaacc37){const _0x5ec211=a73_0x5ec2();return a73_0x343e=function(_0x343eef,_0x4e60cb){_0x343eef=_0x343eef-0x191;let _0x2132e1=_0x5ec211[_0x343eef];return _0x2132e1;},a73_0x343e(_0x3d4777,_0xaacc37);}(function(_0x135466,_0x4ee0a8){const _0x3146ed=a73_0x343e,_0x51ec4a=_0x135466();while(!![]){try{const _0x467b28=parseInt(_0x3146ed(0x1df))/0x1+parseInt(_0x3146ed(0x1b6))/0x2+parseInt(_0x3146ed(0x1e8))/0x3*(parseInt(_0x3146ed(0x1cf))/0x4)+-parseInt(_0x3146ed(0x1a7))/0x5+-parseInt(_0x3146ed(0x1ce))/0x6+-parseInt(_0x3146ed(0x1c6))/0x7+parseInt(_0x3146ed(0x1db))/0x8*(parseInt(_0x3146ed(0x1c4))/0x9);if(_0x467b28===_0x4ee0a8)break;else _0x51ec4a['push'](_0x51ec4a['shift']());}catch(_0x16f616){_0x51ec4a['push'](_0x51ec4a['shift']());}}}(a73_0x5ec2,0xcb70a));function a73_0x5ec2(){const _0x69375=['hook_id','KEY_TEST_META','logs','test_result_at','KIND_LOG','test_hook_last_started','platform_index','KEY_FILE_LEVEL','test_failure_type','KEY_TEST_ENDED_AT','KEY_EVENT_ENDED_AT','KEY_TEST_STARTED_AT','test_scope','KEY_TEST_SCOPE','automate_session_reason','748960lqLOgW','pending','KEY_TEST_RERUN_NAME','event_started_at','KEY_FILE_NAME','KEY_TEST_RESULT','KEY_AUTOMATE_SESSION_STATUS','test_started_at','hook_logs','KEY_TEST_ATTACHMENTS','test_uuid','test_ended_at','DEFAULT_HOOK_RESULT','hook_failure','exports','567004ujbBUS','KEY_FILE_PATH','TEST_LOG','KEY_HOOK_LAST_FINISHED','KEY_HOOK_NAME','KEY_EVENT_STARTED_AT','KEY_HOOK_LAST_STARTED','test_rerun_name','DEFAULT_TEST_RESULT','KEY_HOOK_FAILURE_REASON','test_location','test_failure_reason','KEY_TEST_FAILURE_TYPE','automate_session_status','684RJkMTf','test_session_name','6164130nLraJR','KEY_TEST_TAGS','test_hooks_finished','custom_metadata','KEY_TEST_FRAMEWORK_NAME','KEY_TEST_UUID','hook_failure_reason','test_scopes','8535420ednoeR','5845748ieapag','KIND_SCREENSHOT','hook_name','test_name','KEY_TEST_FILE_PATH','KEY_TEST_RESULT_AT','KEY_PLATFORM_INDEX','test_result','KEY_HOOK_FAILURE','hook_result','KEY_TEST_FRAMEWORK_VERSION','file_path','632DGBaRz','test_code','test_logs','test_file_path','1535299VGObUR','KEY_HOOK_LOGS','KEY_TEST_CODE','KEY_TEST_ID','HOOK_REGEX','test_hook_last_finished','KEY_HOOK_RESULT','KEY_AUTOMATE_SESSION_REASON','test_meta','3RkOORs','KEY_HOOKS_STARTED','TEST_SCREENSHOT','KEY_TEST_NAME','test_failure','KEY_LOGS','file_size','event_ended_at','test_tags','test_framework_version','KEY_TEST_RETRY_OF'];a73_0x5ec2=function(){return _0x69375;};return a73_0x5ec2();}const a73_0x356809={};a73_0x356809[a73_0x7cd76e(0x1cb)]=a73_0x7cd76e(0x1b1),a73_0x356809[a73_0x7cd76e(0x1e2)]='test_id',a73_0x356809[a73_0x7cd76e(0x1eb)]=a73_0x7cd76e(0x1d2),a73_0x356809[a73_0x7cd76e(0x1d3)]=a73_0x7cd76e(0x1de),a73_0x356809[a73_0x7cd76e(0x1c7)]=a73_0x7cd76e(0x195),a73_0x356809[a73_0x7cd76e(0x1ac)]=a73_0x7cd76e(0x1d6),a73_0x356809[a73_0x7cd76e(0x1d4)]=a73_0x7cd76e(0x19b),a73_0x356809[a73_0x7cd76e(0x1a3)]=a73_0x7cd76e(0x1ae),a73_0x356809[a73_0x7cd76e(0x1a1)]=a73_0x7cd76e(0x1b2),a73_0x356809['KEY_TEST_LOCATION']=a73_0x7cd76e(0x1c0),a73_0x356809['KEY_TEST_DURATION']='test_duration',a73_0x356809[a73_0x7cd76e(0x1a5)]=a73_0x7cd76e(0x1a4),a73_0x356809['KEY_TEST_SCOPES']=a73_0x7cd76e(0x1cd),a73_0x356809[a73_0x7cd76e(0x1ca)]='test_framework_name',a73_0x356809[a73_0x7cd76e(0x1d9)]=a73_0x7cd76e(0x196),a73_0x356809[a73_0x7cd76e(0x1e1)]=a73_0x7cd76e(0x1dc),a73_0x356809[a73_0x7cd76e(0x1a9)]=a73_0x7cd76e(0x1bd),a73_0x356809[a73_0x7cd76e(0x197)]='retry_of',a73_0x356809[a73_0x7cd76e(0x1d5)]=a73_0x7cd76e(0x19e),a73_0x356809['KEY_TEST_FAILURE']=a73_0x7cd76e(0x191),a73_0x356809[a73_0x7cd76e(0x1c2)]=a73_0x7cd76e(0x1a0),a73_0x356809['KEY_TEST_FAILURE_REASON']=a73_0x7cd76e(0x1c1),a73_0x356809['KEY_TEST_LOGS']=a73_0x7cd76e(0x1dd),a73_0x356809[a73_0x7cd76e(0x199)]=a73_0x7cd76e(0x1e7),a73_0x356809['KEY_SESSION_NAME']=a73_0x7cd76e(0x1c5),a73_0x356809['KEY_AUTOMATE_SESSION_NAME']='automate_session_name',a73_0x356809[a73_0x7cd76e(0x1ad)]=a73_0x7cd76e(0x1c3),a73_0x356809[a73_0x7cd76e(0x1e6)]=a73_0x7cd76e(0x1a6),a73_0x356809[a73_0x7cd76e(0x1bb)]=a73_0x7cd76e(0x1aa),a73_0x356809[a73_0x7cd76e(0x1a2)]=a73_0x7cd76e(0x194),a73_0x356809['KEY_HOOK_ID']=a73_0x7cd76e(0x198),a73_0x356809[a73_0x7cd76e(0x1e5)]=a73_0x7cd76e(0x1d8),a73_0x356809['KEY_HOOK_FAILURE_TYPE']='hook_failure_type',a73_0x356809[a73_0x7cd76e(0x1bf)]=a73_0x7cd76e(0x1cc),a73_0x356809[a73_0x7cd76e(0x1d7)]=a73_0x7cd76e(0x1b4),a73_0x356809[a73_0x7cd76e(0x1e0)]=a73_0x7cd76e(0x1af),a73_0x356809[a73_0x7cd76e(0x1ba)]=a73_0x7cd76e(0x1d1),a73_0x356809[a73_0x7cd76e(0x1be)]=a73_0x7cd76e(0x1a8),a73_0x356809[a73_0x7cd76e(0x1b3)]=a73_0x7cd76e(0x1a8),a73_0x356809[a73_0x7cd76e(0x1d0)]=a73_0x7cd76e(0x1ea),a73_0x356809[a73_0x7cd76e(0x19c)]=a73_0x7cd76e(0x1b8),a73_0x356809[a73_0x7cd76e(0x1e3)]='^(BEFORE_|AFTER_)',a73_0x356809[a73_0x7cd76e(0x1e9)]='test_hooks_started',a73_0x356809['KEY_HOOKS_FINISHED']=a73_0x7cd76e(0x1c8),a73_0x356809[a73_0x7cd76e(0x1bc)]=a73_0x7cd76e(0x19d),a73_0x356809[a73_0x7cd76e(0x1b9)]=a73_0x7cd76e(0x1e4),a73_0x356809[a73_0x7cd76e(0x192)]=a73_0x7cd76e(0x19a),a73_0x356809['KEY_CUSTOM_TAGS']=a73_0x7cd76e(0x1c9),a73_0x356809[a73_0x7cd76e(0x1b0)]='test_attachments',a73_0x356809['KEY_FILE_SIZE']=a73_0x7cd76e(0x193),a73_0x356809[a73_0x7cd76e(0x1ab)]='file_name',a73_0x356809[a73_0x7cd76e(0x1b7)]=a73_0x7cd76e(0x1da),a73_0x356809[a73_0x7cd76e(0x19f)]='file_level';const TestFrameworkConstants=a73_0x356809;module[a73_0x7cd76e(0x1b5)]=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_0x127b73=a74_0x24d4;function a74_0x24d4(_0x3c6e3b,_0x1b521c){const _0x408e87=a74_0x408e();return a74_0x24d4=function(_0x24d480,_0x390a47){_0x24d480=_0x24d480-0x1bd;let _0x12c4fb=_0x408e87[_0x24d480];return _0x12c4fb;},a74_0x24d4(_0x3c6e3b,_0x1b521c);}(function(_0x8198b6,_0x31b01c){const _0x5b5f5a=a74_0x24d4,_0x32587b=_0x8198b6();while(!![]){try{const _0x2bd707=parseInt(_0x5b5f5a(0x23f))/0x1+parseInt(_0x5b5f5a(0x286))/0x2+parseInt(_0x5b5f5a(0x1f1))/0x3+-parseInt(_0x5b5f5a(0x283))/0x4*(-parseInt(_0x5b5f5a(0x244))/0x5)+parseInt(_0x5b5f5a(0x246))/0x6+parseInt(_0x5b5f5a(0x281))/0x7+-parseInt(_0x5b5f5a(0x1fe))/0x8;if(_0x2bd707===_0x31b01c)break;else _0x32587b['push'](_0x32587b['shift']());}catch(_0x168793){_0x32587b['push'](_0x32587b['shift']());}}}(a74_0x408e,0x8efab));const TestFramework=require(a74_0x127b73(0x25e)),TestFrameworkState=require(a74_0x127b73(0x1da)),HookState=require(a74_0x127b73(0x25a)),{createClassLogger}=require(a74_0x127b73(0x26d)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a74_0x127b73(0x207)),TrackedInstance=require(a74_0x127b73(0x26b)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x127b73(0x278)),logger=createClassLogger(a74_0x127b73(0x232)),{v4:uuidv4}=require('uuid'),util=require(a74_0x127b73(0x277)),TestInfo=require(a74_0x127b73(0x206)),GrpcClient=require(a74_0x127b73(0x282));function a74_0x408e(){const _0x2fbf6c=['finished_at','DEFAULT_TEST_RESULT','getAllData','getContext','failure','lVyEw','KEY_TEST_FAILURE_REASON','parseCucumberTestResult','eventJson','KEY_TEST_FRAMEWORK_VERSION','KEY_TEST_FRAMEWORK_NAME','TEST','KEY_HOOK_FAILURE_REASON','push','../state/testFrameworkState.js','hooks','slice','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','storePendingHook','HUjuF','KEY_TEST_ID','error','\x20testState:\x20','KEY_HOOK_LOGS','yWJed','UnhandledError','getId','createTestFrameworkEventPayload','exports',',\x20storing\x20as\x20pending\x20hook','location','args','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','getRef','KEY_TEST_RERUN_NAME','GFxXi','1270548ZnIkzB','Tracked\x20cucumber\x20hook\x20event:\x20','test','\x20with\x20id\x20','platformIndex','customRerunParam','hookState','getPendingHooks','setTestDetails','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','passed','getCurrentHookState','debug','19756608XkdtHD','trackCucumberInstance:\x20saved\x20instance\x20contextId=','removePendingHooks','resolveInstance','testFrameworkVersion','getTestFrameworks','testData','hook_type','../TestInfo.js','../cliUtils.js','keys','getTestDetails','createContext','\x20response=','tags','inspect','getCurrentInstanceName','CksjY','stringify','\x20hookState:\x20','KEY_TEST_SCOPES','toISOString','scopes','bTOTJ','testUUID','KEY_TEST_ENDED_AT','getInstance','vBmbo','\x20for\x20test:\x20','KEY_TEST_CODE','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','WFieg','KEY_TEST_RESULT','qMMBy','get','\x20target=','instance','toString','KEY_CUSTOM_TAGS','result','eATYN','test_run_id','KEY_HOOKS_FINISHED','failure_type','KEY_HOOKS_STARTED','PRE','KEY_TEST_NAME','KEY_HOOK_FAILURE','createTestFrameworkEventPayload\x20testId:\x20','KEY_TEST_FAILURE','DEFAULT_HOOK_RESULT','KEY_HOOK_LAST_STARTED','CucumberTestFramework','testFrameworkState','sendLogCreatedEvent:\x20for\x20testId:\x20','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','gAtsD','failure_data','YOGZc','NONE','aKdOk','KEY_TEST_RESULT_AT','KEY_TEST_LOCATION','iIHqG','39301FjbLqp','runHooks','addPendingHook','key','KEY_HOOK_RESULT','5xyfUVl','KEY_TEST_UUID','3728556bixenV','XQpPq','KEY_TEST_ATTACHMENTS','KEY_HOOK_NAME','trackEvent\x20loading\x20testData\x20for\x20testId:\x20',',\x20error:\x20','file_name','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','trackHookEvent','length','KEY_AUTOMATE_SESSION_NAME','\x20\x20and\x20args\x20=\x20','KEY_TEST_META','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','addMultipleEntries','uuid','DJJxn','aIoib','KEY_HOOK_ID','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','../state/hookState.js','logCreatedEvent','startedAt','readLogObjects','./testFramework','\x20batch\x20',',\x20state=','sendLogCreatedEvent','getTestFrameworksVersions','base64','failed','dboks','TcttH','pop','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','\x20with\x20result:\x20','KEY_TEST_FAILURE_TYPE','../instances/trackedInstance.js','zMFoI','../../../helpers/classLogger.js','FFNGV','chIjz','Error\x20in\x20createTestFrameworkEventPayload:\x20','trackEvent','failure_reason','KEY_EVENT_STARTED_AT','\x20and\x20args\x20=\x20','processPendingHooks','code','util','../../../helpers/helper.js','hookData','name','KEY_TEST_TAGS','KEY_EVENT_ENDED_AT','split','dsbOb','format','lsGyi','3953236KkgjHU','../grpcClient','3037228ZFSOjv','KEY_TEST_SCOPE','matchHookRegex','1293842lldAAF','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','POST','KEY_TEST_LOGS','wmhMd','uBXFt','concat','started_at','Cucumber\x20log\x20created\x20event','KEY_LOGS','parseCucumberTest','meta','DLFdB','rerun_name','Parsed\x20cucumber\x20test:\x20','\x20&\x20hookState='];a74_0x408e=function(){return _0x2fbf6c;};return a74_0x408e();}class CucumberTestFramework extends TestFramework{constructor(_0x4cf314,_0x403d5e,_0x8f0030){super(_0x4cf314,_0x403d5e,_0x8f0030);}async[a74_0x127b73(0x271)](_0x4c41dd,_0x5ca522,_0x566430={}){const _0x2bc3f9=a74_0x127b73,_0x31c07a={};_0x31c07a[_0x2bc3f9(0x1e0)]=_0x2bc3f9(0x1ed),_0x31c07a[_0x2bc3f9(0x1c8)]=function(_0xbcbbc1,_0x15af0e){return _0xbcbbc1===_0x15af0e;},_0x31c07a[_0x2bc3f9(0x1c1)]=_0x2bc3f9(0x259);const _0x9b997=_0x31c07a;await super[_0x2bc3f9(0x271)](_0x4c41dd,_0x5ca522,_0x566430);const _0x1ebcb6=this[_0x2bc3f9(0x201)](_0x4c41dd,_0x5ca522,_0x566430);if(!_0x1ebcb6){logger[_0x2bc3f9(0x1fd)](_0x9b997[_0x2bc3f9(0x1e0)]);return;}try{let _0xb86c0f,_0x10dc1a;switch(_0x4c41dd){case TestFrameworkState[_0x2bc3f9(0x1d7)]:_0xb86c0f=_0x566430[_0x2bc3f9(0x1f3)],_0x10dc1a=TestInfo['getTestUUID'](_0xb86c0f['id']);if(_0x9b997[_0x2bc3f9(0x1c8)](_0x5ca522,HookState[_0x2bc3f9(0x22b)])){logger['debug'](_0x2bc3f9(0x24a)+_0xb86c0f['id']);const _0x255ce0={};_0x255ce0[_0x2bc3f9(0x216)]=_0x10dc1a,_0x255ce0[_0x2bc3f9(0x204)]=_0xb86c0f,_0x1ebcb6[_0x2bc3f9(0x254)](this[_0x2bc3f9(0x1c6)](_0x255ce0)),logger[_0x2bc3f9(0x1fd)](_0x2bc3f9(0x21c)+_0xb86c0f['id']),await this[_0x2bc3f9(0x275)](_0x1ebcb6,_0xb86c0f['id']);}else{if(_0x9b997[_0x2bc3f9(0x1c8)](_0x5ca522,HookState['POST'])){const _0x312e8b={};_0x312e8b['testUUID']=_0x10dc1a,_0x312e8b[_0x2bc3f9(0x204)]=_0xb86c0f,_0x1ebcb6[_0x2bc3f9(0x254)](this['parseCucumberTestResult'](_0x312e8b)),await this[_0x2bc3f9(0x275)](_0x1ebcb6,_0xb86c0f['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x9b997[_0x2bc3f9(0x1c8)](_0x5ca522,HookState['POST'])&&await this[_0x2bc3f9(0x261)](_0x1ebcb6,_0x4c41dd,_0x566430);break;default:if(CLIUtils[_0x2bc3f9(0x285)](_0x4c41dd[_0x2bc3f9(0x223)]()[_0x2bc3f9(0x27d)]('.')[0x1])){const _0x56ed02=await this['trackHookEvent'](_0x1ebcb6,_0x4c41dd,_0x5ca522,_0x566430);_0x1ebcb6[_0x2bc3f9(0x254)](_0x56ed02);}else logger[_0x2bc3f9(0x1fd)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0x4c41dd+_0x2bc3f9(0x1cb)+_0x5ca522);break;}}catch(_0x5e6bc8){logger['error'](util['format'](_0x9b997[_0x2bc3f9(0x1c1)],_0x4c41dd,_0x5ca522,_0x566430[_0x2bc3f9(0x24f)],_0x5e6bc8));}_0x566430[_0x2bc3f9(0x222)]=_0x1ebcb6,await this['runHooks'](_0x1ebcb6,_0x4c41dd,_0x5ca522,_0x566430);}[a74_0x127b73(0x201)](_0x2f6152,_0x229e76,_0x3a3383={}){const _0x779c13=a74_0x127b73,_0x231377={};_0x231377[_0x779c13(0x1c0)]=function(_0x180cc5,_0xb33d29){return _0x180cc5===_0xb33d29;},_0x231377['FFNGV']=function(_0x3d9f25,_0x541465){return _0x3d9f25===_0x541465;};const _0x46e903=_0x231377;let _0x39da24=null;return(_0x46e903[_0x779c13(0x1c0)](_0x2f6152,TestFrameworkState['INIT_TEST'])||_0x46e903[_0x779c13(0x26e)](_0x2f6152,TestFrameworkState[_0x779c13(0x23a)]))&&this['trackCucumberInstance'](_0x2f6152,_0x3a3383),_0x39da24=TestFramework['getTrackedInstance'](),_0x39da24;}['trackCucumberInstance'](_0x392596,_0x11b036){const _0x31e60c=a74_0x127b73,_0x2e36a6=CLIUtils[_0x31e60c(0x20e)](),_0x275352=TrackedInstance[_0x31e60c(0x20a)](_0x2e36a6);let _0xf686e9=null;logger[_0x31e60c(0x1fd)](_0x31e60c(0x235)+_0x2e36a6+_0x31e60c(0x260)+_0x392596),_0xf686e9=new TestFrameworkInstance(_0x275352,this[_0x31e60c(0x203)](),this[_0x31e60c(0x262)](),_0x392596,HookState[_0x31e60c(0x23a)]),TestFramework['setTrackedInstance'](_0x275352,_0xf686e9),logger[_0x31e60c(0x1fd)](_0x31e60c(0x1ff)+_0x275352[_0x31e60c(0x1e7)]()+_0x31e60c(0x221)+_0x2e36a6);}['parseCucumberTest'](_0x4aa041){const _0x571bfe=a74_0x127b73,_0x2e1adb={};_0x2e1adb['eATYN']='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x394b5e=_0x2e1adb,{testUUID:_0x1d7d6d,testData:_0x4a8145}=_0x4aa041;if(!_0x4a8145||!_0x4a8145[_0x571bfe(0x255)])return logger[_0x571bfe(0x1fd)](_0x394b5e[_0x571bfe(0x226)]),{};const _0x2b48a7=_0x1d7d6d,_0x124a35=_0x4a8145[_0x571bfe(0x255)],_0xed0e06=this[_0x571bfe(0x203)]()[0x0],_0x382126=this[_0x571bfe(0x262)](),_0x1e8ce7={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0xed0e06,[TestFrameworkConstants[_0x571bfe(0x1d5)]]:_0x382126[_0xed0e06],[TestFrameworkConstants[_0x571bfe(0x1bf)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x571bfe(0x22a)]]:{},[TestFrameworkConstants[_0x571bfe(0x245)]]:_0x2b48a7,[TestFrameworkConstants[_0x571bfe(0x21e)]]:TestFrameworkConstants[_0x571bfe(0x1cd)],[TestFrameworkConstants[_0x571bfe(0x250)]]:_0x4a8145[_0x571bfe(0x27a)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x4a8145[_0x571bfe(0x24c)]||'',[TestFrameworkConstants[_0x571bfe(0x1e1)]]:_0x124a35,[TestFrameworkConstants[_0x571bfe(0x22c)]]:_0x4a8145[_0x571bfe(0x27a)]||'',[TestFrameworkConstants[_0x571bfe(0x23d)]]:_0x4a8145[_0x571bfe(0x1eb)]||'',[TestFrameworkConstants[_0x571bfe(0x21b)]]:_0x4a8145['body']?.[_0x571bfe(0x276)]||null,[TestFrameworkConstants[_0x571bfe(0x27b)]]:_0x4a8145[_0x571bfe(0x20c)]||[],[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x4a8145[_0x571bfe(0x25c)]||new Date()[_0x571bfe(0x213)](),[TestFrameworkConstants[_0x571bfe(0x284)]]:_0x4a8145[_0x571bfe(0x214)]?.[0x0]||'',[TestFrameworkConstants[_0x571bfe(0x212)]]:_0x4a8145[_0x571bfe(0x214)]||[],[TestFrameworkConstants[_0x571bfe(0x1ef)]]:_0x4a8145[_0x571bfe(0x1f6)]?.[_0x571bfe(0x1c9)]||_0x4a8145[_0x571bfe(0x27a)]||'',[TestFrameworkConstants[_0x571bfe(0x224)]]:{},[TestFrameworkConstants[_0x571bfe(0x252)]]:_0x4a8145[_0x571bfe(0x1c7)]||{}};TestInfo[_0x571bfe(0x1f9)](_0x124a35,_0x1e8ce7),logger[_0x571bfe(0x1fd)](_0x571bfe(0x1ca)+_0x4a8145[_0x571bfe(0x27a)]+'\x20with\x20UUID:\x20'+_0x2b48a7);const _0x31ed20={};return _0x31ed20[_0x124a35]=_0x1e8ce7,_0x31ed20;}[a74_0x127b73(0x1d3)](_0x1b0789){const _0x5dfb50=a74_0x127b73,_0x5424c5={'RyGxr':_0x5dfb50(0x1bd),'LWigj':'unknown','iIHqG':function(_0x26c1bd,_0x4fe0a0){return _0x26c1bd===_0x4fe0a0;},'dboks':_0x5dfb50(0x264),'qMMBy':_0x5dfb50(0x1e6),'zMFoI':function(_0x3455e2,_0x45a1e3,_0x22f52d){return _0x3455e2(_0x45a1e3,_0x22f52d);},'CksjY':function(_0x5ae906,_0x504f7d){return _0x5ae906>_0x504f7d;}},{testUUID:_0x1cc10a,testData:_0x38fb38}=_0x1b0789;if(!_0x38fb38||!_0x38fb38[_0x5dfb50(0x255)])return logger[_0x5dfb50(0x1fd)](_0x5424c5['RyGxr']),{};const _0x486df3=this[_0x5dfb50(0x201)](TestFrameworkState[_0x5dfb50(0x1d7)],HookState[_0x5dfb50(0x1be)]),_0x393ca7=_0x38fb38[_0x5dfb50(0x255)],_0x356e21=TestInfo[_0x5dfb50(0x209)](_0x393ca7)||{},_0x3a8f42=_0x356e21?_0x356e21[TestFrameworkConstants[_0x5dfb50(0x224)]]||{}:{},_0x36d77c={..._0x356e21,[TestFrameworkConstants[_0x5dfb50(0x21e)]]:_0x38fb38[_0x5dfb50(0x225)]||_0x5424c5['LWigj'],[TestFrameworkConstants[_0x5dfb50(0x217)]]:_0x38fb38['finishedAt']||new Date()[_0x5dfb50(0x213)](),[TestFrameworkConstants[_0x5dfb50(0x23c)]]:new Date()[_0x5dfb50(0x213)](),[TestFrameworkConstants[_0x5dfb50(0x224)]]:_0x3a8f42,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants[_0x5dfb50(0x252)]]:_0x38fb38[_0x5dfb50(0x1c7)]||{}};_0x5424c5[_0x5dfb50(0x23e)](_0x38fb38['result'],_0x5424c5[_0x5dfb50(0x265)])&&_0x38fb38[_0x5dfb50(0x1d0)]&&(_0x36d77c[TestFrameworkConstants[_0x5dfb50(0x26a)]]=_0x38fb38[_0x5dfb50(0x229)]||_0x5424c5[_0x5dfb50(0x21f)],_0x36d77c[TestFrameworkConstants[_0x5dfb50(0x1d2)]]=_0x38fb38[_0x5dfb50(0x272)]||'',_0x36d77c[TestFrameworkConstants[_0x5dfb50(0x22f)]]=_0x38fb38[_0x5dfb50(0x1d0)]);const _0x519924=TestInfo[_0x5dfb50(0x209)](_0x393ca7)[TestFrameworkConstants[_0x5dfb50(0x248)]]||{},_0x5f313e=_0x5424c5[_0x5dfb50(0x26c)](getManualUploadLogs,_0x519924,_0x486df3['getAllData']()[_0x5dfb50(0x220)](_0x393ca7)[TestFrameworkConstants[_0x5dfb50(0x245)]]);if(_0x5424c5[_0x5dfb50(0x20f)](_0x5f313e[_0x5dfb50(0x24f)],0x0)){const _0xfcc16=_0x36d77c[TestFrameworkConstants['KEY_LOGS']]||[];_0x36d77c[TestFrameworkConstants[_0x5dfb50(0x1c5)]]=[..._0xfcc16,..._0x5f313e];}_0x38fb38[_0x5dfb50(0x1db)]&&_0x5424c5[_0x5dfb50(0x20f)](_0x38fb38[_0x5dfb50(0x1db)][_0x5dfb50(0x24f)],0x0)&&(_0x36d77c[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x38fb38['hooks']);TestInfo[_0x5dfb50(0x1f9)](_0x393ca7,_0x36d77c),logger[_0x5dfb50(0x1fd)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x38fb38['name']+_0x5dfb50(0x269)+_0x38fb38[_0x5dfb50(0x225)]);const _0x3591fd={};return _0x3591fd[_0x393ca7]=_0x36d77c,_0x3591fd;}async[a74_0x127b73(0x24e)](_0x4f7a17,_0x3c9608,_0x421728,_0x3be067){const _0x229801=a74_0x127b73,_0x4e4dcd={'TcttH':_0x229801(0x1de),'BlnBZ':function(_0x11c696){return _0x11c696();},'vBmbo':function(_0x1d517b,_0xca2f53){return _0x1d517b in _0xca2f53;},'XQpPq':function(_0x45fbef,_0x50ab7c){return _0x45fbef in _0x50ab7c;},'aIoib':function(_0x5436ad,_0xe2e918){return _0x5436ad===_0xe2e918;},'yWJed':function(_0x4b093a,_0x1cd124){return _0x4b093a>_0x1cd124;},'chIjz':_0x229801(0x264),'dsbOb':'UnhandledError','Pjxsb':_0x229801(0x1fb),'DJJxn':function(_0xe817bf,_0x31ab89){return _0xe817bf!==_0x31ab89;}},{hookData:_0x51af7e}=_0x3be067;if(!_0x51af7e)return logger[_0x229801(0x1fd)](_0x4e4dcd[_0x229801(0x266)]),{};const _0x2f13a3=_0x51af7e['uuid']||_0x4e4dcd['BlnBZ'](uuidv4),_0x508d88=_0x51af7e[_0x229801(0x227)],_0x43fcca=_0x3c9608['toString']()[_0x229801(0x27d)]('.')[0x1],_0x4ad44f=TestInfo[_0x229801(0x209)](_0x508d88)[TestFrameworkConstants[_0x229801(0x224)]]||{},_0x3d2cc0=_0x4f7a17['getAllData']()[_0x229801(0x220)](_0x508d88);if(!_0x3d2cc0)return logger[_0x229801(0x1fd)](_0x229801(0x24d)+_0x508d88+_0x229801(0x1ea)),this[_0x229801(0x1df)](_0x4f7a17,_0x508d88,_0x3c9608,_0x421728,_0x3be067),{};let _0x2aa9ad=_0x3d2cc0[TestFrameworkConstants[_0x229801(0x22a)]];!_0x2aa9ad&&(_0x2aa9ad={});!_0x4e4dcd[_0x229801(0x219)](_0x43fcca,_0x2aa9ad)&&(_0x2aa9ad[_0x43fcca]=[]);let _0x159350=_0x3d2cc0[TestFrameworkConstants[_0x229801(0x228)]];!_0x159350&&(_0x159350={});!_0x4e4dcd[_0x229801(0x247)](_0x43fcca,_0x159350)&&(_0x159350[_0x43fcca]=[]);const _0x58e76e={[TestFrameworkConstants[_0x229801(0x22a)]]:_0x2aa9ad,[TestFrameworkConstants[_0x229801(0x228)]]:_0x159350},_0x4ade77={};_0x4ade77[_0x508d88]=_0x58e76e;const _0x1f08d2=_0x4ade77;if(_0x4e4dcd[_0x229801(0x257)](_0x421728,HookState[_0x229801(0x22b)])){const _0x45d3e1={[TestFrameworkConstants[_0x229801(0x258)]]:_0x2f13a3,[TestFrameworkConstants[_0x229801(0x243)]]:TestFrameworkConstants[_0x229801(0x230)],[TestFrameworkConstants[_0x229801(0x273)]]:_0x51af7e[_0x229801(0x1c3)],[TestFrameworkConstants[_0x229801(0x1e4)]]:[],[TestFrameworkConstants[_0x229801(0x249)]]:_0x51af7e[_0x229801(0x205)],[TestFrameworkConstants[_0x229801(0x224)]]:_0x4ad44f};_0x45d3e1[_0x229801(0x242)]=_0x43fcca;const _0x168669=_0x45d3e1;_0x2aa9ad[_0x43fcca]['push'](_0x168669),_0x1f08d2[_0x508d88][TestFrameworkConstants[_0x229801(0x231)]]=_0x43fcca,logger['debug'](_0x229801(0x236)+_0x43fcca+'\x20&\x20hook\x20=\x20'+_0x168669+_0x229801(0x251)+_0x3be067);}else{if(_0x4e4dcd[_0x229801(0x257)](_0x421728,HookState['POST'])){const _0x216a50=_0x51af7e[_0x229801(0x225)],_0x566d26=_0x2aa9ad[_0x43fcca]||[];logger['debug']('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x566d26+_0x229801(0x274)+_0x3be067);if(_0x4e4dcd[_0x229801(0x1e5)](_0x566d26['length'],0x0)){const _0x26ad05=_0x566d26[_0x229801(0x267)]();_0x4e4dcd[_0x229801(0x257)](_0x51af7e[_0x229801(0x225)],_0x4e4dcd[_0x229801(0x26f)])&&_0x51af7e[_0x229801(0x238)]?(_0x26ad05[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x51af7e[_0x229801(0x229)]||_0x4e4dcd[_0x229801(0x27e)],_0x26ad05[TestFrameworkConstants[_0x229801(0x1d8)]]=_0x51af7e[_0x229801(0x272)]||'',_0x26ad05[TestFrameworkConstants[_0x229801(0x22d)]]=_0x51af7e['failure_data']):_0x26ad05[TestFrameworkConstants[_0x229801(0x243)]]=_0x4e4dcd['Pjxsb'];_0x4e4dcd[_0x229801(0x256)](_0x216a50,TestFrameworkConstants[_0x229801(0x230)])&&(_0x26ad05[TestFrameworkConstants[_0x229801(0x243)]]=_0x216a50);_0x26ad05[TestFrameworkConstants[_0x229801(0x27c)]]=_0x51af7e[_0x229801(0x1cc)]||new Date()[_0x229801(0x213)](),_0x26ad05[TestFrameworkConstants[_0x229801(0x224)]]=_0x4ad44f;const _0x1ad785=_0x26ad05[TestFrameworkConstants['KEY_HOOK_ID']];!_0x159350[_0x43fcca]&&(_0x159350[_0x43fcca]=[]),_0x159350[_0x43fcca][_0x229801(0x1d9)](_0x26ad05),_0x1f08d2[_0x508d88][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x43fcca;}}}return logger[_0x229801(0x1fd)](_0x229801(0x1f2)+_0x51af7e[_0x229801(0x205)]+_0x229801(0x1f4)+_0x2f13a3+_0x229801(0x21a)+_0x508d88),_0x1f08d2;}[a74_0x127b73(0x1e8)](_0x141ba5){const _0x47d19d=a74_0x127b73,_0x1e1b5f={};_0x1e1b5f[_0x47d19d(0x237)]=_0x47d19d(0x263);const _0x485b62=_0x1e1b5f;try{const _0x1037e8=_0x141ba5[_0x47d19d(0x1f3)]?_0x141ba5['test']['id']:_0x141ba5[_0x47d19d(0x279)]['test_run_id'],_0x2f0ffb=_0x141ba5[_0x47d19d(0x222)],_0xbe43d2=_0x2f0ffb[_0x47d19d(0x1cf)](),_0x44b5e9=_0x2f0ffb[_0x47d19d(0x1ce)]()['get'](_0x1037e8);if(!_0x44b5e9)return logger[_0x47d19d(0x1fd)](_0x47d19d(0x1fa)+_0x1037e8),{};logger[_0x47d19d(0x1fd)](_0x47d19d(0x22e)+_0x1037e8);const {[TestFrameworkConstants[_0x47d19d(0x1d6)]]:_0x50fe55='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x22246b='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x45df64='',[TestFrameworkConstants[_0x47d19d(0x217)]]:_0x28f74d=''}=_0x44b5e9,_0x2d79c4=_0x2f0ffb['getCurrentTestState']()[_0x47d19d(0x223)]()[_0x47d19d(0x27d)]('.')[0x1],_0x1a234f=_0x2f0ffb[_0x47d19d(0x1fc)]()[_0x47d19d(0x223)]()[_0x47d19d(0x27d)]('.')[0x1],_0x678e87=global?.['browserstackPlatformIndex']??0x0,_0x10e847=_0x2f0ffb[_0x47d19d(0x1ee)](),_0x2147af=Buffer['from'](JSON[_0x47d19d(0x210)](_0x44b5e9))[_0x47d19d(0x223)](_0x485b62['gAtsD']),_0x559695={'hash':_0xbe43d2['getId'](),'threadId':_0xbe43d2['getThreadId']()[_0x47d19d(0x223)](),'processId':_0xbe43d2['getProcessId']()['toString']()},_0x4f8190={};_0x4f8190[_0x47d19d(0x1f5)]=_0x678e87,_0x4f8190['testFrameworkName']=_0x50fe55,_0x4f8190[_0x47d19d(0x202)]=_0x22246b,_0x4f8190[_0x47d19d(0x233)]=_0x2d79c4,_0x4f8190['hookState']=_0x1a234f,_0x4f8190['startedAt']=_0x45df64,_0x4f8190['endedAt']=_0x28f74d,_0x4f8190[_0x47d19d(0x255)]=_0x10e847,_0x4f8190[_0x47d19d(0x1d4)]=_0x2147af,_0x4f8190['executionContext']=_0x559695;const _0x2fbf2e=_0x4f8190;return logger['debug']('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x1037e8+_0x47d19d(0x1e3)+_0x2d79c4+_0x47d19d(0x211)+_0x1a234f),_0x2fbf2e;}catch(_0x34952e){return logger['error'](_0x47d19d(0x270)+util[_0x47d19d(0x27f)](_0x34952e)),{};}}async[a74_0x127b73(0x261)](_0x2f17a1,_0x1f8427,_0x257598){const _0x5ed2f7=a74_0x127b73,_0x1ae2a1={'lVyEw':function(_0x324bf4,_0x187ea1,_0x4839f2){return _0x324bf4(_0x187ea1,_0x4839f2);},'GFxXi':function(_0x8c4c9d,_0x3399eb){return _0x8c4c9d===_0x3399eb;},'YOGZc':_0x5ed2f7(0x268),'bTOTJ':function(_0x5c9803,_0x203db1){return _0x5c9803/_0x203db1;},'lsGyi':function(_0x263825,_0x408111){return _0x263825<_0x408111;},'uQKcv':function(_0x33f5a6,_0x841291){return _0x33f5a6*_0x841291;},'WFieg':function(_0x1c2171,_0x54a5e1){return _0x1c2171+_0x54a5e1;},'xUoIC':_0x5ed2f7(0x1c4)};try{const _0x20e894=_0x257598['testUUID'],_0x4587ad=_0x2f17a1[_0x5ed2f7(0x1ce)]()[_0x5ed2f7(0x220)](_0x20e894),{[TestFrameworkConstants[_0x5ed2f7(0x1d6)]]:_0x4ff493='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x36c9cd=''}=_0x4587ad,_0x5835b2=TestInfo[_0x5ed2f7(0x25d)](_0x20e894),_0x389696=TestInfo[_0x5ed2f7(0x209)](_0x20e894)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x24711b=_0x1ae2a1[_0x5ed2f7(0x1d1)](getMediaArtifactsLogs,_0x389696,_0x2f17a1[_0x5ed2f7(0x1ce)]()[_0x5ed2f7(0x220)](_0x20e894)[TestFrameworkConstants[_0x5ed2f7(0x245)]]),_0x5af420=(_0x5835b2||[])[_0x5ed2f7(0x1c2)](_0x24711b||[]);if(!_0x5af420||_0x1ae2a1[_0x5ed2f7(0x1f0)](_0x5af420[_0x5ed2f7(0x24f)],0x0)){logger['debug'](_0x1ae2a1[_0x5ed2f7(0x239)]);return;}const _0xa1e67d=0x28,_0x28bbd1=Math['ceil'](_0x1ae2a1[_0x5ed2f7(0x215)](_0x5af420[_0x5ed2f7(0x24f)],_0xa1e67d));for(let _0x3d3220=0x0;_0x1ae2a1[_0x5ed2f7(0x280)](_0x3d3220,_0x28bbd1);_0x3d3220++){const _0x1e6001=_0x1ae2a1['uQKcv'](_0x3d3220,_0xa1e67d),_0xf66857=_0x1ae2a1[_0x5ed2f7(0x21d)](_0x1e6001,_0xa1e67d),_0x30224a=_0x5af420[_0x5ed2f7(0x1dc)](_0x1e6001,_0xf66857),_0x42b79a={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x30224a,'testFrameworkName':_0x4ff493,'testFrameworkVersion':_0x36c9cd,'testFrameworkState':_0x1f8427[_0x5ed2f7(0x223)]()[_0x5ed2f7(0x27d)]('.')[0x1]};logger[_0x5ed2f7(0x1fd)](_0x5ed2f7(0x234)+_0x20e894+'\x20batch\x20'+_0x1ae2a1[_0x5ed2f7(0x21d)](_0x3d3220,0x1)+'/'+_0x28bbd1+'\x20payload='+util[_0x5ed2f7(0x20d)](_0x42b79a));const _0xf4d00=await GrpcClient[_0x5ed2f7(0x218)]()[_0x5ed2f7(0x25b)](_0x42b79a);logger[_0x5ed2f7(0x1fd)](_0x5ed2f7(0x234)+_0x20e894+_0x5ed2f7(0x25f)+_0x1ae2a1['WFieg'](_0x3d3220,0x1)+'/'+_0x28bbd1+_0x5ed2f7(0x20b)+util[_0x5ed2f7(0x20d)](_0xf4d00));}}catch(_0x4309c8){logger[_0x5ed2f7(0x1e2)](_0x5ed2f7(0x253)+util[_0x5ed2f7(0x27f)](_0x4309c8));}logger['debug'](_0x1ae2a1['xUoIC']);}[a74_0x127b73(0x1df)](_0x4b19a4,_0x7b413e,_0x2e39f1,_0x1ffb0c,_0x581176){const _0x3f7aba=a74_0x127b73,_0x48dba7={'testId':_0x7b413e,'testFrameworkState':_0x2e39f1,'hookState':_0x1ffb0c,'args':_0x581176,'timestamp':new Date()[_0x3f7aba(0x213)]()};_0x4b19a4[_0x3f7aba(0x241)](_0x7b413e,_0x48dba7),logger[_0x3f7aba(0x1fd)]('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x7b413e+',\x20state:\x20'+_0x2e39f1+',\x20hookState:\x20'+_0x1ffb0c);}async[a74_0x127b73(0x275)](_0x4b8093,_0x284945){const _0x20d5d0=a74_0x127b73,_0x96d76={};_0x96d76[_0x20d5d0(0x23b)]=function(_0x42740c,_0x59bb58){return _0x42740c>_0x59bb58;};const _0x31cee8=_0x96d76;if(!_0x4b8093['hasPendingHooks'](_0x284945))return;const _0xfa26a=_0x4b8093[_0x20d5d0(0x1f8)](_0x284945);logger[_0x20d5d0(0x1fd)]('Processing\x20'+_0xfa26a[_0x20d5d0(0x24f)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x284945);for(const _0x4c5190 of _0xfa26a){try{const _0x1a31d3=await this['trackHookEvent'](_0x4b8093,_0x4c5190['testFrameworkState'],_0x4c5190[_0x20d5d0(0x1f7)],_0x4c5190[_0x20d5d0(0x1ec)]);_0x1a31d3&&_0x31cee8[_0x20d5d0(0x23b)](Object[_0x20d5d0(0x208)](_0x1a31d3)[_0x20d5d0(0x24f)],0x0)&&_0x4b8093['addMultipleEntries'](_0x1a31d3),await this[_0x20d5d0(0x240)](_0x4b8093,_0x4c5190[_0x20d5d0(0x233)],_0x4c5190['hookState'],_0x4c5190[_0x20d5d0(0x1ec)]);}catch(_0x170628){logger[_0x20d5d0(0x1e2)]('Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20'+_0x284945+_0x20d5d0(0x24b)+_0x170628);}}_0x4b8093[_0x20d5d0(0x200)](_0x284945),logger['debug'](_0x20d5d0(0x1dd)+_0x284945);}}module[a74_0x127b73(0x1e9)]=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;