browserstack-node-sdk 1.54.1 → 1.54.2

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 +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- 'use strict';const a69_0x183d14=a69_0x5a4c;(function(_0x3ada21,_0x1ccafd){const _0x4e3780=a69_0x5a4c,_0x412997=_0x3ada21();while(!![]){try{const _0x3c928e=parseInt(_0x4e3780(0x1e9))/0x1*(-parseInt(_0x4e3780(0x1bb))/0x2)+parseInt(_0x4e3780(0x1c3))/0x3*(parseInt(_0x4e3780(0x1df))/0x4)+-parseInt(_0x4e3780(0x1ab))/0x5*(parseInt(_0x4e3780(0x1c4))/0x6)+parseInt(_0x4e3780(0x1cd))/0x7*(parseInt(_0x4e3780(0x1da))/0x8)+-parseInt(_0x4e3780(0x1d1))/0x9*(parseInt(_0x4e3780(0x1e4))/0xa)+parseInt(_0x4e3780(0x1fc))/0xb*(parseInt(_0x4e3780(0x1a9))/0xc)+-parseInt(_0x4e3780(0x1ac))/0xd*(-parseInt(_0x4e3780(0x1b6))/0xe);if(_0x3c928e===_0x1ccafd)break;else _0x412997['push'](_0x412997['shift']());}catch(_0xdb1c0c){_0x412997['push'](_0x412997['shift']());}}}(a69_0x3e1d,0x2110d));function a69_0x3e1d(){const _0x3290a3=['uhmUH','toLowerCase','clearTags','./framework/automationFramework','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','toObject','TEST','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','uehKt','43274tlTySB',':jest-','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','values','testInfo','string','getInstance','buildLevelTags','yteMX','__jestCurrentTestIdentifier','getTrackedInstance','444tEfAaN','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','43580EhNSxI','4069qFEdbX','tIfIy','xDsII','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=',',\x20finalTags=','\x20with\x20values=','Custom\x20tag\x20key\x20cannot\x20be\x20empty','TXWHD','../../helpers/classLogger','debug','7910mdrqnI','./modules/testhubModule','field_type',',\x20key=','DcCgb','11706xoueRk','getAllData','multi_dropdown','./state/testFrameworkState','\x20with\x20new\x20values=','jest','resolveInstance','nrZkO','63OGdjia','30iLwWgB','./cliUtils','SwRCt','getTestFramework','bsbVt','ARgBJ','Custom\x20tag\x20value\x20cannot\x20be\x20empty','KEY_TEST_ID','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','405202TZhrhA','parseCommaSeparatedValues','uqPfB','getTestUUID','284805uqCKZM','WSYsJ','getTestDetails','pIoVs','POST','setCustomTags','getTestLevelTags','setTestDetails','currentTest','8wOaPjW','includes','DqeFJ','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','addMultipleEntries','13228uoMhMm',',\x20values=','testLevelTags','isRunning','JqXWz','80bwzjoT','getBuildLevelTags','modules','retry','trim','3rbEomD','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','adzpv','testhubConfig','KEY_CUSTOM_TAGS','buildHashedId','name','stringify','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','getState'];a69_0x3e1d=function(){return _0x3290a3;};return a69_0x3e1d();}function a69_0x5a4c(_0x42482a,_0x1160b9){const _0x3e1dcd=a69_0x3e1d();return a69_0x5a4c=function(_0x5a4cb3,_0x516806){_0x5a4cb3=_0x5a4cb3-0x1a4;let _0x43f229=_0x3e1dcd[_0x5a4cb3];return _0x43f229;},a69_0x5a4c(_0x42482a,_0x1160b9);}const BrowserstackCLI=require('./browserstackCLI'),helper=require('../../helpers/helper'),AutomationFramework=require(a69_0x183d14(0x1f6)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require('./TestInfo'),TestHubModule=require(a69_0x183d14(0x1b7)),{createClassLogger}=require(a69_0x183d14(0x1b4)),logger=createClassLogger('CustomTagManager');class CustomTagManager{static [a69_0x183d14(0x1a5)]={};static [a69_0x183d14(0x1e1)]={};static[a69_0x183d14(0x1d6)](_0x46f158,_0x191f25,_0x3032b4=![]){const _0x441d2b=a69_0x183d14,_0x235516={'pIoVs':function(_0x4e3354,_0x20f59e){return _0x4e3354!==_0x20f59e;},'uhmUH':_0x441d2b(0x201),'HmUvK':_0x441d2b(0x1aa),'tIfIy':function(_0xc3812d,_0x28d80c){return _0xc3812d!==_0x28d80c;},'dNGjW':_0x441d2b(0x1fe),'bsbVt':function(_0x251f80,_0x2a72f3){return _0x251f80===_0x2a72f3;},'uehKt':_0x441d2b(0x1b2),'nrZkO':_0x441d2b(0x1ca),'JqXWz':_0x441d2b(0x1bd),'xDsII':_0x441d2b(0x1fd),'DcCgb':function(_0x375237,_0x1de95b){return _0x375237(_0x1de95b);},'DqeFJ':_0x441d2b(0x1c5),'yteMX':_0x441d2b(0x1c0),'fIPit':_0x441d2b(0x1f7),'ARgBJ':_0x441d2b(0x1dd),'WSYsJ':function(_0x48e0d6,_0x349983){return _0x48e0d6(_0x349983);},'adzpv':_0x441d2b(0x1be),'TXWHD':function(_0x45782d,_0x587b00){return _0x45782d(_0x587b00);},'SwRCt':'./state/hookState','uqPfB':_0x441d2b(0x1f1)};if(_0x235516[_0x441d2b(0x1d4)](typeof _0x46f158,_0x235516[_0x441d2b(0x1f3)]))throw new Error(_0x235516['HmUvK']);if(_0x235516[_0x441d2b(0x1ad)](typeof _0x191f25,_0x235516[_0x441d2b(0x1f3)]))throw new Error(_0x235516['dNGjW']);if(_0x235516[_0x441d2b(0x1c8)](_0x46f158[_0x441d2b(0x1e8)](),''))throw new Error(_0x235516[_0x441d2b(0x1fb)]);if(_0x235516[_0x441d2b(0x1c8)](_0x191f25[_0x441d2b(0x1e8)](),''))throw new Error(_0x235516[_0x441d2b(0x1c2)]);const _0x4823a1=helper[_0x441d2b(0x1ce)](_0x191f25);if(_0x3032b4){const _0x159598=BrowserstackCLI[_0x441d2b(0x1a4)]()[_0x441d2b(0x1e6)][TestHubModule['MODULE_NAME']];if(_0x159598){const _0x2c2646=_0x159598?.[_0x441d2b(0x1ec)]?.[_0x441d2b(0x1f8)]()?.[_0x441d2b(0x1ee)];TestInfo[_0x441d2b(0x1d0)](_0x2c2646);const _0x2fdf83=TestInfo[_0x441d2b(0x1d3)](_0x2c2646),_0x73c2e1=_0x2fdf83[TestFrameworkConstants[_0x441d2b(0x1ed)]]||{};if(!_0x73c2e1[_0x46f158]){const _0x266345={};_0x266345[_0x441d2b(0x1b8)]=_0x235516[_0x441d2b(0x1e3)],_0x266345[_0x441d2b(0x1ff)]=[..._0x4823a1],_0x73c2e1[_0x46f158]=_0x266345;}else _0x73c2e1[_0x46f158][_0x441d2b(0x1ff)]=[..._0x4823a1];_0x2fdf83[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x73c2e1,TestInfo[_0x441d2b(0x1d8)](_0x2c2646,_0x2fdf83),!this['buildLevelTags'][_0x2c2646]&&(this[_0x441d2b(0x1a5)][_0x2c2646]={}),this[_0x441d2b(0x1a5)][_0x2c2646][_0x46f158]=[..._0x4823a1];}}else{let _0x2b405c;const _0x5d5351=global[_0x441d2b(0x1a7)];let _0x2929b9=![];if(_0x5d5351&&_0x5d5351[_0x441d2b(0x1db)](_0x235516[_0x441d2b(0x1ae)]))_0x2929b9=!![],_0x2b405c=_0x5d5351;else try{const _0x2adc1a=_0x235516[_0x441d2b(0x1ba)](require,_0x235516[_0x441d2b(0x1dc)]);if(BrowserstackCLI[_0x441d2b(0x1a4)]()[_0x441d2b(0x1e2)]()){const _0x5e6901=_0x2adc1a['getTestFrameworkDetail']();if(_0x235516[_0x441d2b(0x1c8)](_0x5e6901?.[_0x441d2b(0x1ef)]?.[_0x441d2b(0x1f4)](),_0x235516[_0x441d2b(0x1a6)])){const _0x2eb2fa=AutomationFramework[_0x441d2b(0x1a8)]();_0x2b405c=AutomationFramework[_0x441d2b(0x1f2)](_0x2eb2fa,PlaywrightDriverModule[_0x441d2b(0x1cb)],''),_0x2b405c&&_0x2b405c['includes'](_0x235516[_0x441d2b(0x1ae)])&&(_0x2929b9=!![]);}}}catch(_0x580e5f){logger[_0x441d2b(0x1b5)](_0x441d2b(0x1fa)+_0x580e5f);}if(_0x2929b9){if(!_0x2b405c)throw new Error(_0x235516['fIPit']);const _0x24b2b8=BrowserstackCLI[_0x441d2b(0x1a4)]()[_0x441d2b(0x1c7)]();if(!_0x24b2b8)throw new Error(_0x235516[_0x441d2b(0x1c9)]);const _0x4bc052=_0x235516[_0x441d2b(0x1d2)](require,_0x235516[_0x441d2b(0x1eb)]),_0x22ab05=_0x235516[_0x441d2b(0x1b3)](require,_0x235516[_0x441d2b(0x1c6)]),_0x2990b0=_0x24b2b8[_0x441d2b(0x1c1)](_0x4bc052[_0x441d2b(0x1f9)],_0x22ab05[_0x441d2b(0x1d5)]);if(!_0x2990b0)throw new Error(_0x235516[_0x441d2b(0x1cf)]);const _0x47b5f7=_0x2990b0[_0x441d2b(0x1bc)]()['get'](_0x2b405c)||{},_0x2ae45c=_0x47b5f7[TestFrameworkConstants[_0x441d2b(0x1ed)]]||{};logger[_0x441d2b(0x1b5)](_0x441d2b(0x1ea)+_0x2b405c+_0x441d2b(0x1b9)+_0x46f158+_0x441d2b(0x1e0)+JSON['stringify'](_0x4823a1)+',\x20existingTags='+JSON['stringify'](_0x2ae45c));if(!_0x2ae45c[_0x46f158]){const _0x567271={};_0x567271['field_type']=_0x235516[_0x441d2b(0x1e3)],_0x567271[_0x441d2b(0x1ff)]=[..._0x4823a1],_0x2ae45c[_0x46f158]=_0x567271,logger[_0x441d2b(0x1b5)](_0x441d2b(0x1cc)+_0x46f158+_0x441d2b(0x1b1)+JSON['stringify'](_0x4823a1));}else _0x2ae45c[_0x46f158][_0x441d2b(0x1ff)]=[..._0x4823a1],logger['debug'](_0x441d2b(0x1af)+_0x46f158+_0x441d2b(0x1bf)+JSON[_0x441d2b(0x1f0)](_0x4823a1));const _0x939374={[TestFrameworkConstants[_0x441d2b(0x1ed)]]:_0x2ae45c},_0x433180={};_0x433180[_0x2b405c]=_0x939374,_0x2990b0[_0x441d2b(0x1de)](_0x433180),logger[_0x441d2b(0x1b5)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x2b405c+_0x441d2b(0x1b0)+JSON['stringify'](_0x2ae45c)),!this[_0x441d2b(0x1e1)][_0x2b405c]&&(this[_0x441d2b(0x1e1)][_0x2b405c]={}),this[_0x441d2b(0x1e1)][_0x2b405c][_0x46f158]=[..._0x4823a1];}else{const _0x35b9fe=global['__workerDetails']?.[_0x441d2b(0x1d9)]?.[_0x441d2b(0x200)];if(!_0x35b9fe){const _0x3b6a18=AutomationFramework[_0x441d2b(0x1a8)]();_0x2b405c=AutomationFramework[_0x441d2b(0x1f2)](_0x3b6a18,PlaywrightDriverModule[_0x441d2b(0x1cb)],'');}else _0x2b405c=TestInfo['getTestIdentifierFromTestInfo'](_0x35b9fe,_0x35b9fe[_0x441d2b(0x1e7)]);const _0x4255b2=TestInfo[_0x441d2b(0x1d3)](_0x2b405c),_0x1c7c99=_0x4255b2[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};if(!_0x1c7c99[_0x46f158]){const _0x2b2de8={};_0x2b2de8[_0x441d2b(0x1b8)]=_0x235516[_0x441d2b(0x1e3)],_0x2b2de8['values']=[..._0x4823a1],_0x1c7c99[_0x46f158]=_0x2b2de8;}else _0x1c7c99[_0x46f158][_0x441d2b(0x1ff)]=[..._0x4823a1];_0x4255b2[TestFrameworkConstants[_0x441d2b(0x1ed)]]=_0x1c7c99,TestInfo[_0x441d2b(0x1d8)](_0x2b405c,_0x4255b2),!this[_0x441d2b(0x1e1)][_0x2b405c]&&(this[_0x441d2b(0x1e1)][_0x2b405c]={}),this[_0x441d2b(0x1e1)][_0x2b405c][_0x46f158]=[..._0x4823a1];}}}static[a69_0x183d14(0x1e5)](){const _0x141bfe=a69_0x183d14,_0x31d056={...this[_0x141bfe(0x1a5)]};return _0x31d056;}static[a69_0x183d14(0x1d7)](){const _0x536def={...this['testLevelTags']};return _0x536def;}static[a69_0x183d14(0x1f5)](){const _0x3b956c=a69_0x183d14;this[_0x3b956c(0x1a5)]={},this[_0x3b956c(0x1e1)]={};}}module['exports']=CustomTagManager;
1
+ 'use strict';const a69_0x8f0e09=a69_0x3f86;(function(_0x2ceef4,_0x22dcce){const _0x24d5d8=a69_0x3f86,_0x2d8d53=_0x2ceef4();while(!![]){try{const _0x9ca6a3=parseInt(_0x24d5d8(0x1a2))/0x1*(-parseInt(_0x24d5d8(0x17c))/0x2)+parseInt(_0x24d5d8(0x1b9))/0x3+-parseInt(_0x24d5d8(0x1a3))/0x4+-parseInt(_0x24d5d8(0x19a))/0x5+-parseInt(_0x24d5d8(0x1a1))/0x6+-parseInt(_0x24d5d8(0x194))/0x7+parseInt(_0x24d5d8(0x18e))/0x8*(parseInt(_0x24d5d8(0x197))/0x9);if(_0x9ca6a3===_0x22dcce)break;else _0x2d8d53['push'](_0x2d8d53['shift']());}catch(_0x15d8d4){_0x2d8d53['push'](_0x2d8d53['shift']());}}}(a69_0x15c3,0xd54dd));const BrowserstackCLI=require(a69_0x8f0e09(0x181)),helper=require(a69_0x8f0e09(0x1ba)),AutomationFramework=require(a69_0x8f0e09(0x17a)),TestFrameworkConstants=require(a69_0x8f0e09(0x1b6)),PlaywrightDriverModule=require(a69_0x8f0e09(0x1be)),TestInfo=require('./TestInfo'),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a69_0x8f0e09(0x16e));class CustomTagManager{static [a69_0x8f0e09(0x193)]={};static [a69_0x8f0e09(0x187)]={};static['setCustomTags'](_0x206f4c,_0x50731c,_0x4a0fc7=![]){const _0x58d6d7=a69_0x8f0e09,_0x372d01={'SUQMm':function(_0x80559,_0x4bd901){return _0x80559!==_0x4bd901;},'ChwxF':_0x58d6d7(0x1aa),'KQLah':_0x58d6d7(0x19f),'bRrYn':_0x58d6d7(0x1a7),'XZrFA':function(_0x54a0b2,_0x1c9197){return _0x54a0b2===_0x1c9197;},'szkoU':_0x58d6d7(0x175),'kjHXx':'Custom\x20tag\x20value\x20cannot\x20be\x20empty','JwqeL':_0x58d6d7(0x1a6),'GhxEo':_0x58d6d7(0x18d),'azQuJ':function(_0x43e3ba,_0x5e7627){return _0x43e3ba(_0x5e7627);},'hSzHu':'./cliUtils','KzsAO':_0x58d6d7(0x1b8),'HxExg':_0x58d6d7(0x172),'aPDpY':_0x58d6d7(0x1b7),'WYeIY':function(_0x3f5de0,_0x6ba138){return _0x3f5de0(_0x6ba138);},'xeKmj':'./state/testFrameworkState','NiEmU':_0x58d6d7(0x17e),'QWzgW':_0x58d6d7(0x1a4)};if(_0x372d01['SUQMm'](typeof _0x206f4c,_0x372d01[_0x58d6d7(0x19b)]))throw new Error(_0x372d01[_0x58d6d7(0x1b2)]);if(_0x372d01[_0x58d6d7(0x195)](typeof _0x50731c,_0x372d01[_0x58d6d7(0x19b)]))throw new Error(_0x372d01['bRrYn']);if(_0x372d01[_0x58d6d7(0x16f)](_0x206f4c[_0x58d6d7(0x17d)](),''))throw new Error(_0x372d01[_0x58d6d7(0x190)]);if(_0x372d01[_0x58d6d7(0x16f)](_0x50731c[_0x58d6d7(0x17d)](),''))throw new Error(_0x372d01[_0x58d6d7(0x1ad)]);const _0x2b2c85=helper['parseCommaSeparatedValues'](_0x50731c);if(_0x4a0fc7){const _0x36f8aa=BrowserstackCLI[_0x58d6d7(0x183)]()[_0x58d6d7(0x1a9)][TestHubModule[_0x58d6d7(0x18a)]];if(_0x36f8aa){const _0x246afa=_0x36f8aa?.[_0x58d6d7(0x180)]?.[_0x58d6d7(0x18c)]()?.[_0x58d6d7(0x1b5)];TestInfo['getTestUUID'](_0x246afa);const _0x3f711d=TestInfo[_0x58d6d7(0x1a5)](_0x246afa),_0x2a8e6c=_0x3f711d[TestFrameworkConstants[_0x58d6d7(0x188)]]||{};if(!_0x2a8e6c[_0x206f4c]){const _0x569a31={};_0x569a31['field_type']=_0x372d01[_0x58d6d7(0x198)],_0x569a31['values']=[..._0x2b2c85],_0x2a8e6c[_0x206f4c]=_0x569a31;}else _0x2a8e6c[_0x206f4c][_0x58d6d7(0x176)]=[..._0x2b2c85];_0x3f711d[TestFrameworkConstants[_0x58d6d7(0x188)]]=_0x2a8e6c,TestInfo[_0x58d6d7(0x171)](_0x246afa,_0x3f711d),!this[_0x58d6d7(0x193)][_0x246afa]&&(this[_0x58d6d7(0x193)][_0x246afa]={}),this[_0x58d6d7(0x193)][_0x246afa][_0x206f4c]=[..._0x2b2c85];}}else{let _0x5db173;const _0x37a9b=global[_0x58d6d7(0x18f)];let _0x280d4e=![];if(_0x37a9b&&_0x37a9b['includes'](_0x372d01[_0x58d6d7(0x1a8)]))_0x280d4e=!![],_0x5db173=_0x37a9b;else try{const _0x99294a=_0x372d01[_0x58d6d7(0x1bd)](require,_0x372d01[_0x58d6d7(0x19c)]);if(BrowserstackCLI[_0x58d6d7(0x183)]()['isRunning']()){const _0x3f9972=_0x99294a[_0x58d6d7(0x179)]();if(_0x372d01['XZrFA'](_0x3f9972?.['name']?.[_0x58d6d7(0x177)](),_0x372d01[_0x58d6d7(0x17b)])){const _0x504032=AutomationFramework[_0x58d6d7(0x1b0)]();_0x5db173=AutomationFramework[_0x58d6d7(0x170)](_0x504032,PlaywrightDriverModule[_0x58d6d7(0x192)],''),_0x5db173&&_0x5db173['includes'](_0x372d01['GhxEo'])&&(_0x280d4e=!![]);}}}catch(_0x4daa8e){logger[_0x58d6d7(0x19d)](_0x58d6d7(0x185)+_0x4daa8e);}if(_0x280d4e){if(!_0x5db173)throw new Error(_0x372d01['HxExg']);const _0x12c45b=BrowserstackCLI['getInstance']()['getTestFramework']();if(!_0x12c45b)throw new Error(_0x372d01[_0x58d6d7(0x1b3)]);const _0x36dc95=_0x372d01['WYeIY'](require,_0x372d01[_0x58d6d7(0x1b4)]),_0x10734a=_0x372d01[_0x58d6d7(0x1bd)](require,_0x372d01[_0x58d6d7(0x199)]),_0x59bbdf=_0x12c45b[_0x58d6d7(0x1bb)](_0x36dc95['TEST'],_0x10734a[_0x58d6d7(0x174)]);if(!_0x59bbdf)throw new Error(_0x372d01[_0x58d6d7(0x17f)]);const _0x32d95c=_0x59bbdf[_0x58d6d7(0x1b1)]()['get'](_0x5db173)||{},_0x5025a4=_0x32d95c[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x58d6d7(0x19d)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x5db173+_0x58d6d7(0x1bc)+_0x206f4c+_0x58d6d7(0x1ac)+JSON[_0x58d6d7(0x1a0)](_0x2b2c85)+',\x20existingTags='+JSON[_0x58d6d7(0x1a0)](_0x5025a4));if(!_0x5025a4[_0x206f4c]){const _0x570d44={};_0x570d44[_0x58d6d7(0x18b)]=_0x372d01[_0x58d6d7(0x198)],_0x570d44[_0x58d6d7(0x176)]=[..._0x2b2c85],_0x5025a4[_0x206f4c]=_0x570d44,logger[_0x58d6d7(0x19d)](_0x58d6d7(0x1af)+_0x206f4c+_0x58d6d7(0x184)+JSON[_0x58d6d7(0x1a0)](_0x2b2c85));}else _0x5025a4[_0x206f4c][_0x58d6d7(0x176)]=[..._0x2b2c85],logger['debug'](_0x58d6d7(0x196)+_0x206f4c+_0x58d6d7(0x1ae)+JSON[_0x58d6d7(0x1a0)](_0x2b2c85));const _0x4d1ed0={[TestFrameworkConstants[_0x58d6d7(0x188)]]:_0x5025a4},_0x164e19={};_0x164e19[_0x5db173]=_0x4d1ed0,_0x59bbdf['addMultipleEntries'](_0x164e19),logger[_0x58d6d7(0x19d)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x5db173+_0x58d6d7(0x1ab)+JSON[_0x58d6d7(0x1a0)](_0x5025a4)),!this[_0x58d6d7(0x187)][_0x5db173]&&(this[_0x58d6d7(0x187)][_0x5db173]={}),this[_0x58d6d7(0x187)][_0x5db173][_0x206f4c]=[..._0x2b2c85];}else{const _0x2a090b=global[_0x58d6d7(0x178)]?.[_0x58d6d7(0x182)]?.[_0x58d6d7(0x189)];if(!_0x2a090b){const _0x265d8e=AutomationFramework[_0x58d6d7(0x1b0)]();_0x5db173=AutomationFramework[_0x58d6d7(0x170)](_0x265d8e,PlaywrightDriverModule[_0x58d6d7(0x192)],'');}else _0x5db173=TestInfo[_0x58d6d7(0x186)](_0x2a090b,_0x2a090b['retry']);const _0x588d2c=TestInfo[_0x58d6d7(0x1a5)](_0x5db173),_0x18245=_0x588d2c[TestFrameworkConstants[_0x58d6d7(0x188)]]||{};if(!_0x18245[_0x206f4c]){const _0x4e719c={};_0x4e719c[_0x58d6d7(0x18b)]=_0x372d01[_0x58d6d7(0x198)],_0x4e719c[_0x58d6d7(0x176)]=[..._0x2b2c85],_0x18245[_0x206f4c]=_0x4e719c;}else _0x18245[_0x206f4c]['values']=[..._0x2b2c85];_0x588d2c[TestFrameworkConstants[_0x58d6d7(0x188)]]=_0x18245,TestInfo['setTestDetails'](_0x5db173,_0x588d2c),!this['testLevelTags'][_0x5db173]&&(this['testLevelTags'][_0x5db173]={}),this[_0x58d6d7(0x187)][_0x5db173][_0x206f4c]=[..._0x2b2c85];}}}static[a69_0x8f0e09(0x173)](){const _0x51599d=a69_0x8f0e09,_0x3d70c3={...this[_0x51599d(0x193)]};return _0x3d70c3;}static[a69_0x8f0e09(0x191)](){const _0x599cd6={...this['testLevelTags']};return _0x599cd6;}static[a69_0x8f0e09(0x19e)](){const _0x17a785=a69_0x8f0e09;this[_0x17a785(0x193)]={},this['testLevelTags']={};}}function a69_0x15c3(){const _0x44813c=['\x20with\x20values=','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','getTestIdentifierFromTestInfo','testLevelTags','KEY_CUSTOM_TAGS','testInfo','MODULE_NAME','field_type','toObject',':jest-','1434640Fegqaw','__jestCurrentTestIdentifier','szkoU','getTestLevelTags','KEY_TEST_ID','buildLevelTags','7650377knFEqD','SUQMm','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=','297WjPBtv','JwqeL','NiEmU','8098665uFLLTY','ChwxF','hSzHu','debug','clearTags','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','stringify','7081878qTNVSl','3qteHsi','1033004DBqDsR','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','getTestDetails','multi_dropdown','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','GhxEo','modules','string',',\x20finalTags=',',\x20values=','kjHXx','\x20with\x20new\x20values=','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','getTrackedInstance','getAllData','KQLah','aPDpY','xeKmj','buildHashedId','./framework/constants/testFrameworkConstants','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','jest','2550744trOkET','../../helpers/helper','resolveInstance',',\x20key=','azQuJ','./modules/playwrightDriverModule','CustomTagManager','XZrFA','getState','setTestDetails','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','getBuildLevelTags','POST','Custom\x20tag\x20key\x20cannot\x20be\x20empty','values','toLowerCase','__workerDetails','getTestFrameworkDetail','./framework/automationFramework','KzsAO','1162158evVxHp','trim','./state/hookState','QWzgW','testhubConfig','./browserstackCLI','currentTest','getInstance'];a69_0x15c3=function(){return _0x44813c;};return a69_0x15c3();}function a69_0x3f86(_0x31b999,_0x194669){const _0x15c3b8=a69_0x15c3();return a69_0x3f86=function(_0x3f8643,_0x2689eb){_0x3f8643=_0x3f8643-0x16e;let _0x27cdbd=_0x15c3b8[_0x3f8643];return _0x27cdbd;},a69_0x3f86(_0x31b999,_0x194669);}module['exports']=CustomTagManager;
@@ -1 +1 @@
1
- const a70_0x5bc78d=a70_0x1911;function a70_0x2704(){const _0x229482=['notifyObserver','registerObserver','24225IoyTsq','exports','4570OGXzCP','16797ThRkzv','5578461NpIamQ','8SEQdwz','tDvnB','930DrSRrU','34392czeEeI','freeze','152GtivYy','getInstance','933450FKURKe','700844optfBX','../../helpers/classLogger.js','observers','53434YpPKzO'];a70_0x2704=function(){return _0x229482;};return a70_0x2704();}(function(_0x28ca9b,_0x41222d){const _0x1af4d7=a70_0x1911,_0xdb1378=_0x28ca9b();while(!![]){try{const _0x51ea8e=-parseInt(_0x1af4d7(0xd3))/0x1+parseInt(_0x1af4d7(0xd0))/0x2+-parseInt(_0x1af4d7(0xcb))/0x3*(parseInt(_0x1af4d7(0xcd))/0x4)+parseInt(_0x1af4d7(0xd6))/0x5*(-parseInt(_0x1af4d7(0xca))/0x6)+parseInt(_0x1af4d7(0xcf))/0x7*(parseInt(_0x1af4d7(0xc8))/0x8)+parseInt(_0x1af4d7(0xc7))/0x9+parseInt(_0x1af4d7(0xd8))/0xa*(parseInt(_0x1af4d7(0xd9))/0xb);if(_0x51ea8e===_0x41222d)break;else _0xdb1378['push'](_0xdb1378['shift']());}catch(_0x4f2fe7){_0xdb1378['push'](_0xdb1378['shift']());}}}(a70_0x2704,0x890f7));const {createClassLogger}=require(a70_0x5bc78d(0xd1));function a70_0x1911(_0x27ec45,_0x4644bf){const _0x270403=a70_0x2704();return a70_0x1911=function(_0x19111a,_0x49cc12){_0x19111a=_0x19111a-0xc7;let _0x7eff2c=_0x270403[_0x19111a];return _0x7eff2c;},a70_0x1911(_0x27ec45,_0x4644bf);}class EventDispatcher{static #instance=null;constructor(){const _0x2a7fd9=a70_0x5bc78d;this[_0x2a7fd9(0xd2)]={};}static[a70_0x5bc78d(0xce)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a70_0x5bc78d(0xd5)](_0x5a28c3,_0x3e1b8d){const _0x5af685=a70_0x5bc78d;!this['observers'][_0x5a28c3]&&(this[_0x5af685(0xd2)][_0x5a28c3]=[]),this[_0x5af685(0xd2)][_0x5a28c3]['push'](_0x3e1b8d);}async[a70_0x5bc78d(0xd4)](_0x5f061b,_0x2d43de){const _0x804f7f=a70_0x5bc78d,_0x515ae3={'tDvnB':function(_0x51c5b7,_0x5d59ae){return _0x51c5b7(_0x5d59ae);}};if(this[_0x804f7f(0xd2)][_0x5f061b]){for(const _0x2525d3 of this['observers'][_0x5f061b]){await _0x515ae3[_0x804f7f(0xc9)](_0x2525d3,_0x2d43de);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();Object[a70_0x5bc78d(0xcc)](eventDispatcher),module[a70_0x5bc78d(0xd7)]=eventDispatcher;
1
+ const a70_0x1f4473=a70_0x32c5;function a70_0x32c5(_0x430c39,_0x217b78){const _0x5911e9=a70_0x5911();return a70_0x32c5=function(_0x32c504,_0x4ba97f){_0x32c504=_0x32c504-0x1b5;let _0x3d9b42=_0x5911e9[_0x32c504];return _0x3d9b42;},a70_0x32c5(_0x430c39,_0x217b78);}(function(_0x43b4ca,_0x58e675){const _0x1ec03f=a70_0x32c5,_0x2b98a8=_0x43b4ca();while(!![]){try{const _0x8d67d0=parseInt(_0x1ec03f(0x1c1))/0x1*(-parseInt(_0x1ec03f(0x1c6))/0x2)+parseInt(_0x1ec03f(0x1bb))/0x3+parseInt(_0x1ec03f(0x1c3))/0x4*(-parseInt(_0x1ec03f(0x1c0))/0x5)+parseInt(_0x1ec03f(0x1be))/0x6*(parseInt(_0x1ec03f(0x1bc))/0x7)+-parseInt(_0x1ec03f(0x1b6))/0x8+parseInt(_0x1ec03f(0x1b5))/0x9*(-parseInt(_0x1ec03f(0x1c2))/0xa)+parseInt(_0x1ec03f(0x1ba))/0xb*(parseInt(_0x1ec03f(0x1b8))/0xc);if(_0x8d67d0===_0x58e675)break;else _0x2b98a8['push'](_0x2b98a8['shift']());}catch(_0xbc907){_0x2b98a8['push'](_0x2b98a8['shift']());}}}(a70_0x5911,0xc127f));const {createClassLogger}=require(a70_0x1f4473(0x1c4));class EventDispatcher{static #instance=null;constructor(){const _0x579fff=a70_0x1f4473;this[_0x579fff(0x1b9)]={};}static[a70_0x1f4473(0x1c8)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a70_0x1f4473(0x1bf)](_0x53f4dd,_0x463803){const _0x3e4cf4=a70_0x1f4473;!this['observers'][_0x53f4dd]&&(this['observers'][_0x53f4dd]=[]),this[_0x3e4cf4(0x1b9)][_0x53f4dd]['push'](_0x463803);}async[a70_0x1f4473(0x1bd)](_0x3850d9,_0x2c7564){const _0x37929c=a70_0x1f4473,_0x4618ba={'JeZwC':function(_0x1b9635,_0x2e676e){return _0x1b9635(_0x2e676e);}};if(this[_0x37929c(0x1b9)][_0x3850d9]){for(const _0x3d8474 of this[_0x37929c(0x1b9)][_0x3850d9]){await _0x4618ba[_0x37929c(0x1b7)](_0x3d8474,_0x2c7564);}return;}}}const eventDispatcher=EventDispatcher[a70_0x1f4473(0x1c8)]();Object[a70_0x1f4473(0x1c7)](eventDispatcher),module[a70_0x1f4473(0x1c5)]=eventDispatcher;function a70_0x5911(){const _0x56156d=['registerObserver','16390qhRsNc','15854VvhXkb','1436460wMcPYF','1808BRJTpa','../../helpers/classLogger.js','exports','32qVFsCF','freeze','getInstance','27ARiTVV','8294576RYawxj','JeZwC','48084kEGBcT','observers','5357wtQIfv','2641980hMvDnP','14ErJpEu','notifyObserver','3486534vIWtOz'];a70_0x5911=function(){return _0x56156d;};return a70_0x5911();}
@@ -1 +1 @@
1
- const a71_0xc0030d=a71_0x2403;function a71_0x4744(){const _0x4693d5=['508589SJgIaV','instances','createContext','automationFrameworkVersion','2495484jBoEqj','setTrackedInstance','runHooks','exports','non_browserstack_automation_sessions','KEY_AUTOMATION_SESSIONS','4816524OgiVBr','3228281DzXxHw','AutomationFramework','../../../helpers/classLogger.js','getHookRegistryKey','getAllData','automationFrameworkName','377560isXqiX','getId','../cliUtils.js','registerObserver','getTrackedInstance','getCurrentInstanceName','get','132sDCAaz','setState','\x20hookState=','notifyObserver','../instances/trackedInstance.js','set','30IkQsoy','45310woFgMr','getAutomationFrameworkVersion','28286BHeVVJ','80AOKCGD','automation_sessions'];a71_0x4744=function(){return _0x4693d5;};return a71_0x4744();}(function(_0x341065,_0x6e2b58){const _0xd50b49=a71_0x2403,_0x28583f=_0x341065();while(!![]){try{const _0x47c570=parseInt(_0xd50b49(0xe8))/0x1+-parseInt(_0xd50b49(0xe5))/0x2*(-parseInt(_0xd50b49(0xdc))/0x3)+parseInt(_0xd50b49(0xe6))/0x4*(-parseInt(_0xd50b49(0xe3))/0x5)+parseInt(_0xd50b49(0xf2))/0x6+-parseInt(_0xd50b49(0xf3))/0x7+-parseInt(_0xd50b49(0xd5))/0x8+parseInt(_0xd50b49(0xec))/0x9*(-parseInt(_0xd50b49(0xe2))/0xa);if(_0x47c570===_0x6e2b58)break;else _0x28583f['push'](_0x28583f['shift']());}catch(_0x459a77){_0x28583f['push'](_0x28583f['shift']());}}}(a71_0x4744,0x64a1d));const {createClassLogger}=require(a71_0xc0030d(0xd1)),util=require('util'),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a71_0xc0030d(0xd7)),TrackedInstance=require(a71_0xc0030d(0xe0)),logger=createClassLogger(a71_0xc0030d(0xf4));class AutomationFramework{static ['instances']=new Map();static [a71_0xc0030d(0xf1)]=a71_0xc0030d(0xe7);static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']=a71_0xc0030d(0xf0);constructor(_0x40b7c7,_0x22eef1){const _0x4522c3=a71_0xc0030d;this[_0x4522c3(0xd4)]=_0x40b7c7,this[_0x4522c3(0xeb)]=_0x22eef1;}['getAutomationFrameworkName'](){const _0x32741e=a71_0xc0030d;return this[_0x32741e(0xd4)];}[a71_0xc0030d(0xe4)](){return this['automationFrameworkVersion'];}async['trackEvent'](_0x50dbd4,_0x511792,_0x116c2f={}){const _0x16ef13=a71_0xc0030d;logger['debug']('trackEvent:\x20automationFrameworkState='+_0x50dbd4+_0x16ef13(0xde)+_0x511792);}async[a71_0xc0030d(0xee)](_0x5f0497,_0x2e1513,_0x1853cc,_0x565aef={}){const _0x4d0faa=a71_0xc0030d,_0x595103=CLIUtils[_0x4d0faa(0xd2)](_0x2e1513,_0x1853cc);_0x5f0497&&_0x5f0497['setState'](_0x2e1513),await eventDispatcher[_0x4d0faa(0xdf)](_0x595103,_0x565aef);}static[a71_0xc0030d(0xd8)](_0x4d1886,_0x133d05,_0x1a34ca){const _0x3f750d=a71_0xc0030d;eventDispatcher[_0x3f750d(0xd8)](CLIUtils[_0x3f750d(0xd2)](_0x4d1886,_0x133d05),_0x1a34ca);}static[a71_0xc0030d(0xed)](_0x305af1,_0x170e54){const _0x1cf745=a71_0xc0030d;AutomationFramework[_0x1cf745(0xe9)][_0x1cf745(0xe1)](_0x305af1[_0x1cf745(0xd6)](),_0x170e54);}static[a71_0xc0030d(0xd9)](){const _0x7963c4=a71_0xc0030d,_0x3c1099=TrackedInstance[_0x7963c4(0xea)](CLIUtils[_0x7963c4(0xda)]());return AutomationFramework['instances'][_0x7963c4(0xdb)](_0x3c1099[_0x7963c4(0xd6)]());}static[a71_0xc0030d(0xdd)](_0xdba27b,_0x2bde5b,_0x4cef3c){const _0x2a1534=a71_0xc0030d;_0xdba27b[_0x2a1534(0xd3)]()[_0x2a1534(0xe1)](_0x2bde5b,_0x4cef3c);}static['getState'](_0x3db9bf,_0x140f2d){const _0x472fc6=a71_0xc0030d;return _0x3db9bf[_0x472fc6(0xd3)]()[_0x472fc6(0xdb)](_0x140f2d);}}function a71_0x2403(_0x155d17,_0x171741){const _0x474436=a71_0x4744();return a71_0x2403=function(_0x24033f,_0x318fdc){_0x24033f=_0x24033f-0xd1;let _0x273de4=_0x474436[_0x24033f];return _0x273de4;},a71_0x2403(_0x155d17,_0x171741);}module[a71_0xc0030d(0xef)]=AutomationFramework;
1
+ const a71_0x37694e=a71_0x26c3;(function(_0x9f7aca,_0x197e7b){const _0x334313=a71_0x26c3,_0x45efb9=_0x9f7aca();while(!![]){try{const _0x2fbd14=-parseInt(_0x334313(0x1f4))/0x1+-parseInt(_0x334313(0x1fa))/0x2*(parseInt(_0x334313(0x1f3))/0x3)+-parseInt(_0x334313(0x1e2))/0x4*(parseInt(_0x334313(0x1ef))/0x5)+parseInt(_0x334313(0x1e3))/0x6*(parseInt(_0x334313(0x1ea))/0x7)+-parseInt(_0x334313(0x1dd))/0x8+parseInt(_0x334313(0x1e6))/0x9*(-parseInt(_0x334313(0x1de))/0xa)+-parseInt(_0x334313(0x1e8))/0xb*(-parseInt(_0x334313(0x1ff))/0xc);if(_0x2fbd14===_0x197e7b)break;else _0x45efb9['push'](_0x45efb9['shift']());}catch(_0x561262){_0x45efb9['push'](_0x45efb9['shift']());}}}(a71_0x311e,0x86fcf));const {createClassLogger}=require(a71_0x37694e(0x1eb)),util=require(a71_0x37694e(0x1fd)),eventDispatcher=require(a71_0x37694e(0x205)),CLIUtils=require(a71_0x37694e(0x1e5)),TrackedInstance=require(a71_0x37694e(0x1f2)),logger=createClassLogger(a71_0x37694e(0x1fe));function a71_0x26c3(_0x33b1bb,_0x6c1508){const _0x311eaa=a71_0x311e();return a71_0x26c3=function(_0x26c32e,_0xa606){_0x26c32e=_0x26c32e-0x1db;let _0x487aaa=_0x311eaa[_0x26c32e];return _0x487aaa;},a71_0x26c3(_0x33b1bb,_0x6c1508);}class AutomationFramework{static [a71_0x37694e(0x1f9)]=new Map();static [a71_0x37694e(0x1e9)]=a71_0x37694e(0x1e7);static [a71_0x37694e(0x1f1)]=a71_0x37694e(0x1db);constructor(_0x4d51dd,_0x5c8873){this['automationFrameworkName']=_0x4d51dd,this['automationFrameworkVersion']=_0x5c8873;}[a71_0x37694e(0x203)](){return this['automationFrameworkName'];}[a71_0x37694e(0x1fb)](){const _0x2fbe5b=a71_0x37694e;return this[_0x2fbe5b(0x201)];}async[a71_0x37694e(0x1e0)](_0x272b50,_0xfa3d9b,_0x5ebd27={}){const _0x1c30c6=a71_0x37694e;logger[_0x1c30c6(0x1fc)]('trackEvent:\x20automationFrameworkState='+_0x272b50+_0x1c30c6(0x1f5)+_0xfa3d9b);}async['runHooks'](_0x37ab76,_0x4eb41c,_0x5e3353,_0x27ed29={}){const _0x26c41b=a71_0x37694e,_0xb4e3c0=CLIUtils[_0x26c41b(0x1e4)](_0x4eb41c,_0x5e3353);_0x37ab76&&_0x37ab76['setState'](_0x4eb41c),await eventDispatcher[_0x26c41b(0x1ed)](_0xb4e3c0,_0x27ed29);}static[a71_0x37694e(0x1f6)](_0x45ced3,_0x4d7c95,_0x2a01f0){const _0x3c0a09=a71_0x37694e;eventDispatcher[_0x3c0a09(0x1f6)](CLIUtils['getHookRegistryKey'](_0x45ced3,_0x4d7c95),_0x2a01f0);}static[a71_0x37694e(0x1f8)](_0x13c3ce,_0x4fba09){const _0x5f12b2=a71_0x37694e;AutomationFramework['instances'][_0x5f12b2(0x1ee)](_0x13c3ce[_0x5f12b2(0x200)](),_0x4fba09);}static[a71_0x37694e(0x1df)](){const _0x11cd76=a71_0x37694e,_0x2c249d=TrackedInstance[_0x11cd76(0x1f7)](CLIUtils[_0x11cd76(0x1f0)]());return AutomationFramework[_0x11cd76(0x1f9)]['get'](_0x2c249d[_0x11cd76(0x200)]());}static[a71_0x37694e(0x204)](_0x1ae468,_0x2732b6,_0x2ff0be){const _0x3d338e=a71_0x37694e;_0x1ae468[_0x3d338e(0x1ec)]()[_0x3d338e(0x1ee)](_0x2732b6,_0x2ff0be);}static[a71_0x37694e(0x1e1)](_0xb64637,_0x4636d7){const _0x28ade2=a71_0x37694e;return _0xb64637[_0x28ade2(0x1ec)]()[_0x28ade2(0x202)](_0x4636d7);}}function a71_0x311e(){const _0x3d105d=['getCurrentInstanceName','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','../instances/trackedInstance.js','27885zGKSGI','677688nlbdhN','\x20hookState=','registerObserver','createContext','setTrackedInstance','instances','102iOnACV','getAutomationFrameworkVersion','debug','util','AutomationFramework','24ZyngKa','getId','automationFrameworkVersion','get','getAutomationFrameworkName','setState','../eventDispatcher.js','non_browserstack_automation_sessions','exports','3179352gipHuW','4429870EkAliH','getTrackedInstance','trackEvent','getState','14948HRYpUR','6GCLXSB','getHookRegistryKey','../cliUtils.js','9NYaIiF','automation_sessions','14914735SEapKI','KEY_AUTOMATION_SESSIONS','4509463dzghuQ','../../../helpers/classLogger.js','getAllData','notifyObserver','set','1085NcdahW'];a71_0x311e=function(){return _0x3d105d;};return a71_0x311e();}module[a71_0x37694e(0x1dc)]=AutomationFramework;
@@ -1 +1 @@
1
- const a72_0x1ac22b=a72_0x414d;(function(_0x4c47f6,_0x4de73e){const _0x42eed6=a72_0x414d,_0x56d45a=_0x4c47f6();while(!![]){try{const _0x3b3901=-parseInt(_0x42eed6(0x157))/0x1*(parseInt(_0x42eed6(0x156))/0x2)+parseInt(_0x42eed6(0x155))/0x3*(-parseInt(_0x42eed6(0x13f))/0x4)+-parseInt(_0x42eed6(0x13d))/0x5*(parseInt(_0x42eed6(0x14a))/0x6)+parseInt(_0x42eed6(0x148))/0x7*(-parseInt(_0x42eed6(0x149))/0x8)+parseInt(_0x42eed6(0x13c))/0x9*(-parseInt(_0x42eed6(0x147))/0xa)+parseInt(_0x42eed6(0x14d))/0xb+parseInt(_0x42eed6(0x140))/0xc;if(_0x3b3901===_0x4de73e)break;else _0x56d45a['push'](_0x56d45a['shift']());}catch(_0x27b1ae){_0x56d45a['push'](_0x56d45a['shift']());}}}(a72_0x3687,0xf3233));const a72_0x2566bb={};a72_0x2566bb[a72_0x1ac22b(0x141)]=a72_0x1ac22b(0x13e),a72_0x2566bb[a72_0x1ac22b(0x145)]='hub_url',a72_0x2566bb[a72_0x1ac22b(0x14f)]=a72_0x1ac22b(0x146),a72_0x2566bb['KEY_INPUT_CAPABILITIES']='input_capabilities',a72_0x2566bb[a72_0x1ac22b(0x144)]=a72_0x1ac22b(0x13b),a72_0x2566bb['KEY_IS_BROWSERSTACK_HUB']=a72_0x1ac22b(0x142),a72_0x2566bb[a72_0x1ac22b(0x143)]='started_at',a72_0x2566bb[a72_0x1ac22b(0x151)]='ended_at',a72_0x2566bb[a72_0x1ac22b(0x154)]='platform_index',a72_0x2566bb['COMMAND_NEW_SESSION']=a72_0x1ac22b(0x158),a72_0x2566bb['COMMAND_GET']=a72_0x1ac22b(0x14b),a72_0x2566bb['COMMAND_SCREENSHOT']='screenshot',a72_0x2566bb[a72_0x1ac22b(0x152)]='w3cexecutescript',a72_0x2566bb[a72_0x1ac22b(0x153)]=a72_0x1ac22b(0x14c),a72_0x2566bb[a72_0x1ac22b(0x14e)]=a72_0x1ac22b(0x150);const AutomationFrameworkConstants=a72_0x2566bb;function a72_0x414d(_0x5c9b9d,_0x171d43){const _0x368714=a72_0x3687();return a72_0x414d=function(_0x414dc5,_0x17a6b4){_0x414dc5=_0x414dc5-0x13b;let _0x433c12=_0x368714[_0x414dc5];return _0x433c12;},a72_0x414d(_0x5c9b9d,_0x171d43);}function a72_0x3687(){const _0x281c1b=['194262WeDpjJ','get','w3cexecutescriptasync','10352584pSBXDG','COMMAND_QUIT','KEY_FRAMEWORK_SESSION_ID','quit','KEY_ENDED_AT','COMMAND_W3C_EXECUTE_SCRIPT','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_PLATFORM_INDEX','237zYJzpx','30ISBxYc','42972trxxqp','newsession','capabilities','15887556rfOlmR','15jgNYKy','BROWSERSTACK_PLATFORM_INDEX','12872MWBvsb','33999912Gnrsra','ENV_BROWSERSTACK_PLATFORM_INDEX','is_browserstack_hub','KEY_STARTED_AT','KEY_CAPABILITIES','KEY_HUB_URL','framework_session_id','10sZHnGo','60767yPeUIx','16mlzwwu'];a72_0x3687=function(){return _0x281c1b;};return a72_0x3687();}module['exports']=AutomationFrameworkConstants;
1
+ const a72_0x5a81f6=a72_0x5cb3;function a72_0x5cb3(_0x3d13aa,_0x310e69){const _0x18d8d3=a72_0x18d8();return a72_0x5cb3=function(_0x5cb306,_0x305437){_0x5cb306=_0x5cb306-0xcf;let _0x1535e8=_0x18d8d3[_0x5cb306];return _0x1535e8;},a72_0x5cb3(_0x3d13aa,_0x310e69);}(function(_0x104ea3,_0x435f13){const _0x59ed5a=a72_0x5cb3,_0x2607c0=_0x104ea3();while(!![]){try{const _0x2888d2=-parseInt(_0x59ed5a(0xeb))/0x1+parseInt(_0x59ed5a(0xd1))/0x2*(parseInt(_0x59ed5a(0xd0))/0x3)+parseInt(_0x59ed5a(0xf1))/0x4*(-parseInt(_0x59ed5a(0xd7))/0x5)+parseInt(_0x59ed5a(0xe9))/0x6*(parseInt(_0x59ed5a(0xe7))/0x7)+-parseInt(_0x59ed5a(0xdc))/0x8*(-parseInt(_0x59ed5a(0xcf))/0x9)+parseInt(_0x59ed5a(0xde))/0xa+-parseInt(_0x59ed5a(0xe4))/0xb*(parseInt(_0x59ed5a(0xdb))/0xc);if(_0x2888d2===_0x435f13)break;else _0x2607c0['push'](_0x2607c0['shift']());}catch(_0x285ef3){_0x2607c0['push'](_0x2607c0['shift']());}}}(a72_0x18d8,0x86bd3));function a72_0x18d8(){const _0x2de615=['75ZanIXD','37970sWgisH','COMMAND_W3C_EXECUTE_SCRIPT','COMMAND_GET','framework_session_id','ended_at','hub_url','400930urpKfR','COMMAND_SCREENSHOT','quit','KEY_ENDED_AT','3821508xFDOEe','257456EtEqMO','w3cexecutescript','2479630XAHGRQ','started_at','COMMAND_NEW_SESSION','platform_index','BROWSERSTACK_PLATFORM_INDEX','KEY_FRAMEWORK_SESSION_ID','55puJlps','KEY_INPUT_CAPABILITIES','KEY_CAPABILITIES','763zFUUnq','capabilities','50622eXeVmS','exports','46205slBPle','newsession','is_browserstack_hub','KEY_IS_BROWSERSTACK_HUB','screenshot','input_capabilities','16DZYaaN','get','243ELzEZY'];a72_0x18d8=function(){return _0x2de615;};return a72_0x18d8();}const a72_0x17ed43={};a72_0x17ed43['ENV_BROWSERSTACK_PLATFORM_INDEX']=a72_0x5a81f6(0xe2),a72_0x17ed43['KEY_HUB_URL']=a72_0x5a81f6(0xd6),a72_0x17ed43[a72_0x5a81f6(0xe3)]=a72_0x5a81f6(0xd4),a72_0x17ed43[a72_0x5a81f6(0xe5)]=a72_0x5a81f6(0xf0),a72_0x17ed43[a72_0x5a81f6(0xe6)]=a72_0x5a81f6(0xe8),a72_0x17ed43[a72_0x5a81f6(0xee)]=a72_0x5a81f6(0xed),a72_0x17ed43['KEY_STARTED_AT']=a72_0x5a81f6(0xdf),a72_0x17ed43[a72_0x5a81f6(0xda)]=a72_0x5a81f6(0xd5),a72_0x17ed43['KEY_PLATFORM_INDEX']=a72_0x5a81f6(0xe1),a72_0x17ed43[a72_0x5a81f6(0xe0)]=a72_0x5a81f6(0xec),a72_0x17ed43[a72_0x5a81f6(0xd3)]=a72_0x5a81f6(0xf2),a72_0x17ed43[a72_0x5a81f6(0xd8)]=a72_0x5a81f6(0xef),a72_0x17ed43[a72_0x5a81f6(0xd2)]=a72_0x5a81f6(0xdd),a72_0x17ed43['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']='w3cexecutescriptasync',a72_0x17ed43['COMMAND_QUIT']=a72_0x5a81f6(0xd9);const AutomationFrameworkConstants=a72_0x17ed43;module[a72_0x5a81f6(0xea)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- function a73_0x3c72(){const _0x3bdd11=['KEY_FILE_LEVEL','KEY_HOOK_LAST_FINISHED','744945nGAtFk','test_file_path','KEY_TEST_FAILURE','KEY_TEST_RETRY_OF','hook_id','KEY_TEST_FAILURE_REASON','test_hooks_finished','file_name','KEY_TEST_RESULT_AT','TEST_SCREENSHOT','test_hooks_started','KEY_TEST_LOGS','KEY_CUSTOM_TAGS','automate_session_name','test_framework_version','automate_session_status','KEY_AUTOMATE_SESSION_NAME','test_name','event_ended_at','KEY_AUTOMATE_SESSION_STATUS','test_logs','KEY_TEST_ATTACHMENTS','8659497wjtCTa','54264UxZrEG','KEY_TEST_FRAMEWORK_NAME','TEST_LOG','KEY_FILE_PATH','test_scopes','test_scope','test_result_at','test_framework_name','KEY_TEST_STARTED_AT','test_duration','891981BMUrMK','5636560ZoHYnj','file_path','KEY_TEST_META','KEY_TEST_FILE_PATH','HOOK_REGEX','KEY_HOOK_LAST_STARTED','KEY_TEST_NAME','hook_logs','KEY_TEST_ID','test_hook_last_finished','5384940aGfotO','test_result','test_rerun_name','platform_index','1500DaJTur','KEY_HOOK_ID','KEY_FILE_SIZE','exports','KEY_EVENT_ENDED_AT','KEY_HOOKS_STARTED','test_session_name','KEY_TEST_SCOPE','test_tags','8VdihCm','KIND_SCREENSHOT','KEY_TEST_SCOPES','test_location','KEY_HOOK_RESULT','pending','file_size','file_level','hook_name','KEY_FILE_NAME','MAX_NESTED_STEP_DEPTH','KEY_TEST_RESULT','test_meta','test_started_at','KEY_AUTOMATE_SESSION_REASON','DEFAULT_HOOK_RESULT','retry_of','KEY_SESSION_NAME','test_uuid','100LereMf','KEY_TEST_CODE','test_failure','hook_failure_type','KEY_TEST_FAILURE_TYPE','KEY_HOOKS_FINISHED','31536PbfyjL','test_failure_reason','test_attachments','test_failure_type','KEY_HOOK_FAILURE_REASON','MAX_TOP_LEVEL_STEPS','test_ended_at','^(BEFORE_|AFTER_)'];a73_0x3c72=function(){return _0x3bdd11;};return a73_0x3c72();}const a73_0x277d38=a73_0x45cb;function a73_0x45cb(_0x5aab86,_0x590f09){const _0x3c72e5=a73_0x3c72();return a73_0x45cb=function(_0x45cb8c,_0x1a557a){_0x45cb8c=_0x45cb8c-0x72;let _0x2e1e50=_0x3c72e5[_0x45cb8c];return _0x2e1e50;},a73_0x45cb(_0x5aab86,_0x590f09);}(function(_0xf2cd71,_0x13ea1c){const _0x511ec3=a73_0x45cb,_0x1cdf17=_0xf2cd71();while(!![]){try{const _0x37e7f6=-parseInt(_0x511ec3(0xa6))/0x1+parseInt(_0x511ec3(0x96))/0x2*(parseInt(_0x511ec3(0xbd))/0x3)+-parseInt(_0x511ec3(0xc8))/0x4+-parseInt(_0x511ec3(0x7a))/0x5*(-parseInt(_0x511ec3(0x9c))/0x6)+parseInt(_0x511ec3(0xbc))/0x7+-parseInt(_0x511ec3(0x83))/0x8*(parseInt(_0x511ec3(0xc7))/0x9)+-parseInt(_0x511ec3(0x76))/0xa;if(_0x37e7f6===_0x13ea1c)break;else _0x1cdf17['push'](_0x1cdf17['shift']());}catch(_0x38cc8f){_0x1cdf17['push'](_0x1cdf17['shift']());}}}(a73_0x3c72,0xe2377));const a73_0x227ff4={};a73_0x227ff4['KEY_TEST_UUID']=a73_0x277d38(0x95),a73_0x227ff4[a73_0x277d38(0x74)]='test_id',a73_0x227ff4[a73_0x277d38(0x72)]=a73_0x277d38(0xb7),a73_0x227ff4[a73_0x277d38(0xcb)]=a73_0x277d38(0xa7),a73_0x227ff4['KEY_TEST_TAGS']=a73_0x277d38(0x82),a73_0x227ff4[a73_0x277d38(0x8e)]=a73_0x277d38(0x77),a73_0x227ff4[a73_0x277d38(0xae)]=a73_0x277d38(0xc3),a73_0x227ff4[a73_0x277d38(0xc5)]=a73_0x277d38(0x90),a73_0x227ff4['KEY_TEST_ENDED_AT']=a73_0x277d38(0xa2),a73_0x227ff4['KEY_TEST_LOCATION']=a73_0x277d38(0x86),a73_0x227ff4['KEY_TEST_DURATION']=a73_0x277d38(0xc6),a73_0x227ff4[a73_0x277d38(0x81)]=a73_0x277d38(0xc2),a73_0x227ff4[a73_0x277d38(0x85)]=a73_0x277d38(0xc1),a73_0x227ff4[a73_0x277d38(0xbe)]=a73_0x277d38(0xc4),a73_0x227ff4['KEY_TEST_FRAMEWORK_VERSION']=a73_0x277d38(0xb4),a73_0x227ff4[a73_0x277d38(0x97)]='test_code',a73_0x227ff4['KEY_TEST_RERUN_NAME']=a73_0x277d38(0x78),a73_0x227ff4[a73_0x277d38(0xa9)]=a73_0x277d38(0x93),a73_0x227ff4['KEY_PLATFORM_INDEX']=a73_0x277d38(0x79),a73_0x227ff4[a73_0x277d38(0xa8)]=a73_0x277d38(0x98),a73_0x227ff4[a73_0x277d38(0x9a)]=a73_0x277d38(0x9f),a73_0x227ff4[a73_0x277d38(0xab)]=a73_0x277d38(0x9d),a73_0x227ff4[a73_0x277d38(0xb1)]=a73_0x277d38(0xba),a73_0x227ff4[a73_0x277d38(0xca)]=a73_0x277d38(0x8f),a73_0x227ff4[a73_0x277d38(0x94)]=a73_0x277d38(0x80),a73_0x227ff4[a73_0x277d38(0xb6)]=a73_0x277d38(0xb3),a73_0x227ff4[a73_0x277d38(0xb9)]=a73_0x277d38(0xb5),a73_0x227ff4[a73_0x277d38(0x91)]='automate_session_reason',a73_0x227ff4['KEY_EVENT_STARTED_AT']='event_started_at',a73_0x227ff4[a73_0x277d38(0x7e)]=a73_0x277d38(0xb8),a73_0x227ff4[a73_0x277d38(0x7b)]=a73_0x277d38(0xaa),a73_0x227ff4[a73_0x277d38(0x87)]='hook_result',a73_0x227ff4['KEY_HOOK_FAILURE_TYPE']=a73_0x277d38(0x99),a73_0x227ff4[a73_0x277d38(0xa0)]='hook_failure_reason',a73_0x227ff4['KEY_HOOK_FAILURE']='hook_failure',a73_0x227ff4['KEY_HOOK_LOGS']=a73_0x277d38(0x73),a73_0x227ff4['KEY_HOOK_NAME']=a73_0x277d38(0x8b),a73_0x227ff4['DEFAULT_TEST_RESULT']=a73_0x277d38(0x88),a73_0x227ff4[a73_0x277d38(0x92)]=a73_0x277d38(0x88),a73_0x227ff4[a73_0x277d38(0x84)]=a73_0x277d38(0xaf),a73_0x227ff4['KIND_LOG']=a73_0x277d38(0xbf),a73_0x227ff4[a73_0x277d38(0xcc)]=a73_0x277d38(0xa3),a73_0x227ff4[a73_0x277d38(0x7f)]=a73_0x277d38(0xb0),a73_0x227ff4[a73_0x277d38(0x9b)]=a73_0x277d38(0xac),a73_0x227ff4[a73_0x277d38(0xcd)]='test_hook_last_started',a73_0x227ff4[a73_0x277d38(0xa5)]=a73_0x277d38(0x75),a73_0x227ff4['KEY_LOGS']='logs',a73_0x227ff4[a73_0x277d38(0xb2)]='custom_metadata',a73_0x227ff4[a73_0x277d38(0xbb)]=a73_0x277d38(0x9e),a73_0x227ff4[a73_0x277d38(0x7c)]=a73_0x277d38(0x89),a73_0x227ff4[a73_0x277d38(0x8c)]=a73_0x277d38(0xad),a73_0x227ff4[a73_0x277d38(0xc0)]=a73_0x277d38(0xc9),a73_0x227ff4[a73_0x277d38(0xa4)]=a73_0x277d38(0x8a),a73_0x227ff4[a73_0x277d38(0xa1)]=0xa,a73_0x227ff4[a73_0x277d38(0x8d)]=0x2;const TestFrameworkConstants=a73_0x227ff4;module[a73_0x277d38(0x7d)]=TestFrameworkConstants;
1
+ const a73_0x523b6f=a73_0xd534;function a73_0xd534(_0x1d73e7,_0x447fe7){const _0x190ef3=a73_0x190e();return a73_0xd534=function(_0xd5349a,_0x2af8d7){_0xd5349a=_0xd5349a-0x16c;let _0x575d54=_0x190ef3[_0xd5349a];return _0x575d54;},a73_0xd534(_0x1d73e7,_0x447fe7);}(function(_0x2cf381,_0x2ed02e){const _0x1929ed=a73_0xd534,_0x1e042d=_0x2cf381();while(!![]){try{const _0x4e9c91=parseInt(_0x1929ed(0x18e))/0x1*(parseInt(_0x1929ed(0x1a3))/0x2)+parseInt(_0x1929ed(0x184))/0x3*(parseInt(_0x1929ed(0x194))/0x4)+-parseInt(_0x1929ed(0x195))/0x5*(-parseInt(_0x1929ed(0x18a))/0x6)+-parseInt(_0x1929ed(0x16d))/0x7*(parseInt(_0x1929ed(0x17b))/0x8)+parseInt(_0x1929ed(0x1ae))/0x9*(-parseInt(_0x1929ed(0x18b))/0xa)+-parseInt(_0x1929ed(0x1bd))/0xb*(-parseInt(_0x1929ed(0x19c))/0xc)+-parseInt(_0x1929ed(0x1c2))/0xd;if(_0x4e9c91===_0x2ed02e)break;else _0x1e042d['push'](_0x1e042d['shift']());}catch(_0x3a3363){_0x1e042d['push'](_0x1e042d['shift']());}}}(a73_0x190e,0xcce3c));function a73_0x190e(){const _0x42a589=['KEY_FILE_PATH','KEY_TEST_RESULT_AT','test_attachments','KEY_HOOK_NAME','12PxnrCi','hook_failure_type','KEY_TEST_RETRY_OF','test_rerun_name','test_hook_last_finished','KEY_TEST_CODE','automate_session_name','30ttzRme','KEY_LOGS','KEY_TEST_FAILURE_REASON','KEY_HOOK_FAILURE','KEY_TEST_TAGS','test_file_path','test_name','KEY_TEST_STARTED_AT','test_scope','automate_session_status','retry_of','18ADOZxK','KEY_TEST_ENDED_AT','KEY_TEST_DURATION','test_meta','KEY_TEST_RERUN_NAME','KEY_HOOK_FAILURE_REASON','KEY_FILE_LEVEL','KIND_SCREENSHOT','KEY_HOOK_LOGS','KEY_TEST_FILE_PATH','hook_failure','hook_id','KEY_TEST_ID','file_name','logs','17081471PaNiIr','exports','test_ended_at','HOOK_REGEX','TEST_SCREENSHOT','17370743WUYoel','KEY_FILE_SIZE','KEY_TEST_LOGS','KEY_TEST_SCOPE','KEY_TEST_FRAMEWORK_VERSION','77546uoiack','event_ended_at','test_hooks_started','KEY_TEST_FAILURE','test_code','hook_failure_reason','hook_result','pending','DEFAULT_HOOK_RESULT','KEY_HOOK_ID','platform_index','KEY_HOOK_LAST_STARTED','file_path','test_scopes','840pqZvcn','test_started_at','test_tags','KEY_AUTOMATE_SESSION_REASON','KEY_HOOK_RESULT','KEY_AUTOMATE_SESSION_STATUS','test_hook_last_started','KEY_TEST_FAILURE_TYPE','test_framework_version','35718qjAcBa','test_failure_type','KEY_TEST_FRAMEWORK_NAME','KIND_LOG','test_uuid','KEY_TEST_RESULT','150mZZrHQ','7691880QRgjLD','MAX_TOP_LEVEL_STEPS','test_hooks_finished','86588neZdTj','KEY_TEST_ATTACHMENTS','TEST_LOG','hook_logs','KEY_EVENT_STARTED_AT','file_level','316QkOkbj','216950jTcvOH','MAX_NESTED_STEP_DEPTH','KEY_HOOKS_FINISHED'];a73_0x190e=function(){return _0x42a589;};return a73_0x190e();}const a73_0x499f1a={};a73_0x499f1a['KEY_TEST_UUID']=a73_0x523b6f(0x188),a73_0x499f1a[a73_0x523b6f(0x1ba)]='test_id',a73_0x499f1a['KEY_TEST_NAME']=a73_0x523b6f(0x1a9),a73_0x499f1a[a73_0x523b6f(0x1b7)]=a73_0x523b6f(0x1a8),a73_0x499f1a[a73_0x523b6f(0x1a7)]=a73_0x523b6f(0x17d),a73_0x499f1a[a73_0x523b6f(0x189)]='test_result',a73_0x499f1a[a73_0x523b6f(0x199)]='test_result_at',a73_0x499f1a[a73_0x523b6f(0x1aa)]=a73_0x523b6f(0x17c),a73_0x499f1a[a73_0x523b6f(0x1af)]=a73_0x523b6f(0x1bf),a73_0x499f1a['KEY_TEST_LOCATION']='test_location',a73_0x499f1a[a73_0x523b6f(0x1b0)]='test_duration',a73_0x499f1a[a73_0x523b6f(0x1c5)]=a73_0x523b6f(0x1ab),a73_0x499f1a['KEY_TEST_SCOPES']=a73_0x523b6f(0x17a),a73_0x499f1a[a73_0x523b6f(0x186)]='test_framework_name',a73_0x499f1a[a73_0x523b6f(0x16c)]=a73_0x523b6f(0x183),a73_0x499f1a[a73_0x523b6f(0x1a1)]=a73_0x523b6f(0x171),a73_0x499f1a[a73_0x523b6f(0x1b2)]=a73_0x523b6f(0x19f),a73_0x499f1a[a73_0x523b6f(0x19e)]=a73_0x523b6f(0x1ad),a73_0x499f1a['KEY_PLATFORM_INDEX']=a73_0x523b6f(0x177),a73_0x499f1a[a73_0x523b6f(0x170)]='test_failure',a73_0x499f1a[a73_0x523b6f(0x182)]=a73_0x523b6f(0x185),a73_0x499f1a[a73_0x523b6f(0x1a5)]='test_failure_reason',a73_0x499f1a[a73_0x523b6f(0x1c4)]='test_logs',a73_0x499f1a['KEY_TEST_META']=a73_0x523b6f(0x1b1),a73_0x499f1a['KEY_SESSION_NAME']='test_session_name',a73_0x499f1a['KEY_AUTOMATE_SESSION_NAME']=a73_0x523b6f(0x1a2),a73_0x499f1a[a73_0x523b6f(0x180)]=a73_0x523b6f(0x1ac),a73_0x499f1a[a73_0x523b6f(0x17e)]='automate_session_reason',a73_0x499f1a[a73_0x523b6f(0x192)]='event_started_at',a73_0x499f1a['KEY_EVENT_ENDED_AT']=a73_0x523b6f(0x16e),a73_0x499f1a[a73_0x523b6f(0x176)]=a73_0x523b6f(0x1b9),a73_0x499f1a[a73_0x523b6f(0x17f)]=a73_0x523b6f(0x173),a73_0x499f1a['KEY_HOOK_FAILURE_TYPE']=a73_0x523b6f(0x19d),a73_0x499f1a[a73_0x523b6f(0x1b3)]=a73_0x523b6f(0x172),a73_0x499f1a[a73_0x523b6f(0x1a6)]=a73_0x523b6f(0x1b8),a73_0x499f1a[a73_0x523b6f(0x1b6)]=a73_0x523b6f(0x191),a73_0x499f1a[a73_0x523b6f(0x19b)]='hook_name',a73_0x499f1a['DEFAULT_TEST_RESULT']=a73_0x523b6f(0x174),a73_0x499f1a[a73_0x523b6f(0x175)]='pending',a73_0x499f1a[a73_0x523b6f(0x1b5)]=a73_0x523b6f(0x1c1),a73_0x499f1a[a73_0x523b6f(0x187)]=a73_0x523b6f(0x190),a73_0x499f1a[a73_0x523b6f(0x1c0)]='^(BEFORE_|AFTER_)',a73_0x499f1a['KEY_HOOKS_STARTED']=a73_0x523b6f(0x16f),a73_0x499f1a[a73_0x523b6f(0x197)]=a73_0x523b6f(0x18d),a73_0x499f1a[a73_0x523b6f(0x178)]=a73_0x523b6f(0x181),a73_0x499f1a['KEY_HOOK_LAST_FINISHED']=a73_0x523b6f(0x1a0),a73_0x499f1a[a73_0x523b6f(0x1a4)]=a73_0x523b6f(0x1bc),a73_0x499f1a['KEY_CUSTOM_TAGS']='custom_metadata',a73_0x499f1a[a73_0x523b6f(0x18f)]=a73_0x523b6f(0x19a),a73_0x499f1a[a73_0x523b6f(0x1c3)]='file_size',a73_0x499f1a['KEY_FILE_NAME']=a73_0x523b6f(0x1bb),a73_0x499f1a[a73_0x523b6f(0x198)]=a73_0x523b6f(0x179),a73_0x499f1a[a73_0x523b6f(0x1b4)]=a73_0x523b6f(0x193),a73_0x499f1a[a73_0x523b6f(0x18c)]=0xa,a73_0x499f1a[a73_0x523b6f(0x196)]=0x2;const TestFrameworkConstants=a73_0x499f1a;module[a73_0x523b6f(0x1be)]=TestFrameworkConstants;
@@ -1 +1 @@
1
- const a74_0x56851c=a74_0x48ee;function a74_0x48ee(_0x307736,_0x79e3d){const _0x59bdcb=a74_0x59bd();return a74_0x48ee=function(_0x48ee71,_0x5cdd0a){_0x48ee71=_0x48ee71-0x1f1;let _0x3c7585=_0x59bdcb[_0x48ee71];return _0x3c7585;},a74_0x48ee(_0x307736,_0x79e3d);}(function(_0x361ff5,_0x5714ba){const _0xebfe7b=a74_0x48ee,_0x46fc39=_0x361ff5();while(!![]){try{const _0x4f0f79=parseInt(_0xebfe7b(0x21c))/0x1*(-parseInt(_0xebfe7b(0x229))/0x2)+parseInt(_0xebfe7b(0x20c))/0x3*(-parseInt(_0xebfe7b(0x28a))/0x4)+parseInt(_0xebfe7b(0x203))/0x5*(parseInt(_0xebfe7b(0x21d))/0x6)+parseInt(_0xebfe7b(0x2b9))/0x7*(parseInt(_0xebfe7b(0x218))/0x8)+parseInt(_0xebfe7b(0x28f))/0x9+-parseInt(_0xebfe7b(0x2b6))/0xa+parseInt(_0xebfe7b(0x20e))/0xb;if(_0x4f0f79===_0x5714ba)break;else _0x46fc39['push'](_0x46fc39['shift']());}catch(_0x392d00){_0x46fc39['push'](_0x46fc39['shift']());}}}(a74_0x59bd,0xbec8e));const TestFramework=require('./testFramework'),TestFrameworkState=require(a74_0x56851c(0x253)),HookState=require(a74_0x56851c(0x2b1)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a74_0x56851c(0x29d)),TrackedInstance=require(a74_0x56851c(0x25a)),TestFrameworkConstants=require(a74_0x56851c(0x1fb)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a74_0x56851c(0x232)),{v4:uuidv4}=require('uuid'),util=require(a74_0x56851c(0x24e)),TestInfo=require(a74_0x56851c(0x290)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x1681d9,_0x57eb69,_0x23a67e){super(_0x1681d9,_0x57eb69,_0x23a67e);}async[a74_0x56851c(0x249)](_0x1c36bf,_0xe39339,_0x2c871f={}){const _0x115894=a74_0x56851c,_0x3108b8={};_0x3108b8[_0x115894(0x227)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x3108b8[_0x115894(0x23c)]=function(_0x17b2c8,_0x29b151){return _0x17b2c8===_0x29b151;},_0x3108b8[_0x115894(0x282)]=function(_0x557667,_0x3a732a){return _0x557667===_0x3a732a;},_0x3108b8['gLujB']=_0x115894(0x212);const _0x374d8b=_0x3108b8;await super[_0x115894(0x249)](_0x1c36bf,_0xe39339,_0x2c871f);const _0x4dbf25=this[_0x115894(0x217)](_0x1c36bf,_0xe39339,_0x2c871f);if(!_0x4dbf25){logger[_0x115894(0x1f7)](_0x374d8b[_0x115894(0x227)]);return;}try{let _0x5dc706,_0x1f4adf;switch(_0x1c36bf){case TestFrameworkState[_0x115894(0x2ad)]:_0x5dc706=_0x2c871f[_0x115894(0x295)],_0x1f4adf=TestInfo['getTestUUID'](_0x5dc706['id']);if(_0x374d8b[_0x115894(0x23c)](_0xe39339,HookState['PRE'])){logger[_0x115894(0x1f7)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x5dc706['id']);const _0x4b574d={};_0x4b574d[_0x115894(0x223)]=_0x1f4adf,_0x4b574d[_0x115894(0x23a)]=_0x5dc706,_0x4dbf25['addMultipleEntries'](this[_0x115894(0x2bb)](_0x4b574d)),logger[_0x115894(0x1f7)](_0x115894(0x2b0)+_0x5dc706['id']),await this[_0x115894(0x2a2)](_0x4dbf25,_0x5dc706['id']);}else{if(_0x374d8b[_0x115894(0x23c)](_0xe39339,HookState['POST'])){const _0x4bf265={};_0x4bf265[_0x115894(0x223)]=_0x1f4adf,_0x4bf265[_0x115894(0x23a)]=_0x5dc706,_0x4dbf25[_0x115894(0x28e)](this[_0x115894(0x27f)](_0x4bf265)),await this[_0x115894(0x2a2)](_0x4dbf25,_0x5dc706['id']);}}break;case TestFrameworkState[_0x115894(0x283)]:_0x374d8b[_0x115894(0x282)](_0xe39339,HookState[_0x115894(0x250)])&&await this[_0x115894(0x209)](_0x4dbf25,_0x1c36bf,_0x2c871f);break;default:if(CLIUtils['matchHookRegex'](_0x1c36bf[_0x115894(0x25e)]()[_0x115894(0x2b3)]('.')[0x1])){const _0x232314=await this['trackHookEvent'](_0x4dbf25,_0x1c36bf,_0xe39339,_0x2c871f);_0x4dbf25[_0x115894(0x28e)](_0x232314);}else logger[_0x115894(0x1f7)](_0x115894(0x25c)+_0x1c36bf+'\x20&\x20hookState='+_0xe39339);break;}}catch(_0xaab882){logger[_0x115894(0x26c)](util[_0x115894(0x287)](_0x374d8b[_0x115894(0x1f6)],_0x1c36bf,_0xe39339,_0x2c871f[_0x115894(0x29b)],_0xaab882));}_0x2c871f[_0x115894(0x237)]=_0x4dbf25,await this['runHooks'](_0x4dbf25,_0x1c36bf,_0xe39339,_0x2c871f);}['resolveInstance'](_0x952dec,_0x12771c,_0x452cbb={}){const _0x44b4b5=a74_0x56851c,_0x47f053={};_0x47f053['yyBxz']=function(_0x599b8c,_0xd54a76){return _0x599b8c===_0xd54a76;};const _0x14cead=_0x47f053;let _0x338e88=null;return(_0x14cead['yyBxz'](_0x952dec,TestFrameworkState[_0x44b4b5(0x211)])||_0x14cead[_0x44b4b5(0x257)](_0x952dec,TestFrameworkState['NONE']))&&this[_0x44b4b5(0x285)](_0x952dec,_0x452cbb),_0x338e88=TestFramework[_0x44b4b5(0x2af)](),_0x338e88;}[a74_0x56851c(0x285)](_0x3660a6,_0x1ea592){const _0x9dd4e=a74_0x56851c,_0x331810=CLIUtils[_0x9dd4e(0x27d)](),_0x357b94=TrackedInstance[_0x9dd4e(0x2ab)](_0x331810);let _0x446547=null;logger['debug'](_0x9dd4e(0x1fe)+_0x331810+_0x9dd4e(0x247)+_0x3660a6),_0x446547=new TestFrameworkInstance(_0x357b94,this[_0x9dd4e(0x281)](),this[_0x9dd4e(0x269)](),_0x3660a6,HookState['NONE']),TestFramework[_0x9dd4e(0x296)](_0x357b94,_0x446547),logger[_0x9dd4e(0x1f7)](_0x9dd4e(0x262)+_0x357b94['getId']()+_0x9dd4e(0x258)+_0x331810);}[a74_0x56851c(0x2bb)](_0x344967){const _0x273649=a74_0x56851c,_0x408885={};_0x408885['HVqYt']=_0x273649(0x222);const _0x4988bd=_0x408885,{testUUID:_0x1d634a,testData:_0x17546b}=_0x344967;if(!_0x17546b||!_0x17546b[_0x273649(0x276)])return logger['debug'](_0x4988bd['HVqYt']),{};const _0x5c1dc6=_0x1d634a,_0x1618e8=_0x17546b[_0x273649(0x276)],_0x36cb86=this[_0x273649(0x281)]()[0x0],_0x3f1c5e=this[_0x273649(0x269)](),_0x11a829={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x36cb86,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x3f1c5e[_0x36cb86],[TestFrameworkConstants[_0x273649(0x23d)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x273649(0x220)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x5c1dc6,[TestFrameworkConstants[_0x273649(0x26f)]]:TestFrameworkConstants[_0x273649(0x1f8)],[TestFrameworkConstants[_0x273649(0x2a7)]]:_0x17546b[_0x273649(0x24b)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x17546b[_0x273649(0x20f)]||'',[TestFrameworkConstants[_0x273649(0x270)]]:_0x1618e8,[TestFrameworkConstants[_0x273649(0x29f)]]:_0x17546b[_0x273649(0x24b)]||'',[TestFrameworkConstants[_0x273649(0x22f)]]:_0x17546b['location']||'',[TestFrameworkConstants[_0x273649(0x2b7)]]:_0x17546b['body']?.[_0x273649(0x1fc)]||null,[TestFrameworkConstants[_0x273649(0x266)]]:_0x17546b[_0x273649(0x201)]||[],[TestFrameworkConstants[_0x273649(0x235)]]:_0x17546b[_0x273649(0x23b)]||new Date()[_0x273649(0x20a)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x17546b[_0x273649(0x24a)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x17546b['scopes']||[],[TestFrameworkConstants[_0x273649(0x245)]]:_0x17546b[_0x273649(0x29e)]?.['rerun_name']||_0x17546b[_0x273649(0x24b)]||'',[TestFrameworkConstants[_0x273649(0x299)]]:{},[TestFrameworkConstants[_0x273649(0x24d)]]:_0x17546b[_0x273649(0x246)]||{}};TestInfo['setTestDetails'](_0x1618e8,_0x11a829),logger[_0x273649(0x1f7)](_0x273649(0x273)+_0x17546b[_0x273649(0x24b)]+_0x273649(0x231)+_0x5c1dc6);const _0x548246={};return _0x548246[_0x1618e8]=_0x11a829,_0x548246;}[a74_0x56851c(0x27f)](_0x31b329){const _0x508e0a=a74_0x56851c,_0xcedc01={'ZKDeX':_0x508e0a(0x288),'UJpVk':_0x508e0a(0x286),'VJyEI':function(_0x5a4e48,_0x312d18){return _0x5a4e48===_0x312d18;},'PEKXr':_0x508e0a(0x1f2),'zYjUO':_0x508e0a(0x241),'Xldbe':function(_0x18257f,_0x3d6bb1,_0x2682ca){return _0x18257f(_0x3d6bb1,_0x2682ca);},'zHeoT':function(_0x34729a,_0x580953){return _0x34729a>_0x580953;},'APUqV':function(_0x263840,_0x12d2f8){return _0x263840>_0x12d2f8;}},{testUUID:_0x297b67,testData:_0x38f421}=_0x31b329;if(!_0x38f421||!_0x38f421[_0x508e0a(0x276)])return logger['debug'](_0xcedc01[_0x508e0a(0x1fa)]),{};const _0xb01d69=this[_0x508e0a(0x217)](TestFrameworkState[_0x508e0a(0x2ad)],HookState[_0x508e0a(0x250)]),_0x268834=_0x38f421[_0x508e0a(0x276)],_0x2d4b48=TestInfo['getTestDetails'](_0x268834)||{},_0x51d097=_0x2d4b48?_0x2d4b48[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x1803b9={..._0x2d4b48,[TestFrameworkConstants[_0x508e0a(0x26f)]]:_0x38f421['result']||_0xcedc01[_0x508e0a(0x221)],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x38f421[_0x508e0a(0x200)]||new Date()[_0x508e0a(0x20a)](),[TestFrameworkConstants[_0x508e0a(0x26a)]]:new Date()[_0x508e0a(0x20a)](),[TestFrameworkConstants[_0x508e0a(0x299)]]:_0x51d097,[TestFrameworkConstants[_0x508e0a(0x255)]]:[],[TestFrameworkConstants[_0x508e0a(0x24d)]]:_0x38f421[_0x508e0a(0x246)]||{}};_0xcedc01[_0x508e0a(0x280)](_0x38f421[_0x508e0a(0x230)],_0xcedc01[_0x508e0a(0x208)])&&_0x38f421[_0x508e0a(0x2b4)]&&(_0x1803b9[TestFrameworkConstants[_0x508e0a(0x25b)]]=_0x38f421['failure_type']||_0xcedc01['zYjUO'],_0x1803b9[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x38f421[_0x508e0a(0x25f)]||'',_0x1803b9[TestFrameworkConstants[_0x508e0a(0x2a9)]]=_0x38f421['failure']);const _0x4097e4=TestInfo['getTestDetails'](_0x268834)[TestFrameworkConstants[_0x508e0a(0x2a6)]]||{},_0x4beb6d=_0xcedc01['Xldbe'](getManualUploadLogs,_0x4097e4,_0xb01d69[_0x508e0a(0x228)]()[_0x508e0a(0x224)](_0x268834)[TestFrameworkConstants[_0x508e0a(0x267)]]);if(_0xcedc01['zHeoT'](_0x4beb6d['length'],0x0)){const _0x26c84a=_0x1803b9[TestFrameworkConstants[_0x508e0a(0x255)]]||[];_0x1803b9[TestFrameworkConstants[_0x508e0a(0x255)]]=[..._0x26c84a,..._0x4beb6d];}_0x38f421[_0x508e0a(0x26d)]&&_0xcedc01[_0x508e0a(0x214)](_0x38f421[_0x508e0a(0x26d)][_0x508e0a(0x29b)],0x0)&&(_0x1803b9[TestFrameworkConstants[_0x508e0a(0x2aa)]]=_0x38f421['hooks']);TestInfo[_0x508e0a(0x210)](_0x268834,_0x1803b9),logger[_0x508e0a(0x1f7)](_0x508e0a(0x272)+_0x38f421[_0x508e0a(0x24b)]+_0x508e0a(0x29a)+_0x38f421[_0x508e0a(0x230)]);const _0x554b46={};return _0x554b46[_0x268834]=_0x1803b9,_0x554b46;}async['trackHookEvent'](_0x18105c,_0x20ff23,_0x18ccfd,_0x4c0f73){const _0x2d4ee2=a74_0x56851c,_0xed8655={'eWDlq':_0x2d4ee2(0x22e),'QIlmQ':function(_0x48182a){return _0x48182a();},'bLkMI':function(_0x451370,_0x119e8f){return _0x451370 in _0x119e8f;},'bhKRs':function(_0x5e233b,_0x13ef91){return _0x5e233b in _0x13ef91;},'acjYa':function(_0x49f31b,_0x1ea5ed){return _0x49f31b===_0x1ea5ed;},'vJtBG':function(_0x2ac228,_0x5752aa){return _0x2ac228>_0x5752aa;},'uuMrv':_0x2d4ee2(0x1f2),'XMUhz':'UnhandledError','GGDcU':'passed','nzcWd':function(_0x3c5928,_0xcce14b){return _0x3c5928!==_0xcce14b;}},{hookData:_0x35fd90}=_0x4c0f73;if(!_0x35fd90)return logger['debug'](_0xed8655['eWDlq']),{};const _0x9fb894=_0x35fd90[_0x2d4ee2(0x276)]||_0xed8655[_0x2d4ee2(0x22d)](uuidv4),_0x3d82a1=_0x35fd90['test_run_id'],_0x5c895e=_0x20ff23[_0x2d4ee2(0x25e)]()[_0x2d4ee2(0x2b3)]('.')[0x1],_0x435662=TestInfo['getTestDetails'](_0x3d82a1)[TestFrameworkConstants[_0x2d4ee2(0x299)]]||{},_0x4762ed=_0x18105c['getAllData']()[_0x2d4ee2(0x224)](_0x3d82a1);if(!_0x4762ed)return logger[_0x2d4ee2(0x1f7)]('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x3d82a1+_0x2d4ee2(0x254)),this[_0x2d4ee2(0x1f3)](_0x18105c,_0x3d82a1,_0x20ff23,_0x18ccfd,_0x4c0f73),{};let _0x27ff74=_0x4762ed[TestFrameworkConstants[_0x2d4ee2(0x220)]];!_0x27ff74&&(_0x27ff74={});!_0xed8655[_0x2d4ee2(0x2a0)](_0x5c895e,_0x27ff74)&&(_0x27ff74[_0x5c895e]=[]);let _0x3a63eb=_0x4762ed[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x3a63eb&&(_0x3a63eb={});!_0xed8655[_0x2d4ee2(0x275)](_0x5c895e,_0x3a63eb)&&(_0x3a63eb[_0x5c895e]=[]);const _0x39855={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x27ff74,[TestFrameworkConstants[_0x2d4ee2(0x2aa)]]:_0x3a63eb},_0x2551b9={};_0x2551b9[_0x3d82a1]=_0x39855;const _0x4daa96=_0x2551b9;if(_0xed8655[_0x2d4ee2(0x261)](_0x18ccfd,HookState['PRE'])){const _0x28c77a={[TestFrameworkConstants[_0x2d4ee2(0x2a5)]]:_0x9fb894,[TestFrameworkConstants[_0x2d4ee2(0x239)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x2d4ee2(0x1f5)]]:_0x35fd90['started_at'],[TestFrameworkConstants[_0x2d4ee2(0x28b)]]:[],[TestFrameworkConstants[_0x2d4ee2(0x260)]]:_0x35fd90[_0x2d4ee2(0x202)],[TestFrameworkConstants[_0x2d4ee2(0x299)]]:_0x435662};_0x28c77a[_0x2d4ee2(0x24f)]=_0x5c895e;const _0x3818b7=_0x28c77a;_0x27ff74[_0x5c895e][_0x2d4ee2(0x22a)](_0x3818b7),_0x4daa96[_0x3d82a1][TestFrameworkConstants[_0x2d4ee2(0x2ac)]]=_0x5c895e,logger['debug'](_0x2d4ee2(0x28d)+_0x5c895e+'\x20&\x20hook\x20=\x20'+_0x3818b7+_0x2d4ee2(0x21e)+_0x4c0f73);}else{if(_0xed8655[_0x2d4ee2(0x261)](_0x18ccfd,HookState[_0x2d4ee2(0x250)])){const _0x4b33ce=_0x35fd90[_0x2d4ee2(0x230)],_0x2c406e=_0x27ff74[_0x5c895e]||[];logger[_0x2d4ee2(0x1f7)](_0x2d4ee2(0x2a1)+_0x2c406e+'\x20and\x20args\x20=\x20'+_0x4c0f73);if(_0xed8655[_0x2d4ee2(0x293)](_0x2c406e[_0x2d4ee2(0x29b)],0x0)){const _0x16a915=_0x2c406e[_0x2d4ee2(0x294)]();_0xed8655['acjYa'](_0x35fd90['result'],_0xed8655[_0x2d4ee2(0x2b8)])&&_0x35fd90['failure_data']?(_0x16a915[TestFrameworkConstants[_0x2d4ee2(0x268)]]=_0x35fd90[_0x2d4ee2(0x27c)]||_0xed8655[_0x2d4ee2(0x204)],_0x16a915[TestFrameworkConstants[_0x2d4ee2(0x27e)]]=_0x35fd90[_0x2d4ee2(0x25f)]||'',_0x16a915[TestFrameworkConstants[_0x2d4ee2(0x243)]]=_0x35fd90[_0x2d4ee2(0x236)]):_0x16a915[TestFrameworkConstants[_0x2d4ee2(0x239)]]=_0xed8655[_0x2d4ee2(0x20b)];_0xed8655[_0x2d4ee2(0x1fd)](_0x4b33ce,TestFrameworkConstants[_0x2d4ee2(0x225)])&&(_0x16a915[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x4b33ce);_0x16a915[TestFrameworkConstants[_0x2d4ee2(0x2a4)]]=_0x35fd90[_0x2d4ee2(0x234)]||new Date()[_0x2d4ee2(0x20a)](),_0x16a915[TestFrameworkConstants[_0x2d4ee2(0x299)]]=_0x435662;const _0x2df8c1=_0x16a915[TestFrameworkConstants['KEY_HOOK_ID']];!_0x3a63eb[_0x5c895e]&&(_0x3a63eb[_0x5c895e]=[]),_0x3a63eb[_0x5c895e][_0x2d4ee2(0x22a)](_0x16a915),_0x4daa96[_0x3d82a1][TestFrameworkConstants[_0x2d4ee2(0x1f4)]]=_0x5c895e;}}}return logger[_0x2d4ee2(0x1f7)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x35fd90[_0x2d4ee2(0x202)]+_0x2d4ee2(0x1f1)+_0x9fb894+'\x20for\x20test:\x20'+_0x3d82a1),_0x4daa96;}['createTestFrameworkEventPayload'](_0x2be609){const _0x2864a3=a74_0x56851c,_0x4635f1={};_0x4635f1[_0x2864a3(0x271)]=_0x2864a3(0x26e);const _0x21437e=_0x4635f1;try{const _0x351f71=_0x2be609['test']?_0x2be609[_0x2864a3(0x295)]['id']:_0x2be609[_0x2864a3(0x2a3)][_0x2864a3(0x265)],_0x2b492b=_0x2be609[_0x2864a3(0x237)],_0xeb3e3b=_0x2b492b[_0x2864a3(0x219)](),_0x274d22=_0x2b492b[_0x2864a3(0x228)]()['get'](_0x351f71);if(!_0x274d22)return logger[_0x2864a3(0x1f7)](_0x2864a3(0x226)+_0x351f71),{};logger[_0x2864a3(0x1f7)](_0x2864a3(0x292)+_0x351f71);const {[TestFrameworkConstants[_0x2864a3(0x277)]]:_0x2d43de='',[TestFrameworkConstants[_0x2864a3(0x207)]]:_0x366669='',[TestFrameworkConstants[_0x2864a3(0x235)]]:_0x5e2c69='',[TestFrameworkConstants[_0x2864a3(0x284)]]:_0x5818b0=''}=_0x274d22,_0x5b1d74=_0x2b492b['getCurrentTestState']()[_0x2864a3(0x25e)]()[_0x2864a3(0x2b3)]('.')[0x1],_0x41352c=_0x2b492b[_0x2864a3(0x21b)]()[_0x2864a3(0x25e)]()[_0x2864a3(0x2b3)]('.')[0x1],_0xd0606a=global?.[_0x2864a3(0x297)]??0x0,_0x4f886f=_0x2b492b[_0x2864a3(0x26b)](),_0x5db917=Buffer['from'](JSON[_0x2864a3(0x28c)](_0x274d22))['toString'](_0x21437e['FkeRr']),_0x2d9cfa={'hash':_0xeb3e3b[_0x2864a3(0x29c)](),'threadId':_0xeb3e3b[_0x2864a3(0x264)]()[_0x2864a3(0x25e)](),'processId':_0xeb3e3b['getProcessId']()['toString']()},_0x4aa06b={};_0x4aa06b[_0x2864a3(0x22c)]=_0xd0606a,_0x4aa06b[_0x2864a3(0x291)]=_0x2d43de,_0x4aa06b[_0x2864a3(0x215)]=_0x366669,_0x4aa06b[_0x2864a3(0x2b2)]=_0x5b1d74,_0x4aa06b[_0x2864a3(0x289)]=_0x41352c,_0x4aa06b[_0x2864a3(0x23b)]=_0x5e2c69,_0x4aa06b['endedAt']=_0x5818b0,_0x4aa06b['uuid']=_0x4f886f,_0x4aa06b[_0x2864a3(0x2ae)]=_0x5db917,_0x4aa06b[_0x2864a3(0x21a)]=_0x2d9cfa;const _0x517af1=_0x4aa06b;return logger['debug'](_0x2864a3(0x205)+_0x351f71+_0x2864a3(0x24c)+_0x5b1d74+_0x2864a3(0x2ba)+_0x41352c),_0x517af1;}catch(_0xcbcf8c){return logger[_0x2864a3(0x26c)](_0x2864a3(0x2a8)+util[_0x2864a3(0x287)](_0xcbcf8c)),{};}}async[a74_0x56851c(0x209)](_0x138050,_0x29e14c,_0x13e790){const _0x1af98e=a74_0x56851c,_0x283ac9={'PHsuc':function(_0x456bc6,_0x11b665,_0x2eb2dc){return _0x456bc6(_0x11b665,_0x2eb2dc);},'zCsUS':function(_0x1e8852,_0x91833a){return _0x1e8852===_0x91833a;},'DMNMq':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','YHBjL':function(_0x503b48,_0x4d4a66){return _0x503b48/_0x4d4a66;},'qONkb':function(_0x29b188,_0x2d4d13){return _0x29b188<_0x2d4d13;},'mEvhT':function(_0x42c5cb,_0x57336f){return _0x42c5cb*_0x57336f;},'aOWGm':function(_0x16859a,_0x3c614e){return _0x16859a+_0x3c614e;},'xrDeL':_0x1af98e(0x22b)};try{const _0x2f452f=_0x13e790[_0x1af98e(0x223)],_0x3e98c8=_0x138050[_0x1af98e(0x228)]()[_0x1af98e(0x224)](_0x2f452f),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x1b4d36='',[TestFrameworkConstants[_0x1af98e(0x207)]]:_0x55b31a=''}=_0x3e98c8,_0x54c79f=TestInfo[_0x1af98e(0x213)](_0x2f452f),_0x5e7ac0=TestInfo[_0x1af98e(0x278)](_0x2f452f)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x47bd59=_0x283ac9[_0x1af98e(0x20d)](getMediaArtifactsLogs,_0x5e7ac0,_0x138050['getAllData']()[_0x1af98e(0x224)](_0x2f452f)[TestFrameworkConstants[_0x1af98e(0x267)]]),_0xac1105=(_0x54c79f||[])[_0x1af98e(0x242)](_0x47bd59||[]);if(!_0xac1105||_0x283ac9[_0x1af98e(0x21f)](_0xac1105[_0x1af98e(0x29b)],0x0)){logger[_0x1af98e(0x1f7)](_0x283ac9[_0x1af98e(0x23f)]);return;}const _0xf6c698=0x28,_0x1845e1=Math['ceil'](_0x283ac9[_0x1af98e(0x259)](_0xac1105[_0x1af98e(0x29b)],_0xf6c698));for(let _0xa6daf5=0x0;_0x283ac9['qONkb'](_0xa6daf5,_0x1845e1);_0xa6daf5++){const _0x3edabf=_0x283ac9[_0x1af98e(0x2b5)](_0xa6daf5,_0xf6c698),_0x1866af=_0x283ac9[_0x1af98e(0x252)](_0x3edabf,_0xf6c698),_0x256e89=_0xac1105[_0x1af98e(0x238)](_0x3edabf,_0x1866af),_0x2ecd18={'platformIndex':global?.[_0x1af98e(0x297)]??0x0,'logs':_0x256e89,'testFrameworkName':_0x1b4d36,'testFrameworkVersion':_0x55b31a,'testFrameworkState':_0x29e14c['toString']()[_0x1af98e(0x2b3)]('.')[0x1]};logger[_0x1af98e(0x1f7)](_0x1af98e(0x279)+_0x2f452f+'\x20batch\x20'+_0x283ac9[_0x1af98e(0x252)](_0xa6daf5,0x1)+'/'+_0x1845e1+_0x1af98e(0x244)+util[_0x1af98e(0x27a)](_0x2ecd18));const _0x8da36f=await GrpcClient['getInstance']()[_0x1af98e(0x274)](_0x2ecd18);logger['debug'](_0x1af98e(0x279)+_0x2f452f+_0x1af98e(0x298)+_0x283ac9[_0x1af98e(0x252)](_0xa6daf5,0x1)+'/'+_0x1845e1+'\x20response='+util[_0x1af98e(0x27a)](_0x8da36f));}}catch(_0x19e8d9){logger['error'](_0x1af98e(0x233)+util[_0x1af98e(0x287)](_0x19e8d9));}logger['debug'](_0x283ac9[_0x1af98e(0x263)]);}['storePendingHook'](_0x1b7827,_0x40134f,_0x2a2f20,_0x1168a5,_0x1d56be){const _0xa34d97=a74_0x56851c,_0x76e9b7={'testId':_0x40134f,'testFrameworkState':_0x2a2f20,'hookState':_0x1168a5,'args':_0x1d56be,'timestamp':new Date()[_0xa34d97(0x20a)]()};_0x1b7827[_0xa34d97(0x216)](_0x40134f,_0x76e9b7),logger['debug']('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x40134f+',\x20state:\x20'+_0x2a2f20+',\x20hookState:\x20'+_0x1168a5);}async[a74_0x56851c(0x2a2)](_0x1486c6,_0x232d9d){const _0x214d9e=a74_0x56851c,_0xf255bd={};_0xf255bd['pDzoL']=function(_0x4f3f43,_0x137fbc){return _0x4f3f43>_0x137fbc;};const _0x4a946d=_0xf255bd;if(!_0x1486c6['hasPendingHooks'](_0x232d9d))return;const _0x21c17f=_0x1486c6[_0x214d9e(0x1ff)](_0x232d9d);logger['debug']('Processing\x20'+_0x21c17f[_0x214d9e(0x29b)]+_0x214d9e(0x23e)+_0x232d9d);for(const _0x3d7e45 of _0x21c17f){try{const _0x388e78=await this[_0x214d9e(0x256)](_0x1486c6,_0x3d7e45[_0x214d9e(0x2b2)],_0x3d7e45['hookState'],_0x3d7e45[_0x214d9e(0x27b)]);_0x388e78&&_0x4a946d[_0x214d9e(0x240)](Object[_0x214d9e(0x251)](_0x388e78)[_0x214d9e(0x29b)],0x0)&&_0x1486c6['addMultipleEntries'](_0x388e78),await this[_0x214d9e(0x25d)](_0x1486c6,_0x3d7e45[_0x214d9e(0x2b2)],_0x3d7e45[_0x214d9e(0x289)],_0x3d7e45['args']);}catch(_0x47f3c1){logger['error'](_0x214d9e(0x206)+_0x232d9d+_0x214d9e(0x248)+_0x47f3c1);}}_0x1486c6[_0x214d9e(0x1f9)](_0x232d9d),logger[_0x214d9e(0x1f7)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x232d9d);}}function a74_0x59bd(){const _0x345d43=['No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','testUUID','get','DEFAULT_HOOK_RESULT','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KicFr','getAllData','64346QKAFeP','push','Cucumber\x20log\x20created\x20event','platformIndex','QIlmQ','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','KEY_TEST_LOCATION','result','\x20with\x20UUID:\x20','CucumberTestFramework','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','finished_at','KEY_TEST_STARTED_AT','failure_data','instance','slice','KEY_HOOK_RESULT','testData','startedAt','TVKaK','KEY_TEST_LOGS','\x20pending\x20hooks\x20for\x20testId:\x20','DMNMq','pDzoL','UnhandledError','concat','KEY_HOOK_FAILURE','\x20payload=','KEY_TEST_RERUN_NAME','meta',',\x20state=',',\x20error:\x20','trackEvent','scopes','name','\x20testState:\x20','KEY_TEST_META','util','key','POST','keys','aOWGm','../state/testFrameworkState.js',',\x20storing\x20as\x20pending\x20hook','KEY_LOGS','trackHookEvent','yyBxz','\x20target=','YHBjL','../instances/trackedInstance.js','KEY_TEST_FAILURE_TYPE','trackEvent:\x20unsupported\x20testFrameworkState=','runHooks','toString','failure_reason','KEY_HOOK_NAME','acjYa','trackCucumberInstance:\x20saved\x20instance\x20contextId=','xrDeL','getThreadId','test_run_id','KEY_TEST_TAGS','KEY_TEST_UUID','KEY_HOOK_FAILURE_TYPE','getTestFrameworksVersions','KEY_TEST_RESULT_AT','getRef','error','hooks','base64','KEY_TEST_RESULT','KEY_TEST_ID','FkeRr','Updated\x20cucumber\x20test\x20result:\x20','Parsed\x20cucumber\x20test:\x20','logCreatedEvent','bhKRs','uuid','KEY_TEST_FRAMEWORK_NAME','getTestDetails','sendLogCreatedEvent:\x20for\x20testId:\x20','inspect','args','failure_type','getCurrentInstanceName','KEY_HOOK_FAILURE_REASON','parseCucumberTestResult','VJyEI','getTestFrameworks','ySOHe','LOG_REPORT','KEY_TEST_ENDED_AT','trackCucumberInstance','unknown','format','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','hookState','44lRFitj','KEY_HOOK_LOGS','stringify','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','addMultipleEntries','334233DCKNls','../TestInfo.js','testFrameworkName','createTestFrameworkEventPayload\x20testId:\x20','vJtBG','pop','test','setTrackedInstance','browserstackPlatformIndex','\x20batch\x20','KEY_CUSTOM_TAGS','\x20with\x20result:\x20','length','getId','../cliUtils.js','customRerunParam','KEY_TEST_NAME','bLkMI','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','processPendingHooks','hookData','KEY_EVENT_ENDED_AT','KEY_HOOK_ID','KEY_TEST_ATTACHMENTS','KEY_AUTOMATE_SESSION_NAME','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_FAILURE','KEY_HOOKS_FINISHED','createContext','KEY_HOOK_LAST_STARTED','TEST','eventJson','getTrackedInstance','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','../state/hookState.js','testFrameworkState','split','failure','mEvhT','10679200ZDRrBG','KEY_TEST_CODE','uuMrv','8728419UvNTyI','\x20hookState:\x20','parseCucumberTest','\x20with\x20id\x20','failed','storePendingHook','KEY_HOOK_LAST_FINISHED','KEY_EVENT_STARTED_AT','gLujB','debug','DEFAULT_TEST_RESULT','removePendingHooks','ZKDeX','./constants/testFrameworkConstants.js','code','nzcWd','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','getPendingHooks','finishedAt','tags','hook_type','35dOMHVs','XMUhz','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_FRAMEWORK_VERSION','PEKXr','sendLogCreatedEvent','toISOString','GGDcU','151377wXTqbn','PHsuc','10388851xTwayn','file_name','setTestDetails','INIT_TEST','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','readLogObjects','APUqV','testFrameworkVersion','addPendingHook','resolveInstance','8RPIOHq','getContext','executionContext','getCurrentHookState','3xaAEeD','233526srxcaO','\x20\x20and\x20args\x20=\x20','zCsUS','KEY_HOOKS_STARTED','UJpVk'];a74_0x59bd=function(){return _0x345d43;};return a74_0x59bd();}module['exports']=CucumberTestFramework;
1
+ const a74_0x328d33=a74_0x5103;function a74_0x106c(){const _0x748b42=['testData','getContext','createTestFrameworkEventPayload','logCreatedEvent','getCurrentInstanceName','KEY_HOOK_LAST_FINISHED','leDHE','split','../grpcClient','KEY_HOOKS_FINISHED','uGRCW','KEY_TEST_RERUN_NAME','trackCucumberInstance:\x20saved\x20instance\x20contextId=','base64','KEY_TEST_RESULT_AT','name','sBZCQ','removePendingHooks','KEY_EVENT_STARTED_AT','hooks','aVOgR','hook_type','KEY_LOGS','POST',',\x20state=','eUDiI','Processing\x20','4LgeCJj',',\x20storing\x20as\x20pending\x20hook','getTestUUID','KEY_HOOK_RESULT','KEY_HOOK_FAILURE_TYPE','getRef','PRE','getPendingHooks','zRsIR','EkWor','createTestFrameworkEventPayload\x20testId:\x20','getAllData','getTestFrameworksVersions','SqXnM','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','failure_reason','inspect','toString','\x20for\x20test:\x20','WFIpP','browserstackPlatformIndex','getCurrentHookState','KEY_HOOK_NAME','finishedAt','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','77617XNRQMe','debug','NONE','\x20target=','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','KEY_TEST_LOCATION','6emmrOk','./testFramework','UnhandledError','args','passed','tags','test_run_id','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','HJBlG','scopes','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','sendLogCreatedEvent','error','test','eWeiD','KSToc','\x20with\x20id\x20','KEY_CUSTOM_TAGS','../cliUtils.js','\x20with\x20result:\x20','\x20&\x20hook\x20=\x20','from','../state/hookState.js','\x20batch\x20','wZhge','KEY_TEST_META','\x20testState:\x20','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','\x20hookState:\x20','KEY_HOOK_LOGS','push','hookState','get','unknown','../../../helpers/classLogger.js','KEY_TEST_FAILURE','BoSCF','../TestInfo.js','\x20\x20and\x20args\x20=\x20','uuid','5047761egSWSw','testFrameworkState','toISOString','trackEvent','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','getProcessId','KEY_TEST_FAILURE_REASON','createContext','\x20&\x20hookState=','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','KEY_TEST_FRAMEWORK_VERSION','LOG_REPORT','Parsed\x20cucumber\x20test:\x20','UIlNG','failure_type','format','KEY_TEST_ATTACHMENTS','KEY_TEST_FAILURE_TYPE','stringify','Cucumber\x20log\x20created\x20event','getTestFrameworks','Tracked\x20cucumber\x20hook\x20event:\x20','parseCucumberTest','4845490DUkxyN','TEST','storePendingHook','KEY_TEST_ID','result','KEY_TEST_STARTED_AT','DEFAULT_TEST_RESULT','getInstance','HynJw','./constants/testFrameworkConstants.js','\x20with\x20UUID:\x20','CHxUz','ESAsS','4254971CstZRQ','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_FRAMEWORK_NAME','KEY_TEST_FILE_PATH','342396MtRUQZ','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','KEY_HOOK_FAILURE_REASON','42NQUlFL','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','startedAt','12088464mVRQCW','getCurrentTestState','trackHookEvent','testUUID','GePuF','riedm','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_LOGS','NhCwk','KEY_TEST_CODE','getTrackedInstance','processPendingHooks','addMultipleEntries','KEY_TEST_UUID','KEY_AUTOMATE_SESSION_NAME','getThreadId','../instances/trackedInstance.js','7779431sQdTyI','../instances/testFrameworkInstance.js','location','KEY_TEST_SCOPE','addPendingHook','KEY_HOOKS_STARTED','runHooks','endedAt','rerun_name','BCLLM','Error\x20in\x20createTestFrameworkEventPayload:\x20','UAEXe','getTestDetails','100QvYfiO','KEY_TEST_ENDED_AT','\x20and\x20args\x20=\x20','Updated\x20cucumber\x20test\x20result:\x20','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','failed','pJhBj','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','resolveInstance','KEY_TEST_RESULT','zOjGF','testFrameworkVersion','failure_data','sendLogCreatedEvent:\x20for\x20testId:\x20','getId',',\x20error:\x20','../../../helpers/helper.js','trackCucumberInstance','meta','setTrackedInstance','setTestDetails','uDIvz','length','INIT_TEST','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','KEY_HOOK_LAST_STARTED','KEY_HOOK_FAILURE','pWDuI','TAQUY','eventJson','KEY_TEST_NAME','OlggI','instance'];a74_0x106c=function(){return _0x748b42;};return a74_0x106c();}(function(_0x278553,_0x105b4d){const _0x51fd92=a74_0x5103,_0x143ff1=_0x278553();while(!![]){try{const _0x3f96a9=-parseInt(_0x51fd92(0x230))/0x1*(parseInt(_0x51fd92(0x1ba))/0x2)+parseInt(_0x51fd92(0x18e))/0x3*(-parseInt(_0x51fd92(0x217))/0x4)+parseInt(_0x51fd92(0x1a5))/0x5+-parseInt(_0x51fd92(0x236))/0x6*(-parseInt(_0x51fd92(0x1b2))/0x7)+parseInt(_0x51fd92(0x1bd))/0x8+-parseInt(_0x51fd92(0x1b6))/0x9*(-parseInt(_0x51fd92(0x1db))/0xa)+parseInt(_0x51fd92(0x1ce))/0xb;if(_0x3f96a9===_0x105b4d)break;else _0x143ff1['push'](_0x143ff1['shift']());}catch(_0x65af92){_0x143ff1['push'](_0x143ff1['shift']());}}}(a74_0x106c,0xd2b96));const TestFramework=require(a74_0x328d33(0x237)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a74_0x328d33(0x17c)),{createClassLogger}=require(a74_0x328d33(0x188)),TestFrameworkInstance=require(a74_0x328d33(0x1cf)),CLIUtils=require(a74_0x328d33(0x178)),TrackedInstance=require(a74_0x328d33(0x1cd)),TestFrameworkConstants=require(a74_0x328d33(0x1ae)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x328d33(0x1eb)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a74_0x328d33(0x18d)),util=require('util'),TestInfo=require(a74_0x328d33(0x18b)),GrpcClient=require(a74_0x328d33(0x204));function a74_0x5103(_0xc9f2d3,_0x3f82fc){const _0x106cf2=a74_0x106c();return a74_0x5103=function(_0x51038f,_0x8c8ade){_0x51038f=_0x51038f-0x178;let _0x385454=_0x106cf2[_0x51038f];return _0x385454;},a74_0x5103(_0xc9f2d3,_0x3f82fc);}class CucumberTestFramework extends TestFramework{constructor(_0x483305,_0x13e2fb,_0x358e35){super(_0x483305,_0x13e2fb,_0x358e35);}async[a74_0x328d33(0x191)](_0x5c4444,_0x289c6b,_0x591d6f={}){const _0x174420=a74_0x328d33,_0xdb9ccb={};_0xdb9ccb[_0x174420(0x1f0)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0xdb9ccb[_0x174420(0x215)]=function(_0x3c91eb,_0x1f22f8){return _0x3c91eb===_0x1f22f8;},_0xdb9ccb[_0x174420(0x1d9)]=function(_0x282980,_0x10ce1c){return _0x282980===_0x10ce1c;},_0xdb9ccb[_0x174420(0x22a)]=_0x174420(0x22f);const _0xb22243=_0xdb9ccb;await super[_0x174420(0x191)](_0x5c4444,_0x289c6b,_0x591d6f);const _0x3be32d=this['resolveInstance'](_0x5c4444,_0x289c6b,_0x591d6f);if(!_0x3be32d){logger[_0x174420(0x231)](_0xb22243[_0x174420(0x1f0)]);return;}try{let _0x5c4422,_0x2bba96;switch(_0x5c4444){case TestFrameworkState[_0x174420(0x1a6)]:_0x5c4422=_0x591d6f[_0x174420(0x243)],_0x2bba96=TestInfo[_0x174420(0x219)](_0x5c4422['id']);if(_0xb22243['eUDiI'](_0x289c6b,HookState[_0x174420(0x21d)])){logger[_0x174420(0x231)](_0x174420(0x225)+_0x5c4422['id']);const _0x1d9944={};_0x1d9944[_0x174420(0x1c0)]=_0x2bba96,_0x1d9944[_0x174420(0x1fc)]=_0x5c4422,_0x3be32d['addMultipleEntries'](this[_0x174420(0x1a4)](_0x1d9944)),logger[_0x174420(0x231)](_0x174420(0x192)+_0x5c4422['id']),await this[_0x174420(0x1c8)](_0x3be32d,_0x5c4422['id']);}else{if(_0xb22243[_0x174420(0x1d9)](_0x289c6b,HookState[_0x174420(0x213)])){const _0x3337e9={};_0x3337e9[_0x174420(0x1c0)]=_0x2bba96,_0x3337e9[_0x174420(0x1fc)]=_0x5c4422,_0x3be32d[_0x174420(0x1c9)](this['parseCucumberTestResult'](_0x3337e9)),await this[_0x174420(0x1c8)](_0x3be32d,_0x5c4422['id']);}}break;case TestFrameworkState[_0x174420(0x199)]:_0xb22243[_0x174420(0x215)](_0x289c6b,HookState[_0x174420(0x213)])&&await this[_0x174420(0x241)](_0x3be32d,_0x5c4444,_0x591d6f);break;default:if(CLIUtils['matchHookRegex'](_0x5c4444[_0x174420(0x228)]()[_0x174420(0x203)]('.')[0x1])){const _0x3a378b=await this[_0x174420(0x1bf)](_0x3be32d,_0x5c4444,_0x289c6b,_0x591d6f);_0x3be32d['addMultipleEntries'](_0x3a378b);}else logger[_0x174420(0x231)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0x5c4444+_0x174420(0x196)+_0x289c6b);break;}}catch(_0x52342c){logger[_0x174420(0x242)](util['format'](_0xb22243[_0x174420(0x22a)],_0x5c4444,_0x289c6b,_0x591d6f[_0x174420(0x1f1)],_0x52342c));}_0x591d6f[_0x174420(0x1fb)]=_0x3be32d,await this[_0x174420(0x1d4)](_0x3be32d,_0x5c4444,_0x289c6b,_0x591d6f);}[a74_0x328d33(0x1e3)](_0x1d2a93,_0x575984,_0x5ca2c7={}){const _0x459561=a74_0x328d33,_0x3df386={};_0x3df386[_0x459561(0x244)]=function(_0x33053a,_0xd5d294){return _0x33053a===_0xd5d294;},_0x3df386[_0x459561(0x1d7)]=function(_0x2d26c0,_0x65299){return _0x2d26c0===_0x65299;};const _0x3efb61=_0x3df386;let _0x39a99b=null;return(_0x3efb61['eWeiD'](_0x1d2a93,TestFrameworkState[_0x459561(0x1f2)])||_0x3efb61[_0x459561(0x1d7)](_0x1d2a93,TestFrameworkState[_0x459561(0x232)]))&&this[_0x459561(0x1ec)](_0x1d2a93,_0x5ca2c7),_0x39a99b=TestFramework[_0x459561(0x1c7)](),_0x39a99b;}['trackCucumberInstance'](_0x45b06b,_0x553368){const _0x4b771c=a74_0x328d33,_0x555bc2=CLIUtils[_0x4b771c(0x200)](),_0x119490=TrackedInstance[_0x4b771c(0x195)](_0x555bc2);let _0xd3768f=null;logger['debug'](_0x4b771c(0x1f3)+_0x555bc2+_0x4b771c(0x214)+_0x45b06b),_0xd3768f=new TestFrameworkInstance(_0x119490,this['getTestFrameworks'](),this[_0x4b771c(0x223)](),_0x45b06b,HookState[_0x4b771c(0x232)]),TestFramework[_0x4b771c(0x1ee)](_0x119490,_0xd3768f),logger[_0x4b771c(0x231)](_0x4b771c(0x208)+_0x119490['getId']()+_0x4b771c(0x233)+_0x555bc2);}[a74_0x328d33(0x1a4)](_0x226688){const _0x2a5531=a74_0x328d33,_0x31331e={};_0x31331e[_0x2a5531(0x20c)]=_0x2a5531(0x197);const _0x63ff46=_0x31331e,{testUUID:_0x2cced2,testData:_0x5a2509}=_0x226688;if(!_0x5a2509||!_0x5a2509[_0x2a5531(0x18d)])return logger['debug'](_0x63ff46['sBZCQ']),{};const _0x5d2eb8=_0x2cced2,_0x35b379=_0x5a2509[_0x2a5531(0x18d)],_0x37d526=this[_0x2a5531(0x1a2)]()[0x0],_0x135bac=this[_0x2a5531(0x223)](),_0x238edc={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x37d526,[TestFrameworkConstants[_0x2a5531(0x198)]]:_0x135bac[_0x37d526],[TestFrameworkConstants[_0x2a5531(0x1c4)]]:[],[TestFrameworkConstants[_0x2a5531(0x205)]]:{},[TestFrameworkConstants[_0x2a5531(0x1d3)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x5d2eb8,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x2a5531(0x1ab)],[TestFrameworkConstants[_0x2a5531(0x1cb)]]:_0x5a2509[_0x2a5531(0x20b)]||'',[TestFrameworkConstants[_0x2a5531(0x1b5)]]:_0x5a2509['file_name']||'',[TestFrameworkConstants[_0x2a5531(0x1a8)]]:_0x35b379,[TestFrameworkConstants[_0x2a5531(0x1f9)]]:_0x5a2509[_0x2a5531(0x20b)]||'',[TestFrameworkConstants[_0x2a5531(0x235)]]:_0x5a2509[_0x2a5531(0x1d0)]||'',[TestFrameworkConstants[_0x2a5531(0x1c6)]]:_0x5a2509['body']?.['code']||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x5a2509[_0x2a5531(0x23b)]||[],[TestFrameworkConstants[_0x2a5531(0x1aa)]]:_0x5a2509[_0x2a5531(0x1bc)]||new Date()[_0x2a5531(0x190)](),[TestFrameworkConstants[_0x2a5531(0x1d1)]]:_0x5a2509['scopes']?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x5a2509[_0x2a5531(0x23f)]||[],[TestFrameworkConstants[_0x2a5531(0x207)]]:_0x5a2509['customRerunParam']?.[_0x2a5531(0x1d6)]||_0x5a2509[_0x2a5531(0x20b)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x2a5531(0x17f)]]:_0x5a2509[_0x2a5531(0x1ed)]||{}};TestInfo[_0x2a5531(0x1ef)](_0x35b379,_0x238edc),logger[_0x2a5531(0x231)](_0x2a5531(0x19a)+_0x5a2509['name']+_0x2a5531(0x1af)+_0x5d2eb8);const _0x2f98c2={};return _0x2f98c2[_0x35b379]=_0x238edc,_0x2f98c2;}['parseCucumberTestResult'](_0x3dccf0){const _0x5aff6b=a74_0x328d33,_0x32213e={'HynJw':_0x5aff6b(0x1b7),'aVOgR':_0x5aff6b(0x187),'dsQit':function(_0x11e1ed,_0x1dafb2){return _0x11e1ed===_0x1dafb2;},'GePuF':_0x5aff6b(0x1e0),'wZhge':_0x5aff6b(0x238),'EkWor':function(_0x3f2d69,_0x123e6d,_0x3b21de){return _0x3f2d69(_0x123e6d,_0x3b21de);},'OlggI':function(_0x309bbc,_0x31194f){return _0x309bbc>_0x31194f;}},{testUUID:_0x5aeca6,testData:_0x54049b}=_0x3dccf0;if(!_0x54049b||!_0x54049b['uuid'])return logger[_0x5aff6b(0x231)](_0x32213e[_0x5aff6b(0x1ad)]),{};const _0x10ab21=this[_0x5aff6b(0x1e3)](TestFrameworkState[_0x5aff6b(0x1a6)],HookState[_0x5aff6b(0x213)]),_0x40e5a5=_0x54049b[_0x5aff6b(0x18d)],_0x5dcb01=TestInfo[_0x5aff6b(0x1da)](_0x40e5a5)||{},_0x3f25c2=_0x5dcb01?_0x5dcb01[TestFrameworkConstants[_0x5aff6b(0x247)]]||{}:{},_0x4127cd={..._0x5dcb01,[TestFrameworkConstants[_0x5aff6b(0x1e4)]]:_0x54049b[_0x5aff6b(0x1a9)]||_0x32213e[_0x5aff6b(0x210)],[TestFrameworkConstants[_0x5aff6b(0x1dc)]]:_0x54049b[_0x5aff6b(0x22e)]||new Date()[_0x5aff6b(0x190)](),[TestFrameworkConstants[_0x5aff6b(0x20a)]]:new Date()[_0x5aff6b(0x190)](),[TestFrameworkConstants[_0x5aff6b(0x247)]]:_0x3f25c2,[TestFrameworkConstants[_0x5aff6b(0x212)]]:[],[TestFrameworkConstants[_0x5aff6b(0x17f)]]:_0x54049b['meta']||{}};_0x32213e['dsQit'](_0x54049b[_0x5aff6b(0x1a9)],_0x32213e[_0x5aff6b(0x1c1)])&&_0x54049b['failure']&&(_0x4127cd[TestFrameworkConstants[_0x5aff6b(0x19f)]]=_0x54049b[_0x5aff6b(0x19c)]||_0x32213e[_0x5aff6b(0x17e)],_0x4127cd[TestFrameworkConstants[_0x5aff6b(0x194)]]=_0x54049b['failure_reason']||'',_0x4127cd[TestFrameworkConstants[_0x5aff6b(0x189)]]=_0x54049b['failure']);const _0x5bdc9d=TestInfo[_0x5aff6b(0x1da)](_0x40e5a5)[TestFrameworkConstants[_0x5aff6b(0x19e)]]||{},_0x2badf5=_0x32213e[_0x5aff6b(0x220)](getManualUploadLogs,_0x5bdc9d,_0x10ab21[_0x5aff6b(0x222)]()[_0x5aff6b(0x186)](_0x40e5a5)[TestFrameworkConstants[_0x5aff6b(0x1ca)]]);if(_0x32213e[_0x5aff6b(0x1fa)](_0x2badf5[_0x5aff6b(0x1f1)],0x0)){const _0x5386cb=_0x4127cd[TestFrameworkConstants[_0x5aff6b(0x212)]]||[];_0x4127cd[TestFrameworkConstants[_0x5aff6b(0x212)]]=[..._0x5386cb,..._0x2badf5];}_0x54049b[_0x5aff6b(0x20f)]&&_0x32213e[_0x5aff6b(0x1fa)](_0x54049b['hooks'][_0x5aff6b(0x1f1)],0x0)&&(_0x4127cd[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x54049b[_0x5aff6b(0x20f)]);TestInfo[_0x5aff6b(0x1ef)](_0x40e5a5,_0x4127cd),logger['debug'](_0x5aff6b(0x1de)+_0x54049b[_0x5aff6b(0x20b)]+_0x5aff6b(0x179)+_0x54049b['result']);const _0x417eeb={};return _0x417eeb[_0x40e5a5]=_0x4127cd,_0x417eeb;}async[a74_0x328d33(0x1bf)](_0x3ec3fc,_0x384e8d,_0x24b589,_0x5859a5){const _0x27e947=a74_0x328d33,_0x44354c={'LEyis':_0x27e947(0x234),'SqXnM':function(_0x5b3a10){return _0x5b3a10();},'uGRCW':function(_0x47401d,_0x21aada){return _0x47401d in _0x21aada;},'zOjGF':function(_0xe061ea,_0x26daaa){return _0xe061ea in _0x26daaa;},'pJhBj':function(_0x350a34,_0x50f68d){return _0x350a34===_0x50f68d;},'hQJsZ':function(_0x155424,_0x20137a){return _0x155424===_0x20137a;},'TAQUY':function(_0x593036,_0x25a34c){return _0x593036>_0x25a34c;},'KSToc':'failed','ugPFh':_0x27e947(0x238),'zRsIR':_0x27e947(0x23a),'HJBlG':function(_0x4cb3e8,_0x1c8f6c){return _0x4cb3e8!==_0x1c8f6c;}},{hookData:_0x549502}=_0x5859a5;if(!_0x549502)return logger['debug'](_0x44354c['LEyis']),{};const _0x188f0b=_0x549502['uuid']||_0x44354c[_0x27e947(0x224)](uuidv4),_0x11dc3=_0x549502[_0x27e947(0x23c)],_0x1dae48=_0x384e8d[_0x27e947(0x228)]()[_0x27e947(0x203)]('.')[0x1],_0x2c7749=TestInfo[_0x27e947(0x1da)](_0x11dc3)[TestFrameworkConstants[_0x27e947(0x247)]]||{},_0x1e78c1=_0x3ec3fc[_0x27e947(0x222)]()[_0x27e947(0x186)](_0x11dc3);if(!_0x1e78c1)return logger['debug']('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x11dc3+_0x27e947(0x218)),this['storePendingHook'](_0x3ec3fc,_0x11dc3,_0x384e8d,_0x24b589,_0x5859a5),{};let _0x112b7e=_0x1e78c1[TestFrameworkConstants[_0x27e947(0x1d3)]];!_0x112b7e&&(_0x112b7e={});!_0x44354c[_0x27e947(0x206)](_0x1dae48,_0x112b7e)&&(_0x112b7e[_0x1dae48]=[]);let _0x2c009f=_0x1e78c1[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x2c009f&&(_0x2c009f={});!_0x44354c[_0x27e947(0x1e5)](_0x1dae48,_0x2c009f)&&(_0x2c009f[_0x1dae48]=[]);const _0x5aee6c={[TestFrameworkConstants[_0x27e947(0x1d3)]]:_0x112b7e,[TestFrameworkConstants[_0x27e947(0x205)]]:_0x2c009f},_0x31310e={};_0x31310e[_0x11dc3]=_0x5aee6c;const _0x32b85e=_0x31310e;if(_0x44354c[_0x27e947(0x1e1)](_0x24b589,HookState[_0x27e947(0x21d)])){const _0x18b98e={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x188f0b,[TestFrameworkConstants[_0x27e947(0x21a)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x27e947(0x20e)]]:_0x549502['started_at'],[TestFrameworkConstants[_0x27e947(0x183)]]:[],[TestFrameworkConstants[_0x27e947(0x22d)]]:_0x549502[_0x27e947(0x211)],[TestFrameworkConstants[_0x27e947(0x247)]]:_0x2c7749};_0x18b98e['key']=_0x1dae48;const _0x71377a=_0x18b98e;_0x112b7e[_0x1dae48][_0x27e947(0x184)](_0x71377a),_0x32b85e[_0x11dc3][TestFrameworkConstants[_0x27e947(0x1f4)]]=_0x1dae48,logger[_0x27e947(0x231)](_0x27e947(0x1b8)+_0x1dae48+_0x27e947(0x17a)+_0x71377a+_0x27e947(0x18c)+_0x5859a5);}else{if(_0x44354c['hQJsZ'](_0x24b589,HookState[_0x27e947(0x213)])){const _0x1f2551=_0x549502[_0x27e947(0x1a9)],_0x419105=_0x112b7e[_0x1dae48]||[];logger[_0x27e947(0x231)](_0x27e947(0x23d)+_0x419105+_0x27e947(0x1dd)+_0x5859a5);if(_0x44354c[_0x27e947(0x1f7)](_0x419105[_0x27e947(0x1f1)],0x0)){const _0x3c9ab2=_0x419105['pop']();_0x44354c[_0x27e947(0x1e1)](_0x549502[_0x27e947(0x1a9)],_0x44354c[_0x27e947(0x245)])&&_0x549502[_0x27e947(0x1e7)]?(_0x3c9ab2[TestFrameworkConstants[_0x27e947(0x21b)]]=_0x549502[_0x27e947(0x19c)]||_0x44354c['ugPFh'],_0x3c9ab2[TestFrameworkConstants[_0x27e947(0x1b9)]]=_0x549502[_0x27e947(0x226)]||'',_0x3c9ab2[TestFrameworkConstants[_0x27e947(0x1f5)]]=_0x549502[_0x27e947(0x1e7)]):_0x3c9ab2[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x44354c[_0x27e947(0x21f)];_0x44354c[_0x27e947(0x23e)](_0x1f2551,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x3c9ab2[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x1f2551);_0x3c9ab2[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x549502['finished_at']||new Date()['toISOString'](),_0x3c9ab2[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x2c7749;const _0x352887=_0x3c9ab2[TestFrameworkConstants['KEY_HOOK_ID']];!_0x2c009f[_0x1dae48]&&(_0x2c009f[_0x1dae48]=[]),_0x2c009f[_0x1dae48]['push'](_0x3c9ab2),_0x32b85e[_0x11dc3][TestFrameworkConstants[_0x27e947(0x201)]]=_0x1dae48;}}}return logger[_0x27e947(0x231)](_0x27e947(0x1a3)+_0x549502[_0x27e947(0x211)]+_0x27e947(0x246)+_0x188f0b+_0x27e947(0x229)+_0x11dc3),_0x32b85e;}[a74_0x328d33(0x1fe)](_0x5a4df7){const _0x397ec3=a74_0x328d33,_0x25d0a7={};_0x25d0a7[_0x397ec3(0x1c2)]=_0x397ec3(0x209);const _0x10de5e=_0x25d0a7;try{const _0x3da17a=_0x5a4df7[_0x397ec3(0x243)]?_0x5a4df7[_0x397ec3(0x243)]['id']:_0x5a4df7['hookData']['test_run_id'],_0x70a696=_0x5a4df7[_0x397ec3(0x1fb)],_0x4ab2b8=_0x70a696[_0x397ec3(0x1fd)](),_0x38d460=_0x70a696['getAllData']()[_0x397ec3(0x186)](_0x3da17a);if(!_0x38d460)return logger[_0x397ec3(0x231)](_0x397ec3(0x1e2)+_0x3da17a),{};logger[_0x397ec3(0x231)](_0x397ec3(0x221)+_0x3da17a);const {[TestFrameworkConstants[_0x397ec3(0x1b4)]]:_0x35e1ca='',[TestFrameworkConstants[_0x397ec3(0x198)]]:_0x2c5158='',[TestFrameworkConstants[_0x397ec3(0x1aa)]]:_0x4fc9b5='',[TestFrameworkConstants[_0x397ec3(0x1dc)]]:_0x457c00=''}=_0x38d460,_0x56633d=_0x70a696[_0x397ec3(0x1be)]()['toString']()[_0x397ec3(0x203)]('.')[0x1],_0x3de49c=_0x70a696[_0x397ec3(0x22c)]()[_0x397ec3(0x228)]()['split']('.')[0x1],_0x5d69a7=global?.[_0x397ec3(0x22b)]??0x0,_0x2c83be=_0x70a696[_0x397ec3(0x21c)](),_0x40f727=Buffer[_0x397ec3(0x17b)](JSON[_0x397ec3(0x1a0)](_0x38d460))[_0x397ec3(0x228)](_0x10de5e[_0x397ec3(0x1c2)]),_0x2fc33b={'hash':_0x4ab2b8[_0x397ec3(0x1e9)](),'threadId':_0x4ab2b8[_0x397ec3(0x1cc)]()[_0x397ec3(0x228)](),'processId':_0x4ab2b8[_0x397ec3(0x193)]()[_0x397ec3(0x228)]()},_0x4ef2be={};_0x4ef2be['platformIndex']=_0x5d69a7,_0x4ef2be['testFrameworkName']=_0x35e1ca,_0x4ef2be[_0x397ec3(0x1e6)]=_0x2c5158,_0x4ef2be[_0x397ec3(0x18f)]=_0x56633d,_0x4ef2be[_0x397ec3(0x185)]=_0x3de49c,_0x4ef2be['startedAt']=_0x4fc9b5,_0x4ef2be[_0x397ec3(0x1d5)]=_0x457c00,_0x4ef2be[_0x397ec3(0x18d)]=_0x2c83be,_0x4ef2be[_0x397ec3(0x1f8)]=_0x40f727,_0x4ef2be['executionContext']=_0x2fc33b;const _0x81e46f=_0x4ef2be;return logger[_0x397ec3(0x231)](_0x397ec3(0x240)+_0x3da17a+_0x397ec3(0x180)+_0x56633d+_0x397ec3(0x182)+_0x3de49c),_0x81e46f;}catch(_0x4e3f85){return logger[_0x397ec3(0x242)](_0x397ec3(0x1d8)+util[_0x397ec3(0x19d)](_0x4e3f85)),{};}}async['sendLogCreatedEvent'](_0x338bc9,_0x33da05,_0x17e140){const _0x55aacc=a74_0x328d33,_0x4872be={'ESAsS':function(_0x238d3f,_0x7dd060,_0x31c0c0){return _0x238d3f(_0x7dd060,_0x31c0c0);},'UIlNG':function(_0x5949f8,_0xeb4563){return _0x5949f8===_0xeb4563;},'pWDuI':_0x55aacc(0x1bb),'DYnPe':function(_0x584395,_0x324c0d){return _0x584395/_0x324c0d;},'EcjGP':function(_0x4e6f9c,_0x467ae8){return _0x4e6f9c<_0x467ae8;},'leDHE':function(_0x38c3b6,_0x316d1e){return _0x38c3b6*_0x316d1e;},'CHxUz':function(_0x2741b9,_0x23dc32){return _0x2741b9+_0x23dc32;},'ceRpm':function(_0x446242,_0x371830){return _0x446242+_0x371830;},'BoSCF':_0x55aacc(0x1a1)};try{const _0x1cb661=_0x17e140[_0x55aacc(0x1c0)],_0x2befaf=_0x338bc9[_0x55aacc(0x222)]()[_0x55aacc(0x186)](_0x1cb661),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x25bfb9='',[TestFrameworkConstants[_0x55aacc(0x198)]]:_0xdde91f=''}=_0x2befaf,_0x200f2=TestInfo['readLogObjects'](_0x1cb661),_0x46680f=TestInfo['getTestDetails'](_0x1cb661)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x1299ef=_0x4872be[_0x55aacc(0x1b1)](getMediaArtifactsLogs,_0x46680f,_0x338bc9['getAllData']()[_0x55aacc(0x186)](_0x1cb661)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x1d5956=(_0x200f2||[])['concat'](_0x1299ef||[]);if(!_0x1d5956||_0x4872be[_0x55aacc(0x19b)](_0x1d5956[_0x55aacc(0x1f1)],0x0)){logger['debug'](_0x4872be[_0x55aacc(0x1f6)]);return;}const _0x12c22b=0x28,_0xaa11ab=Math['ceil'](_0x4872be['DYnPe'](_0x1d5956['length'],_0x12c22b));for(let _0x2dcbc0=0x0;_0x4872be['EcjGP'](_0x2dcbc0,_0xaa11ab);_0x2dcbc0++){const _0x5d183b=_0x4872be[_0x55aacc(0x202)](_0x2dcbc0,_0x12c22b),_0x484edf=_0x4872be[_0x55aacc(0x1b0)](_0x5d183b,_0x12c22b),_0x2c88e5=_0x1d5956['slice'](_0x5d183b,_0x484edf),_0x21ef36={'platformIndex':global?.[_0x55aacc(0x22b)]??0x0,'logs':_0x2c88e5,'testFrameworkName':_0x25bfb9,'testFrameworkVersion':_0xdde91f,'testFrameworkState':_0x33da05[_0x55aacc(0x228)]()[_0x55aacc(0x203)]('.')[0x1]};logger['debug'](_0x55aacc(0x1e8)+_0x1cb661+_0x55aacc(0x17d)+_0x4872be[_0x55aacc(0x1b0)](_0x2dcbc0,0x1)+'/'+_0xaa11ab+'\x20payload='+util[_0x55aacc(0x227)](_0x21ef36));const _0x2e2267=await GrpcClient[_0x55aacc(0x1ac)]()[_0x55aacc(0x1ff)](_0x21ef36);logger[_0x55aacc(0x231)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x1cb661+_0x55aacc(0x17d)+_0x4872be['ceRpm'](_0x2dcbc0,0x1)+'/'+_0xaa11ab+'\x20response='+util[_0x55aacc(0x227)](_0x2e2267));}}catch(_0x1dbead){logger[_0x55aacc(0x242)](_0x55aacc(0x1df)+util[_0x55aacc(0x19d)](_0x1dbead));}logger[_0x55aacc(0x231)](_0x4872be[_0x55aacc(0x18a)]);}[a74_0x328d33(0x1a7)](_0x239e1e,_0x5c02ef,_0x1c704d,_0x77766c,_0x524027){const _0xc006a8=a74_0x328d33,_0x5dfc42={'testId':_0x5c02ef,'testFrameworkState':_0x1c704d,'hookState':_0x77766c,'args':_0x524027,'timestamp':new Date()[_0xc006a8(0x190)]()};_0x239e1e[_0xc006a8(0x1d2)](_0x5c02ef,_0x5dfc42),logger[_0xc006a8(0x231)](_0xc006a8(0x1c3)+_0x5c02ef+',\x20state:\x20'+_0x1c704d+',\x20hookState:\x20'+_0x77766c);}async[a74_0x328d33(0x1c8)](_0x461211,_0x557bc6){const _0x1fcd2d=a74_0x328d33,_0x253a9f={};_0x253a9f[_0x1fcd2d(0x1c5)]=function(_0x146ded,_0x5d9609){return _0x146ded>_0x5d9609;};const _0x466e95=_0x253a9f;if(!_0x461211['hasPendingHooks'](_0x557bc6))return;const _0x8e3df1=_0x461211[_0x1fcd2d(0x21e)](_0x557bc6);logger[_0x1fcd2d(0x231)](_0x1fcd2d(0x216)+_0x8e3df1[_0x1fcd2d(0x1f1)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x557bc6);for(const _0x1e1f77 of _0x8e3df1){try{const _0x3078aa=await this['trackHookEvent'](_0x461211,_0x1e1f77[_0x1fcd2d(0x18f)],_0x1e1f77['hookState'],_0x1e1f77[_0x1fcd2d(0x239)]);_0x3078aa&&_0x466e95[_0x1fcd2d(0x1c5)](Object['keys'](_0x3078aa)['length'],0x0)&&_0x461211[_0x1fcd2d(0x1c9)](_0x3078aa),await this[_0x1fcd2d(0x1d4)](_0x461211,_0x1e1f77[_0x1fcd2d(0x18f)],_0x1e1f77[_0x1fcd2d(0x185)],_0x1e1f77[_0x1fcd2d(0x239)]);}catch(_0x30d1c2){logger[_0x1fcd2d(0x242)](_0x1fcd2d(0x1b3)+_0x557bc6+_0x1fcd2d(0x1ea)+_0x30d1c2);}}_0x461211[_0x1fcd2d(0x20d)](_0x557bc6),logger['debug'](_0x1fcd2d(0x181)+_0x557bc6);}}module['exports']=CucumberTestFramework;