LVFan -
Starting in TestStand 3.0, we had to support vtable access to our COM API, so the entire API was touched. It appears that internally when returning arrays for the sequence context, we incorrectly validate the type of the elements and we throw an error when the type appears to be incorrect. It appears this problem occurs in 3.0 and 3.1.
A workaround is to use the property object interface, i.e. call
object = context.AsPropertyObject()
stepArray = object.GetPropertyObject("RunState.InitialSelection.SelectedSteps", 0)
Thank you for bringing this to our attention.
Scott Richardson (NI)
Scott Richardson
https://testeract.com