07-21-2010 06:55 AM
Is there a particular way to add and check "step.result.numeric" value in the watch window while the TestStand is executing? Let me know...
If there is a thread where this query is already answered, please provide me the link.
Thanks,
Yogesh
Solved! Go to Solution.
07-21-2010 08:22 AM
Yogesh,
since Step.Result.Numeric is a runstate property of a certain step type, you cannot add this variable to the watch window and expect it to display valid values all the time. It could possibly only display values during the execution from steps derived from this step type. But since (as far as i know) the watch window is only updated between steps' execution, you will never get any valid values.
What can you do?
1. Use the report as debugging tool
2. Insert a post expression writing the Step.Result.Numeric to a local/global variable
There are a couple of other possible ways, but those two are the easiest ones...
hope this helps,
Norbert
07-21-2010 09:36 AM
As Norbert said, the evaluation is done between steps, however, you can use the following watch expression to see the result of the previous step:
RunState.PreviousStep.Result.Numeric
Hope this helps,
-Doug
07-21-2010 10:40 PM
Thanks you Doug and Norbert. I tried the solution and it works well.