VectorCAST System Test Script Support Actions Pre and Post Test Execution

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:

  • pre_run_test_cases
  • test 1
  • test 2, etc.
  • post_run_test_cases

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.



Article ID: 1379
Last updated: 2019-10-02
Revision: 3
VectorCAST -> New Features from 2018 -> VectorCAST System Test Script Support Actions Pre and Post Test Execution
https://kb.vector.com/entry/1379/