51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2857|回复: 1
打印 上一主题 下一主题

【求助】使用RFT在IE上进行自动化测试,出现IE异常终止。请问有什么办法可以解决

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-9-25 00:12:32 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
使用RFT在IE上进行自动化测试时,运行几个用例会随机出现IE异常终止,并且在桌面上会留下java虚拟机的异常日志。
RFT版本为6.1,对页面控件的使用全是通过find方法,并且在使用结束后用注销掉了。

请问可能有哪些因素引发的该问题,有什么方法可以解决。谢谢!
由于不能贴附件,粘贴部分异常日志如下:
Stack: [0x00030000,0x00130000),  sp=0x0012e4dc,  free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [kernel32.dll+0x12a6b]
C  [rtxIEDomain.dll+0x23c55]
C  [rtxIEDomain.dll+0x210e2]
J  com.rational.test.ft.domain.html.HtmlProxy$HtmlElementEnumeration.hasMoreElements()Z
J  com.rational.test.ft.domain.html.HtmlProxy.addChildrenToVector(Ljava/util/Enumeration;Ljava/util/Vector;)V
J  com.rational.test.ft.domain.html.HtmlProxy.getMappableChildren()[Lcom/rational/test/ft/domain/ProxyTestObject;
J  com.rational.test.ft.object.manager.TestObjectFinderAgent$3.send()Ljava/lang/Object;
J  com.rational.test.ft.domain.ChannelRunnable.run()V
J  com.rational.test.ft.domain.ThreadChannel.open()V
v  ~StubRoutines::call_stub
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J  com.rational.test.ft.domain.html.HtmlProxy$HtmlElementEnumeration.hasMoreElements(J)Z
J  com.rational.test.ft.domain.html.HtmlProxy$HtmlElementEnumeration.hasMoreElements()Z
J  com.rational.test.ft.domain.html.HtmlProxy.addChildrenToVector(Ljava/util/Enumeration;Ljava/util/Vector;)V
J  com.rational.test.ft.domain.html.HtmlProxy.getMappableChildren()[Lcom/rational/test/ft/domain/ProxyTestObject;
J  com.rational.test.ft.object.manager.TestObjectFinderAgent$3.send()Ljava/lang/Object;
J  com.rational.test.ft.domain.ChannelRunnable.run()V
J  com.rational.test.ft.domain.ThreadChannel.open()V
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------
Java Threads: ( => current thread )
  0x0d155800 JavaThread "RationalFtHelper" daemon [_thread_blocked, id=3728]
  0x0c8b0000 JavaThread "CacheCleanUpThread" daemon [_thread_blocked, id=4052]
  0x0c8cf400 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=2980]
  0x0c8b5800 JavaThread "TestContext" daemon [_thread_blocked, id=1700]
  0x0c892c00 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3940]
  0x0c88f800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2964]
  0x01b75400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3264]
  0x01b70800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1232]
  0x01b6c000 JavaThread "Attach Listener" daemon [_thread_blocked, id=3484]
  0x01b82c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2104]
  0x01b5ac00 JavaThread "Finalizer" daemon [_thread_blocked, id=4004]
  0x01b56800 JavaThread "Reference Handler" daemon [_thread_blocked, id=3960]
=>0x01adac00 JavaThread "main" [_thread_in_native, id=2652]
Other Threads:
  0x01b53800 VMThread [id=2168]
  0x01b7f800 WatcherThread [id=4080]

VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation   total 960K, used 884K [0x03f90000, 0x04090000, 0x04470000)
  eden space 896K,  91% used [0x03f90000, 0x0405d250, 0x04070000)
  from space 64K,  99% used [0x04070000, 0x0407fff8, 0x04080000)
  to   space 64K,   0% used [0x04080000, 0x04080000, 0x04090000)
tenured generation   total 4096K, used 3390K [0x04470000, 0x04870000, 0x07f90000)
   the space 4096K,  82% used [0x04470000, 0x047bf968, 0x047bfa00, 0x04870000)
compacting perm gen  total 12288K, used 9557K [0x07f90000, 0x08b90000, 0x0bf90000)
   the space 12288K,  77% used [0x07f90000, 0x088e55c0, 0x088e5600, 0x08b90000)
No shared spaces configured.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2009-9-27 16:28:23 | 只看该作者
这是因为内存占用过高导致,我的也是,以前总是IE自动关闭,大概是因为用的静态变量或方法太多了,一直保存在内存中,导致内存占用率持续过高。后来我把静态变量或静态方法改写为非静态的,这种情况就改善了许多,你不妨试试看
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-18 02:27 , Processed in 0.076835 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表