梦想和毫无理由的自信是一切成功的开始

发布新日志

  • 初试loadrunner 就遇到棘手问题!

    2009-02-26 10:29:35

    我用tomcat做服务器(本地的机器),打开一个web application,录制一段脚本(登录后提交一个表单,退出),默认http level录制的,录制完成后 准备回放,点击回放后报错:
    Error: Exception was raised when calling per-process-init function in extension lrwreplaymain.dll: System Exceptions: EXCEPTION_ACCESS_VIOLATION
    Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread.
    不知道是什么导致的。我应该没有启动关联。

    论坛发了两个帖子求助,也看了很多帖子,到现在还没有找到解决方案,希望有高手路过,拉兄弟一把!
    这就是replay时报错的脚本,是用html-based录制的,我只是在用action 录制,脚本如下:

    Action()
    {

            web_url("index.jsp",
                    "URL=http://localhost:8080/tms/index.jsp",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=",
                    "Snapshot=t1.inf",
                    "Mode=HTML",
                    LAST);

            lr_think_time(9);

            web_submit_data("userManager.do",
                    "Action=http://localhost:8080/tms/admin/userManager.do",
                    "Method=POST",
                    "RecContentType=text/html",
                    "Referer=http://localhost:8080/tms/index.jsp",
                    "Snapshot=t2.inf",
                    "Mode=HTML",
                    ITEMDATA,
                    "Name=name", "Value=admin", ENDITEM,
                    "Name=password", "Value=5468321", ENDITEM,
                    "Name=selectLang", "Value=en_US", ENDITEM,
                    "Name=button", "Value=Login", ENDITEM,
                    "Name=method", "Value=login", ENDITEM,
                    "Name=request-id", "Value=0.7339455498276033", ENDITEM,
                    LAST);

            lr_think_time(9);

            web_link("   Logout",
                    "Text=   Logout",
                    "Snapshot=t3.inf",
                    LAST);

            web_submit_form("userManager.do_2",
                    "Snapshot=t4.inf",
                    ITEMDATA,
                    LAST);

            return 0;
    }

数据统计

  • 访问量: 2644
  • 日志数: 1
  • 图片数: 1
  • 建立时间: 2008-12-22
  • 更新时间: 2009-02-26

RSS订阅

Open Toolbar