@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
package/project/client/components/middle/test-suites/tabs/middle-test-suites-tab-execution.jsx
ADDED
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
import LoginStore from '../../../../stores/login-store';
|
|
5
|
+
import TestSuiteStore from '../../../../stores/test-suite-store';
|
|
6
|
+
import Link from 'z-abs-complayer-router-client/client/react-component/link';
|
|
7
|
+
import AppProtocolConst from 'z-abs-funclayer-engine-cs/clientServer/communication/app-protocol/app-protocol-const';
|
|
8
|
+
import ActorResultConst from 'z-abs-funclayer-engine-cs/clientServer/execution/actor-result-const';
|
|
9
|
+
import ReactComponentRealtime from 'z-abs-corelayer-client/client/react-component/react-component-realtime';
|
|
10
|
+
import HighResolutionDate from 'z-abs-corelayer-cs/clientServer/time/high-resolution-date';
|
|
11
|
+
import HighResolutionDuration from 'z-abs-corelayer-cs/clientServer/time/high-resolution-duration';
|
|
12
|
+
import React from 'react';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export default class MiddleTestSuitesTabExecution extends ReactComponentRealtime {
|
|
16
|
+
constructor(props) {
|
|
17
|
+
super(props, [TestSuiteStore, LoginStore]);
|
|
18
|
+
this.sumResultValue = ActorResultConst.NONE;
|
|
19
|
+
this.index = null;
|
|
20
|
+
this.tsIndex = 0;
|
|
21
|
+
this.stageData = null;
|
|
22
|
+
this.nbrOfTc = 0;
|
|
23
|
+
this.successes = 0;
|
|
24
|
+
this.failures = 0;
|
|
25
|
+
this.nones = 0;
|
|
26
|
+
this.nas = 0;
|
|
27
|
+
this.highResolutionDurationTss = new HighResolutionDuration(0n);
|
|
28
|
+
this.emptyResultNodes = [];
|
|
29
|
+
this.emptyDurationTestCaseNode = null;
|
|
30
|
+
this.tableResultKeys = [];
|
|
31
|
+
this.tableTimeKeys = [];
|
|
32
|
+
this.tableDurationKeys = [];
|
|
33
|
+
this.refTableSum = React.createRef();
|
|
34
|
+
this.refTbody = React.createRef();
|
|
35
|
+
this.groupData = null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
didMount() {
|
|
39
|
+
this.groupData = this.addRealtimeFrameGroup();
|
|
40
|
+
const sumRowNode = this.refTableSum.current.firstChild.firstChild
|
|
41
|
+
this.addRealtimeFrame('SUM_RESULT', this.groupData, sumRowNode.childNodes[1]);
|
|
42
|
+
this.addRealtimeFrame('SUM_DURATION', this.groupData, sumRowNode.childNodes[3].firstChild);
|
|
43
|
+
this.addRealtimeFrame('SUM_RESULT_AMOUNT', this.groupData, sumRowNode.childNodes[5].firstChild);
|
|
44
|
+
this.addRealtimeFrame('SUM_RESULT_SUCCESS', this.groupData, sumRowNode.childNodes[7].firstChild);
|
|
45
|
+
this.addRealtimeFrame('SUM_RESULT_FAILURE', this.groupData, sumRowNode.childNodes[9].firstChild);
|
|
46
|
+
this.addRealtimeFrame('SUM_RESULT_NONE', this.groupData, sumRowNode.childNodes[11].firstChild);
|
|
47
|
+
this.addRealtimeFrame('SUM_RESULT_NA', this.groupData, sumRowNode.childNodes[13].firstChild);
|
|
48
|
+
this.addRealtimeFrame('SUM_START', this.groupData, sumRowNode.childNodes[15].firstChild);
|
|
49
|
+
this.addRealtimeFrame('SUM_STOP', this.groupData, sumRowNode.childNodes[17].firstChild);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
shouldUpdate(nextProps, nextState) {
|
|
53
|
+
return !this.shallowCompare(this.props.active, nextProps.active)
|
|
54
|
+
|| !this.shallowCompare(this.state.LoginStore.login, nextState.LoginStore.login)
|
|
55
|
+
|| !this.shallowCompare(this.state.TestSuiteStore.testSuite, nextState.TestSuiteStore.testSuite)
|
|
56
|
+
|| !this.shallowCompare(this.state.TestSuiteStore.iterationsTs, nextState.TestSuiteStore.iterationsTs)
|
|
57
|
+
|| !this.shallowCompare(this.state.TestSuiteStore.run, nextState.TestSuiteStore.run);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
didUpdate(prevProps, prevState) {
|
|
61
|
+
if(!this.shallowCompare(this.state.TestSuiteStore.run.testSuite, prevState.TestSuiteStore.run.testSuite)) {
|
|
62
|
+
this.tableResultKeys = [];
|
|
63
|
+
const testCaseTableRowNodes = this.refTbody.current.rows;
|
|
64
|
+
this.emptyDurationTestCaseNode = 0 < testCaseTableRowNodes.length ? testCaseTableRowNodes[0].cells[4].cloneNode(true) : null;
|
|
65
|
+
this.emptyDurationStageNode = 0 < testCaseTableRowNodes.length ? testCaseTableRowNodes[0].cells[2].cloneNode(true) : null;
|
|
66
|
+
for(let i = 0; i < testCaseTableRowNodes.length; ++i) {
|
|
67
|
+
const type = testCaseTableRowNodes[i].getAttribute('data-type');
|
|
68
|
+
const key = testCaseTableRowNodes[i].getAttribute('data-key');
|
|
69
|
+
if('tc' === type) {
|
|
70
|
+
this.emptyResultNodes.push(testCaseTableRowNodes[i].cells[3].cloneNode(true));
|
|
71
|
+
this.tableResultKeys.push(`SUM_TC_${key}_RESULT`);
|
|
72
|
+
this.addRealtimeFrame(this.tableResultKeys[i], this.groupData, testCaseTableRowNodes[i].cells[3]);
|
|
73
|
+
this.tableTimeKeys.push(`SUM_TC_${key}_TIME`);
|
|
74
|
+
this.addRealtimeFrame(this.tableTimeKeys[i], this.groupData, testCaseTableRowNodes[i].cells[7].firstChild);
|
|
75
|
+
this.tableDurationKeys.push(`SUM_TC_${key}_DURATION`);
|
|
76
|
+
this.addRealtimeFrame(this.tableDurationKeys[i], this.groupData, testCaseTableRowNodes[i].cells[4]);
|
|
77
|
+
}
|
|
78
|
+
else if('stage' === type) {
|
|
79
|
+
this.emptyResultNodes.push(testCaseTableRowNodes[i].cells[1].cloneNode(true));
|
|
80
|
+
this.tableResultKeys.push(`SUM_TC_${key}_RESULT`);
|
|
81
|
+
this.addRealtimeFrame(this.tableResultKeys[i], this.groupData, testCaseTableRowNodes[i].cells[1]);
|
|
82
|
+
this.tableTimeKeys.push(`SUM_TC_${key}_TIME`);
|
|
83
|
+
this.addRealtimeFrame(this.tableTimeKeys[i], this.groupData, testCaseTableRowNodes[i].cells[5].firstChild);
|
|
84
|
+
this.tableDurationKeys.push(`SUM_TC_${key}_DURATION`);
|
|
85
|
+
this.addRealtimeFrame(this.tableDurationKeys[i], this.groupData, testCaseTableRowNodes[i].cells[2]);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
willUnmount() {
|
|
92
|
+
this.removeRealtimeFrameGroup(this.groupData);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
_clean() {
|
|
96
|
+
this.nbrOfTc = 0;
|
|
97
|
+
this.successes = 0;
|
|
98
|
+
this.failures = 0;
|
|
99
|
+
this.nones = 0;
|
|
100
|
+
this.nas = 0;
|
|
101
|
+
this.sumResultValue = ActorResultConst.NONE;
|
|
102
|
+
this.highResolutionDurationTss = new HighResolutionDuration(0n);
|
|
103
|
+
this.replaceRealtimeFrameObject('SUM_RESULT', this.groupData, resultFactoryTestSuite.resultTemplates[ActorResultConst.NONE].cloneNode(true));
|
|
104
|
+
this.replaceRealtimeFrameText('SUM_DURATION', this.groupData, '0s 0.0ms');
|
|
105
|
+
this.replaceRealtimeFrameText('SUM_RESULT_AMOUNT', this.groupData, '0');
|
|
106
|
+
this.replaceRealtimeFrameText('SUM_RESULT_SUCCESS', this.groupData, '0');
|
|
107
|
+
this.replaceRealtimeFrameText('SUM_RESULT_FAILURE', this.groupData, '0');
|
|
108
|
+
this.replaceRealtimeFrameText('SUM_RESULT_NONE', this.groupData, '0');
|
|
109
|
+
this.replaceRealtimeFrameText('SUM_RESULT_NA', this.groupData, '0');
|
|
110
|
+
this.replaceRealtimeFrameText('SUM_START', this.groupData, '');
|
|
111
|
+
this.replaceRealtimeFrameText('SUM_STOP', this.groupData, '');
|
|
112
|
+
|
|
113
|
+
const testCaseTableRowNodes = this.refTbody.current.rows;
|
|
114
|
+
for(let i = 0; i < testCaseTableRowNodes.length; ++i) {
|
|
115
|
+
const type = testCaseTableRowNodes[i].getAttribute('data-type');
|
|
116
|
+
const key = testCaseTableRowNodes[i].getAttribute('data-key');
|
|
117
|
+
if('tc' === type) {
|
|
118
|
+
this.replaceRealtimeFrameObject(this.tableResultKeys[i], this.groupData, this.emptyResultNodes[i]);
|
|
119
|
+
this.replaceRealtimeFrameObject(this.tableTimeKeys[i], this.groupData, document.createTextNode('\u00A0'), 'test_hide', 1);
|
|
120
|
+
this.replaceRealtimeFrameObject(this.tableDurationKeys[i], this.groupData, this.emptyDurationTestCaseNode.cloneNode());
|
|
121
|
+
}
|
|
122
|
+
else if('stage' === type) {
|
|
123
|
+
this.replaceRealtimeFrameObject(this.tableResultKeys[i], this.groupData, this.emptyResultNodes[i]);
|
|
124
|
+
this.replaceRealtimeFrameObject(this.tableTimeKeys[i], this.groupData, document.createTextNode('\u00A0'), 'test_hide', 1);
|
|
125
|
+
this.replaceRealtimeFrameObject(this.tableDurationKeys[i], this.groupData, this.emptyDurationStageNode.cloneNode());
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
_cleanRunning() {
|
|
131
|
+
const testCaseTableRowNodes = this.refTbody.current.rows;
|
|
132
|
+
for(let i = 0; i < testCaseTableRowNodes.length; ++i) {
|
|
133
|
+
const type = testCaseTableRowNodes[i].getAttribute('data-type');
|
|
134
|
+
const key = testCaseTableRowNodes[i].getAttribute('data-key');
|
|
135
|
+
if('tc' === type) {
|
|
136
|
+
this.replaceRealtimeFrameObject(this.tableResultKeys[i], this.groupData, null, 'test_hide');
|
|
137
|
+
this.replaceRealtimeFrameObject(this.tableTimeKeys[i], this.groupData, null, 'test_hide', 1);
|
|
138
|
+
this.replaceRealtimeFrameObject(this.tableDurationKeys[i], this.groupData, null, 'test_hide');
|
|
139
|
+
}
|
|
140
|
+
else if('stage' === type) {
|
|
141
|
+
this.replaceRealtimeFrameObject(this.tableResultKeys[i], this.groupData, null, 'test_hide');
|
|
142
|
+
this.replaceRealtimeFrameObject(this.tableTimeKeys[i], this.groupData, null, 'test_hide', 1);
|
|
143
|
+
this.replaceRealtimeFrameObject(this.tableDurationKeys[i], this.groupData, null, 'test_hide');
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
onRealtimeMessage(msg) {
|
|
149
|
+
if(AppProtocolConst.TEST_CASE_STARTED === msg.msgId) {
|
|
150
|
+
const pos = msg.index + msg.iterationTs - 1;
|
|
151
|
+
this.replaceRealtimeFrameObject(this.tableTimeKeys[pos], this.groupData, document.createTextNode(new HighResolutionDate(msg.timestamp).getDateMilliSeconds()), 'test_show', 1);
|
|
152
|
+
}
|
|
153
|
+
else if(AppProtocolConst.TEST_CASE_STOPPED === msg.msgId) {
|
|
154
|
+
this.sumResultValue = Math.max(this.sumResultValue, msg.resultId);
|
|
155
|
+
this.replaceRealtimeFrameText('SUM_RESULT_AMOUNT', this.groupData, '' + ++this.nbrOfTc);
|
|
156
|
+
if(ActorResultConst.SUCCESS === msg.resultId) {
|
|
157
|
+
this.replaceRealtimeFrameText('SUM_RESULT_SUCCESS', this.groupData, `${++this.successes}`);
|
|
158
|
+
}
|
|
159
|
+
else if(ActorResultConst.NONE === msg.resultId) {
|
|
160
|
+
this.replaceRealtimeFrameText('SUM_RESULT_NONE', this.groupData, `${++this.nones}`);
|
|
161
|
+
}
|
|
162
|
+
else if(ActorResultConst.NA === msg.resultId) {
|
|
163
|
+
this.replaceRealtimeFrameText('SUM_RESULT_NA', this.groupData, `${++this.nas}`);
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
this.replaceRealtimeFrameText('SUM_RESULT_FAILURE', this.groupData, `${++this.failures}`);
|
|
167
|
+
}
|
|
168
|
+
const resultTd = resultFactoryTestSuite.resultTemplates[msg.resultId].cloneNode(true);
|
|
169
|
+
resultTd.firstChild.href = `log#tc_log_anchor_${this.state.TestSuiteStore.executionGuid}_${this.tsIndex + 1}_${msg.index + 1}_${msg.iterationTs}`;
|
|
170
|
+
const pos = msg.index + msg.iterationTs - 1;
|
|
171
|
+
this.replaceRealtimeFrameObject(this.tableResultKeys[pos], this.groupData, resultTd);
|
|
172
|
+
const log2 = Math.round(Math.log2(Number(msg.duration / 100000n)));
|
|
173
|
+
const className = `duration_${log2}`;
|
|
174
|
+
const td = this.emptyDurationTestCaseNode.cloneNode();
|
|
175
|
+
td.appendChild(document.createTextNode(new HighResolutionDuration(msg.duration).getDuration()));
|
|
176
|
+
this.replaceRealtimeFrameObject(this.tableDurationKeys[pos], this.groupData, td, className);
|
|
177
|
+
}
|
|
178
|
+
else if(AppProtocolConst.TEST_STAGE_STARTED === msg.msgId) {
|
|
179
|
+
const pos = msg.index + msg.iterationTs - 1;
|
|
180
|
+
this.replaceRealtimeFrameObject(this.tableTimeKeys[pos], this.groupData, document.createTextNode(new HighResolutionDate(msg.timestamp).getDateMilliSeconds()), 'test_show', 1);
|
|
181
|
+
}
|
|
182
|
+
else if(AppProtocolConst.TEST_STAGE_STOPPED === msg.msgId) {
|
|
183
|
+
this.replaceRealtimeFrameText('SUM_RESULT_AMOUNT', this.groupData, '' + ++this.nbrOfTc);
|
|
184
|
+
if(ActorResultConst.SUCCESS === msg.resultId) {
|
|
185
|
+
this.replaceRealtimeFrameText('SUM_RESULT_SUCCESS', this.groupData, `${++this.successes}`);
|
|
186
|
+
}
|
|
187
|
+
else if(ActorResultConst.NONE === msg.resultId) {
|
|
188
|
+
this.replaceRealtimeFrameText('SUM_RESULT_NONE', this.groupData, `${++this.nones}`);
|
|
189
|
+
}
|
|
190
|
+
else if(ActorResultConst.NA === msg.resultId) {
|
|
191
|
+
this.replaceRealtimeFrameText('SUM_RESULT_NA', this.groupData, `${++this.nas}`);
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
this.replaceRealtimeFrameText('SUM_RESULT_FAILURE', this.groupData, `${++this.failures}`);
|
|
195
|
+
}
|
|
196
|
+
const pos = msg.index + msg.iterationTs - 1;
|
|
197
|
+
this.replaceRealtimeFrameObject(this.tableResultKeys[pos], this.groupData, resultFactoryTestSuite.resultTemplates[msg.resultId].cloneNode(true));
|
|
198
|
+
const log2 = Math.round(Math.log2(Number(msg.duration / 100000n)));
|
|
199
|
+
const className = `duration_${log2}`;
|
|
200
|
+
const td = this.emptyDurationTestCaseNode.cloneNode();
|
|
201
|
+
td.appendChild(document.createTextNode(new HighResolutionDuration(msg.duration).getDuration()));
|
|
202
|
+
this.replaceRealtimeFrameObject(this.tableDurationKeys[pos], this.groupData, td, className);
|
|
203
|
+
}
|
|
204
|
+
else if(AppProtocolConst.TEST_SUITE_STARTED === msg.msgId) {
|
|
205
|
+
this.tsIndex = msg.index;
|
|
206
|
+
if(0 === this.tsIndex) {
|
|
207
|
+
this._clean();
|
|
208
|
+
}
|
|
209
|
+
this.replaceRealtimeFrameText('SUM_START', this.groupData, new HighResolutionDate(msg.timestamp).getDateMilliSeconds());
|
|
210
|
+
}
|
|
211
|
+
else if(AppProtocolConst.TEST_SUITE_STOPPED === msg.msgId) {
|
|
212
|
+
this.highResolutionDurationTss.add(msg.duration);
|
|
213
|
+
this.replaceRealtimeFrameObject('SUM_RESULT', this.groupData, resultFactoryTestSuite.resultTemplates[this.sumResultValue].cloneNode(true));
|
|
214
|
+
this.replaceRealtimeFrameText('SUM_DURATION', this.groupData, this.highResolutionDurationTss.getDuration());
|
|
215
|
+
if(msg.last) {
|
|
216
|
+
this.replaceRealtimeFrameText('SUM_STOP', this.groupData, new HighResolutionDate(msg.timestamp).getDateMilliSeconds());
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
else if(AppProtocolConst.TEST_SUITE_CLEAR === msg.msgId) {
|
|
220
|
+
if('execution' === msg.tab) {
|
|
221
|
+
this._clean();
|
|
222
|
+
this.replaceRealtimeFrameObject('SUM_RESULT', this.groupData, resultFactoryTestSuite.resultTemplates[ActorResultConst.NONE].cloneNode(true));
|
|
223
|
+
ddgc.gc();
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
_getStage(tcName) {
|
|
229
|
+
try {
|
|
230
|
+
return JSON.parse(tcName.substring(5));
|
|
231
|
+
}
|
|
232
|
+
catch(err) {
|
|
233
|
+
return null;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
renderTableRowStageIterationError(index, stageType, stageData, stateDepth) {
|
|
238
|
+
const key = `${index.stage + index.tc}:${index.iter}`;
|
|
239
|
+
return (
|
|
240
|
+
<tr key={key} className="test_suite_table test_suite_row_stage_failure" data-type="stage" data-key={key}>
|
|
241
|
+
<td colSpan="3">{index.i}</td>
|
|
242
|
+
<td> </td>
|
|
243
|
+
<td> </td>
|
|
244
|
+
<td >
|
|
245
|
+
Stage parse Error.
|
|
246
|
+
</td>
|
|
247
|
+
<td>
|
|
248
|
+
<Link className="test_case_link" global href={this.nameToLink(stageData.tsName)}>{stageData.tsName}</Link>
|
|
249
|
+
</td>
|
|
250
|
+
<td> </td>
|
|
251
|
+
</tr>
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
renderTableRowStageIterationSuccess(index, stageType, stageData, stateDepth) {
|
|
256
|
+
const key = `${index.stage + index.tc}:${index.iter}`;
|
|
257
|
+
let stageDirection = '';
|
|
258
|
+
let stage = '';
|
|
259
|
+
let depth = stateDepth.depth;
|
|
260
|
+
if(STATE_PUSH === stageType) {
|
|
261
|
+
stageDirection = 'test_suite_row_stage_push';
|
|
262
|
+
stage = ` - '${stageData.labId}', '${stageData.userId}', '${stageData.sut}', '${stageData.sutInstance}', ${stageData.forcedStage}`;
|
|
263
|
+
}
|
|
264
|
+
else if(STATE_POP === stageType) {
|
|
265
|
+
stageDirection = 'test_suite_row_stage_pop';
|
|
266
|
+
stage = ` - '${stageData.labId}', '${stageData.userId}', '${stageData.sut}', '${stageData.sutInstance}', ${stageData.forcedStage}`;
|
|
267
|
+
}
|
|
268
|
+
else if(STATE_CHANGE === stageType) {
|
|
269
|
+
stageDirection = 'test_suite_row_stage_change';
|
|
270
|
+
stage = ` - '${stageData.labId}', '${stageData.userId}', '${stageData.sut}', '${stageData.sutInstance}', ${stageData.forcedStage}`;
|
|
271
|
+
}
|
|
272
|
+
else if(STATE_RESTORE === stageType) {
|
|
273
|
+
stageDirection = 'test_suite_row_stage_restore';
|
|
274
|
+
++depth;
|
|
275
|
+
}
|
|
276
|
+
const depthSign = '|'.repeat(depth);
|
|
277
|
+
return (
|
|
278
|
+
<tr key={key} className={`test_suite_table ${stageData.commentOut ? 'test_suite_comment_out' : 'test_suite_row_stage_success'}`} data-type="stage" data-key={key}>
|
|
279
|
+
<td colSpan="3">{index.i}</td>
|
|
280
|
+
<td> </td>
|
|
281
|
+
<td> </td>
|
|
282
|
+
<td >
|
|
283
|
+
<span className="test_suite_row_stage">
|
|
284
|
+
{depthSign}
|
|
285
|
+
</span>
|
|
286
|
+
<span className={`test_suite_row_stage ${stageDirection}`}>
|
|
287
|
+
➜
|
|
288
|
+
</span>
|
|
289
|
+
<span className="test_suite_row_stage">
|
|
290
|
+
Stage {stage}
|
|
291
|
+
</span>
|
|
292
|
+
</td>
|
|
293
|
+
<td>
|
|
294
|
+
<Link className="test_case_link" global href={this.nameToLink(stageData.tsName)}>{stageData.tsName}</Link>
|
|
295
|
+
</td>
|
|
296
|
+
<td> </td>
|
|
297
|
+
</tr>
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
renderTableRowStageIteration(index, stageType, stageData, stateDepth) {
|
|
302
|
+
if(stageData.success) {
|
|
303
|
+
return this.renderTableRowStageIterationSuccess(index, stageType, stageData, stateDepth);
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
return this.renderTableRowStageIterationError(index, stageType, stageData, stateDepth);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
renderTableRowTestCaseIteration(index, tsName, tcName, commentOut) {
|
|
311
|
+
const key = `${index.stage + index.tc}:${index.iter}`;
|
|
312
|
+
return (
|
|
313
|
+
<tr key={key} className={`test_suite_table${commentOut ? ' test_suite_comment_out' : ''}`} data-type="tc" data-key={key}>
|
|
314
|
+
<td>{index.i}</td>
|
|
315
|
+
<td>{index.tc}</td>
|
|
316
|
+
<td>{index.iter}</td>
|
|
317
|
+
<td> </td>
|
|
318
|
+
<td> </td>
|
|
319
|
+
<td>
|
|
320
|
+
<Link className="test_case_link" global href={this.nameToLink(tcName)}>{tcName}</Link>
|
|
321
|
+
</td>
|
|
322
|
+
<td>
|
|
323
|
+
<Link className="test_case_link" global href={this.nameToLink(tsName)}>{tsName}</Link>
|
|
324
|
+
</td>
|
|
325
|
+
<td> </td>
|
|
326
|
+
</tr>
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
renderTableRowTestCase(index, iterationsTs, tsName, tcName, commentOut, isTc, stateDepth) {
|
|
331
|
+
const rows = [];
|
|
332
|
+
if(isTc) {
|
|
333
|
+
++index.tc;
|
|
334
|
+
index.iter = 0;
|
|
335
|
+
for(let i = 0; i < iterationsTs; ++i) {
|
|
336
|
+
++index.i;
|
|
337
|
+
++index.iter;
|
|
338
|
+
rows.push(this.renderTableRowTestCaseIteration(index, tsName, tcName, commentOut));
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
else {
|
|
342
|
+
++index.stage;
|
|
343
|
+
++index.i;
|
|
344
|
+
index.iter = 1;
|
|
345
|
+
if(this.stageData) {
|
|
346
|
+
stateDepth.stages.pop();
|
|
347
|
+
this.stageData = stateDepth.stages[stateDepth.stages.length - 1];
|
|
348
|
+
stateDepth.previousKey = stateDepth.keys[stateDepth.keys.length - 1];
|
|
349
|
+
stateDepth.keys.pop();
|
|
350
|
+
--stateDepth.depth;
|
|
351
|
+
rows.push(this.renderTableRowStageIterationSuccess(index, stateDepth.previousKey !== stateDepth.key ? STATE_POP : STATE_RESTORE, this.stageData, stateDepth));
|
|
352
|
+
++index.stage;
|
|
353
|
+
++index.i;
|
|
354
|
+
}
|
|
355
|
+
const parsedStage = this._getStage(tcName);
|
|
356
|
+
if(parsedStage) {
|
|
357
|
+
this.stageData = {
|
|
358
|
+
success: true,
|
|
359
|
+
tsName: tsName,
|
|
360
|
+
commentOut: commentOut,
|
|
361
|
+
labId: parsedStage[0],
|
|
362
|
+
userId: parsedStage[1],
|
|
363
|
+
sut: parsedStage[2],
|
|
364
|
+
sutInstance: parsedStage[3] ? parsedStage[3] : '',
|
|
365
|
+
forcedStage: parsedStage[4] ? parsedStage[4] : 'false'
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
this.stageData = {
|
|
370
|
+
success: false,
|
|
371
|
+
tsName: tsName,
|
|
372
|
+
commentOut: commentOut,
|
|
373
|
+
labId: '',
|
|
374
|
+
userId: '',
|
|
375
|
+
sut: '',
|
|
376
|
+
sutInstance: '',
|
|
377
|
+
forcedStage: ''
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
stateDepth.keys.push(stateDepth.key);
|
|
381
|
+
stateDepth.stages.push(this.stageData);
|
|
382
|
+
++stateDepth.depth;
|
|
383
|
+
rows.push(this.renderTableRowStageIteration(index, stateDepth.previousKey !== stateDepth.key ? STATE_PUSH : STATE_CHANGE, this.stageData, stateDepth));
|
|
384
|
+
}
|
|
385
|
+
return rows;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
renderTableRows() {
|
|
389
|
+
if(0 !== this.state.TestSuiteStore.run.testSuite.size) {
|
|
390
|
+
const rows = [];
|
|
391
|
+
this.index = {
|
|
392
|
+
i: 0,
|
|
393
|
+
tc: 0,
|
|
394
|
+
stage: 0,
|
|
395
|
+
iter: 0
|
|
396
|
+
};
|
|
397
|
+
const stateDepth = {
|
|
398
|
+
stages: [
|
|
399
|
+
{
|
|
400
|
+
success: true,
|
|
401
|
+
tsName: '',
|
|
402
|
+
commentOut: '',
|
|
403
|
+
labId: this.state.LoginStore.login.labId,
|
|
404
|
+
userId: this.state.LoginStore.login.userId,
|
|
405
|
+
sut: this.state.LoginStore.login.systemUnderTest,
|
|
406
|
+
sutInstance: this.state.LoginStore.login.systemUnderTestInstance,
|
|
407
|
+
forcedStage: this.state.LoginStore.login.forcedLocalhost
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
keys: ['BASE_'],
|
|
411
|
+
key: '',
|
|
412
|
+
previousKey: 'BASE_',
|
|
413
|
+
depth: 0
|
|
414
|
+
};
|
|
415
|
+
this.state.TestSuiteStore.run.testSuite.forEach((abstractions, key) => {
|
|
416
|
+
stateDepth.key = key;
|
|
417
|
+
const newRows = abstractions.map((abstraction) => {
|
|
418
|
+
return this.renderTableRowTestCase(this.index, abstraction.iterationsTs, abstraction.tsName, abstraction.tcName, abstraction.commentOut, abstraction.tcName.startsWith('tc.'), stateDepth);
|
|
419
|
+
});
|
|
420
|
+
if(1 <= newRows.length) {
|
|
421
|
+
rows.splice(rows.length, 0, ...newRows);
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
if(this.stageData) {
|
|
425
|
+
this.index.iter = 1;
|
|
426
|
+
++this.index.stage;
|
|
427
|
+
++this.index.i;
|
|
428
|
+
stateDepth.stages.pop();
|
|
429
|
+
this.stageData = stateDepth.stages[stateDepth.stages.length - 1];
|
|
430
|
+
stateDepth.previousKey = stateDepth.keys[stateDepth.keys.length - 1];
|
|
431
|
+
stateDepth.keys.pop();
|
|
432
|
+
--stateDepth.depth;
|
|
433
|
+
rows.push(this.renderTableRowStageIterationSuccess(this.index, STATE_POP, this.stageData, stateDepth));
|
|
434
|
+
this.stageData = null;
|
|
435
|
+
}
|
|
436
|
+
return (
|
|
437
|
+
<tbody ref={this.refTbody}>
|
|
438
|
+
{rows}
|
|
439
|
+
</tbody>
|
|
440
|
+
);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
render() {
|
|
445
|
+
return (
|
|
446
|
+
<div className="same_as_parent">
|
|
447
|
+
<div className="execution_panel">
|
|
448
|
+
<table ref={this.refTableSum} className="test_suite_table test_suite_table_heading_execution table table-bordered table-striped table-condensed table-hover">
|
|
449
|
+
<tbody>
|
|
450
|
+
<tr key="asdf">
|
|
451
|
+
<th className="test_suite_header" scope="row">result</th>
|
|
452
|
+
<td className="test_none<">
|
|
453
|
+
{ActorResultConst.results[ActorResultConst.NONE]}
|
|
454
|
+
</td>
|
|
455
|
+
<th className="test_suite_header" scope="row">duration</th>
|
|
456
|
+
<td className="test_suite_header_duration">0s 0.0ms</td>
|
|
457
|
+
<th className="test_suite_header" scope="row">#</th>
|
|
458
|
+
<td className="test_suite_header_result">0</td>
|
|
459
|
+
<th className="test_suite_header" scope="row">success</th>
|
|
460
|
+
<td className="test_suite_header_result">0</td>
|
|
461
|
+
<th className="test_suite_header" scope="row">failure</th>
|
|
462
|
+
<td className="test_suite_header_result">0</td>
|
|
463
|
+
<th className="test_suite_header" scope="row">none</th>
|
|
464
|
+
<td className="test_suite_header_result">0</td>
|
|
465
|
+
<th className="test_suite_header" scope="row">n/a</th>
|
|
466
|
+
<td className="test_suite_header_result">0</td>
|
|
467
|
+
<th className="test_suite_header" scope="row">start</th>
|
|
468
|
+
<td className="test_suite_header_start"> </td>
|
|
469
|
+
<th className="test_suite_header" scope="row">stop</th>
|
|
470
|
+
<td className="test_suite_header_stop"> </td>
|
|
471
|
+
</tr>
|
|
472
|
+
</tbody>
|
|
473
|
+
</table>
|
|
474
|
+
</div>
|
|
475
|
+
<div className="test_case_tab_view_with_toolbar">
|
|
476
|
+
<div className="test_suite_table_log_row_execution test_suite_table_fit_content">
|
|
477
|
+
<table className="test_suite_table table table-bordered table-striped table-condensed table-hover">
|
|
478
|
+
<thead>
|
|
479
|
+
<tr>
|
|
480
|
+
<th>#</th>
|
|
481
|
+
<th>tc</th>
|
|
482
|
+
<th>it</th>
|
|
483
|
+
<th>result</th>
|
|
484
|
+
<th>duration</th>
|
|
485
|
+
<th>test case</th>
|
|
486
|
+
<th>test suite</th>
|
|
487
|
+
<th>time</th>
|
|
488
|
+
</tr>
|
|
489
|
+
</thead>
|
|
490
|
+
{this.renderTableRows()}
|
|
491
|
+
</table>
|
|
492
|
+
</div>
|
|
493
|
+
</div>
|
|
494
|
+
</div>
|
|
495
|
+
);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
nameToLink(name) {
|
|
499
|
+
const paths = name.split('.');
|
|
500
|
+
if(0 === paths.length) {
|
|
501
|
+
return '/';
|
|
502
|
+
}
|
|
503
|
+
let link = '';
|
|
504
|
+
if('tc' === paths[0]) {
|
|
505
|
+
link = '/test-cases';
|
|
506
|
+
}
|
|
507
|
+
else if('ts' === paths[0]) {
|
|
508
|
+
link = '/test-suites';
|
|
509
|
+
}
|
|
510
|
+
if(1 === paths.length) {
|
|
511
|
+
return link;
|
|
512
|
+
}
|
|
513
|
+
paths.splice(0, 1);
|
|
514
|
+
link += '/' + paths.join('/');
|
|
515
|
+
return link;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
class ResultFactoryTestSuite {
|
|
520
|
+
constructor() {
|
|
521
|
+
this.resultTemplates = [];
|
|
522
|
+
ActorResultConst.resultIds.forEach((resultId) => {
|
|
523
|
+
this.resultTemplates.push(this._createTemplate(resultId));
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
_createTemplate(resultId) {
|
|
528
|
+
const td = document.createElement('td');
|
|
529
|
+
td.classList.add(ActorResultConst.classes[resultId]);
|
|
530
|
+
const a = td.appendChild(document.createElement('a'));
|
|
531
|
+
a.classList.add(ActorResultConst.classes[resultId]);
|
|
532
|
+
a.appendChild(document.createTextNode(ActorResultConst.results[resultId]));
|
|
533
|
+
return td;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
const resultFactoryTestSuite = new ResultFactoryTestSuite();
|
|
539
|
+
|
|
540
|
+
const STATE_PUSH = 0;
|
|
541
|
+
const STATE_POP = 1;
|
|
542
|
+
const STATE_CHANGE = 2;
|
|
543
|
+
const STATE_RESTORE = 3;
|
|
544
|
+
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
import TestSuiteStore from '../../../../stores/test-suite-store';
|
|
5
|
+
import { ActionTestSuiteButtonsUpdate } from '../../../../actions/action-test-suite/action-test-suite';
|
|
6
|
+
import StyleStore from 'z-abs-complayer-markup-client/client/stores/style-store';
|
|
7
|
+
import LogFilter from 'z-abs-complayer-visualizationlog-client/client/logic/log-filter';
|
|
8
|
+
import Log from 'z-abs-complayer-visualizationlog-client/client/react-component/log';
|
|
9
|
+
import LogType from 'z-abs-funclayer-engine-cs/clientServer/log/log-type';
|
|
10
|
+
import RealtimePressDownButton from 'z-abs-complayer-bootstrap-client/client/realtime-components/realtime-press-down-button';
|
|
11
|
+
import ReactComponentRealtime from 'z-abs-corelayer-client/client/react-component/react-component-realtime';
|
|
12
|
+
import React from 'react';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export default class MiddleTestSuitesTabLog extends ReactComponentRealtime {
|
|
16
|
+
constructor(props) {
|
|
17
|
+
super(props, [TestSuiteStore, StyleStore]);
|
|
18
|
+
this.refLog = React.createRef();
|
|
19
|
+
this.refScrollButton = null;
|
|
20
|
+
this.logFilter = new LogFilter();
|
|
21
|
+
this.logFilter.init(this.state.TestSuiteStore.buttons.log);
|
|
22
|
+
this.cbIsRealtime = () => {
|
|
23
|
+
return this.state.TestSuiteStore.execution !== TestSuiteStore.EXECUTION_NOT_RUNNING;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
shouldUpdate(nextProps, nextState) {
|
|
28
|
+
return !this.shallowCompare(this.props.active, nextProps.active)
|
|
29
|
+
|| !this.shallowCompare(this.props.location?.hash, nextProps.location?.hash)
|
|
30
|
+
|| !this.shallowCompare(this.state.TestSuiteStore.testCase, nextState.TestSuiteStore.testCase)
|
|
31
|
+
|| !this.shallowCompare(this.state.TestSuiteStore.buttonsLoaded, nextState.TestSuiteStore.buttonsLoaded)
|
|
32
|
+
|| !this.shallowCompare(this.state.TestSuiteStore.buttons.log, nextState.TestSuiteStore.buttons.log)
|
|
33
|
+
|| !this.shallowCompare(this.state.TestSuiteStore.iterationsTs, nextState.TestSuiteStore.iterationsTs)
|
|
34
|
+
|| !this.shallowCompare(this.state.StyleStore.stackStyles, nextState.StyleStore.stackStyles);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
didMount() {
|
|
38
|
+
this.refLog.current.active(this.props.active);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
didUpdate() {
|
|
42
|
+
this.refLog.current.active(this.props.active);
|
|
43
|
+
if(this.props.location) {
|
|
44
|
+
const hash = 0 !== this.props.location.hash.length ? this.props.location.hash.substring(1) : this.props.location.hash;
|
|
45
|
+
if(hash) {
|
|
46
|
+
const element = document.getElementById(hash);
|
|
47
|
+
//setTimeout(() => {
|
|
48
|
+
element.parentNode.parentNode.scrollIntoView();
|
|
49
|
+
//});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
realtimeUpdate(nextProps, nextState) {
|
|
55
|
+
this.refLog.current.active(nextProps.active);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
_fireButtonAction(valueName, value, rt) {
|
|
59
|
+
this.dispatch(TestSuiteStore, new ActionTestSuiteButtonsUpdate('log', valueName, value));
|
|
60
|
+
if(this.cbIsRealtime()) {
|
|
61
|
+
this.renderRealtime(() => {
|
|
62
|
+
rt();
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
render() {
|
|
68
|
+
if(this.state.TestSuiteStore.error) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
const log = this.state.TestSuiteStore.buttons.log;
|
|
73
|
+
return (
|
|
74
|
+
<>
|
|
75
|
+
<div className="log_panel">
|
|
76
|
+
<div className="log_panel_inner btn-toolbar" role="toolbar" aria-label="...">
|
|
77
|
+
<div className="aj_btn_group" role="group" aria-label="...">
|
|
78
|
+
<RealtimePressDownButton size="aj_btn_xs" buttonValue={log.scroll} icon={'icon-scroll-auto'} toolTipContent={['On', 'Off']} toolTipHeading="Auto scroll"
|
|
79
|
+
onLoad={(e) => {
|
|
80
|
+
this.refScrollButton = e;
|
|
81
|
+
}}
|
|
82
|
+
onAction={this._fireButtonAction.bind(this, 'scroll')}
|
|
83
|
+
/>
|
|
84
|
+
</div>
|
|
85
|
+
<div className="aj_btn_group" role="group" aria-label="...">
|
|
86
|
+
<RealtimePressDownButton size="aj_btn_xs" buttonValue={log.filterError} icon={'icon-checkbox'} colorMark="log_error" toolTipContent={LogType.pureNames[LogType.ERROR]} toolTipHeading="Filter" onAction={this._fireButtonAction.bind(this, 'filterError')} />
|
|
87
|
+
<RealtimePressDownButton size="aj_btn_xs" buttonValue={log.filterWarning} icon={'icon-checkbox'} colorMark="log_warning" toolTipContent={LogType.pureNames[LogType.WARNING]} toolTipHeading="Filter" onAction={this._fireButtonAction.bind(this, 'filterWarning')} />
|
|
88
|
+
</div>
|
|
89
|
+
<div className="aj_btn_group" role="group" aria-label="...">
|
|
90
|
+
<RealtimePressDownButton size="aj_btn_xs" buttonValue={log.filterSuccess} icon={'icon-checkbox'} colorMark="log_verify_success" toolTipContent={LogType.pureNames[LogType.SUCCESS]} toolTipHeading="Filter" onAction={this._fireButtonAction.bind(this, 'filterSuccess')} />
|
|
91
|
+
<RealtimePressDownButton size="aj_btn_xs" buttonValue={log.filterFailure} icon={'icon-checkbox'} colorMark="log_verify_failure" toolTipContent={LogType.pureNames[LogType.FAILURE]} toolTipHeading="Filter" onAction={this._fireButtonAction.bind(this, 'filterFailure')} />
|
|
92
|
+
</div>
|
|
93
|
+
<div className="aj_btn_group" role="group" aria-label="...">
|
|
94
|
+
<RealtimePressDownButton size="aj_btn_xs" buttonValue={log.filterEngine} icon={'icon-checkbox'} colorMark="log_engine" toolTipContent={LogType.pureNames[LogType.ENGINE]} toolTipHeading="Filter" onAction={this._fireButtonAction.bind(this, 'filterEngine')} />
|
|
95
|
+
<RealtimePressDownButton size="aj_btn_xs" buttonValue={log.filterDebug} icon={'icon-checkbox'} colorMark="log_debug" toolTipContent={LogType.pureNames[LogType.DEBUG]} toolTipHeading="Filter" onAction={this._fireButtonAction.bind(this, 'filterDebug')} />
|
|
96
|
+
<RealtimePressDownButton size="aj_btn_xs" buttonValue={log.filterTestData} icon={'icon-checkbox'} colorMark="log_test_data" toolTipContent={LogType.pureNames[LogType.TEST_DATA]} toolTipHeading="Filter" onAction={this._fireButtonAction.bind(this, 'filterTestData')} />
|
|
97
|
+
</div>
|
|
98
|
+
<div className="aj_btn_group" role="group" aria-label="...">
|
|
99
|
+
<RealtimePressDownButton size="aj_btn_xs" buttonValue={log.filterIP} icon={'icon-checkbox'} colorMark="log_ip" toolTipContent={LogType.pureNames[LogType.IP]} toolTipHeading="Filter" onAction={this._fireButtonAction.bind(this, 'filterIP')} />
|
|
100
|
+
</div>
|
|
101
|
+
<div className="aj_btn_group" role="group" aria-label="...">
|
|
102
|
+
<RealtimePressDownButton size="aj_btn_xs" buttonValue={log.filterGUI} icon={'icon-checkbox'} colorMark="log_gui" toolTipContent={LogType.pureNames[LogType.GUI]} toolTipHeading="Filter" onAction={this._fireButtonAction.bind(this, 'filterGUI')} />
|
|
103
|
+
<RealtimePressDownButton size="aj_btn_xs" buttonValue={log.filterBrowserErr} icon={'icon-checkbox'} colorMark="log_browser_err" toolTipContent={LogType.pureNames[LogType.BROWSER_ERR]} toolTipHeading="Filter" onAction={this._fireButtonAction.bind(this, 'filterBrowserErr')} />
|
|
104
|
+
<RealtimePressDownButton size="aj_btn_xs" buttonValue={log.filterBrowserLog} icon={'icon-checkbox'} colorMark="log_browser_log" toolTipContent={LogType.pureNames[LogType.BROWSER_LOG]} toolTipHeading="Filter" onAction={this._fireButtonAction.bind(this, 'filterBrowserLog')} />
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
<Log ref={this.refLog} filter={this.logFilter} name="test-suite-log" clearMsgPrefix="TestSuite" store={TestSuiteStore} storeName="TestSuiteStore" buttonsLoaded={this.state.TestSuiteStore.buttonsLoaded} stackStyles={this.state.StyleStore.stackStyles}
|
|
109
|
+
onOnit={() => {}}
|
|
110
|
+
onAutoScroll={(autoScroll) => {
|
|
111
|
+
this.refScrollButton.click();
|
|
112
|
+
}}
|
|
113
|
+
/>
|
|
114
|
+
</>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|