@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.
- package/.gitattributes +29 -0
- package/.vscode/launch.json +18 -0
- package/CHANGELOG.md +79 -0
- package/LICENSE.txt +96 -0
- package/README.md +86 -0
- package/contributors.txt +3 -0
- package/main.js +14 -0
- package/npm-post-install.js +618 -0
- package/npm-shrinkwrap.json +14 -0
- package/package.json +16 -0
- package/project/actorjs-project.tree +466 -0
- package/project/client/actions/action-actor-editor/action-actor-editor-file.js +101 -0
- package/project/client/actions/action-actor-editor/action-actor-editor-folder.js +41 -0
- package/project/client/actions/action-actor-editor/action-actor-editor-persistent-data.js +23 -0
- package/project/client/actions/action-actor-editor/action-actor-editor-project.js +23 -0
- package/project/client/actions/action-actor-editor/data-action-actor-editor-file.js +70 -0
- package/project/client/actions/action-actor-editor/data-action-actor-editor-folder.js +26 -0
- package/project/client/actions/action-actor-editor/data-action-actor-editor-project.js +27 -0
- package/project/client/actions/action-actor-editor/realtime-action-actors-editor.js +14 -0
- package/project/client/actions/action-addresses/action-addresses.js +180 -0
- package/project/client/actions/action-addresses/data-action-addresses.js +174 -0
- package/project/client/actions/action-console/action-console.js +11 -0
- package/project/client/actions/action-console/data-action-console.js +12 -0
- package/project/client/actions/action-content/action-content.js +101 -0
- package/project/client/actions/action-content/data-action-content.js +90 -0
- package/project/client/actions/action-function-under-test.js +45 -0
- package/project/client/actions/action-load/action-load.js +29 -0
- package/project/client/actions/action-load/data-action-load.js +4 -0
- package/project/client/actions/action-login/action-login.js +95 -0
- package/project/client/actions/action-login/data-action-login.js +83 -0
- package/project/client/actions/action-plugins/action-plugins.js +17 -0
- package/project/client/actions/action-plugins/data-action-plugins.js +20 -0
- package/project/client/actions/action-plus-services/action-plus-services.js +17 -0
- package/project/client/actions/action-plus-services/data-action-plus-services.js +20 -0
- package/project/client/actions/action-repos/action-repos.js +35 -0
- package/project/client/actions/action-repos/data-action-repos.js +42 -0
- package/project/client/actions/action-stack-editor/action-stack-editor-file.js +84 -0
- package/project/client/actions/action-stack-editor/action-stack-editor-folder.js +41 -0
- package/project/client/actions/action-stack-editor/action-stack-editor-persistent-data.js +23 -0
- package/project/client/actions/action-stack-editor/action-stack-editor-project.js +29 -0
- package/project/client/actions/action-stack-editor/data-action-stack-editor-file.js +49 -0
- package/project/client/actions/action-stack-editor/data-action-stack-editor-folder.js +26 -0
- package/project/client/actions/action-stack-editor/data-action-stack-editor-project.js +34 -0
- package/project/client/actions/action-sut-fut-filter.js +23 -0
- package/project/client/actions/action-system-under-test/action-system-under-test.js +164 -0
- package/project/client/actions/action-system-under-test/data-action-system-under-test.js +70 -0
- package/project/client/actions/action-test-case/action-test-case.js +323 -0
- package/project/client/actions/action-test-case/data-action-test-case.js +133 -0
- package/project/client/actions/action-test-case/realtime-action-test-case.js +69 -0
- package/project/client/actions/action-test-cases.js +49 -0
- package/project/client/actions/action-test-data/action-test-data.js +77 -0
- package/project/client/actions/action-test-data/data-action-test-data.js +62 -0
- package/project/client/actions/action-test-suite/action-test-suite.js +122 -0
- package/project/client/actions/action-test-suite/data-action-test-suite.js +76 -0
- package/project/client/actions/action-test-suite/realtime-action-test-suite.js +20 -0
- package/project/client/actions/action-test-suites.js +47 -0
- package/project/client/actor-default.js +18 -0
- package/project/client/communication/messages/messages-c-to-c/message-new-actor-index.js +15 -0
- package/project/client/communication/messages/messages-c-to-c/message-test-case-clear.js +15 -0
- package/project/client/communication/messages/messages-c-to-c/message-test-case-not-started.js +15 -0
- package/project/client/communication/messages/messages-c-to-c/message-test-suite-clear.js +15 -0
- package/project/client/components/footer/footer.jsx +94 -0
- package/project/client/components/header/header-status-login.jsx +78 -0
- package/project/client/components/header/header-status-staging-environment.jsx +132 -0
- package/project/client/components/header/header.jsx +27 -0
- package/project/client/components/header/header_icon.jsx +37 -0
- package/project/client/components/header/header_status.jsx +33 -0
- package/project/client/components/middle/abbreviation/middle-abbreviation-toolbar.jsx +126 -0
- package/project/client/components/middle/abbreviation/middle-abbreviation.jsx +27 -0
- package/project/client/components/middle/actor-editor/middle-actor-editor-sidebar.jsx +101 -0
- package/project/client/components/middle/actor-editor/middle-actor-editor-toolbar.jsx +612 -0
- package/project/client/components/middle/actor-editor/middle-actor-editor-view.jsx +157 -0
- package/project/client/components/middle/actor-editor/middle-actor-editor.jsx +38 -0
- package/project/client/components/middle/addresses/helpers/stage-filter.js +32 -0
- package/project/client/components/middle/addresses/middle-addresses-toolbar.jsx +183 -0
- package/project/client/components/middle/addresses/middle-addresses-view-client-address.jsx +67 -0
- package/project/client/components/middle/addresses/middle-addresses-view-client-interface.jsx +68 -0
- package/project/client/components/middle/addresses/middle-addresses-view-dns.jsx +67 -0
- package/project/client/components/middle/addresses/middle-addresses-view-dst.jsx +67 -0
- package/project/client/components/middle/addresses/middle-addresses-view-network-interface.jsx +67 -0
- package/project/client/components/middle/addresses/middle-addresses-view-ports.jsx +67 -0
- package/project/client/components/middle/addresses/middle-addresses-view-server-address.jsx +68 -0
- package/project/client/components/middle/addresses/middle-addresses-view-server-interface.jsx +68 -0
- package/project/client/components/middle/addresses/middle-addresses-view-src.jsx +67 -0
- package/project/client/components/middle/addresses/middle-addresses-view-srv.jsx +67 -0
- package/project/client/components/middle/addresses/middle-addresses-view-sut-address.jsx +67 -0
- package/project/client/components/middle/addresses/middle-addresses-view-sut-interface.jsx +67 -0
- package/project/client/components/middle/addresses/middle-addresses-view.jsx +155 -0
- package/project/client/components/middle/addresses/middle-addresses.jsx +39 -0
- package/project/client/components/middle/content/middle-content-toolbar.jsx +135 -0
- package/project/client/components/middle/content/middle-content-view-audio.jsx +60 -0
- package/project/client/components/middle/content/middle-content-view-documents.jsx +60 -0
- package/project/client/components/middle/content/middle-content-view-image.jsx +60 -0
- package/project/client/components/middle/content/middle-content-view-other.jsx +60 -0
- package/project/client/components/middle/content/middle-content-view-text.jsx +60 -0
- package/project/client/components/middle/content/middle-content-view-video.jsx +60 -0
- package/project/client/components/middle/content/middle-content-view.jsx +111 -0
- package/project/client/components/middle/content/middle-content.jsx +39 -0
- package/project/client/components/middle/middle-not-found.jsx +24 -0
- package/project/client/components/middle/middle-sut-fut-filter.jsx +90 -0
- package/project/client/components/middle/middle.jsx +90 -0
- package/project/client/components/middle/middle_sidebar.jsx +256 -0
- package/project/client/components/middle/plugins/middle-plugins.jsx +64 -0
- package/project/client/components/middle/plus-services/middle-plus-services.jsx +63 -0
- package/project/client/components/middle/repos/middle-repos-toolbar.jsx +137 -0
- package/project/client/components/middle/repos/middle-repos-view.jsx +47 -0
- package/project/client/components/middle/repos/middle-repos.jsx +36 -0
- package/project/client/components/middle/stack-editor/middle-stack-editor-sidebar.jsx +101 -0
- package/project/client/components/middle/stack-editor/middle-stack-editor-toolbar.jsx +525 -0
- package/project/client/components/middle/stack-editor/middle-stack-editor-view.jsx +156 -0
- package/project/client/components/middle/stack-editor/middle-stack-editor.jsx +38 -0
- package/project/client/components/middle/staging/helper.js +58 -0
- package/project/client/components/middle/staging/middle-staging-modal-interface-create.jsx +244 -0
- package/project/client/components/middle/staging/middle-staging-modal-interface-delete.jsx +186 -0
- package/project/client/components/middle/staging/middle-staging-toolbar.jsx +267 -0
- package/project/client/components/middle/staging/middle-staging-view.jsx +67 -0
- package/project/client/components/middle/staging/middle-staging.jsx +40 -0
- package/project/client/components/middle/staging/tabs/middle-staging-tab-logical.jsx +27 -0
- package/project/client/components/middle/staging/tabs/middle-staging-tab-report.jsx +62 -0
- package/project/client/components/middle/staging/tabs/middle-staging-tab-repos.jsx +96 -0
- package/project/client/components/middle/staging/tabs/middle-staging-tab-setup.jsx +73 -0
- package/project/client/components/middle/start/middle-start-toolbar.jsx +134 -0
- package/project/client/components/middle/start/middle-start-view.jsx +335 -0
- package/project/client/components/middle/start/middle-start.jsx +36 -0
- package/project/client/components/middle/system-under-test/middle-system-under-test-toolbar.jsx +171 -0
- package/project/client/components/middle/system-under-test/middle-system-under-test-view-multi.jsx +119 -0
- package/project/client/components/middle/system-under-test/middle-system-under-test-view-single.jsx +85 -0
- package/project/client/components/middle/system-under-test/middle-system-under-test.jsx +40 -0
- package/project/client/components/middle/system-under-test/tabs/middle-system-under-test-tab-instances.jsx +164 -0
- package/project/client/components/middle/system-under-test/tabs/middle-system-under-test-tab-nodes.jsx +160 -0
- package/project/client/components/middle/system-under-test/tabs/middle-system-under-test-tab-specification.jsx +463 -0
- package/project/client/components/middle/test-cases/general-helpers/actors-sorting.js +52 -0
- package/project/client/components/middle/test-cases/middle-test-cases-not-found.jsx +51 -0
- package/project/client/components/middle/test-cases/middle-test-cases-toolbar.jsx +804 -0
- package/project/client/components/middle/test-cases/middle-test-cases-view-columns.jsx +222 -0
- package/project/client/components/middle/test-cases/middle-test-cases-view-fut.jsx +105 -0
- package/project/client/components/middle/test-cases/middle-test-cases-view-recent.jsx +74 -0
- package/project/client/components/middle/test-cases/middle-test-cases-view-sut.jsx +98 -0
- package/project/client/components/middle/test-cases/middle-test-cases-view-tc.jsx +108 -0
- package/project/client/components/middle/test-cases/middle-test-cases-view-test-case.jsx +104 -0
- package/project/client/components/middle/test-cases/middle-test-cases.jsx +59 -0
- package/project/client/components/middle/test-cases/tabs/middle-test-cases-tab-analyze.jsx +289 -0
- package/project/client/components/middle/test-cases/tabs/middle-test-cases-tab-debug.jsx +699 -0
- package/project/client/components/middle/test-cases/tabs/middle-test-cases-tab-definition.jsx +103 -0
- package/project/client/components/middle/test-cases/tabs/middle-test-cases-tab-execution.jsx +321 -0
- package/project/client/components/middle/test-cases/tabs/middle-test-cases-tab-log.jsx +150 -0
- package/project/client/components/middle/test-cases/tabs/middle-test-cases-tab-sequence-diagram.jsx +160 -0
- package/project/client/components/middle/test-cases/tabs/middle-test-cases-tab-specification.jsx +472 -0
- package/project/client/components/middle/test-data/middle-test-data-toolbar.jsx +135 -0
- package/project/client/components/middle/test-data/middle-test-data-view-environment.jsx +64 -0
- package/project/client/components/middle/test-data/middle-test-data-view-general.jsx +61 -0
- package/project/client/components/middle/test-data/middle-test-data-view-output.jsx +60 -0
- package/project/client/components/middle/test-data/middle-test-data-view-system.jsx +61 -0
- package/project/client/components/middle/test-data/middle-test-data-view.jsx +98 -0
- package/project/client/components/middle/test-data/middle-test-data.jsx +39 -0
- package/project/client/components/middle/test-suites/middle-test-suites-toolbar.jsx +524 -0
- package/project/client/components/middle/test-suites/middle-test-suites-view-columns.jsx +222 -0
- package/project/client/components/middle/test-suites/middle-test-suites-view-fut.jsx +105 -0
- package/project/client/components/middle/test-suites/middle-test-suites-view-recent.jsx +74 -0
- package/project/client/components/middle/test-suites/middle-test-suites-view-sut.jsx +96 -0
- package/project/client/components/middle/test-suites/middle-test-suites-view-test-suite.jsx +593 -0
- package/project/client/components/middle/test-suites/middle-test-suites-view-ts.jsx +109 -0
- package/project/client/components/middle/test-suites/middle-test-suites.jsx +55 -0
- package/project/client/components/middle/test-suites/tabs/middle-test-suites-tab-definition.jsx +74 -0
- package/project/client/components/middle/test-suites/tabs/middle-test-suites-tab-execution.jsx +544 -0
- package/project/client/components/middle/test-suites/tabs/middle-test-suites-tab-log.jsx +118 -0
- package/project/client/components/middle/test-suites/tabs/middle-test-suites-tab-sequence-diagram.jsx +155 -0
- package/project/client/components/middle/user/middle-user-toolbar.jsx +32 -0
- package/project/client/components/middle/user/middle-user-view.jsx +32 -0
- package/project/client/components/middle/user/middle-user.jsx +39 -0
- package/project/client/components/middle/videos/middle-videos-view.jsx +135 -0
- package/project/client/components/middle/videos/middle-videos.jsx +32 -0
- package/project/client/css/components/component-video.css +15 -0
- package/project/client/css/components/modal-dialog-file.css +4 -0
- package/project/client/css/footer/footer-info.css +18 -0
- package/project/client/css/footer/footer-logo.css +39 -0
- package/project/client/css/from-code-editor/sidebar-dark.css +20 -0
- package/project/client/css/from-code-editor/sidebar-light.css +18 -0
- package/project/client/css/from-code-editor/tab.css +19 -0
- package/project/client/css/from-code-editor/tab_dark.css +9 -0
- package/project/client/css/from-code-editor/tab_light.css +9 -0
- package/project/client/css/from-code-editor/view-dark.css +11 -0
- package/project/client/css/from-code-editor/view-light.css +10 -0
- package/project/client/css/header/header-status.css +114 -0
- package/project/client/css/header/header.css +16 -0
- package/project/client/css/log-inner.css +46 -0
- package/project/client/css/main.css +4 -0
- package/project/client/css/middle/actor-editor.css +30 -0
- package/project/client/css/middle/address.css +57 -0
- package/project/client/css/middle/content.css +41 -0
- package/project/client/css/middle/login.css +118 -0
- package/project/client/css/middle/middle-start.css +5 -0
- package/project/client/css/middle/middle.css +13 -0
- package/project/client/css/middle/middle_sidebar.css +44 -0
- package/project/client/css/middle/middle_view.css +41 -0
- package/project/client/css/middle/stack-editor.css +30 -0
- package/project/client/css/middle/start/middle_start.css +94 -0
- package/project/client/css/middle/systems-under-test/systems-under-test-specification.css +48 -0
- package/project/client/css/middle/systems-under-test/systems-under-test.css +49 -0
- package/project/client/css/middle/test-case-and-test-suite/analyze.css +5 -0
- package/project/client/css/middle/test-case-and-test-suite/debug.css +281 -0
- package/project/client/css/middle/test-case-and-test-suite/execution.css +7 -0
- package/project/client/css/middle/test-case-and-test-suite/log.css +13 -0
- package/project/client/css/middle/test-case-and-test-suite/seq-dia.css +13 -0
- package/project/client/css/middle/test-cases/test-cases-analyze.css +9 -0
- package/project/client/css/middle/test-cases/test-cases-debug.css +61 -0
- package/project/client/css/middle/test-cases/test-cases-execution.css +4 -0
- package/project/client/css/middle/test-cases/test-cases-specification.css +82 -0
- package/project/client/css/middle/test-cases/test-cases.css +189 -0
- package/project/client/css/middle/test-data.css +52 -0
- package/project/client/css/middle/test-suites.css +525 -0
- package/project/client/css/middle/videos/videos.css +37 -0
- package/project/client/css/middle_test_cases_screen.css +8 -0
- package/project/client/css/middle_toolbar.css +10 -0
- package/project/client/css/repos.css +15 -0
- package/project/client/css/same_size_as_parent.css +6 -0
- package/project/client/css/test.css +116 -0
- package/project/client/html/index.html +61 -0
- package/project/client/main.jsx +59 -0
- package/project/client/stores/abbreviation-store.js +57 -0
- package/project/client/stores/actor-editor-store.js +758 -0
- package/project/client/stores/addresses-store.js +419 -0
- package/project/client/stores/console-store.js +27 -0
- package/project/client/stores/content-store.js +237 -0
- package/project/client/stores/documentation-store.js +14 -0
- package/project/client/stores/education-store.js +14 -0
- package/project/client/stores/filter-store.js +30 -0
- package/project/client/stores/function-under-test-store.js +58 -0
- package/project/client/stores/load-store.js +92 -0
- package/project/client/stores/login-store.js +232 -0
- package/project/client/stores/plugins-store.js +255 -0
- package/project/client/stores/plus-services-store.js +267 -0
- package/project/client/stores/repos-store.js +160 -0
- package/project/client/stores/stack-editor-store.js +691 -0
- package/project/client/stores/system-under-test-store.js +340 -0
- package/project/client/stores/test-case-store.js +1118 -0
- package/project/client/stores/test-cases-store.js +106 -0
- package/project/client/stores/test-data-store.js +181 -0
- package/project/client/stores/test-suite-store.js +438 -0
- package/project/client/stores/test-suites-store.js +86 -0
- package/project/client/stores/workshop-store.js +15 -0
- package/project/server/os/os-hardware.js +83 -0
- package/project/server/os/os-networks.js +50 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorBuild.js +185 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFileDelete.js +21 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFileGet.js +18 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFileInlineGet.js +60 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFileInlineUpdate.js +69 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFileNew.js +396 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFileRename.js +28 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFileUpdate.js +18 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFolderDelete.js +21 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFolderNew.js +19 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorFolderUpdate.js +19 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorProjectGet.js +77 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorProjectToggle.js +18 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorProjectUpdate.js +22 -0
- package/project/server/plugin-data/actor-editor/plugin_data_ActorEditorStacksGet.js +54 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesClientAddressGet.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesClientAddressUpdate.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesClientInterfaceGet.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesClientInterfaceUpdate.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesDnsGet.js +20 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesDnsUpdate.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesDstGet.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesDstUpdate.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesNetworkInterfaceGet.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesNetworkInterfaceUpdate.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesPortsGet.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesPortsUpdate.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesServerAddressGet.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesServerAddressUpdate.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesServerInterfaceGet.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesServerInterfaceUpdate.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesSrcGet.js +38 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesSrcUpdate.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesSrvGet.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesSrvUpdate.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesSutAddressGet.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesSutAddressUpdate.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesSutInterfaceGet.js +19 -0
- package/project/server/plugin-data/addresses/plugin_data_AddressesSutInterfaceUpdate.js +19 -0
- package/project/server/plugin-data/console/plugin_data_ConsoleClear.js +20 -0
- package/project/server/plugin-data/content/plugin_data_ContentAudioGet.js +19 -0
- package/project/server/plugin-data/content/plugin_data_ContentAudioUpdate.js +19 -0
- package/project/server/plugin-data/content/plugin_data_ContentDocumentsGet.js +19 -0
- package/project/server/plugin-data/content/plugin_data_ContentDocumentsUpdate.js +19 -0
- package/project/server/plugin-data/content/plugin_data_ContentImageGet.js +19 -0
- package/project/server/plugin-data/content/plugin_data_ContentImageUpdate.js +19 -0
- package/project/server/plugin-data/content/plugin_data_ContentOtherGet.js +19 -0
- package/project/server/plugin-data/content/plugin_data_ContentOtherUpdate.js +19 -0
- package/project/server/plugin-data/content/plugin_data_ContentTextGet.js +19 -0
- package/project/server/plugin-data/content/plugin_data_ContentTextUpdate.js +19 -0
- package/project/server/plugin-data/content/plugin_data_ContentVideoGet.js +19 -0
- package/project/server/plugin-data/content/plugin_data_ContentVideoUpdate.js +19 -0
- package/project/server/plugin-data/function-under-test/plugin_data_FunctionUnderTestAdd.js +60 -0
- package/project/server/plugin-data/function-under-test/plugin_data_FunctionUnderTestDelete.js +20 -0
- package/project/server/plugin-data/function-under-test/plugin_data_FunctionUnderTestGet.js +92 -0
- package/project/server/plugin-data/login/plugin_data_LoginButtonsAdd.js +18 -0
- package/project/server/plugin-data/login/plugin_data_LoginButtonsGet.js +18 -0
- package/project/server/plugin-data/login/plugin_data_LoginButtonsUpdate.js +18 -0
- package/project/server/plugin-data/login/plugin_data_LoginCreateInterfaces.js +73 -0
- package/project/server/plugin-data/login/plugin_data_LoginDataGet.js +88 -0
- package/project/server/plugin-data/login/plugin_data_LoginDeleteInterfaces.js +38 -0
- package/project/server/plugin-data/login/plugin_data_LoginGet.js +22 -0
- package/project/server/plugin-data/login/plugin_data_LoginPing.js +72 -0
- package/project/server/plugin-data/login/plugin_data_LoginReposGet.js +18 -0
- package/project/server/plugin-data/login/plugin_data_LoginUpdate.js +44 -0
- package/project/server/plugin-data/login/plugin_data_LoginWsGet.js +39 -0
- package/project/server/plugin-data/plugins/plugin_data_PluginsBundleGet.js +34 -0
- package/project/server/plugin-data/plugins/plugin_data_PluginsGet.js +26 -0
- package/project/server/plugin-data/plus-services/plugin_data_PlusServicesBundleGet.js +34 -0
- package/project/server/plugin-data/plus-services/plugin_data_PlusServicesGet.js +78 -0
- package/project/server/plugin-data/repos/plugin_data_ReposAnalyzeLocalReposGet.js +142 -0
- package/project/server/plugin-data/repos/plugin_data_ReposClone.js +154 -0
- package/project/server/plugin-data/repos/plugin_data_ReposGet.js +18 -0
- package/project/server/plugin-data/repos/plugin_data_ReposVerifyGit.js +79 -0
- package/project/server/plugin-data/repos/repos.js +94 -0
- package/project/server/plugin-data/stack-editor/helpers/template.js +351 -0
- package/project/server/plugin-data/stack-editor/plugin_data_StackEditorBuild.js +185 -0
- package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFileDelete.js +21 -0
- package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFileGet.js +18 -0
- package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFileNew.js +24 -0
- package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFileRename.js +27 -0
- package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFileUpdate.js +18 -0
- package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFolderDelete.js +21 -0
- package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFolderNew.js +19 -0
- package/project/server/plugin-data/stack-editor/plugin_data_StackEditorFolderUpdate.js +19 -0
- package/project/server/plugin-data/stack-editor/plugin_data_StackEditorProjectGet.js +77 -0
- package/project/server/plugin-data/stack-editor/plugin_data_StackEditorProjectToggle.js +18 -0
- package/project/server/plugin-data/stack-editor/plugin_data_StackEditorProjectUpdate.js +22 -0
- package/project/server/plugin-data/stack-editor/plugin_data_StackEditorWizard.js +43 -0
- package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestAdd.js +72 -0
- package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestDelete.js +20 -0
- package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestGet.js +138 -0
- package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestInstancesUpdate.js +21 -0
- package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestNodesUpdate.js +21 -0
- package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestRepoAdd.js +46 -0
- package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestRepoGet.js +57 -0
- package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestSpecificationUpdate.js +21 -0
- package/project/server/plugin-data/system-under-test/plugin_data_SystemUnderTestUpdate.js +24 -0
- package/project/server/plugin-data/test-case/debug.js +39 -0
- package/project/server/plugin-data/test-case/debugger-api.js +398 -0
- package/project/server/plugin-data/test-case/debugger.js +129 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseActorsFileGet.js +26 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseAdd.js +74 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseAnalyze.js +451 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseButtonsAdd.js +19 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseButtonsGet.js +19 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseButtonsUpdate.js +19 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugBreakpointClear.js +56 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugBreakpointClearAll.js +23 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugBreakpointSet.js +118 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugBreakpointUpdate.js +84 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugGet.js +40 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugGetMembers.js +40 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugGetProperty.js +47 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugGetSource.js +29 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugLoad.js +35 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugRun.js +52 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugStart.js +217 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseDebugStop.js +23 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseDelete.js +20 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseExecutionStart.js +73 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseGet.js +118 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseRecentDelete.js +57 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseRecentGet.js +20 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseRecentUpdate.js +62 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseRename.js +43 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseSpecificationUpdate.js +21 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseStacksGet.js +54 -0
- package/project/server/plugin-data/test-case/plugin_data_TestCaseUpdate.js +42 -0
- package/project/server/plugin-data/test-data/plugin_data_TestDataEnvironmentGet.js +72 -0
- package/project/server/plugin-data/test-data/plugin_data_TestDataEnvironmentUpdate.js +19 -0
- package/project/server/plugin-data/test-data/plugin_data_TestDataGeneralGet.js +19 -0
- package/project/server/plugin-data/test-data/plugin_data_TestDataGeneralUpdate.js +19 -0
- package/project/server/plugin-data/test-data/plugin_data_TestDataOutputGet.js +19 -0
- package/project/server/plugin-data/test-data/plugin_data_TestDataOutputUpdate.js +19 -0
- package/project/server/plugin-data/test-data/plugin_data_TestDataSystemGet.js +19 -0
- package/project/server/plugin-data/test-data/plugin_data_TestDataSystemUpdate.js +19 -0
- package/project/server/plugin-data/test-suite/plugin_data_TestSuiteAdd.js +51 -0
- package/project/server/plugin-data/test-suite/plugin_data_TestSuiteButtonsAdd.js +19 -0
- package/project/server/plugin-data/test-suite/plugin_data_TestSuiteButtonsGet.js +18 -0
- package/project/server/plugin-data/test-suite/plugin_data_TestSuiteButtonsUpdate.js +18 -0
- package/project/server/plugin-data/test-suite/plugin_data_TestSuiteDelete.js +20 -0
- package/project/server/plugin-data/test-suite/plugin_data_TestSuiteExecutionStart.js +401 -0
- package/project/server/plugin-data/test-suite/plugin_data_TestSuiteGet.js +110 -0
- package/project/server/plugin-data/test-suite/plugin_data_TestSuiteRecentDelete.js +54 -0
- package/project/server/plugin-data/test-suite/plugin_data_TestSuiteRecentGet.js +18 -0
- package/project/server/plugin-data/test-suite/plugin_data_TestSuiteRecentUpdate.js +59 -0
- package/project/server/plugin-data/test-suite/plugin_data_TestSuiteUpdate.js +42 -0
- package/project/server/plugin-service/platform-fs/plugin_service_Platform-Fs.js +65 -0
- package/project/server/plugin-service/platform-fs/verify-or-create-files.js +57 -0
- package/repos.json +19 -0
- package/server-test-case.js +50 -0
- package/settings - Copy (2).json +77 -0
- package/settings.json +63 -0
- package/workspace/Bundle-AppLayer-client.bld +77 -0
- package/workspace/Bundle-AppLayer-cs.bld +37 -0
- package/workspace/Client-AppLayer-client-jsx.bld +10 -0
- package/workspace/Client-AppLayer-client.bld +10 -0
- package/workspace/Client-AppLayer-cs.bld +10 -0
- package/workspace/Server-AppLayer-cs.bld +12 -0
- package/workspace/Server-AppLayer-server.bld +12 -0
- package/workspace/actorjs.wrk +336 -0
- package/workspace/clean-all.tsk +11 -0
- package/workspace/clean-build.tsk +8 -0
- package/workspace/clean-compiled.tsk +9 -0
- package/workspace/clean-dist.tsk +7 -0
- package/workspace/clean-generated.tsk +7 -0
- package/workspace/clean-node.tsk +7 -0
- package/workspace/clean-temp.tsk +7 -0
- package/workspace/client-css-actorjs-bundle.bld +10 -0
- package/workspace/list-debug.tsk +4 -0
- package/workspace/list-default.tsk +4 -0
- package/workspace/list-redebug.tsk +4 -0
- package/workspace/list-release.tsk +4 -0
- package/workspace/list-rerelease.tsk +4 -0
- package/workspace/list-start.tsk +4 -0
- package/workspace/server-html-rc.bld +10 -0
- package/workspace/server-image-actorjs-rc.bld +9 -0
- package/workspace/simple-help.tsk +5 -0
- 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;
|