51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[原创] 大神这边看 Error -26612:URL地址正确的 LOADRUNNER调用是却提示地址错误

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2014-5-22 15:00:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
该接口通过SOAP可以调通,改用loadrunner调用是提示 调用的URL地址 500错误
请大神帮忙看下 在线等
Action()
{  char body[1000];


        web_add_header("sourceDeviceCode","pbs");
        web_add_header("timeStamp","30001010101010");
        web_add_header("authenticatorSource","3c44f8a37088f61513930dac687576649a7b38bb4ca20317ea999ba20efc1d29");
        web_add_header("version","1.0");

        lr_start_transaction("processCTChargeNotifyReq");

  strcpy(body,"body=requestData=%3CRequestBody%3E%3CSign%3EOKFLd9YqjFC%2BBA9%2F10DesPvi%2BuysD3569rV%2BDOnqhUl6SDq9Mos9fNaScEX3myTRwHW8xOABmOW2%0Ai1FS1IT%2BVZvq2Qdnvz%2Bu3pXTi52dSWIJgH9vO2TlNQ%3D%3D%3C%2FSign%3E%3CTrade_no%3E2014051410085618394%3C%2FTrade_no%3E%3CTrade_time%3E20140514100907%3C%2FTrade_time%3E%3CTrade_status%3E0%3C%2FTrade_status%3E%3CExtension%3E131000Er000000B000MM00120140514100509100312111%3C%2FExtension%3E%3C%2FRequestBody%3E");

  web_reg_save_param("LT",
                "LB=<resultCode>",
                "RB=</resultCode>",
                "Search=All",
                "NotFound=WARNING",
                "SaveLen=1000",
                LAST);
web_set_max_html_param_len("1024");
        web_reg_save_param("FT",
                "LB=",
                "RB=",
                "Search=All",
                "NotFound=WARNING",
                "SaveLen=1000",
                LAST);

        web_custom_request("processCTChargeNotifyReq",
                 "Method=POST",
           "Mode=HTML",
             "EncType=text/xml;charset=UTF-8",
         "URL=http://10.46.200.2:8085/pae/xml/ChargeNotifyServices/processCTChargeNotify",
                                          body,
                                           LAST);
web_set_max_html_param_len("1024");

        lr_output_message(lr_eval_string("{LT}"));
        //lr_output_message(lr_eval_string("{FT}"));

    if(strcmp("0",lr_eval_string("{LT}")) == 0)
    {
        lr_output_message("Success!!!");

        lr_end_transaction("processCTChargeNotifyReq", LR_AUTO);

                web_cache_cleanup();
                web_cleanup_cookies();
    }else
        {
                lr_error_message("---------Failed!!!%s",lr_eval_string("{FT}"));

        lr_end_transaction("processCTChargeNotifyReq", LR_FAIL);

        }
        return 0;

}




Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(10): Notify: Transaction "processCTChargeNotifyReq" started.
Action.c(14): Registering web_reg_save_param was successful          [MsgId: MMSG-26390]
Action.c(21): web_set_max_html_param_len was successful          [MsgId: MMSG-26392]
Action.c(22): Registering web_reg_save_param was successful          [MsgId: MMSG-26390]
Action.c(29): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://10.46.200.2:8085/pae/xml/ChargeNotifyServices/processCTChargeNotify"          [MsgId: MERR-26612]
Action.c(29): Warning -27118: SaveOffset (0) plus SaveLen (1000) exceeds the found value length (235) for parameter "FT". SaveLen=235 is used          [MsgId: MWAR-27118]
Action.c(29): Warning -26377: No match found for the requested parameter "LT". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MWAR-26377]
Action.c(29): web_custom_request("processCTChargeNotifyReq") highest severity level was "ERROR", 69 body bytes, 166 header bytes          [MsgId: MMSG-26388]
Action.c(29): Notify: Transaction "processCTChargeNotifyReq" ended with "Fail" status (Duration: 0.5937 Wasted Time: 0.4664).
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-25 04:13 , Processed in 0.068991 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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