Some hints regarding test data (or other external files):
In the first step for local testing, use the variable dataDirectory to store the
base directory for all test data so it can be changed easily, see Section 2.4.1.1, “Using Local Data”.
In a second step, if possible, place the test data on central test data servers to ensure your test runs on other computers as well, see Section 2.4.1.2, “Using an External Data Storage”.
If your test accesses files upon opening the test case, ensure that files are checked for
existence before trying to read them. Use the getExternalDataDirectory method for
this, which either returns the path or None. Otherwise, the resulting error messages will
prevent the TestCaseManager from correctly loading the test (may negatively affect other users,
especially if you do not follow rules 1 and 2).
![]() |
Tip |
|---|---|
When your tests run on external data on an in-house server but the test case itself is delivered with MeVisLab, please check in a small sample of test data. This way, external MeVisLab users will also be able to run your test case and learn about its functionality. |
How to debug functional test case Python code from MeVisLab
Activate the debugging mode in MATE with Debug → Enable Debugging , set a breakpoint in your Python test code, and simply run the test from the TestCaseManager with Secure Testing disabled.
© 2026 MeVis Medical Solutions AG