网格的过滤功能 [英] Filter Function for Grids

查看:85
本文介绍了网格的过滤功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,其中包含一个用于过滤.Net 4.0 DataGrid内容的文本框。 
当我在文本框中输入信息并单击回车时,网格会过滤数据,并显示匹配的行。

I have an application that includes a textbox that is used to filter the contents of a .Net 4.0 DataGrid.  When I enter information into the textbox and click enter, the grid filters the data, and displays the matching rows.

在录制测试时,我使用过滤器应用程序中的功能,以缩小可用选择列表的范围。在回放测试时,测试经理不会等待足够长的过滤功能,导致下一步从列表中选择错误的
项目。  我已经尝试等待超过10秒,正如MTM.exe.config中的配置所暗示的那样,但它没有像我期望的那样插入延迟。 
如何在播放中插入暂停以确保测试管理器有足够的时间等待过滤结果返回?

While recording a test I use the filter functionality in the application to narrow down the list of available selections. When playing back the test, test manager does not wait long enough for filter function to work, causing the next step to select a wrong item from the list.  I have tried waiting for more than 10 seconds, as implied by the configuration in MTM.exe.config, but it does not insert the delay as I would expect.  How can I insert a pause in playback to ensure that test manager has enough time to wait for filter results to come back?

推荐答案

您是否在测试设置中启用了该功能? [在配置诊断数据适配器 - 操作日志对话框中,如果超过..,则捕获操作之间的用户延迟。]

Have you enabled the feature in Test Settings? [Capture user delay between actions if more than.. in the Configure Diagnostic Data Adapter - Action log dialog.]

启用该功能后,您需要重新创建操作记录。

After enabling the feature you need to re-create the action recording.

 

如果上述建议无法解决问题,请按照此博客中的说明启用跟踪  -

http://blogs.msdn.com/b/gautamg/archive/2009/11/29/how-to-enable-tracing-for-ui-test-components.aspx

If the above suggestions do not resolve the issue, please enable tracing as described in this blog  - http://blogs.msdn.com/b/gautamg/archive/2009/11/29/how-to-enable-tracing-for-ui-test-components.aspx

PLease生成记录您的操作和回放的日志。然后在这个帖子上附上日志。

PLease generate logs for recording of your actions and playback. Then attach the logs on this thread.


这篇关于网格的过滤功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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