Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
ddpozo
Contributor
Contributor

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:

0693p00000BXUo3AAH.png

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. 

Is this a bug or am I missing something?

Cheers,

D.

Labels (3)
0 Replies