06-23-2010 08:52 AM
Hello,
I am working on a tool to automatically generate TestStand tests (using v3.5) from a repository of functions, actions, etc. It is based off of the SequenceBuilderTool example and the Import/Export Properties functionality. I've almost completed it, but I'm having one minor problem and would appreciate anybody's help and/or examples.
I programmatically create my INI file to copy the general step prototypes into my new sequence, so I can make any changes to format that are needed. The example packaged with teststand only utilizes the MainSequence, but my files have several subsequences. The main sequence simply performs some setup and then calls these. I've been unable thus far to make an INI and alter the TestStand steps in such a way to create a similar structure. Can anybody walk me through how to do this or provide an example I can look at?
On a seperate note, not sure if this is possible or not, but can the Import/Export Properties dialog be executed programmatically? I have the location of my CSV and SEQ files stored, but haven't found a way to do it yet. Not a big deal on that part if not, just thought it would simplify the process.
Appreciate any help you can offer. Thanks.
-DH
06-23-2010 09:50 PM
Looks like you're working on an application similar to mine. The trick to make that file do what you want requires a few different modifications. First, make a seperate case in your MainSequence in the event that a line in your *.ini file meets the formatting conditions you're going to use for the new sequence name (probably easiest to just omite the parentheses). The first time you hit one of the headers, you'll want to execute the build new sequence code as is, but on subsequent executions, use a modified version that implements NewSequence instead of NewSequenceFile.
You'll have to change a lot of pre/post expressions and actions, and probably change how some of the searches and parses actually operate. If you need actual code, let me know and I'll get it to you, don't have it on this computer but can get it in the next day or two if needed.
As far as executing the Import / Export Properties function from your sequence, I'm not sure of a way. There's a property loader step that you can look into though.
-Bryan
06-24-2010 12:50 AM
DH,
[On a seperate note, not sure if this is possible or not, but can the Import/Export Properties dialog be executed programmatically? I have the location of my CSV and SEQ files stored, but haven't found a way to do it yet. Not a big deal on that part if not, just thought it would simplify the process.]
It's called the PropertyLoader Step Type but not sure if that's what you mean!
When you refer to as INI file, what file do you mean?