有没有办法在TFS获取时间扩展变量,具体来说,是否获得了变更集ID?(Is there a way to expand a variable at TFS get time, specifically

编程入门 行业动态 更新时间:2024-10-18 12:23:03
没有办法在TFS获取时间扩展变量,具体来说,是否获得了变更集ID?(Is there a way to expand a variable at TFS get time, specifically, the changeset ID being gotten?)

我希望单元测试报告包含单元测试源文件的ChangesetID。 某些源控制系统(Unix sccs,PVCS)具有特殊变量,当从源控制存储库下载文件时,源控制系统将绑定(解析,扩展)。

@TestReport(originalAuthor = "RRE", specificationDocument = "CIP_LLSDD_Infrastructure_Common.rtf", classUnderTest = Actor.class, changeset = %%TFSCHANGESET%% )

在TFS源代码控制中有这样的事情吗?

I would like a unit test report to contain the ChangesetID of the unit test source file. Some source control systems (Unix sccs, PVCS) have special variables that the source control system will bind (resolve, expand) when the file is downloaded from the source control store.

@TestReport(originalAuthor = "RRE", specificationDocument = "CIP_LLSDD_Infrastructure_Common.rtf", classUnderTest = Actor.class, changeset = %%TFSCHANGESET%% )

Is there such a thing in TFS source control?

最满意答案

不,没有这种方法来绑定变量,就像你在TFS中演示一样。

如果要将变更集信息添加到单元测试报告中,则可能必须通过TFS API对其进行自定义。 下面是一个示例,说明如何自定义测试报告供您参考: 创建详细的测试报告,显示测试用例步骤的结果

No, there is no such way to bind a variable as you demonstrate in TFS.

If you want to add the changeset info into an unit test report, you may have to customize it through TFS API. Here is a example shows how to customize the test report for you reference: Creating a detailed test report showing results of test case steps

更多推荐

本文发布于:2023-04-28 07:17:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1330324.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:没有办法   变量   获得了   时间   ID

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!