与Environment Viewer中的测试计算机断开连接后,出现错误“自动化引擎无法回放测试" [英] Error 'Automation engine is unable to playback the test' after disconnecting from test machine in Environment Viewer

查看:57
本文介绍了与Environment Viewer中的测试计算机断开连接后,出现错误“自动化引擎无法回放测试"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.

对于自动UI测试运行,我收到以下错误消息:

I get the following error message for automated UI test runs:

'为测试类MDM_Coded_UI_Tests.TestScenario1调用初始化方法时出错:Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException:自动化引擎无法回放测试,因为它无法与桌面交互. 如果运行测试的计算机被锁定或最小化了远程会话窗口,则可能会发生这种情况.

'Error calling Initialization method for test class MDM_Coded_UI_Tests.TestScenario1: 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.'

我们具有标准类型的环境,其中测试控制器在机器上运行编码的UI测试,并且测试代理已正确配置为作为交互过程运行.这些测试是构建-部署-测试工作流程的最后一步.

We have standard type of environment with test controller running coded UI tests on machine with test agent configured properly to run as interactive process. The tests are being initiated as last step of build-deploy-test workflow.

它运行良好,直到我打开使用Environment Viewer执行UI测试的机器(通过在Test Manager \ Lab Center中的环境视图中双击机器),以测试用户身份登录(该用户已经在那里登录) ) 进而 关闭查看器.

And it worked fine until I opened the machine where the UI tests are performed with Environment Viewer (by double clicking the machine in environment view in Test Manager \ Lab Center), logged-in as test user (who was already logged there) and then closed the viewer.

为了清楚起见-在环境查看器中打开测试计算机(在UI测试用户帐户上登录,并在其中设置了自动登录功能)下运行整个biplo-deploy-test工作流仍然可以正常工作-我可以看到UI测试正在成功执行 并且在测试管理器中未记录任何错误.

To make it clear - running the whole biuld-deploy-test workflow with the test machine opened in Environment Viewer (logged-in on UI test user account, who has autologon set there, btw) still works fine - I can see the UI tests are being performed successfully and no error is logged in Test Manager.

当我没有打开机器视图时,会出现问题.我尝试从Environment Viewer中的计算机开始"菜单断开连接并使其保持连接状态(在关闭Environment Viewer之前还切换到环境中的另一台计算机) -但没有帮助.

The problem occurs when I do not have the machine view opened. I tried disconnecting from the machine Start menu in Environment Viewer as well as leaving it connected (also switching to another machine in the environment before closing the Environment Viewer) - but nothing helped.

我应该如何适当地离开Environment Viewer,以使测试计算机保持正确的状态以进行UI测试?

How should I properly leave the Environment Viewer, to keep the test machine in proper state for UI tests?

推荐答案

pe ,

如果我们在MTM中执行编码的UI测试",则应保持远程计算机(测试代理计算机)处于活动状态.

We should keep the remote machine (test agent machine) active if we do the Coded UI Test in the MTM.

对于标准实验室环境:

一种方法是使用Environment Viewer连接到远程计算机.如果登录后关闭了环境查看器,它将在一段时间内保持活动状态.如果其他人登录到该计算机,它将断开连接.

One way is that using the Environment Viewer to connect to the remote machine. If the Environment Viewer is closed after logged on, it will keep the active state a period of time. If others logged on that machine, it will disconnected.

另一种方法是使用远程桌面连接"连接到远程计算机. (通过这种方式,您无法关闭或最小化远程桌面连接"窗口

Another way is use the Remote Desktop Connection to connect to the remote machine. (For this way, you couldn’t close or minimized the Remote Desktop Connection window

谢谢

最好的问候


这篇关于与Environment Viewer中的测试计算机断开连接后,出现错误“自动化引擎无法回放测试"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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