无法检索当前通过TFS(vNext)构建运行的测试用例ID [英] Cannot retrieve Test Case ID that is currently running through TFS (vNext) build

查看:92
本文介绍了无法检索当前通过TFS(vNext)构建运行的测试用例ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

在我们的测试中,我们需要检索当前通过TFS(vNext)构建运行的测试用例ID。以前当我们使用XAML构建定义时,我们可以从TestContext.Properties获取它:

In our test we need to retrieve Test Case ID that is currently running through TFS (vNext) build. Previously when we were using XAML build definitions we could get it from TestContext.Properties:

var testCaseID = TestContext.Properties [" __ Tfs_TestCaseId __"]。ToString();

由于我们开始使用vNext和"运行功能测试"任务,因此TestContext.Properties中没有任何与TFS相关的属性

Since we started using vNext and 'Run Functional Tests' task there are no any properties related to TFS in TestContext.Properties

它不再向TestContext提供它的原因是什么?

What is the reason that it doesn't supply it to TestContext anymore?

-

祝你好运,

Alex

推荐答案

hi Alex,

hi Alex,

您可以使用以下解决方案
向测试提供运行时参数

you can use the following solution Supplying Run Time Parameters to Tests


这篇关于无法检索当前通过TFS(vNext)构建运行的测试用例ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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