how to create user session in test microflows?

0
while testing a microflow , I am not getting the current session and  current user. how can I create session object in testflows , so that I can test the unit testcases. I  am testing  it from the  unit test module in mendix .  one object is associated with the “ $currentsession”   which is being returned as empty.
asked
2 answers
0

What way do you test the microflows?

As microflow should only be accessible by an authorized user, you must be logged in with an user, also when executing automated testing.

answered
0

Im not really sure why do you need to have a session for executing unit test cases. 

But I can also imagine, there could some corner cases which may require. 

You could have a java class that could create a session for a user with Mendix Core. Refer the below URL.

https://apidocs.rnd.mendix.com/8/runtime/com/mendix/core/Core.html

answered