Code Example - Manual - AxUnit-ST - AxUnit ST documentation package - AxUnit-ST,

AxUnit-ST CLI Tool (test)

Portfolio
SIMATIC AX
Product
AxUnit-ST
Software version
8.0.33
Edition
04/2025
Language
English (original)
Package Name
@ax/axunitst-docs
{TestFixture}
CLASS TestCLass

    {Test}
    METHOD PUBLIC MyTestA
        ;
    END_METHOD

    {Test}
    METHOD PUBLIC MyTestB
        ;
    END_METHOD

    {TestSetup}
    METHOD PUBLIC MyTestSetup
    // Will be called before MyTestA AND before TestB are executed
        ;
    END_METHOD

    {TestTearDown}
    METHOD PUBLIC MyTestTearDown
    // Will be called after MyTestA AND before TestB where executed
        ;
    END_METHOD

    {FixtureSetup}
    METHOD PUBLIC MyFixtureSetup
    // Will be called once before the Tests are executed
        ;
    END_METHOD

    {FixtureTearDown}
    METHOD PUBLIC MyFixtureTearDown
    // Will be called after the Tests where executed
        ;
    END_METHOD
END_CLASS