51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1807|回复: 0
打印 上一主题 下一主题

[原创] loadrunner 9.5 回放脚本,数据库没有数据录入,was日志有错

[复制链接]
  • TA的每日心情
    郁闷
    2017-3-28 09:26
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    跳转到指定楼层
    1#
    发表于 2010-1-21 18:15:42 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    这是我的loadrunner 代码
    addrole()
    {


            lr_think_time(10);
        lr_log_message("wait for mement");
    //        lr_start_transaction("start");
            web_custom_request("nodes",
                    "URL=https://9.181.86.102:9445/BusinessLeader/rest/v1/document/DOC-bb1cbdef1f37d13c8057a2b687e2cc58/nodes?spaceId=09B55666986DA34B640F00F72AF4AD000002&actionType=search&firstRow=2&lastRow=5",
                       "Method=POST",
                    "Resource=0",
                    "RecContentType=application/json",
                    "Referer=https://9.181.86.102:9445/mum/enabler",
                    "Snapshot=t57.inf",
                    "Mode=HTML",
                    "EncType=application/json; charset=utf-8",
                "Body={\"actionType\":\"search\",\"properties\":{\"name\":\"role_001\",\"types\":[\"glossaryNodeUserRole\"]}}",
                    LAST);
    lr_log_message("wait for mement");

    /*
            web_custom_request("DOC-bb1cbdef1f37d13c8057a2b687e2cc58",
                    "URL=https://9.181.86.102:9445/BusinessLeader/rest/v1/document/DOC-bb1cbdef1f37d13c8057a2b687e2cc58?spaceId=09B55666986DA34B640F00F72AF4AD000002&actionType=batch&locale=en_US",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=application/json",
                    "Referer=https://9.181.86.102:9445/BusinessLeaderWidgets/com/ibm/busleader/widgets/documenteditor/EditorApplication.swf",
                    "Snapshot=t58.inf",
                    "Mode=HTML",
                    "EncType=text/json;charset=UTF-8",
                    "Body={\"actions\":[{\"actionType\":\"addNode\",\"node\":{\"visibility\":\"0\",\"type\":\"glossaryNodeUserRole\",\"name\":\"222\",\"id\":\"NOD-1\",\"desc\":\"111\"}}]}",
         //         {"actions":[{"actionType":"addNode","node":{"type":"glossaryNodeTerm","name":"term_user1_1","id":"NOD-ca0c4cfabfe10c19494a68b64b535854","desc":"term_user1_1","visibility":"0"}}]}
                                               LAST);

            web_custom_request("DOC-bb1cbdef1f37d13c8057a2b687e2cc58_2",
                    "URL=https://9.181.86.102:9445/BusinessLeader/rest/v1/document/DOC-bb1cbdef1f37d13c8057a2b687e2cc58?actionType=unlock&spaceId=09B55666986DA34B640F00F72AF4AD000002&locale=en_US",
                    "Method=POST",
                    "Resource=0",
                    "RecContentType=application/json",
                    "Referer=https://9.181.86.102:9445/BusinessLeaderWidgets/com/ibm/busleader/widgets/documenteditor/EditorApplication.swf",
                    "Snapshot=t59.inf",
                    "Mode=HTML",
                    "EncType=text/json;charset=UTF-8",
                    "Body={\"checkpoint\":{}}",
                    LAST);
    */
            return 0;
    }

    这是后台的错误日志

    [1/21/10 18:06:33:250 CST] 0000001d RestHandlerHe E com.ibm.bscape.rest.util.RestHandlerHelper writeJSONOutput(JSONObject,HttpServletResponse) ylcao --- POST: pathInfo: /document/DOC-bb1cbdef1f37d13c8057a2b687e2cc58/nodes  queryString: spaceId=09B55666986DA34B640F00F72AF4AD000002&actionType=search&firstRow=2&lastRow=5  {"Error":"BCSP2012E: Invalid request data.","Status Code":400}
    [1/21/10 18:08:11:109 CST] 0000001c CreateDocumen E com.ibm.bscape.rest.handler.action.CreateDocumentAction execute java.lang.String incompatible with com.ibm.json.java.JSONObject
    [1/21/10 18:08:11:125 CST] 0000001c RestHandlerHe E com.ibm.bscape.rest.util.RestHandlerHelper writeJSONOutput(JSONObject,HttpServletResponse) ylcao --- POST: pathInfo: /document/DOC-bb1cbdef1f37d13c8057a2b687e2cc58/nodes  queryString: spaceId=09B55666986DA34B640F00F72AF4AD000002&actionType=search&firstRow=2&lastRow=5  {"Error":"BCSP2012E: Invalid request data.","Status Code":400}
    [1/21/10 18:08:36:765 CST] 0000001c CreateDocumen E com.ibm.bscape.rest.handler.action.CreateDocumentAction execute java.lang.String incompatible with com.ibm.json.java.JSONObject
    [1/21/10 18:08:36:765 CST] 0000001c RestHandlerHe E com.ibm.bscape.rest.util.RestHandlerHelper writeJSONOutput(JSONObject,HttpServletResponse) ylcao --- POST: pathInfo: /document/DOC-bb1cbdef1f37d13c8057a2b687e2cc58/nodes  queryString: spaceId=09B55666986DA34B640F00F72AF4AD000002&actionType=search&firstRow=2&lastRow=5  {"Error":"BCSP2012E: Invalid request data.","Status Code":400}
    这是loadrunner回放日志
    Starting action addrole.
    wait for mement
    addrole.c(8): web_custom_request("nodes") was successful, 62 body bytes, 196 header bytes, 11 chunking overhead bytes          [MsgId: MMSG-26385]
    wait for mement
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-25 16:03 , Processed in 0.068536 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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