我的工作,我们必须进行自动化测试的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)
发布评论