LR脚本中编辑器显示乱码
用LR录制ERP的登陆-查询-退出的脚本,为什么编辑器中会显示乱码?我操作的是单击模块功能查看页面,怎么不能显示查看的模块名称?测试新手,不知道这样会不会对测试结果产生影响?
web_submit_form("login",
"Snapshot=t2.inf",
ITEMDATA,
"Name=account", "Value=鍘﹂棬娆т箰杞欢鏈夐檺鍏徃", ENDITEM,
"Name=username", "Value=lrtest1", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
"Name=remember", "Value=<OFF>", ENDITEM,
EXTRARES,
"Url=/common/css/bootstrap.min.css", "Referer=http://ole-test.olerp.net/index/index/index", ENDITEM,
"Url=/common/images/recycle.png", "Referer=http://ole-test.olerp.net/index/index/index", ENDITEM,
"Url=/common/images/add.png", "Referer=http://ole-test.olerp.net/index/index/index", ENDITEM,
LAST);
web_link("鍩虹璧勬枡",
"Text=鍩虹璧勬枡",
"Snapshot=t3.inf",
EXTRARES,
"Url=/common/images/leftmenu_sprite.png", ENDITEM,
"Url=/common/extjs/resources/ext-theme-neptune/images/tools/tool-sprites.png", ENDITEM,
"Url=/common/extjs/resources/ext-theme-neptune/images/tools/tool-sprites-dark.png", ENDITEM,
LAST);
lr_think_time(20);
web_link("寮\x80鍙戠鐞\x86",
"Text=寮\x80鍙戠鐞\x86",
"Snapshot=t4.inf",
LAST);
lr_think_time(13);
web_link("璁剧疆",
"Text=璁剧疆",
"Snapshot=t5.inf",
LAST);
lr_think_time(6);
web_link("淇敼瀵嗙爜",
"Text=淇敼瀵嗙爜",
"Snapshot=t6.inf",
EXTRARES,
"Url=/common/extjs/resources/ext-theme-neptune/images/form/exclamation.png", ENDITEM,
"Url=/common/extjs/resources/ext-theme-neptune/images/btn/btn-default-toolbar-small-bg.gif", ENDITEM,
LAST);
lr_think_time(28); 录制的时候选上UTF-8编码试试吧 第一:把录制选项中的Support charset选中UTF-8
第二:在IIS中找到Web.Config文件,在<system.web>….</system.web>节加入<globalization requestEncoding="gb2312" responseEncoding="gb2312" fileEncoding="gb2312"/>后再次录制脚本,乱码变中文。 回复 2# msnshow
嗯嗯,已经解决了! 回复 3# libingyu135
嗯,用第一种方法解决了:lol
页:
[1]