51Testing软件测试论坛

标题: 大神这边看 Error -26612:URL地址正确的 LOADRUNNER调用是却提示地址错误 [打印本页]

作者: hxj407846628    时间: 2014-5-22 15:00
标题: 大神这边看 Error -26612:URL地址正确的 LOADRUNNER调用是却提示地址错误
该接口通过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.




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2