编码UI,为什么在VS2013中关闭每个运行Wpf应用程序的测试方法? [英] Coded-Ui, Why does for each test method run Wpf application is closing in VS2013?

查看:86
本文介绍了编码UI,为什么在VS2013中关闭每个运行Wpf应用程序的测试方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Also, I checked the flag "Keep execution engine running between test runs" in Tools => Options => Web Performance Test Tools => Test Execution and it is checked so the session should be kept alive,

Why my application is getting close everytime test method run? what is solution for this?

推荐答案

为了使应用程序对象在测试运行期间完成一个测试用例完成后保持打开状态,必须将CloseOnPlaybackCleanup标志分配给 false .默认情况下,它设置为true.

In order to make the application object keep opened after one test case finishes during test running, you have to assign CloseOnPlaybackCleanup flag to false for ApplicationUnderTest object. By default it is set to true.

有关更多信息,请参见:

<跨度样式="border:currentColor"> http://blogs.msdn.com/b/visualstudioalm/archive/2012/11/08/using-same-applicationundertest-browserwindow-across-multiple -tests.aspx

最好的问候


这篇关于编码UI,为什么在VS2013中关闭每个运行Wpf应用程序的测试方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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