WPF应用程序测试与HP UFT(QTP)

编程入门 行业动态 更新时间:2024-10-28 09:21:05
本文介绍了WPF应用程序测试与HP UFT(QTP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的工作,我们必须进行自动化测试的WPF应用程序。这做工精细了很多组件,但我们努力要检查在这里我们使用的TextBlock来显示我们的数据汇总页面。

I am working on a WPF application where we have to automate testing. This work fine for many components but we struggle to check a summary page where we use TextBlock to display our data.

在WPF的TextBlock不是由HP工具找到。因此,我们不能检查,我们显示的值。

The WPF TextBlock is not found by the HP tool. Thus we cannot check the values that we display.

我们尝试了以下解决方案,但没有成功:

We tried the following solutions but without success:

  • 更改X:名称在名称(!不是最好的主意的权利,但我们尝试了所有)
  • AutomationProperties.AutomationId在TextBloc
  • AutomationProperties.Name
  • 请TextBlock的可聚焦
  • 解决方案$ P $这里psented: WPF教程解决方案
  • Change x:Name in Name (not the best idea right, but we tried all!)
  • AutomationProperties.AutomationId on the TextBloc
  • AutomationProperties.Name
  • Make the TextBlock focusable
  • The solution presented here: WPF Tutorial Solution

他们没有工作,我们目前正在阻止。

None of them Worked and we are currently blocked.

有这个人的经历?是否有一个清晰的解决方案来解决这个问题?

Has anyone experience with this? Is there a clean solution to solve this issue?

我们需要什么:访问TextBlock的内容,从HP UFT工具特定的文本。

What we need: access TextBlock content, in particular Text from HP UFT Tool.

推荐答案

你能不能提供更多的细节,像下面

Can you provide more details,like below

  • 当你的对象(如果您可以提供屏幕截图)
  • 在窥探什么UFT是显示
  • 的TextBlock控件的屏幕截图
  • what UFT is showing when you spy on the object(provide screenshot if you can)
  • screenshot of the TextBlock control

更多推荐

WPF应用程序测试与HP UFT(QTP)

本文发布于:2023-10-31 02:02:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1544663.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   测试   WPF   QTP   UFT

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!