简体   繁体   English

如何设置Microsoft Test Manager记录敏感度?

[英]How to set Microsoft Test Manager record sensitivity?

In Microsoft Test Manager I am creating an automation recording for a CodedUI test. 在Microsoft Test Manager中,我正在为CodedUI测试创建自动记录。 It seems to be picking up hover events that are not relevant to the test itself. 它似乎正在拾取与测试本身无关的悬停事件。 Is there any way to configure test manager to only record actual text input and button clicks? 有没有办法配置测试管理器只记录实际的文本输入和按钮点击? I don't care about hover events. 我不关心悬停事件。

Thanks. 谢谢。

If you're using the CodedUI Test recorder provided with Microsoft's coded ui test framework, you can expand the actions pane on the recorder and delete the events you don't want in the recording. 如果您使用随Microsoft编码的ui测试框架提供的CodedUI测试记录器,则可以展开记录器上的操作窗格并删除记录中不需要的事件。 If it's too late for that, you can examine the code in the designer class created for the recording and remove the lines regarding the hover events you're talking about. 如果为时已晚,您可以检查为录制创建的设计器类中的代码,并删除有关您正在谈论的悬停事件的行。 Keep in mind this is a bit more complicated since it's generated code, so if you have the option to delete them before you create your method, I would do it that way. 请记住,这有点复杂,因为它是生成的代码,因此如果您可以在创建方法之前删除它们,我会这样做。

Edit: 编辑:

Furthermore, and I hadn't mentioned this before, but if you change anything in the generated code and then regenerate your recording, any of your changes will be overwritten. 此外,我之前没有提到这一点,但如果您更改生成的代码中的任何内容然后重新生成录制内容,则您的任何更改都将被覆盖。 You can do something silly like copy your recording method from the generated code over to the partial class (which does not regenerate) and make your changes there. 您可以做一些愚蠢的事情,比如将生成的代码中的录制方法复制到部分类(不会重新生成)并在那里进行更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 (MTM)Microsoft测试管理器-以编程方式运行测试用例 - (MTM) Microsoft Test Manager - Run Test Case Programatically 为什么我的Microsoft Test Manager测试运行不会生成Intellitrace文件? - Why won't my Microsoft Test Manager Test Runs Generate Intellitrace Files? 当我通过Microsoft测试管理器运行测试用例时,为什么MTM尝试加载错误版本的CodedUITestFramework DLL? - Why is MTM attempting to load the wrong version of CodedUITestFramework DLL when I run a test case via Microsoft Test Manager? Microsoft SQL Server 2012:如何将记录插入关系表 - Microsoft SQL Server 2012: How to Insert record into relational tables 如何在单元测试应用程序中使用Microsoft.VisualStudio.TestPlatform.TestExecutor? - How to use Microsoft.VisualStudio.TestPlatform.TestExecutor in Unit Test App? 如何在 dotnet test 中解析 Microsoft.NET.Test.Sdk 引用? - How can I resolve Microsoft.NET.Test.Sdk reference in dotnet test? Microsoft DOS SET命令如何转换为C#? - How does Microsoft DOS SET command translate into C#? 如何为Resharper或TeamCity测试跑步者设置TraceOutputOptions - How to set TraceOutputOptions for Resharper or TeamCity Test Runners 如何设置测试TCP连接超时? - How to set test TCP connection timeout? 测试Microsoft Report Viewer是否正常工作? - Test that Microsoft Report Viewer is working?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM