07-12-2015 11:48 PM
Hi, I tried searching and did not find anything on this topic. Maybe I am not searching correctly so if this topic is already posted please point me in the right direction, thanks.
I am pretty new to TestStand so I am still fumbling my way around. Currently I am using TestStand 2014 32 bit on a PC running Windows 7. I have a sequence file that contains a number of multi-numeric tests. I want to be able to count the total number of multi-numeric steps in the sequence file and the total number of multi-numeric steps that will get executed (in debug mode). I have a custome report that gets generated in Excel taking the results from the multi-numeric tests. The total number of pages in my report depends on how many tests are executed. I am trying to write to the report something like page 1 of 3, so if I know the numer of tests that will run than I can calculate the number of pages.
07-15-2015 02:51 PM
Hello Tom75,
Sorry, I am trying to understand your application better. Is your aim to specify in the report the number of pages?
Or is it to display the number of steps in the sequence.
07-16-2015 09:42 AM
Hi IronBrotha,
In my application each multi-numeric test result will be displayed in my report as a single row (step name, min, max values, ect...). Right now it's setup that after a index count of 33 it will create a new sheet in Excel and call it sheet 2, but instead of sheet 2 I want it to be displayed as sheet 2 of X so when the final report gets printed, we know we printed all the pages. If I can count the total number of multi-numeric steps that will be used, than I can figure out what X will be up front for the report.
07-16-2015 05:29 PM
Tom,
You are probably better off doing this at the end of the test and re-rendering the report. It would be much easier. The other reason is that even though TestStand is a sequencer enough logic can exist that some steps may run multiple times. Not sure if that is the case for you. If that were the case though then your count wouldn't be accurate.
If you are insistant on doing this then you can use the API to get all the steps in the sequence and then iterate through and see what step type they are:
Sequence.GetNumSteps
Step.StepType.Name
Regards,
07-16-2015 10:57 PM
Hi Jigg,
You are right and I thought about going back at the end of the run and re-numbering, but the code was originally done by someone else and there is a mixture of both summary and graphs in the report, each graph is unfortunately a chart object in a sheet. I would have to seperate the sheets that are not neccessary (plots for reference) from the summary sheets which might make this a bit messy. You are right, the multi-numeric steps would be used multiple times base on configuration and temperature profiles, but that I can easily figure out base on variables already in place. I think either way will work, but this way I get a chance to increase my knowledge of TestStand 🙂 and for that I thank you for the information.