09-15-2014 07:32 AM
OK, so I'm starting to look into regular testing with UTF. I installed it, and from memory I know that I can right click a folder and select New > Unit Test.
Doing this gives me a new file Untitled.lvtest.
Great, thanks. But how do I rename it??
If I right click it and select Rename, I get to choose a new filename in a Windows Dialogue, but the change doesn't get set.
If I go to Windows Explorer and try to rename it, it's apparently locked for use in LabVIEW.
If I double click the test to edit it's properties, the filename is a disabled field and can't be changed.
Am I missing something obvious? How do you change the name of a test?
Note: I have Requirements Gateway open, but it's not currently indexing UTF files and closing it makes no difference. Environment: Win 7 32-bit, clean virtual OS, LabVIEW 2013 SP1.
09-15-2014 07:38 AM
Hi Thoric,
That question was asked/answered in the following thread, it seems to be a Bug
https://decibel.ni.com/content/thread/24519?tstart=0
Once you close LV you can rename them using windows explorer.
09-15-2014 08:11 AM
So how does everyone else rename their lvtest files? I can't believe everyone happily shuts down LV every time they create a new UTF test?? I only close LV at the end of the day (or if it does it itself!), because I usually have multiple windows open on set places etc., I don't want to lose all that.
09-15-2014 09:07 AM
Well, I do not know how other people do it, but it seems to be the only way to fix this problem at the moment. I do completely agree with you though.
09-15-2014 10:49 AM
On that other thread that Jpina pointed to, there is the following alternative:
"I too have had the rename issue. If you right click on My Computer and got New>>Unit Test I agree you cannot rename it. However. Right Click on the VI in the project and right Click Unit Tests>>New Unit Test and it will name a unit test the same as your VI. You can then rename this one. I don't know why, but it works. Mike"
09-15-2014 10:58 AM