简体   繁体   中英

How to set Microsoft Test Manager record sensitivity?

In Microsoft Test Manager I am creating an automation recording for a CodedUI test. 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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM