Changes between Version 23 and Version 24 of PromotExplorerTest
- Timestamp:
- Aug 17, 2010, 3:22:16 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PromotExplorerTest
v23 v24 27 27 === JUnit Tests === 28 28 29 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. 29 1. Parsing of delimited text file [[BR]] [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/viznav/test/DelimitedTextReaderTest.java][[BR]] 30 Check correct parsing of delimited text file, delimiter is <TAB> 31 32 2. Import node and edge attributes [[BR]] [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/viznav/test/AttributeReaderTest.java] [[BR]] 33 Check that two external files (edge attributes, node attributes) are loaded properly. The attributes should be mapped to the existing nodes and edges in the graph correctly. 30 34 31 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. Test is independent of the model type. 35 3. Parsing and calculation of logical parameter 'Multiple Level' [[BR]] [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/viznav/test/LogicalParameterMultipleLevelTest.java] [[BR]] 36 Check that the logical parameter 'Multiple Level' is correctly parsed and calculated 32 37 33 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. 38 4. Scenarios: Logical Network Parser [[BR]] [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/viznav/test/LogicalNetworkParserTest.java] [[BR]] 39 Check that part of the logical network parser, especially parsing of DUMMY element and NOT element. 40 41 5. Load global scenarios [[BR]] [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/viznav/test/VisualPropertyTest.java] [[BR]] 42 Check that the global scenario file (.!PromotVizScenarios) is at the given location and calculators are loaded properly from the file. Test is independent of the model type. 43 44 6. Calculation of 'Interaction Distance' [[BR]] [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/viznav/test/InteractionDistanceTest.java] [[BR]] 45 Check that the interaction distance of elements in the network model based on a focused element is calculated properly 34 46 35 47 === Tests === … … 102 114 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. 103 115 104 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 'GoTo Source' from context menu (automatic zoom to compound 'k3p1'), compound 'k3p1' should be enlarged.116 26. Edge: Zoom 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 'Zoom To Source' from context menu (automatic zoom to compound 'k3p1'), compound 'k3p1' should be enlarged. 105 117 106 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 'GoTo Target' from context menu (automatic zoom to compound 'ph1'), compound 'ph1' should be enlarged.118 27. Edge: Zoom 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 'Zoom To Target' from context menu (automatic zoom to compound 'ph1'), compound 'ph1' should be enlarged. 107 119 108 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. [[BR]][[BR]] 120 28. Edge: Zoom along Edge [[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 'Zoom along Edge' from context menu (automatic zoom to compound 'ph1'), compound 'ph1' should be enlarged. 121 122 29. 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. [[BR]][[BR]] 109 123 Search for the edges with interaction type 'inhibition' (attribute == !InteractionType, Case sensitive == off, Display options == Highlight, Navigation Options == None), click button 'Search', edges 'ph1-->a1_not_ph1_k1' and '!r1-->not_r1_r2_a2' are emphasized by 'Global Highlight Edge Color' (default red color) applied on the edge color, no zoom should be applied, click button 'Clear' should remove the string input in the dialog and the highlight border color. 110 124 111 29. Check model type [[BR]] Check the correct interpretation of the loaded model. Four cases:[[BR]]125 30. Check model type [[BR]] Check the correct interpretation of the loaded model. Four cases:[[BR]] 112 126 1. Using Setup A, a logical model should be loaded, in the 'Statistics' dialog the model type should be 'Logical Model', default scenario should be 'Logical Network'. 113 127 2. Using Setup B, a dynamical model should be loaded, in the 'Statistics' dialog the model type should be 'Dynamical Model', default scenario should be 'Visual Editor'. … … 117 131 === Not tested / not critical / trivial === 118 132 119 30. Statistics dialog 120 31. Options (General, Rendering, Navigation, Scenarios) 121 32. Legend for modes 133 31. Statistics dialog 134 32. Options (General, Rendering, Navigation, Scenarios) 135 33. Legend for modes 136 34. Legend for current visual scenario