可以生成自定义UIMap,而不是默认值?

可以生成自定义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.