08-16-2006 05:25 PM
08-17-2006
04:37 PM
- last edited on
07-24-2025
12:21 PM
by
Content Cleaner
There really isn't a built in mechanism within TestStand to accomplish what you're looking for. Luckily for us, TestStand is customizable to the extreme!
One question I had for you, how exactly are you Limit Testing this 2D array of data? One set of limits for each row? Testing the mean of each row?
There are a couple of options that come to mind. First of all, you could pass your 2D array back from an Action Step to some Local variable. Then, iterating over this Local variable you can do a Multiple Numeric Limit test on each row of the 2D array, which would in turn Limit test every element in your 2D array.
Your other option would be to create a Custom Step Type. This is going to be a bit tricker, but much cleaner and more useful if this type of testing is something you'll be doing fairly often. I would recommend starting with a copy of the Multiple Numeric Limit test and creating a new Edit Substep to set your Limits, and a new Post Step Substep that evaluates whether or not your step passes or fails based on the 2D array that was generated. This Post Step substep could be written in any language of your choosing.
To learn more about creating Custom Step Types, check out the TestStand Reference Manual, specifically Chapter 13: Creating Custom Step Types.
Hope this helps, let us know if you have any more questions.
08-17-2006 04:47 PM
Dan,
Thanks for the information. I was able to pass the 2D array to a local variable, and iterate over it like you suggested.
From what I've seen so far, TestStand can be a very powerful tool and I'm looking forward to learning more about it.
Thanks,
Ian FitzGerald