NI Home > Community > NI Discussion Forums
Reply
Member
AdamV
Posts: 3
0 Kudos

Run Sequence File Documentation Tool from Command Line

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

Active Participant
AllenP
Posts: 793
0 Kudos

Re: Run Sequence File Documentation Tool from Command Line

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.

Member
Captain_Jack
Posts: 199
0 Kudos

Re: Run Sequence File Documentation Tool from Command Line

[ Edited ]

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

Member
AdamV
Posts: 3
0 Kudos

Re: Run Sequence File Documentation Tool from Command Line

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?

Trusted Enthusiast
RayFarmer
Posts: 4,648
0 Kudos

Re: Run Sequence File Documentation Tool from Command Line

It wouldn't be in the API because its just a sequence / sequencefile of its own right which is linked into the tools menu.

 

 

Regards
Ray Farmer
Active Participant
dug9000
Posts: 1,911
0 Kudos

Re: Run Sequence File Documentation Tool from Command Line

 


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

Active Participant
AllenP
Posts: 793

Re: Run Sequence File Documentation Tool from Command Line

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.

Member
AdamV
Posts: 3

Re: Run Sequence File Documentation Tool from Command Line

Thanks. I was able to get the TestStand Sequence Analyzer to do what I wanted.

Member
JoeC
Posts: 58
0 Kudos

Re: Run Sequence File Documentation Tool from Command Line

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.

Member
JD_war_eagle
Posts: 126
0 Kudos

Re: Run Sequence File Documentation Tool from Command Line

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.

Justin D
Applications Engineer
National Instruments
http://www.ni.com/support/