[英]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.