zoukankan      html  css  js  c++  java
  • LoadRunner检查点

    • web_reg_find("Text=ABC", "SaveCount=abc_count", LAST);51Testing软件测试网V?2Rs.J Gmd
      web_url("Step",  "URL=...", LAST);
      )LN4E4U7u~8C0if  (strcmp(lr_eval_string("{abc_count}"), "0") == 0)

    lr_output_message("not found");51Testing软件测试网 p T.n*C!h:[Ye

    else51Testing软件测试网*|4U9H.Wk9G;Rqg

    lr_output_message("{abc_count} found");51Testing软件测试网C*p'l&s*qc Q

    如果想保存并且显示找到的文本,可以使用web_reg_save_param界定左右边界把找到的信息保存到参数中。如下:

    *Iv!P+y/B6J^'N0

    • char *str1,*str2;51Testing软件测试网)w*U"^sCO
      str1="desired  text";51Testing软件测试网Ef1`{*ud&G
      //  Register the left and right beacons sought:
      :j0xTN2sT  a3Q0web_reg_save_param("param","LB/ic=xxx","RB=xxx");
      ,yb4yt'd8V,v0// Do the monitored deed:
      iW$e![#ox!^0web_url("some  url","URL=www.xxx.com",LAST);51Testing软件测试网3r@  a7M~+d-pi
      // Compare:
      5I1b'EM?0str2=lr_eval_string("{param}");
      n~iUdm%HkC0if(strcmp(str1,str2)==0)  {

    lr_output_message("param found");

    1]9od4^*YG0

    }else{

    :u:d9J6C.y1O  lky0

    lr_output_message("Value found is %s",str2);51Testing软件测试网;n;J{.`v"Z

    }

  • 相关阅读:
    进程和程序
    linux socket基本知识
    window核心编程 第五章 作业
    树的基本操作(C语言)
    每天都在反省自己,但是每天却都浑浑噩噩
    Windows核心编程 内核对象
    还没完整看过一本技术的书籍啊
    管道
    Memory Layout of a C Program(7.6)
    cpio命令用法
  • 原文地址:https://www.cnblogs.com/qmfsun/p/4901391.html
Copyright © 2011-2022 走看看