browserstack-node-sdk 1.49.12 → 1.50.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) 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 +2 -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/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- 'use strict';const a65_0x1ea26e=a65_0x5c19;(function(_0x1a856b,_0x310da1){const _0x20f678=a65_0x5c19,_0x58d8a1=_0x1a856b();while(!![]){try{const _0x153e52=parseInt(_0x20f678(0xce))/0x1+parseInt(_0x20f678(0xe9))/0x2*(-parseInt(_0x20f678(0xa2))/0x3)+parseInt(_0x20f678(0xea))/0x4*(-parseInt(_0x20f678(0xb2))/0x5)+parseInt(_0x20f678(0xaf))/0x6+parseInt(_0x20f678(0xb6))/0x7+-parseInt(_0x20f678(0xb8))/0x8*(parseInt(_0x20f678(0xef))/0x9)+-parseInt(_0x20f678(0xe6))/0xa*(-parseInt(_0x20f678(0xae))/0xb);if(_0x153e52===_0x310da1)break;else _0x58d8a1['push'](_0x58d8a1['shift']());}catch(_0x790496){_0x58d8a1['push'](_0x58d8a1['shift']());}}}(a65_0x2a91,0xc69f3));function a65_0x2a91(){const _0x309282=['29298630JQlCkb','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','addMultipleEntries','94GnZQqo','1572992zkaLKG','WQYmF','getTestFrameworkDetail','ZMjEB','testLevelTags','237465eQamfO','isRunning','qagTb',',\x20existingTags=','\x20with\x20values=','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','parseCommaSeparatedValues',':jest-','retry','debug','JYuRr','96573UIcNUq','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','getTestLevelTags','./browserstackCLI','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','VtZsI','ayKeh','VInVm','./modules/testhubModule','currentTest','./state/testFrameworkState','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','11tIbTAW','1484670FDckjZ','vYbvf','./framework/constants/testFrameworkConstants','20eqomVf','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','resolveInstance','testhubConfig','4075638pNNxph','trim','8PUWcaK','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','__jestCurrentTestIdentifier','getBuildLevelTags','KEY_TEST_ID','MODULE_NAME','XfccU',',\x20key=','../../helpers/helper','Custom\x20tag\x20key\x20cannot\x20be\x20empty','getTestFramework','stringify','JHqCW','BZCxn','get','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','getTestIdentifierFromTestInfo','TjPYB','toObject','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=','getInstance','POST','166367MZlURe','AzZLw','buildLevelTags','values','includes','elebx','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','__workerDetails','lYWew','\x20with\x20new\x20values=','Umoor','KEY_CUSTOM_TAGS','field_type','YljkH','clearTags','getTrackedInstance','testInfo','getState','hKrWa','../../helpers/classLogger','string','./modules/playwrightDriverModule','WKhnh','jest'];a65_0x2a91=function(){return _0x309282;};return a65_0x2a91();}const BrowserstackCLI=require(a65_0x1ea26e(0xa5)),helper=require(a65_0x1ea26e(0xc0)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a65_0x1ea26e(0xb1)),PlaywrightDriverModule=require(a65_0x1ea26e(0xe3)),TestInfo=require('./TestInfo'),TestHubModule=require(a65_0x1ea26e(0xaa)),{createClassLogger}=require(a65_0x1ea26e(0xe1)),logger=createClassLogger('CustomTagManager');class CustomTagManager{static [a65_0x1ea26e(0xd0)]={};static [a65_0x1ea26e(0xee)]={};static['setCustomTags'](_0x56b096,_0x2eef8e,_0xc4d067=![]){const _0x548584=a65_0x1ea26e,_0x50872b={'JYuRr':function(_0x1db888,_0x589abf){return _0x1db888!==_0x589abf;},'WKhnh':_0x548584(0xe2),'hKrWa':_0x548584(0xc7),'lYWew':function(_0x5f2e30,_0x4b4ebf){return _0x5f2e30!==_0x4b4ebf;},'VInVm':_0x548584(0xa3),'ZMjEB':function(_0x5f36ff,_0x3855ed){return _0x5f36ff===_0x3855ed;},'mEoQM':_0x548584(0xc1),'BZCxn':'Custom\x20tag\x20value\x20cannot\x20be\x20empty','ayKeh':'multi_dropdown','YljkH':_0x548584(0x9e),'elebx':function(_0x13138c,_0x44c235){return _0x13138c(_0x44c235);},'AzZLw':'./cliUtils','JHqCW':_0x548584(0xe5),'WQYmF':_0x548584(0xd4),'VtZsI':_0x548584(0xb9),'qagTb':function(_0x50c59d,_0x5445d9){return _0x50c59d(_0x5445d9);},'Umoor':_0x548584(0xac),'vYbvf':function(_0x13064f,_0x5461dd){return _0x13064f(_0x5461dd);},'TjPYB':'./state/hookState','XfccU':_0x548584(0xe7)};if(_0x50872b[_0x548584(0xa1)](typeof _0x56b096,_0x50872b[_0x548584(0xe4)]))throw new Error(_0x50872b[_0x548584(0xe0)]);if(_0x50872b[_0x548584(0xd6)](typeof _0x2eef8e,_0x50872b[_0x548584(0xe4)]))throw new Error(_0x50872b[_0x548584(0xa9)]);if(_0x50872b[_0x548584(0xed)](_0x56b096[_0x548584(0xb7)](),''))throw new Error(_0x50872b['mEoQM']);if(_0x50872b[_0x548584(0xed)](_0x2eef8e[_0x548584(0xb7)](),''))throw new Error(_0x50872b[_0x548584(0xc5)]);const _0x28aa0a=helper[_0x548584(0x9d)](_0x2eef8e);if(_0xc4d067){const _0x2dfc45=BrowserstackCLI['getInstance']()['modules'][TestHubModule[_0x548584(0xbd)]];if(_0x2dfc45){const _0x2178cf=_0x2dfc45?.[_0x548584(0xb5)]?.[_0x548584(0xca)]()?.['buildHashedId'];TestInfo['getTestUUID'](_0x2178cf);const _0x34536c=TestInfo['getTestDetails'](_0x2178cf),_0x452243=_0x34536c[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};if(!_0x452243[_0x56b096]){const _0x524c11={};_0x524c11[_0x548584(0xda)]=_0x50872b['ayKeh'],_0x524c11[_0x548584(0xd1)]=[..._0x28aa0a],_0x452243[_0x56b096]=_0x524c11;}else _0x452243[_0x56b096][_0x548584(0xd1)]=[..._0x28aa0a];_0x34536c[TestFrameworkConstants[_0x548584(0xd9)]]=_0x452243,TestInfo['setTestDetails'](_0x2178cf,_0x34536c),!this['buildLevelTags'][_0x2178cf]&&(this[_0x548584(0xd0)][_0x2178cf]={}),this[_0x548584(0xd0)][_0x2178cf][_0x56b096]=[..._0x28aa0a];}}else{let _0x5691cd;const _0x15eaa3=global[_0x548584(0xba)];let _0x5e7d21=![];if(_0x15eaa3&&_0x15eaa3[_0x548584(0xd2)](_0x50872b[_0x548584(0xdb)]))_0x5e7d21=!![],_0x5691cd=_0x15eaa3;else try{const _0x31b2fb=_0x50872b[_0x548584(0xd3)](require,_0x50872b[_0x548584(0xcf)]);if(BrowserstackCLI[_0x548584(0xcc)]()[_0x548584(0x98)]()){const _0x4622c6=_0x31b2fb[_0x548584(0xec)]();if(_0x50872b[_0x548584(0xed)](_0x4622c6?.['name']?.['toLowerCase'](),_0x50872b[_0x548584(0xc4)])){const _0x118da5=AutomationFramework[_0x548584(0xdd)]();_0x5691cd=AutomationFramework[_0x548584(0xdf)](_0x118da5,PlaywrightDriverModule[_0x548584(0xbc)],''),_0x5691cd&&_0x5691cd[_0x548584(0xd2)](_0x50872b[_0x548584(0xdb)])&&(_0x5e7d21=!![]);}}}catch(_0x35ae5f){logger[_0x548584(0xa0)](_0x548584(0xb3)+_0x35ae5f);}if(_0x5e7d21){if(!_0x5691cd)throw new Error(_0x50872b[_0x548584(0xeb)]);const _0x31ee50=BrowserstackCLI['getInstance']()[_0x548584(0xc2)]();if(!_0x31ee50)throw new Error(_0x50872b[_0x548584(0xa7)]);const _0x3b2655=_0x50872b[_0x548584(0x99)](require,_0x50872b[_0x548584(0xd8)]),_0x3a2fef=_0x50872b[_0x548584(0xb0)](require,_0x50872b[_0x548584(0xc9)]),_0x2d7381=_0x31ee50[_0x548584(0xb4)](_0x3b2655['TEST'],_0x3a2fef[_0x548584(0xcd)]);if(!_0x2d7381)throw new Error(_0x50872b[_0x548584(0xbe)]);const _0x35c1e7=_0x2d7381['getAllData']()[_0x548584(0xc6)](_0x5691cd)||{},_0x59e0c2=_0x35c1e7[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x548584(0xa0)](_0x548584(0x9c)+_0x5691cd+_0x548584(0xbf)+_0x56b096+',\x20values='+JSON[_0x548584(0xc3)](_0x28aa0a)+_0x548584(0x9a)+JSON[_0x548584(0xc3)](_0x59e0c2));if(!_0x59e0c2[_0x56b096]){const _0x2dcc46={};_0x2dcc46[_0x548584(0xda)]=_0x50872b[_0x548584(0xa8)],_0x2dcc46[_0x548584(0xd1)]=[..._0x28aa0a],_0x59e0c2[_0x56b096]=_0x2dcc46,logger[_0x548584(0xa0)](_0x548584(0xad)+_0x56b096+_0x548584(0x9b)+JSON[_0x548584(0xc3)](_0x28aa0a));}else _0x59e0c2[_0x56b096][_0x548584(0xd1)]=[..._0x28aa0a],logger[_0x548584(0xa0)](_0x548584(0xcb)+_0x56b096+_0x548584(0xd7)+JSON[_0x548584(0xc3)](_0x28aa0a));const _0x23f483={[TestFrameworkConstants[_0x548584(0xd9)]]:_0x59e0c2},_0x968da4={};_0x968da4[_0x5691cd]=_0x23f483,_0x2d7381[_0x548584(0xe8)](_0x968da4),logger['debug'](_0x548584(0xa6)+_0x5691cd+',\x20finalTags='+JSON['stringify'](_0x59e0c2)),!this[_0x548584(0xee)][_0x5691cd]&&(this['testLevelTags'][_0x5691cd]={}),this[_0x548584(0xee)][_0x5691cd][_0x56b096]=[..._0x28aa0a];}else{const _0x288353=global[_0x548584(0xd5)]?.[_0x548584(0xab)]?.[_0x548584(0xde)];if(!_0x288353){const _0x4b45d0=AutomationFramework[_0x548584(0xdd)]();_0x5691cd=AutomationFramework[_0x548584(0xdf)](_0x4b45d0,PlaywrightDriverModule[_0x548584(0xbc)],'');}else _0x5691cd=TestInfo[_0x548584(0xc8)](_0x288353,_0x288353[_0x548584(0x9f)]);const _0x1449e0=TestInfo['getTestDetails'](_0x5691cd),_0x51e79a=_0x1449e0[TestFrameworkConstants[_0x548584(0xd9)]]||{};if(!_0x51e79a[_0x56b096]){const _0x51a1c3={};_0x51a1c3[_0x548584(0xda)]=_0x50872b[_0x548584(0xa8)],_0x51a1c3[_0x548584(0xd1)]=[..._0x28aa0a],_0x51e79a[_0x56b096]=_0x51a1c3;}else _0x51e79a[_0x56b096]['values']=[..._0x28aa0a];_0x1449e0[TestFrameworkConstants[_0x548584(0xd9)]]=_0x51e79a,TestInfo['setTestDetails'](_0x5691cd,_0x1449e0),!this['testLevelTags'][_0x5691cd]&&(this['testLevelTags'][_0x5691cd]={}),this[_0x548584(0xee)][_0x5691cd][_0x56b096]=[..._0x28aa0a];}}}static[a65_0x1ea26e(0xbb)](){const _0x105184=a65_0x1ea26e,_0xac6574={...this[_0x105184(0xd0)]};return _0xac6574;}static[a65_0x1ea26e(0xa4)](){const _0x2150c0=a65_0x1ea26e,_0x5e0394={...this[_0x2150c0(0xee)]};return _0x5e0394;}static[a65_0x1ea26e(0xdc)](){const _0x5d050a=a65_0x1ea26e;this['buildLevelTags']={},this[_0x5d050a(0xee)]={};}}function a65_0x5c19(_0x281b4d,_0x4cb7c2){const _0x2a9147=a65_0x2a91();return a65_0x5c19=function(_0x5c1957,_0x332d87){_0x5c1957=_0x5c1957-0x98;let _0x49dd0d=_0x2a9147[_0x5c1957];return _0x49dd0d;},a65_0x5c19(_0x281b4d,_0x4cb7c2);}module['exports']=CustomTagManager;
1
+ 'use strict';const a65_0x3d1309=a65_0xbee8;(function(_0x32f745,_0x3cb56f){const _0x52bde7=a65_0xbee8,_0x32cb29=_0x32f745();while(!![]){try{const _0x422da4=parseInt(_0x52bde7(0x16e))/0x1*(-parseInt(_0x52bde7(0x183))/0x2)+parseInt(_0x52bde7(0x185))/0x3*(parseInt(_0x52bde7(0x1b1))/0x4)+-parseInt(_0x52bde7(0x19f))/0x5*(parseInt(_0x52bde7(0x1a8))/0x6)+-parseInt(_0x52bde7(0x16a))/0x7*(-parseInt(_0x52bde7(0x167))/0x8)+-parseInt(_0x52bde7(0x169))/0x9+parseInt(_0x52bde7(0x15c))/0xa*(-parseInt(_0x52bde7(0x1a7))/0xb)+parseInt(_0x52bde7(0x19b))/0xc*(parseInt(_0x52bde7(0x17d))/0xd);if(_0x422da4===_0x3cb56f)break;else _0x32cb29['push'](_0x32cb29['shift']());}catch(_0x5c6dac){_0x32cb29['push'](_0x32cb29['shift']());}}}(a65_0x3185,0xda891));function a65_0x3185(){const _0x2ea890=['319446uHOtUG','Gmvio','getTestFrameworkDetail','get','includes','currentTest',',\x20finalTags=','../../helpers/helper','__workerDetails','debug','jest','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','POST',',\x20existingTags=','buildLevelTags','trim','./cliUtils','yofjZ','JzpVD','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','./framework/automationFramework','uraHa','96jNUTbW','resolveInstance','getBuildLevelTags','oLblt','5gwMsyj','WBncW','./state/testFrameworkState','retry','TEST','testInfo','\x20with\x20new\x20values=','addMultipleEntries','2189Bejiuo','584658hNvZzG','testhubConfig','clearTags','modules','multi_dropdown','RkwDt','getTestFramework','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','getTrackedInstance','4mHvxKQ','hklCq','KEY_TEST_ID','stringify','testLevelTags','field_type','./framework/constants/testFrameworkConstants','OlvIF',':jest-','getTestUUID','ZwdUl','getAllData','41360WqENrm','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','setCustomTags','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','__jestCurrentTestIdentifier','toObject','\x20with\x20values=',',\x20key=','ZJIOK','MODULE_NAME','../../helpers/classLogger','7768mDALOg','KEY_CUSTOM_TAGS','2712150ZNPVOY','10283UApusO','values','CustomTagManager','getInstance','1032407gGJoeI','isRunning','GyDSI','./modules/playwrightDriverModule','parseCommaSeparatedValues','name',',\x20values=','setTestDetails','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','./browserstackCLI','mcgJb','GNtJX','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','UIMtQ','2626819ArKMYz','getState','./TestInfo','buildHashedId','Custom\x20tag\x20value\x20cannot\x20be\x20empty','getTestDetails','2dACybH','ZRHOb'];a65_0x3185=function(){return _0x2ea890;};return a65_0x3185();}const BrowserstackCLI=require(a65_0x3d1309(0x178)),helper=require(a65_0x3d1309(0x18c)),AutomationFramework=require(a65_0x3d1309(0x199)),TestFrameworkConstants=require(a65_0x3d1309(0x156)),PlaywrightDriverModule=require(a65_0x3d1309(0x171)),TestInfo=require(a65_0x3d1309(0x17f)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a65_0x3d1309(0x166)),logger=createClassLogger(a65_0x3d1309(0x16c));class CustomTagManager{static [a65_0x3d1309(0x193)]={};static ['testLevelTags']={};static[a65_0x3d1309(0x15e)](_0x3145df,_0x2be5ce,_0x4e3fd7=![]){const _0x379709=a65_0x3d1309,_0x2ebfaa={'OlvIF':function(_0x33ed16,_0x126a3c){return _0x33ed16!==_0x126a3c;},'GyDSI':'string','WBncW':_0x379709(0x15d),'IHkka':function(_0x5e3a14,_0x5c1019){return _0x5e3a14!==_0x5c1019;},'RkwDt':'Custom\x20tag\x20value\x20must\x20be\x20a\x20string','ZJIOK':function(_0x2c22f4,_0x372ddf){return _0x2c22f4===_0x372ddf;},'uraHa':'Custom\x20tag\x20key\x20cannot\x20be\x20empty','UIMtQ':_0x379709(0x181),'ZwdUl':_0x379709(0x1ac),'Gmvio':_0x379709(0x158),'JzpVD':function(_0x410e65,_0x2953e6){return _0x410e65(_0x2953e6);},'wjDms':_0x379709(0x195),'GNtJX':function(_0x1c071a,_0x26549b){return _0x1c071a===_0x26549b;},'yofjZ':_0x379709(0x18f),'oLblt':_0x379709(0x15f),'mcgJb':_0x379709(0x176),'hklCq':_0x379709(0x1a1),'ZRHOb':'./state/hookState','IMXGv':_0x379709(0x190)};if(_0x2ebfaa[_0x379709(0x157)](typeof _0x3145df,_0x2ebfaa[_0x379709(0x170)]))throw new Error(_0x2ebfaa[_0x379709(0x1a0)]);if(_0x2ebfaa['IHkka'](typeof _0x2be5ce,_0x2ebfaa[_0x379709(0x170)]))throw new Error(_0x2ebfaa[_0x379709(0x1ad)]);if(_0x2ebfaa[_0x379709(0x164)](_0x3145df['trim'](),''))throw new Error(_0x2ebfaa[_0x379709(0x19a)]);if(_0x2ebfaa['ZJIOK'](_0x2be5ce[_0x379709(0x194)](),''))throw new Error(_0x2ebfaa[_0x379709(0x17c)]);const _0x325545=helper[_0x379709(0x172)](_0x2be5ce);if(_0x4e3fd7){const _0x3746cd=BrowserstackCLI[_0x379709(0x16d)]()[_0x379709(0x1ab)][TestHubModule[_0x379709(0x165)]];if(_0x3746cd){const _0x4ce2fd=_0x3746cd?.[_0x379709(0x1a9)]?.[_0x379709(0x161)]()?.[_0x379709(0x180)];TestInfo[_0x379709(0x159)](_0x4ce2fd);const _0x323189=TestInfo[_0x379709(0x182)](_0x4ce2fd),_0x2595cd=_0x323189[TestFrameworkConstants[_0x379709(0x168)]]||{};if(!_0x2595cd[_0x3145df]){const _0x2aebab={};_0x2aebab[_0x379709(0x155)]=_0x2ebfaa[_0x379709(0x15a)],_0x2aebab[_0x379709(0x16b)]=[..._0x325545],_0x2595cd[_0x3145df]=_0x2aebab;}else _0x2595cd[_0x3145df][_0x379709(0x16b)]=[..._0x325545];_0x323189[TestFrameworkConstants[_0x379709(0x168)]]=_0x2595cd,TestInfo[_0x379709(0x175)](_0x4ce2fd,_0x323189),!this['buildLevelTags'][_0x4ce2fd]&&(this[_0x379709(0x193)][_0x4ce2fd]={}),this[_0x379709(0x193)][_0x4ce2fd][_0x3145df]=[..._0x325545];}}else{let _0x46194a;const _0x239b4d=global[_0x379709(0x160)];let _0x211282=![];if(_0x239b4d&&_0x239b4d['includes'](_0x2ebfaa[_0x379709(0x186)]))_0x211282=!![],_0x46194a=_0x239b4d;else try{const _0xd2a6d4=_0x2ebfaa['JzpVD'](require,_0x2ebfaa['wjDms']);if(BrowserstackCLI[_0x379709(0x16d)]()[_0x379709(0x16f)]()){const _0x3f97ab=_0xd2a6d4[_0x379709(0x187)]();if(_0x2ebfaa[_0x379709(0x17a)](_0x3f97ab?.[_0x379709(0x173)]?.['toLowerCase'](),_0x2ebfaa[_0x379709(0x196)])){const _0x46fe19=AutomationFramework[_0x379709(0x1b0)]();_0x46194a=AutomationFramework['getState'](_0x46fe19,PlaywrightDriverModule[_0x379709(0x1b3)],''),_0x46194a&&_0x46194a[_0x379709(0x189)](_0x2ebfaa[_0x379709(0x186)])&&(_0x211282=!![]);}}}catch(_0x369abd){logger[_0x379709(0x18e)](_0x379709(0x17b)+_0x369abd);}if(_0x211282){if(!_0x46194a)throw new Error(_0x2ebfaa[_0x379709(0x19e)]);const _0x2a8ac0=BrowserstackCLI[_0x379709(0x16d)]()[_0x379709(0x1ae)]();if(!_0x2a8ac0)throw new Error(_0x2ebfaa[_0x379709(0x179)]);const _0xc59261=_0x2ebfaa[_0x379709(0x197)](require,_0x2ebfaa[_0x379709(0x1b2)]),_0x4ac128=_0x2ebfaa[_0x379709(0x197)](require,_0x2ebfaa[_0x379709(0x184)]),_0x34caba=_0x2a8ac0[_0x379709(0x19c)](_0xc59261[_0x379709(0x1a3)],_0x4ac128[_0x379709(0x191)]);if(!_0x34caba)throw new Error(_0x2ebfaa['IMXGv']);const _0x393b7e=_0x34caba[_0x379709(0x15b)]()[_0x379709(0x188)](_0x46194a)||{},_0x545e4a=_0x393b7e[TestFrameworkConstants[_0x379709(0x168)]]||{};logger[_0x379709(0x18e)](_0x379709(0x1af)+_0x46194a+_0x379709(0x163)+_0x3145df+_0x379709(0x174)+JSON[_0x379709(0x153)](_0x325545)+_0x379709(0x192)+JSON['stringify'](_0x545e4a));if(!_0x545e4a[_0x3145df]){const _0x1ab405={};_0x1ab405[_0x379709(0x155)]=_0x2ebfaa[_0x379709(0x15a)],_0x1ab405[_0x379709(0x16b)]=[..._0x325545],_0x545e4a[_0x3145df]=_0x1ab405,logger['debug'](_0x379709(0x177)+_0x3145df+_0x379709(0x162)+JSON[_0x379709(0x153)](_0x325545));}else _0x545e4a[_0x3145df]['values']=[..._0x325545],logger[_0x379709(0x18e)]('[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key='+_0x3145df+_0x379709(0x1a5)+JSON[_0x379709(0x153)](_0x325545));const _0x294e3f={[TestFrameworkConstants[_0x379709(0x168)]]:_0x545e4a},_0x3f84e2={};_0x3f84e2[_0x46194a]=_0x294e3f,_0x34caba[_0x379709(0x1a6)](_0x3f84e2),logger[_0x379709(0x18e)](_0x379709(0x198)+_0x46194a+_0x379709(0x18b)+JSON['stringify'](_0x545e4a)),!this[_0x379709(0x154)][_0x46194a]&&(this[_0x379709(0x154)][_0x46194a]={}),this['testLevelTags'][_0x46194a][_0x3145df]=[..._0x325545];}else{const _0x113149=global[_0x379709(0x18d)]?.[_0x379709(0x18a)]?.[_0x379709(0x1a4)];if(!_0x113149){const _0x58b4e0=AutomationFramework[_0x379709(0x1b0)]();_0x46194a=AutomationFramework[_0x379709(0x17e)](_0x58b4e0,PlaywrightDriverModule[_0x379709(0x1b3)],'');}else _0x46194a=TestInfo['getTestIdentifierFromTestInfo'](_0x113149,_0x113149[_0x379709(0x1a2)]);const _0x4d0892=TestInfo[_0x379709(0x182)](_0x46194a),_0x538e7c=_0x4d0892[TestFrameworkConstants[_0x379709(0x168)]]||{};if(!_0x538e7c[_0x3145df]){const _0x1d7e80={};_0x1d7e80[_0x379709(0x155)]=_0x2ebfaa[_0x379709(0x15a)],_0x1d7e80['values']=[..._0x325545],_0x538e7c[_0x3145df]=_0x1d7e80;}else _0x538e7c[_0x3145df][_0x379709(0x16b)]=[..._0x325545];_0x4d0892[TestFrameworkConstants[_0x379709(0x168)]]=_0x538e7c,TestInfo['setTestDetails'](_0x46194a,_0x4d0892),!this['testLevelTags'][_0x46194a]&&(this[_0x379709(0x154)][_0x46194a]={}),this['testLevelTags'][_0x46194a][_0x3145df]=[..._0x325545];}}}static[a65_0x3d1309(0x19d)](){const _0xfa68f9=a65_0x3d1309,_0x166851={...this[_0xfa68f9(0x193)]};return _0x166851;}static['getTestLevelTags'](){const _0x3be31f={...this['testLevelTags']};return _0x3be31f;}static[a65_0x3d1309(0x1aa)](){const _0x2cd5fb=a65_0x3d1309;this[_0x2cd5fb(0x193)]={},this['testLevelTags']={};}}function a65_0xbee8(_0x392882,_0x58d98b){const _0x318558=a65_0x3185();return a65_0xbee8=function(_0xbee862,_0x43d1f4){_0xbee862=_0xbee862-0x153;let _0x5abc9d=_0x318558[_0xbee862];return _0x5abc9d;},a65_0xbee8(_0x392882,_0x58d98b);}module['exports']=CustomTagManager;
@@ -1 +1 @@
1
- function a66_0x11a2(){const _0x5130aa=['2IErnGe','push','2478933cUOUMh','getInstance','observers','../../helpers/classLogger.js','registerObserver','freeze','3962lpQXcC','12114760AvMPFD','1215072IGXqEf','2248bDroMr','1368755SPpPbi','3412710WGOtJA','545120ExeUat','NLZbj','4KCPwrZ'];a66_0x11a2=function(){return _0x5130aa;};return a66_0x11a2();}const a66_0xf92c08=a66_0x28f3;(function(_0x2ac4de,_0x5272e6){const _0x377264=a66_0x28f3,_0x14e547=_0x2ac4de();while(!![]){try{const _0x568184=-parseInt(_0x377264(0x1eb))/0x1+-parseInt(_0x377264(0x1ee))/0x2*(-parseInt(_0x377264(0x1f8))/0x3)+parseInt(_0x377264(0x1ed))/0x4*(parseInt(_0x377264(0x1fa))/0x5)+-parseInt(_0x377264(0x1fb))/0x6+parseInt(_0x377264(0x1f6))/0x7*(-parseInt(_0x377264(0x1f9))/0x8)+-parseInt(_0x377264(0x1f0))/0x9+parseInt(_0x377264(0x1f7))/0xa;if(_0x568184===_0x5272e6)break;else _0x14e547['push'](_0x14e547['shift']());}catch(_0x4c91f2){_0x14e547['push'](_0x14e547['shift']());}}}(a66_0x11a2,0x53767));const {createClassLogger}=require(a66_0xf92c08(0x1f3));class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static[a66_0xf92c08(0x1f1)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a66_0xf92c08(0x1f4)](_0x592510,_0x561119){const _0x5e1dc6=a66_0xf92c08;!this[_0x5e1dc6(0x1f2)][_0x592510]&&(this['observers'][_0x592510]=[]),this['observers'][_0x592510][_0x5e1dc6(0x1ef)](_0x561119);}async['notifyObserver'](_0x389ff0,_0x820fab){const _0x6b0733=a66_0xf92c08,_0xf4f086={'NLZbj':function(_0x25ba46,_0x3499e3){return _0x25ba46(_0x3499e3);}};if(this[_0x6b0733(0x1f2)][_0x389ff0]){for(const _0x16c6ec of this[_0x6b0733(0x1f2)][_0x389ff0]){await _0xf4f086[_0x6b0733(0x1ec)](_0x16c6ec,_0x820fab);}return;}}}const eventDispatcher=EventDispatcher[a66_0xf92c08(0x1f1)]();function a66_0x28f3(_0x1a6e54,_0x5c174b){const _0x11a2af=a66_0x11a2();return a66_0x28f3=function(_0x28f362,_0x5894d9){_0x28f362=_0x28f362-0x1eb;let _0x1c1ae8=_0x11a2af[_0x28f362];return _0x1c1ae8;},a66_0x28f3(_0x1a6e54,_0x5c174b);}Object[a66_0xf92c08(0x1f5)](eventDispatcher),module['exports']=eventDispatcher;
1
+ const a66_0xc02b94=a66_0x31a6;(function(_0x5aa08c,_0xc15127){const _0xbaaf2f=a66_0x31a6,_0x1674d5=_0x5aa08c();while(!![]){try{const _0x124b1d=parseInt(_0xbaaf2f(0xc9))/0x1+-parseInt(_0xbaaf2f(0xc1))/0x2*(-parseInt(_0xbaaf2f(0xc7))/0x3)+-parseInt(_0xbaaf2f(0xbe))/0x4*(-parseInt(_0xbaaf2f(0xc5))/0x5)+-parseInt(_0xbaaf2f(0xc0))/0x6*(-parseInt(_0xbaaf2f(0xb9))/0x7)+parseInt(_0xbaaf2f(0xba))/0x8*(parseInt(_0xbaaf2f(0xcb))/0x9)+parseInt(_0xbaaf2f(0xc8))/0xa*(parseInt(_0xbaaf2f(0xc6))/0xb)+parseInt(_0xbaaf2f(0xca))/0xc*(-parseInt(_0xbaaf2f(0xc4))/0xd);if(_0x124b1d===_0xc15127)break;else _0x1674d5['push'](_0x1674d5['shift']());}catch(_0x534b47){_0x1674d5['push'](_0x1674d5['shift']());}}}(a66_0x6b6e,0x8a9df));function a66_0x31a6(_0xecbe72,_0x10304c){const _0x6b6e0e=a66_0x6b6e();return a66_0x31a6=function(_0x31a64f,_0x16299c){_0x31a64f=_0x31a64f-0xb9;let _0x521d7f=_0x6b6e0e[_0x31a64f];return _0x521d7f;},a66_0x31a6(_0xecbe72,_0x10304c);}const {createClassLogger}=require(a66_0xc02b94(0xbc));class EventDispatcher{static #instance=null;constructor(){const _0x54c687=a66_0xc02b94;this[_0x54c687(0xbb)]={};}static[a66_0xc02b94(0xbd)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a66_0xc02b94(0xc3)](_0x3a2e36,_0x24cd83){const _0x1bc01b=a66_0xc02b94;!this['observers'][_0x3a2e36]&&(this[_0x1bc01b(0xbb)][_0x3a2e36]=[]),this[_0x1bc01b(0xbb)][_0x3a2e36][_0x1bc01b(0xbf)](_0x24cd83);}async[a66_0xc02b94(0xcc)](_0x45fee0,_0x44b119){const _0x2789ec=a66_0xc02b94,_0x2f8ff0={'wVolk':function(_0x4c0ea4,_0x29b66f){return _0x4c0ea4(_0x29b66f);}};if(this[_0x2789ec(0xbb)][_0x45fee0]){for(const _0x219ba9 of this['observers'][_0x45fee0]){await _0x2f8ff0[_0x2789ec(0xc2)](_0x219ba9,_0x44b119);}return;}}}function a66_0x6b6e(){const _0x2a2b1a=['55855pWdwEP','11iMviFr','3QyxgZC','10805830HjzzbE','845285PsYJuh','60JKdAsz','6111yNrCjX','notifyObserver','3293241FHqmYd','12360PPttVb','observers','../../helpers/classLogger.js','getInstance','108ejCEFh','push','6MxLFIW','2250874TygxHl','wVolk','registerObserver','11192129VQjlbf'];a66_0x6b6e=function(){return _0x2a2b1a;};return a66_0x6b6e();}const eventDispatcher=EventDispatcher[a66_0xc02b94(0xbd)]();Object['freeze'](eventDispatcher),module['exports']=eventDispatcher;
@@ -1 +1 @@
1
- const a67_0x261da2=a67_0xce16;(function(_0x67ba46,_0x139908){const _0x291538=a67_0xce16,_0x4bcffc=_0x67ba46();while(!![]){try{const _0xdaa610=-parseInt(_0x291538(0x178))/0x1*(parseInt(_0x291538(0x182))/0x2)+parseInt(_0x291538(0x175))/0x3+parseInt(_0x291538(0x186))/0x4*(parseInt(_0x291538(0x16b))/0x5)+-parseInt(_0x291538(0x165))/0x6+parseInt(_0x291538(0x16f))/0x7+-parseInt(_0x291538(0x174))/0x8*(parseInt(_0x291538(0x188))/0x9)+-parseInt(_0x291538(0x16c))/0xa*(-parseInt(_0x291538(0x16a))/0xb);if(_0xdaa610===_0x139908)break;else _0x4bcffc['push'](_0x4bcffc['shift']());}catch(_0x3bb053){_0x4bcffc['push'](_0x4bcffc['shift']());}}}(a67_0x5ca6,0x70756));const {createClassLogger}=require(a67_0x261da2(0x17b)),util=require(a67_0x261da2(0x17f)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a67_0x261da2(0x167)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a67_0x261da2(0x177));function a67_0x5ca6(){const _0x5b9aa5=['trackEvent:\x20automationFrameworkState=','AutomationFramework','16439bSJQsW','getHookRegistryKey','registerObserver','../../../helpers/classLogger.js','getAllData','getAutomationFrameworkVersion','setState','util','get','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','98IhlRnB','trackEvent','getId','\x20hookState=','368DrnOBZ','debug','36HYuEwE','setTrackedInstance','2490342gKLYWp','KEY_AUTOMATION_SESSIONS','../cliUtils.js','getAutomationFrameworkName','exports','22FQwjKT','38405CMrQHO','6620510eUnwYs','set','runHooks','106176qtuOrg','instances','automationFrameworkName','automation_sessions','automationFrameworkVersion','1374448VJGvML','967500AUQVkW'];a67_0x5ca6=function(){return _0x5b9aa5;};return a67_0x5ca6();}function a67_0xce16(_0x38c28d,_0x2afec5){const _0x5ca62e=a67_0x5ca6();return a67_0xce16=function(_0xce1601,_0x273ab4){_0xce1601=_0xce1601-0x165;let _0x46d6bd=_0x5ca62e[_0xce1601];return _0x46d6bd;},a67_0xce16(_0x38c28d,_0x2afec5);}class AutomationFramework{static [a67_0x261da2(0x170)]=new Map();static [a67_0x261da2(0x166)]=a67_0x261da2(0x172);static [a67_0x261da2(0x181)]='non_browserstack_automation_sessions';constructor(_0x67d5d3,_0x4a1968){const _0x459c23=a67_0x261da2;this[_0x459c23(0x171)]=_0x67d5d3,this[_0x459c23(0x173)]=_0x4a1968;}[a67_0x261da2(0x168)](){const _0x3d8131=a67_0x261da2;return this[_0x3d8131(0x171)];}[a67_0x261da2(0x17d)](){const _0x5f2079=a67_0x261da2;return this[_0x5f2079(0x173)];}async[a67_0x261da2(0x183)](_0x2ee10c,_0x27ea7f,_0x225d3a={}){const _0x59e9c2=a67_0x261da2;logger[_0x59e9c2(0x187)](_0x59e9c2(0x176)+_0x2ee10c+_0x59e9c2(0x185)+_0x27ea7f);}async[a67_0x261da2(0x16e)](_0x53a655,_0x1cbe0a,_0x3196d5,_0x3d5969={}){const _0x403331=a67_0x261da2,_0x1650be=CLIUtils[_0x403331(0x179)](_0x1cbe0a,_0x3196d5);_0x53a655&&_0x53a655[_0x403331(0x17e)](_0x1cbe0a),await eventDispatcher['notifyObserver'](_0x1650be,_0x3d5969);}static[a67_0x261da2(0x17a)](_0x21854f,_0x21f56d,_0x3ac5eb){const _0x19f11d=a67_0x261da2;eventDispatcher[_0x19f11d(0x17a)](CLIUtils[_0x19f11d(0x179)](_0x21854f,_0x21f56d),_0x3ac5eb);}static[a67_0x261da2(0x189)](_0x5d5a75,_0x53deb5){const _0x3e6dca=a67_0x261da2;AutomationFramework[_0x3e6dca(0x170)][_0x3e6dca(0x16d)](_0x5d5a75[_0x3e6dca(0x184)](),_0x53deb5);}static['getTrackedInstance'](){const _0x4bb8bb=a67_0x261da2,_0x5b1678=TrackedInstance['createContext'](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x4bb8bb(0x170)][_0x4bb8bb(0x180)](_0x5b1678['getId']());}static[a67_0x261da2(0x17e)](_0x463cd3,_0x5b6d59,_0x10c18c){const _0x35930b=a67_0x261da2;_0x463cd3[_0x35930b(0x17c)]()[_0x35930b(0x16d)](_0x5b6d59,_0x10c18c);}static['getState'](_0x1999fc,_0x18c8aa){const _0x2a18f4=a67_0x261da2;return _0x1999fc[_0x2a18f4(0x17c)]()['get'](_0x18c8aa);}}module[a67_0x261da2(0x169)]=AutomationFramework;
1
+ const a67_0x475c69=a67_0x4bfd;(function(_0x143414,_0x43865c){const _0x1bc88d=a67_0x4bfd,_0x45a86b=_0x143414();while(!![]){try{const _0x7394bd=-parseInt(_0x1bc88d(0x14b))/0x1+-parseInt(_0x1bc88d(0x149))/0x2+parseInt(_0x1bc88d(0x141))/0x3*(parseInt(_0x1bc88d(0x136))/0x4)+parseInt(_0x1bc88d(0x139))/0x5+-parseInt(_0x1bc88d(0x138))/0x6*(parseInt(_0x1bc88d(0x143))/0x7)+parseInt(_0x1bc88d(0x145))/0x8+parseInt(_0x1bc88d(0x146))/0x9;if(_0x7394bd===_0x43865c)break;else _0x45a86b['push'](_0x45a86b['shift']());}catch(_0x38744f){_0x45a86b['push'](_0x45a86b['shift']());}}}(a67_0x11ac,0x66803));const {createClassLogger}=require('../../../helpers/classLogger.js'),util=require(a67_0x475c69(0x13c)),eventDispatcher=require(a67_0x475c69(0x147)),CLIUtils=require(a67_0x475c69(0x137)),TrackedInstance=require(a67_0x475c69(0x150)),logger=createClassLogger(a67_0x475c69(0x133));class AutomationFramework{static [a67_0x475c69(0x142)]=new Map();static [a67_0x475c69(0x13d)]=a67_0x475c69(0x152);static [a67_0x475c69(0x134)]=a67_0x475c69(0x154);constructor(_0xdd00b6,_0x465131){const _0x29ec6d=a67_0x475c69;this[_0x29ec6d(0x13f)]=_0xdd00b6,this['automationFrameworkVersion']=_0x465131;}[a67_0x475c69(0x14d)](){return this['automationFrameworkName'];}['getAutomationFrameworkVersion'](){const _0x179263=a67_0x475c69;return this[_0x179263(0x153)];}async[a67_0x475c69(0x132)](_0x1954ff,_0x27a90b,_0x31042a={}){const _0x59353e=a67_0x475c69;logger[_0x59353e(0x14a)](_0x59353e(0x13e)+_0x1954ff+_0x59353e(0x151)+_0x27a90b);}async[a67_0x475c69(0x131)](_0x21da47,_0x21f2b1,_0x284fd9,_0x2917b0={}){const _0x184ae2=a67_0x475c69,_0x5f43f6=CLIUtils['getHookRegistryKey'](_0x21f2b1,_0x284fd9);_0x21da47&&_0x21da47['setState'](_0x21f2b1),await eventDispatcher[_0x184ae2(0x130)](_0x5f43f6,_0x2917b0);}static[a67_0x475c69(0x13b)](_0x3fefdf,_0x431bbd,_0x5a3ee8){const _0x992cc=a67_0x475c69;eventDispatcher['registerObserver'](CLIUtils[_0x992cc(0x140)](_0x3fefdf,_0x431bbd),_0x5a3ee8);}static[a67_0x475c69(0x135)](_0x248f91,_0x14bb9d){const _0x15af2d=a67_0x475c69;AutomationFramework[_0x15af2d(0x142)][_0x15af2d(0x148)](_0x248f91[_0x15af2d(0x12f)](),_0x14bb9d);}static['getTrackedInstance'](){const _0x4fbc89=a67_0x475c69,_0x38e18a=TrackedInstance[_0x4fbc89(0x144)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x4fbc89(0x142)][_0x4fbc89(0x13a)](_0x38e18a[_0x4fbc89(0x12f)]());}static['setState'](_0x2cea38,_0x524795,_0x3ce0db){const _0x579b39=a67_0x475c69;_0x2cea38[_0x579b39(0x14c)]()[_0x579b39(0x148)](_0x524795,_0x3ce0db);}static[a67_0x475c69(0x14f)](_0x105fd6,_0x59f773){const _0x48f36c=a67_0x475c69;return _0x105fd6['getAllData']()[_0x48f36c(0x13a)](_0x59f773);}}module[a67_0x475c69(0x14e)]=AutomationFramework;function a67_0x4bfd(_0x2c4f16,_0x53ec95){const _0x11ac74=a67_0x11ac();return a67_0x4bfd=function(_0x4bfd69,_0x46702d){_0x4bfd69=_0x4bfd69-0x12f;let _0x63e8a1=_0x11ac74[_0x4bfd69];return _0x63e8a1;},a67_0x4bfd(_0x2c4f16,_0x53ec95);}function a67_0x11ac(){const _0x57cb82=['createContext','1514560gNfnTu','6077340DunMgV','../eventDispatcher.js','set','759888YpAZHd','debug','424871pepLmI','getAllData','getAutomationFrameworkName','exports','getState','../instances/trackedInstance.js','\x20hookState=','automation_sessions','automationFrameworkVersion','non_browserstack_automation_sessions','getId','notifyObserver','runHooks','trackEvent','AutomationFramework','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','setTrackedInstance','7772VaULGQ','../cliUtils.js','94818pPSQAO','3040660YKnDNT','get','registerObserver','util','KEY_AUTOMATION_SESSIONS','trackEvent:\x20automationFrameworkState=','automationFrameworkName','getHookRegistryKey','471YFsrAR','instances','245ZboOmx'];a67_0x11ac=function(){return _0x57cb82;};return a67_0x11ac();}
@@ -1 +1 @@
1
- const a68_0x2a02c4=a68_0x368c;(function(_0x3c4fbc,_0x1a7ae5){const _0x2a1251=a68_0x368c,_0x2bf8eb=_0x3c4fbc();while(!![]){try{const _0x3a929c=parseInt(_0x2a1251(0x103))/0x1*(-parseInt(_0x2a1251(0xfd))/0x2)+parseInt(_0x2a1251(0x11e))/0x3+-parseInt(_0x2a1251(0x11d))/0x4*(parseInt(_0x2a1251(0x11c))/0x5)+-parseInt(_0x2a1251(0x10b))/0x6+parseInt(_0x2a1251(0x105))/0x7+parseInt(_0x2a1251(0x110))/0x8*(-parseInt(_0x2a1251(0x116))/0x9)+parseInt(_0x2a1251(0x119))/0xa;if(_0x3a929c===_0x1a7ae5)break;else _0x2bf8eb['push'](_0x2bf8eb['shift']());}catch(_0x4790a0){_0x2bf8eb['push'](_0x2bf8eb['shift']());}}}(a68_0x35fb,0x74b1e));const a68_0x136ed1={};function a68_0x368c(_0x5b49e1,_0x2e4f06){const _0x35fb9e=a68_0x35fb();return a68_0x368c=function(_0x368c27,_0x827dc3){_0x368c27=_0x368c27-0xfd;let _0x3148d1=_0x35fb9e[_0x368c27];return _0x3148d1;},a68_0x368c(_0x5b49e1,_0x2e4f06);}function a68_0x35fb(){const _0x35f216=['685372eGSLqK','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','w3cexecutescriptasync','COMMAND_GET','ended_at','KEY_PLATFORM_INDEX','1ADIYzh','KEY_FRAMEWORK_SESSION_ID','1316231YBAOCD','KEY_STARTED_AT','COMMAND_SCREENSHOT','capabilities','KEY_INPUT_CAPABILITIES','hub_url','5350158uoNoPJ','is_browserstack_hub','screenshot','started_at','KEY_ENDED_AT','772648BGocgN','newsession','KEY_IS_BROWSERSTACK_HUB','platform_index','quit','exports','81ugYgHe','COMMAND_QUIT','get','21014760XZeTaF','COMMAND_NEW_SESSION','BROWSERSTACK_PLATFORM_INDEX','470765MttGBi','4znMtCL','1158702GNFOme'];a68_0x35fb=function(){return _0x35f216;};return a68_0x35fb();}a68_0x136ed1['ENV_BROWSERSTACK_PLATFORM_INDEX']=a68_0x2a02c4(0x11b),a68_0x136ed1['KEY_HUB_URL']=a68_0x2a02c4(0x10a),a68_0x136ed1[a68_0x2a02c4(0x104)]='framework_session_id',a68_0x136ed1[a68_0x2a02c4(0x109)]='input_capabilities',a68_0x136ed1['KEY_CAPABILITIES']=a68_0x2a02c4(0x108),a68_0x136ed1[a68_0x2a02c4(0x112)]=a68_0x2a02c4(0x10c),a68_0x136ed1[a68_0x2a02c4(0x106)]=a68_0x2a02c4(0x10e),a68_0x136ed1[a68_0x2a02c4(0x10f)]=a68_0x2a02c4(0x101),a68_0x136ed1[a68_0x2a02c4(0x102)]=a68_0x2a02c4(0x113),a68_0x136ed1[a68_0x2a02c4(0x11a)]=a68_0x2a02c4(0x111),a68_0x136ed1[a68_0x2a02c4(0x100)]=a68_0x2a02c4(0x118),a68_0x136ed1[a68_0x2a02c4(0x107)]=a68_0x2a02c4(0x10d),a68_0x136ed1['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a68_0x136ed1[a68_0x2a02c4(0xfe)]=a68_0x2a02c4(0xff),a68_0x136ed1[a68_0x2a02c4(0x117)]=a68_0x2a02c4(0x114);const AutomationFrameworkConstants=a68_0x136ed1;module[a68_0x2a02c4(0x115)]=AutomationFrameworkConstants;
1
+ const a68_0xcd798d=a68_0x411b;(function(_0x55df7c,_0x43ef03){const _0x24ad90=a68_0x411b,_0x39568f=_0x55df7c();while(!![]){try{const _0x4f1f5e=parseInt(_0x24ad90(0x184))/0x1*(parseInt(_0x24ad90(0x18b))/0x2)+parseInt(_0x24ad90(0x189))/0x3+-parseInt(_0x24ad90(0x179))/0x4+-parseInt(_0x24ad90(0x18d))/0x5+-parseInt(_0x24ad90(0x17a))/0x6*(parseInt(_0x24ad90(0x173))/0x7)+-parseInt(_0x24ad90(0x17e))/0x8*(parseInt(_0x24ad90(0x17f))/0x9)+parseInt(_0x24ad90(0x185))/0xa;if(_0x4f1f5e===_0x43ef03)break;else _0x39568f['push'](_0x39568f['shift']());}catch(_0x309df4){_0x39568f['push'](_0x39568f['shift']());}}}(a68_0x38dd,0xa0429));function a68_0x38dd(){const _0x138215=['exports','w3cexecutescript','COMMAND_GET','3375678IMaYUG','get','10aAzkom','BROWSERSTACK_PLATFORM_INDEX','6406045OjuRPO','platform_index','KEY_PLATFORM_INDEX','framework_session_id','KEY_FRAMEWORK_SESSION_ID','48097uycRSy','COMMAND_W3C_EXECUTE_SCRIPT','capabilities','KEY_STARTED_AT','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_INPUT_CAPABILITIES','172740GjeRht','54OkDFVc','COMMAND_NEW_SESSION','KEY_IS_BROWSERSTACK_HUB','screenshot','1699064mZaEVn','27hXkXXB','KEY_CAPABILITIES','ENV_BROWSERSTACK_PLATFORM_INDEX','ended_at','started_at','58181zKIOuh','12636760PViLnH'];a68_0x38dd=function(){return _0x138215;};return a68_0x38dd();}function a68_0x411b(_0x449611,_0x1645c7){const _0x38ddf7=a68_0x38dd();return a68_0x411b=function(_0x411b82,_0x1a1ef6){_0x411b82=_0x411b82-0x172;let _0x2b206f=_0x38ddf7[_0x411b82];return _0x2b206f;},a68_0x411b(_0x449611,_0x1645c7);}const a68_0x1c54b6={};a68_0x1c54b6[a68_0xcd798d(0x181)]=a68_0xcd798d(0x18c),a68_0x1c54b6['KEY_HUB_URL']='hub_url',a68_0x1c54b6[a68_0xcd798d(0x172)]=a68_0xcd798d(0x190),a68_0x1c54b6[a68_0xcd798d(0x178)]='input_capabilities',a68_0x1c54b6[a68_0xcd798d(0x180)]=a68_0xcd798d(0x175),a68_0x1c54b6[a68_0xcd798d(0x17c)]='is_browserstack_hub',a68_0x1c54b6[a68_0xcd798d(0x176)]=a68_0xcd798d(0x183),a68_0x1c54b6['KEY_ENDED_AT']=a68_0xcd798d(0x182),a68_0x1c54b6[a68_0xcd798d(0x18f)]=a68_0xcd798d(0x18e),a68_0x1c54b6[a68_0xcd798d(0x17b)]='newsession',a68_0x1c54b6[a68_0xcd798d(0x188)]=a68_0xcd798d(0x18a),a68_0x1c54b6['COMMAND_SCREENSHOT']=a68_0xcd798d(0x17d),a68_0x1c54b6[a68_0xcd798d(0x174)]=a68_0xcd798d(0x187),a68_0x1c54b6[a68_0xcd798d(0x177)]='w3cexecutescriptasync',a68_0x1c54b6['COMMAND_QUIT']='quit';const AutomationFrameworkConstants=a68_0x1c54b6;module[a68_0xcd798d(0x186)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- const a69_0x544495=a69_0x1fb3;(function(_0x1d81fb,_0x2baa23){const _0x42487e=a69_0x1fb3,_0x1fa4d3=_0x1d81fb();while(!![]){try{const _0x2311b0=-parseInt(_0x42487e(0x218))/0x1+-parseInt(_0x42487e(0x230))/0x2*(-parseInt(_0x42487e(0x243))/0x3)+parseInt(_0x42487e(0x222))/0x4*(parseInt(_0x42487e(0x202))/0x5)+-parseInt(_0x42487e(0x226))/0x6*(-parseInt(_0x42487e(0x209))/0x7)+-parseInt(_0x42487e(0x20a))/0x8*(parseInt(_0x42487e(0x1f7))/0x9)+-parseInt(_0x42487e(0x23e))/0xa+parseInt(_0x42487e(0x224))/0xb;if(_0x2311b0===_0x2baa23)break;else _0x1fa4d3['push'](_0x1fa4d3['shift']());}catch(_0xc6d612){_0x1fa4d3['push'](_0x1fa4d3['shift']());}}}(a69_0xbc77,0x1f1fb));const a69_0x3a8ee4={};a69_0x3a8ee4['KEY_TEST_UUID']=a69_0x544495(0x1f5),a69_0x3a8ee4['KEY_TEST_ID']=a69_0x544495(0x219),a69_0x3a8ee4['KEY_TEST_NAME']=a69_0x544495(0x1ff),a69_0x3a8ee4[a69_0x544495(0x203)]='test_file_path',a69_0x3a8ee4[a69_0x544495(0x1fa)]=a69_0x544495(0x220),a69_0x3a8ee4[a69_0x544495(0x241)]=a69_0x544495(0x232),a69_0x3a8ee4['KEY_TEST_RESULT_AT']=a69_0x544495(0x207),a69_0x3a8ee4[a69_0x544495(0x238)]=a69_0x544495(0x23b),a69_0x3a8ee4[a69_0x544495(0x23a)]='test_ended_at',a69_0x3a8ee4[a69_0x544495(0x1f9)]=a69_0x544495(0x206),a69_0x3a8ee4[a69_0x544495(0x214)]=a69_0x544495(0x1f2),a69_0x3a8ee4[a69_0x544495(0x20b)]=a69_0x544495(0x221),a69_0x3a8ee4[a69_0x544495(0x208)]=a69_0x544495(0x1f6),a69_0x3a8ee4[a69_0x544495(0x21a)]=a69_0x544495(0x22a),a69_0x3a8ee4[a69_0x544495(0x21b)]=a69_0x544495(0x223),a69_0x3a8ee4[a69_0x544495(0x20e)]=a69_0x544495(0x212),a69_0x3a8ee4[a69_0x544495(0x204)]=a69_0x544495(0x1f3),a69_0x3a8ee4['KEY_PLATFORM_INDEX']='platform_index',a69_0x3a8ee4[a69_0x544495(0x1fe)]=a69_0x544495(0x229),a69_0x3a8ee4[a69_0x544495(0x21e)]=a69_0x544495(0x1f4),a69_0x3a8ee4[a69_0x544495(0x21d)]=a69_0x544495(0x248),a69_0x3a8ee4[a69_0x544495(0x1f8)]='test_logs',a69_0x3a8ee4[a69_0x544495(0x1f0)]=a69_0x544495(0x239),a69_0x3a8ee4[a69_0x544495(0x215)]=a69_0x544495(0x240),a69_0x3a8ee4['KEY_AUTOMATE_SESSION_NAME']=a69_0x544495(0x231),a69_0x3a8ee4[a69_0x544495(0x237)]=a69_0x544495(0x217),a69_0x3a8ee4['KEY_AUTOMATE_SESSION_REASON']=a69_0x544495(0x1ef),a69_0x3a8ee4[a69_0x544495(0x20c)]=a69_0x544495(0x228),a69_0x3a8ee4['KEY_EVENT_ENDED_AT']=a69_0x544495(0x20d),a69_0x3a8ee4[a69_0x544495(0x246)]='hook_id',a69_0x3a8ee4[a69_0x544495(0x21f)]=a69_0x544495(0x235),a69_0x3a8ee4[a69_0x544495(0x216)]=a69_0x544495(0x249),a69_0x3a8ee4[a69_0x544495(0x1f1)]='hook_failure_reason',a69_0x3a8ee4['KEY_HOOK_FAILURE']='hook_failure',a69_0x3a8ee4['KEY_HOOK_LOGS']=a69_0x544495(0x21c),a69_0x3a8ee4[a69_0x544495(0x247)]='hook_name',a69_0x3a8ee4[a69_0x544495(0x211)]=a69_0x544495(0x22f),a69_0x3a8ee4[a69_0x544495(0x245)]='pending',a69_0x3a8ee4[a69_0x544495(0x236)]='TEST_SCREENSHOT',a69_0x3a8ee4[a69_0x544495(0x244)]=a69_0x544495(0x1fc),a69_0x3a8ee4[a69_0x544495(0x23f)]='^(BEFORE_|AFTER_)',a69_0x3a8ee4[a69_0x544495(0x1fd)]=a69_0x544495(0x225),a69_0x3a8ee4[a69_0x544495(0x22d)]=a69_0x544495(0x23c),a69_0x3a8ee4[a69_0x544495(0x205)]=a69_0x544495(0x234),a69_0x3a8ee4[a69_0x544495(0x233)]=a69_0x544495(0x210),a69_0x3a8ee4[a69_0x544495(0x227)]=a69_0x544495(0x23d),a69_0x3a8ee4['KEY_CUSTOM_TAGS']=a69_0x544495(0x213),a69_0x3a8ee4[a69_0x544495(0x242)]=a69_0x544495(0x200),a69_0x3a8ee4[a69_0x544495(0x1fb)]='file_size',a69_0x3a8ee4[a69_0x544495(0x201)]=a69_0x544495(0x20f),a69_0x3a8ee4[a69_0x544495(0x22e)]='file_path',a69_0x3a8ee4[a69_0x544495(0x22c)]=a69_0x544495(0x22b);const TestFrameworkConstants=a69_0x3a8ee4;function a69_0xbc77(){const _0x11e000=['KEY_TEST_FAILURE_TYPE','KEY_HOOK_RESULT','test_tags','test_scopes','6284ROVUNM','test_code','1702426GYzDZt','test_hooks_started','42rIHLDs','KEY_LOGS','event_started_at','test_failure','test_framework_version','file_level','KEY_FILE_LEVEL','KEY_HOOKS_FINISHED','KEY_FILE_PATH','pending','8XAqsDE','automate_session_name','test_result','KEY_HOOK_LAST_FINISHED','test_hook_last_started','hook_result','KIND_SCREENSHOT','KEY_AUTOMATE_SESSION_STATUS','KEY_TEST_STARTED_AT','test_meta','KEY_TEST_ENDED_AT','test_started_at','test_hooks_finished','logs','284110sjOeMV','HOOK_REGEX','test_session_name','KEY_TEST_RESULT','KEY_TEST_ATTACHMENTS','137211KGGHjm','KIND_LOG','DEFAULT_HOOK_RESULT','KEY_HOOK_ID','KEY_HOOK_NAME','test_failure_reason','hook_failure_type','automate_session_reason','KEY_TEST_META','KEY_HOOK_FAILURE_REASON','test_scope','retry_of','test_failure_type','test_uuid','test_framework_name','18InWdEq','KEY_TEST_LOGS','KEY_TEST_LOCATION','KEY_TEST_TAGS','KEY_FILE_SIZE','TEST_LOG','KEY_HOOKS_STARTED','KEY_TEST_FAILURE','test_name','test_attachments','KEY_FILE_NAME','435Igufyq','KEY_TEST_FILE_PATH','KEY_TEST_RETRY_OF','KEY_HOOK_LAST_STARTED','test_location','test_result_at','KEY_TEST_FRAMEWORK_NAME','110859DYoRGi','1015656jsmpFY','KEY_TEST_SCOPES','KEY_EVENT_STARTED_AT','event_ended_at','KEY_TEST_RERUN_NAME','file_name','test_hook_last_finished','DEFAULT_TEST_RESULT','test_rerun_name','custom_metadata','KEY_TEST_SCOPE','KEY_SESSION_NAME','KEY_HOOK_FAILURE_TYPE','automate_session_status','175442GCBwgF','test_id','KEY_TEST_FRAMEWORK_VERSION','KEY_TEST_CODE','hook_logs','KEY_TEST_FAILURE_REASON'];a69_0xbc77=function(){return _0x11e000;};return a69_0xbc77();}function a69_0x1fb3(_0x26e220,_0x25abd3){const _0xbc7789=a69_0xbc77();return a69_0x1fb3=function(_0x1fb397,_0x1b088b){_0x1fb397=_0x1fb397-0x1ef;let _0x1c2bb4=_0xbc7789[_0x1fb397];return _0x1c2bb4;},a69_0x1fb3(_0x26e220,_0x25abd3);}module['exports']=TestFrameworkConstants;
1
+ const a69_0x59ef98=a69_0x42ae;(function(_0x5bc570,_0x213dab){const _0x22b9bd=a69_0x42ae,_0x133d3e=_0x5bc570();while(!![]){try{const _0x71f696=-parseInt(_0x22b9bd(0x19e))/0x1*(parseInt(_0x22b9bd(0x17f))/0x2)+parseInt(_0x22b9bd(0x189))/0x3*(-parseInt(_0x22b9bd(0x197))/0x4)+-parseInt(_0x22b9bd(0x163))/0x5*(-parseInt(_0x22b9bd(0x164))/0x6)+parseInt(_0x22b9bd(0x192))/0x7+-parseInt(_0x22b9bd(0x160))/0x8+-parseInt(_0x22b9bd(0x191))/0x9*(parseInt(_0x22b9bd(0x18b))/0xa)+parseInt(_0x22b9bd(0x190))/0xb;if(_0x71f696===_0x213dab)break;else _0x133d3e['push'](_0x133d3e['shift']());}catch(_0x1aab12){_0x133d3e['push'](_0x133d3e['shift']());}}}(a69_0x37c4,0x6e3c8));const a69_0x36bbe7={};a69_0x36bbe7['KEY_TEST_UUID']=a69_0x59ef98(0x19b),a69_0x36bbe7[a69_0x59ef98(0x173)]='test_id',a69_0x36bbe7['KEY_TEST_NAME']=a69_0x59ef98(0x176),a69_0x36bbe7[a69_0x59ef98(0x194)]=a69_0x59ef98(0x18f),a69_0x36bbe7['KEY_TEST_TAGS']=a69_0x59ef98(0x183),a69_0x36bbe7[a69_0x59ef98(0x16c)]=a69_0x59ef98(0x166),a69_0x36bbe7[a69_0x59ef98(0x182)]='test_result_at',a69_0x36bbe7[a69_0x59ef98(0x198)]=a69_0x59ef98(0x16d),a69_0x36bbe7[a69_0x59ef98(0x17a)]=a69_0x59ef98(0x1a0),a69_0x36bbe7[a69_0x59ef98(0x165)]=a69_0x59ef98(0x196),a69_0x36bbe7[a69_0x59ef98(0x161)]=a69_0x59ef98(0x154),a69_0x36bbe7['KEY_TEST_SCOPES']=a69_0x59ef98(0x185),a69_0x36bbe7[a69_0x59ef98(0x170)]=a69_0x59ef98(0x171),a69_0x36bbe7[a69_0x59ef98(0x175)]=a69_0x59ef98(0x19d),a69_0x36bbe7['KEY_TEST_CODE']=a69_0x59ef98(0x18a),a69_0x36bbe7[a69_0x59ef98(0x168)]=a69_0x59ef98(0x186),a69_0x36bbe7['KEY_TEST_RETRY_OF']='retry_of',a69_0x36bbe7['KEY_PLATFORM_INDEX']=a69_0x59ef98(0x184),a69_0x36bbe7[a69_0x59ef98(0x16b)]='test_failure',a69_0x36bbe7[a69_0x59ef98(0x167)]=a69_0x59ef98(0x181),a69_0x36bbe7[a69_0x59ef98(0x178)]=a69_0x59ef98(0x19a),a69_0x36bbe7[a69_0x59ef98(0x17d)]=a69_0x59ef98(0x153),a69_0x36bbe7[a69_0x59ef98(0x15e)]='test_meta',a69_0x36bbe7['KEY_SESSION_NAME']=a69_0x59ef98(0x17b),a69_0x36bbe7[a69_0x59ef98(0x193)]=a69_0x59ef98(0x16e),a69_0x36bbe7[a69_0x59ef98(0x157)]=a69_0x59ef98(0x156),a69_0x36bbe7['KEY_AUTOMATE_SESSION_REASON']='automate_session_reason',a69_0x36bbe7['KEY_EVENT_STARTED_AT']=a69_0x59ef98(0x152),a69_0x36bbe7[a69_0x59ef98(0x16f)]='event_ended_at',a69_0x36bbe7[a69_0x59ef98(0x155)]=a69_0x59ef98(0x177),a69_0x36bbe7[a69_0x59ef98(0x1a3)]='hook_result',a69_0x36bbe7['KEY_HOOK_FAILURE_TYPE']='hook_failure_type',a69_0x36bbe7[a69_0x59ef98(0x162)]=a69_0x59ef98(0x199),a69_0x36bbe7['KEY_HOOK_FAILURE']=a69_0x59ef98(0x195),a69_0x36bbe7[a69_0x59ef98(0x18e)]='hook_logs',a69_0x36bbe7['KEY_HOOK_NAME']=a69_0x59ef98(0x158),a69_0x36bbe7[a69_0x59ef98(0x188)]=a69_0x59ef98(0x15a),a69_0x36bbe7[a69_0x59ef98(0x1a2)]='pending',a69_0x36bbe7[a69_0x59ef98(0x17c)]=a69_0x59ef98(0x172),a69_0x36bbe7[a69_0x59ef98(0x17e)]=a69_0x59ef98(0x15f),a69_0x36bbe7[a69_0x59ef98(0x174)]=a69_0x59ef98(0x15c),a69_0x36bbe7[a69_0x59ef98(0x15d)]=a69_0x59ef98(0x16a),a69_0x36bbe7[a69_0x59ef98(0x1a1)]='test_hooks_finished',a69_0x36bbe7['KEY_HOOK_LAST_STARTED']=a69_0x59ef98(0x169),a69_0x36bbe7['KEY_HOOK_LAST_FINISHED']=a69_0x59ef98(0x180),a69_0x36bbe7[a69_0x59ef98(0x15b)]='logs',a69_0x36bbe7[a69_0x59ef98(0x18c)]='custom_metadata',a69_0x36bbe7['KEY_TEST_ATTACHMENTS']=a69_0x59ef98(0x19c),a69_0x36bbe7['KEY_FILE_SIZE']=a69_0x59ef98(0x19f),a69_0x36bbe7['KEY_FILE_NAME']=a69_0x59ef98(0x187),a69_0x36bbe7['KEY_FILE_PATH']=a69_0x59ef98(0x159),a69_0x36bbe7['KEY_FILE_LEVEL']=a69_0x59ef98(0x179);const TestFrameworkConstants=a69_0x36bbe7;function a69_0x42ae(_0x18f08a,_0x2146b9){const _0x37c46e=a69_0x37c4();return a69_0x42ae=function(_0x42ae81,_0x3359cd){_0x42ae81=_0x42ae81-0x152;let _0x4be689=_0x37c46e[_0x42ae81];return _0x4be689;},a69_0x42ae(_0x18f08a,_0x2146b9);}module[a69_0x59ef98(0x18d)]=TestFrameworkConstants;function a69_0x37c4(){const _0x2495c8=['test_logs','test_scope','KEY_HOOK_ID','automate_session_status','KEY_AUTOMATE_SESSION_STATUS','hook_name','file_path','pending','KEY_LOGS','^(BEFORE_|AFTER_)','KEY_HOOKS_STARTED','KEY_TEST_META','TEST_LOG','5451056gRAaEH','KEY_TEST_SCOPE','KEY_HOOK_FAILURE_REASON','478105gjJVQD','42NgoiDl','KEY_TEST_LOCATION','test_result','KEY_TEST_FAILURE_TYPE','KEY_TEST_RERUN_NAME','test_hook_last_started','test_hooks_started','KEY_TEST_FAILURE','KEY_TEST_RESULT','test_started_at','automate_session_name','KEY_EVENT_ENDED_AT','KEY_TEST_FRAMEWORK_NAME','test_framework_name','TEST_SCREENSHOT','KEY_TEST_ID','HOOK_REGEX','KEY_TEST_FRAMEWORK_VERSION','test_name','hook_id','KEY_TEST_FAILURE_REASON','file_level','KEY_TEST_ENDED_AT','test_session_name','KIND_SCREENSHOT','KEY_TEST_LOGS','KIND_LOG','834084ZMpMHe','test_hook_last_finished','test_failure_type','KEY_TEST_RESULT_AT','test_tags','platform_index','test_scopes','test_rerun_name','file_name','DEFAULT_TEST_RESULT','3DbAeAs','test_code','10kObEuH','KEY_CUSTOM_TAGS','exports','KEY_HOOK_LOGS','test_file_path','10377246VAJoLq','5448591kVAbKQ','6062259ynInQK','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_FILE_PATH','hook_failure','test_location','1293676dtpPmO','KEY_TEST_STARTED_AT','hook_failure_reason','test_failure_reason','test_uuid','test_attachments','test_framework_version','1xuIdNS','file_size','test_ended_at','KEY_HOOKS_FINISHED','DEFAULT_HOOK_RESULT','KEY_HOOK_RESULT','event_started_at'];a69_0x37c4=function(){return _0x2495c8;};return a69_0x37c4();}
@@ -1 +1 @@
1
- function a70_0x4250(_0x16c87,_0x461a22){const _0x201b86=a70_0x201b();return a70_0x4250=function(_0x425022,_0x33f83b){_0x425022=_0x425022-0xf8;let _0x530fa1=_0x201b86[_0x425022];return _0x530fa1;},a70_0x4250(_0x16c87,_0x461a22);}const a70_0x3a41cd=a70_0x4250;(function(_0xb59df9,_0x1d6daf){const _0x38efbd=a70_0x4250,_0xe357cd=_0xb59df9();while(!![]){try{const _0x1eb686=parseInt(_0x38efbd(0x170))/0x1*(parseInt(_0x38efbd(0x1bf))/0x2)+parseInt(_0x38efbd(0x11e))/0x3+-parseInt(_0x38efbd(0x187))/0x4*(parseInt(_0x38efbd(0x199))/0x5)+parseInt(_0x38efbd(0x138))/0x6*(parseInt(_0x38efbd(0x179))/0x7)+-parseInt(_0x38efbd(0x107))/0x8+-parseInt(_0x38efbd(0x1c3))/0x9*(-parseInt(_0x38efbd(0x10c))/0xa)+-parseInt(_0x38efbd(0x144))/0xb;if(_0x1eb686===_0x1d6daf)break;else _0xe357cd['push'](_0xe357cd['shift']());}catch(_0x56120d){_0xe357cd['push'](_0xe357cd['shift']());}}}(a70_0x201b,0xc25b1));const TestFramework=require('./testFramework'),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a70_0x3a41cd(0x1a9)),{createClassLogger}=require(a70_0x3a41cd(0x1ad)),TestFrameworkInstance=require(a70_0x3a41cd(0x155)),CLIUtils=require(a70_0x3a41cd(0x110)),TrackedInstance=require(a70_0x3a41cd(0xf9)),TestFrameworkConstants=require(a70_0x3a41cd(0x18e)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a70_0x3a41cd(0x10b)),{v4:uuidv4}=require(a70_0x3a41cd(0x112)),util=require('util'),TestInfo=require(a70_0x3a41cd(0x10d)),GrpcClient=require(a70_0x3a41cd(0x1a0));class CucumberTestFramework extends TestFramework{constructor(_0x39bc7a,_0x558028,_0x38c47c){super(_0x39bc7a,_0x558028,_0x38c47c);}async[a70_0x3a41cd(0x19f)](_0x1480b6,_0x2140f1,_0x4605b8={}){const _0x49af78=a70_0x3a41cd,_0x3e40ec={};_0x3e40ec[_0x49af78(0x125)]=_0x49af78(0x18b),_0x3e40ec[_0x49af78(0x121)]=function(_0x149fc4,_0x227168){return _0x149fc4===_0x227168;},_0x3e40ec[_0x49af78(0x188)]=function(_0xff78b6,_0x504fb6){return _0xff78b6===_0x504fb6;},_0x3e40ec[_0x49af78(0x12c)]=_0x49af78(0x1c1);const _0x3878ed=_0x3e40ec;await super[_0x49af78(0x19f)](_0x1480b6,_0x2140f1,_0x4605b8);const _0x5d25d7=this['resolveInstance'](_0x1480b6,_0x2140f1,_0x4605b8);if(!_0x5d25d7){logger[_0x49af78(0x140)](_0x3878ed[_0x49af78(0x125)]);return;}try{let _0x3bda1d,_0x8fa2d5;switch(_0x1480b6){case TestFrameworkState[_0x49af78(0x17e)]:_0x3bda1d=_0x4605b8[_0x49af78(0x14c)],_0x8fa2d5=TestInfo[_0x49af78(0x1b0)](_0x3bda1d['id']);if(_0x3878ed[_0x49af78(0x121)](_0x2140f1,HookState[_0x49af78(0x19b)])){logger[_0x49af78(0x140)](_0x49af78(0x18d)+_0x3bda1d['id']);const _0x2a7999={};_0x2a7999['testUUID']=_0x8fa2d5,_0x2a7999[_0x49af78(0x18f)]=_0x3bda1d,_0x5d25d7[_0x49af78(0x1b4)](this['parseCucumberTest'](_0x2a7999)),logger[_0x49af78(0x140)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x3bda1d['id']),await this[_0x49af78(0x17a)](_0x5d25d7,_0x3bda1d['id']);}else{if(_0x3878ed[_0x49af78(0x121)](_0x2140f1,HookState['POST'])){const _0x5c8fd9={};_0x5c8fd9[_0x49af78(0x164)]=_0x8fa2d5,_0x5c8fd9[_0x49af78(0x18f)]=_0x3bda1d,_0x5d25d7[_0x49af78(0x1b4)](this[_0x49af78(0x143)](_0x5c8fd9)),await this[_0x49af78(0x17a)](_0x5d25d7,_0x3bda1d['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x3878ed[_0x49af78(0x188)](_0x2140f1,HookState['POST'])&&await this['sendLogCreatedEvent'](_0x5d25d7,_0x1480b6,_0x4605b8);break;default:if(CLIUtils[_0x49af78(0x124)](_0x1480b6[_0x49af78(0x1c2)]()[_0x49af78(0x1c0)]('.')[0x1])){const _0x58be01=await this[_0x49af78(0x11f)](_0x5d25d7,_0x1480b6,_0x2140f1,_0x4605b8);_0x5d25d7[_0x49af78(0x1b4)](_0x58be01);}else logger['debug'](_0x49af78(0x177)+_0x1480b6+_0x49af78(0x178)+_0x2140f1);break;}}catch(_0x3300c6){logger[_0x49af78(0x1a4)](util['format'](_0x3878ed[_0x49af78(0x12c)],_0x1480b6,_0x2140f1,_0x4605b8[_0x49af78(0x147)],_0x3300c6));}_0x4605b8['instance']=_0x5d25d7,await this[_0x49af78(0x1b9)](_0x5d25d7,_0x1480b6,_0x2140f1,_0x4605b8);}[a70_0x3a41cd(0x16d)](_0x1c0749,_0x1513ae,_0x5db46c={}){const _0x33ee4f=a70_0x3a41cd,_0x255c0a={};_0x255c0a[_0x33ee4f(0x153)]=function(_0x1022e2,_0x4a7763){return _0x1022e2===_0x4a7763;},_0x255c0a['EquLI']=function(_0x48e606,_0x5a1fe9){return _0x48e606===_0x5a1fe9;};const _0x3e29bf=_0x255c0a;let _0x357429=null;return(_0x3e29bf['ethMw'](_0x1c0749,TestFrameworkState[_0x33ee4f(0x193)])||_0x3e29bf['EquLI'](_0x1c0749,TestFrameworkState[_0x33ee4f(0x1a6)]))&&this[_0x33ee4f(0x182)](_0x1c0749,_0x5db46c),_0x357429=TestFramework['getTrackedInstance'](),_0x357429;}[a70_0x3a41cd(0x182)](_0x234701,_0x230b77){const _0x446f2a=a70_0x3a41cd,_0x2cd111=CLIUtils[_0x446f2a(0x13f)](),_0x83e1c9=TrackedInstance['createContext'](_0x2cd111);let _0x38a39b=null;logger[_0x446f2a(0x140)](_0x446f2a(0x134)+_0x2cd111+',\x20state='+_0x234701),_0x38a39b=new TestFrameworkInstance(_0x83e1c9,this[_0x446f2a(0x133)](),this[_0x446f2a(0x1a5)](),_0x234701,HookState[_0x446f2a(0x1a6)]),TestFramework[_0x446f2a(0x1b6)](_0x83e1c9,_0x38a39b),logger['debug'](_0x446f2a(0x171)+_0x83e1c9[_0x446f2a(0xfd)]()+_0x446f2a(0x142)+_0x2cd111);}[a70_0x3a41cd(0x156)](_0x385268){const _0xc4be48=a70_0x3a41cd,_0xffb7f={};_0xffb7f['cTfPi']=_0xc4be48(0x148);const _0x373d55=_0xffb7f,{testUUID:_0xf1bda5,testData:_0x68356a}=_0x385268;if(!_0x68356a||!_0x68356a[_0xc4be48(0x112)])return logger[_0xc4be48(0x140)](_0x373d55[_0xc4be48(0x1c5)]),{};const _0x38df1d=_0xf1bda5,_0x3fb0d4=_0x68356a[_0xc4be48(0x112)],_0x39a64f=this[_0xc4be48(0x133)]()[0x0],_0x3ec6c8=this[_0xc4be48(0x1a5)](),_0xe9097d={[TestFrameworkConstants[_0xc4be48(0x159)]]:_0x39a64f,[TestFrameworkConstants[_0xc4be48(0x173)]]:_0x3ec6c8[_0x39a64f],[TestFrameworkConstants[_0xc4be48(0x15b)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0xc4be48(0x16c)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x38df1d,[TestFrameworkConstants[_0xc4be48(0x152)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x68356a['name']||'',[TestFrameworkConstants[_0xc4be48(0x1ab)]]:_0x68356a[_0xc4be48(0x127)]||'',[TestFrameworkConstants[_0xc4be48(0x198)]]:_0x3fb0d4,[TestFrameworkConstants[_0xc4be48(0x15f)]]:_0x68356a[_0xc4be48(0x137)]||'',[TestFrameworkConstants[_0xc4be48(0x1bd)]]:_0x68356a['location']||'',[TestFrameworkConstants[_0xc4be48(0x126)]]:_0x68356a[_0xc4be48(0x19e)]?.['code']||null,[TestFrameworkConstants[_0xc4be48(0x195)]]:_0x68356a[_0xc4be48(0x18c)]||[],[TestFrameworkConstants[_0xc4be48(0x158)]]:_0x68356a[_0xc4be48(0x186)]||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x68356a[_0xc4be48(0x192)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x68356a[_0xc4be48(0x192)]||[],[TestFrameworkConstants[_0xc4be48(0x1b1)]]:_0x68356a[_0xc4be48(0x13b)]?.[_0xc4be48(0x105)]||_0x68356a[_0xc4be48(0x137)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x68356a['meta']||{}};TestInfo[_0xc4be48(0x189)](_0x3fb0d4,_0xe9097d),logger[_0xc4be48(0x140)]('Parsed\x20cucumber\x20test:\x20'+_0x68356a[_0xc4be48(0x137)]+_0xc4be48(0x17d)+_0x38df1d);const _0x9d6332={};return _0x9d6332[_0x3fb0d4]=_0xe9097d,_0x9d6332;}[a70_0x3a41cd(0x143)](_0x427b17){const _0x5c755c=a70_0x3a41cd,_0x365487={'hiYbM':_0x5c755c(0x19c),'FznqY':_0x5c755c(0x118),'zBbYZ':function(_0x3d7414,_0x3892f1){return _0x3d7414===_0x3892f1;},'PALMW':_0x5c755c(0x16e),'VTWpI':_0x5c755c(0x14f),'SCdyM':function(_0x5e5141,_0x24d28a,_0x4ce3bf){return _0x5e5141(_0x24d28a,_0x4ce3bf);},'tErTv':function(_0x123213,_0x289d8b){return _0x123213>_0x289d8b;},'fHthY':function(_0x28cc75,_0x6e2220){return _0x28cc75>_0x6e2220;}},{testUUID:_0x5eb8e5,testData:_0x345992}=_0x427b17;if(!_0x345992||!_0x345992[_0x5c755c(0x112)])return logger[_0x5c755c(0x140)](_0x365487[_0x5c755c(0x160)]),{};const _0x598878=this[_0x5c755c(0x16d)](TestFrameworkState['TEST'],HookState['POST']),_0x5da86d=_0x345992['uuid'],_0x28f667=TestInfo[_0x5c755c(0x161)](_0x5da86d)||{},_0x5d567c=_0x28f667?_0x28f667[TestFrameworkConstants[_0x5c755c(0x1bc)]]||{}:{},_0x27ab5e={..._0x28f667,[TestFrameworkConstants[_0x5c755c(0x152)]]:_0x345992[_0x5c755c(0x12d)]||_0x365487[_0x5c755c(0x15d)],[TestFrameworkConstants[_0x5c755c(0xfc)]]:_0x345992[_0x5c755c(0x114)]||new Date()[_0x5c755c(0x185)](),[TestFrameworkConstants[_0x5c755c(0x16a)]]:new Date()['toISOString'](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x5d567c,[TestFrameworkConstants[_0x5c755c(0x106)]]:[],[TestFrameworkConstants[_0x5c755c(0x19a)]]:_0x345992[_0x5c755c(0x17f)]||{}};_0x365487[_0x5c755c(0x120)](_0x345992[_0x5c755c(0x12d)],_0x365487[_0x5c755c(0x174)])&&_0x345992[_0x5c755c(0x122)]&&(_0x27ab5e[TestFrameworkConstants[_0x5c755c(0x154)]]=_0x345992[_0x5c755c(0x183)]||_0x365487[_0x5c755c(0x18a)],_0x27ab5e[TestFrameworkConstants[_0x5c755c(0x172)]]=_0x345992[_0x5c755c(0x15e)]||'',_0x27ab5e[TestFrameworkConstants[_0x5c755c(0x1b3)]]=_0x345992['failure']);const _0xf154e3=TestInfo[_0x5c755c(0x161)](_0x5da86d)[TestFrameworkConstants[_0x5c755c(0x1b7)]]||{},_0x2cde88=_0x365487['SCdyM'](getManualUploadLogs,_0xf154e3,_0x598878[_0x5c755c(0x132)]()[_0x5c755c(0x13e)](_0x5da86d)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x365487[_0x5c755c(0x191)](_0x2cde88['length'],0x0)){const _0x3cc350=_0x27ab5e[TestFrameworkConstants['KEY_LOGS']]||[];_0x27ab5e[TestFrameworkConstants[_0x5c755c(0x106)]]=[..._0x3cc350,..._0x2cde88];}_0x345992[_0x5c755c(0x141)]&&_0x365487[_0x5c755c(0x11c)](_0x345992[_0x5c755c(0x141)]['length'],0x0)&&(_0x27ab5e[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x345992[_0x5c755c(0x141)]);TestInfo['setTestDetails'](_0x5da86d,_0x27ab5e),logger[_0x5c755c(0x140)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x345992['name']+_0x5c755c(0x115)+_0x345992['result']);const _0x551717={};return _0x551717[_0x5da86d]=_0x27ab5e,_0x551717;}async['trackHookEvent'](_0x40dd17,_0x4cec8b,_0x19f1e2,_0x2edcf4){const _0x3716c1=a70_0x3a41cd,_0x170825={'AApuk':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','RFaoH':function(_0x373a25){return _0x373a25();},'apXGB':function(_0xb5ae96,_0x1cccaf){return _0xb5ae96 in _0x1cccaf;},'iEDsJ':function(_0x1c82fd,_0x28ea7f){return _0x1c82fd===_0x28ea7f;},'OqWoP':function(_0x37c638,_0x377bed){return _0x37c638>_0x377bed;},'ppjac':function(_0x1c85a8,_0x57a3e7){return _0x1c85a8===_0x57a3e7;},'OrzOJ':_0x3716c1(0x16e),'OIUVz':_0x3716c1(0x14f),'VjtBz':_0x3716c1(0x19d),'UhJvz':function(_0x43f027,_0x57fbf6){return _0x43f027!==_0x57fbf6;}},{hookData:_0x1bcaa3}=_0x2edcf4;if(!_0x1bcaa3)return logger[_0x3716c1(0x140)](_0x170825['AApuk']),{};const _0x54684f=_0x1bcaa3[_0x3716c1(0x112)]||_0x170825[_0x3716c1(0x150)](uuidv4),_0x5e004b=_0x1bcaa3[_0x3716c1(0xff)],_0x40dd83=_0x4cec8b[_0x3716c1(0x1c2)]()['split']('.')[0x1],_0xe121d1=TestInfo[_0x3716c1(0x161)](_0x5e004b)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x565a61=_0x40dd17[_0x3716c1(0x132)]()[_0x3716c1(0x13e)](_0x5e004b);if(!_0x565a61)return logger[_0x3716c1(0x140)](_0x3716c1(0x16b)+_0x5e004b+',\x20storing\x20as\x20pending\x20hook'),this[_0x3716c1(0x100)](_0x40dd17,_0x5e004b,_0x4cec8b,_0x19f1e2,_0x2edcf4),{};let _0x334d8a=_0x565a61[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x334d8a&&(_0x334d8a={});!_0x170825['apXGB'](_0x40dd83,_0x334d8a)&&(_0x334d8a[_0x40dd83]=[]);let _0x17d8d1=_0x565a61[TestFrameworkConstants[_0x3716c1(0x1bb)]];!_0x17d8d1&&(_0x17d8d1={});!_0x170825[_0x3716c1(0x136)](_0x40dd83,_0x17d8d1)&&(_0x17d8d1[_0x40dd83]=[]);const _0x295205={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x334d8a,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x17d8d1},_0x1a02ff={};_0x1a02ff[_0x5e004b]=_0x295205;const _0x38d263=_0x1a02ff;if(_0x170825[_0x3716c1(0x1b5)](_0x19f1e2,HookState[_0x3716c1(0x19b)])){const _0x5960b5={[TestFrameworkConstants[_0x3716c1(0x1a8)]]:_0x54684f,[TestFrameworkConstants[_0x3716c1(0x1aa)]]:TestFrameworkConstants[_0x3716c1(0x1ae)],[TestFrameworkConstants[_0x3716c1(0x197)]]:_0x1bcaa3['started_at'],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x1bcaa3[_0x3716c1(0x17c)],[TestFrameworkConstants[_0x3716c1(0x1bc)]]:_0xe121d1};_0x5960b5[_0x3716c1(0x176)]=_0x40dd83;const _0x34eed0=_0x5960b5;_0x334d8a[_0x40dd83][_0x3716c1(0x1a7)](_0x34eed0),_0x38d263[_0x5e004b][TestFrameworkConstants[_0x3716c1(0x1a3)]]=_0x40dd83,logger['debug'](_0x3716c1(0x14a)+_0x40dd83+_0x3716c1(0x12a)+_0x34eed0+'\x20\x20and\x20args\x20=\x20'+_0x2edcf4);}else{if(_0x170825['iEDsJ'](_0x19f1e2,HookState[_0x3716c1(0x116)])){const _0x2b3143=_0x1bcaa3[_0x3716c1(0x12d)],_0x151186=_0x334d8a[_0x40dd83]||[];logger['debug'](_0x3716c1(0x1c6)+_0x151186+'\x20and\x20args\x20=\x20'+_0x2edcf4);if(_0x170825[_0x3716c1(0x196)](_0x151186[_0x3716c1(0x147)],0x0)){const _0x5d1328=_0x151186[_0x3716c1(0x102)]();_0x170825[_0x3716c1(0xfa)](_0x1bcaa3[_0x3716c1(0x12d)],_0x170825['OrzOJ'])&&_0x1bcaa3[_0x3716c1(0x17b)]?(_0x5d1328[TestFrameworkConstants[_0x3716c1(0x157)]]=_0x1bcaa3[_0x3716c1(0x183)]||_0x170825['OIUVz'],_0x5d1328[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x1bcaa3[_0x3716c1(0x15e)]||'',_0x5d1328[TestFrameworkConstants[_0x3716c1(0x180)]]=_0x1bcaa3['failure_data']):_0x5d1328[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x170825[_0x3716c1(0x13d)];_0x170825[_0x3716c1(0x10a)](_0x2b3143,TestFrameworkConstants[_0x3716c1(0x1ae)])&&(_0x5d1328[TestFrameworkConstants[_0x3716c1(0x1aa)]]=_0x2b3143);_0x5d1328[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x1bcaa3['finished_at']||new Date()['toISOString'](),_0x5d1328[TestFrameworkConstants[_0x3716c1(0x1bc)]]=_0xe121d1;const _0x554e95=_0x5d1328[TestFrameworkConstants[_0x3716c1(0x1a8)]];!_0x17d8d1[_0x40dd83]&&(_0x17d8d1[_0x40dd83]=[]),_0x17d8d1[_0x40dd83][_0x3716c1(0x1a7)](_0x5d1328),_0x38d263[_0x5e004b][TestFrameworkConstants[_0x3716c1(0x1ac)]]=_0x40dd83;}}}return logger[_0x3716c1(0x140)](_0x3716c1(0x1b2)+_0x1bcaa3[_0x3716c1(0x17c)]+_0x3716c1(0x109)+_0x54684f+_0x3716c1(0x103)+_0x5e004b),_0x38d263;}['createTestFrameworkEventPayload'](_0x1505a8){const _0x2398d7=a70_0x3a41cd,_0x634bbb={};_0x634bbb['GmxQU']=_0x2398d7(0x11d);const _0x20191a=_0x634bbb;try{const _0x5514b9=_0x1505a8[_0x2398d7(0x14c)]?_0x1505a8[_0x2398d7(0x14c)]['id']:_0x1505a8[_0x2398d7(0x10e)][_0x2398d7(0xff)],_0x194c46=_0x1505a8[_0x2398d7(0x163)],_0x243223=_0x194c46[_0x2398d7(0x13c)](),_0x5a5b47=_0x194c46[_0x2398d7(0x132)]()[_0x2398d7(0x13e)](_0x5514b9);if(!_0x5a5b47)return logger[_0x2398d7(0x140)](_0x2398d7(0x167)+_0x5514b9),{};logger[_0x2398d7(0x140)](_0x2398d7(0x1b8)+_0x5514b9);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x470af0='',[TestFrameworkConstants[_0x2398d7(0x173)]]:_0x474bc0='',[TestFrameworkConstants[_0x2398d7(0x158)]]:_0x20b175='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x4c58c9=''}=_0x5a5b47,_0x5412d9=_0x194c46[_0x2398d7(0x11a)]()[_0x2398d7(0x1c2)]()[_0x2398d7(0x1c0)]('.')[0x1],_0x55d3ea=_0x194c46[_0x2398d7(0x10f)]()[_0x2398d7(0x1c2)]()[_0x2398d7(0x1c0)]('.')[0x1],_0x273537=global?.[_0x2398d7(0x194)]?.['workerInfo']?.[_0x2398d7(0x165)],_0x337639=_0x194c46[_0x2398d7(0x1ba)](),_0x1ee60f=Buffer[_0x2398d7(0x149)](JSON[_0x2398d7(0x128)](_0x5a5b47))[_0x2398d7(0x1c2)](_0x20191a[_0x2398d7(0x119)]),_0x35b521={'hash':_0x243223['getId'](),'threadId':_0x243223[_0x2398d7(0xf8)]()['toString'](),'processId':_0x243223[_0x2398d7(0x13a)]()['toString']()},_0x2aa94e={};_0x2aa94e[_0x2398d7(0x11b)]=_0x273537,_0x2aa94e['testFrameworkName']=_0x470af0,_0x2aa94e[_0x2398d7(0x12b)]=_0x474bc0,_0x2aa94e[_0x2398d7(0x169)]=_0x5412d9,_0x2aa94e['hookState']=_0x55d3ea,_0x2aa94e[_0x2398d7(0x186)]=_0x20b175,_0x2aa94e['endedAt']=_0x4c58c9,_0x2aa94e[_0x2398d7(0x112)]=_0x337639,_0x2aa94e['eventJson']=_0x1ee60f,_0x2aa94e[_0x2398d7(0x111)]=_0x35b521;const _0x8acde8=_0x2aa94e;return logger[_0x2398d7(0x140)]('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x5514b9+_0x2398d7(0x1be)+_0x5412d9+_0x2398d7(0x135)+_0x55d3ea),_0x8acde8;}catch(_0x611332){return logger[_0x2398d7(0x1a4)](_0x2398d7(0x113)+util[_0x2398d7(0x1af)](_0x611332)),{};}}async[a70_0x3a41cd(0x12e)](_0x331e5d,_0x2c8fb1,_0x12a989){const _0x4b2e97=a70_0x3a41cd,_0x4e2618={'RwDNO':function(_0x310bc6,_0x2b0767,_0x188a5c){return _0x310bc6(_0x2b0767,_0x188a5c);},'rQgGw':function(_0x53e153,_0x23a4ed){return _0x53e153===_0x23a4ed;},'xdMbg':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','PvhQf':function(_0x5d7dd4,_0x367f71){return _0x5d7dd4/_0x367f71;},'VmBab':function(_0x5e5aad,_0x1eeeac){return _0x5e5aad<_0x1eeeac;},'HbLwC':function(_0x141990,_0x4948ca){return _0x141990*_0x4948ca;},'wiFoi':function(_0x36f082,_0x4eecbc){return _0x36f082+_0x4eecbc;},'yThqm':function(_0x398569,_0x5a27bd){return _0x398569+_0x5a27bd;},'nOzkQ':'Cucumber\x20log\x20created\x20event'};try{const _0x5e6525=_0x12a989['testUUID'],_0x160dd8=_0x331e5d['getAllData']()[_0x4b2e97(0x13e)](_0x5e6525),{[TestFrameworkConstants[_0x4b2e97(0x159)]]:_0x56199b='',[TestFrameworkConstants[_0x4b2e97(0x173)]]:_0x3217e6=''}=_0x160dd8,_0x5175eb=TestInfo['readLogObjects'](_0x5e6525),_0x558318=TestInfo[_0x4b2e97(0x161)](_0x5e6525)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x40d25b=_0x4e2618[_0x4b2e97(0x16f)](getMediaArtifactsLogs,_0x558318,_0x331e5d[_0x4b2e97(0x132)]()[_0x4b2e97(0x13e)](_0x5e6525)[TestFrameworkConstants[_0x4b2e97(0x14e)]]),_0x1baf6f=(_0x5175eb||[])[_0x4b2e97(0x139)](_0x40d25b||[]);if(!_0x1baf6f||_0x4e2618[_0x4b2e97(0x190)](_0x1baf6f[_0x4b2e97(0x147)],0x0)){logger[_0x4b2e97(0x140)](_0x4e2618[_0x4b2e97(0x14b)]);return;}const _0x5d0abf=0x28,_0x483a06=Math[_0x4b2e97(0x15c)](_0x4e2618[_0x4b2e97(0x1c4)](_0x1baf6f[_0x4b2e97(0x147)],_0x5d0abf));for(let _0x3c4768=0x0;_0x4e2618['VmBab'](_0x3c4768,_0x483a06);_0x3c4768++){const _0x4af028=_0x4e2618['HbLwC'](_0x3c4768,_0x5d0abf),_0x4eb607=_0x4e2618['wiFoi'](_0x4af028,_0x5d0abf),_0x1ef3ca=_0x1baf6f[_0x4b2e97(0x130)](_0x4af028,_0x4eb607),_0x3176c={'platformIndex':'0','logs':_0x1ef3ca,'testFrameworkName':_0x56199b,'testFrameworkVersion':_0x3217e6,'testFrameworkState':_0x2c8fb1['toString']()[_0x4b2e97(0x1c0)]('.')[0x1]};logger[_0x4b2e97(0x140)](_0x4b2e97(0x151)+_0x5e6525+_0x4b2e97(0x123)+_0x4e2618['wiFoi'](_0x3c4768,0x1)+'/'+_0x483a06+_0x4b2e97(0x129)+util['inspect'](_0x3176c));const _0x3f15ce=await GrpcClient[_0x4b2e97(0x101)]()[_0x4b2e97(0x146)](_0x3176c);logger[_0x4b2e97(0x140)](_0x4b2e97(0x151)+_0x5e6525+_0x4b2e97(0x123)+_0x4e2618[_0x4b2e97(0x181)](_0x3c4768,0x1)+'/'+_0x483a06+_0x4b2e97(0x184)+util[_0x4b2e97(0x1a2)](_0x3f15ce));}}catch(_0x35c1b2){logger[_0x4b2e97(0x1a4)](_0x4b2e97(0x117)+util[_0x4b2e97(0x1af)](_0x35c1b2));}logger[_0x4b2e97(0x140)](_0x4e2618[_0x4b2e97(0x104)]);}[a70_0x3a41cd(0x100)](_0x4d3651,_0x173637,_0x4d1952,_0x3a6759,_0x15423c){const _0x3e3d18=a70_0x3a41cd,_0x47cb7a={'testId':_0x173637,'testFrameworkState':_0x4d1952,'hookState':_0x3a6759,'args':_0x15423c,'timestamp':new Date()[_0x3e3d18(0x185)]()};_0x4d3651[_0x3e3d18(0x145)](_0x173637,_0x47cb7a),logger[_0x3e3d18(0x140)](_0x3e3d18(0x108)+_0x173637+',\x20state:\x20'+_0x4d1952+_0x3e3d18(0xfe)+_0x3a6759);}async[a70_0x3a41cd(0x17a)](_0x39372a,_0x11464e){const _0x46d202=a70_0x3a41cd,_0x516abd={};_0x516abd['gqcOB']=function(_0x1efbc7,_0x1c22a4){return _0x1efbc7>_0x1c22a4;};const _0xd84eca=_0x516abd;if(!_0x39372a['hasPendingHooks'](_0x11464e))return;const _0x557ac9=_0x39372a[_0x46d202(0x168)](_0x11464e);logger[_0x46d202(0x140)](_0x46d202(0x14d)+_0x557ac9['length']+_0x46d202(0x131)+_0x11464e);for(const _0x453721 of _0x557ac9){try{const _0x5a8841=await this[_0x46d202(0x11f)](_0x39372a,_0x453721[_0x46d202(0x169)],_0x453721['hookState'],_0x453721[_0x46d202(0x175)]);_0x5a8841&&_0xd84eca['gqcOB'](Object['keys'](_0x5a8841)[_0x46d202(0x147)],0x0)&&_0x39372a['addMultipleEntries'](_0x5a8841),await this['runHooks'](_0x39372a,_0x453721['testFrameworkState'],_0x453721[_0x46d202(0x15a)],_0x453721[_0x46d202(0x175)]);}catch(_0x519f0f){logger['error'](_0x46d202(0x12f)+_0x11464e+_0x46d202(0xfb)+_0x519f0f);}}_0x39372a[_0x46d202(0x162)](_0x11464e),logger[_0x46d202(0x140)](_0x46d202(0x166)+_0x11464e);}}module[a70_0x3a41cd(0x1a1)]=CucumberTestFramework;function a70_0x201b(){const _0x58f28b=['hookState','KEY_TEST_LOGS','ceil','FznqY','failure_reason','KEY_TEST_NAME','hiYbM','getTestDetails','removePendingHooks','instance','testUUID','parallelIndex','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','getPendingHooks','testFrameworkState','KEY_TEST_RESULT_AT','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_HOOKS_STARTED','resolveInstance','failed','RwDNO','8YkFsKj','trackCucumberInstance:\x20saved\x20instance\x20contextId=','KEY_TEST_FAILURE_REASON','KEY_TEST_FRAMEWORK_VERSION','PALMW','args','key','trackEvent:\x20unsupported\x20testFrameworkState=','\x20&\x20hookState=','3269DWxEDz','processPendingHooks','failure_data','hook_type','\x20with\x20UUID:\x20','TEST','meta','KEY_HOOK_FAILURE','yThqm','trackCucumberInstance','failure_type','\x20response=','toISOString','startedAt','1218376cvnkbH','TjJlr','setTestDetails','VTWpI','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','tags','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','./constants/testFrameworkConstants.js','testData','rQgGw','tErTv','scopes','INIT_TEST','__workerDetails','KEY_TEST_TAGS','OqWoP','KEY_EVENT_STARTED_AT','KEY_TEST_ID','10vZFgrb','KEY_TEST_META','PRE','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','passed','body','trackEvent','../grpcClient','exports','inspect','KEY_HOOK_LAST_STARTED','error','getTestFrameworksVersions','NONE','push','KEY_HOOK_ID','../state/hookState.js','KEY_HOOK_RESULT','KEY_TEST_FILE_PATH','KEY_HOOK_LAST_FINISHED','../../../helpers/classLogger.js','DEFAULT_HOOK_RESULT','format','getTestUUID','KEY_TEST_RERUN_NAME','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_TEST_FAILURE','addMultipleEntries','iEDsJ','setTrackedInstance','KEY_TEST_ATTACHMENTS','createTestFrameworkEventPayload\x20testId:\x20','runHooks','getRef','KEY_HOOKS_FINISHED','KEY_CUSTOM_TAGS','KEY_TEST_LOCATION','\x20testState:\x20','109010dknsSp','split','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','toString','18eqLFWX','PvhQf','cTfPi','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','getThreadId','../instances/trackedInstance.js','ppjac',',\x20error:\x20','KEY_TEST_ENDED_AT','getId',',\x20hookState:\x20','test_run_id','storePendingHook','getInstance','pop','\x20for\x20test:\x20','nOzkQ','rerun_name','KEY_LOGS','2408464AMlybu','Stored\x20pending\x20hook\x20for\x20testId:\x20','\x20with\x20id\x20','UhJvz','CucumberTestFramework','2074690AQkBwC','../TestInfo.js','hookData','getCurrentHookState','../cliUtils.js','executionContext','uuid','Error\x20in\x20createTestFrameworkEventPayload:\x20','finishedAt','\x20with\x20result:\x20','POST','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','unknown','GmxQU','getCurrentTestState','platformIndex','fHthY','base64','2655432AmmYYQ','trackHookEvent','zBbYZ','vFatf','failure','\x20batch\x20','matchHookRegex','CMgPg','KEY_TEST_CODE','file_name','stringify','\x20payload=','\x20&\x20hook\x20=\x20','testFrameworkVersion','iLVVX','result','sendLogCreatedEvent','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','slice','\x20pending\x20hooks\x20for\x20testId:\x20','getAllData','getTestFrameworks','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','\x20hookState:\x20','apXGB','name','19662xBYbXd','concat','getProcessId','customRerunParam','getContext','VjtBz','get','getCurrentInstanceName','debug','hooks','\x20target=','parseCucumberTestResult','17161694wnenHC','addPendingHook','logCreatedEvent','length','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','from','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','xdMbg','test','Processing\x20','KEY_TEST_UUID','UnhandledError','RFaoH','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_TEST_RESULT','ethMw','KEY_TEST_FAILURE_TYPE','../instances/testFrameworkInstance.js','parseCucumberTest','KEY_HOOK_FAILURE_TYPE','KEY_TEST_STARTED_AT','KEY_TEST_FRAMEWORK_NAME'];a70_0x201b=function(){return _0x58f28b;};return a70_0x201b();}
1
+ const a70_0x30be63=a70_0x2753;(function(_0x2621ca,_0x1677a3){const _0x1f3c3e=a70_0x2753,_0x220ba0=_0x2621ca();while(!![]){try{const _0x4e1362=parseInt(_0x1f3c3e(0x23f))/0x1*(parseInt(_0x1f3c3e(0x214))/0x2)+parseInt(_0x1f3c3e(0x25d))/0x3+-parseInt(_0x1f3c3e(0x231))/0x4+parseInt(_0x1f3c3e(0x26c))/0x5*(parseInt(_0x1f3c3e(0x212))/0x6)+parseInt(_0x1f3c3e(0x215))/0x7*(-parseInt(_0x1f3c3e(0x235))/0x8)+parseInt(_0x1f3c3e(0x1c8))/0x9*(-parseInt(_0x1f3c3e(0x263))/0xa)+-parseInt(_0x1f3c3e(0x203))/0xb*(-parseInt(_0x1f3c3e(0x1ef))/0xc);if(_0x4e1362===_0x1677a3)break;else _0x220ba0['push'](_0x220ba0['shift']());}catch(_0x4a2f47){_0x220ba0['push'](_0x220ba0['shift']());}}}(a70_0x2396,0x1e056));const TestFramework=require(a70_0x30be63(0x250)),TestFrameworkState=require(a70_0x30be63(0x1f8)),HookState=require(a70_0x30be63(0x268)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a70_0x30be63(0x1df)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a70_0x30be63(0x1d7)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a70_0x30be63(0x21b)),util=require(a70_0x30be63(0x25f)),TestInfo=require(a70_0x30be63(0x22e)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x46a94c,_0x1afcbf,_0x2d9b83){super(_0x46a94c,_0x1afcbf,_0x2d9b83);}async['trackEvent'](_0x250719,_0x25fa0c,_0xc13a06={}){const _0x5982f5=a70_0x30be63,_0xf9a0ee={};_0xf9a0ee[_0x5982f5(0x1e1)]=_0x5982f5(0x260),_0xf9a0ee[_0x5982f5(0x20b)]=function(_0x432437,_0x45bd51){return _0x432437===_0x45bd51;},_0xf9a0ee[_0x5982f5(0x27c)]=function(_0x3535b5,_0x3eaf0a){return _0x3535b5===_0x3eaf0a;},_0xf9a0ee['FkNdt']=function(_0x1440a4,_0x2fd6d8){return _0x1440a4===_0x2fd6d8;},_0xf9a0ee[_0x5982f5(0x218)]=_0x5982f5(0x20a);const _0x1daa0d=_0xf9a0ee;await super[_0x5982f5(0x1ca)](_0x250719,_0x25fa0c,_0xc13a06);const _0x41dfea=this['resolveInstance'](_0x250719,_0x25fa0c,_0xc13a06);if(!_0x41dfea){logger[_0x5982f5(0x24b)](_0x1daa0d[_0x5982f5(0x1e1)]);return;}try{let _0x2c9d5d,_0x1d484a;switch(_0x250719){case TestFrameworkState['TEST']:_0x2c9d5d=_0xc13a06[_0x5982f5(0x1ba)],_0x1d484a=TestInfo[_0x5982f5(0x24a)](_0x2c9d5d['id']);if(_0x1daa0d[_0x5982f5(0x20b)](_0x25fa0c,HookState[_0x5982f5(0x1ea)])){logger['debug'](_0x5982f5(0x1ee)+_0x2c9d5d['id']);const _0xfb0e0={};_0xfb0e0[_0x5982f5(0x219)]=_0x1d484a,_0xfb0e0[_0x5982f5(0x267)]=_0x2c9d5d,_0x41dfea[_0x5982f5(0x1cd)](this[_0x5982f5(0x24d)](_0xfb0e0)),logger[_0x5982f5(0x24b)](_0x5982f5(0x24e)+_0x2c9d5d['id']),await this[_0x5982f5(0x20d)](_0x41dfea,_0x2c9d5d['id']);}else{if(_0x1daa0d[_0x5982f5(0x27c)](_0x25fa0c,HookState[_0x5982f5(0x206)])){const _0x4d4080={};_0x4d4080['testUUID']=_0x1d484a,_0x4d4080[_0x5982f5(0x267)]=_0x2c9d5d,_0x41dfea[_0x5982f5(0x1cd)](this[_0x5982f5(0x254)](_0x4d4080)),await this['processPendingHooks'](_0x41dfea,_0x2c9d5d['id']);}}break;case TestFrameworkState[_0x5982f5(0x20e)]:_0x1daa0d[_0x5982f5(0x1bc)](_0x25fa0c,HookState[_0x5982f5(0x206)])&&await this[_0x5982f5(0x213)](_0x41dfea,_0x250719,_0xc13a06);break;default:if(CLIUtils[_0x5982f5(0x1b4)](_0x250719['toString']()['split']('.')[0x1])){const _0x50fc6b=await this[_0x5982f5(0x201)](_0x41dfea,_0x250719,_0x25fa0c,_0xc13a06);_0x41dfea[_0x5982f5(0x1cd)](_0x50fc6b);}else logger[_0x5982f5(0x24b)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0x250719+_0x5982f5(0x26a)+_0x25fa0c);break;}}catch(_0x1dbd43){logger[_0x5982f5(0x1b0)](util[_0x5982f5(0x232)](_0x1daa0d['rTGNA'],_0x250719,_0x25fa0c,_0xc13a06[_0x5982f5(0x221)],_0x1dbd43));}_0xc13a06['instance']=_0x41dfea,await this[_0x5982f5(0x273)](_0x41dfea,_0x250719,_0x25fa0c,_0xc13a06);}[a70_0x30be63(0x22b)](_0x1e2266,_0xfa85ea,_0x1b12ad={}){const _0x145573=a70_0x30be63,_0x31d749={};_0x31d749['fbpIM']=function(_0x26f76c,_0xe52ecb){return _0x26f76c===_0xe52ecb;},_0x31d749[_0x145573(0x222)]=function(_0x48c3dc,_0x54e5d2){return _0x48c3dc===_0x54e5d2;};const _0x17d263=_0x31d749;let _0x40ca6f=null;return(_0x17d263['fbpIM'](_0x1e2266,TestFrameworkState['INIT_TEST'])||_0x17d263[_0x145573(0x222)](_0x1e2266,TestFrameworkState[_0x145573(0x258)]))&&this['trackCucumberInstance'](_0x1e2266,_0x1b12ad),_0x40ca6f=TestFramework[_0x145573(0x20f)](),_0x40ca6f;}[a70_0x30be63(0x271)](_0x19ff8b,_0x18ea78){const _0x5916bd=a70_0x30be63,_0x1e5381=CLIUtils[_0x5916bd(0x237)](),_0x35d563=TrackedInstance[_0x5916bd(0x1b6)](_0x1e5381);let _0x2eedb2=null;logger[_0x5916bd(0x24b)](_0x5916bd(0x21f)+_0x1e5381+',\x20state='+_0x19ff8b),_0x2eedb2=new TestFrameworkInstance(_0x35d563,this[_0x5916bd(0x210)](),this[_0x5916bd(0x241)](),_0x19ff8b,HookState[_0x5916bd(0x258)]),TestFramework[_0x5916bd(0x1e0)](_0x35d563,_0x2eedb2),logger[_0x5916bd(0x24b)]('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x35d563[_0x5916bd(0x1c0)]()+'\x20target='+_0x1e5381);}['parseCucumberTest'](_0xfa9cf){const _0x146e93=a70_0x30be63,_0x59f85a={};_0x59f85a[_0x146e93(0x1be)]=_0x146e93(0x1b7);const _0xe81d03=_0x59f85a,{testUUID:_0x54aec2,testData:_0x26f1bf}=_0xfa9cf;if(!_0x26f1bf||!_0x26f1bf[_0x146e93(0x21b)])return logger['debug'](_0xe81d03['uMlhC']),{};const _0x28657e=_0x54aec2,_0x4a4a70=_0x26f1bf[_0x146e93(0x21b)],_0x361de1=this[_0x146e93(0x210)]()[0x0],_0x2165cf=this[_0x146e93(0x241)](),_0x24a2a4={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x361de1,[TestFrameworkConstants[_0x146e93(0x21e)]]:_0x2165cf[_0x361de1],[TestFrameworkConstants[_0x146e93(0x20c)]]:[],[TestFrameworkConstants[_0x146e93(0x1b1)]]:{},[TestFrameworkConstants[_0x146e93(0x22f)]]:{},[TestFrameworkConstants[_0x146e93(0x21c)]]:_0x28657e,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x146e93(0x1cf)],[TestFrameworkConstants[_0x146e93(0x1e6)]]:_0x26f1bf[_0x146e93(0x1c9)]||'',[TestFrameworkConstants[_0x146e93(0x1f0)]]:_0x26f1bf[_0x146e93(0x1d1)]||'',[TestFrameworkConstants[_0x146e93(0x1fd)]]:_0x4a4a70,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x26f1bf['name']||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x26f1bf['location']||'',[TestFrameworkConstants[_0x146e93(0x1c5)]]:_0x26f1bf[_0x146e93(0x226)]?.['code']||null,[TestFrameworkConstants[_0x146e93(0x25b)]]:_0x26f1bf[_0x146e93(0x233)]||[],[TestFrameworkConstants[_0x146e93(0x261)]]:_0x26f1bf[_0x146e93(0x27b)]||new Date()[_0x146e93(0x1db)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x26f1bf[_0x146e93(0x1ed)]?.[0x0]||'',[TestFrameworkConstants[_0x146e93(0x223)]]:_0x26f1bf[_0x146e93(0x1ed)]||[],[TestFrameworkConstants['KEY_TEST_RERUN_NAME']]:_0x26f1bf['customRerunParam']?.[_0x146e93(0x24f)]||_0x26f1bf[_0x146e93(0x1c9)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x146e93(0x275)]]:_0x26f1bf[_0x146e93(0x229)]||{}};TestInfo['setTestDetails'](_0x4a4a70,_0x24a2a4),logger['debug'](_0x146e93(0x277)+_0x26f1bf[_0x146e93(0x1c9)]+'\x20with\x20UUID:\x20'+_0x28657e);const _0x127706={};return _0x127706[_0x4a4a70]=_0x24a2a4,_0x127706;}[a70_0x30be63(0x254)](_0x3bfa70){const _0x2a7861=a70_0x30be63,_0xeb669f={'JoDbM':_0x2a7861(0x1e2),'QMTnn':_0x2a7861(0x1c7),'qUmjj':function(_0x59a74f,_0x2cc389){return _0x59a74f===_0x2cc389;},'khsok':_0x2a7861(0x249),'jfqri':'UnhandledError','oLENx':function(_0x3e3488,_0x54a083,_0x5ad6c5){return _0x3e3488(_0x54a083,_0x5ad6c5);},'gAUgX':function(_0x111e3d,_0x597edc){return _0x111e3d>_0x597edc;}},{testUUID:_0x458e96,testData:_0x1cc55b}=_0x3bfa70;if(!_0x1cc55b||!_0x1cc55b[_0x2a7861(0x21b)])return logger[_0x2a7861(0x24b)](_0xeb669f[_0x2a7861(0x242)]),{};const _0xff08c6=this[_0x2a7861(0x22b)](TestFrameworkState[_0x2a7861(0x1cb)],HookState['POST']),_0x15ba2a=_0x1cc55b['uuid'],_0x343aba=TestInfo[_0x2a7861(0x1e9)](_0x15ba2a)||{},_0x367e16=_0x343aba?_0x343aba[TestFrameworkConstants[_0x2a7861(0x200)]]||{}:{},_0x240152={..._0x343aba,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x1cc55b[_0x2a7861(0x1e3)]||_0xeb669f[_0x2a7861(0x23c)],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x1cc55b[_0x2a7861(0x230)]||new Date()[_0x2a7861(0x1db)](),[TestFrameworkConstants[_0x2a7861(0x26f)]]:new Date()[_0x2a7861(0x1db)](),[TestFrameworkConstants[_0x2a7861(0x200)]]:_0x367e16,[TestFrameworkConstants[_0x2a7861(0x1f9)]]:[],[TestFrameworkConstants[_0x2a7861(0x275)]]:_0x1cc55b[_0x2a7861(0x229)]||{}};_0xeb669f['qUmjj'](_0x1cc55b['result'],_0xeb669f[_0x2a7861(0x211)])&&_0x1cc55b[_0x2a7861(0x266)]&&(_0x240152[TestFrameworkConstants[_0x2a7861(0x26b)]]=_0x1cc55b[_0x2a7861(0x248)]||_0xeb669f[_0x2a7861(0x228)],_0x240152[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x1cc55b[_0x2a7861(0x272)]||'',_0x240152[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x1cc55b[_0x2a7861(0x266)]);const _0x694ab8=TestInfo[_0x2a7861(0x1e9)](_0x15ba2a)[TestFrameworkConstants[_0x2a7861(0x1bd)]]||{},_0x111403=_0xeb669f[_0x2a7861(0x1d2)](getManualUploadLogs,_0x694ab8,_0xff08c6['getAllData']()[_0x2a7861(0x251)](_0x15ba2a)[TestFrameworkConstants[_0x2a7861(0x21c)]]);if(_0xeb669f[_0x2a7861(0x1c6)](_0x111403[_0x2a7861(0x221)],0x0)){const _0xf852ec=_0x240152[TestFrameworkConstants[_0x2a7861(0x1f9)]]||[];_0x240152[TestFrameworkConstants[_0x2a7861(0x1f9)]]=[..._0xf852ec,..._0x111403];}_0x1cc55b[_0x2a7861(0x1f1)]&&_0xeb669f[_0x2a7861(0x1c6)](_0x1cc55b['hooks'][_0x2a7861(0x221)],0x0)&&(_0x240152[TestFrameworkConstants[_0x2a7861(0x1b1)]]=_0x1cc55b[_0x2a7861(0x1f1)]);TestInfo['setTestDetails'](_0x15ba2a,_0x240152),logger[_0x2a7861(0x24b)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x1cc55b[_0x2a7861(0x1c9)]+_0x2a7861(0x1bb)+_0x1cc55b[_0x2a7861(0x1e3)]);const _0x2fa3fa={};return _0x2fa3fa[_0x15ba2a]=_0x240152,_0x2fa3fa;}async[a70_0x30be63(0x201)](_0x5c0b62,_0x5b1962,_0x53e8d0,_0x5b12a6){const _0x5da13d=a70_0x30be63,_0x4f9606={'BiARM':_0x5da13d(0x276),'aFTIx':function(_0x17496c){return _0x17496c();},'QGkoI':function(_0x5a1596,_0x360b88){return _0x5a1596 in _0x360b88;},'gBcbH':function(_0x5af996,_0x378a5d){return _0x5af996===_0x378a5d;},'oTuVI':function(_0x14525a,_0x938e3c){return _0x14525a>_0x938e3c;},'QiqYt':function(_0x55e578,_0xa836ff){return _0x55e578===_0xa836ff;},'yeCVH':_0x5da13d(0x249),'lrwtY':'UnhandledError','jSmyC':_0x5da13d(0x252),'ImMnl':function(_0x53e127,_0x13a6f2){return _0x53e127!==_0x13a6f2;}},{hookData:_0x1389c5}=_0x5b12a6;if(!_0x1389c5)return logger[_0x5da13d(0x24b)](_0x4f9606[_0x5da13d(0x1da)]),{};const _0x416ce5=_0x1389c5['uuid']||_0x4f9606['aFTIx'](uuidv4),_0x25a591=_0x1389c5[_0x5da13d(0x278)],_0x344d2a=_0x5b1962[_0x5da13d(0x1f4)]()[_0x5da13d(0x240)]('.')[0x1],_0x5d12e9=TestInfo[_0x5da13d(0x1e9)](_0x25a591)[TestFrameworkConstants[_0x5da13d(0x200)]]||{},_0x13d5cf=_0x5c0b62[_0x5da13d(0x1d9)]()[_0x5da13d(0x251)](_0x25a591);if(!_0x13d5cf)return logger[_0x5da13d(0x24b)](_0x5da13d(0x255)+_0x25a591+',\x20storing\x20as\x20pending\x20hook'),this[_0x5da13d(0x1d3)](_0x5c0b62,_0x25a591,_0x5b1962,_0x53e8d0,_0x5b12a6),{};let _0x5a3ca7=_0x13d5cf[TestFrameworkConstants[_0x5da13d(0x22f)]];!_0x5a3ca7&&(_0x5a3ca7={});!_0x4f9606[_0x5da13d(0x224)](_0x344d2a,_0x5a3ca7)&&(_0x5a3ca7[_0x344d2a]=[]);let _0x3de2aa=_0x13d5cf[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x3de2aa&&(_0x3de2aa={});!_0x4f9606[_0x5da13d(0x224)](_0x344d2a,_0x3de2aa)&&(_0x3de2aa[_0x344d2a]=[]);const _0x4c7cc0={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x5a3ca7,[TestFrameworkConstants[_0x5da13d(0x1b1)]]:_0x3de2aa},_0x1ddb23={};_0x1ddb23[_0x25a591]=_0x4c7cc0;const _0x38c65f=_0x1ddb23;if(_0x4f9606['gBcbH'](_0x53e8d0,HookState[_0x5da13d(0x1ea)])){const _0x4459cb={[TestFrameworkConstants[_0x5da13d(0x264)]]:_0x416ce5,[TestFrameworkConstants[_0x5da13d(0x1fc)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x5da13d(0x25c)]]:_0x1389c5['started_at'],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants[_0x5da13d(0x259)]]:_0x1389c5[_0x5da13d(0x1b5)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x5d12e9};_0x4459cb[_0x5da13d(0x204)]=_0x344d2a;const _0x1fddb1=_0x4459cb;_0x5a3ca7[_0x344d2a][_0x5da13d(0x247)](_0x1fddb1),_0x38c65f[_0x25a591][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x344d2a,logger[_0x5da13d(0x24b)](_0x5da13d(0x257)+_0x344d2a+'\x20&\x20hook\x20=\x20'+_0x1fddb1+_0x5da13d(0x246)+_0x5b12a6);}else{if(_0x4f9606[_0x5da13d(0x238)](_0x53e8d0,HookState[_0x5da13d(0x206)])){const _0x2149c0=_0x1389c5['result'],_0x237e0f=_0x5a3ca7[_0x344d2a]||[];logger[_0x5da13d(0x24b)](_0x5da13d(0x1ce)+_0x237e0f+_0x5da13d(0x25e)+_0x5b12a6);if(_0x4f9606['oTuVI'](_0x237e0f[_0x5da13d(0x221)],0x0)){const _0x5ac099=_0x237e0f[_0x5da13d(0x202)]();_0x4f9606['QiqYt'](_0x1389c5['result'],_0x4f9606[_0x5da13d(0x23a)])&&_0x1389c5['failure_data']?(_0x5ac099[TestFrameworkConstants[_0x5da13d(0x1b3)]]=_0x1389c5[_0x5da13d(0x248)]||_0x4f9606[_0x5da13d(0x22d)],_0x5ac099[TestFrameworkConstants[_0x5da13d(0x1f3)]]=_0x1389c5['failure_reason']||'',_0x5ac099[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x1389c5[_0x5da13d(0x22a)]):_0x5ac099[TestFrameworkConstants[_0x5da13d(0x1fc)]]=_0x4f9606[_0x5da13d(0x265)];_0x4f9606[_0x5da13d(0x1d0)](_0x2149c0,TestFrameworkConstants[_0x5da13d(0x25a)])&&(_0x5ac099[TestFrameworkConstants[_0x5da13d(0x1fc)]]=_0x2149c0);_0x5ac099[TestFrameworkConstants[_0x5da13d(0x27a)]]=_0x1389c5[_0x5da13d(0x21a)]||new Date()['toISOString'](),_0x5ac099[TestFrameworkConstants[_0x5da13d(0x200)]]=_0x5d12e9;const _0x3f2a48=_0x5ac099[TestFrameworkConstants['KEY_HOOK_ID']];!_0x3de2aa[_0x344d2a]&&(_0x3de2aa[_0x344d2a]=[]),_0x3de2aa[_0x344d2a][_0x5da13d(0x247)](_0x5ac099),_0x38c65f[_0x25a591][TestFrameworkConstants[_0x5da13d(0x239)]]=_0x344d2a;}}}return logger['debug'](_0x5da13d(0x1ff)+_0x1389c5[_0x5da13d(0x1b5)]+_0x5da13d(0x1eb)+_0x416ce5+_0x5da13d(0x1ae)+_0x25a591),_0x38c65f;}[a70_0x30be63(0x1ec)](_0x321ed){const _0x2d7a46=a70_0x30be63,_0x39d750={};_0x39d750[_0x2d7a46(0x1b2)]=_0x2d7a46(0x236);const _0x9ec005=_0x39d750;try{const _0x5ae240=_0x321ed[_0x2d7a46(0x1ba)]?_0x321ed[_0x2d7a46(0x1ba)]['id']:_0x321ed[_0x2d7a46(0x270)][_0x2d7a46(0x278)],_0x150af4=_0x321ed['instance'],_0x306182=_0x150af4[_0x2d7a46(0x209)](),_0x308af0=_0x150af4[_0x2d7a46(0x1d9)]()['get'](_0x5ae240);if(!_0x308af0)return logger[_0x2d7a46(0x24b)](_0x2d7a46(0x244)+_0x5ae240),{};logger[_0x2d7a46(0x24b)](_0x2d7a46(0x1f7)+_0x5ae240);const {[TestFrameworkConstants[_0x2d7a46(0x1d5)]]:_0x26b15c='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x2efaef='',[TestFrameworkConstants[_0x2d7a46(0x261)]]:_0x2ffe7e='',[TestFrameworkConstants[_0x2d7a46(0x227)]]:_0x56f403=''}=_0x308af0,_0x1ba085=_0x150af4[_0x2d7a46(0x1dd)]()['toString']()[_0x2d7a46(0x240)]('.')[0x1],_0x23467d=_0x150af4[_0x2d7a46(0x1d4)]()[_0x2d7a46(0x1f4)]()[_0x2d7a46(0x240)]('.')[0x1],_0x4c6e5f=global?.['__workerDetails']?.[_0x2d7a46(0x245)]?.[_0x2d7a46(0x1dc)],_0x1cc1c2=_0x150af4[_0x2d7a46(0x1c1)](),_0xf7eb62=Buffer[_0x2d7a46(0x220)](JSON[_0x2d7a46(0x225)](_0x308af0))[_0x2d7a46(0x1f4)](_0x9ec005[_0x2d7a46(0x1b2)]),_0x47d8b2={'hash':_0x306182[_0x2d7a46(0x1c0)](),'threadId':_0x306182[_0x2d7a46(0x1fb)]()['toString'](),'processId':_0x306182['getProcessId']()[_0x2d7a46(0x1f4)]()},_0x5a2e6d={};_0x5a2e6d[_0x2d7a46(0x205)]=_0x4c6e5f,_0x5a2e6d[_0x2d7a46(0x23d)]=_0x26b15c,_0x5a2e6d[_0x2d7a46(0x243)]=_0x2efaef,_0x5a2e6d[_0x2d7a46(0x23e)]=_0x1ba085,_0x5a2e6d[_0x2d7a46(0x1d6)]=_0x23467d,_0x5a2e6d[_0x2d7a46(0x27b)]=_0x2ffe7e,_0x5a2e6d[_0x2d7a46(0x1f6)]=_0x56f403,_0x5a2e6d[_0x2d7a46(0x21b)]=_0x1cc1c2,_0x5a2e6d['eventJson']=_0xf7eb62,_0x5a2e6d[_0x2d7a46(0x1fa)]=_0x47d8b2;const _0x3a4e4c=_0x5a2e6d;return logger[_0x2d7a46(0x24b)](_0x2d7a46(0x1de)+_0x5ae240+_0x2d7a46(0x1e5)+_0x1ba085+'\x20hookState:\x20'+_0x23467d),_0x3a4e4c;}catch(_0x527846){return logger['error'](_0x2d7a46(0x1d8)+util['format'](_0x527846)),{};}}async[a70_0x30be63(0x213)](_0x50826d,_0xae0254,_0x261cf7){const _0x45da3d=a70_0x30be63,_0xd560a2={'MDjaJ':function(_0x4c4a80,_0x2aae60,_0x1603e6){return _0x4c4a80(_0x2aae60,_0x1603e6);},'Gvsxz':function(_0x4c7c2d,_0x17be25){return _0x4c7c2d===_0x17be25;},'gFBzD':_0x45da3d(0x1e4),'kSXGz':function(_0x5d03df,_0x4cc546){return _0x5d03df/_0x4cc546;},'GHLre':function(_0x4c862c,_0x247686){return _0x4c862c<_0x247686;},'EwUiE':function(_0x1f3f02,_0x43f229){return _0x1f3f02*_0x43f229;},'fAMTh':function(_0x28fdd2,_0x4b85ee){return _0x28fdd2+_0x4b85ee;},'lsTBh':function(_0x5437dc,_0x47a2cf){return _0x5437dc+_0x47a2cf;},'ANnrE':_0x45da3d(0x1bf)};try{const _0x3724e5=_0x261cf7[_0x45da3d(0x219)],_0x548e7a=_0x50826d['getAllData']()['get'](_0x3724e5),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x30b4f6='',[TestFrameworkConstants[_0x45da3d(0x21e)]]:_0x37ae59=''}=_0x548e7a,_0x464ea0=TestInfo[_0x45da3d(0x274)](_0x3724e5),_0x2e570b=TestInfo[_0x45da3d(0x1e9)](_0x3724e5)[TestFrameworkConstants[_0x45da3d(0x1bd)]]||{},_0x560539=_0xd560a2['MDjaJ'](getMediaArtifactsLogs,_0x2e570b,_0x50826d[_0x45da3d(0x1d9)]()[_0x45da3d(0x251)](_0x3724e5)[TestFrameworkConstants[_0x45da3d(0x21c)]]),_0xdf26df=(_0x464ea0||[])[_0x45da3d(0x24c)](_0x560539||[]);if(!_0xdf26df||_0xd560a2['Gvsxz'](_0xdf26df['length'],0x0)){logger[_0x45da3d(0x24b)](_0xd560a2['gFBzD']);return;}const _0x32a146=0x28,_0x2ae740=Math[_0x45da3d(0x22c)](_0xd560a2['kSXGz'](_0xdf26df['length'],_0x32a146));for(let _0x561253=0x0;_0xd560a2[_0x45da3d(0x1b9)](_0x561253,_0x2ae740);_0x561253++){const _0x2c5af9=_0xd560a2[_0x45da3d(0x26e)](_0x561253,_0x32a146),_0x21d0d2=_0xd560a2[_0x45da3d(0x217)](_0x2c5af9,_0x32a146),_0x5658a5=_0xdf26df[_0x45da3d(0x1af)](_0x2c5af9,_0x21d0d2),_0xaac7c3={'platformIndex':'0','logs':_0x5658a5,'testFrameworkName':_0x30b4f6,'testFrameworkVersion':_0x37ae59,'testFrameworkState':_0xae0254[_0x45da3d(0x1f4)]()[_0x45da3d(0x240)]('.')[0x1]};logger['debug'](_0x45da3d(0x216)+_0x3724e5+_0x45da3d(0x26d)+_0xd560a2[_0x45da3d(0x217)](_0x561253,0x1)+'/'+_0x2ae740+_0x45da3d(0x253)+util[_0x45da3d(0x21d)](_0xaac7c3));const _0x4d54ae=await GrpcClient[_0x45da3d(0x279)]()[_0x45da3d(0x1f5)](_0xaac7c3);logger['debug'](_0x45da3d(0x216)+_0x3724e5+'\x20batch\x20'+_0xd560a2[_0x45da3d(0x1e8)](_0x561253,0x1)+'/'+_0x2ae740+_0x45da3d(0x1cc)+util['inspect'](_0x4d54ae));}}catch(_0x161ff9){logger['error'](_0x45da3d(0x23b)+util[_0x45da3d(0x232)](_0x161ff9));}logger[_0x45da3d(0x24b)](_0xd560a2[_0x45da3d(0x269)]);}[a70_0x30be63(0x1d3)](_0x4dc2a9,_0x10dcb3,_0x3c2be0,_0x37142c,_0x125fc5){const _0x593933=a70_0x30be63,_0x472583={'testId':_0x10dcb3,'testFrameworkState':_0x3c2be0,'hookState':_0x37142c,'args':_0x125fc5,'timestamp':new Date()[_0x593933(0x1db)]()};_0x4dc2a9[_0x593933(0x256)](_0x10dcb3,_0x472583),logger[_0x593933(0x24b)]('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x10dcb3+',\x20state:\x20'+_0x3c2be0+_0x593933(0x1fe)+_0x37142c);}async['processPendingHooks'](_0xcd1349,_0x518d69){const _0x314ebb=a70_0x30be63,_0x59ac0d={};_0x59ac0d[_0x314ebb(0x1c3)]=function(_0x27a4bb,_0x1064b8){return _0x27a4bb>_0x1064b8;};const _0x279079=_0x59ac0d;if(!_0xcd1349[_0x314ebb(0x234)](_0x518d69))return;const _0x104f22=_0xcd1349[_0x314ebb(0x1b8)](_0x518d69);logger[_0x314ebb(0x24b)](_0x314ebb(0x1c2)+_0x104f22[_0x314ebb(0x221)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x518d69);for(const _0x5263ef of _0x104f22){try{const _0x1e05ea=await this['trackHookEvent'](_0xcd1349,_0x5263ef[_0x314ebb(0x23e)],_0x5263ef['hookState'],_0x5263ef[_0x314ebb(0x1e7)]);_0x1e05ea&&_0x279079[_0x314ebb(0x1c3)](Object[_0x314ebb(0x1c4)](_0x1e05ea)[_0x314ebb(0x221)],0x0)&&_0xcd1349[_0x314ebb(0x1cd)](_0x1e05ea),await this['runHooks'](_0xcd1349,_0x5263ef[_0x314ebb(0x23e)],_0x5263ef[_0x314ebb(0x1d6)],_0x5263ef['args']);}catch(_0x11c9e9){logger[_0x314ebb(0x1b0)]('Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20'+_0x518d69+_0x314ebb(0x207)+_0x11c9e9);}}_0xcd1349[_0x314ebb(0x208)](_0x518d69),logger[_0x314ebb(0x24b)](_0x314ebb(0x1f2)+_0x518d69);}}function a70_0x2753(_0x505ebb,_0x325380){const _0x2396c9=a70_0x2396();return a70_0x2753=function(_0x27538f,_0xc66dec){_0x27538f=_0x27538f-0x1ae;let _0x290d24=_0x2396c9[_0x27538f];return _0x290d24;},a70_0x2753(_0x505ebb,_0x325380);}module[a70_0x30be63(0x262)]=CucumberTestFramework;function a70_0x2396(){const _0x9cc4bd=['KEY_TEST_RESULT_AT','hookData','trackCucumberInstance','failure_reason','runHooks','readLogObjects','KEY_TEST_META','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','Parsed\x20cucumber\x20test:\x20','test_run_id','getInstance','KEY_EVENT_ENDED_AT','startedAt','trzDA','\x20for\x20test:\x20','slice','error','KEY_HOOKS_FINISHED','UfpgM','KEY_HOOK_FAILURE_TYPE','matchHookRegex','hook_type','createContext','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','getPendingHooks','GHLre','test','\x20with\x20result:\x20','FkNdt','KEY_TEST_ATTACHMENTS','uMlhC','Cucumber\x20log\x20created\x20event','getId','getRef','Processing\x20','ZBjGc','keys','KEY_TEST_CODE','gAUgX','unknown','2144466FOSSHU','name','trackEvent','TEST','\x20response=','addMultipleEntries','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','DEFAULT_TEST_RESULT','ImMnl','file_name','oLENx','storePendingHook','getCurrentHookState','KEY_TEST_FRAMEWORK_NAME','hookState','../../../helpers/helper.js','Error\x20in\x20createTestFrameworkEventPayload:\x20','getAllData','BiARM','toISOString','parallelIndex','getCurrentTestState','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','../instances/testFrameworkInstance.js','setTrackedInstance','kOPoJ','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','result','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','\x20testState:\x20','KEY_AUTOMATE_SESSION_NAME','args','lsTBh','getTestDetails','PRE','\x20with\x20id\x20','createTestFrameworkEventPayload','scopes','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','12FgqhOi','KEY_TEST_FILE_PATH','hooks','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_HOOK_FAILURE_REASON','toString','logCreatedEvent','endedAt','createTestFrameworkEventPayload\x20testId:\x20','../state/testFrameworkState.js','KEY_LOGS','executionContext','getThreadId','KEY_HOOK_RESULT','KEY_TEST_ID',',\x20hookState:\x20','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_CUSTOM_TAGS','trackHookEvent','pop','1517417ydAxDT','key','platformIndex','POST',',\x20error:\x20','removePendingHooks','getContext','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','aEGJw','KEY_TEST_LOGS','processPendingHooks','LOG_REPORT','getTrackedInstance','getTestFrameworks','khsok','32814dXsBLg','sendLogCreatedEvent','27302ZDhAUO','7DgShAH','sendLogCreatedEvent:\x20for\x20testId:\x20','fAMTh','rTGNA','testUUID','finished_at','uuid','KEY_TEST_UUID','inspect','KEY_TEST_FRAMEWORK_VERSION','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','from','length','tsRkw','KEY_TEST_SCOPES','QGkoI','stringify','body','KEY_TEST_ENDED_AT','jfqri','meta','failure_data','resolveInstance','ceil','lrwtY','../TestInfo.js','KEY_HOOKS_STARTED','finishedAt','342776mnRSlX','format','tags','hasPendingHooks','217096bnTfqE','base64','getCurrentInstanceName','gBcbH','KEY_HOOK_LAST_FINISHED','yeCVH','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','QMTnn','testFrameworkName','testFrameworkState','5ZZzNWv','split','getTestFrameworksVersions','JoDbM','testFrameworkVersion','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','workerInfo','\x20\x20and\x20args\x20=\x20','push','failure_type','failed','getTestUUID','debug','concat','parseCucumberTest','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','rerun_name','./testFramework','get','passed','\x20payload=','parseCucumberTestResult','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','addPendingHook','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','NONE','KEY_HOOK_NAME','DEFAULT_HOOK_RESULT','KEY_TEST_TAGS','KEY_EVENT_STARTED_AT','459060rctXoP','\x20and\x20args\x20=\x20','util','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','KEY_TEST_STARTED_AT','exports','10zHxXyU','KEY_HOOK_ID','jSmyC','failure','testData','../state/hookState.js','ANnrE','\x20&\x20hookState=','KEY_TEST_FAILURE_TYPE','105yJdHyd','\x20batch\x20','EwUiE'];a70_0x2396=function(){return _0x9cc4bd;};return a70_0x2396();}