在Visual Studio 2013编码的UI中使用远程桌面进行自动化 [英] Automation using Remote Desktop in Visual studio 2013 Coded UI

查看:91
本文介绍了在Visual Studio 2013编码的UI中使用远程桌面进行自动化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用visual studio 2013 Coded UI。我们希望在远程计算机上执行自动化测试脚本。

We are using visual studio 2013 Coded UI . We want to execute automated test scripts on remote machine.

我们正在寻找答案 -

We are looking for answers on-

1。是否可以在最小化/关闭窗口的远程机器上执行测试脚本?如果是,那么过程是什么?

1. Is it possible to execute test scripts on remote machine with minimized/closed window? If yes , what is the process?

2.当多个用户同时登录同一台机器并打开多个实例时,是否可以使用编码的UI自动化测试脚本

2.Is it possible to automate test scripts with coded UI when multiple user login to same machine simultaneously and open multiple instances

推荐答案


1。是否可以在最小化/关闭窗口的远程机器上执行测试脚本?如果是,那么过程是什么

2.当多个用户可以使用编码的UI自动化测试脚本同时登录同一台机器并打开多个实例

2.Is it possible to automate test scripts with coded UI when multiple user login to same machine simultaneously and open multiple instances

1。  不,我担心Coded UI是通过模拟物理用户(使用Disability Interfaces MSAA& UIA)来工作的,因此需要打开应用程序窗口。未最小化

1.  No I'm afraid that Coded UI works by simulating a physical user (Using the Disability Interfaces MSAA & UIA) so it would need the application window to be open & not minimised

2。  不,因为如果一个应用程序出现在另一个正在编码用户界面的应用程序上,那么该测试将开始与最顶层的窗口进行交互,而不是它应该正在处理的窗口。

2.  No because if one application appears above another one that's being Coded UI'd that test will then start interacting with the topmost window rather than the one it was supposed to be working on.

在远程PC上自动运行Coded UI测试的唯一方法是使用测试代理,并且记住您使用的是VS2013,您还需要一个测试控制器。

The only way to run a Coded UI test automatically on a remote PC is using the Test Agent and bearing in mind you're using VS2013 you'll need a test controller as well.

HTH


这篇关于在Visual Studio 2013编码的UI中使用远程桌面进行自动化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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