NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Performance problems with main storage & Execution Time for single Steps missing

Hello,

 

we are using TestStand 2013 in our project and now I have 2 questions:

 

1. We created about 800 test cases (each test case is saved as a single sequence file) in TestStand. For executing all 800 test cases one after the other we created one overall sequence that calls each test sequence one after the other. With the standard Run Options for each Sequence Call we had the problem that TestStand needed so much main storage of our computer that other tools we use during our tests crashed because they didn't get enough storage to work with anymore.

We found the possibility to edit the run options for Load (set now to "Load dynamically") and Unload (set now to "Unload after step ist excecuted") and the storage usage improved a bit.

Now the question: Is there any other additional possibility to improve the main storage usage of TestStand?

 

2. In an earlier TestStand Version (2012) we used to see a column called "Execution Time" in the "Steps" view after executing a test for each test step. There one could see how long one single step of the sequence was exceuted. In 2013 I can't see this anymore, can anyone tell me how to get this column back?

 

Thanks a lot!

0 Kudos
Message 1 of 8
(4,788 Views)

Hey ladyoscar,

 

With 800 test cases, it's likely that some of your memory usage is coming from TestStand report generation. There are three settings you can configure which will greatly reduce your memory usage from reporting. You can find them in sections 1 and 2 of this whitepaper. The other suggestions in that paper are also ways to reduce memory usage.

 

Are you executing your tests in the TestStand Sequence Editor or a TestStand user interface? Since it is a development environment, the Sequence Editor will use a bit more memory than a user interface would.

 

As for the second question, there is a step list configuration which already includes the execution times. You can set it by setting a breakpoint and starting an execution (to see the execution step list) and then right-clicking to select the correct configuration, as shown:

 

ExecutionTimes.png

 

I hope this helps, and please let us know if you have any additional questions!

0 Kudos
Message 2 of 8
(4,766 Views)

Also, on a 64-bit OS TestStand 2013, even though it's a 32-bit process, will have a bit more memory available to it than on a 32-bit OS due to it being marked as Large Address Aware. If you are using a 32-bit OS, that might be something to consider, though you should follow Daniel's suggestions first since reducing the memory usage of reports will likely make a bigger difference.

 

Hope this helps,

-Doug

0 Kudos
Message 3 of 8
(4,764 Views)

Thanks for your answers. I will try the settings for memory improvement today and let you know if it helped.

 

Concerning the execution times. I did what you said but when I open the Step List Configurations I don't have "Execution Times" there like in your screenshot... There are only the other three options...

0 Kudos
Message 4 of 8
(4,753 Views)

Is it possible that you tried to set the Step List Configuration at edit time rather than runtime? The step list configuration for the step view while editing does not have execution times as an option (because there is no execution occurring). You will need to right-click and configure this setting on the execution list of the steps. One easy way to do this is to set a breakpoint, and then execute the sequence. When the sequence pauses at the breakpoint, right-click on the step list (which should have a yellow background similar to my screenshot) and the Execution Times option should be present. 

 

Let us know how it goes! 

0 Kudos
Message 5 of 8
(4,741 Views)

Hi,

 

I did it exactly as you said but unfortunately I can't see the Exceution Times during Runtime... Is it possible that somehow this option was deleted? Can I get it back if that's the problem?

 

Thanks!

0 Kudos
Message 6 of 8
(4,736 Views)

Hi,

 

It is possible that "Execution Times" option was somehow deleted. In any case you can create the option easily by following the below instructions:

 

  1. Place a break point on the first step of a sequence and execute the sequence.
  2. Right Click on the Execution Window and select Step List Configurations-->Edit Step List Configurations
  3. Click "New" to create a new configuration and select the checkbox (Give any suitable name)
  4. Now click on "Edit" to edit the configuration settings. You will see a dialog poped up.
  5. Goto Columns Tab and click on "Add" button.
  6. Specify a suitable caption and change the type to "Expression" as shown below:
  7. Forum1.png
  8. Add the following expression in Expression Control: (Step.LastStepResult != Nothing && Step.LastStepResult.Exists("TS.ModuleTime", 0)) ? Str(Step.LastStepResult.TS.ModuleTime) : ""
  9. Add the following expression in Background Color Expression Control: (Step.LastStepResult == Nothing || !Step.LastStepResult.Exists("TS.ModuleTime", 0)) ? -1 : Step.LastStepResult.TS.ModuleTime < 1 ? tsGreen : Step.LastStepResult.TS.ModuleTime < 5 ? tsYellow : 0x0080FF /* orange */
  10. Click apply and then OK on all the dialogs.

 

Hope this helps...Please let us know if you have any questions..

 

-Deepak

0 Kudos
Message 7 of 8
(4,621 Views)

Hi,

 

thanks a lot it worked 🙂 !

 

I could also improve the performance with the hints from the post above thanks for this also!

0 Kudos
Message 8 of 8
(4,612 Views)