51Testing软件测试论坛
标题:
帮看看报的错是什么意思,有脚本代码
[打印本页]
作者:
shangyy0124
时间:
2009-3-19 17:01
标题:
帮看看报的错是什么意思,有脚本代码
录的就是点开页面的"高级检索",错误信息指向在红色代码段
以下是错误信息
Action.c(81): Error -27995: Requested link ("Text=高级检索") not found [MsgId: MERR-27995]
Action.c(81): web_link("高级检索") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
以下是脚本代码
#include "web_api.h"
Action()
{
web_add_cookie("JSESSIONID=00004dYY_tK0_Dv3pewjtcLi8-l:13pmdb50m; DOMAIN=vvv.ha.cp");
web_add_cookie("IV_JCT=%2Fcgrs; DOMAIN=vvv.ha.cp");
web_url("vvv.ha.cp",
"URL=http://vvv.ha.cp/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=https://vvv.ha.cp/wps/themes/html/red/images/images/top_1.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/themes/html/red/images/images/top_3.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo8/images/red2_1.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo8/images/red2_2.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo8/images/red2_3.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo3/images/red3_3.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo3/images/red3_1.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo3/images/red3_4.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo3/images/middle-1-line.jpg", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo2/images/red2_1.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo7/images/red2_1.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo7/images/red2_2.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo2/images/red2_3.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo7/images/red2_3.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo6/images/red2_2.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo6/images/red2_1.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo6/images/red2_3.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo9/images/red2_2.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo9/images/red2_3.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo9/images/red2_1.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo9/images/red2_4.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo3/images/red3_2.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo2/images/red2_2.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo4/images/vision-1title_bj_02.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/wps/skins/html/redmo9/images/red2_5.gif", "Referer=https://vvv.ha.cp/wps/myportal", ENDITEM,
"Url=https://vvv.ha.cp/cgrs/cgrs/w5/left-arrow-1.gif", "Referer=https://vvv.ha.cp/cgrs/cgrs/w5/first.htm?para2=value2&ColumnID=4", ENDITEM,
"Url=https://vvv.ha.cp/jccx/pics/zxzt090319.jpg", "Referer=https://vvv.ha.cp/jccx/jccx/cx.asp?para2=value2&ColumnID=5", ENDITEM,
"Url=https://vvv.ha.cp/jccx/pics/zxzt090314.jpg", "Referer=https://vvv.ha.cp/jccx/jccx/cx.asp?para2=value2&ColumnID=5", ENDITEM,
"Url=https://vvv.ha.cp/jccx/pics/%E4%B8%80%E5%91%A8%E7%BB%BC%E8%BF%B0.jpg", "Referer=https://vvv.ha.cp/jccx/jccx/cx.asp?para2=value2&ColumnID=5", ENDITEM,
"Url=https://vvv.ha.cp/jccx/pics/%E5%8F%B0%E6%B9%BE%E6%83%85%E5%86%B5.jpg", "Referer=https://vvv.ha.cp/jccx/jccx/cx.asp?para2=value2&ColumnID=5", ENDITEM,
"Url=https://vvv.ha.cp/jccx/pics/%E4%BC%9F%E5%A4%A7%E7%9A%84%E5%8E%86%E7%A8%8B.jpg", "Referer=https://vvv.ha.cp/jccx/jccx/cx.asp?para2=value2&ColumnID=5", ENDITEM,
"Url=https://vvv.ha.cp/jccx/pics/%E5%BA%94%E5%AF%B9%E4%B8%96%E7%95%8C%E9%87%91%E8%9E%8D%E6%B5%B7%E5%95%B8%E5%B1%95%E6%9C%9B%E6%9C%AA%E6%9D%A5%E4%B8%AD%E5%9B%BD%E7%BB%8F%E6%B5%8E%E8%B5%B0%E5%8A%BF.jpg", "Referer=https://vvv.ha.cp/jccx/jccx/cx.asp?para2=value2&ColumnID=5", ENDITEM,
"Url=https://vvv.ha.cp/jccx/pics/%E8%85%BE%E9%A3%9E%E7%9A%84%E4%B8%AD%E5%9B%BD.jpg", "Referer=https://vvv.ha.cp/jccx/jccx/cx.asp?para2=value2&ColumnID=5", ENDITEM,
"Url=https://vvv.ha.cp/jccx/pics/%E9%AB%98%E4%B8%BE%E8%A7%A3%E6%94%BE%E6%80%9D%E6%83%B3%E7%9A%84%E4%BC%9F%E5%A4%A7%E6%97%97%E5%B8%9C.jpg", "Referer=https://vvv.ha.cp/jccx/jccx/cx.asp?para2=value2&ColumnID=5", ENDITEM,
"Url=https://vvv.ha.cp/jccx/pics/%E6%B7%B1%E5%85%A5%E5%AD%A6%E4%B9%A0%E7%A7%91%E5%AD%A6%E5%8F%91%E5%B1%95%E8%A7%82.jpg", "Referer=https://vvv.ha.cp/jccx/jccx/cx.asp?para2=value2&ColumnID=5", ENDITEM,
"Url=https://vvv.ha.cp/cgrs/cgrs/y1/left-arrow-1.gif", "Referer=https://vvv.ha.cp/cgrs/cgrs/y1/first.htm?para2=value2&ColumnID=5", ENDITEM,
"Url=https://vvv.ha.cp/uniscms/jsp/image/weXX-_11.gif", "Referer=https://vvv.ha.cp/uniscms/jsp/mail.jsp?para2=value2&ColumnID=3", ENDITEM,
"Url=https://vvv.ha.cp/uniscms/jsp/image/dqXX-_03.gif", "Referer=https://vvv.ha.cp/uniscms/jsp/notic.jsp?para2=value2&ColumnID=4", ENDITEM,
"Url=https://vvv.ha.cp/jccx/pics/zxzt090315.jpg", "Referer=https://vvv.ha.cp/jccx/jccx/cx.asp?para2=value2&ColumnID=5", ENDITEM,
"Url=https://vvv.ha.cp/jccx/pics/zxzt090330.jpg", "Referer=https://vvv.ha.cp/jccx/jccx/cx.asp?para2=value2&ColumnID=5", ENDITEM,
LAST);
lr_think_time( 6 );
web_set_certificate_ex("CertIndex=1",
LAST);
web_link("高级检索",
"Text=高级检索",
"Snapshot=t2.inf",
EXTRARES,
"Url=/uniscms/jsp/image/qeXX-_02.gif", ENDITEM,
"Url=/uniscms/jsp/image/yw_08.gif", ENDITEM,
"Url=/uniscms/jsp/image/etXX-_05.gif", ENDITEM,
LAST);
return 0;
[
本帖最后由 shangyy0124 于 2009-3-19 17:03 编辑
]
作者:
x1j2l3
时间:
2009-3-20 01:07
1, 打开recording options,在internet protocol下的recording中选择recording level为HTML-based scrīpt,点击HTML Advanced,选择scrīpt type为A scrīpt containing explicit.即可。
2, 选择使用URL_based scrīpt录制。
作者:
shangyy0124
时间:
2009-3-20 11:00
呵呵,方法对,解决了,谢谢!!
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2