[Tsung] Reading External File for ts_http
Pablo Polvorin
ppolv at yahoo.com.ar
Mon Jan 28 19:16:54 CET 2008
Yes, i think your problem was the second. You seems to not being using the Pid var in user/1.. so shouldn´t be a problem that its actually bound to a record.
About the escaped "&" in the script, see http://lists.process-one.net/pipermail/tsung-users/2007-December/000707.html
Cheers,
pablo.
Muhamad Fadli Ishak <fadliishak at gmail.com> escribió: Finally got it to work.
We made two changes. There were:
1) Erl Script from
user(Pid) to user({Pid,DynData})
2) Change Erl Script from
"login_id=" ++ Username ++"&login_pwd=" ++ Passwd.
to
"login_id=" ++ Username ++"&login_pwd=" ++ Passwd.
I dont think the first point is the problem. If it is then the manual should be corrected as well.
What we did was, displaying the value retrieved from the file.
<request subst="true"><http
url='/dologin.php?random=%%ts_user_server:get_unique_id%%&log=%%readcsv:user%%' version='1.1'
contents='%%readcsv:user%%&skin=lightblue'
content_type='application/x-www-form-urlencoded'
method='POST'></http></request>
More information about the Tsung-users
mailing list