3 | | 1. is already done in junit tests (success here is required for all following tests) |
4 | | 2. success iff library isPresent, model class present as PromotTreeNode, [source:/Promot/trunk/promot/kb/SignalTransd/EGF-model/EGF-LOAD.mdl]; test contents of model? |
5 | | 3. same as 2. with different library and model (toy-model) |
6 | | 4. tested with import + simulation of all biomodels.org models, TODO: test for correctness of simulation results |
7 | | 5. round trip tested [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/cna/CNAImporterTest.java] for cna-model (sigtoynet-test) in test-suite [source:/Promot/trunk/promot/kb/testsuite/CNA/sigtoynet-test/] |
8 | | 6. Save a model into mdl (selected, all), compare generated files to expected; depends on selection tests |
9 | | 7. Export egf-model to SBML, compare generated file with expected output (file content + simulation results), TODO: export should work (be tested) for all models in kb, which tool for simulation (scriptable required)? comparison of simulation results after SBML round trip |
10 | | 8. Export egf-model to Diana/Diva, compare generated file with expected output (file content + simulation results), TODO: export should work (be tested) for all models in kb |
11 | | 9. round trip tested, see 5. test-model for export of modular models would be nice although no problems for export are known yet, right now only tested for diana (no scripts for DIVA yet) |
12 | | 10. junit test [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/test/CmdAddSubclassTest.java] |
13 | | 11. junit test [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/test/CmdDeleteTest.java] |
14 | | 12. junit test [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/PromotTest.java] |
15 | | 13. junit test [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/test/CmdCopyClassTest.java] |
16 | | 14. Select a class, a class with superclasses, a class with dependencies, a class with dependents, all classes in tree |
17 | | 15. Start Visual Editor for egf-model, toy-model and imported sbml |
18 | | 16. Start Visual Explorer for egf-model, toy-model and imported sbml, which (default) scenarios to apply? |
| 3 | Expectation (functional tests): |
| 4 | * load: all models from kb should load |
| 5 | * import SBML: all biomodels should load (events are not imported, needs better error handling in functional tests) |
| 6 | * export SBML: model should be valid and match expected simulation results (which tool for tests, workflow/scripting needed) |
| 7 | * import CNA (signaling): all example models from CNA should be imported and be identical (as close as possible) after export/round trip |
| 8 | * export CNA (signaling): exported models should be ok for CNA (how to test?) |
| 9 | * export diana: model should be simulatable, simulation result should be identical to expected result within given threshold |
| 10 | * save: versions (include library, library separate (model only), with dependencies): compare file as text with expectation, test whole kb/examples? |
| 11 | |
| 12 | Tests: |
| 13 | |
| 14 | 1. success iff library isPresent (included in file so file changes might break the test), model class present as PromotTreeNode, [source:/Promot/trunk/promot/kb/SignalTransd/EGF-model/EGF-LOAD.mdl]; test contents of model/PromotTreeNode? |
| 15 | 2. same as 1. with different library and model (toy-model) |
| 16 | 3. tested with import + simulation of all biomodels.org models, TODO: test for correctness of simulation results |
| 17 | 4. round trip tested [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/cna/CNAImporterTest.java] for cna-model (sigtoynet-test) in test-suite [source:/Promot/trunk/promot/kb/testsuite/CNA/sigtoynet-test/] |
| 18 | 5. Save a model into mdl (selected, all), compare generated files to expected; depends on selection test (13), test round trip of load+save of example |
| 19 | 6. Export egf-model to SBML, compare generated file with expected output (file content + simulation results), TODO: export should work (be tested) for all models in kb, which tool for simulation (scriptable required)? comparison of simulation results after SBML round trip |
| 20 | 7. Export egf-model to Diana/Diva, compare generated file with expected output (file content + simulation results), TODO: export should work (be tested) for all models in kb |
| 21 | 8. round trip tested, see 5. test-model for export of modular models would be nice although no problems for export are known yet, right now only tested for diana (no scripts for DIVA yet) |
| 22 | 9. junit test [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/test/CmdAddSubclassTest.java] |
| 23 | 10. junit test [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/test/CmdDeleteTest.java] |
| 24 | 11. junit test [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/PromotTest.java] |
| 25 | 12. junit test [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/test/CmdCopyClassTest.java] |
| 26 | 13. Select a class, a class with superclasses, a class with dependencies, a class with dependents, all classes in tree |
| 27 | 14. Run script, test with default inputs for synthetic biology scripts |
| 28 | 15. change properties: icon, abstract, model (including undo) |
| 29 | |
| 30 | Visual Inspection for: |
| 31 | 1. Start Visual Editor for a class |
| 32 | 2. Start Visual Explorer for a class |
| 33 | 3. ViewMathematicalModel (display of instance) |
| 34 | 4. Exit with Dialog for modified in Editor + Browser (change properties, load, import) |
| 35 | |
| 36 | Open for testing: |
| 37 | option handling save, restore? |
| 38 | test undo/redo in browser, include in tests for functionality if applicable |
| 39 | |
| 40 | Known problems, missing tests: |
| 41 | * model of PromotTree under async updates |
| 42 | - array index out of bounds, |
| 43 | - display problems with null nodes in selection (update to slow) |
| 44 | - recovery from exception (refresh, seems to not restore content completely) |
| 45 | * menu construction |
| 46 | - only finished after PaletteWindow constructed at least once (coupling EditorMenu, BrowserMenu), start in event thread? |
| 47 | - text for menu entries larger than pop-down menu (only vista so far, needs more testing) |
| 48 | |