51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1646|回复: 0
打印 上一主题 下一主题

[原创] 求助,LR录制上传文件动作的时候就挂掉

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-12-19 14:46:48 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
大概界面是这样的,选择的协议是web(http/html)协议。一点击这个浏览。IE8就关闭了。

Action()
{
web_set_max_html_param_len("1024");
/* Registering parameter(s) from source task id 3
// {Siebel_Analytic_ViewState2} = "/wEPDwUJMjA4NTkzMTcyZGSsiaXmT7guBP3hY/O1HbvRivSwWy9G/E2hIHTuQRdbTg=="
// */
web_reg_save_param("Siebel_Analytic_ViewState2",
  "LB/IC=ViewState\" value=\"",
  "RB/IC=\"",
  "Ord=1",
  "Search=Body",
  "RelFrameId=1",
  LAST);
web_url("Login.aspx",
  "URL=http://192.168.1.85/Login/Login.aspx",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t1.inf",
  "Mode=HTML",
  EXTRARES,
  "Url=../Styles/reset.css", ENDITEM,
  "Url=../Styles/960.css", ENDITEM,
  "Url=../images/icons/spech_bubbles.png", ENDITEM,
  "Url=../images/icons/post_card.png", ENDITEM,
  "Url=../images/icons/create_write.png", ENDITEM,
  "Url=../images/basic/arrow_mainnav.png", ENDITEM,
  "Url=../images/basic/bg-content.png", ENDITEM,
  LAST);
lr_think_time(18);
web_url("Checkcode.aspx",
  "URL=http://192.168.1.85/Login/Checkcode.aspx?checkCode=88Y4",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://192.168.1.85/Login/Login.aspx",
  "Snapshot=t2.inf",
  "Mode=HTML",
  LAST);
web_submit_data("CheckSubmit.aspx",
  "Action=http://192.168.1.85/Login/CheckSubmit.aspx",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://192.168.1.85/Login/Login.aspx",
  "Snapshot=t3.inf",
  "Mode=HTML",
  "EncodeAtSign=YES",
  ITEMDATA,
  "Name=email", "Value=xiuju_lan@sina.cn", ENDITEM,
  "Name=password", "Value=vol0227", ENDITEM,
  "Name=checkcode", "Value=88Y4", ENDITEM,
  "Name=type", "Value=login", ENDITEM,
  LAST);
lr_think_time(6);
web_url("CheckImage.aspx",
  "URL=http://192.168.1.85/Login/CheckImage.aspx?time=Mon%20Dec%2019%2014:39:11%20UTC+0800%202011",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://192.168.1.85/Login/Login.aspx",
  "Snapshot=t4.inf",
  "Mode=HTML",
  LAST);
lr_think_time(7);
web_url("Checkcode.aspx_2",
  "URL=http://192.168.1.85/Login/Checkcode.aspx?checkCode=UR2T",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://192.168.1.85/Login/Login.aspx",
  "Snapshot=t5.inf",
  "Mode=HTML",
  LAST);
web_submit_data("CheckSubmit.aspx_2",
  "Action=http://192.168.1.85/Login/CheckSubmit.aspx",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://192.168.1.85/Login/Login.aspx",
  "Snapshot=t6.inf",
  "Mode=HTML",
  "EncodeAtSign=YES",
  ITEMDATA,
  "Name=email", "Value=xiuju_lan@sina.cn", ENDITEM,
  "Name=password", "Value=vol0227", ENDITEM,
  "Name=checkcode", "Value=UR2T", ENDITEM,
  "Name=type", "Value=login", ENDITEM,
  LAST);
web_submit_data("Login.aspx_2",
  "Action=http://192.168.1.85/Login/Login.aspx",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://192.168.1.85/Login/Login.aspx",
  "Snapshot=t7.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
  "Name=email", "Value=xiuju_lan@sina.cn", ENDITEM,
  "Name=password", "Value=vol0227", ENDITEM,
  "Name=checkcode", "Value=UR2T", ENDITEM,
  EXTRARES,
  "Url=../images/icons/create_PDF.png", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
  "Url=../images/icons/s-upload.png", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
  "Url=../images/icons/copylink.gif", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
  "Url=../images/icons/copy.gif", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
  "Url=../images/icons/upload.gif", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
  "Url=../images/icons/refresh.gif", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
  "Url=../images/icons/test.gif", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
  "Url=../images/icons/open.gif", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
  "Url=../Styles/ui-lightness/jquery.ui.core.css", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
  "Url=../images/icons/trashcan.png", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
  "Url=../images/DownArrow-14pt.png", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
  "Url=../images/basic/arrow-close.png", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
  LAST);
web_url("FormManager_Test.aspx",
  "URL=http://192.168.1.85/forms/FormManager_Test.aspx?time=1324276759682",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://192.168.1.85/forms/forms.aspx",
  "Snapshot=t8.inf",
  "Mode=HTML",
  LAST);
web_url("showforms.aspx",
  "URL=http://192.168.1.85/forms/showforms.aspx?page=1&sortexp=2&sortdirect=1&pagesize=10&time=1324276760150",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://192.168.1.85/forms/forms.aspx",
  "Snapshot=t9.inf",
  "Mode=HTML",
  LAST);
return 0;
}


这个是整段的action脚本

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-25 07:35 , Processed in 0.080503 second(s), 29 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表