I am trying to figure out how to write a python script that can pull the Steps and Variable values from a Teststand sequence file. I don't know where to begin. Has anyone done anything like this before that could point me in the right direction? I know that I can use the Python Step commands to call a Python file from Teststand, but I want to do the opposite of this. Call a Teststand file from Python, not to execute the sequence but just to retrieve and read the sequence.
TestStand has powerful set of ActiveX interfaces which you can use to traverse entire sequence file. All the interfaces in TestStand, along with its function and properties are mentioned in the TestStand help.
In python, you can use pywin32 module to interact with ActiveX APIs. This link contains example of opening a sequence file in python and executing it. For your case, after the sequence file is opened, instead of executing it, you can use other functions and properties to traverse the sequence file and get any property or its value.