简体   繁体   English

TFS 2015使用CI构建链接测试用例

[英]TFS 2015 Link test cases with CI build

Is it possible to link the test results from a build defined in vNext with automated test cases defined in TFS? 是否可以将vNext中定义的内部版本的测试结果与TFS中定义的自动测试用例链接起来?

Here is our current set-up: 这是我们当前的设置:

  • TFS 2015 with update 1 (on premises) TFS 2015更新1(在内部)
  • User stories defined, acceptance criteria defined as scenarios which translate to test cases. 定义了用户故事,将接受条件定义为转换为测试用例的方案。
  • Code set-up with automated tests using MsTest (via SpecFlow) 使用MsTest(通过SpecFlow)进行自动测试的代码设置
  • Tests in MsTest linked with test cases using the test case manager tool: 使用测试用例管理器工具将MsTest中的测试与测试用例链接:
    > tcm testcase /import /collection:http://tfs:8080/tfs /teamproject:project1 /syncsuite:121 /storage:Domain1\\Domain1.Spec\\bin\\Debug\\Domain1.Spec.dll
  • 2 builds created with vNext: 使用vNext创建的2个构建:
    1. Continuous integration build where the Visual Studio Test build step used 使用Visual Studio Test构建步骤的持续集成构建
    2. Periodic delivery build which runs heavier tests using the Visual Studio Test using Test Agent build step 定期交付版本,该版本使用“ Visual Studio Test using Test Agent构建步骤)运行较重的测试

The problem is that we do not see any link to the test case in the test results that were run for the builds. 问题在于,在为构建运行的测试结果中,我们看不到测试用例的任何链接。

Having this link would provide useful information like 拥有此链接将提供有用的信息,例如

  • % of test cases running in CI build 在CI构建中运行的测试用例的百分比
  • % of test cases running for a delivery build 为交付构建运行的测试用例的百分比
  • Run history for each automated test case with respect to the builds 关于构建的每个自动化测试用例的运行历史记录
  • etc. 等等

There is not test case related information in build result. 生成结果中没有与测试用例相关的信息。 But you can get test run result on how many tests are passed. 但是您可以获得通过多少测试的测试运行结果。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM