自定义Datagrid与代码UI测试 [英] Custom Datagrid vs Code UI Test

查看:76
本文介绍了自定义Datagrid与代码UI测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


HI,

我是编码UI测试的新手。浏览不同的博客和 尝试通过将以下代码添加到xaml来记录自定义数据网格(框架3.5)上的点击。但它不起作用。您可以帮助我在自定义数据网格(框架3.5)上使用已编码的
ui测试版本来识别点击次数吗?

I am New to coded UI tests. Gone through the different blogs and  tried to record the clicks on the custom datagrid(framework 3.5) by adding the below code to the xaml. But It doesn't work. Can you please help me to recognize the clicks with coded ui test build on the custom datagrid (framework 3.5)?

<! - 行样式 - >

< 样式
x
=" RowStyle"
TargetType
=" { x 类型
xptWPFToolkit
DataGridRow }">

<Style x:Key="RowStyle" TargetType="{x:Type xptWPFToolkit:DataGridRow}">

< Setter
Property
=" AutomationProperties.AutomationId"
=" { 绑定
ID
}" />

<Setter Property="AutomationProperties.AutomationId" Value="{Binding ID}"/>

< Setter
Property
=" AutomationProperties.Name"
=" { 绑定
ID
}" />  

<Setter Property="AutomationProperties.Name" Value="{Binding ID}"/> 

感谢。谢谢。

- SP

 

 

推荐答案

编码UI测试不支持WPF工具包数据网格。
WPF toolkit data grid is not supported in Coded UI Test.


这篇关于自定义Datagrid与代码UI测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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