How Do I Share Data Stored in a File Global Variable Between Different Executions?

Updated May 31, 2018

Reported In

Software

  • TestStand 2016 SP1
  • TestStand 2016
  • TestStand 2014
  • TestStand 2014 SP1

Issue Details

I'm using a File Global variable to store data and I'm using a parallel Process Model such as Batch Process Model.
How can I share data between different executions and access the File Global from all test sockets?

Solution

In order to share data stored in a File Global variable, you should follow these steps:
  • Open your sequence file in TestStand Sequence Editor
  • Select Edit»Sequence File Properties from the toolbar
  • In the Properties dialog, select the All Executions Share the Same File Globals option from Sequence File Globals drop-down menu.
  • Click OK to register the change.

This will prevent a copy of the File Globals from being created for each execution.

Additional Information

Note that this operation will raise the scope of File Globals to all executions and may result in a race condition.  If you wish to share data between executions without making your File Globals prone to race conditions, consider to use queues or notifications.

WAS THIS ARTICLE HELPFUL?

Not Helpful