嗨,我在 Windows 上的 selenium 中创建测试后正在运行 jar 文件。每次运行它时,用户文件夹的大小都会增加
为什么
C:\Documents and Settings\MyUserName
运行前
8.79 GB (9,438,803,475 bytes)
8.84 GB (9,497,837,568 bytes)
运行
8.81 GB (9,470,489,146 bytes)
8.87 GB (9,529,806,848 bytes)
停止
8.79 GB (9,441,708,575 bytes)
8.84 GB (9,500,758,016 bytes)
当它停止时,它留下了一些字节。所以如果这样做的话我的硬盘就会满了。
如何将其停止到“左字节”
最佳答案
可能有任何具体情况。
You are taking screen shot of failed test cases and keeping them in same directory.
You are generating log of test case execution and storing them in the directory.
以及任何其他特定于您的项目的内容。看看它们。java 和 selenium 都没有这样做的倾向。:)
关于java - JAR 文件逐渐增大用户文件夹的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13512693/