在验证环境任务中,从MTM运行自动​​化测试失败 [英] Running automated tests from MTM fails in Validating environment task

查看:60
本文介绍了在验证环境任务中,从MTM运行自动​​化测试失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的应用程序配置了构建定义和发布定义,并将它们映射到测试运行设置中。还将测试用例与自动化测试方法相关联。运行测试用例时失败并显示此错误消息 

I have build definition and release definition configured for my application and mapped them in the test run settings. Also associated test cases to automated test methods.While running the test case it fails with this error message 

验证环境:所选环境没有正确的版本或Visual Studio测试设置任务运行测试。

Validating environment:Selected environment does not have the right version or settings of the Visual Studio Test task to run tests.

推荐答案

欢迎光临MSDN论坛。

Welcome to MSDN forum.

要运行自动化测试,必须使用标准或SCVMM环境。在没有实验室环境的情况下,无法使用Microsoft测试管理器运行自动化测试。 +

To run your automated tests, you must use a standard or an SCVMM environment. You cannot run automated tests using Microsoft Test Manager without a lab environment.+

您  ;需要创建一个包含测试设置中角色的环境,然后在测试计划中使用此环境。有关如何创建环境和角色以及测试设置的详细信息,请参阅

为您的devops使用实验室环境

You need to create an environment that contains the roles in your test settings and then use this environment in your test plan. For more information about how to create your environment and roles and test settings, see Use a lab environment for your devops.

您可以在这里查看:

https://msdn.microsoft.com /en-us/library/dd380741.aspx?f=255&MSPPError=-2147217396#Create 用于运行测试的实验室环境和设置

https://msdn.microsoft.com/en-us/library/dd380741.aspx?f=255&MSPPError=-2147217396#Create a Lab Environment and Settings to Run Your Tests

祝你好运,

Joyce


这篇关于在验证环境任务中,从MTM运行自动​​化测试失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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