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
- Error in malformed XML
- Error in className - Note1
- Error in initial_value - Note1
- 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
- Error in malformed XML
- Error in generate launch
- Error in baseModel path
- Error in xpath for erase, write, insert and insert before
- Error in missing generate tag
- Error in duplicates in the generated model XML-filename
- Error in className - Note1
- Error in initial_value - Note1
- Error in value - Note1
- 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
- Error in malformed XML
- Error in xpath
- Error in baseModel path
- Error in className
- Error in initial_value
- 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.