转:原文:https://blog.csdn.net/xuecancan/article/details/77193750

在LR 中往往需要关联response中的值来判断请求是否发送成功,可以使用以下几种方法:
1、判断关联到的字符串是否为空,

if (strlen(lr_eval_string("{param}")) == 0);


2、判断关联的字符串是否跟期望的值相同,

if(strcmp(lr_eval_string("{param}"), "expected") == 0);


3、判断关联的字符数组count是否为0,这种情况适合 ORD=ALL
的关联方式,

if(atoi(lr_eval_string("{param_count}")) == 0);


4、根据返回的响应码是不是200,

int retCode = web_get_int_property(HTTP_INFO_RETURN_CODE);
if(intelligentDeposit_retCode == 200)

---------------------



相关文章:

  • 2022-01-15
  • 2021-07-16
  • 2021-09-15
  • 2021-10-28
  • 2021-11-18
  • 2022-12-23
  • 2021-10-11
  • 2021-09-26
猜你喜欢
  • 2021-09-01
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
相关资源
相似解决方案