【问题标题】:Coded UI UITestControl - What's the difference between SearchProperties and FilterProperties编码的 UI UITestControl - SearchProperties 和 FilterProperties 之间有什么区别
【发布时间】:2016-01-06 20:06:46
【问题描述】:

我刚刚开始使用 Coded UI 测试。 UITestControl 类中的 FilterProperties 和 SearchProperties 似乎做同样的事情,我错过了什么吗?

文档也不是很有帮助:

UITestControl.FilterProperties

获取用于消除控件歧义的属性值对集合。

UITestControl.SearchProperties

获取用于标识控件的属性值对集合。

【问题讨论】:

标签: c# coded-ui-tests


【解决方案1】:

编码的 UI 测试以这样的方式工作。它在 SUT 中扫描具有“AND”条件的 Search 属性,如果所有这些都满足,则 Coded UI 会识别 SUT 下的 UITestControl。即使使用搜索属性,如果未找到 UITestControl,则 CodedUI 开始查找具有“或”条件的过滤器属性。如果满足任何过滤器属性,则 Coded UI 会在 SUT 下找到 UITestControl。

希望对您有所帮助。

【讨论】:

  • 我喜欢 SO 警察让我投票并再次将其标记为答案。
猜你喜欢
  • 1970-01-01
  • 2022-03-07
  • 1970-01-01
  • 1970-01-01
  • 2023-03-02
  • 1970-01-01
  • 1970-01-01
  • 2015-05-08
  • 2018-12-23
相关资源
最近更新 更多