使用API​​创建时,测试运行未链接到Release [英] Test Run not linked to Release when created using the API

查看:70
本文介绍了使用API​​创建时,测试运行未链接到Release的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在从TFS2015更新2版本管道运行UFT测试。我创建了一个自定义任务,用于解析UFT测试生成的Results.xml文件。根据结果​​,我创建了一个testrun并将测试添加到该运行中。我还提供了发布详细信息。

We are running UFT tests from a TFS2015 update 2 release pipeline. I created a custom task that parses the Results.xml files that the UFT tests produce. Based on the results I create a testrun and add the tests to that run. I also provide the Release details.

问题是testrun没有像我预期的那样分配给版本。当我使用CodedUI测试运行默认的功能测试任务时,我确实得到了这个。我期待自定义测试运行的相同行为。是否有可能获得同样的行为?

Problem is that the testrun isn't assigned to the release as I expected. When I run the default functional tests task with CodedUI tests I do get this. I was expecting the same behaviour of my custom test run. Is it possible to get this same behaviour?

这是我发送的用于创建测试运行的json消息:

Here is the json message I'm sending to create the Test Run:

$jsonBody = @"
{
	"name": "UFT testrun for $env:RELEASE_RELEASENAME",
	"build": {
	        "id": "$env:BUILD_BUILDID"
	},
	"state": "InProgress",
	"isAutomated": "true",
	"startedDate": "",
	"owner": {
		"displayName": "$user"
	},
	"completedDate": "$nowString",
	"releaseUri": "$env:RELEASE_RELEASEURI",
	"releaseEnvironmentUri": "$env:RELEASE_ENVIRONMENTURI"
}

我们计划在可能有帮助的上个月将TFS onpremise环境升级到最新版TFS 2017(update1)。

We are planning to upgrade the TFS onpremise environment to the latest version TFS 2017 (update1) in the upcomming month this might help.

希望有人知道如何解决这个问题。

Hope someone has an idea how to solve this issue.

亲切的问候,

Pieter

使用Visual Studio 2015更新2套件播放

Playing arround with Visual Studio 2015 update 2 suite

推荐答案

Hi Pieter,

Hi Pieter,

可以达到您的要求。

根据您的描述,我认为您的任务的代码不起作用。您能否将自定义任务代码上传到OneDrive,并在此处分享链接?

According to your description, I think is the code of your task did not work. Could you please upload your custom task codes to OneDrive, and share the link here?

最好的问候


这篇关于使用API​​创建时,测试运行未链接到Release的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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