10-21-2011 02:56 PM
Hi,
The code module (TestComplete) returns a value. I mapped the return value to a parameter name in TestStand (Parameter.CloseProjectResult), see attached.
But when I open the Watchlist (for debugging), This Parameter name does not exist. So my question is , how can I see what the value is returned?
Thanks so much!
ph2
10-23-2011 03:08 PM
Hi,
You have assigned the result to be returned to Parameter.CloseProjectResult but this variable is only in scope during the execution of the Sequence in which Parameter.CloseProjectResult has been assigned in.
eg if its the Parameter of the Sequence MySequence and MySequence is a SubSequence to MainSequence then CloseProjectResult is only available in the WatchList while the execution is in MySequence. If you have set the variable CloseProjectResult to be 'Pass by Reference' then the value of CloseProjectResult will be passed back into the caller sequence to the variable you have assigned to it.
See attached example
10-24-2011 09:32 AM
What do you mean by watchlist? There is a variables view, which shows the state of all variables when at a breakpoint, including parameters, and there is a watch view that is initially empty. It's up to you to add things to the watch view, it is not populated automatically.
Hope this helps,
-Doug
10-24-2011 11:04 AM
Thanks Ray and Dug! Yes, I can see the return values of the parameters now.
Regards,
ph2