zoukankan      html  css  js  c++  java
  • 定位、判断、cookie的脚本案例

    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;
    }

  • 相关阅读:
    Swift Optional
    cocoapods 配置
    winform窗体全屏
    SQLiteDatabase的使用
    探索Gallery和ImageSwitcher布局
    常用布局参考
    增加动画的效果
    AlertDialog的写法
    自定义Toast
    适配器的经典写法
  • 原文地址:https://www.cnblogs.com/wensiyang0916/p/5832345.html
Copyright © 2011-2022 走看看