Continuous Integration

cancel
Showing results for 
Search instead for 
Did you mean: 

Automating Sequence Analyzer with a relative path to sequence file

Solved!
Go to solution

Hi,

I am trying to run a Sequence Analyzer from command line and it does work, but I can't find a way to point it to a sequence file folder nor workspace using parameter or a relative path or anything really. The only way I see is to hard-code paths in to the project. Am I missing something?

 

I'm using this command:

 

start /wait "" "%teststand%\Bin\AnalyzerApp.exe" MyAnalyzerProject.tsaproj /analyze /report /save /clearMessagesOnSave /quit

 

 

Cross posted to TestStand forum, because I am not sure where it fits better.

0 Kudos
Message 1 of 3
(4,041 Views)
Solution
Accepted by topic author Paulius

I solved this a few years back (don't know whether NI has a better solution with newer versions yet) by creating a dummy tsaproj file in XML format with a bogus sequence file as part of the project.  Then I would do a search\replace on the xml file and insert my desired sequence file, save the tsaproj file, and then call the analysis.  Fairly straightforward to do a 1:1 replacement of just one sequence file in the .tsaproj.  A little more involved if you want to handle analysis of multiple sequence files, but for that case I found it was better to just do them individually anyways.

 

a few extra hoops to jump through, but it worked.

0 Kudos
Message 2 of 3
(4,023 Views)

Thanks, that sounds like a good solution. I found that project file actually contains a relative path, it is just the editor GUI that displays full path.

0 Kudos
Message 3 of 3
(4,008 Views)