配置TFS以进行自动化测试 [英] Configuring TFS for automated tests

查看:283
本文介绍了配置TFS以进行自动化测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

因此,我在TFS论坛和测试小组中都询问了与Test Manager一起使用TFS的配置,但是两个小组都感到困惑,所以我想再次详细介绍一下,以便我自己和其他人可以详细说明 过程.

So I have asked in both the TFS forum as well as the testing group about configurations for TFS with test manager but both groups are getting confused, so I wanted to lay it out again in more detail so myself and others can get a detailed explanation on the process.

我在一台虚拟计算机上安装了TFS,测试管理器和Visual Studio,我想从中运行自动化测试.到目前为止,我已经能够在测试管理器中记录并创建这些编码的UI测试到Visual Studio 2010中,并且它们已经能够运行 成功地.如果您知道详细信息,我需要帮助的部分是如何配置TFS和构建定义以找到测试控制器,以便当我进入测试管理器并希望运行那些自动化测试时,它们将能够运行.这就是我 到目前为止已经完成:

I have TFS, test manager and visual studio installed on one virtual computer where I want to run automated tests from. So far I have been able to record and create those coded UI tests in test manager into Visual studio 2010 and they have been able to run successfully. The part I need help with IN DETAIL if you know is how to configure TFS and the build definition to find the test controller so that when I go into test manager and I want to run those automated tests they will be able to run. Here is what I have done so far:

1.创建编码的UI测试

1. Create coded UI tests

2.将这些测试与测试管理器中的测试用例相关联

2. Associate those tests to the test cases in test manager

3.在测试管理器中为这些测试用例分配构建和构建定义

3. Assign builds and build definitions for those test cases in test manager

4.创建测试设置,并将测试控制器分配给测试代理,然后将其分配给TFS.还创建了一个物理环境来运行测试.这些测试将仅在安装了一切"的虚拟计算机上运行,​​因此只需查找 自行驱动.

4. Create test settings and assign the test controller to the test agent and those to TFS. Also created a PHYSICAL environment to run the tests. These tests will only be run on this virtual computer where EVERYTHING is installed so it only needs to find things on its own drive.

5.当我尝试运行那些自动化测试时,测试经理说有一个错误,它找不到构建目录.

5. When I try to run those automated tests test manager says there was an error and that it cannot find the build directoy.

因此,有人可以真正列出有关构建应如何在TFS中显示以及如何创建构建定义以能够在测试管理器中创建的物理环境中使用自动化测试的基本步骤. (如果您有屏幕截图 那太好了!)

So can someone really lay out the basic steps on how the builds should display in TFS as well as how to create the build definition to be able to work with my automated tests in the physical environment I created in test manager. (if you had screenshots that would be great!)

此外,如果您能解释如何解决有关找不到构建目录的错误,这将有所帮助,以及构建目录中要运行测试管理器的确切条件.

Also if you could explain how to fix the error about the build directory not being found that would help, and what exactly needs to be in the build directory for test manager to run. .

请让我知道你们是否有任何问题,我已经进行了一段时间研究,并且一直在搜索Microsoft提供的有关测试管理器和TFS的每个msdn页面,但没有一个像我需要或描述的那样真正地列出它我的问题详细 足以让我解决它.

Please let me know if you guys have any questions, I have been working on this for awhile and I have been searching through every msdn page microsoft offers about test manager and TFS but none really lay it out like I need to or describe my problem in detail enough for me to solve it.

谢谢大家! :)

推荐答案

您好,

谢谢您的发帖.

对于未指定或不存在测试运行的生成目录",可能的原因是:
1.运行测试控制器的帐户对构建目录没有读取权限. (构建目录与与此测试运行关联的构建的构建放置位置相同.)
2.与测试计划相关联的构建对应的构建目录不存在.默认情况下,仅存档最近的10个成功构建.因此,如果较旧的版本与测试计划相关联,则很可能已将其删除.

For "Build directory of the test run is not specified or does not exist", the possible causes are:
1. The account under which test controller is running does not have read permission on the build directory. (The build directory is same as the build drop location of build associated with this test run.)
2. The build directory corresponding to the build associated with the test plan does not exist. By default, only last 10 successful builds are archived. So, if an older build is associated with the test plan, it is likely to have been deleted.

解决方案:确保构建目录存在并且测试控制器服务帐户对其具有读取权限.
如果内部版本已删除,请转到测试计划属性(使用Microsoft Test and Lab Manager)并更新与之关联的内部版本号.

Resolution: Make sure the build directory exists and the test controller service account has read permission on it.
If the build is deleted, then go to the test plan properties (using Microsoft Test and Lab Manager) and update the build number associated with it.

此致


这篇关于配置TFS以进行自动化测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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