运行我的 Visual Studio 负载测试会导致以下错误消息:
Error occurring running test. Results collection stopped due to the following error. Could not access the load test results repository. The load test results repository is out of space. Allocate more space to the repository (if possible), or delete results of older load test runs.
我不知道有任何这样的存储库。如何找到存储库并解决问题?
最佳答案
要在数据库中腾出更多空间,请打开任何负载测试 [请参阅注释]。右键单击负载测试并选择管理测试结果,或单击负载测试 Pane 上方最右边的图标。窗口中的下拉列表之一允许选择所有负载测试结果。选择一个或多个不再需要的结果文件并删除它们。删除需要一段时间,可能需要几分钟。
负载测试结果可以通过同一窗口上的导出 和导入 按钮进行存档和恢复。导出不会删除结果。
注意:也可以创建一个新的负载测试,它不需要做任何事情,它只需要存在。访问管理测试结果窗口的唯一方法是通过开放负载测试。
更新:
可以从菜单 => 加载测试 => 管理测试 Controller 中找到 Visual Studio 使用的 SQL 数据库。
正在使用的数据库并不总是很明显,有时 Manage Test Controllers 窗口并不能说明全部情况。因此,应从中删除结果的数据库并不明显。在一个案例中,我发现即使使用 Manage Test Controllers 找到的负载测试数据库中的所有记录都已被删除,但以下消息仍重复显示。
Results collection stopped due to the following error: Could not access the load test results repository: The load test results repository is out of space. Allocate more space to the repository (if possible), or delete results of older load test runs.
在打开和管理负载测试结果窗口中,我建议检查输入 Controller 名称以查找负载测试结果中显示的每个值(包括值 <Local - No controller>
) 并将每个值的 Show results for the following load test 设置为 <Show results for all tests>
.
关于c# - Visual Studio 负载测试结果存储库空间不足,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16634645/