Show Specific Sites Only When Debugging Multiple Sites in TestStand

Updated Jun 16, 2020

Reported In

Software

  • TestStand

Issue Details

There will be 16 of execution windows open when running a sequence for 16 sites parallel test. Is there any way to enable a specific site only when debugging?

Solution

You can use an If step and UIMsg_OpenWindows message to open execution window for any of site you only care about.
 
  1. Drag and drop an If step into your Main Sequence.
  2. Go to the Expression tab of the step settings.
  3. Enter RunState.TestSockets.MyIndex == 2
  4. Drag and drop a Statement step between If and End step.
  5. Go to the Expression tab of the step settings.
  6. Enter RunState.Thread.PostUIMessageEx(UIMsg_OpenWindows, 0, "", RunState.Execution, True)
​​​​​​

When you run the sequence for 16 sites parallel test, only the execution window of site 2 will be open.