Action()
{
 lr_think_time(20);

lr_start_transaction("µã»÷ÊÂÏî°ìÀíÇé¿ö°´Å¥");

web_url("List.html",
  "URL=http://{login_ip}/drm/static/pages/tpl/drm/energy/running/List.html?rd=0.6719469163718243",
  "TargetFrame=",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://{login_ip}/drm/",
  "Snapshot=t29.inf",
  "Mode=HTML",
  LAST);

web_reg_find("Search=Body", //¶¨Òå²éÕÒ·¶Î§
     "SaveCount=count", //¶¨Òå²éÕÒ¼ÆÊý±äÁ¿Ãû³Æ
     "Text=deptName", //¶¨Òå²éÕÒÄÚÈÝ
      LAST);

web_submit_data("list.json",
  "Action=http://{login_ip}/drm/running/list.json?rd=0.20689365213457445",
  "Method=POST",
  "TargetFrame=",
  "RecContentType=application/json",
  "Referer=http://{login_ip}/drm/",
  "Snapshot=t31.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=rptType", "Value=1", ENDITEM,
  "Name=rptYm", "Value=2015Äê08ÔÂ", ENDITEM,
  "Name=deptSelect", "Value=", ENDITEM,
  "Name=dept", "Value=", ENDITEM,
  LAST);

if (atoi(lr_eval_string("{count}"))==0)
  {
  lr_end_transaction("µã»÷ÊÂÏî°ìÀíÇé¿ö°´Å¥",LR_FAIL);
  }
 else{
  lr_end_transaction("µã»÷ÊÂÏî°ìÀíÇé¿ö°´Å¥",LR_PASS);
 }

lr_think_time(20);

lr_start_transaction("ÊÂÏî°´Äê²éѯ");

web_reg_find("Search=Body", //¶¨Òå²éÕÒ·¶Î§
     "SaveCount=count", //¶¨Òå²éÕÒ¼ÆÊý±äÁ¿Ãû³Æ
     "Text=deptName", //¶¨Òå²éÕÒÄÚÈÝ
      LAST);

web_submit_data("list.json",
  "Action=http://{login_ip}/drm/running/list.json?rd=0.20689365213457445",
  "Method=POST",
  "TargetFrame=",
  "RecContentType=application/json",
  "Referer=http://{login_ip}/drm/",
  "Snapshot=t31.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=rptType", "Value=2", ENDITEM,
  "Name=rptYm", "Value=2015Äê", ENDITEM,
  "Name=deptSelect", "Value=", ENDITEM,
  "Name=dept", "Value=", ENDITEM,
  LAST);

if (atoi(lr_eval_string("{count}"))==0)
  {
  lr_end_transaction("ÊÂÏî°´Äê²éѯ",LR_FAIL);
  }
 else{
  lr_end_transaction("ÊÂÏî°´Äê²éѯ",LR_PASS);
 }

return 0;
}

最新文章

  1. 我们正在等待一次技术革命的到来; We are waiting for the arrival of a technological revolution
  2. mysql 索引查询的问题
  3. Linux常用目录及文件
  4. 计算机网络(1)-----网络层IP协议概述
  5. jquery错误: Cannot read property ‘msie’ of undefined
  6. 自己模拟实现spring IOC原理
  7. 在Qt Creator中添加OpenCV库
  8. 读jQuery官方文档:数据方法与辅助方法
  9. 使用python将mysql数据库的数据转换为json数据
  10. zencart里常用 SQL
  11. js json和字符串的互转
  12. vs code配置
  13. Windows10开发手记-Windows App Certification Kit使用教程
  14. “论 ofo 是如何影响今日头条发展的”
  15. Android 各个版本新特性
  16. supervisor安装和简单使用
  17. TensorFlow object detection API应用--配置
  18. Python2 和Python3 的差异总结
  19. 【ecshop】调用购物车商品数量
  20. 高斯消元求主元——模意义下的消元cf1155E

热门文章

  1. Java Servlet异步处理、非阻塞I/O和文件上传
  2. Infinity NaN undefined和null
  3. 【Mybatis】<foreach>标签在mybatis中的使用
  4. BZOJ4896 THUSC2016补退选(trie)
  5. BZOJ3573 HNOI2014米特运输
  6. Shell脚本重启Python程序
  7. Linux内核设计第二周学习总结 完成一个简单的时间片轮转多道程序内核代码
  8. bzip2 --安装
  9. HDU4625 JZPTREE——第二类斯特林数
  10. 音视频处理之H264编码标准20170906