通过Visual Studio测试设置对Lab-Managed Environment运行测试 [英] Running Tests Against Lab-Managed Environment via Visual Studio Test Settings

查看:104
本文介绍了通过Visual Studio测试设置对Lab-Managed Environment运行测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


是否可以在Visual Studio中创建一个引用实验室管理环境的.testsettings文件?我不相信,因为当我选择"远程执行"时在"角色"下在测试设置编辑器中,然后选择测试控制器
实验室管理正在使用 我收到警告"以下测试控制器不可用...您必须使用Microsoft测试管理器中的实验室中心删除此关联" 。


我知道可以通过构建定义从Visual Studio对实验室环境运行测试,并且我目前正在这样做,但我认为这可能有一些限制。


请考虑以下情形:


构建排队,环境恢复为快照,测试一个通过,测试两个 失败


开发人员登录环境,更改配置设置,现在想要针对实验室环境重新运行测试二


他是否必须通过MTM执行此操作,或者是可以以某种方式创建可以引用实验室环境的.testsettings文件,以便他可以进入"测试2"。在"测试视图"中在Visual Studio中重新运行该测试?

解决方案


你不会能够在视觉工作室的实验室环境中运行测试。


对于您提到的场景,您可以从MTM重新运行测试。您需要指定要使用的构建,要使用的实验室环境以及用于运行测试的测试设置。


谢谢,


Anuj


Hello,

Is it possible to create a .testsettings file in Visual Studio which references an environment managed by Lab Management? I don't believe it is, because when I select "Remote Execution" under "Roles" in the test settings editor and then select the Test Controller Lab Management is using I get the warning "The following test controller is not available...You must remove this association using the Lab Center within Microsoft Test Manager".

I understand that it's possible to run tests from Visual Studio against a Lab Environment via a build definition and am currently doing this, however I think this may have some limitations.

Consider the following scenario:

A build is queued, environment is restored to snapshot, test one passes, test two fails

Developer logs into environment, changes config setting, and now wants to re-run test two against lab environment

Does he have to do this via MTM, or is it possible to somehow create a .testsettings file that can reference a lab environment, so that he can go to "Test 2" in the "Test View" in Visual Studio and re-run that test?

解决方案

Hi,

You wont be able to run tests on a lab envrionment fro visual studio.

For the scenario you have mentioned, you can rerun the tests from MTM. You will need to specify the build to use, lab environment to use and the test settings to use for running the tests.

Thanks,

Anuj


这篇关于通过Visual Studio测试设置对Lab-Managed Environment运行测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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