02-28-2011 10:26 AM
I am trying to collect some metrics for our TestStand sequences. I need to get the total number of steps for a sequence and I have found a way to generate this using the Sequence File Documentation Tool. I was wondering if it is possible to call this from a command line so I can automate the generation of our metrics rather than having to manually generate this for each of our TestStand sequences.
Thanks,
Adam
02-28-2011 07:23 PM
There is no built-in way to do this. However, it would be possible if you made your own executable that used the TestStand API to execute the Sequence that generates the documentation.
03-01-2011 07:38 AM - edited 03-01-2011 07:38 AM
Hi Adam,
While there's no built in way, it might be possible if you design your documentation sequence to be self contained, and then run teststand using the flags available for the command line. You can get these by selecting testexec.exe -? with any of the user interfaces.
Not sure if this is what you mean by command line, but it might get you what your need.
-Jack
03-01-2011 08:01 AM
I was hoping to use the built in Sequence File Documentation generator (accessible from the Tools menu), but it doesn't appear to be available in the API. Without access to this through the API, I won't be able to create a sequence that uses it, right?
03-01-2011 08:32 AM
It wouldn't be in the API because its just a sequence / sequencefile of its own right which is linked into the tools menu.
03-01-2011 09:19 AM
@AdamV wrote:
I was hoping to use the built in Sequence File Documentation generator (accessible from the Tools menu), but it doesn't appear to be available in the API. Without access to this through the API, I won't be able to create a sequence that uses it, right?
It's not part of the API, but you can call the sequence and/or the dll that the sequence uses directly from your own sequence.
Hope this helps,
-Doug
03-01-2011 09:34 AM
Another thing I should mention is that if you are using TestStand 2010 and want a report with step counts for each Sequence File, there is a way to do this with the Sequence Analyzer. You can anaylze a directory or workspace, select only the "Step Count" rule, configure it to count for each sequence, and then generate a report from it. There are still manual steps involved, but you could run this once for all of your files (once you have it configured), and your data is generated. Once you have it configured, it would be two clicks, assuming you save off an Analysis Project with the correct settnigs.
03-03-2011 03:37 PM
Thanks. I was able to get the TestStand Sequence Analyzer to do what I wanted.
04-26-2012 04:27 PM
Yes, I have a need to run and retrieve the report from the Sequence Analyzer from the command prompt (or ActiveX/.net) interface. I would very much like to know how you did this.
We run a build server, and we would like to analyze our test sequences from jenkins which runs on a command line.
04-27-2012 10:31 AM
Hi JoeC,
The method suggested by AllenP still requires manually running the Sequence Analyzer. It does not sound like they were able to achieve automation of the analysis process, and I am unaware of any method to programmatically run the Sequence Analyzer from the command line, or the Teststand API. There is a stand-alone analyzer application called AnalyzerApp.exe which installs with Teststand, but the only command line functionality it provides it to specify an analyzer project to open.