LR录制完自动关闭,这个问题似乎有很多人遇到过。其实我一直没有找到真正的原因。不过,没有吃过猪肉不代表没有看过猪跑,没有练过武功不代表不能将你打倒。(这半句是我原创。^_^)
  话说多年以前,我曾经写过一个贴子,用一个土办法暂时“解决”了这一问题。具体办法请看下面这个链接:
  http://www.blogjava.net/xingcyx/archive/2008/07/16/215190.html
  ,我很不幸地又遇到了同样的问题。有了前面的遭遇,这次我处变不惊,临危不乱,用同样的办法操作了一遍。但是,令我始料不及的是,一种更加诡异的情况出现了!
  我的脚本很简单,是一个模拟发送传真的动作,脚本如下:
  脚本A

 

Action()
{
web_url("mptest",
"URL=http://192.168.39.164:8000/mptest/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_link("发送传真",
"Text=发送传真",
"Snapshot=t2.inf",
LAST);
lr_think_time( 19 );
web_custom_request("SendFax",
"URL=http://192.168.39.164:8000/mptest/SendFax",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.39.164:8000/mptest/sendFax.jsp",
"Snapshot=t3.inf",
"Mode=HTML",
"EncType=multipart/form-data; boundary=---------------------------7d97d2d7209f6",
"BodyBinary=-----------------------------7d97d2d7209f6 "
"Content-Disposition: form-data; name="address" "
" "
"05928556088 "
"-----------------------------7d97d2d7209f6 "
"Content-Disposition: form-data; name="senderName" "
" "
"05928064212 "
"-----------------------------7d97d2d7209f6 "
"Content-Disposition: form-data; name="title" "
" "
"sfsd "
"-----------------------------7d97d2d7209f6 "
"Content-Disposition: form-data; name="content" "
" "
"sfd "
"-----------------------------7d97d2d7209f6 "
"Content-Disposition: form-data; name="email" "
" "
"dfd "
"-----------------------------7d97d2d7209f6 "
"Content-Disposition: form-data; name="pageheader" "
" "
"sf "
"-----------------------------7d97d2d7209f6 "
"Content-Disposition: form-data; name="attachment"; filename="C:"
"\x5C"
"Documents and Settings"
"\x5C"
"Administrator"
"\x5C"
"妗??"
"\x5C"
"1.txt" "
"Content-Type: text/plain "
" "
"一、G网测试: "
"SE W810c、Nokia 6120c、Motorola W510、SE W800c "
"二、C网测试: "
"三、回归测试: "
"SE W580i、NOkia n93、Nokia6670(9.9号安排回归测试) "
"Motorola Z3、SE W810c(9.8号安排回归测试) "
"NOKIA5700、Nokia N73(9.5号安排回归测试) "
" "
" "
"*57*号码# "
"*41*号码# "
"#57# "
" "
"0951-8121648 "
" "
"-----------------------------7d97d2d7209f6-- "
"",
LAST);
return 0;
}