== ProMoT Visual Explorer Detailed Tests == '''Setup A: ''' applies to tests: 4, 5, 6, 11, 12-15, 22-25, 26-27 [[BR]] Start ProMoT server and GUI -> load the logical library [source:/Promot/trunk/promot/kb/SignalTransd/structure/struct-ana-library.mdl] -> load the logical toymodel from tutorial [source:/Promot/trunk/promot/kb/SignalTransd/structure/toymodel_tutorial/LOAD_toymodel.mdl] -> Open the Visual Explorer for the browser tree node "struct-model" --> "toymodel" --> "whole_model" by right mouse click --> context menu --> Visual Explorer. '''Setup B: ''' applies to tests: -20 [[BR]] Start ProMoT server and GUI -> load [source:/Promot/trunk/promot/kb/practical-bio/LOAD.mdl] which includes the library (reduced-library) for dynamic modeling -> Open the Visual Explorer for the browser tree node "dynamic-model" --> "mapk_modules" --> "mapkc" by right mouse click --> context menu --> Visual Explorer. '''Setup C: ''' applies to tests: [[BR]] Start ProMoT server and GUI -> import a biomodels.org model (e.g. BIOMD0000000001.xml) -> Open the Visual Explorer for the browser tree node "sbml-model" --> model by right mouse click --> context menu --> Visual Explorer. '''Setup D: ''' applies to tests: [[BR]] Start ProMoT server and GUI -> import a biomodels.org model -> Open the Visual Explorer for the browser tree node "sbml-model" --> "mapk_modules" --> "mapkc" by right mouse click --> context menu --> Visual Explorer. === JUnit Tests === 1. Import node and edge attributes [[BR]] [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/viznav.data.io.AttributeReaderTest.java] [[BR]] [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/viznav.data.io.DelimitedTextReaderTest.java][[BR]] Check that two files (edge attributes, node attributes) are loaded properly. The attributes should be mapped to the existing nodes and edges in the graph correctly. 2. Load global scenarios [[BR]] [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/viznav/visual/VisualPropertyTest.java] [[BR]] Check that the global scenario file (.!PromotVizScenarios) is at the given location and calculators are loaded properly from the file. 3. Scenarios: Logical Network Parser [[BR]] [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/viznav/data/logical/LogicalNetworkParserTest.java] [[BR]] Check that part of the logical network parser, especially parsing of DUMMY element and NOT element. === Tests === 4. Import/export layout [[BR]] 5. Export graphics [[BR]] 6. Export logical model [[BR]] 7. Edit scenario: new/copy/rename/remove/mappings [[BR]] 8. Save scenarios (to USER_HOME) [[BR]] 9. Load local scenarios [[BR]] 10. Exit with/without dialog [[BR]] === Visual inspection === 11. Orthogonal layout [[BR]] Apply an orthogonal layout to the network, all edges represented by polylines (not straight lines) must be drawn in an orthogonal style. 12. Grid layer on/off [[BR]] A grid overlaying the entire canvas should appear/disappear by switching option on/off. 13. Squiggle layer on/off [[BR]] With option on and pressed left mouse button, a line is drawn, release mouse button should stop drawing, drawings can be switched on/off. 14. Status layer on/off [[BR]] With option on, a text box appears in the left lower corner showing the name of the current scenario (default: Logical Scenario) and the current navigation mode (default: Hierarchy Zoom), display can be switched on/off. 15. Overview layer on/off [[BR]] With option on, a overview window of the entire canvas appears in the left lower corner, can be switched on/off 16. Legend layer on/off/correct mappings [[BR]] 17. Navigation mode: Interactive Zoom [[BR]] Select navigation mode 'Interactive Zoom', in status layer the current mode should be 'Interactive Zoom', 18. Navigation mode: Hierarchy Zoom [[BR]] 19. Navigation mode: Fisheye Zoom [[BR]] 20. Navigation mode: Focus Zoom [[BR]] 21. Editing mode: Editing (move/resize all/resize border/edit edge handles) [[BR]] 22. Show (all) icons on/off [[BR]] With option on, all icons are shown also for complex modules, can be toggled on/off 23. Show (all) details on/off [[BR]] With option off, the content (nodes, edges, icons, labels) disappears, can be toggled on/off 24. Show (all) labels on/off [[BR]] With option off, labels of all nodes (also in hierarchy) disappear, can be toggled on/off 25. Show (all) label boxes on/off [[BR]] With option on, all label boxes of nodes (also in hierarchy) are drawn, option is disabled if (24) is off, can be toggled on/off 26. Edge: Go to source [[BR]] Choose navigation mode 'Hierarchy Zoom', click on compound 'cell' (automatic zoom to compound 'cell'), right click on reaction edge between compound 'k3p1' and compound 'ph1', choose 'Go To Source' from context menu (automatic zoom to compound 'k3p1'), compound 'k3p1' should be enlarged. 27. Edge: Go to target [[BR]] Choose navigation mode 'Hierarchy Zoom', click on compound 'cell' (automatic zoom to compound 'cell'), right click on reaction edge between compound 'k3p1' and compound 'ph1', choose 'Go To Target' from context menu (automatic zoom to compound 'ph1'), compound 'ph1' should be enlarged. 28. Search for node/edge in network [[BR]] Search for the compound '!r2' (attribute == !PromotName, Case sensitive == on, Display options == Highlight, Navigation Options == Hierarchy Zoom), click button 'Search', compound '!r2' is emphasized by 'Global Highlight Node Color' (default red color) applied on the node border, display should zoom to compound '!r2', click button 'Clear' should remove the string input in the dialog and the highlight border color. 29. Check model type [[BR]] Check the correct interpretation of the loaded model. [[BR]] Using Setup A, a logical model should be loaded, in 'Statistics' the model type should be 'Logical Model', default scenario should be 'Logical Network'. [[BR]] Using Setup B, a dynamical model should be loaded, in 'Statistics' the model type should be 'Dynamical Model', default scenario should be 'Visual Editor'. [[BR]] Using Setup C, a SBML model should be loaded, in 'Statistics' the model type should be 'SBML Model', default scenario should be 'SBML Model'. [[BR]] Using Setup D, a unknown model type should be loaded, in 'Statistics' the model type should be 'Unknown Model', default scenario should be 'Visual Editor'. === Not tested/not critical/trivial === 30. Statistics dialog