将正在运行的用户添加为SearchProperty? [英] Add the running user as a SearchProperty ?

查看:79
本文介绍了将正在运行的用户添加为SearchProperty?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想并行运行几个CodedUITest实例。我没有Visual Studio Ultimate来运行由测试控制器控制的多个代理(我读的是可能的)所以我在考虑根据运行被测应用程序的windows用户
参数化我的测试并使用这些信息(用户)作为搜索属性。

I'd like to run several instances of my CodedUITest in parallel. I don't have Visual Studio Ultimate to run multiple agents controlled by a test controller (what I read was possible) so I was thinking about parameterizing my test based on the windows user running the application under test and use the information (the user) as a search property.

这可能吗?或者这是一种痛苦,我应该选择另一种解决方案(如果有的话)?我唯一的选择是升级到Ultimate并让测试控制器运行吗?

Is this possible ? or is this such a pain that I should choose another solution (if any) ? Is my only option to upgrade to Ultimate and get a test controller running ?

 

thx ..

推荐答案

Laurent Burgy,

Laurent Burgy,

使用测试控制器/代理装置可能会更好。 您是否尝试在同一台计算机上运行多个编码ui测试实例?  Visual Studio不支持并行编码的UI测试执行,请参阅:http://qa.social.msdn.microsoft.com/Forums/en-US/vslab/thread/a54d88fe-11cb-46d3-a9fd-5ebd82880e0d. 

You would probably be better off using a test controller/agent rig.  Are you trying to run several instances of the coded ui test on the same machine?  Visual Studio does not support parallel coded UI Test execution see: http://qa.social.msdn.microsoft.com/Forums/en-US/vslab/thread/a54d88fe-11cb-46d3-a9fd-5ebd82880e0d. 

您可以制作单独的测试类,反映不同的参数并在不同的计算机上执行,而不是使用用户参数化测试。 这带来了自己的问题。 远程机器需要
处于交互状态(未最小化,屏幕保护关闭,登录)。  

Instead of using the user to parametrize your test, you could make separate test classes which reflect the different parameters and execute them on different machines.  This brings its own issues along with it.  The remote machines will need to be in an interactive state (not minimized, screensaver off, logged on).  

您可以通过远程桌面连接或远程桌面连接管理器(适用于多个远程计算机),使用MSTest命令行登录并启动测试:

You could achieve this with Remote Desktop Connection or Remote Desktop Connection Manager (for multiple remote machines) by logging in and firing off your test using MSTest command line:

info here:http://msdn.microsoft.com/en-us /library/ms182489%28v=VS.100%29.aspx

info here: http://msdn.microsoft.com/en-us/library/ms182489%28v=VS.100%29.aspx

 

干杯,

保罗

 

 


这篇关于将正在运行的用户添加为SearchProperty?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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