参数化后输出用户名密码为空!请大家帮忙看下~~~
Web tours 参数化之后回放日志里输出的用户名密码为空 是怎么回事?有经验的人请帮忙看看 这个问题一直困扰着我
我复制了一部分回放日志~~~
Action.c(52): "web_find" successful. 1 occurrence(s) of "a1" found (RightOf="welcome, ", LeftOf=", to the Web Tours reservation pages.")
Action.c(52): web_find was successful
Action.c(58): 用户名
Action.c(59): 密码
Action.c(63): Notify: Transaction "登录" ended with "Pass" status (Duration: 3.2487 Wasted Time: 0.0001).
Action.c(67): Notify: Transaction "业务处理" started 路过的知道的请帮忙解答下~~~~谢谢!!! 路过的知道的请帮忙解答下~~~~谢谢!!! 路过的知道的请帮忙解答下~~~~谢谢!!! 能把参数化的设置和相关的脚本都发上来吗? web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={WCSParam_Diff1}", ENDITEM,
"Name=username", "Value={username}", ENDITEM,
"Name=password", "Value={password}", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
LAST);
//Óû§µÇ¼
lr_think_time(60);
web_find("web_find",
"RightOf=welcome, ",
"LeftOf=, to the Web Tours reservation pages.",
"What={username}",
LAST);
lr_output_message("Óû§Ãû£º%S", lr_eval_string("{username}"));
lr_output_message("ÃÜÂ룺%S", lr_eval_string("{password}")); 输出“用户名”“密码” 发上来怎么变成了乱码~~~ lr_output_message("óû§Ãû£o%s", lr_eval_string("{username}"));
lr_output_message("ÃüÂë£o%s", lr_eval_string("{password}")); 看看取值方式。。。 什么意思? Sequential:
Each iteration:
我是问saharaqs是什么意思 <!--
User password was incorrect.Prompt the user to fix password or sign-up...
--->
<html>
<title>Web Tours</title>
<frameset cols="160,*" border=1 frameborder=1>
<frame src=nav.pl?username=a1&password=b8 name=navbar marginheight=2 marginwidth=2 noresize scrolling=auto>
<frame src=error.pl?error=badPassword name=info marginheight=2 marginwidth=2 noresize scrolling=auto>
</frameset>
</body></html>
这个是几次回放后Http返回的结果~~“username=a1&password=b8” 是不是关联的问题
我参数化username和password的数据是a1,b1;a2,b2……都是对应的~~ 请大家帮忙一起看看 怎么感觉这几个问题好像有联系~~ 13#的问题是我把username的取值方式改变了下了 两个一样就没问题了~~~
页:
[1]