zoukankan      html  css  js  c++  java
  • Loadrunner 判断事务是否成功的几个方法

    转:原文: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)

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



  • 相关阅读:
    kvm虚拟迁移(5)
    kvm虚拟化网络管理(4)
    计算系数
    排列组合
    错排
    加分二叉树
    皇宫看守
    战略游戏
    数字转换
    JDK8 HashMap源码分析
  • 原文地址:https://www.cnblogs.com/qiaoli0726/p/10312851.html
Copyright © 2011-2022 走看看