genglz 发表于 2009-9-25 00:12:32

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

使用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
C
C
Jcom.rational.test.ft.domain.html.HtmlProxy$HtmlElementEnumeration.hasMoreElements()Z
Jcom.rational.test.ft.domain.html.HtmlProxy.addChildrenToVector(Ljava/util/Enumeration;Ljava/util/Vector;)V
Jcom.rational.test.ft.domain.html.HtmlProxy.getMappableChildren()[Lcom/rational/test/ft/domain/ProxyTestObject;
Jcom.rational.test.ft.object.manager.TestObjectFinderAgent$3.send()Ljava/lang/Object;
Jcom.rational.test.ft.domain.ChannelRunnable.run()V
Jcom.rational.test.ft.domain.ThreadChannel.open()V
v~StubRoutines::call_stub
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
Jcom.rational.test.ft.domain.html.HtmlProxy$HtmlElementEnumeration.hasMoreElements(J)Z
Jcom.rational.test.ft.domain.html.HtmlProxy$HtmlElementEnumeration.hasMoreElements()Z
Jcom.rational.test.ft.domain.html.HtmlProxy.addChildrenToVector(Ljava/util/Enumeration;Ljava/util/Vector;)V
Jcom.rational.test.ft.domain.html.HtmlProxy.getMappableChildren()[Lcom/rational/test/ft/domain/ProxyTestObject;
Jcom.rational.test.ft.object.manager.TestObjectFinderAgent$3.send()Ljava/lang/Object;
Jcom.rational.test.ft.domain.ChannelRunnable.run()V
Jcom.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
0x0c8b0000 JavaThread "CacheCleanUpThread" daemon
0x0c8cf400 JavaThread "traceMsgQueueThread" daemon
0x0c8b5800 JavaThread "TestContext" daemon
0x0c892c00 JavaThread "AWT-Windows" daemon
0x0c88f800 JavaThread "Java2D Disposer" daemon
0x01b75400 JavaThread "Low Memory Detector" daemon
0x01b70800 JavaThread "CompilerThread0" daemon
0x01b6c000 JavaThread "Attach Listener" daemon
0x01b82c00 JavaThread "Signal Dispatcher" daemon
0x01b5ac00 JavaThread "Finalizer" daemon
0x01b56800 JavaThread "Reference Handler" daemon
=>0x01adac00 JavaThread "main"
Other Threads:
0x01b53800 VMThread
0x01b7f800 WatcherThread

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 gentotal 12288K, used 9557K [0x07f90000, 0x08b90000, 0x0bf90000)
   the space 12288K,77% used [0x07f90000, 0x088e55c0, 0x088e5600, 0x08b90000)
No shared spaces configured.

lovecy 发表于 2009-9-27 16:28:23

这是因为内存占用过高导致,我的也是,以前总是IE自动关闭,大概是因为用的静态变量或方法太多了,一直保存在内存中,导致内存占用率持续过高。后来我把静态变量或静态方法改写为非静态的,这种情况就改善了许多,你不妨试试看
页: [1]
查看完整版本: 【求助】使用RFT在IE上进行自动化测试,出现IE异常终止。请问有什么办法可以解决