加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

delphi – 为什么TestComplete这么慢?

发布时间:2020-12-15 09:30:50 所属栏目:大数据 来源:网络整理
导读:我们正在使用AQTime的TestComplete来测试客户端的GUI和我们的客户端/服务器应用程序.它是使用Delphi 2007编译的.客户端源大约有140万个源代码.硬件是采用 Windows XP Pro的Intel双核2.13 Mhz,2 GB RAM. 我使用所有调试选项编译应用程序,并且还链接到TCOpenAp
我们正在使用AQTime的TestComplete来测试客户端的GUI和我们的客户端/服务器应用程序.它是使用Delphi 2007编译的.客户端源大约有140万个源代码.硬件是采用 Windows XP Pro的Intel双核2.13 Mhz,2 GB RAM.

我使用所有调试选项编译应用程序,并且还链接到TCOpenApp,tcOpenAppClasses,tcPublicInfo,tcDUnitSupport,如文档中所述,以使其成为Open Application.生成的exe文件大约为50 MB.

现在,当运行testscript并且它工作,但运行非常慢. CPU运行速度为100%,由于速度慢,更改测试脚本有点令人沮丧.我已经关闭所有桌面效果,如圆角窗口.没有桌面背景.

其他任何有相同经验甚至解决方案的人?

解决方法

您的问题可能在于您使用调试信息进行编译并使用tcXXX单元,从而导致创建了大量对象.

来自AutomatedQA message boards的成绩单

Did you compile it in debug mode? We have an app that when compiled in
Debug mode is slow when used with TC. This is because of the enormous # of
objects in it. If we compile w/o debug but with the TC enabler(s),
everything is fine.

和this one可能会有所帮助

A couple of areas where you can
increase speed.

If you are just using record and
playback,then look into replacing the
.Keys(“xxx”) calls to .wText = “xxx”.
The Keys function will use the ms
delay between keystrokes,while wText
just forces the text overwrite
internally.

The second suggestion (which you
likely have already looked at) is
Tools->Default Project
Properties->Project->Playback,setting
the delays to 100 ms,5 ms,and 5 ms
to keep the pauses to a minimum.

As for the object properties,yes,TC
loads them all. You can force this
with a process refresh on yor
application,so that the data is
forced into being available without a
load delay when called. This might
help with reducing the appearance of
delay.

编辑:

>我们也一直在评估TestComplete,并且还遇到了这些性能问题.我很想知道你是否以及如何最终解决它们.>那就是说,我认为它是一个具有巨大潜力的产品,可以真正帮助您组织所有的单元,集成和GUI测试.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读