Data sets for process tests

Related products: Software Factory

In certain situations you have the ability to use process tests or unit tests for testing the same behaviour. As unit tests are more isolated on concepts like defaults etc, in certain situations a process test could be usefull to.

The big advantage of unit tests is having Data sets, so mock data can be temporarily inserted in the database. Process tests doesn't have this feature, although I think it would be very usefull there.

Process tests are easier to understand: There is no knowledge necessary of ‘logic data’ such as status codes from concepts like context, defaults etc. In stead, building a process test requires only common sense.

For example: When you have a subject with a task. And this task may only be enabled when there is a record selected. Testing this can be achieved via a process test using the GUI, like image below.

But the same behaviour could be done via unit tests. Only therefore it's necessary to have any knowledge of the ‘expected output’ values, which is very prone to be wrong.

 

The unit test here should be sufficient, but could be more ‘low code’ by having a drop down of options for the expected parameter in some situations. As here the value of the context only can be 0, 1 or 2 (that is, enabled, disabled or hidden).

The only problem with the unit test here is you cannot ensure the concept logic is bound to the subject. So the unit test will pass, but you'll still need a process test to ensure the logic is bound to the subject.

In many situations the unit test has a big advantage the concept of Data sets is applied here. Is it possible the Data sets also could be applied to a test case or test suite?

 

Hi Rene,

The only problem with the unit test here is you cannot ensure the concept logic is bound to the subject. So the unit test will pass, but you'll still need a process test to ensure the logic is bound to the subject.

This won’t be a problem because the unit test will execute the generated logic concept (the context procedure in your example) and validations are in place to ensure the logic concept is enabled for the subject.

Mock data for process tests is something we have thought about however and might be an option in the future.

 


Unfortunately, this idea has not received enough votes. Because we want to keep the focus on ideas that are in high demand in our Community, we are closing this idea.


Updated idea status OpenClosed