Version 3 (modified by kolczyk, 16 years ago) (diff) |
---|
ProMoT Visual Editor
Setup A for tests: (functionality needed for the setup should be tested in browser tests, see: testplan)
Start ProMoT server and GUI -> load the logical library Promot/trunk/promot/kb/SignalTransd/structure/struct-ana-library.mdl
-> load the logical toymodel from tutorial Promot/trunk/promot/kb/SignalTransd/structure/toymodel_tutorial/LOAD_toymodel.mdl
-> Open the Visual Editor for the browser tree node "cell" by double click.
Setup A is applied to tests 1., 2., 3., 4., 5., 7., 9.,
- Open the menu "Model" -> "Save as", type in the dialog "cell2" and click to the button "OK". A new class appears in the browser tree with name "cell2" with the same mdl-code like cell. !!! Save changes has to be tested. !!!
- Click to "X" in the upper right corner or choose the menu action "Model" -> "Close" and the editor disappears.
- Open the browser tree for "struct-library" and "compound" Drag from the ProMoTTreeNode "drug" to the Modules-palette and release. The class is now available in the Palette.
Drag from the ProMoTTreeNode "nucleus" to the ConstructionArea and release. A new Slot with name "nucleus0" is created at the coordinates where released. - Drag from the class "source" in the Modules-palette to the ConstructionArea, a new instance is created with name "source0" at the coordinates where released.
- Setup A and test 3 -> then click with right mouse button to the class "drug" in the Modules-palette and choose delete. The class disappears.
- Disposing a slot in the ConstructionArea of the PaletteWindow is tested in the junit test Promot/trunk/promot/src/gui/org/mpg/dcts/promot/vizedit/cmds/CmdDisposeTest.java
- Double click to the class nucleus and a new visual editor with the corresponding class opens.
- Rename a connected slot is tested in junit test Promot/trunk/promot/src/gui/org/mpg/dcts/promot/test/CmdRenameTest.java, missing test for unconnected
- Insert a "kinase" and an "and-2" slot by drag and drop from the Modules-palette, then drag an edge from the port of "kinase" to the "input1" port of "and-2". A new link with a linknode placed at the "kinase"-port will be created.
- Press the mouse over the slot named "nucleus" and move the mouse around, mouse release will place the "nucleus" slot at another place. Now press the cursor-key and the selected slot will also move.
- Propagate a terminal from a slots port (logical gate terminal, logical compound terminal, dynamic terminals)
- Copy&Paste a selection of slots (inside one/ between two editors)
- EditDetailsDialog (single changes/combination of changes)
- Elevate a modules content to the current level (de-modularization)
- Create a new class from a selection (modularization)
- Export graphics
- Set Map number
- Set parameter to selection
- Setting the model size is tested in Promot/trunk/promot/src/gui/org/mpg/dcts/promot/vizedit/cmds/CmdSetModelSizeTest.java
- Fitting the model size to module content is also tested in Promot/trunk/promot/src/gui/org/mpg/dcts/promot/vizedit/cmds/CmdSetModelSizeTest.java