NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Automating Teststand Workspace Creation (.tsw)

Is there a way to automate creating a .tsw TestStand workspace through a command line utility or some other method given a set of sequence files and VIs? I know the deployment utility can automate making a .tsd from a .tsw, but this would help expand the automation process so someone does not have to even create a .tsw file and have just their TestStand development files in one folder for example.  

 

Also, given a .tsw file, I would like to know what sequence files and Vis are in it. 

 

Thanks.

Iman

0 Kudos
Message 1 of 3
(2,428 Views)

I don't know about through the command line but there is a TestStand API that you can call in to.

 

For instance Engine.NewWorkspaceFile will create a new file.

Engine.NewPropertyObjectFile(FileType_ProjectFile) will create a new project file.

WorkspaceObject.NewFile(path) will insert a file into the workspace.  You have to create the WorkspaceObject first.

 

https://zone.ni.com/reference/en-XX/help/370052R-01/tsapiref/reftopics/workspacefile/

https://zone.ni.com/reference/en-XX/help/370052R-01/tsapiref/reftopics/engine_newworkspacefile_m/

 

It's not cut and dry but can be done.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(2,406 Views)

I am not sure about the creation of .tsw files, but if you open TestStand, under Tools there is a Workspace File Documentation option. This will give you either an html or a text file with all the files in your workspace I believe. I'm not sure how to automate this process, although if you look through the program files you can find the sequence that it uses. Perhaps there is some way to automate using that that maybe someone else has seen before.

0 Kudos
Message 3 of 3
(2,373 Views)