CodedUI:抛出了类型'System.OutOfMemoryException'的异常 [英] CodedUI: Exception of type 'System.OutOfMemoryException' was thrown

查看:122
本文介绍了CodedUI:抛出了类型'System.OutOfMemoryException'的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

选择一套与CodedUI一起运行的测试(~40 +),一段时间后内存不足。经过一些分析后,正是这个QTAgent32.exe进程在运行测试后占用了大量内存。


如何让CodedUI运行> 50个测试用例没有问题?

解决方案

嗨谷歌粉丝,


你使用哪个版本的Visual Studio?


>>

选择一套测试(~40 +)与CodedUI一起运行,一段时间后内存不足。


< span style ="line-height:107%; font-family:'Segoe UI',sans-serif; font-size:10pt">您是否使用Visual Studio或Controller and Agent运行编码的UI?


你用MTM / TFS运行编码的UI吗?


在没有选择一套测试的情况下运行编码UI时的结果怎么样?


如果它运行良好,我认为这个错误与测试套件有关。请看下面的线程可能对你有帮助:


https://social.msdn.microsoft.com/Forums/en-US/c9f6e7ce-29c2-4797-bec4-8bbe37ef90c9/coded-ui-tests-triggers-a-systemoutofmemoryexception -at-start?forum = vstest


如果再次发生此错误,则是由您的代码引起的。在您的代码中,是否需要上传大文件?请启用编码的UI日志,运行后查看html
日志检查哪个动作已停止。


https ://docs.microsoft.com/en-us/visualstudio/test/analyzing-coded-ui-tests-using-coded-ui-test-logs


此外,请
转到工具 - > 选项 ...,展开"测试工具"节点选择Test Execution。在Performance下,取消选中"保持测试执行引擎在测试运行之间运行"复选框。再次运行test
并检查结果。


请提供有关您运行编码UI的详细信息,并提供错误屏幕截图和详细信息,这将更好地帮助我重新解决您的问题并进行分析。


感谢您的理解。


问候,


Judyzh


Select a suite of tests (~40+) to run with CodedUI, and it run out of memory after a while. After some analysis, it is this QTAgent32.exe process that take up lot of memory after the tests are ran.

How to get CodedUI to run >50 test cases without issue?

解决方案

Hi google fan,

Which version of Visual Studio do you use?

>> Select a suite of tests (~40+) to run with CodedUI, and it run out of memory after a while.

Do you run coded UI using Visual Studio or Controller and Agent?

Do you run coded UI with MTM/TFS?

How about the result when you run coded UI without select a suite of tests?

If it run well, I think this error is related to the suite of tests. Please have a look at following thread might helpful for you:

https://social.msdn.microsoft.com/Forums/en-US/c9f6e7ce-29c2-4797-bec4-8bbe37ef90c9/coded-ui-tests-triggers-a-systemoutofmemoryexception-at-start?forum=vstest

If this error happened again, it is caused by your code. During your code, whether you need to upload a large file? Please enable coded UI log, after running to see the html log to check which action has been stopped.

https://docs.microsoft.com/en-us/visualstudio/test/analyzing-coded-ui-tests-using-coded-ui-test-logs

In addition, please go to Tools ->Options..., expand the Test Tools node and select Test Execution. Under Performance, uncheck the "Keep test execution engine running between test runs" checkbox. Run test again and check the result.

Please provided the detail information about you run coded UI, and provide the error screenshot and details, that would better help me to repro your problem and analyze it.

Thanks for your understanding.

Regards,

Judyzh


这篇关于CodedUI:抛出了类型'System.OutOfMemoryException'的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆