可以生成自定义UIMap,而不是默认值? [英] Possible to generate to a custom UIMap, not to default?

查看:58
本文介绍了可以生成自定义UIMap,而不是默认值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的UIMap已经变得如此之大,我现在正试图将它拆分。我已经阅读了大型项目的CUIT最佳实践。对于每个逻辑用例,我想拥有自己的UIMap。我会在其专用命名空间中使用UIMap,以及它的
CUIT测试方法。但是,每当我创建新的操作记录时,生成的代码都会自动分配给根目录中的某个默认UIMap。我希望它能够生成我当前测试方法正在使用的UIMap代码,而不是默认的
one。所以例如如果我有一个CUIT测试类Producs.cs并且它使用ProductsUIMap生成的代码,当我在Products.cs中创建一个新的动作记录时,我希望它将新记录添加到其命名空间内的ProductsUIMap中,而不是默认
UIMap文件。

My UIMap has grown so large that I am attempting to split it up now. I have read the CUIT best practices for large projects. I would like to have, for each logical use-case its own UIMap. I would have the UIMap in its dedicated namespace, together with its CUIT test methods. However, whenever I create a new action recording, the generated code is automatically assigned to some default UIMap in the root directory. I would like it to generate code into the UIMap that my current test methods are using, not he default one. So e.g. if I have a CUIT test class Producs.cs and it uses generated code from ProductsUIMap, when I create a new action recording in Products.cs, I would like it to add the new recording into the ProductsUIMap within its namespace, not into the default UIMap file.

推荐答案

如果我理解正确,你可以选择你想要添加新记录方法的UIMap,对吧单击,选择"使用CodedUI Test Builder编辑",记录方法并生成代码。新方法将添加到您选择
的地图中。
If i understood it right, you can select the UIMap where you want to add the new recorded method, right click, select "Edit with CodedUI Test Builder", record the method and generate the code. The new method will be added to the map that you selected.


这篇关于可以生成自定义UIMap,而不是默认值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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