51Testing软件测试论坛
标题:
哪位帮忙看一下
[打印本页]
作者:
lyw20086911
时间:
2008-12-16 17:22
标题:
哪位帮忙看一下
大家好,我用loadrunner8.0以URL方式录脚本在回放时报错如下,然后就执行不下去了.
不知为什么,哪位指教一下.
Action.c (397): missing "
Action.c (397): missing "
d:\\program files\\scripts\\suzhou_adduser\\\\combined_suzhou_adduser.c (4): 2 errors, not writing pre_cci.ci
我录的内容如下:
#include "web_api.h"
Action()
{
web_set_max_html_param_len("1024");
/* Registering parameter(s) from source task id 2
// {OracleAppJSESSIONID2} = "325085EB148314FBEAAC7A66859F7984"
// */
web_reg_save_param("OracleAppJSESSIONID2",
"LB/IC=JSESSIONID=",
"RB/IC=;",
"Ord=1",
"Search=headers",
"RelFrameId=1",
LAST);
web_url("logOut.action",
"URL=http://10.0.25.100:9090/mepay_sz/logOut.action",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("login.css",
"URL=http://10.0.25.100:9090/mepay_sz/style/login.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://10.0.25.100:9090/mepay_sz/logOut.action",
LAST);
web_url("index_denglu.jpg",
"URL=http://10.0.25.100:9090/mepay_sz/images/index_denglu.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://10.0.25.100:9090/mepay_sz/logOut.action",
LAST);
web_concurrent_end(NULL);
web_url("login-background.jpg",
"URL=http://10.0.25.100:9090/mepay_sz/images/login-background.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://10.0.25.100:9090/mepay_sz/logOut.action",
LAST);
lr_think_time( 6 );
web_submit_data("login.action;jsessionid=325085EB148314FBEAAC7A66859F7984",
"Action=http://10.0.25.100:9090/mepay_sz/login.action;jsessionid={OracleAppJSESSIONID2}",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.0.25.100:9090/mepay_sz/logOut.action",
"Snapshot=t2.inf",
"Mode=HTTP",
ITEMDATA,
"Name=adminName", "Value=admin", ENDITEM,
"Name=adminPass", "Value=admin123", ENDITEM,
"Name=x", "Value=0", ENDITEM,
"Name=y", "Value=0", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("style.css",
"URL=http://10.0.25.100:9090/mepay_sz/style/style.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://10.0.25.100:9090/mepay_sz/managePortal.action",
LAST);
web_url("font.css",
"URL=http://10.0.25.100:9090/mepay_sz/style/font.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://10.0.25.100:9090/mepay_sz/managePortal.action",
LAST);
web_url("index_top_bg2.gif",
"URL=http://10.0.25.100:9090/mepay_sz/images/index_top_bg2.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://10.0.25.100:9090/mepay_sz/managePortal.action",
LAST);
web_url("index_top_bg3.gif",
"URL=http://10.0.25.100:9090/mepay_sz/images/index_top_bg3.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://10.0.25.100:9090/mepay_sz/managePortal.action",
LAST);
web_url("initMenu.action",
"URL=http://10.0.25.100:9090/mepay_sz/initMenu.action?id=1",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.0.25.100:9090/mepay_sz/managePortal.action",
"Snapshot=t3.inf",
"Mode=HTTP",
LAST);
web_url("initMain.action",
"URL=http://10.0.25.100:9090/mepay_sz/initMain.action",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.0.25.100:9090/mepay_sz/managePortal.action",
"Snapshot=t4.inf",
"Mode=HTTP",
LAST);
web_url("index_top_bg.jpg",
"URL=http://10.0.25.100:9090/mepay_sz/images/index_top_bg.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://10.0.25.100:9090/mepay_sz/managePortal.action",
LAST);
最后录的部分没上传
作者:
archonwang
时间:
2008-12-17 09:37
请重录脚本再试试看,很可能是录制时候的文件丢失问题。另外,确认下你的lr在使用上没有问题
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2