51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2478|回复: 2
打印 上一主题 下一主题

[新人求助]RFT回放脚本时,登录页面的回放正常,主界面的回放失败

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2017-6-13 17:46:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
弄了好久都没搞好,希望大神们能给点建议
异常信息如下,:
回放脚本期间发生异常:[Script12] [com.rational.test.ft.sys.Mutex$TimeoutException: Spy Heap is locked]。
Unhandled exception in rational_ft: com.rational.test.ft.sys.Mutex$TimeoutException: Spy Heap is locked
com.rational.test.ft.sys.Mutex$TimeoutException: Spy Heap is locked
        at com.rational.test.ft.sys.SpyMemory.lock(Native Method)
        at com.rational.test.ft.sys.Transaction.begin(Transaction.java:152)
        at com.rational.test.ft.sys.QueuedMessageClient.asyncInvoke(QueuedMessageClient.java:126)
        at com.rational.test.ft.application.rational_ide_client.updateLog(rational_ide_client.java:297)
        at com.rational.test.ft.application.ScriptPlayback.closeMessageLog(ScriptPlayback.java:941)
        at com.rational.test.ft.application.ScriptPlayback.run(ScriptPlayback.java:689)
        at com.rational.test.ft.application.RationalFtMain.run(RationalFtMain.java:2328)
        at com.rational.test.ft.application.RationalFtMain.main(RationalFtMain.java:325)
        at com.rational.test.ft.application.CommandLineApplication.run(CommandLineApplication.java:43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:599)
        at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:599)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
        at org.eclipse.core.launcher.Main.main(Main.java:30)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:599)
        at com.rational.test.ft.rational_ft.startFT(rational_ft.java:270)
        at com.rational.test.ft.rational_ft.main(rational_ft.java:185)
Exception in thread "ShutdownHook" com.rational.test.ft.sys.Mutex$TimeoutException: Spy Heap is locked
        at com.rational.test.ft.sys.SpyMemory.lock(Native Method)
        at com.rational.test.ft.sys.SpyMemory.lockEx(SpyMemory.java:355)
        at com.rational.test.ft.sys.TestContext$ShutdownHook.run(TestContext.java:474)
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    奋斗
    昨天 07:27
  • 签到天数: 2816 天

    连续签到: 4 天

    [LV.Master]测试大本营

    2#
    发表于 2017-6-13 21:17:36 | 只看该作者
    找到一个解决措施,参考下:
    Try to clear the unused object.
    methods to clear the objects are
    1.Object.unregister();
    2.RationalTestScript.unregisterAll();
    3.RationalTestScript.unregister(Object);

    Eg:

    try
    {
    TestObject[] Obj=document().fing(atDecendent(".class","Html.INPUT.text"));
    .............
    ............
    }
    catch(Exception e)
    {
    e.printStackTrace();
    }
    finally
    {
    Obj.unregister();
    }

    Regards

    评分

    参与人数 1测试积点 +10 收起 理由
    lsekfe + 10 积极回复获得测试积点10 赶快去商城换取奖.

    查看全部评分

    回复 支持 反对

    使用道具 举报

    该用户从未签到

    3#
     楼主| 发表于 2017-6-15 10:15:27 | 只看该作者
    jingzizx 发表于 2017-6-13 21:17
    找到一个解决措施,参考下:
    Try to clear the unused object.
    methods to clear the objects are

    恩恩,多谢,我试试啊
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-22 03:05 , Processed in 0.070315 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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