编码的用户界面 - TFS。有没有办法将TFS中的测试步骤检索到编码的UI测试方法 [英] Coded UI - TFS. Is there a way to retreive Test steps in TFS to Coded UI test methods

查看:54
本文介绍了编码的用户界面 - TFS。有没有办法将TFS中的测试步骤检索到编码的UI测试方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试使用TFS中的测试步骤构建自定义报告。为了避免手动错误和更快的测试步骤,有没有办法从TFS直接获取测试步骤?

I am trying to build a custom report using the test steps from TFS. To avoid manual errors and faster test steps retrioeval, is there a way to directly fetch the test steps from TFS?


(类似于我们从测试数据中获取数据的方式部分)

(Similar to how we fetch data from test data section)


先谢谢

推荐答案

嗨VijoVar,

Hi VijoVar,

感谢您在此发帖。

您是否想要在测试用例中获得测试步骤?如果您想创建 报告获取测试步骤,您可以使用以下查询来获取基于sql server中的表的所有测试步骤:

Did you mean you want to get the test steps in test cases?If you want to create  report to get the test steps, you could use the following query to get all the test steps based on the table in sql server:

SELECT [Words]
      ,[WordsDocumentType]
  FROM [Tfs_DefaultCollection].[dbo].[WorkItemLongTexts] AS A where FldID = '10038' 

但我们无法在测试步骤和测试用例之间建立连接。所以你也可以尝试使用其他解决方法:

But we could not set the connection between test steps and test case. So you could also try to use other workaround:

1。使用TFS Api获取测试步骤(对象模型):

1. Use the TFS Api to get the test steps(Object Model):

http://geekswithblogs.net/TarunArora/archive/2011/10/02/mtm-testing-scorecard-using-tfs-api.aspx

2。使用TFS Rest Api获取工作项,测试步骤包含在响应中:

2. Use TFS Rest Api to get the work item, test steps are included in the response:

http://answers.flyppdevportal.com/MVC/Post/Thread/6edcb3e6-86b1-4399-b850-320bf11aad0e?category=tfservice

3。创建一个查询,然后使用excel打开查询。

3. Create a query, then use excel to open the query.

最好的问候

Limitxiao Gao

Limitxiao Gao


这篇关于编码的用户界面 - TFS。有没有办法将TFS中的测试步骤检索到编码的UI测试方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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