问题标签 [microsoft-test-manager]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1886 浏览

visual-studio-2010 - 必须使用至少一个测试用例创建测试运行

尝试通过命令行 Microsoft 测试管理器实用程序 tcm.exe 自动运行测试。

我正在使用以下命令:

tcm run /create /title:"自动化 UI 测试" /planid:27 /suiteid:721 /configid:10 /settingsname:"UI 测试设置 3" /testenvironment:"SanityEnvironmentSlemish" /collection:[CollectionUrl] /teamproject:Main

(我没有包括上面的集合 URL)。

但是,我收到以下错误:“必须使用至少一个测试用例创建测试运行”。

这对我来说有点神秘,因为我的测试套件已经有一个与之关联的测试用例,它与一个有序的测试列表相关联。

0 投票
1 回答
1971 浏览

visual-studio-2010 - 通过 tcm 启动测试后获取测试运行 ID

我有一个 PowerShell 脚本,可以使用 Microsoft 测试管理器的命令行界面 (tcm.exe) 启动自动测试运行。

然后我还有一个与测试运行关联的清理 Powershell 脚本(在 .testsettings 文件中),它导出测试结果(tcm.exe run /export),但我的问题是我需要测试运行 ID。它是 'tcm.exe run /create' 命令的输出,但它没有用,因为首先它输出为“Run created with ID: 501”,其次是因为 /create 命令是从单独的 PowerShell 脚本。

我可以使用 tcm.exe run /list 来获取所有测试 ID 的列表,但这没用,因为我只需要最近一次的测试运行。

任何想法,任何人?

0 投票
1 回答
553 浏览

c# - 如何将接口传递给接受 C# 中 ITestCase 类型接口的方法?

我有一个调用 add 方法的 TestSuite(TFS 对象)对象。此 add 方法接受 ITestCase 作为参数。此 ITestCase 接口具有以下链接中描述的不同方法和属性:

http://msdn.microsoft.com/en-us/library/dd984690

现在我想传递 ITestCase 对象,它实现了上面链接中提到的一些方法。

0 投票
1 回答
1668 浏览

tfsbuild - Why does Microsoft Test Manager expect test DLL's under a bin/debug folders structure?

When I attempt to run automated tests via Microsoft Test Manager, I get the error

"Cannot find the test" .... "with storage '..\bin\debug\mytest.dll".

Why is it looking in there?

By build agent working directory is C:\MyBuildOutput, so when a build is run, the DLL's are output to C:\MyBuildOutput\Binaries.

So why does Microsoft Test Manager expect to find the DLL's under C:\MyBuildOutput\bin\debug ?

I haven't told Microsoft Test Manager to look there, and in fact my build definition build process parameters build my solution in Release mode!

I can get it to work by getting a script to create a bin and debug folder and copying the DLL's in there - but that's just plain inconvenient!!

I think it also expects the bin and debug folder even when I specify a custom build directory using the Microsoft Test Manager command-line utility (tcm.exe).

I'm grateful to hear any explanations, solutions, ideas or thoughts!

Thanks

EDIT: As per solution below, MS Test Manager DOES NOT EXPECT test DLL's under a bin/debug folder (although the error message does almost imply it).

0 投票
1 回答
2054 浏览

visual-studio-2010 - 如何使用 TFS API 和 C#.Net 代码将作为任务/测试用例的工作项链接到另一个工作项/任务?

我可以使用 TFS API 获得一个测试用例对象。现在我想将一个任务 ID(例如 435567)链接到这个测试用例对象的“受影响者”链接类型。任何可用于执行此操作的示例代码?

我可以看到测试用例有一个 add 方法,如下所示,但它没有将任务 id 作为参数。

知道如何在这里链接taskid吗?

0 投票
2 回答
1037 浏览

visual-studio-2010 - 每次迭代创建新的测试计划还是编辑现有的?

我们Microsoft Test Manager用来测试应用程序。我们最初Test Plans为要测试的每个应用程序创建。所以我们的测试计划有这样的结构:

应用 A
应用 B
应用 C

现在,在每次迭代中,我们都会获得新的构建进行测试。

那么,我们应该保持相同的测试计划并编辑其适当的字段(使用中的构建、迭代、配置......)还是为每次迭代创建新的更好?像这样的东西:

应用程序 A - 迭代 1
应用程序 A - 迭代 2
应用程序 B - 迭代 1
应用程序 B - 迭代 2
应用程序 C - 迭代 1
应用程序 C - 迭代 2

0 投票
1 回答
236 浏览

visual-studio-2010 - 从 MS 测试中心远程执行测试时部署测试数据

我正在 Visual Studio 2010 (Ultimate) 中开发自动化测试。我可以通过 VS 在本地执行我的测试,并通过 MS 测试中心在测试代理上远程执行我的测试。一切正常。

我现在的问题是我想用我的测试部署测试数据。该测试数据是我正在测试的应用程序要处理的普通图像文件。只要我在本地运行测试,部署这些文件就可以正常工作。我可以在我的 Local.testsettings 文件中使用“部署”部分,也可以在我的代码中使用 DeploymentItems 属性。当然 - 我要部署的文件包含在我的项目文件中。

但是,当我通过测试代理执行测试时 - 它不会部署任何文件。正如我所说,测试本身在本地和远程都可以正常工作。

0 投票
1 回答
232 浏览

visual-studio-2010 - 如何在没有封闭测试用例的情况下将需求添加到测试计划

每次我向测试计划中添加新的需求套件时,也会添加所有已关闭的测试用例。

如何将它们排除在测试计划之外?如果我从计划中手动删除它们,那么它们与用户故事的链接也会被删除。

0 投票
1 回答
1381 浏览

tfs - TFS - 有没有办法查看哪些 TestCase 工作项不在任何测试计划中?

我们希望能够查看哪些新的测试用例工作项尚未与测试计划/测试套件相关联。
我想如果我们可以让这个查询在 Visual Studio 的 TFS 中工作,那么我们可以将其保存下来,测试人员可以在测试管理器中加载该查询并查看哪些项目仍需要添加到计划中。

0 投票
2 回答
9975 浏览

visual-studio-2010 - 如何将内部版本与 Microsoft 测试管理器 (MTM) 2010 中的测试计划相关联?

我是使用 Microsoft 测试工具的新手,请帮助:

尝试从 MTM 运行测试用例时,我收到以下警告消息:

无法创建自动化测试运行。需要与活动测试计划关联的构建才能提交自动化测试运行

背景资料:

  • 我在 VS 2010 中创建了一个构建定义
  • 我创建了一个带有代理的构建服务主机:控制器和代理
  • 当我打开 MTM>Testing Center>Properties Build Configurations 时,我可以看到在“Filter for Builds:”中选择了我的构建定义

问题:在 MTM>Testing Center>Properties Build Configurations > " Build in use:"设置为None,当我打开 Assign Build 部分时,我没有可用的构建