QTP_err对象捕获位图

发布于 2024-07-07 03:49:19 字数 169 浏览 8 评论 0原文

我可以请求您澄清我对 QTP err 对象的问题吗?

我正在尝试捕获发生错误的对象的屏幕截图。 我使用代码 object.captureBitmap(filename) 来实现此目的。

我想知道是否可以获取整个页面的屏幕截图,并突出显示 err 对象。

May I request you to clarify the issue I have with QTP err object.

I am trying to capture the screen shot of an object on which error occured.
I use the code object.captureBitmap(filename) to achieve this.

I would like to know if it is possible to get the screen shot of the entire page with the err object higlighted.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

離人涙 2024-07-14 03:49:19

您可以在结果文件中获取它。 转到工具->选项并选择运行选项卡。 选中“将静态图像捕获保存到结果”框,然后选择始终或错误。 当您运行测试时,它将显示全屏并突出显示有问题的对象(如果可以找到它)。

You can get this in your results file. go to tools->options and select the run tab. Check the box "Save still image captures to results" and select either always or for errors. When you run your test it will show the full screen and highlight the object it has a problem with, if it could find it.

束缚m 2024-07-14 03:49:19

(如果我的回复还不算太晚的话)

对问题对象和对象的父对象使用 CaptureBitmap 方法。
然后您可以使用自动生成的简单 html 页面以多种方式显示它。

阿尔伯特

(if I'm not too late with my reply)

Use CaptureBitmap method for both problem object and parent of the object.
Then you can display it in a variety of ways using simple html page automatically generated.

Albert

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文