You are viewing the documentation for Blueriq 15. Documentation for other versions is available in our documentation directory.

What is it?

In a unit test of a data mapping, the output profile is compared with the expected profile. A unit test succeeds if no differences between these two profiles exist and it fails if any difference between these two profiles exists. Ideally, the unit that is tested is a mapping rule. This will make the maintenance more flexible and keeps the profiles readable. If you want to test conditions in a mapping rule, more unit tests of one mapping rule are advised.

To create a unit test, you need:

  1. The unit test element itself,
  2. an input profile,
  3. a data mapping,
  4. and an expected output profile.

If the data mapping unit test hasn't been created automatically yet (as unnamed test), creating a unit test is done using the button under the testcases tab, after which a new test case will appear in the list. Note that the in- and output profiles are linked to the tests in this list. It is possible to run all tests in this list at once using the button, or a single test using the button or by simply running the simulation. 

After running the test, it will either succeed or fail.


  • No labels