If you have a small virtual machine allocated for the test controller, then sooner or later you will face a shortage of hard disk space.
An indication of this, when you run the tests, is the inability to find the Assembly.
However, the problem is that the test controller 2013 can not automatically clear his cache.
To solve this problem, I wrote a service that cleans the folder in which more than a specified time.
If you want install this is server, do next step:
- Download archive with this service: Download
- Right click by archive, choose Properties and click unblock button.
- Unzip files to folder in disk C.
- Edit file ConfigFile.xml
- Between tag PathToTestAgent put path, which you want clear. I think you can see at this help list, and found right path: Visual Studio / TFS Cache
Windows XP, 2003
C:\Documents and Settings\[USER]\Local Settings\Application Data\Microsoft\Team Foundation\
Windows 7,2008,....
C:\users\[user]\AppData\Local\Microsoft\Team Foundation\
Test Agents
Windows XP, 2003
C:\Documents and Settings\[Agent Service User]\Local Settings\Application Data\VSEQT\QTAgent
Windows 7 ,2008 ,...
C:\Users\[Agent Service User]\AppData\Local\VSEQT\QTAgent
TFS Build AgentsWindows XP, 2003C:\Documents and Settings\[Build Service User]\Local Settings\Temp\BuildAgent\[Agent ID]C:\Documentsand Settings\[Build Service User]\Local Settings\Temp\BuildController\[Controller ID]Windows 7,2008,....C:\Users\[Build Service User]\AppData\Local\Temp\BuildAgentC:\Users\[Build Service User]\AppData\Local\Temp\BuildController - Edit number between tag DeleteEveryHours. This tag show: How many hours must pass in order to delete the folder.
- Run as admin Install.bat.
- In popup insert login and password from windows user. Be attentive. If your machine is not in the domain, use login in format: Name_Machine\Login.
- Go to the services, and start service Test controller clear cache.
Now your cache will be removed in time forever!
No comments:
Post a Comment