WPF应用程序测试与HP UFT(QTP) [英] WPF Application Testing with HP UFT (QTP)

查看:1585
本文介绍了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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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