如何在QTP中测试标签

编程入门 行业动态 更新时间:2024-10-23 10:18:46
本文介绍了如何在QTP中测试标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用QTP 9.5测试我编写的应用程序德尔福我安装了Delphi加载项和QTP可以识别Delphi控件.大多数,但不是全部,特别是TLabel.QTP无法识别这一点控制,并被Object Spy忽略.任何建议,提示,线索如何测试标签?

I'm using QTP 9.5 test my application written in Delphi. I got Delphi Add-in installed and QTP can identify Delphi controls. Most but not all, specially TLabel. QTP can not recognize this control and is being ignored by Object Spy. Any suggestion, tip, clues how to test labels ?

欢呼!

推荐答案

您是否尝试过使用TStaticText而不是TLabel?它们是带有窗口句柄的标签(从TWinControl而不是TGraphicControl降序),这意味着它们可以从外部获取Windows消息.我猜这是你的问题.(只是一个猜测,因为我不知道QTP)

Have you tried with TStaticText instead of TLabel? They are Labels with a Window Handle (descending from TWinControl instead of TGraphicControl) which means they can get Windows messages from the outside. I'm guessing that it's your problem. (only a guess as I don't know QTP)

更多推荐

如何在QTP中测试标签

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

发布评论

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

>www.elefans.com

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