Can't set Test Case input body in normal execution
Dear community,
I am working on test cases and I am currently using a mock component with a processor which creates the input data for the test.
If I run the test case as in the "Test Cases" window the test runs correctly as expected.
The problem is that if I use the normal execution, the input data is never loaded. It appears as if the mock1 component is never run at all. How can I set the input when using the normal execution?
To better explain the problem, I have created an extremely simple test case:
cMock_1 is simulated by the cProcessor_1
cProcessor_1 just sets the body to the String “example”
cLog prints the message body
cMock_2 checks the string is “example”
When running this in the “Test Cases” window, the test passes as expected.
When running this in the normal execution environment, the cLog component prints an empty body.