通过远程桌面连接在Azure系统中运行CodedUI测试时出现问题 [英] Issue in running CodedUI tests in Azure system through remote desktop connection

查看:73
本文介绍了通过远程桌面连接在Azure系统中运行CodedUI测试时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在使用RDP连接的azure系统中运行我的编码UI测试。

I am trying to run my coded UI tests in azure system which is connected using RDP.

我是一个基于Windows的应用程序,如果我在azure系统中启动我的有序测试执行,如果我在此之后关闭了RDP,则会出现以下错误。

Mine is a windows based application, If i start my ordered test execution in azure system and if i closed the RDP after that i am getting following error.

Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException:自动引擎无法回放测试,因为它无法与桌面交互。 如果运行测试的计算机被锁定或者远程
会话窗口被最小化,则可能发生这种情况。


Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: Automation engine is unable to playback the test because it is not able to interact with the desktop.  This could happen if the computer running the test is locked or it’s remote session window is minimized.

我没有使用任何类型的测试代理。 VS安装在azure系统中,并在那里检查代码。并且该azure系统仅用于执行目的。

I am not using any sort of test agent. VS is installed in azure system and code is checked out there. And that azure system is used only for execution purpose.

所以我的要求是在Azure系统中触发测试用例的运行并在关闭RDP后关闭我的个人系统。 / strong>

So my requirement is to trigger the run of test cases in Azure system and turn off my personal system after closing RDP.

有没有办法在RDP Azure系统中继续运行测试,即使我关闭了RDP连接?

Is there any way to continue the run of tests in RDP Azure system , even after i close the RDP connection?

注意:使用普通的Windows Pro 7 Azure系统。

NB: Normal windows Pro 7 Azure system is used.

提前致谢... !!!

Thanks in advance...!!!

推荐答案

我们确实需要保持桌面打开在远程计算机上运行UI测试,或者您可以尝试此博客上列出的解决方案:

We do need keep desktop open while run UI test on remote machine, or you may try the solutions listed on this blog:

https://blogs.msdn.microsoft.com/vishnus_blog/2013/05/05/coded-ui-测试无法与桌面交互/

 

问候,

Fletcher


这篇关于通过远程桌面连接在Azure系统中运行CodedUI测试时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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