In general, every time you use a loop within your sequence, you need to be careful about result collection. This is due to the fact that upon each iteration of the loop, a new element is inserted into the Locals.ResultList array variable that will hold the results of that iteration. As Locals.ResultList increases in size, so does the amount of total memory used by TestStand. When dealing with loops that have large iteration counts, this memory usage increase may be significant. There are a couple of situations in which you may experience this behavior: using the Loop Option on a particular step, or using Goto steps to implement a loop. To avoid this problem you may:
Disable result collection for the loop. Depending on the type of looping option you have set up (i.e. step loop options, or using Goto steps to implement a loop) you will need to do one of the following:
If you are using the step loop option, you need to disable the Record Results for Each Iteration option. To do this, right-click on the step, and select Properties. Click on the Loop Options tab and uncheck the Record Results for Each Iteration option. Simply disabling the record results under the Run Options tab will not prevent the memory usage increase.
If you are using Goto steps, you need to disable recording of results for each step inside of the loop, including the Goto step itself. You can accomplish this by right-clicking on each step within the loop and selecting Properties. Click on the Run Options tab and uncheck the Record Result option.
Generate the report on the fly. In other words, after each step executes, the report is updated and the last element of Locals.ResultList is deleted. You can check select Configure»Result Processing, then click the Options button for Report plugin. In Report Options dialog, enable On-The-Fly Reporting option. You should also select Configure»Model Options and enable option Discard Results or Disable Results when not Required by Model to ensure that results are removed from memory after being added to the report.
Disabling report generation by selecting Configure»Result Processing and deselecting the Enabled checkbox for Report plugin (Configure»Report Options»Disable Report Generation in TestStand 2010 and previous) will not prevent TestStand from collecting results. Items will still be added to Locals.ResultList even though no report is generated.
Thank you for your feedback.
You changed your response to Not Helpful
You changed your response to Helpful
Troubleshooting Memory Growth Issues in TestStand Systems
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.