If a tested program has ref cursor out parameters, the elapsed time outcome does not fetch these cursors before recording the elapsed time. Therefore, the elapsed time is only that of the initial program call (opening of cursors). From a testing standpoint, we would like to test the program completely as the application would call it, to include the fetching of the cursors. This would allow us to test that a complete call of the program does not exceed a certain elapsed time.
I have tried to add custom code to the “Post-execution code” section of a test case which would fetch the cursor but the generated code to get the end time gets executed before that piece of code. I would rather not use the “Execute this code instead of the generated execution code” section as this would almost defeat the purpose of having QCTO generate the code. Is there a workaround for this or a feature that I am missing? Thanks in advance.