Changes between Version 14 and Version 15 of PromotBrowserTest
- Timestamp:
- Aug 20, 2010, 5:20:22 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PromotBrowserTest
v14 v15 1 1 == ProMoT Browser == 2 2 3 Expectation (functional tests): 3 === Expectation (functional tests) === 4 4 * load: all models from kb should load 5 5 * import SBML: all biomodels should load (events are not imported, needs better error handling in functional tests) … … 10 10 * save: versions (include library, library separate (model only), with dependencies): compare file as text with expectation, test whole kb/examples? 11 11 12 Tests for browser in JUnit tests: 12 === Tests for browser in JUnit tests === 13 13 14 1. 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/] 14 15 2. 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) … … 21 22 junit test [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/test/CmdChangeModelTest.java] 22 23 9. optional junit test for parametrization from diana [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/DianaDataReader/DianaDataReaderTest.java] [[BR]][[BR]] 23 Tests: 24 25 === Tests === 26 24 27 10. Success if 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? [[BR]] 25 28 11. Same as 1. with different library and model (toy-model) … … 32 35 18. Simulate model [[BR]] Load hafke model ([source:/Promot/trunk/promot/kb/hafke/obertopp/LOAD.mdl]), select hafke-process (module --> device --> process) in Browser, open simulation dialog from menu (Tools --> Simulate Model), check for diana app (see status in output log), edit the generation directory to '~/opertopp', click on 'Advanced...' in the solver options pane (new window with several options should appear), close options dialog, click on 'Simulate Model' button (simulation result should appear after a while, several text in output log), click on 'Edit Script' button (text editor should appear with python script), edit the script (e.g. set Tend to 60.0), save, simulate again (tend should be 60.0 now), click on 'reset' button (files in directories 'model', 'script' and 'results' should be removed, status in output log, 'Edit Script' button should be disabled). 33 36 34 35 Visual Inspection for: 37 === Visual Inspection for === 36 38 19. Start Visual Editor for a class 37 39 20. Start Visual Explorer for a class 38 21. ViewMathematicalModel (display of instance)40 21. !ViewMathematicalModel (display of instance) 39 41 22. Exit with Dialog for modified in Editor + Browser (change properties, load, import) 40 42 23. Search class (+class for slot in class) dialog, model type is not important, so test with egf_model, [[br]] … … 42 44 search proti (whole word, class + slot; slot) should return egf_model:proti (slot) [[br]] 43 45 clear should remove displayed results; 44 24. Comparison of models [[BR]] Load two different glycolysis models, e.g. [source:/Promot/trunk/promot/kb/testsuite/mdl/hynne.mdl] and [source:/Promot/trunk/promot/kb/testsuite/mdl/teusink.mdl]. Select the model classes (direct sub-classes of sbml-model) in browser and click compare models. Visual explorer should open, models should be displayed in common container. Edges connecting corresponding elements should be visible. 45 Other example models for comparison (elements with same type +annotation or type + name) can be load with [source:/Promot/trunk/promot/kb/testsuite/mdl/egf+insulin.mdl].46 24. Comparison of models [[BR]] Load two different glycolysis models, e.g. [source:/Promot/trunk/promot/kb/testsuite/mdl/hynne.mdl] and [source:/Promot/trunk/promot/kb/testsuite/mdl/teusink.mdl]. Select the model classes (direct sub-classes of sbml-model) in browser and click compare models. Visual explorer should open, models should be displayed in common container. Edges connecting corresponding elements should be visible. Other example models for comparison (elements with same type +annotation or type + name) can be load with [source:/Promot/trunk/promot/kb/testsuite/mdl/egf+insulin.mdl]. [[BR]] 47 25. Export documentation as HTML [[BR]] Open model, select model, export HTML (File --> Export --> Export HTML), use default options, click on 'Generate HTML' button, check results in a web browser. 46 48 47 Open for testing: 49 === Open for testing === 48 50 option handling save, restore? 49 51 test undo/redo in browser, include in tests for functionality if applicable 50 52 51 Known problems, missing tests: 53 === Known problems, missing tests === 52 54 * model of PromotTree under async updates 53 55 - array index out of bounds,