mmecina / CCS

The UVIE Space Central Checkout System (CCS) and Test Specification Tool (TST)
Mozilla Public License 2.0
1 stars 0 forks source link

Init block and variable sharing in TST #11

Open mmecina opened 3 months ago

mmecina commented 3 months ago

The TST now provides a field for an optional "init code" block at the top of each test specification. The part of the code defined in there is going to be executed at the beginning of each test. It can for example be used to import modules or to define variables that are being used throughout a test.

Further there is now also a new class var available. It is intended to share variables between command and verification steps of a test, since they don't have the same scope when executed. For example one can set var.value1 = 42 in a command block and access it elsewhere in the test under that name.