51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[原创] 哪位帮忙看一下

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-12-16 17:22:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
大家好,我用loadrunner8.0以URL方式录脚本在回放时报错如下,然后就执行不下去了.
不知为什么,哪位指教一下.

Action.c (397): missing "
Action.c (397): missing "
d:\\program files\\scripts\\suzhou_adduser\\\\combined_suzhou_adduser.c (4): 2 errors, not writing pre_cci.ci

我录的内容如下:
#include "web_api.h"


Action()
{
        web_set_max_html_param_len("1024");

        /* Registering parameter(s) from source task id 2
        // {OracleAppJSESSIONID2} = "325085EB148314FBEAAC7A66859F7984"
        // */
        web_reg_save_param("OracleAppJSESSIONID2",
                "LB/IC=JSESSIONID=",
                "RB/IC=;",
                "Ord=1",
                "Search=headers",
                "RelFrameId=1",
                LAST);

        web_url("logOut.action",
                "URL=http://10.0.25.100:9090/mepay_sz/logOut.action",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTTP",
                LAST);

        web_concurrent_start(NULL);

        web_url("login.css",
                "URL=http://10.0.25.100:9090/mepay_sz/style/login.css",
                "Resource=1",
                "RecContentType=text/css",
                "Referer=http://10.0.25.100:9090/mepay_sz/logOut.action",
                LAST);

        web_url("index_denglu.jpg",
                "URL=http://10.0.25.100:9090/mepay_sz/images/index_denglu.jpg",
                "Resource=1",
                "RecContentType=image/jpeg",
                "Referer=http://10.0.25.100:9090/mepay_sz/logOut.action",
                LAST);

        web_concurrent_end(NULL);

        web_url("login-background.jpg",
                "URL=http://10.0.25.100:9090/mepay_sz/images/login-background.jpg",
                "Resource=1",
                "RecContentType=image/jpeg",
                "Referer=http://10.0.25.100:9090/mepay_sz/logOut.action",
                LAST);

        lr_think_time( 6 );

        web_submit_data("login.action;jsessionid=325085EB148314FBEAAC7A66859F7984",
                "Action=http://10.0.25.100:9090/mepay_sz/login.action;jsessionid={OracleAppJSESSIONID2}",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://10.0.25.100:9090/mepay_sz/logOut.action",
                "Snapshot=t2.inf",
                "Mode=HTTP",
                ITEMDATA,
                "Name=adminName", "Value=admin", ENDITEM,
                "Name=adminPass", "Value=admin123", ENDITEM,
                "Name=x", "Value=0", ENDITEM,
                "Name=y", "Value=0", ENDITEM,
                LAST);

        web_concurrent_start(NULL);

        web_url("style.css",
                "URL=http://10.0.25.100:9090/mepay_sz/style/style.css",
                "Resource=1",
                "RecContentType=text/css",
                "Referer=http://10.0.25.100:9090/mepay_sz/managePortal.action",
                LAST);

        web_url("font.css",
                "URL=http://10.0.25.100:9090/mepay_sz/style/font.css",
                "Resource=1",
                "RecContentType=text/css",
                "Referer=http://10.0.25.100:9090/mepay_sz/managePortal.action",
                LAST);

        web_url("index_top_bg2.gif",
                "URL=http://10.0.25.100:9090/mepay_sz/images/index_top_bg2.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://10.0.25.100:9090/mepay_sz/managePortal.action",
                LAST);

        web_url("index_top_bg3.gif",
                "URL=http://10.0.25.100:9090/mepay_sz/images/index_top_bg3.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://10.0.25.100:9090/mepay_sz/managePortal.action",
                LAST);

        web_url("initMenu.action",
                "URL=http://10.0.25.100:9090/mepay_sz/initMenu.action?id=1",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://10.0.25.100:9090/mepay_sz/managePortal.action",
                "Snapshot=t3.inf",
                "Mode=HTTP",
                LAST);

        web_url("initMain.action",
                "URL=http://10.0.25.100:9090/mepay_sz/initMain.action",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://10.0.25.100:9090/mepay_sz/managePortal.action",
                "Snapshot=t4.inf",
                "Mode=HTTP",
                LAST);

        web_url("index_top_bg.jpg",
                "URL=http://10.0.25.100:9090/mepay_sz/images/index_top_bg.jpg",
                "Resource=1",
                "RecContentType=image/jpeg",
                "Referer=http://10.0.25.100:9090/mepay_sz/managePortal.action",
                LAST);

        最后录的部分没上传
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    奋斗
    2018-2-28 18:04
  • 签到天数: 40 天

    连续签到: 1 天

    [LV.5]测试团长

    2#
    发表于 2008-12-17 09:37:02 | 只看该作者
    请重录脚本再试试看,很可能是录制时候的文件丢失问题。另外,确认下你的lr在使用上没有问题
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-9-23 04:33 , Processed in 0.087972 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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