Action() { lr_start_transaction("T1"); web_custom_request("xxxxHTTPRequest", "URL=http://xxxx", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Mode=HTML", "EncType=text/xml; charset=utf-8", "Body=<?xml version="1.0" encoding="utf-8"?>" " <feed>" " <token>1999EB84FC68842398B1B4268699DC4D</token>" " <version>1.0.1,10,u12618</version>" " </feed>", LAST); lr_end_transaction("T1", LR_AUTO); return 0; }
LR测试XML格式的数据时,如何手写脚本是个问题,遇到该类问题的时候可以参考上面。