java - JAR 文件逐渐增大用户文件夹的大小

标签 java firefox selenium webdriver profile

嗨,我在 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/

相关文章:

css - 如何将此 xpath 表达式更改为 selenium 的 css

java - Dropwizard 未能延迟初始化角色集合

java - 我应该为 Android 使用什么 JDK

javascript - 理解错误 "SyntaxError: expected expression, got ' <'"

javascript - 清理 Protractor 堆栈跟踪

java - 在 Selenium 中有哪些有用的测试?

java - 即使编程为 MediaPlayer 也不会停止播放

java - 如何通过 onreceive() 函数发送位置(经度和纬度)?

c++ - 如何以编程方式从 Firefox 获取证书?

HTML5 - 缓存 list 在 Chrome 上运行良好,但在 Firefox 和 Opera 上运行不佳