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