@aj-shadow/actorjs-app 0.0.0-aj-beta.221

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 (423) hide show
  1. package/.gitattributes +29 -0
  2. package/.vscode/launch.json +18 -0
  3. package/CHANGELOG.md +79 -0
  4. package/LICENSE.txt +96 -0
  5. package/README.md +86 -0
  6. package/contributors.txt +3 -0
  7. package/main.js +14 -0
  8. package/npm-post-install.js +618 -0
  9. package/npm-shrinkwrap.json +14 -0
  10. package/package.json +16 -0
  11. package/project/actorjs-project.tree +466 -0
  12. package/project/client/actions/action-actor-editor/action-actor-editor-file.js +101 -0
  13. package/project/client/actions/action-actor-editor/action-actor-editor-folder.js +41 -0
  14. package/project/client/actions/action-actor-editor/action-actor-editor-persistent-data.js +23 -0
  15. package/project/client/actions/action-actor-editor/action-actor-editor-project.js +23 -0
  16. package/project/client/actions/action-actor-editor/data-action-actor-editor-file.js +70 -0
  17. package/project/client/actions/action-actor-editor/data-action-actor-editor-folder.js +26 -0
  18. package/project/client/actions/action-actor-editor/data-action-actor-editor-project.js +27 -0
  19. package/project/client/actions/action-actor-editor/realtime-action-actors-editor.js +14 -0
  20. package/project/client/actions/action-addresses/action-addresses.js +180 -0
  21. package/project/client/actions/action-addresses/data-action-addresses.js +174 -0
  22. package/project/client/actions/action-console/action-console.js +11 -0
  23. package/project/client/actions/action-console/data-action-console.js +12 -0
  24. package/project/client/actions/action-content/action-content.js +101 -0
  25. package/project/client/actions/action-content/data-action-content.js +90 -0
  26. package/project/client/actions/action-function-under-test.js +45 -0
  27. package/project/client/actions/action-load/action-load.js +29 -0
  28. package/project/client/actions/action-load/data-action-load.js +4 -0
  29. package/project/client/actions/action-login/action-login.js +95 -0
  30. package/project/client/actions/action-login/data-action-login.js +83 -0
  31. package/project/client/actions/action-plugins/action-plugins.js +17 -0
  32. package/project/client/actions/action-plugins/data-action-plugins.js +20 -0
  33. package/project/client/actions/action-plus-services/action-plus-services.js +17 -0
  34. package/project/client/actions/action-plus-services/data-action-plus-services.js +20 -0
  35. package/project/client/actions/action-repos/action-repos.js +35 -0
  36. package/project/client/actions/action-repos/data-action-repos.js +42 -0
  37. package/project/client/actions/action-stack-editor/action-stack-editor-file.js +84 -0
  38. package/project/client/actions/action-stack-editor/action-stack-editor-folder.js +41 -0
  39. package/project/client/actions/action-stack-editor/action-stack-editor-persistent-data.js +23 -0
  40. package/project/client/actions/action-stack-editor/action-stack-editor-project.js +29 -0
  41. package/project/client/actions/action-stack-editor/data-action-stack-editor-file.js +49 -0
  42. package/project/client/actions/action-stack-editor/data-action-stack-editor-folder.js +26 -0
  43. package/project/client/actions/action-stack-editor/data-action-stack-editor-project.js +34 -0
  44. package/project/client/actions/action-sut-fut-filter.js +23 -0
  45. package/project/client/actions/action-system-under-test/action-system-under-test.js +164 -0
  46. package/project/client/actions/action-system-under-test/data-action-system-under-test.js +70 -0
  47. package/project/client/actions/action-test-case/action-test-case.js +323 -0
  48. package/project/client/actions/action-test-case/data-action-test-case.js +133 -0
  49. package/project/client/actions/action-test-case/realtime-action-test-case.js +69 -0
  50. package/project/client/actions/action-test-cases.js +49 -0
  51. package/project/client/actions/action-test-data/action-test-data.js +77 -0
  52. package/project/client/actions/action-test-data/data-action-test-data.js +62 -0
  53. package/project/client/actions/action-test-suite/action-test-suite.js +122 -0
  54. package/project/client/actions/action-test-suite/data-action-test-suite.js +76 -0
  55. package/project/client/actions/action-test-suite/realtime-action-test-suite.js +20 -0
  56. package/project/client/actions/action-test-suites.js +47 -0
  57. package/project/client/actor-default.js +18 -0
  58. package/project/client/communication/messages/messages-c-to-c/message-new-actor-index.js +15 -0
  59. package/project/client/communication/messages/messages-c-to-c/message-test-case-clear.js +15 -0
  60. package/project/client/communication/messages/messages-c-to-c/message-test-case-not-started.js +15 -0
  61. package/project/client/communication/messages/messages-c-to-c/message-test-suite-clear.js +15 -0
  62. package/project/client/components/footer/footer.jsx +94 -0
  63. package/project/client/components/header/header-status-login.jsx +78 -0
  64. package/project/client/components/header/header-status-staging-environment.jsx +132 -0
  65. package/project/client/components/header/header.jsx +27 -0
  66. package/project/client/components/header/header_icon.jsx +37 -0
  67. package/project/client/components/header/header_status.jsx +33 -0
  68. package/project/client/components/middle/abbreviation/middle-abbreviation-toolbar.jsx +126 -0
  69. package/project/client/components/middle/abbreviation/middle-abbreviation.jsx +27 -0
  70. package/project/client/components/middle/actor-editor/middle-actor-editor-sidebar.jsx +101 -0
  71. package/project/client/components/middle/actor-editor/middle-actor-editor-toolbar.jsx +612 -0
  72. package/project/client/components/middle/actor-editor/middle-actor-editor-view.jsx +157 -0
  73. package/project/client/components/middle/actor-editor/middle-actor-editor.jsx +38 -0
  74. package/project/client/components/middle/addresses/helpers/stage-filter.js +32 -0
  75. package/project/client/components/middle/addresses/middle-addresses-toolbar.jsx +183 -0
  76. package/project/client/components/middle/addresses/middle-addresses-view-client-address.jsx +67 -0
  77. package/project/client/components/middle/addresses/middle-addresses-view-client-interface.jsx +68 -0
  78. package/project/client/components/middle/addresses/middle-addresses-view-dns.jsx +67 -0
  79. package/project/client/components/middle/addresses/middle-addresses-view-dst.jsx +67 -0
  80. package/project/client/components/middle/addresses/middle-addresses-view-network-interface.jsx +67 -0
  81. package/project/client/components/middle/addresses/middle-addresses-view-ports.jsx +67 -0
  82. package/project/client/components/middle/addresses/middle-addresses-view-server-address.jsx +68 -0
  83. package/project/client/components/middle/addresses/middle-addresses-view-server-interface.jsx +68 -0
  84. package/project/client/components/middle/addresses/middle-addresses-view-src.jsx +67 -0
  85. package/project/client/components/middle/addresses/middle-addresses-view-srv.jsx +67 -0
  86. package/project/client/components/middle/addresses/middle-addresses-view-sut-address.jsx +67 -0
  87. package/project/client/components/middle/addresses/middle-addresses-view-sut-interface.jsx +67 -0
  88. package/project/client/components/middle/addresses/middle-addresses-view.jsx +155 -0
  89. package/project/client/components/middle/addresses/middle-addresses.jsx +39 -0
  90. package/project/client/components/middle/content/middle-content-toolbar.jsx +135 -0
  91. package/project/client/components/middle/content/middle-content-view-audio.jsx +60 -0
  92. package/project/client/components/middle/content/middle-content-view-documents.jsx +60 -0
  93. package/project/client/components/middle/content/middle-content-view-image.jsx +60 -0
  94. package/project/client/components/middle/content/middle-content-view-other.jsx +60 -0
  95. package/project/client/components/middle/content/middle-content-view-text.jsx +60 -0
  96. package/project/client/components/middle/content/middle-content-view-video.jsx +60 -0
  97. package/project/client/components/middle/content/middle-content-view.jsx +111 -0
  98. package/project/client/components/middle/content/middle-content.jsx +39 -0
  99. package/project/client/components/middle/middle-not-found.jsx +24 -0
  100. package/project/client/components/middle/middle-sut-fut-filter.jsx +90 -0
  101. package/project/client/components/middle/middle.jsx +90 -0
  102. package/project/client/components/middle/middle_sidebar.jsx +256 -0
  103. package/project/client/components/middle/plugins/middle-plugins.jsx +64 -0
  104. package/project/client/components/middle/plus-services/middle-plus-services.jsx +63 -0
  105. package/project/client/components/middle/repos/middle-repos-toolbar.jsx +137 -0
  106. package/project/client/components/middle/repos/middle-repos-view.jsx +47 -0
  107. package/project/client/components/middle/repos/middle-repos.jsx +36 -0
  108. package/project/client/components/middle/stack-editor/middle-stack-editor-sidebar.jsx +101 -0
  109. package/project/client/components/middle/stack-editor/middle-stack-editor-toolbar.jsx +525 -0
  110. package/project/client/components/middle/stack-editor/middle-stack-editor-view.jsx +156 -0
  111. package/project/client/components/middle/stack-editor/middle-stack-editor.jsx +38 -0
  112. package/project/client/components/middle/staging/helper.js +58 -0
  113. package/project/client/components/middle/staging/middle-staging-modal-interface-create.jsx +244 -0
  114. package/project/client/components/middle/staging/middle-staging-modal-interface-delete.jsx +186 -0
  115. package/project/client/components/middle/staging/middle-staging-toolbar.jsx +267 -0
  116. package/project/client/components/middle/staging/middle-staging-view.jsx +67 -0
  117. package/project/client/components/middle/staging/middle-staging.jsx +40 -0
  118. package/project/client/components/middle/staging/tabs/middle-staging-tab-logical.jsx +27 -0
  119. package/project/client/components/middle/staging/tabs/middle-staging-tab-report.jsx +62 -0
  120. package/project/client/components/middle/staging/tabs/middle-staging-tab-repos.jsx +96 -0
  121. package/project/client/components/middle/staging/tabs/middle-staging-tab-setup.jsx +73 -0
  122. package/project/client/components/middle/start/middle-start-toolbar.jsx +134 -0
  123. package/project/client/components/middle/start/middle-start-view.jsx +335 -0
  124. package/project/client/components/middle/start/middle-start.jsx +36 -0
  125. package/project/client/components/middle/system-under-test/middle-system-under-test-toolbar.jsx +171 -0
  126. package/project/client/components/middle/system-under-test/middle-system-under-test-view-multi.jsx +119 -0
  127. package/project/client/components/middle/system-under-test/middle-system-under-test-view-single.jsx +85 -0
  128. package/project/client/components/middle/system-under-test/middle-system-under-test.jsx +40 -0
  129. package/project/client/components/middle/system-under-test/tabs/middle-system-under-test-tab-instances.jsx +164 -0
  130. package/project/client/components/middle/system-under-test/tabs/middle-system-under-test-tab-nodes.jsx +160 -0
  131. package/project/client/components/middle/system-under-test/tabs/middle-system-under-test-tab-specification.jsx +463 -0
  132. package/project/client/components/middle/test-cases/general-helpers/actors-sorting.js +52 -0
  133. package/project/client/components/middle/test-cases/middle-test-cases-not-found.jsx +51 -0
  134. package/project/client/components/middle/test-cases/middle-test-cases-toolbar.jsx +804 -0
  135. package/project/client/components/middle/test-cases/middle-test-cases-view-columns.jsx +222 -0
  136. package/project/client/components/middle/test-cases/middle-test-cases-view-fut.jsx +105 -0
  137. package/project/client/components/middle/test-cases/middle-test-cases-view-recent.jsx +74 -0
  138. package/project/client/components/middle/test-cases/middle-test-cases-view-sut.jsx +98 -0
  139. package/project/client/components/middle/test-cases/middle-test-cases-view-tc.jsx +108 -0
  140. package/project/client/components/middle/test-cases/middle-test-cases-view-test-case.jsx +104 -0
  141. package/project/client/components/middle/test-cases/middle-test-cases.jsx +59 -0
  142. package/project/client/components/middle/test-cases/tabs/middle-test-cases-tab-analyze.jsx +289 -0
  143. package/project/client/components/middle/test-cases/tabs/middle-test-cases-tab-debug.jsx +699 -0
  144. package/project/client/components/middle/test-cases/tabs/middle-test-cases-tab-definition.jsx +103 -0
  145. package/project/client/components/middle/test-cases/tabs/middle-test-cases-tab-execution.jsx +321 -0
  146. package/project/client/components/middle/test-cases/tabs/middle-test-cases-tab-log.jsx +150 -0
  147. package/project/client/components/middle/test-cases/tabs/middle-test-cases-tab-sequence-diagram.jsx +160 -0
  148. package/project/client/components/middle/test-cases/tabs/middle-test-cases-tab-specification.jsx +472 -0
  149. package/project/client/components/middle/test-data/middle-test-data-toolbar.jsx +135 -0
  150. package/project/client/components/middle/test-data/middle-test-data-view-environment.jsx +64 -0
  151. package/project/client/components/middle/test-data/middle-test-data-view-general.jsx +61 -0
  152. package/project/client/components/middle/test-data/middle-test-data-view-output.jsx +60 -0
  153. package/project/client/components/middle/test-data/middle-test-data-view-system.jsx +61 -0
  154. package/project/client/components/middle/test-data/middle-test-data-view.jsx +98 -0
  155. package/project/client/components/middle/test-data/middle-test-data.jsx +39 -0
  156. package/project/client/components/middle/test-suites/middle-test-suites-toolbar.jsx +524 -0
  157. package/project/client/components/middle/test-suites/middle-test-suites-view-columns.jsx +222 -0
  158. package/project/client/components/middle/test-suites/middle-test-suites-view-fut.jsx +105 -0
  159. package/project/client/components/middle/test-suites/middle-test-suites-view-recent.jsx +74 -0
  160. package/project/client/components/middle/test-suites/middle-test-suites-view-sut.jsx +96 -0
  161. package/project/client/components/middle/test-suites/middle-test-suites-view-test-suite.jsx +593 -0
  162. package/project/client/components/middle/test-suites/middle-test-suites-view-ts.jsx +109 -0
  163. package/project/client/components/middle/test-suites/middle-test-suites.jsx +55 -0
  164. package/project/client/components/middle/test-suites/tabs/middle-test-suites-tab-definition.jsx +74 -0
  165. package/project/client/components/middle/test-suites/tabs/middle-test-suites-tab-execution.jsx +544 -0
  166. package/project/client/components/middle/test-suites/tabs/middle-test-suites-tab-log.jsx +118 -0
  167. package/project/client/components/middle/test-suites/tabs/middle-test-suites-tab-sequence-diagram.jsx +155 -0
  168. package/project/client/components/middle/user/middle-user-toolbar.jsx +32 -0
  169. package/project/client/components/middle/user/middle-user-view.jsx +32 -0
  170. package/project/client/components/middle/user/middle-user.jsx +39 -0
  171. package/project/client/components/middle/videos/middle-videos-view.jsx +135 -0
  172. package/project/client/components/middle/videos/middle-videos.jsx +32 -0
  173. package/project/client/css/components/component-video.css +15 -0
  174. package/project/client/css/components/modal-dialog-file.css +4 -0
  175. package/project/client/css/footer/footer-info.css +18 -0
  176. package/project/client/css/footer/footer-logo.css +39 -0
  177. package/project/client/css/from-code-editor/sidebar-dark.css +20 -0
  178. package/project/client/css/from-code-editor/sidebar-light.css +18 -0
  179. package/project/client/css/from-code-editor/tab.css +19 -0
  180. package/project/client/css/from-code-editor/tab_dark.css +9 -0
  181. package/project/client/css/from-code-editor/tab_light.css +9 -0
  182. package/project/client/css/from-code-editor/view-dark.css +11 -0
  183. package/project/client/css/from-code-editor/view-light.css +10 -0
  184. package/project/client/css/header/header-status.css +114 -0
  185. package/project/client/css/header/header.css +16 -0
  186. package/project/client/css/log-inner.css +46 -0
  187. package/project/client/css/main.css +4 -0
  188. package/project/client/css/middle/actor-editor.css +30 -0
  189. package/project/client/css/middle/address.css +57 -0
  190. package/project/client/css/middle/content.css +41 -0
  191. package/project/client/css/middle/login.css +118 -0
  192. package/project/client/css/middle/middle-start.css +5 -0
  193. package/project/client/css/middle/middle.css +13 -0
  194. package/project/client/css/middle/middle_sidebar.css +44 -0
  195. package/project/client/css/middle/middle_view.css +41 -0
  196. package/project/client/css/middle/stack-editor.css +30 -0
  197. package/project/client/css/middle/start/middle_start.css +94 -0
  198. package/project/client/css/middle/systems-under-test/systems-under-test-specification.css +48 -0
  199. package/project/client/css/middle/systems-under-test/systems-under-test.css +49 -0
  200. package/project/client/css/middle/test-case-and-test-suite/analyze.css +5 -0
  201. package/project/client/css/middle/test-case-and-test-suite/debug.css +281 -0
  202. package/project/client/css/middle/test-case-and-test-suite/execution.css +7 -0
  203. package/project/client/css/middle/test-case-and-test-suite/log.css +13 -0
  204. package/project/client/css/middle/test-case-and-test-suite/seq-dia.css +13 -0
  205. package/project/client/css/middle/test-cases/test-cases-analyze.css +9 -0
  206. package/project/client/css/middle/test-cases/test-cases-debug.css +61 -0
  207. package/project/client/css/middle/test-cases/test-cases-execution.css +4 -0
  208. package/project/client/css/middle/test-cases/test-cases-specification.css +82 -0
  209. package/project/client/css/middle/test-cases/test-cases.css +189 -0
  210. package/project/client/css/middle/test-data.css +52 -0
  211. package/project/client/css/middle/test-suites.css +525 -0
  212. package/project/client/css/middle/videos/videos.css +37 -0
  213. package/project/client/css/middle_test_cases_screen.css +8 -0
  214. package/project/client/css/middle_toolbar.css +10 -0
  215. package/project/client/css/repos.css +15 -0
  216. package/project/client/css/same_size_as_parent.css +6 -0
  217. package/project/client/css/test.css +116 -0
  218. package/project/client/html/index.html +61 -0
  219. package/project/client/main.jsx +59 -0
  220. package/project/client/stores/abbreviation-store.js +57 -0
  221. package/project/client/stores/actor-editor-store.js +758 -0
  222. package/project/client/stores/addresses-store.js +419 -0
  223. package/project/client/stores/console-store.js +27 -0
  224. package/project/client/stores/content-store.js +237 -0
  225. package/project/client/stores/documentation-store.js +14 -0
  226. package/project/client/stores/education-store.js +14 -0
  227. package/project/client/stores/filter-store.js +30 -0
  228. package/project/client/stores/function-under-test-store.js +58 -0
  229. package/project/client/stores/load-store.js +92 -0
  230. package/project/client/stores/login-store.js +232 -0
  231. package/project/client/stores/plugins-store.js +255 -0
  232. package/project/client/stores/plus-services-store.js +267 -0
  233. package/project/client/stores/repos-store.js +160 -0
  234. package/project/client/stores/stack-editor-store.js +691 -0
  235. package/project/client/stores/system-under-test-store.js +340 -0
  236. package/project/client/stores/test-case-store.js +1118 -0
  237. package/project/client/stores/test-cases-store.js +106 -0
  238. package/project/client/stores/test-data-store.js +181 -0
  239. package/project/client/stores/test-suite-store.js +438 -0
  240. package/project/client/stores/test-suites-store.js +86 -0
  241. package/project/client/stores/workshop-store.js +15 -0
  242. package/project/server/os/os-hardware.js +83 -0
  243. package/project/server/os/os-networks.js +50 -0
  244. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorBuild.js +185 -0
  245. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFileDelete.js +21 -0
  246. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFileGet.js +18 -0
  247. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFileInlineGet.js +60 -0
  248. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFileInlineUpdate.js +69 -0
  249. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFileNew.js +396 -0
  250. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFileRename.js +28 -0
  251. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFileUpdate.js +18 -0
  252. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFolderDelete.js +21 -0
  253. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFolderNew.js +19 -0
  254. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFolderUpdate.js +19 -0
  255. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorProjectGet.js +77 -0
  256. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorProjectToggle.js +18 -0
  257. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorProjectUpdate.js +22 -0
  258. package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorStacksGet.js +54 -0
  259. package/project/server/plugin-data/addresses/plugin_data_AddressesClientAddressGet.js +19 -0
  260. package/project/server/plugin-data/addresses/plugin_data_AddressesClientAddressUpdate.js +19 -0
  261. package/project/server/plugin-data/addresses/plugin_data_AddressesClientInterfaceGet.js +19 -0
  262. package/project/server/plugin-data/addresses/plugin_data_AddressesClientInterfaceUpdate.js +19 -0
  263. package/project/server/plugin-data/addresses/plugin_data_AddressesDnsGet.js +20 -0
  264. package/project/server/plugin-data/addresses/plugin_data_AddressesDnsUpdate.js +19 -0
  265. package/project/server/plugin-data/addresses/plugin_data_AddressesDstGet.js +19 -0
  266. package/project/server/plugin-data/addresses/plugin_data_AddressesDstUpdate.js +19 -0
  267. package/project/server/plugin-data/addresses/plugin_data_AddressesNetworkInterfaceGet.js +19 -0
  268. package/project/server/plugin-data/addresses/plugin_data_AddressesNetworkInterfaceUpdate.js +19 -0
  269. package/project/server/plugin-data/addresses/plugin_data_AddressesPortsGet.js +19 -0
  270. package/project/server/plugin-data/addresses/plugin_data_AddressesPortsUpdate.js +19 -0
  271. package/project/server/plugin-data/addresses/plugin_data_AddressesServerAddressGet.js +19 -0
  272. package/project/server/plugin-data/addresses/plugin_data_AddressesServerAddressUpdate.js +19 -0
  273. package/project/server/plugin-data/addresses/plugin_data_AddressesServerInterfaceGet.js +19 -0
  274. package/project/server/plugin-data/addresses/plugin_data_AddressesServerInterfaceUpdate.js +19 -0
  275. package/project/server/plugin-data/addresses/plugin_data_AddressesSrcGet.js +38 -0
  276. package/project/server/plugin-data/addresses/plugin_data_AddressesSrcUpdate.js +19 -0
  277. package/project/server/plugin-data/addresses/plugin_data_AddressesSrvGet.js +19 -0
  278. package/project/server/plugin-data/addresses/plugin_data_AddressesSrvUpdate.js +19 -0
  279. package/project/server/plugin-data/addresses/plugin_data_AddressesSutAddressGet.js +19 -0
  280. package/project/server/plugin-data/addresses/plugin_data_AddressesSutAddressUpdate.js +19 -0
  281. package/project/server/plugin-data/addresses/plugin_data_AddressesSutInterfaceGet.js +19 -0
  282. package/project/server/plugin-data/addresses/plugin_data_AddressesSutInterfaceUpdate.js +19 -0
  283. package/project/server/plugin-data/console/plugin_data_ConsoleClear.js +20 -0
  284. package/project/server/plugin-data/content/plugin_data_ContentAudioGet.js +19 -0
  285. package/project/server/plugin-data/content/plugin_data_ContentAudioUpdate.js +19 -0
  286. package/project/server/plugin-data/content/plugin_data_ContentDocumentsGet.js +19 -0
  287. package/project/server/plugin-data/content/plugin_data_ContentDocumentsUpdate.js +19 -0
  288. package/project/server/plugin-data/content/plugin_data_ContentImageGet.js +19 -0
  289. package/project/server/plugin-data/content/plugin_data_ContentImageUpdate.js +19 -0
  290. package/project/server/plugin-data/content/plugin_data_ContentOtherGet.js +19 -0
  291. package/project/server/plugin-data/content/plugin_data_ContentOtherUpdate.js +19 -0
  292. package/project/server/plugin-data/content/plugin_data_ContentTextGet.js +19 -0
  293. package/project/server/plugin-data/content/plugin_data_ContentTextUpdate.js +19 -0
  294. package/project/server/plugin-data/content/plugin_data_ContentVideoGet.js +19 -0
  295. package/project/server/plugin-data/content/plugin_data_ContentVideoUpdate.js +19 -0
  296. package/project/server/plugin-data/function-under-test/plugin_data_FunctionUnderTestAdd.js +60 -0
  297. package/project/server/plugin-data/function-under-test/plugin_data_FunctionUnderTestDelete.js +20 -0
  298. package/project/server/plugin-data/function-under-test/plugin_data_FunctionUnderTestGet.js +92 -0
  299. package/project/server/plugin-data/login/plugin_data_LoginButtonsAdd.js +18 -0
  300. package/project/server/plugin-data/login/plugin_data_LoginButtonsGet.js +18 -0
  301. package/project/server/plugin-data/login/plugin_data_LoginButtonsUpdate.js +18 -0
  302. package/project/server/plugin-data/login/plugin_data_LoginCreateInterfaces.js +73 -0
  303. package/project/server/plugin-data/login/plugin_data_LoginDataGet.js +88 -0
  304. package/project/server/plugin-data/login/plugin_data_LoginDeleteInterfaces.js +38 -0
  305. package/project/server/plugin-data/login/plugin_data_LoginGet.js +22 -0
  306. package/project/server/plugin-data/login/plugin_data_LoginPing.js +72 -0
  307. package/project/server/plugin-data/login/plugin_data_LoginReposGet.js +18 -0
  308. package/project/server/plugin-data/login/plugin_data_LoginUpdate.js +44 -0
  309. package/project/server/plugin-data/login/plugin_data_LoginWsGet.js +39 -0
  310. package/project/server/plugin-data/plugins/plugin_data_PluginsBundleGet.js +34 -0
  311. package/project/server/plugin-data/plugins/plugin_data_PluginsGet.js +26 -0
  312. package/project/server/plugin-data/plus-services/plugin_data_PlusServicesBundleGet.js +34 -0
  313. package/project/server/plugin-data/plus-services/plugin_data_PlusServicesGet.js +78 -0
  314. package/project/server/plugin-data/repos/plugin_data_ReposAnalyzeLocalReposGet.js +142 -0
  315. package/project/server/plugin-data/repos/plugin_data_ReposClone.js +154 -0
  316. package/project/server/plugin-data/repos/plugin_data_ReposGet.js +18 -0
  317. package/project/server/plugin-data/repos/plugin_data_ReposVerifyGit.js +79 -0
  318. package/project/server/plugin-data/repos/repos.js +94 -0
  319. package/project/server/plugin-data/stack-editor/helpers/template.js +351 -0
  320. package/project/server/plugin-data/stack-editor/plugin_data_StackEditorBuild.js +185 -0
  321. package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFileDelete.js +21 -0
  322. package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFileGet.js +18 -0
  323. package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFileNew.js +24 -0
  324. package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFileRename.js +27 -0
  325. package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFileUpdate.js +18 -0
  326. package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFolderDelete.js +21 -0
  327. package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFolderNew.js +19 -0
  328. package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFolderUpdate.js +19 -0
  329. package/project/server/plugin-data/stack-editor/plugin_data_StackEditorProjectGet.js +77 -0
  330. package/project/server/plugin-data/stack-editor/plugin_data_StackEditorProjectToggle.js +18 -0
  331. package/project/server/plugin-data/stack-editor/plugin_data_StackEditorProjectUpdate.js +22 -0
  332. package/project/server/plugin-data/stack-editor/plugin_data_StackEditorWizard.js +43 -0
  333. package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestAdd.js +72 -0
  334. package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestDelete.js +20 -0
  335. package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestGet.js +138 -0
  336. package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestInstancesUpdate.js +21 -0
  337. package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestNodesUpdate.js +21 -0
  338. package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestRepoAdd.js +46 -0
  339. package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestRepoGet.js +57 -0
  340. package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestSpecificationUpdate.js +21 -0
  341. package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestUpdate.js +24 -0
  342. package/project/server/plugin-data/test-case/debug.js +39 -0
  343. package/project/server/plugin-data/test-case/debugger-api.js +398 -0
  344. package/project/server/plugin-data/test-case/debugger.js +129 -0
  345. package/project/server/plugin-data/test-case/plugin_data_TestCaseActorsFileGet.js +26 -0
  346. package/project/server/plugin-data/test-case/plugin_data_TestCaseAdd.js +74 -0
  347. package/project/server/plugin-data/test-case/plugin_data_TestCaseAnalyze.js +451 -0
  348. package/project/server/plugin-data/test-case/plugin_data_TestCaseButtonsAdd.js +19 -0
  349. package/project/server/plugin-data/test-case/plugin_data_TestCaseButtonsGet.js +19 -0
  350. package/project/server/plugin-data/test-case/plugin_data_TestCaseButtonsUpdate.js +19 -0
  351. package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugBreakpointClear.js +56 -0
  352. package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugBreakpointClearAll.js +23 -0
  353. package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugBreakpointSet.js +118 -0
  354. package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugBreakpointUpdate.js +84 -0
  355. package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugGet.js +40 -0
  356. package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugGetMembers.js +40 -0
  357. package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugGetProperty.js +47 -0
  358. package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugGetSource.js +29 -0
  359. package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugLoad.js +35 -0
  360. package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugRun.js +52 -0
  361. package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugStart.js +217 -0
  362. package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugStop.js +23 -0
  363. package/project/server/plugin-data/test-case/plugin_data_TestCaseDelete.js +20 -0
  364. package/project/server/plugin-data/test-case/plugin_data_TestCaseExecutionStart.js +73 -0
  365. package/project/server/plugin-data/test-case/plugin_data_TestCaseGet.js +118 -0
  366. package/project/server/plugin-data/test-case/plugin_data_TestCaseRecentDelete.js +57 -0
  367. package/project/server/plugin-data/test-case/plugin_data_TestCaseRecentGet.js +20 -0
  368. package/project/server/plugin-data/test-case/plugin_data_TestCaseRecentUpdate.js +62 -0
  369. package/project/server/plugin-data/test-case/plugin_data_TestCaseRename.js +43 -0
  370. package/project/server/plugin-data/test-case/plugin_data_TestCaseSpecificationUpdate.js +21 -0
  371. package/project/server/plugin-data/test-case/plugin_data_TestCaseStacksGet.js +54 -0
  372. package/project/server/plugin-data/test-case/plugin_data_TestCaseUpdate.js +42 -0
  373. package/project/server/plugin-data/test-data/plugin_data_TestDataEnvironmentGet.js +72 -0
  374. package/project/server/plugin-data/test-data/plugin_data_TestDataEnvironmentUpdate.js +19 -0
  375. package/project/server/plugin-data/test-data/plugin_data_TestDataGeneralGet.js +19 -0
  376. package/project/server/plugin-data/test-data/plugin_data_TestDataGeneralUpdate.js +19 -0
  377. package/project/server/plugin-data/test-data/plugin_data_TestDataOutputGet.js +19 -0
  378. package/project/server/plugin-data/test-data/plugin_data_TestDataOutputUpdate.js +19 -0
  379. package/project/server/plugin-data/test-data/plugin_data_TestDataSystemGet.js +19 -0
  380. package/project/server/plugin-data/test-data/plugin_data_TestDataSystemUpdate.js +19 -0
  381. package/project/server/plugin-data/test-suite/plugin_data_TestSuiteAdd.js +51 -0
  382. package/project/server/plugin-data/test-suite/plugin_data_TestSuiteButtonsAdd.js +19 -0
  383. package/project/server/plugin-data/test-suite/plugin_data_TestSuiteButtonsGet.js +18 -0
  384. package/project/server/plugin-data/test-suite/plugin_data_TestSuiteButtonsUpdate.js +18 -0
  385. package/project/server/plugin-data/test-suite/plugin_data_TestSuiteDelete.js +20 -0
  386. package/project/server/plugin-data/test-suite/plugin_data_TestSuiteExecutionStart.js +401 -0
  387. package/project/server/plugin-data/test-suite/plugin_data_TestSuiteGet.js +110 -0
  388. package/project/server/plugin-data/test-suite/plugin_data_TestSuiteRecentDelete.js +54 -0
  389. package/project/server/plugin-data/test-suite/plugin_data_TestSuiteRecentGet.js +18 -0
  390. package/project/server/plugin-data/test-suite/plugin_data_TestSuiteRecentUpdate.js +59 -0
  391. package/project/server/plugin-data/test-suite/plugin_data_TestSuiteUpdate.js +42 -0
  392. package/project/server/plugin-service/platform-fs/plugin_service_Platform-Fs.js +65 -0
  393. package/project/server/plugin-service/platform-fs/verify-or-create-files.js +57 -0
  394. package/repos.json +19 -0
  395. package/server-test-case.js +50 -0
  396. package/settings - Copy (2).json +77 -0
  397. package/settings.json +63 -0
  398. package/workspace/Bundle-AppLayer-client.bld +77 -0
  399. package/workspace/Bundle-AppLayer-cs.bld +37 -0
  400. package/workspace/Client-AppLayer-client-jsx.bld +10 -0
  401. package/workspace/Client-AppLayer-client.bld +10 -0
  402. package/workspace/Client-AppLayer-cs.bld +10 -0
  403. package/workspace/Server-AppLayer-cs.bld +12 -0
  404. package/workspace/Server-AppLayer-server.bld +12 -0
  405. package/workspace/actorjs.wrk +336 -0
  406. package/workspace/clean-all.tsk +11 -0
  407. package/workspace/clean-build.tsk +8 -0
  408. package/workspace/clean-compiled.tsk +9 -0
  409. package/workspace/clean-dist.tsk +7 -0
  410. package/workspace/clean-generated.tsk +7 -0
  411. package/workspace/clean-node.tsk +7 -0
  412. package/workspace/clean-temp.tsk +7 -0
  413. package/workspace/client-css-actorjs-bundle.bld +10 -0
  414. package/workspace/list-debug.tsk +4 -0
  415. package/workspace/list-default.tsk +4 -0
  416. package/workspace/list-redebug.tsk +4 -0
  417. package/workspace/list-release.tsk +4 -0
  418. package/workspace/list-rerelease.tsk +4 -0
  419. package/workspace/list-start.tsk +4 -0
  420. package/workspace/server-html-rc.bld +10 -0
  421. package/workspace/server-image-actorjs-rc.bld +9 -0
  422. package/workspace/simple-help.tsk +5 -0
  423. package/workspace/simple-help.txt +39 -0
@@ -0,0 +1,524 @@
1
+
2
+ 'use strict';
3
+
4
+ import MiddleFilter from '../middle-sut-fut-filter';
5
+ import LoginStore from '../../../stores/login-store';
6
+ import TestSuitesStore from '../../../stores/test-suites-store';
7
+ import TestSuiteStore from '../../../stores/test-suite-store';
8
+ import FunctionUnderTestStore from '../../../stores/function-under-test-store';
9
+ import SystemUnderTestStore from '../../../stores/system-under-test-store';
10
+ import { ActionSystemUnderTestAdd, ActionSystemUnderTestDelete, ActionSystemUnderTestRepoGet } from '../../../actions/action-system-under-test/action-system-under-test';
11
+ import { ActionFunctionUnderTestAdd, ActionFunctionUnderTestDelete } from '../../../actions/action-function-under-test';
12
+ import { ActionTestSuiteAdd, ActionTestSuiteDelete, ActionTestSuiteMarkup, ActionTestSuiteMarkupSave, ActionTestSuiteMarkupCancel, ActionTestSuiteExecutionStart, ActionTestSuiteExecutionStop, ActionTestSuiteClear, ActionTestSuiteIterations } from '../../../actions/action-test-suite/action-test-suite';
13
+ import { ActionTestSuitesSutClear, ActionTestSuitesFutClear, ActionTestSuitesTsClear } from '../../../actions/action-test-suites';
14
+ import ModalDialogAbstractionAdd from 'z-abs-complayer-modaldialog-client/client/modal-dialog-abstraction-add';
15
+ import Icon from 'z-abs-complayer-bootstrap-client/client/icons-inline/icon';
16
+ import ButtonNew from 'z-abs-complayer-bootstrap-client/client/button-new';
17
+ import Popover from 'z-abs-complayer-bootstrap-client/client/popover';
18
+ import {RouterContext} from 'z-abs-complayer-router-client/client/react-component/router-context';
19
+ import ReactComponentRealtime from 'z-abs-corelayer-client/client/react-component/react-component-realtime';
20
+ import React from 'react';
21
+
22
+
23
+ export default class MiddleTestSuitesToolbar extends ReactComponentRealtime {
24
+ constructor(props) {
25
+ super(props, [TestSuitesStore, TestSuiteStore, SystemUnderTestStore, LoginStore]);
26
+ this._modalDialogAbstractionAdd = null;
27
+ this.boundKeyDown = this._keyDown.bind(this);
28
+ this.markupDisabledOpen = false;
29
+ this.markupDisabledSave = true;
30
+ this.markupDisabledHelp = false;
31
+ this.markupDisabledCancel = true;
32
+ this.repo = null;
33
+ }
34
+
35
+ static DEFAULT_MARKUP_SUT = {
36
+ markup: `#### ***Add a new SUT***
37
+
38
+ ***Set the SUT name and select the repo in which to put it.***`,
39
+ markupStyle: {
40
+ padding:'13px 8px 0px 11px'
41
+ }
42
+ };
43
+
44
+ static DEFAULT_MARKUP_FUT = {
45
+ markup: `#### ***Add a new FUT***
46
+
47
+ ***Set the FUT name.***`,
48
+ markupStyle: {
49
+ padding:'13px 0px 0px 18px'
50
+ }
51
+ };
52
+
53
+ static DEFAULT_MARKUP_TS = {
54
+ markup: `#### ***Add a Test Suite***
55
+
56
+ ***Add Test Suites and Test Cases on your own.***`,
57
+ markupStyle: {
58
+ padding:'5px 8px 0px 3px',
59
+ width:'102%'
60
+ }
61
+ };
62
+
63
+ didMount() {
64
+ window.addEventListener('keydown', this.boundKeyDown, true);
65
+ }
66
+
67
+ shouldUpdate(nextProps, nextState) {
68
+ return !this.shallowCompare(this.props.tab, nextProps.tab)
69
+ || !this.shallowCompare(this.props.sut, nextProps.sut)
70
+ || !this.shallowCompare(this.props.fut, nextProps.fut)
71
+ || !this.shallowCompare(this.props.ts, nextProps.ts)
72
+ || !this.shallowCompare(this.state.TestSuiteStore.markup, nextState.TestSuiteStore.markup)
73
+ || !this.shallowCompare(this.state.TestSuiteStore.iterationsTs, nextState.TestSuiteStore.iterationsTs)
74
+ || !this.shallowCompare(this.state.TestSuiteStore.execution, nextState.TestSuiteStore.execution)
75
+ || !this.shallowCompare(this.state.TestSuiteStore.realtimeConnection, nextState.TestSuiteStore.realtimeConnection)
76
+ || !this.shallowCompare(this.state.TestSuitesStore, nextState.TestSuitesStore)
77
+ || !this.deepCompare(this.state.SystemUnderTestStore.systemUnderTests, nextState.SystemUnderTestStore.systemUnderTests)
78
+ || !this.shallowCompareArrayValues(this.state.SystemUnderTestStore.repos, nextState.SystemUnderTestStore.repos)
79
+ || !this.shallowCompare(this.state.LoginStore.login, nextState.LoginStore.login);
80
+ }
81
+
82
+ willUnmount() {
83
+ window.removeEventListener('keydown', this.boundKeyDown, true);
84
+ }
85
+
86
+ _markupOpen() {
87
+ this.dispatch(TestSuiteStore, new ActionTestSuiteMarkup());
88
+ this.tabNavigation('definition');
89
+ }
90
+
91
+ _markupSave() {
92
+ this.dispatch(TestSuiteStore, new ActionTestSuiteMarkupSave(this.repo, this.props.sut, this.props.fut, this.props.ts));
93
+ this.tabNavigation('definition');
94
+ }
95
+
96
+ _markupHelp() {
97
+ this.context.history('../documentation/markup/markup-test-suite');
98
+ }
99
+
100
+ _markupCancel() {
101
+ this.dispatch(TestSuiteStore, new ActionTestSuiteMarkupCancel());
102
+ this.tabNavigation('definition');
103
+ }
104
+
105
+ _keyDown(e) {
106
+ if(e.ctrlKey && 'o' === e.key) {
107
+ if(!this.markupDisabledOpen) {
108
+ e.preventDefault();
109
+ this._markupOpen();
110
+ }
111
+ }
112
+ else if(e.ctrlKey && e.shiftKey && '?' === e.key) {
113
+ if(!this.markupDisabledHelp) {
114
+ e.preventDefault();
115
+ this._markupHelp();
116
+ }
117
+ }
118
+ else if(e.ctrlKey && e.shiftKey && 'C' === e.key) {
119
+ if(!this.markupDisabledCancel) {
120
+ e.preventDefault();
121
+ this._markupCancel();
122
+ }
123
+ }
124
+ else if(e.ctrlKey && 's' === e.key) {
125
+ if(!this.markupDisabledSave) {
126
+ e.preventDefault();
127
+ this._markupSave();
128
+ }
129
+ }
130
+ else if(e.ctrlKey && e.shiftKey && 'A' === e.key) {
131
+ const disabled = 'ts' === this.state.TestSuitesStore.current.view;
132
+ if(!disabled) {
133
+ e.preventDefault();
134
+ this._add(e);
135
+ }
136
+ }
137
+ else if(e.ctrlKey && e.shiftKey && 'D' === e.key) {
138
+ const disabled = 0 === this.state.TestSuitesStore.systemUnderTestsChecked.size && 0 === this.state.TestSuitesStore.functionUnderTestsChecked.size && 0 === this.state.TestSuitesStore.testSuitesChecked.size;
139
+ if(!disabled) {
140
+ e.preventDefault();
141
+ this._delete(e);
142
+ }
143
+ }
144
+ }
145
+
146
+ getShortText() {
147
+ if('none' === this.state.TestSuitesStore.current.view) {
148
+ return 'sut';
149
+ }
150
+ else if('sut' === this.state.TestSuitesStore.current.view) {
151
+ return 'fut';
152
+ }
153
+ else if('fut' === this.state.TestSuitesStore.current.view) {
154
+ return 'ts';
155
+ }
156
+ }
157
+
158
+ getText() {
159
+ if('none' === this.state.TestSuitesStore.current.view) {
160
+ return 'System Under Test';
161
+ }
162
+ else if('sut' === this.state.TestSuitesStore.current.view) {
163
+ return 'Function Under Test';
164
+ }
165
+ else if('fut' === this.state.TestSuitesStore.current.view) {
166
+ return 'Test Suite';
167
+ }
168
+ }
169
+
170
+ _add(e) {
171
+ this._modalDialogAbstractionAdd.show();
172
+ }
173
+
174
+ _delete(e) {
175
+ const suts = [];
176
+ this.state.TestSuitesStore.systemUnderTestsChecked.forEach((sut) => {
177
+ suts.push(sut);
178
+ });
179
+ const futs = [];
180
+ this.state.TestSuitesStore.functionUnderTestsChecked.forEach((fut) => {
181
+ const found = suts.find((sut) => {
182
+ return sut.repo === fut.repo && sut.name === fut.sut;
183
+ });
184
+ if(!found) {
185
+ futs.push(fut);
186
+ }
187
+ });
188
+ const tses = [];
189
+ this.state.TestSuitesStore.testSuitesChecked.forEach((ts) => {
190
+ const found = suts.find((sut) => {
191
+ return sut.name === ts.sut;
192
+ });
193
+ if(!found) {
194
+ const foundFut = futs.find((fut) => {
195
+ return fut.repo === ts.repo && fut.sut === ts.sut && fut.fut === ts.fut;
196
+ });
197
+ if(!foundFut) {
198
+ tses.push(ts);
199
+ }
200
+ }
201
+ });
202
+ const isCurrentSut = suts.some((sut) => {
203
+ return sut.name === this.props.sut;
204
+ });
205
+ const isCurrentFut = futs.some((fut) => {
206
+ return fut.repo === this.repo && fut.sut === this.props.sut && fut.fut === this.props.fut;
207
+ });
208
+ this.dispatch(TestSuitesStore, new ActionTestSuitesSutClear());
209
+ this.dispatch(TestSuitesStore, new ActionTestSuitesFutClear());
210
+ this.dispatch(TestSuitesStore, new ActionTestSuitesTsClear());
211
+ if(0 !== suts.length) {
212
+ this.dispatch(SystemUnderTestStore, new ActionSystemUnderTestDelete(suts));
213
+ if(isCurrentSut) {
214
+ return this.context.history('');
215
+ }
216
+ }
217
+ if(0 !== futs.length) {
218
+ this.dispatch(FunctionUnderTestStore, new ActionFunctionUnderTestDelete(this.repo, this.props.sut, futs));
219
+ if(isCurrentFut) {
220
+ return this.context.history(`${this.props.sut}`);
221
+ }
222
+ }
223
+ if(0 !== tses.length) {
224
+ this.dispatch(TestSuiteStore, new ActionTestSuiteDelete(this.repo, this.props.sut, this.props.fut, tses));
225
+ }
226
+ }
227
+
228
+ renderNewButton() {
229
+ if('ts' !== this.state.TestSuitesStore.current.view) {
230
+ return (
231
+ <ButtonNew id="test_suite_new" icon="icon-file-new" size="aj_btn_sm" text={this.getShortText()} colorMark="markup_color" placement="bottom" heading="Add" content={this.getText()} shortcut="Ctrl+Shift+A" disabled={'ts' === this.state.TestSuitesStore.current.view}
232
+ onClick={(e) => {
233
+ this._add(e);
234
+ }}
235
+ />
236
+ );
237
+ }
238
+ }
239
+
240
+ renderRemoveButton() {
241
+ if('ts' !== this.state.TestSuitesStore.current.view) {
242
+ return (
243
+ <ButtonNew id="test_suite_remove" icon="icon-file-delete" size="aj_btn_sm" colorMark="markup_color" placement="bottom" heading="Delete" content="Checked" shortcut="Ctrl+Shift+D" disabled={0 === this.state.TestSuitesStore.systemUnderTestsChecked.size && 0 === this.state.TestSuitesStore.functionUnderTestsChecked.size && 0 === this.state.TestSuitesStore.testSuitesChecked.size}
244
+ onClick={(e) => {
245
+ this._delete(e);
246
+ }}
247
+ />
248
+ );
249
+ }
250
+ }
251
+
252
+ renderMarkupOpenButton() {
253
+ if('ts' === this.state.TestSuitesStore.current.view) {
254
+ this.markupDisabledOpen = this.state.TestSuiteStore.realtimeConnection !== TestSuiteStore.REALTIME_CONNECTION_OPEN || this.state.TestSuiteStore.markup.definition || (0 !== this.state.TestSuiteStore.execution);
255
+ return (
256
+ <ButtonNew id="test_suite_markup_open" icon="icon-markup-open" size="aj_btn_sm" colorMark="markup_color" placement="bottom" heading="Open" content="Markup" shortcut="Ctrl+O" disabled={this.markupDisabledOpen}
257
+ onClick={(e) => {
258
+ this._markupOpen();
259
+ }}
260
+ />
261
+ );
262
+ }
263
+ }
264
+
265
+ renderMarkupSaveButton() {
266
+ if('ts' === this.state.TestSuitesStore.current.view) {
267
+ this.markupDisabledSave = this.state.TestSuiteStore.realtimeConnection !== TestSuiteStore.REALTIME_CONNECTION_OPEN || this.state.TestSuiteStore.markup.content === this.state.TestSuiteStore.markup.contentOriginal;
268
+ return (
269
+ <ButtonNew id="test_suite_markup_save" icon="icon-markup-save" size="aj_btn_sm" colorMark="markup_color" placement="bottom" heading="Save" content="Markup" shortcut="Ctrl+S" disabled={this.markupDisabledSave}
270
+ onClick={(e) => {
271
+ this._markupSave();
272
+ }}
273
+ />
274
+ );
275
+ }
276
+ }
277
+
278
+ renderMarkupHelpButton() {
279
+ if('ts' === this.state.TestSuitesStore.current.view) {
280
+ this.markupDisabledHelp = this.state.TestSuiteStore.markup.definition;
281
+ return (
282
+ <ButtonNew id="test_suite_markup_help" icon="icon-markup-help" size="aj_btn_sm" colorMark="markup_color" placement="bottom" heading="Help" content="Markup" shortcut="Ctrl+?" disabled={this.markupDisabledHelp}
283
+ onClick={(e) => {
284
+ this._markupHelp();
285
+ }}
286
+ />
287
+ );
288
+ }
289
+ }
290
+
291
+ renderMarkupCancelButton() {
292
+ if('ts' === this.state.TestSuitesStore.current.view) {
293
+ this.markupDisabledCancel = !this.state.TestSuiteStore.markup.definition;
294
+ return (
295
+ <ButtonNew id="test_suite_markup_clear" icon="icon-markup-close" size="aj_btn_sm" colorMark="markup_color" placement="bottom" heading="Cancel" content="Markup" shortcut="Ctrl+Shift+C" disabled={this.markupDisabledCancel}
296
+ onClick={(e) => {
297
+ this._markupCancel();
298
+ }}
299
+ />
300
+ );
301
+ }
302
+ }
303
+
304
+ renderStartButton(tab) {
305
+ if('ts' === this.state.TestSuitesStore.current.view) {
306
+ return (
307
+ <ButtonNew id={`test_suite_start_${tab}`} colorMark={`test_suite_start_${tab}`} icon="icon-execution-play" size="aj_btn_sm" placement="bottom" heading="Run" content={`in the ${tab} tab`} disabled={this.state.TestSuiteStore.realtimeConnection !== TestSuiteStore.REALTIME_CONNECTION_OPEN || this.state.TestSuiteStore.markup.definition || (TestSuiteStore.EXECUTION_NOT_RUNNING !== this.state.TestSuiteStore.execution) || this.state.LoginStore.login.systemUnderTest !== this.props.sut}
308
+ onClick={(e) => {
309
+ if(!(this.state.TestSuiteStore.realtimeConnection !== TestSuiteStore.REALTIME_CONNECTION_OPEN || this.state.TestSuiteStore.markup.definition || (TestSuiteStore.EXECUTION_NOT_RUNNING !== this.state.TestSuiteStore.execution))) {
310
+ this.dispatch(TestSuiteStore, new ActionTestSuiteExecutionStart(this.repo, this.props.sut, this.props.fut, this.props.ts, this.state.LoginStore.login.systemUnderTest, this.state.LoginStore.login.systemUnderTestInstance, this.state.LoginStore.login.nodes, {slow:false}));
311
+ this.tabNavigation(tab);
312
+ }
313
+ }}
314
+ />
315
+ );
316
+ }
317
+ }
318
+
319
+ renderStartSlowMotionButton(tab) {
320
+ if('ts' === this.state.TestSuitesStore.current.view) {
321
+ return (
322
+ <ButtonNew id="test_suite_start_slow_motion" colorMark={`test_suite_${tab}`} icon="icon-execution-play-slow" size="aj_btn_sm" placement="bottom" heading="Run Slow Motion" content="in current tab" disabled={this.state.TestSuiteStore.realtimeConnection !== TestSuiteStore.REALTIME_CONNECTION_OPEN || this.state.TestSuiteStore.markup.definition || (TestSuiteStore.EXECUTION_NOT_RUNNING !== this.state.TestSuiteStore.execution) || this.state.LoginStore.login.systemUnderTest !== this.props.sut}
323
+ onClick={(e) => {
324
+ this.dispatch(TestSuiteStore, new ActionTestSuiteExecutionStart(this.repo, this.props.sut, this.props.fut, this.props.ts, this.state.LoginStore.login.systemUnderTest, this.state.LoginStore.login.systemUnderTestInstance, this.state.LoginStore.login.nodes, {slow:true}));
325
+ }}
326
+ />
327
+ );
328
+ }
329
+ }
330
+
331
+ renderStopButton(tab) {
332
+ if('ts' === this.state.TestSuitesStore.current.view) {
333
+ return (
334
+ <ButtonNew id={`test_suite_stop_${tab}`} colorMark={`test_suite_stop_${tab}`} icon="icon-execution-stop" size="aj_btn_sm" placement="bottom" heading="Stop" content="in current tab" disabled={this.state.TestSuiteStore.realtimeConnection !== TestSuiteStore.REALTIME_CONNECTION_OPEN || this.state.TestSuiteStore.markup.definition || (TestSuiteStore.EXECUTION_RUNNING !== this.state.TestSuiteStore.execution)}
335
+ onClick={(e) => {
336
+ this.dispatch(TestSuiteStore, new ActionTestSuiteExecutionStop());
337
+ }}
338
+ />
339
+ );
340
+ }
341
+ }
342
+
343
+ renderClearButton(tab) {
344
+ if('ts' === this.state.TestSuitesStore.current.view) {
345
+ return (
346
+ <ButtonNew id={`test_suite_clear_${tab}`} colorMark={`test_suite_clear_${tab}`} icon="icon-execution-clear" size="aj_btn_sm" placement="bottom" heading="Clear" content={`In the ${tab} tab`} disabled={this.state.TestSuiteStore.markup.definition || (0 !== this.state.TestSuiteStore.execution)}
347
+ onClick={(e) => {
348
+ this.dispatch(TestSuiteStore, new ActionTestSuiteClear(tab));
349
+ this.tabNavigation(tab);
350
+ }}
351
+ />
352
+ );
353
+ }
354
+ }
355
+
356
+ renderClearAllButton() {
357
+ if('ts' === this.state.TestSuitesStore.current.view) {
358
+ return (
359
+ <ButtonNew id="test_suite_clear_all" icon="icon-execution-clear" size="aj_btn_sm" placement="bottom" heading="Clear" content="all" disabled={this.state.TestSuiteStore.markup.definition || (0 !== this.state.TestSuiteStore.execution)}
360
+ onClick={(e) => {
361
+ this.dispatch(TestSuiteStore, new ActionTestSuiteClear('execution'));
362
+ this.dispatch(TestSuiteStore, new ActionTestSuiteClear('log'));
363
+ this.dispatch(TestSuiteStore, new ActionTestSuiteClear('sequence-diagram'));
364
+ }}
365
+ />
366
+ );
367
+ }
368
+ }
369
+
370
+ renderRealtimeInfo() {
371
+ let colorMark = '';
372
+ if(0 === this.state.TestSuiteStore.realtimeConnection) {
373
+ colorMark += 'red';
374
+ }
375
+ else if(1 === this.state.TestSuiteStore.realtimeConnection) {
376
+ colorMark += 'green';
377
+ }
378
+ const style = {
379
+ position: 'relative',
380
+ width: '26px',
381
+ height: '28px',
382
+ top: '2px'
383
+ };
384
+ return (
385
+ <Popover className="pull-right" placement="bottom" heading="Realtime Connection" style={style}>
386
+ <Icon name="icon-line-next-line" colorMark={colorMark} />
387
+ </Popover>
388
+ );
389
+ }
390
+
391
+ renderStageButton() {
392
+ return (
393
+ <ButtonNew id="test_suite_stage" colorMark="markup_color" icon="icon-stage" size="aj_btn_sm" placement="bottom" heading="Goto" content="Stage" aria-label="Stage"
394
+ onClick={(e) => {
395
+ this.context.history(`/stage`, {global: true});
396
+ }}
397
+ />
398
+ );
399
+ }
400
+
401
+ renderModalDialogAbstractionAdd() {
402
+ if('none' === this.state.TestSuitesStore.current.view) {
403
+ return (
404
+ <ModalDialogAbstractionAdd id="test_suites_sut_add" ref={(c) => this._modalDialogAbstractionAdd = c} type="sut" defaultMarkup={MiddleTestSuitesToolbar.DEFAULT_MARKUP_SUT} result={'success'} capitalFirst={true} repos={this.state.SystemUnderTestStore.repos} heading={`Add a new ${this.getText()}`} nameplaceholder={`The name of the ${this.getText()}`} descriptionplaceholder={`A description of the ${this.getText()}`}
405
+ onLoad={() => {
406
+ this.dispatch(SystemUnderTestStore, new ActionSystemUnderTestRepoGet());
407
+ }}
408
+ onAdd={(name, description, repo) => {
409
+ this.dispatch(SystemUnderTestStore, new ActionSystemUnderTestAdd(repo, name, description));
410
+ }}
411
+ onClear={() => {
412
+ }}
413
+ />
414
+ );
415
+ }
416
+ else if('sut' === this.state.TestSuitesStore.current.view) {
417
+ return (
418
+ <ModalDialogAbstractionAdd id="test_suites_fut_add" ref={(c) => this._modalDialogAbstractionAdd = c} type="fut" defaultMarkup={MiddleTestSuitesToolbar.DEFAULT_MARKUP_FUT} result={'success'} capitalFirst={true} heading={`Add a new ${this.getText()}`} nameplaceholder={`The name of the ${this.getText()}`} descriptionplaceholder={`A description of the ${this.getText()}`}
419
+ onAdd={(name, description) => {
420
+ this.dispatch(FunctionUnderTestStore, new ActionFunctionUnderTestAdd(this.repo, this.props.sut, name, description));
421
+ }}
422
+ onClear={() => {
423
+ }}
424
+ />
425
+ );
426
+ }
427
+ else if('fut' === this.state.TestSuitesStore.current.view) {
428
+ return (
429
+ <ModalDialogAbstractionAdd id="test_suites_ts_add" ref={(c) => this._modalDialogAbstractionAdd = c} type="ts" defaultMarkup={MiddleTestSuitesToolbar.DEFAULT_MARKUP_TS} result={'success'} capitalFirst={true} heading={`Add a new ${this.getText()}`} nameplaceholder={`The name of the ${this.getText()}`} descriptionplaceholder={`A description of the ${this.getText()}`}
430
+ onAdd={(name, description) => {
431
+ this.dispatch(TestSuiteStore, new ActionTestSuiteAdd(this.repo, this.props.sut, this.props.fut, name, description));
432
+ }}
433
+ onClear={() => {
434
+ }}
435
+ />
436
+ );
437
+ }
438
+ }
439
+
440
+ getIterationOptions() {
441
+ let key = 0;
442
+ const values = [1, 2, 5, 10, 25, 50, 250, 1000];
443
+ return values.map((value) => {
444
+ return (<option value={value} key={key++}>{value}</option>);
445
+ });
446
+ }
447
+
448
+ renderIterationOptions() {
449
+ if('ts' === this.state.TestSuitesStore.current.view) {
450
+ return (
451
+ <div className="middle_test_suite_iterations">
452
+ <label className="middle_login_toolbar_component" htmlFor="middle_test_suite_iterations">Iterations:</label>
453
+ <select id="middle_test_suite_iterations" className="input-sm" required value={this.state.TestSuiteStore.iterationsTs} disabled={this.state.TestSuiteStore.realtimeConnection !== TestSuiteStore.REALTIME_CONNECTION_OPEN || this.state.TestSuiteStore.markup.definition || (TestSuiteStore.EXECUTION_NOT_RUNNING !== this.state.TestSuiteStore.execution)}
454
+ onChange={(e) => {
455
+ this.dispatch(TestSuiteStore, new ActionTestSuiteIterations(Number.parseInt(e.target.value)));
456
+ }}
457
+ >
458
+ {this.getIterationOptions()}
459
+ </select>
460
+ </div>
461
+ );
462
+ }
463
+ }
464
+
465
+ render() {
466
+ const sut = !this.props.sut ? undefined : this.state.SystemUnderTestStore.systemUnderTests.find((sut) => {
467
+ return sut.name === this.props.sut;
468
+ });
469
+ this.repo = sut ? sut.repo : null;
470
+ return (
471
+ <div className="middle_toolbar">
472
+ {this.renderModalDialogAbstractionAdd()}
473
+ <div className="toolbar" role="toolbar" aria-label="...">
474
+ <MiddleFilter sut fut/>
475
+ <div className="aj_btn_group" role="group" aria-label="...">
476
+ {this.renderNewButton()}
477
+ {this.renderRemoveButton()}
478
+ </div>
479
+ <div className="aj_btn_group" role="group" aria-label="...">
480
+ {this.renderMarkupOpenButton()}
481
+ {this.renderMarkupSaveButton()}
482
+ {this.renderMarkupHelpButton()}
483
+ {this.renderMarkupCancelButton()}
484
+ </div>
485
+ <div className="aj_btn_group" role="group" aria-label="...">
486
+ {this.renderStartButton('execution')}
487
+ {this.renderClearButton('execution')}
488
+ </div>
489
+ <div className="aj_btn_group" role="group" aria-label="...">
490
+ {this.renderStartButton('log')}
491
+ {this.renderClearButton('log')}
492
+ </div>
493
+ <div className="aj_btn_group" role="group" aria-label="...">
494
+ {this.renderStartButton('sequence-diagram')}
495
+ {this.renderClearButton('sequence-diagram')}
496
+ </div>
497
+ <div className="aj_btn_group" role="group" aria-label="...">
498
+ {this.renderStartSlowMotionButton()}
499
+ {this.renderStopButton()}
500
+ {this.renderClearAllButton()}
501
+ </div>
502
+ <div className="aj_btn_group" role="group" aria-label="..." style={{position:"absolute",display:"inline-block",border:"1px solid #666",borderRadius:"3px",marginLeft:"4px",boxShadow:"2px 1px 3px 0px rgba(44, 44, 44, 0.7)"}}>
503
+ {this.renderIterationOptions()}
504
+ </div>
505
+ <div className="aj_btn_group pull-right" role="group" aria-label="...">
506
+ {this.renderRealtimeInfo()}
507
+ </div>
508
+ <div className="aj_btn_group pull-right" role="group" aria-label="...">
509
+ {this.renderStageButton()}
510
+ </div>
511
+ </div>
512
+ </div>
513
+ );
514
+ }
515
+
516
+ tabNavigation(tab) {
517
+ if(tab !== this.props.tab) {
518
+ this.context.history(`${this.props.sut}/${this.props.fut}/${this.props.ts}/${tab}`, {replace: true});
519
+ }
520
+ }
521
+ }
522
+
523
+
524
+ MiddleTestSuitesToolbar.contextType = RouterContext;