What are initializer methods? - 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

These are methods that are called at certain times during the test execution. Initializer methods are part of a test fixture and work in the context of the class.

You can use the following functionality:

  1. {FixtureSetup} -> A method with this pragma will be called once, before any other test is executed.
  2. {FixtureTearDown} -> A method with this pragma will be called once, after every other test was executed.
  3. {TestSetup} -> A method with this pragma will be called every time before a test inside the test class is executed.
  4. {TestTearDown} -> A method with this pragma will be called every time after a test inside the test class is executed.