NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand Report File Creation Timing Settings

I'm using TestStand to run tests and generate reports. I've noticed that TestStand creates an empty file at the beginning of the test, and then populates it with data at the end of the test (I dont have on-the-fly enabled). This is causing issues with my file watching script, which is trying to copy the file to another directory as soon as it's created. The problem is that the file is being created before the test has finished running, so when my script tries to copy it, the file is still empty and doesn't contain the expected data. Is there a setting in TestStand that would allow me to delay the creation of the file until the test has completed? I've searched through the documentation, but couldn't find anything that seems to address this issue.

0 Kudos
Message 1 of 2
(186 Views)

I have to admit, I wasn't aware of this behaviour, but looking at the Report ModelPlugIn, I guess I can see, where this is coming from....

So to answer your question: this can't be configured: you would have to rewrite this part of the standard reporting.

 

Still, hope is not lost 😉 UUT Report is saved to disk during the ModelPlugin - UUT Done.

Oli_Wachno_0-1746595225686.png

So you could go and add some functionality to the PostUUT Callback: copy over the latest file from TestStand report directory to another directory, which is monitored by your FileWatcher.

0 Kudos
Message 2 of 2
(161 Views)