51Testing软件测试论坛
标题:
回放时成功,但controller中运行时出错
[打印本页]
作者:
leomoun
时间:
2013-1-24 18:26
标题:
回放时成功,但controller中运行时出错
脚本如下:
Action()
{
web_submit_data("login",
"Action= http://IP
ORT/Mobile/login",
"Method=POST",
ITEMDATA,
"Name=appcode","Value=10021",ENDITEM,
"Name=reqstr","Value={reqstr}",ENDITEM,
"Name=verify","Value={verify}",ENDITEM,
"Name=datatype","Value=j",ENDITEM,
LAST);
return 0;
}
回放时是成功的,但是在controller中运行的时候就提示:Warning: The string 'verify' with parameter delimiters is not a parameter.
verify参数没有取到值,具体的日志如下:
Virtual User Script started [MsgId: MMSG-15967]
Starting action vuser_init. [MsgId: MMSG-15919]
Web Turbo Replay of LoadRunner 9.50 for WINXP; WebReplay9a build 6220 (Dec 28 2008 17:01:56) [MsgId: MMSG-27143]
Run Mode: HTML [MsgId: MMSG-26000]
Run-Time Settings file: "C:\Documents and Settings\Administrator\Local Settings\Temp\lr5tmpdir5FX.870\lrcfgSI3.871\cfgMc6.885" [MsgId: MMSG-27141]
Ending action vuser_init. [MsgId: MMSG-15918]
Running Vuser... [MsgId: MMSG-15964]
Starting iteration 1. [MsgId: MMSG-15968]
Starting action Action. [MsgId: MMSG-15919]
Action.c(4): Notify: Parameter Substitution: parameter "reqstr" = "dXNlcj15YW5ncEBuZXQtZWFzdC5jb20mcGFzc3dvcmQ9ZTEwYWRjMzk0OWJhNTlhYmJlNTZlMDU3ZjIwZjg4M2U=" [MsgId: MMSG-13992]
Action.c(4): Warning: The string 'verify' with parameter delimiters is not a parameter. [MsgId: MWAR-13987]
Action.c(4): t=246ms: 470-byte response headers for "http://IP
ORT/Mobile/login" (RelFrameId=1, Internal ID=1)
Action.c(4): HTTP/1.1 200 OK\r\n
Action.c(4): Date: Thu, 24 Jan 2013 10:17:32 GMT\r\n
Action.c(4): Server: Apache/2.2.15 (CentOS)\r\n
Action.c(4): X-Powered-By: PHP/5.3.3\r\n
Action.c(4): Set-Cookie: PHPSESSID=67ve57hiope3mv76k0bpoue004; path=/\r\n
Action.c(4): Expires: Thu, 19 Nov 1981 08:52:00 GMT\r\n
Action.c(4): Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\n
Action.c(4): Pragma: no-cache\r\n
Action.c(4): Set-Cookie: think_template=default; expires=Thu, 17-Feb-2056 21:35:04 GMT; path=/\r\n
Action.c(4): Content-Length: 48\r\n
Action.c(4): Connection: close\r\n
Action.c(4): Content-Type: text/html; charset=UTF-8\r\n
Action.c(4): \r\n
Action.c(4): t=247ms: 48-byte response body for "http://IP
ORT/Mobile/login" (RelFrameId=1, Internal ID=1)
Action.c(4): {"code":"103","description":"verify is invalid"}
Action.c(4): web_submit_data("login") was successful, 48 body bytes, 470 header bytes [MsgId: MMSG-26386]
Ending action Action. [MsgId: MMSG-15918]
Ending iteration 1. [MsgId: MMSG-15965]
Ending Vuser... [MsgId: MMSG-15966]
Starting action vuser_end. [MsgId: MMSG-15919]
Ending action vuser_end. [MsgId: MMSG-15918]
Vuser Terminated. [MsgId: MMSG-15963]
Vuser 0 (thread 4504), ended OK." [MsgId: MMSG-10695]
请问这是什么原因呢?Run-time settings在回放和controller中设置是一致的。
作者:
leomoun
时间:
2013-1-25 10:50
请问没人遇到过这种问题吗?
作者:
jacksboy
时间:
2013-1-27 10:26
在设置里有个参数的边界符号你设的是{么
作者:
stevenremember
时间:
2013-1-28 14:20
多数情况是:1 如果参数化里的设置出错,取不到值就会报这个错
2 关联的数据没有找到,左右边界问题
回放脚本的时候仔细看下Replay log
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2