将非自动测试结果发布到TFS RestApi? [英] Publish Non-Automated Test Results to TFS RestApi?

查看:71
本文介绍了将非自动测试结果发布到TFS RestApi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 


我们目前仅将TFS用于问题管理,要求,合作。我们所有的流程链接构建,测试和部署都是在没有TFS的情况下完成的。


我想将一些外部测试结果发布到tfs中以获得更好的可视化,但到目前为止还没有成功,使用REST Api。


我做了一些测试,我对如何添加这些结果感到困惑。



#Attempt#1


  - 根据现有的测试计划创建新的运行,因为isAutomated = true


  - 使用计划中套件中的测试用例ID创建结果


- >我无法添加这些结果,因为自动化状态在测试运行和测试用例中有所不同。


#Attempt#2


  - 创建基于现有测试计划的新运行asAutomated = false


  - 从现有计划中收集所有测试点套件


  - 将结果作为测试点发布到该运行中。


- >结果已经发布并且可以显示 - 但是测试用例标题为空,结果无法区分。



我该怎么做添加已在外部执行但无法将测试用例状态更改为自动化的结果?

解决方案

您好DimeOne,


我试过 " 。请等待开发团队的回复。


最好的问候


Hi, 

We are using TFS currently only for issue management, requirements, co. All our processes link build, testing and deployment are done without TFS.

I'd like to publish some of these external tests results into tfs for better visualization, but have not been successful so far, using the REST Api.

I've done some testing and I am confused about how these results are supposed to be added.

# Attempt #1

 - Create a new run based off an exiting test plan as isAutomated=true

 - Create results with the test case ids from the suites in the plan

-> I cannot add these results, because the automation status differs within the test run and the test cases.

# Attempt #2

 - Create a new run based off an existing test plan as isAutomated=false

 - Collect all test points from existing plan it's suites

 - Publish results as Test Points to that run.

-> Results have been published and can be display - but the Test Case Title is empty and the results cannot be distinguished.

How am I supposed to add results that have been executed externally while not being able to change the test case status to automated?

解决方案

Hi DimeOne,

I tried "Add test results to a test run" REST API, I met the same problem as yours.

If I specific testpoint id, I could not specific test case title. Test Case Title of Test Results are empty:

If I did not specific test point, just specific test case title, I will get this meesage:

"AutomatedTestName must be specified for automated test runs when neither TestPointId nor TestCaseId has been specified."

I tried this in VSTS, I could specific both test point and test case id, and the test case title will show in test results.

So I submit a feature request here. Please wait for developer team's response.

Best Regards


这篇关于将非自动测试结果发布到TFS RestApi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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