???????????ж???????????
???????????? ???????[ 2015/4/7 11:00:00 ] ????????LoadRunner ??? ???????
??????LoadRunner??????д?????У??????????????????????????????????????ж???????????????????????????????xml???????<reponse_code></response>??ε?????????????????????'0000'???????????????????????????????httpЭ??????У????????????????????????????????????????????????????????????????????Щ??httpЭ????????tuxedoЭ?飩?У???λ?????????
???????????????????????????????£?
????ret=lrt_tpcall("EAIHINCSMW"??(char*)pFml??0??(char**)&recvBuf??&recvlen??0);
??????????????????????
????<?xml version="1.0"encoding="GBK"?><Transaction><Transaction_Header><tran_response><response_code>2000</response_code><respone_msg>???????????[SDATA_GetSerialNo]?????/respone_msg></tran_response></Transaction_Header><Transaction_Body><response/>
????</Transaction_Body></Transaction>
?????????????????recvBuf?С?????<response_code>????'2000'??????????????ж????????????????????????λ???????????????ж????
????????????????????????????????????????????????????
????char*response1;
????char*response2;
????char response_code[5];
?????????????????????
????//?ж??????????????????respone_code'0000'???????????????????????????????
????response1=(char*)strstr(recvBuf??"<response_code>");
????response1=response1+15;
????response2=(char*)strstr(response1??"</response_code>");
?????????
????strstr()?????????????????????????????????????????γ????λ????????β?????????????Сд??У???????????????г?????????????????????????????????????????????????????????????False??
???????strstr(recvBuf??"<response_code>");?????????recvBuf?в???<response>????????????????????????response1????response1??????“<response_code>2000</response_code><respone_msg>???????????[SDATA_GetSerialNo]?????/respone_msg></tran_response></Transaction_Header><Transaction_Body><response/>
????</Transaction_Body></Transaction>”
????response2??????</response_code><respone_msg>???????????[SDATA_GetSerialNo]?????/respone_msg></tran_response></Transaction_Header><Transaction_Body><response/>
????</Transaction_Body></Transaction>
????15??“<response_code>”???????????
?????????ж??
????if(strncmp(response1??"0000"??response2-response1)==0)
????{
????//??????0000????????
????lr_message("Suclearcase/"target="_blank">ccess!");
????}
????else
????{
????//???????0000?????????
????lr_message("Fail!");
????}
?????????strncmp()????????????????????????n?????????Сд??У??????????
????0–???????????
????<0–???string1С??string2
????>0–???string1????string2
????????strncmp(string1??string2??length);
????????????????????????memcpy??????
????memcpy(response_code??response1??4);
????lr_error_message("response_code:%s"??response_code);
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11