Why should I use them? - Manual - AxUnit-ST - AxUnit ST documentation package - AxUnit-ST,

AxUnit-ST CLI Tool (test)

Portfolio
SIMATIC AX
Product
AxUnit-ST
Software version
8.3.9
Edition
07/2025
Language
English (original)
Package Name
@ax/axunitst-docs

There are a lot of use cases for initializer methods. Here are some examples:

  1. You want to measure how long some functionality takes on a plc? Use the {FixtureSetup} and {FixtureTearDown} methods to setup a timer!
  2. Your test class uses variables that more than one test is using? Make sure that these variables are at the expected state with a {TestSetup} method. Otherwise, a test might change them, and another tests does not expect it.
  3. You want to write something in a log file after each test has been executed? Use the {TestTearDown} functionality.