简体   繁体   English

在C#中将通用测试用例添加到TFS

[英]Adding Generic Test Cases to TFS in C#

So I'm trying to find a way in which I can insert new generic test cases into TFS through C#. 因此,我试图找到一种方法,可以通过C#将新的通用测试用例插入TFS。 These are the same ones that you can create in Visual Studio so I was hoping there was someway to do this with the TFS API somehow. 这些与您可以在Visual Studio中创建的相同,因此我希望可以通过某种方式使用TFS API进行此操作。 Any hints of suggestions are greatly appreciated. 任何建议的提示将不胜感激。

Thanks!! 谢谢!!

The key difference Ewald is pointing to is that there are Test Case Work Items (logical sets of tests you need to execute as a piece of recorded work) and physical tests that can verify behavior. Ewald指出的主要区别在于,有一些测试用例工作项(需要作为记录的工作执行的逻辑测试集)和可以验证行为的物理测试。 Generic Test is a artifact that executes another tool and verifies the rseults of that other tool. 通用测试是执行另一个工具并验证该另一个工具的结果的工件。 It really has little direct relationship to TFS. 实际上,它与TFS几乎没有直接关系。 These are things you add to a Visual Studio Test Project and can , but are not required to, place in source control (TFS or otherwise). 这些是您添加到Visual Studio测试项目中的东西, 可以 (但不是必须)放置在源代码管理(TFS或其他方式)中。

You can likely you can use an existing Generic Test file as your template for automating this process if you have the need. 如果需要,您可能可以将现有的通用测试文件用作模板来自动执行此过程。

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

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