51Testing软件测试论坛
标题:
查看变量中是否有特定的字符
[打印本页]
作者:
tracy0079
时间:
2014-12-12 15:35
标题:
查看变量中是否有特定的字符
lr_output_message("result = %s",lr_eval_string(buf));
这个输出的结果为:
result = <?xml version="1.0" encoding="UTF-8"?>
<PayPlatResponseParameter><RESPONSE-INFO REQWEBSVRCODE="100101" RESPONSETYPE="20" KEEP="91010000112013052717325996726063" RESULT="SUCCESS"/><RESPONSECODE>000000</RESPONSECODE><RESPONSECONTENT></RESPONSECONTENT><CURRDATE>20140303</CURRDATE><RESULTDATESET><DATAS CUSTOMER_NO="3177000000014586" PRODUCT_NO="13812038709" CUSTOMER_NAME="ѹÁ¦²âÊÔÓû§" ID_TYPE="1" ID_NO="222222222212038709" AREA_CODE="null" CITY_CODE="null" /></RESULTDATESET></PayPlatResponseParameter>
怎么判断这个buf中有00000字符
作者:
tracy0079
时间:
2014-12-12 16:09
或者判断SUCCESS字符
作者:
msnshow
时间:
2014-12-14 13:52
这个是socket协议的吧
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2