Leading Project for Biosimulation > Cell/Biodynamics Simulation > simBio
 

Feature Request ID FR-19R: Error detection for XmlFilesTest

Aim

To detect all errors that can occur when running XmlFilesTest.

Error types for Model XML-files

Errors detected by the testcase/setup

  1. Error in malformed XML
  2. Error in className - Note1
  3. Error in initial_value - Note1
  4. Exception in model integration (Error in variable name, link name and initial_value) - Note2

Error types for Make XML-files

Errors detected by the testcase/setup

  1. Error in malformed XML
  2. Error in generate launch
  3. Error in baseModel path
  4. Error in xpath for erase, write, insert and insert before
  5. Error in missing generate tag
  6. Error in duplicates in the generated model XML-filename
  7. Error in className - Note1
  8. Error in initial_value - Note1
  9. Error in value - Note1
  10. Exception in model integration (Error in variable name, link name and initial_value) - Note2

Error types for Protocol XML-files

Errors detected by the testcase/setup

  1. Error in malformed XML
  2. Error in xpath
  3. Error in baseModel path
  4. Error in className
  5. Error in initial_value
  6. Error in value

Notes

Note 1
Method showErrorDialog() is called and an Error dialog is opened. This Error dialog can't be caught as we need an instance of GUI to be able to catch the child dialog and this error occurs before we get an instance of the GUI. But because the Model XML-file is not opened if this error occurs it gets detected in the check for opened model in the GUI before running the model.
Note 2
Method showErrorDialog() is called and an Error dialog is opened. This Error dialog can be caught as we have an instance of the GUI at this time. But to eliminate conflicts with other simBio dialogs method checkException() is called instead.