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\"?>"
                        "\n<feed>"
                       "\n<token>1999EB84FC68842398B1B4268699DC4D</token>"
                        "\n<version>1.0.1,10,u12618</version>"
                        "\n</feed>",
LAST);
lr_end_transaction("T1", LR_AUTO);

return 0;
}

LR测试XML格式的数据时,如何手写脚本是个问题,遇到该类问题的时候可以参考上面。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2021-05-23
  • 2021-08-11
  • 2022-12-23
  • 2021-11-19
  • 2021-07-01
猜你喜欢
  • 2021-06-11
  • 2022-02-26
  • 2021-12-09
  • 2022-01-08
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案