Skip to main content

Migrate Mendix Unit Tests

Definition

This document helps you to migrate tests for the Mendix Unit Test module to MTA.

info

Executing Unit-test microflows in MTA, only works for the Unit Test module versions 9.5.2 and older.
Versions 9.6.0 and higher are not supported and need to be executed with the context of the Mendix Unit Test module.

Steps

  1. Create a new Test Configuration.
  2. Navigate to "Mendix Model" to use the Test Case generation feature.
  3. Use the "Microflow" filter textbox, to filter on microflows tested in the Mendix Unit Test Module.
  4. Filter on "UT_" or "TEST_".
  5. Select all microflows that are visible, using the checkbox left of the filter.
  6. Use the "Generate test case(s)" button to generate test cases for up to 11 microflows at a time.

Mendix Model page

  1. When finished, open a Test Case, and add an Assert:
    • If the microflow returns a Boolean, assert "True";
    • If the microflow returns a String, select assert type "Not equals" and leave the value blank;
    • If the microflow does not return anything, you can Handle the Exception.

Feedback?

Missing anything? Let us know!

Last updated 27 March 2024