VectorCAST version 2018 SP2 allows the user to implement two new methods for a SystemTests derivative in the system_tests.py file that perform actions before and after test execution.
For example to setup a network connection and then tear it down or create a log file and then append it to a master log file.
Tests are run in the following order:
If an exception occurs in pre_run_test_cases, no test cases are executed but the post_run_test_cases is called.
If an exception occurs while executing a test case, post_run_test_cases is still called.
If an exception occurs in post_run_test_cases, test results are retained.